From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Thu, 26 Feb 2015 23:43:32 +0100 (CET) Received: from mail-ie0-f181.google.com ([209.85.223.181]:39465 "EHLO mail-ie0-f181.google.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S27007512AbbBZWn3ns2dZ (ORCPT ); Thu, 26 Feb 2015 23:43:29 +0100 Received: by iecvy18 with SMTP id vy18so22415143iec.6 for ; Thu, 26 Feb 2015 14:43:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=qVMJc6H1uZ1GtAMXjzXmnl+/FujOSjqvvy+qIxFrQpw=; b=C4U5yPUw7G+dSqkenxQduFVbO4ohX+uMFjBNk/mE310WT/yulO5gRG72ANFmHX9XqW YaJIYhopQgfcd0jFTkzuak7Xu+17t4k6MuX14S1DHWj43hwqwdmv+kQy4lVZIAnzHBvS TqM1bGBl1EmUSlzppa3dXdjnTVWgdC2KPWteJM2Ea19N8qWmtHmFNUsrMgXz7ThYWhEd qSEURZpH/H0sHwa7clWp5vy9ycu8zhe93qBcSjoZW2k/cLiWJxgBNZ4SocAYf/pqx6WV K36daw2hyGF7aqCUB74YIjltVoP3J7lBm7nda+ZPlwW3Qa1McIjfRh8v3lhf2LFtQcTx mocA== X-Received: by 10.107.46.230 with SMTP id u99mr14620558iou.21.1424990604425; Thu, 26 Feb 2015 14:43:24 -0800 (PST) Received: from dl.caveonetworks.com (64.2.3.194.ptr.us.xo.net. [64.2.3.194]) by mx.google.com with ESMTPSA id f1sm1174589iof.30.2015.02.26.14.43.22 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 26 Feb 2015 14:43:23 -0800 (PST) Message-ID: <54EFA189.3010509@gmail.com> Date: Thu, 26 Feb 2015 14:43:21 -0800 From: David Daney User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: Andrew Morton CC: Ingo Molnar , Hector Marco Gisbert , Kees Cook , LKML , ismael Ripoll , "x86@kernel.org" , "linux-arm-kernel@lists.infradead.org" , Linux MIPS Mailing List , linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] Fix offset2lib issue for x86*, ARM*, PowerPC and MIPS References: <54EB735F.5030207@upv.es> <20150223205436.15133mg1kpyojyik@webmail.upv.es> <20150224073906.GA16422@gmail.com> <20150226143815.09386fe280c7bd8797048bb2@linux-foundation.org> In-Reply-To: <20150226143815.09386fe280c7bd8797048bb2@linux-foundation.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 46012 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: ddaney.cavm@gmail.com Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips On 02/26/2015 02:38 PM, Andrew Morton wrote: [...] > > From: Andrew Morton > Subject: fix-offset2lib-issue-for-x86-arm-powerpc-and-mips-fix > > Consolidate randomize_et_dyn() implementations into fs/binfmt_elf.c. > > There doesn't seem to be a compile-time way of making randomize_et_dyn() > go away on architectures which don't need it, so mark it __weak to cause > it to be discarded at link time. > > Cc: "H. Peter Anvin" > Cc: Benjamin Herrenschmidt > Cc: Catalin Marinas > Cc: Hector Marco Gisbert > Cc: Hector Marco-Gisbert > Cc: Ingo Molnar > Cc: Ismael Ripoll > Cc: Kees Cook > Cc: Ralf Baechle > Cc: Russell King > Cc: Thomas Gleixner > Cc: Will Deacon > Signed-off-by: Andrew Morton [...] > diff -puN arch/arm64/include/asm/elf.h~fix-offset2lib-issue-for-x86-arm-powerpc-and-mips-fix arch/arm64/include/asm/elf.h > --- a/arch/arm64/include/asm/elf.h~fix-offset2lib-issue-for-x86-arm-powerpc-and-mips-fix > +++ a/arch/arm64/include/asm/elf.h > @@ -1,5 +1,5 @@ > /* > - * Copyright (C) 2012 ARM Ltd. > + * Copyright (C) 20q12 ARM Ltd. This particular change looks like it may be a typo. > * > * This program is free software; you can redistribute it and/or modify > * it under the terms of the GNU General Public License version 2 as From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ie0-x232.google.com (mail-ie0-x232.google.com [IPv6:2607:f8b0:4001:c03::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 7222D1A005A for ; Fri, 27 Feb 2015 09:43:28 +1100 (AEDT) Received: by iecrl12 with SMTP id rl12so22428239iec.4 for ; Thu, 26 Feb 2015 14:43:24 -0800 (PST) Message-ID: <54EFA189.3010509@gmail.com> Date: Thu, 26 Feb 2015 14:43:21 -0800 From: David Daney MIME-Version: 1.0 To: Andrew Morton Subject: Re: [PATCH] Fix offset2lib issue for x86*, ARM*, PowerPC and MIPS References: <54EB735F.5030207@upv.es> <20150223205436.15133mg1kpyojyik@webmail.upv.es> <20150224073906.GA16422@gmail.com> <20150226143815.09386fe280c7bd8797048bb2@linux-foundation.org> In-Reply-To: <20150226143815.09386fe280c7bd8797048bb2@linux-foundation.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Cc: Linux MIPS Mailing List , Kees Cook , "x86@kernel.org" , Hector Marco Gisbert , LKML , "linux-arm-kernel@lists.infradead.org" , linuxppc-dev@lists.ozlabs.org, Ingo Molnar , ismael Ripoll List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 02/26/2015 02:38 PM, Andrew Morton wrote: [...] > > From: Andrew Morton > Subject: fix-offset2lib-issue-for-x86-arm-powerpc-and-mips-fix > > Consolidate randomize_et_dyn() implementations into fs/binfmt_elf.c. > > There doesn't seem to be a compile-time way of making randomize_et_dyn() > go away on architectures which don't need it, so mark it __weak to cause > it to be discarded at link time. > > Cc: "H. Peter Anvin" > Cc: Benjamin Herrenschmidt > Cc: Catalin Marinas > Cc: Hector Marco Gisbert > Cc: Hector Marco-Gisbert > Cc: Ingo Molnar > Cc: Ismael Ripoll > Cc: Kees Cook > Cc: Ralf Baechle > Cc: Russell King > Cc: Thomas Gleixner > Cc: Will Deacon > Signed-off-by: Andrew Morton [...] > diff -puN arch/arm64/include/asm/elf.h~fix-offset2lib-issue-for-x86-arm-powerpc-and-mips-fix arch/arm64/include/asm/elf.h > --- a/arch/arm64/include/asm/elf.h~fix-offset2lib-issue-for-x86-arm-powerpc-and-mips-fix > +++ a/arch/arm64/include/asm/elf.h > @@ -1,5 +1,5 @@ > /* > - * Copyright (C) 2012 ARM Ltd. > + * Copyright (C) 20q12 ARM Ltd. This particular change looks like it may be a typo. > * > * This program is free software; you can redistribute it and/or modify > * it under the terms of the GNU General Public License version 2 as From mboxrd@z Thu Jan 1 00:00:00 1970 From: ddaney.cavm@gmail.com (David Daney) Date: Thu, 26 Feb 2015 14:43:21 -0800 Subject: [PATCH] Fix offset2lib issue for x86*, ARM*, PowerPC and MIPS In-Reply-To: <20150226143815.09386fe280c7bd8797048bb2@linux-foundation.org> References: <54EB735F.5030207@upv.es> <20150223205436.15133mg1kpyojyik@webmail.upv.es> <20150224073906.GA16422@gmail.com> <20150226143815.09386fe280c7bd8797048bb2@linux-foundation.org> Message-ID: <54EFA189.3010509@gmail.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 02/26/2015 02:38 PM, Andrew Morton wrote: [...] > > From: Andrew Morton > Subject: fix-offset2lib-issue-for-x86-arm-powerpc-and-mips-fix > > Consolidate randomize_et_dyn() implementations into fs/binfmt_elf.c. > > There doesn't seem to be a compile-time way of making randomize_et_dyn() > go away on architectures which don't need it, so mark it __weak to cause > it to be discarded at link time. > > Cc: "H. Peter Anvin" > Cc: Benjamin Herrenschmidt > Cc: Catalin Marinas > Cc: Hector Marco Gisbert > Cc: Hector Marco-Gisbert > Cc: Ingo Molnar > Cc: Ismael Ripoll > Cc: Kees Cook > Cc: Ralf Baechle > Cc: Russell King > Cc: Thomas Gleixner > Cc: Will Deacon > Signed-off-by: Andrew Morton [...] > diff -puN arch/arm64/include/asm/elf.h~fix-offset2lib-issue-for-x86-arm-powerpc-and-mips-fix arch/arm64/include/asm/elf.h > --- a/arch/arm64/include/asm/elf.h~fix-offset2lib-issue-for-x86-arm-powerpc-and-mips-fix > +++ a/arch/arm64/include/asm/elf.h > @@ -1,5 +1,5 @@ > /* > - * Copyright (C) 2012 ARM Ltd. > + * Copyright (C) 20q12 ARM Ltd. This particular change looks like it may be a typo. > * > * This program is free software; you can redistribute it and/or modify > * it under the terms of the GNU General Public License version 2 as