From patchwork Wed Oct 15 06:11:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Victor Kamensky X-Patchwork-Id: 5084021 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 D06899F295 for ; Wed, 15 Oct 2014 06:16:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F083C20117 for ; Wed, 15 Oct 2014 06:16:00 +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 075BB2010E for ; Wed, 15 Oct 2014 06:16:00 +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 1XeHog-0006g3-5y; Wed, 15 Oct 2014 06:12:10 +0000 Received: from mail-pa0-f42.google.com ([209.85.220.42]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XeHod-0006dV-8D for linux-arm-kernel@lists.infradead.org; Wed, 15 Oct 2014 06:12:07 +0000 Received: by mail-pa0-f42.google.com with SMTP id bj1so699139pad.15 for ; Tue, 14 Oct 2014 23:11:45 -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; bh=4dAbW4pwJuU5Gkf9btvzFPI7ULucALIGLMxTpe9wVcg=; b=OkJWSVcYPW5xPGzKc9Jggi2cbvaoBG0DGCVoCKlcMJtw2aB67KU6MnB9sEZh1AgYRN KE0bnNT+HvYWCr7jhFlYzp5JgvUIxcUMWCY2Q7YOVkTdo8eg51BrgP4EL5UT64GOmP1E 4mZtbQxM2WC09OcCMoIdfXEKxacjZCp2Cy+I9gbRVWWjos/I5On+K2cuy6Vq5Pj5SPwK unIrnqBoMYuXXbb3s4v70ODnL+F21jSy+O/B5Rlq0dzLFhlJLUKpyNCNaUj7Jf2d4H09 3NgDxACRPAIqxRGvuNbzwBwzBVHPOt8rBdG0pqAWfJvD6Ey+5QZ6GCHBjBWhgSuOv+aK u4Zg== X-Gm-Message-State: ALoCoQnK9AALvuijPxCmaTale3A0DFx0eDFucknrmOYQPUuVEBMY4Hju+J6z5HDl2miqKsyOkove X-Received: by 10.68.213.101 with SMTP id nr5mr9921124pbc.81.1413353505569; Tue, 14 Oct 2014 23:11:45 -0700 (PDT) Received: from kamensky-w530.hsd1.ca.comcast.net ([24.6.79.41]) by mx.google.com with ESMTPSA id zr2sm7574904pbb.83.2014.10.14.23.11.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Oct 2014 23:11:44 -0700 (PDT) From: Victor Kamensky To: catalin.marinas@arm.com, arnd@arndb.de Subject: [PATCH] arm64: compat: fix compat types affecting struct compat_elf_prpsinfo Date: Tue, 14 Oct 2014 23:11:36 -0700 Message-Id: <1413353496-4778-1-git-send-email-victor.kamensky@linaro.org> X-Mailer: git-send-email 1.8.1.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141014_231207_341744_4A9B4E5B X-CRM114-Status: UNSURE ( 8.97 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: mark.rutland@arm.com, will.deacon@arm.com, stable@vger.kernel.org, linux-arm-kernel@lists.infradead.org, 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 Acked-by: Arnd Bergmann Cc: stable@vger.kernel.org --- 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;