From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754490Ab1HJRrf (ORCPT ); Wed, 10 Aug 2011 13:47:35 -0400 Received: from mail-yx0-f174.google.com ([209.85.213.174]:33517 "EHLO mail-yx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754409Ab1HJRre convert rfc822-to-8bit (ORCPT ); Wed, 10 Aug 2011 13:47:34 -0400 MIME-Version: 1.0 In-Reply-To: <4E42BDFF.5060507@zytor.com> References: <8449fb3abf89851fd6b2260972666a6f82542284.1312988155.git.luto@mit.edu> <4E42BDFF.5060507@zytor.com> From: Andrew Lutomirski Date: Wed, 10 Aug 2011 13:47:13 -0400 X-Google-Sender-Auth: 5noRZ1-ITt4-gpmIP2P4-bRHiRU Message-ID: Subject: Re: [PATCH 3/3] x86-64: Rework vsyscall emulation and add vsyscall= parameter To: "H. Peter Anvin" Cc: x86@kernel.org, Andi Kleen , linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, lueckintel@yahoo.com, kimwooyoung@gmail.com, Ingo Molnar , Borislav Petkov 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 Wed, Aug 10, 2011 at 1:21 PM, H. Peter Anvin wrote: > On 08/10/2011 10:15 AM, Andy Lutomirski wrote: >> There are three choices: >> >> vsyscall=native: Vsyscalls are native code that issues the >> corresponding syscalls. >> >> vsyscall=emulate (default): Vsyscalls are emulated by instruction >> fault traps, tested in the bad_area path.  The actual contents of >> the vsyscall page is the same as the vsyscall=native case except >> that it's marked NX.  This way programs that make assumptions about >> what the code in the page does will not be confused when they read >> that code. >> >> vsyscall=none: Trying to execute a vsyscall will segfault. >> >> Signed-off-by: Andy Lutomirski > > Hi Andy, > > This patch doesn't apply.  What is your baseline for this patch? My baseline was a commit that probably only lives in my tree, but the patches should apply cleanly on top of c149a665ac488e0dac22a42287f45ad1bda06ff1, which is the current tip/x86/vdso. --Andy