mirror of
https://github.com/apache/nuttx.git
synced 2026-10-10 07:40:27 +00:00
A signal action queued at syscall return pends PendSV for the running thread, but the same SVC can switch to another thread first. PendSV then saw that thread, the redirect was lost and the handler did not run until a later PendSV landed on the target, which could happen while it was already in arm_sigdeliver: the second redirect overwrote saved_regs, the inner delivery cleared sigdeliver and the outer one branched to address 0. ostest sighand and signest hard faulted in a protected build. The redirect is now checked against the thread being switched in, and a thread already redirected is left alone until arm_sigdeliver restores its context. Signed-off-by: Royyan Zahir <royzah@gmail.com> |
||
|---|---|---|
| .. | ||
| include | ||
| src | ||
| CMakeLists.txt | ||
| Kconfig | ||