diff options
author | Oleg Nesterov <[email protected]> | 2012-03-23 15:02:39 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2012-03-23 16:58:40 -0700 |
commit | 15cab952139404d0e593cb1aaab0a3547ac0f95b (patch) | |
tree | 0b8554db2eadd6782774e4448e43fb40dcc11c35 /net/lapb/lapb_timer.c | |
parent | d533df07c20c7b59b0559a3ac38fb45c81ffd6bb (diff) |
ptrace: the killed tracee should not enter the syscall
Another old/known problem. If the tracee is killed after it reports
syscall_entry, it starts the syscall and debugger can't control this.
This confuses the users and this creates the security problems for
ptrace jailers.
Change tracehook_report_syscall_entry() to return non-zero if killed,
this instructs syscall_trace_enter() to abort the syscall.
Reported-by: Chris Evans <[email protected]>
Tested-by: Indan Zupancic <[email protected]>
Signed-off-by: Oleg Nesterov <[email protected]>
Cc: Denys Vlasenko <[email protected]>
Cc: Tejun Heo <[email protected]>
Cc: Pedro Alves <[email protected]>
Cc: Jan Kratochvil <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions