hujun260 commented on issue #14807:
URL: https://github.com/apache/nuttx/issues/14807#issuecomment-2478314548

   > 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.
   
   I don't think this change caused 
https://github.com/apache/nuttx/issues/14749, 
   because the release of the critical section is going to happen regardless of 
whether I call nxsched_smp_call_single or not.
   
![image](https://github.com/user-attachments/assets/103070aa-35b1-4835-8285-e163ae067945)
   
   
   > similarly, the need_restore logic in sig_handler seems dangerous as it can 
revert unrelated changes to those fields.
   
   There are two fields: affinity and flag. 
   Due to the setting of TCB_FLAG_CPU_LOCKED, the affinity will not be changed 
during the process. 
   The tcb->flags may undergo changes, which I can further refine. During 
restoration, only the TCB_FLAG_CPU_LOCKED field of tcb->flags will be restored, 
without altering any other fields.


-- 
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: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to