diff options
author | Oleg Nesterov | 2015-07-21 15:40:08 +0200 |
---|---|---|
committer | Ingo Molnar | 2015-07-31 10:38:03 +0200 |
commit | 0b5256c7f173258b19d98364adb57f707dda22f3 (patch) | |
tree | abc5d9b982f73c133235fd7e955e29780f8c8c69 /fs/ceph/super.c | |
parent | uprobes: Introduce free_ret_instance() (diff) | |
download | kernel-qcow2-linux-0b5256c7f173258b19d98364adb57f707dda22f3.tar.gz kernel-qcow2-linux-0b5256c7f173258b19d98364adb57f707dda22f3.tar.xz kernel-qcow2-linux-0b5256c7f173258b19d98364adb57f707dda22f3.zip |
uprobes: Send SIGILL if handle_trampoline() fails
1. It doesn't make sense to continue if handle_trampoline()
fails, change handle_swbp() to always return after this call.
2. Turn pr_warn() into uprobe_warn(), and change
handle_trampoline() to send SIGILL on failure. It is pointless to
return to user mode with the corrupted instruction_pointer() which
we can't restore.
Tested-by: Pratyush Anand <panand@redhat.com>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Acked-by: Anton Arapov <arapov@gmail.com>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20150721134008.GA4745@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'fs/ceph/super.c')
0 files changed, 0 insertions, 0 deletions