diff options
author | Mitsuo Hayasaka <[email protected]> | 2011-11-29 15:08:21 +0900 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2011-12-05 11:28:25 +0100 |
commit | 69682b625a043b567873e6cda397969b502f0054 (patch) | |
tree | f310cd36151a616db033db258824b0b4f3e1db80 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 8e8da023f5af71662867729db5547dc54786093c (diff) |
x86: Add user_mode_vm check in stack_overflow_check
The kernel stack overflow is checked in stack_overflow_check(),
which may wrongly detect the overflow if the stack pointer in
user space points to the kernel stack intentionally or
accidentally. So, the actual overflow is never detected after
this misdetection because WARN_ONCE() is used on the detection
of it.
This patch adds user-mode-vm checking before it to avoid this
problem and bails out early if the user stack is used.
Signed-off-by: Mitsuo Hayasaka <[email protected]>
Cc: [email protected]
Cc: Randy Dunlap <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Cc: "H. Peter Anvin" <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions