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: Victor Kamensky X-Patchwork-Id: 5077911 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 496789F349 for ; Tue, 14 Oct 2014 05:58:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8809020148 for ; Tue, 14 Oct 2014 05:58:15 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B7C2E20142 for ; Tue, 14 Oct 2014 05:58:14 +0000 (UTC) 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-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=5+PB7XmLn02C/APRPasUiKe1bLlw9PovEtzVCxxeaDU=; b=kzElDE/Jtyozsd56I8wdIgUue/xLd6u5GmTJrUlXiSTRHq8ek9nfwtmZ9ujuk54zWF qW9gvppKh7mAluP4mCdL7Bs/sjpsevcW3Wmm1JM6kf0C0UnsCsdyu08Vvt5ZzGcgXdqH CU1dpqjAOaC3EXeAQxu/XsYPHBR7JhzVLtNV3OffY8QH6NgSVFkugvisrC6QQ5XNyGu0 GPTx/mygYSSLjX8KUnLxi/GsFS+wA4sIEWf3tqQePE713S6J9v//6XRjX/29Eot8+x2I WQ5qhD4CF9JwMHCn+Uyl/XCGFtJV9rS687s/iuDcfQNDnoOT+d4XXHy/CF693v7dkq71 FrfA== X-Gm-Message-State: ALoCoQk7jko3N4xFlEcQRWla7kaEHP2smJxKl8GbBHbE7tdrO59We/YS1lHRAP+y2MNwB2rDulyu 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 (-) 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+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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;