From patchwork Tue Oct 14 05:55:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: vkamensky X-Patchwork-Id: 38686 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E812A20973 for ; Tue, 14 Oct 2014 05:57:34 +0000 (UTC) Received: by mail-la0-f70.google.com with SMTP id ge10sf4893884lab.1 for ; Mon, 13 Oct 2014 22:57:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:cc:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:content-type:content-transfer-encoding; bh=g0Z96z6tfCAp1VX1RvNpaEYr/LIMwNEkt9DR8E1yNck=; b=eoPRwf2Z+/luuSQZ4w4K3k0cQn0DaXJ7Pptm/YhUG0eo7Zmg8+lz4z+HpazhGkPFVG Ke1kebFFj+uLANlRsuTLJTW8oR3JwvDQ45Gu/h7qg5xf6Ka0jwLmoTuN0kA780mRbN+f u4SzdLRMLsBMsIOe1BqmzymhaZPtkKQNhmKSbsiiuahfFd6sa0YsB/hxqcQlrdgWAIbZ fEQ4OALv4gC0bXI6yFXOKnVGDPXSxL8NaFAFrTxPoWXUcy8Dv2eepqgZx/mDyGBLrD28 Wg9seZ9P+QxOczcyHFbdSWsU5uYE7+KTQ0jziKisAR8u5QmExWXQ5afjzXEs9zS5FKWP PBOA== X-Gm-Message-State: ALoCoQl7Nm8QPAAO+fI+kpXq7BWFs3OdV4MGi9kVerjjI0aj8PCF+AvaYVFNKvQ457ysKwNWsH1a X-Received: by 10.180.75.5 with SMTP id y5mr582604wiv.4.1413266253364; Mon, 13 Oct 2014 22:57:33 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.99 with SMTP id x3ls525037laj.90.gmail; Mon, 13 Oct 2014 22:57:33 -0700 (PDT) X-Received: by 10.152.179.164 with SMTP id dh4mr2899923lac.55.1413266253107; Mon, 13 Oct 2014 22:57:33 -0700 (PDT) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com [209.85.217.174]) by mx.google.com with ESMTPS id ay3si26482644lab.0.2014.10.13.22.57.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 13 Oct 2014 22:57:33 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; Received: by mail-lb0-f174.google.com with SMTP id p9so7699136lbv.33 for ; Mon, 13 Oct 2014 22:57:33 -0700 (PDT) X-Received: by 10.112.122.78 with SMTP id lq14mr2982008lbb.80.1413266253027; Mon, 13 Oct 2014 22:57:33 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.84.229 with SMTP id c5csp337752lbz; Mon, 13 Oct 2014 22:57:32 -0700 (PDT) X-Received: by 10.66.175.109 with SMTP id bz13mr2911265pac.46.1413266251593; Mon, 13 Oct 2014 22:57:31 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id le15si12235281pab.45.2014.10.13.22.57.30 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Oct 2014 22:57:31 -0700 (PDT) Received-SPF: none (google.com: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xdv5R-000737-PJ; Tue, 14 Oct 2014 05:55:57 +0000 Received: from mail-pd0-f174.google.com ([209.85.192.174]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Xdv5C-0006lA-5P for linux-arm-kernel@lists.infradead.org; Tue, 14 Oct 2014 05:55:42 +0000 Received: by mail-pd0-f174.google.com with SMTP id y13so6788197pdi.19 for ; Mon, 13 Oct 2014 22:55:19 -0700 (PDT) X-Received: by 10.70.5.194 with SMTP id u2mr3274611pdu.34.1413266119580; Mon, 13 Oct 2014 22:55:19 -0700 (PDT) Received: from kamensky-w530.hsd1.ca.comcast.net ([24.6.79.41]) by mx.google.com with ESMTPSA id n3sm12962301pda.7.2014.10.13.22.55.18 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Oct 2014 22:55:18 -0700 (PDT) From: Victor Kamensky To: will.deacon@arm.com, mark.rutland@arm.com, catalin.marinas@arm.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH] arm64: compat: fix compat types affecting struct compat_elf_prpsinfo Date: Mon, 13 Oct 2014 22:55:05 -0700 Message-Id: <1413266105-32491-2-git-send-email-victor.kamensky@linaro.org> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1413266105-32491-1-git-send-email-victor.kamensky@linaro.org> References: <1413266105-32491-1-git-send-email-victor.kamensky@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141013_225542_228266_D69E3943 X-CRM114-Status: UNSURE ( 9.69 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.0 (-) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-1.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.192.174 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.3 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.192.174 listed in wl.mailspike.net] Cc: Victor Kamensky X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: victor.kamensky@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.174 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 The compat_elf_prpsinfo structure does not match the arch/arm struct elf_pspsinfo definition. As result NT_PRPSINFO note in core file created by arm64 kernel for aarch32 (compat) process has wrong size. So gdb cannot display command that caused process crash. Fix is to change size of __compat_uid_t, __compat_gid_t so it would match size of similar fields in arch/arm case. Signed-off-by: Victor Kamensky --- arch/arm64/include/asm/compat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/include/asm/compat.h b/arch/arm64/include/asm/compat.h index 253e33b..56de5aa 100644 --- a/arch/arm64/include/asm/compat.h +++ b/arch/arm64/include/asm/compat.h @@ -37,8 +37,8 @@ typedef s32 compat_ssize_t; typedef s32 compat_time_t; typedef s32 compat_clock_t; typedef s32 compat_pid_t; -typedef u32 __compat_uid_t; -typedef u32 __compat_gid_t; +typedef u16 __compat_uid_t; +typedef u16 __compat_gid_t; typedef u16 __compat_uid16_t; typedef u16 __compat_gid16_t; typedef u32 __compat_uid32_t;