From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754667Ab3CKVmg (ORCPT ); Mon, 11 Mar 2013 17:42:36 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:47147 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753313Ab3CKVmf (ORCPT ); Mon, 11 Mar 2013 17:42:35 -0400 Date: Mon, 11 Mar 2013 14:42:34 -0700 From: Andrew Morton To: Kees Cook Cc: Greg KH , Ben Hutchings , Luis Henriques , LKML , Julien Tinnes , PaX Team , Emese Revfy Subject: Re: + signal-always-clear-sa_restorer-on-execve.patch added to -mm tree Message-Id: <20130311144234.88e2f35792a5157f9fb45c64@linux-foundation.org> In-Reply-To: References: <20130311202255.942745A4121@corp2gmr1-2.hot.corp.google.com> <20130311140130.7effd02d12236dff081646d5@linux-foundation.org> <20130311142218.272033794123531b119ca68e@linux-foundation.org> X-Mailer: Sylpheed 3.2.0beta5 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 11 Mar 2013 14:33:18 -0700 Kees Cook wrote: > > patch #1: use SA_RESTORER, cc stable (please promise me this will work OK) > > I don't have the ability to build all the architectures, but it seems > like the best flag based on code review. SA_RESTORER looks OK back to 3.5 (at least). > > patch #2: switch to __ARCH_HAS_SA_RESTORER, no cc stable > > > > I'm assuming this is all for 3.10, btw. If you think it should be in > > 3.9 then you need to write scarier changelogs. > > Well, I'm not sure it needs to be scarier; it's a serious local ASLR > info leak. I was hoping it could go into 3.9 since the expectation is > for it to go to stable, so why not put it in 3.9 now? OK. > Do you want me to spin up the 2-patch solution or is it too much of a hack? Is OK, I have it all lined up.