pussuw opened a new pull request, #8227: URL: https://github.com/apache/nuttx/pull/8227
## Summary There were two issues with signal handling: - With a kernel stack the "info" parameter was passed from kernel memory. This is fixed by making a stack frame to the user stack and copying it there. - If the signal handler uses a system call, the kernel stack was completely and unconditionally destroyed, resulting in a crash in the user application There is also no need to check ustkptr, it is always NULL. Why ? Because signal delivery is deferred when a system call is being executed. ## Impact Fixes signal dispatch logic when CONFIG_ARCH_KERNEL_STACK=y ## Testing icicle:knsh -- 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]
