]> git.baikalelectronics.ru Git - kernel.git/commit
sh: fix debug trap failure to process signals before return to user
authorRich Felker <dalias@libc.org>
Fri, 16 Mar 2018 00:01:36 +0000 (20:01 -0400)
committerRich Felker <dalias@libc.org>
Thu, 12 Apr 2018 23:47:52 +0000 (19:47 -0400)
commitdd4108b3282258fcd53c0c45bcea503a7a6dce4e
treee98fa02d3b025abe1a3bd55d804a64e4259bcdf5
parentc5c3f73a214188f8eaf5ec4fed98d56687850c02
sh: fix debug trap failure to process signals before return to user

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>
arch/sh/kernel/entry-common.S