From patchwork Thu Oct 30 23:05:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 39854 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f69.google.com (mail-ee0-f69.google.com [74.125.83.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EF831202FE for ; Thu, 30 Oct 2014 23:06:35 +0000 (UTC) Received: by mail-ee0-f69.google.com with SMTP id c41sf87149eek.4 for ; Thu, 30 Oct 2014 16:06:35 -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:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=tWfLrw2crqMPeEqIV8nBrt/aKfldTN6DC7zvVSHZylE=; b=fuF7e24qj63P2y2RgsSVRscSZe37HGGUbsSmsqN5w9h+CR5meZFHnVwCMeJKKw/xkA HSzlELozTTaX1lXnhulD3JRsWCKia2EamWVNZ1/jmhMn4vGOwbYdCuUwgDDy6E+VPtg+ 3BhK2zaxJlvmgUkVkYRR1yfi8yBxqbIlxqbfDCGKw71dV7tmeACykjSYIbogZFiuDq+a z4I7W1fP3qKPZukMpius4JvQ8XPzbme9LmE1PqO5OXktEiuBNhFT7HTgBsTlZ5rvZJsd RbRXwK8h8XOQuyYWJO/EoJRmSfe3WsDE81wjfUSixe9VBdICWaqQVy28C8Ac5tbuunng 5guA== X-Gm-Message-State: ALoCoQmCOEjJ/wW6UZnNrMht3+lIlqh/HUKW6n8V/0bB7xFURg+3wZR1GvZp+3x0jvkyQyhHp9pv X-Received: by 10.152.42.171 with SMTP id p11mr3344177lal.4.1414710395157; Thu, 30 Oct 2014 16:06:35 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.6.7 with SMTP id cq7ls408038lad.8.gmail; Thu, 30 Oct 2014 16:06:34 -0700 (PDT) X-Received: by 10.112.139.196 with SMTP id ra4mr14087892lbb.95.1414710394560; Thu, 30 Oct 2014 16:06:34 -0700 (PDT) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id tb1si14057467lbb.130.2014.10.30.16.06.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 30 Oct 2014 16:06:34 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by mail-la0-f47.google.com with SMTP id gd6so4183641lab.34 for ; Thu, 30 Oct 2014 16:06:34 -0700 (PDT) X-Received: by 10.153.8.164 with SMTP id dl4mr22195351lad.29.1414710394481; Thu, 30 Oct 2014 16:06:34 -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 c5csp120166lbz; Thu, 30 Oct 2014 16:06:33 -0700 (PDT) X-Received: by 10.68.242.164 with SMTP id wr4mr20034075pbc.148.1414710365916; Thu, 30 Oct 2014 16:06:05 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e4si2505687pdk.246.2014.10.30.16.06.05 for ; Thu, 30 Oct 2014 16:06:05 -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 S1161532AbaJ3XGB (ORCPT + 1 other); Thu, 30 Oct 2014 19:06:01 -0400 Received: from cantor2.suse.de ([195.135.220.15]:52574 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161486AbaJ3XFv (ORCPT ); Thu, 30 Oct 2014 19:05:51 -0400 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 00FCEADFF; Thu, 30 Oct 2014 23:05:26 +0000 (UTC) Received: from ku by ip4-83-240-18-248.cust.nbox.cz with local (Exim 4.83) (envelope-from ) id 1XjymU-0006wq-BF; Fri, 31 Oct 2014 00:05:26 +0100 From: Jiri Slaby To: stable@vger.kernel.org Cc: Victor Kamensky , Catalin Marinas , Jiri Slaby Subject: [patch added to the 3.12 stable tree] arm64: compat: fix compat types affecting struct compat_elf_prpsinfo Date: Fri, 31 Oct 2014 00:05:16 +0100 Message-Id: <1414710325-26505-28-git-send-email-jslaby@suse.cz> X-Mailer: git-send-email 2.1.2 In-Reply-To: <1414710325-26505-1-git-send-email-jslaby@suse.cz> References: <1414710325-26505-1-git-send-email-jslaby@suse.cz> 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: patch@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.47 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: , From: Victor Kamensky This patch has been added to the 3.12 stable tree. If you have any objections, please let us know. =============== commit 971a5b6fe634bb7b617d8c5f25b6a3ddbc600194 upstream. 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 Signed-off-by: Catalin Marinas Signed-off-by: Jiri Slaby --- 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 899af807ef0f..c30a548cee56 100644 --- a/arch/arm64/include/asm/compat.h +++ b/arch/arm64/include/asm/compat.h @@ -33,8 +33,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;