aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2013-02-07 09:44:13 -0800
committerIngo Molnar <[email protected]>2013-02-07 19:57:44 +0100
commite575a86fdc50d013bf3ad3aa81d9100e8e6cc60d (patch)
tree04caac94b924d2a3a084f348b999f790f625b09f /tools/perf/util/scripting-engines/trace-event-python.c
parentbb9b1a834f7a916a65ba64f4812078cfbe2f4fc4 (diff)
x86: Do not leak kernel page mapping locations
Without this patch, it is trivial to determine kernel page mappings by examining the error code reported to dmesg[1]. Instead, declare the entire kernel memory space as a violation of a present page. Additionally, since show_unhandled_signals is enabled by default, switch branch hinting to the more realistic expectation, and unobfuscate the setting of the PF_PROT bit to improve readability. [1] http://vulnfactory.org/blog/2013/02/06/a-linux-memory-trick/ Reported-by: Dan Rosenberg <[email protected]> Suggested-by: Brad Spengler <[email protected]> Signed-off-by: Kees Cook <[email protected]> Cc: [email protected] Acked-by: H. Peter Anvin <[email protected]> Cc: Paul E. McKenney <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Eric W. Biederman <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Andrew Morton <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions