Commit ca4fafe0 authored by Rich Felker's avatar Rich Felker Committed by Khalid Elmously

sh: fix debug trap failure to process signals before return to user

BugLink: https://bugs.launchpad.net/bugs/1775771

[ Upstream commit 96a59899 ]

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: default avatarRich Felker <dalias@libc.org>
Signed-off-by: default avatarSasha Levin <alexander.levin@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarJuerg Haefliger <juergh@canonical.com>
Signed-off-by: default avatarKhalid Elmously <khalid.elmously@canonical.com>
parent db3cbc39
...@@ -255,7 +255,7 @@ debug_trap: ...@@ -255,7 +255,7 @@ debug_trap:
mov.l @r8, r8 mov.l @r8, r8
jsr @r8 jsr @r8
nop nop
bra __restore_all bra ret_from_exception
nop nop
CFI_ENDPROC CFI_ENDPROC
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment