diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2015-12-22 01:09:54 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-01-12 12:17:28 +0100 |
commit | e27d90e8be08d96b5e047cd01daf7e62c4fcab78 (patch) | |
tree | e5c6839715f611e51d82a90716f38adee52389f7 /arch/arm/mach-omap2 | |
parent | x86/boot: Hide local labels in verify_cpu() (diff) | |
download | linux-e27d90e8be08d96b5e047cd01daf7e62c4fcab78.tar.xz linux-e27d90e8be08d96b5e047cd01daf7e62c4fcab78.zip |
lguest: Map switcher text R/O
Pavel noted that lguest maps the switcher code executable and
read-write. This is a bad idea for any kernel text, but
particularly for text mapped at a fixed address.
Create two vmas, one for the text (PAGE_KERNEL_RX) and another
for the stacks (PAGE_KERNEL). Use VM_NO_GUARD to map them
adjacent (as expected by the rest of the code).
Reported-by: Pavel Machek <pavel@ucw.cz>
Tested-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/arm/mach-omap2')
0 files changed, 0 insertions, 0 deletions