Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

parisc: fix tracing of signals

Mike Frysinger pointed out that calling tracehook_signal_handler with
stepping=0 missed testing the thread flags, resulting in not calling
ptrace_notify. Fix this by testing if we're single stepping or branch
stepping and setting the flag accordingly.

Tested, seems to work.

Reported-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Kyle McMartin and committed by
Linus Torvalds
22a8cdd6 0e9695d9

+3 -1
+3 -1
arch/parisc/kernel/signal.c
··· 468 468 recalc_sigpending(); 469 469 spin_unlock_irq(&current->sighand->siglock); 470 470 471 - tracehook_signal_handler(sig, info, ka, regs, 0); 471 + tracehook_signal_handler(sig, info, ka, regs, 472 + test_thread_flag(TIF_SINGLESTEP) || 473 + test_thread_flag(TIF_BLOCKSTEP)); 472 474 473 475 return 1; 474 476 }