jerpelea opened a new pull request, #21202: URL: https://github.com/apache/nuttx/pull/21202
## Summary 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. ## Impact RELEASE ## Testing CI -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
