[BUG] SMP signal dispatch seems racy #14807
Labels
Arch: all
Issues that apply to all architectures
Area: Kernel
Kernel issues
OS: Mac
Issues related to MacOS (building system, etc)
Type: Bug
Something isn't working
Description / Steps to reproduce the issue
the signal sending logic (kill) basically does:
as nxsched_smp_call_single drops the critical section, there seems to be nothing to prevent the signal mask from changing in the meantime. it can end up with a signal delivered while being blocked.
similarly, the need_restore logic in sig_handler seems dangerous as it can revert unrelated changes to those fields.
On which OS does this issue occur?
[OS: Mac]
What is the version of your OS?
macOS 14.7
NuttX Version
master
Issue Architecture
[Arch: all]
Issue Area
[Area: Kernel]
Verification
The text was updated successfully, but these errors were encountered: