diff options
author | Andy Lutomirski <luto@kernel.org> | 2015-07-31 03:32:42 (GMT) |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2015-08-04 08:16:55 (GMT) |
commit | 27747f8bc355a2808ca9e490ab6866acd85b4c16 (patch) | |
tree | 27a6a89c2e8497cdf79e461e1084fb872e62987c /kernel/events | |
parent | ab513927ab449af00cc70b0269e15ee80dd537f9 (diff) | |
download | linux-27747f8bc355a2808ca9e490ab6866acd85b4c16.tar.xz |
perf/x86/hw_breakpoints: Fix check for kernel-space breakpoints
The check looked wrong, although I think it was actually safe. TASK_SIZE
is unnecessarily small for compat tasks, and it wasn't possible to make
a range breakpoint so large it started in user space and ended in kernel
space.
Nonetheless, let's fix up the check for the benefit of future
readers. A breakpoint is in the kernel if either end is in the
kernel.
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/136be387950e78f18cea60e9d1bef74465d0ee8f.1438312874.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/events')
0 files changed, 0 insertions, 0 deletions