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: vkamensky X-Patchwork-Id: 38766 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 70B8C20973 for ; Wed, 15 Oct 2014 06:11:51 +0000 (UTC) Received: by mail-lb0-f199.google.com with SMTP id w7sf272971lbi.10 for ; Tue, 14 Oct 2014 23:11:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=BZzN5ieXHQJzWR9+vj/ShcHKmx30ttjbasnPngLau08=; b=T2TryR6ww/pTWvbRN5OyhUv8Us7xC/mP/eI+hGlsDZ5RnYnFEIElnJihQrSZVpUO0H GI1R+SAGxb81ZSj7xksVj0oi2fHF7WBj72/MpykHZAqh/iVFUUv6VR664EgpmA/9Z+Bz sXb5N+CeKAc47HELjofZdCGbaiObMa4Uw4PvBeOgplG2R1FZRgqOREzVJKetr3xNI4I5 A4qfTanXsbiPzSwg2oeGDwtOapfpvPTaE1CNniYpRk61em0cOVVbHfNClL1e3Z/MdcFG HlySYYPu/8Nl7vzx24AJsni8Zdmhuxi+HhLDEzzWjIlofe2CadFdMvB3bPfE+cRmfoNy jChw== X-Gm-Message-State: ALoCoQlmOzEgR1BxTUxXWiUtgrIxmD84d9db4pTPugUhEi79WxvG5UFz8QnHmj7M7zBJiR2odNz8 X-Received: by 10.194.100.98 with SMTP id ex2mr125744wjb.6.1413353510240; Tue, 14 Oct 2014 23:11:50 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.206.72 with SMTP id lm8ls19101lac.9.gmail; Tue, 14 Oct 2014 23:11:49 -0700 (PDT) X-Received: by 10.152.27.67 with SMTP id r3mr9921840lag.19.1413353509947; Tue, 14 Oct 2014 23:11:49 -0700 (PDT) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com [209.85.215.41]) by mx.google.com with ESMTPS id dt6si29237470lbc.17.2014.10.14.23.11.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 14 Oct 2014 23:11:49 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by mail-la0-f41.google.com with SMTP id pn19so455947lab.0 for ; Tue, 14 Oct 2014 23:11:49 -0700 (PDT) X-Received: by 10.152.36.103 with SMTP id p7mr9965691laj.44.1413353509837; Tue, 14 Oct 2014 23:11:49 -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 c5csp536658lbz; Tue, 14 Oct 2014 23:11:48 -0700 (PDT) X-Received: by 10.70.5.164 with SMTP id t4mr10573335pdt.48.1413353507879; Tue, 14 Oct 2014 23:11:47 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bf2si14871308pbb.76.2014.10.14.23.11.47 for ; Tue, 14 Oct 2014 23:11:47 -0700 (PDT) Received-SPF: none (google.com: stable-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750774AbaJOGLq (ORCPT + 1 other); Wed, 15 Oct 2014 02:11:46 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:47460 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750737AbaJOGLq (ORCPT ); Wed, 15 Oct 2014 02:11:46 -0400 Received: by mail-pa0-f47.google.com with SMTP id rd3so689416pab.34 for ; Tue, 14 Oct 2014 23:11:45 -0700 (PDT) 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 Cc: will.deacon@arm.com, mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org, Victor Kamensky , stable@vger.kernel.org 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 Sender: stable-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: stable@vger.kernel.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.215.41 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 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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;