diff options
author | Rusty Russell <[email protected]> | 2015-12-22 10:39:54 +1030 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2016-01-12 12:17:28 +0100 |
commit | e27d90e8be08d96b5e047cd01daf7e62c4fcab78 (patch) | |
tree | e5c6839715f611e51d82a90716f38adee52389f7 /tools/perf/util/trace-event-scripting.c | |
parent | aa0421410fc540832f0fd267ff0f2657c3276053 (diff) |
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 <[email protected]>
Tested-by: Pavel Machek <[email protected]>
Signed-off-by: Rusty Russell <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Brian Gerst <[email protected]>
Cc: Denys Vlasenko <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions