[BUG] Resource leak in SMP mode when running signal handler #14448
Labels
Arch: all
Issues that apply to all architectures
Area: Posix
Posix issues
OS: Linux
Issues related to Linux (building system, etc)
Type: Bug
Something isn't working
Description / Steps to reproduce the issue
There is a serious issue with the current asynchronous signal delivery system; it will forcibly make another CPU resume
code at places where this must not happen. Take the following example where CPU0 takes a semaphore and CPU1 sends
a signal to it:
If the process on CPU0 crashes in the signal handler, the semaphore taken on CPU0 does not get freed,
causing a resource leak.
The leak is not an issue for user resources but is catastrophic for kernel resources!
On which OS does this issue occur?
[OS: Linux]
What is the version of your OS?
Irrelevant
NuttX Version
master
Issue Architecture
[Arch: all]
Issue Area
[Area: Posix]
Verification
The text was updated successfully, but these errors were encountered: