From patchwork Fri Oct 31 13:14:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 39887 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 55972202FE for ; Fri, 31 Oct 2014 13:23:56 +0000 (UTC) Received: by mail-la0-f71.google.com with SMTP id gq15sf4115338lab.10 for ; Fri, 31 Oct 2014 06:23:55 -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: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=LS6vnLOSdhzrjYu9lBcP1b0x/Z3lZywltq5FJW4IKWg=; b=H1K1Sera2slZYEnx72C8NDPjXH4kT57/g0CRlNAubhCW7uM+3JqEfNCYpknWVb1jAn ifC1Xu1LZXBUSmR3Q1Gg2gBA/89Cty43zV9U9AdvEW7XV4RXzF73mXDgMTYXwglxOPjR 8r0t+XrimH3tW4ZAw4PcRlkxPKdGpCWf242ALIX1vNKb3OM+lzS9xEke09MW9Bq4dB7K jHrfx/ns8JSre9Gkge/URnG9luYjT+wucr6QS4AJKAPeKyOylR531SDVxbf5Dwm2a0Kx pgxgkou9KHCAUTtK+7v5JUcsbuf76qo+njwrj26LQZnzJ2BukgZs3rQHrSuOEk7xU/jV j32A== X-Gm-Message-State: ALoCoQmi6ZGrWu25Qx1G/z+/9R/caZP27vNNTHejemBDsCEa4BXt8ALfnQJNqL1HskFeMlbG0gYX X-Received: by 10.112.38.101 with SMTP id f5mr4049732lbk.7.1414761835227; Fri, 31 Oct 2014 06:23:55 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.30.40 with SMTP id p8ls391138lah.106.gmail; Fri, 31 Oct 2014 06:23:55 -0700 (PDT) X-Received: by 10.152.37.104 with SMTP id x8mr26515998laj.74.1414761835120; Fri, 31 Oct 2014 06:23:55 -0700 (PDT) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id li6si16652850lbc.87.2014.10.31.06.23.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 31 Oct 2014 06:23:55 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by mail-la0-f54.google.com with SMTP id s18so827456lam.27 for ; Fri, 31 Oct 2014 06:23:55 -0700 (PDT) X-Received: by 10.153.8.164 with SMTP id dl4mr26289908lad.29.1414761834999; Fri, 31 Oct 2014 06:23:54 -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 c5csp201188lbz; Fri, 31 Oct 2014 06:23:53 -0700 (PDT) X-Received: by 10.68.185.98 with SMTP id fb2mr22640540pbc.142.1414761333281; Fri, 31 Oct 2014 06:15:33 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id kt7si9174734pab.214.2014.10.31.06.15.32 for ; Fri, 31 Oct 2014 06:15:33 -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 S932836AbaJaNPb (ORCPT + 1 other); Fri, 31 Oct 2014 09:15:31 -0400 Received: from ip4-83-240-67-251.cust.nbox.cz ([83.240.67.251]:47636 "EHLO ip4-83-240-18-248.cust.nbox.cz" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933270AbaJaNOv (ORCPT ); Fri, 31 Oct 2014 09:14:51 -0400 Received: from ku by ip4-83-240-18-248.cust.nbox.cz with local (Exim 4.83) (envelope-from ) id 1XkC27-0004Ol-VV; Fri, 31 Oct 2014 14:14:27 +0100 From: Jiri Slaby To: stable@vger.kernel.org Cc: Victor Kamensky , Catalin Marinas , Jiri Slaby Subject: [PATCH 3.12 126/144] arm64: compat: fix compat types affecting struct compat_elf_prpsinfo Date: Fri, 31 Oct 2014 14:14:08 +0100 Message-Id: <93242d9a86bbb85b79b0d224d2c397adadb1e11c.1414759455.git.jslaby@suse.cz> X-Mailer: git-send-email 2.1.2 In-Reply-To: <8d9c8c3980a85d79db13c5ce4bb118fef32d4f50.1414759455.git.jslaby@suse.cz> References: <8d9c8c3980a85d79db13c5ce4bb118fef32d4f50.1414759455.git.jslaby@suse.cz> In-Reply-To: References: 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.54 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 3.12-stable review patch. If anyone has any objections, please let me 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;