public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* arch/x86/kernel/vsyscall_64.c: overeager NOP of syscalls
@ 2008-02-20 13:57 Arne Georg Gleditsch
  2008-02-20 18:08 ` Thomas Gleixner
  2008-02-21 15:58 ` Andi Kleen
  0 siblings, 2 replies; 10+ messages in thread
From: Arne Georg Gleditsch @ 2008-02-20 13:57 UTC (permalink / raw)
  To: linux-kernel
  Cc: John Stultz, Ingo Molnar, Thomas Gleixner, Andi Kleen,
	Roman Zippel

Hi,

I'm looking at 2.6.25-rc2.  vsyscall_sysctl_change contains code to NOP
out the actual system call instructions of the vsyscall page when
vsyscall64 is enabled.  This seems to interact badly with the fallback
code in do_vgettimeofday which tries to call gettimeofday if the
configured clock source does not support vread.  (In effect,
gettimeofday() becomes a nop and time() always returns 0.  Not very
useful.)

Is there a good reason to keep this?  Aren't the instructions in
question avoided (or invoked) according to the vsyscall64 flag by the
surrounding logic anyway?

-- 
								Arne.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2008-02-22 12:55 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-20 13:57 arch/x86/kernel/vsyscall_64.c: overeager NOP of syscalls Arne Georg Gleditsch
2008-02-20 18:08 ` Thomas Gleixner
2008-02-21 15:58 ` Andi Kleen
2008-02-21 19:45   ` Thomas Gleixner
2008-02-21 20:02     ` john stultz
2008-02-21 20:47       ` Thomas Gleixner
2008-02-21 20:59         ` Thomas Gleixner
2008-02-22 12:55           ` Andi Kleen
2008-02-22 12:49     ` Andi Kleen
2008-02-22 10:38   ` Arne Georg Gleditsch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox