diff options
author | Jiri Olsa <[email protected]> | 2011-02-21 15:25:13 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2011-03-08 17:22:12 +0100 |
commit | 2a8247a2600c3e087a568fc68a6ec4eedac27ef1 (patch) | |
tree | df834946650e392288b93e318377702aaa9fe055 /drivers/scsi/mpt2sas/mpi/mpi2_raid.h | |
parent | ea7145477a461e09d8d194cac4b996dc4f449107 (diff) |
kprobes: Disabling optimized kprobes for entry text section
You can crash the kernel (with root/admin privileges) using kprobe tracer by running:
echo "p system_call_after_swapgs" > ./kprobe_events
echo 1 > ./events/kprobes/enable
The reason is that at the system_call_after_swapgs label, the
kernel stack is not set up. If optimized kprobes are enabled,
the user space stack is being used in this case (see optimized
kprobe template) and this might result in a crash.
There are several places like this over the entry code
(entry_$BIT). As it seems there's no any reasonable/maintainable
way to disable only those places where the stack is not ready, I
switched off the whole entry code from kprobe optimizing.
Signed-off-by: Jiri Olsa <[email protected]>
Acked-by: Masami Hiramatsu <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions