Skip to content

Commit

Permalink
sh: fix debug trap failure to process signals before return to user
Browse files Browse the repository at this point in the history
When responding to a debug trap (breakpoint) in userspace, the
kernel's trap handler raised SIGTRAP but returned from the trap via a
code path that ignored pending signals, resulting in an infinite loop
re-executing the trapping instruction.

Signed-off-by: Rich Felker <dalias@libc.org>
  • Loading branch information
Rich Felker committed Apr 12, 2018
1 parent eb6b693 commit 96a5989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sh/kernel/entry-common.S
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ debug_trap:
mov.l @r8, r8
jsr @r8
nop
bra __restore_all
bra ret_from_exception
nop
CFI_ENDPROC

Expand Down

0 comments on commit 96a5989

Please sign in to comment.