Re: arch/x86/kernel/vsyscall_64.c: overeager NOP of syscalls

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Thomas Gleixner
Date: Wednesday, February 20, 2008 - 11:08 am

Arne,

On Wed, 20 Feb 2008, Arne Georg Gleditsch wrote:

Indeed.
 

The initial intent of this was to make it harder for malicious code to
attack via the vsysall area.

But you are right, the code is indeed fundamentally unsafe in various
aspects:

1) the patching code runs without synchronizing other CPUs

2) it inserts NOPs even if there is no clock source which provides
vread

3) when the clock source changes to one without vread we run in
exactly the same problem as in #2

The correct solution is randomizing that area, but that's definitely
not an ad hoc fix.

Thanks for pointing this out. I'm looking into fixing this ASAP.

       tglx
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
arch/x86/kernel/vsyscall_64.c: overeager NOP of syscalls, Arne Georg Gleditsch, (Wed Feb 20, 6:57 am)
Re: arch/x86/kernel/vsyscall_64.c: overeager NOP of syscalls, Thomas Gleixner, (Wed Feb 20, 11:08 am)
Re: arch/x86/kernel/vsyscall_64.c: overeager NOP of syscalls, Thomas Gleixner, (Thu Feb 21, 12:45 pm)
Re: arch/x86/kernel/vsyscall_64.c: overeager NOP of syscalls, Thomas Gleixner, (Thu Feb 21, 1:47 pm)
Re: arch/x86/kernel/vsyscall_64.c: overeager NOP of syscalls, Thomas Gleixner, (Thu Feb 21, 1:59 pm)
Re: arch/x86/kernel/vsyscall_64.c: overeager NOP of syscalls, Arne Georg Gleditsch, (Fri Feb 22, 3:38 am)