From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753154Ab1EQIAw (ORCPT ); Tue, 17 May 2011 04:00:52 -0400 Received: from mx3.mail.elte.hu ([157.181.1.138]:39477 "EHLO mx3.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752525Ab1EQIAv (ORCPT ); Tue, 17 May 2011 04:00:51 -0400 Date: Tue, 17 May 2011 10:00:29 +0200 From: Ingo Molnar To: Thomas Gleixner Cc: Andrew Lutomirski , Andi Kleen , x86@kernel.org, linux-kernel@vger.kernel.org, Linus Torvalds , "David S. Miller" , Eric Dumazet , Peter Zijlstra , Borislav Petkov Subject: Re: [PATCH v4 0/6] Micro-optimize vclock_gettime Message-ID: <20110517080029.GB22093@elte.hu> References: <20110516160943.GC25898@one.firstfloor.org> <20110516164939.GD25898@one.firstfloor.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-08-17) X-ELTE-SpamScore: -2.0 X-ELTE-SpamLevel: X-ELTE-SpamCheck: no X-ELTE-SpamVersion: ELTE 2.0 X-ELTE-SpamCheck-Details: score=-2.0 required=5.9 tests=BAYES_00 autolearn=no SpamAssassin version=3.3.1 -2.0 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Thomas Gleixner wrote: > > see if I can persuade Uli to take accept a glibc patch to stop calling it > > in future static glibc versions. > > How wide spread is this in reality on 64bit systems ? > > IOW, what's the damage if we take a trap and emulate it in the most painful > way we can come up with ? Well, how does that differ from having the real syscall instruction there? How are we going to filter real (old-)glibc calls from exploits? If it can be filtered in a meaningful way then we should just do that and perhaps offer a (default enabled) .config COMPAT_VDSO_EMU=y switch to turn the emulation off. That way we keep the ABI and also have a way out for users who *really* need this to work in a performant way. Thanks, Ingo