Thread (2 messages) 2 messages, 2 authors, 2022-03-18

Re: [PATCH 2/2] ptrace: Return the signal to continue with from ptrace_stop

From: Oleg Nesterov <oleg@redhat.com>
Date: 2022-03-18 19:43:55
Also in: lkml

On 03/17, Eric W. Biederman wrote:
Oleg Nesterov [off-list ref] writes:
quoted
OK, I like it... but can't we remove the ugly "int clear_code" arg?
The flag clear_code controls what happens if a ptrace_stop does not
stop.  In particular clear_code means do not continue with
a signal if we can not stop.

For do_jobctl_trap calling ptrace_stop it clearly does not matter.

For ptrace_signal it would be a change in behavior, that would
cause the signal not to be delivered.
Well I meant that "clear_code" should be false, iirc only
ptrace_report_syscall() should be updated to void the spurious
send_sig() if debugger exits... Nevermind, pleasee forget, this is
not as trivial as I thought.

Acked-by: Oleg Nesterov <oleg@redhat.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help