From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759032Ab1JFSfH (ORCPT ); Thu, 6 Oct 2011 14:35:07 -0400 Received: from mail-ww0-f44.google.com ([74.125.82.44]:64992 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758996Ab1JFSfD convert rfc822-to-8bit (ORCPT ); Thu, 6 Oct 2011 14:35:03 -0400 MIME-Version: 1.0 In-Reply-To: References: <20111003090846.GA25136@localhost.pp.htv.fi> <20111003173359.GA3072@localhost.pp.htv.fi> <20111005223055.GG14406@localhost.pp.htv.fi> From: Linus Torvalds Date: Thu, 6 Oct 2011 11:34:41 -0700 X-Google-Sender-Auth: Ouksv4C-M0wCmyAkDgh6Eh-8V80 Message-ID: Subject: Re: [3.1 patch] x86: default to vsyscall=native To: Andrew Lutomirski Cc: richard -rw- weinberger , Adrian Bunk , "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , x86@kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 6, 2011 at 11:16 AM, Andrew Lutomirski wrote: > > Fixing it will be annoying because the attached fancier version needs > to work, too.  I could implement the whole mess in software, but it > might be nicer to arrange for uaccess errors to stash some information > somewhere (like in the thread_struct cr2 variable). That should be easy enough to do. Just add it to the "fixup_exception()" case in no_context(). Linus