mirror of
https://github.com/apache/nuttx.git
synced 2026-10-03 20:27:53 +00:00
sched/signal: run no cleanup handlers on signal termination
Some checks are pending
Build Documentation / build-html (push) Waiting to run
MemBrowse Memory Report / changes-filter (push) Waiting to run
MemBrowse Memory Report / load-targets (push) Waiting to run
MemBrowse Memory Report / identical (push) Blocked by required conditions
MemBrowse Memory Report / analyze (push) Blocked by required conditions
Some checks are pending
Build Documentation / build-html (push) Waiting to run
MemBrowse Memory Report / changes-filter (push) Waiting to run
MemBrowse Memory Report / load-targets (push) Waiting to run
MemBrowse Memory Report / identical (push) Blocked by required conditions
MemBrowse Memory Report / analyze (push) Blocked by required conditions
nxsig_abnormal_termination() popped the thread's pthread cleanup handlers in the kernel, so in the protected and kernel builds a process could get its own code called with kernel privilege by raising a fatal signal. POSIX runs cleanup handlers on pthread_exit() and on acting upon a cancellation; termination by a signal is as if by _exit(), which runs none. Signed-off-by: Royyan Zahir <royzah@gmail.com>
This commit is contained in:
parent
07c81e2673
commit
8df6e2a3f4
1 changed files with 0 additions and 2 deletions
|
|
@ -228,8 +228,6 @@ static void nxsig_abnormal_termination(int signo)
|
|||
group_kill_children(rtcb);
|
||||
#endif
|
||||
|
||||
tls_cleanup_popall(tls_get_info());
|
||||
|
||||
#ifndef CONFIG_DISABLE_PTHREAD
|
||||
/* Check if the currently running task is actually a pthread */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue