From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752930Ab1HJA5p (ORCPT ); Tue, 9 Aug 2011 20:57:45 -0400 Received: from terminus.zytor.com ([198.137.202.10]:42749 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751164Ab1HJA5o (ORCPT ); Tue, 9 Aug 2011 20:57:44 -0400 References: <20110805200945.GA14014@tassilo.jf.intel.com> <4E3C5154.2050307@zytor.com> <4E3C571C.1070903@zytor.com> <20110805205222.GK5782@one.firstfloor.org> <20110805212153.GL5782@one.firstfloor.org> <20110809150424.GO5782@one.firstfloor.org> <4E416716.1040904@zytor.com> <1312919938.17118.YahooMailNeo@web120010.mail.ne1.yahoo.com> User-Agent: K-9 Mail for Android In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: New vsyscall emulation breaks JITs From: "H. Peter Anvin" Date: Tue, 09 Aug 2011 19:56:47 -0500 To: Linus Torvalds , Andrew Lutomirski CC: Greg Lueck , Andi Kleen , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , "kimwooyoung@gmail.com" Message-ID: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Linus Torvalds wrote: >On Tue, Aug 9, 2011 at 2:04 PM, Andrew Lutomirski wrote: >> >> Here's a different proposal, then: >> >> What if the kernel had the sequence: >> >> mov $__NR_whatever,%eax >> syscall >> ret >> >> in the vsyscall page but marked the vsyscall page NX. > >This sounds like a sound idea. And then the difference between "fast >and native" and "slow and trapping" ends up literally being just the >NX bit. > > Linus Very promising idea indeed. -- Sent from my mobile phone. Please excuse my brevity and lack of formatting.