RTEMS | cpukit: fix off-chain state checks and pointer clearing (!1067)
Chandan U (@Chandanuvm)
gitlab at rtems.org
Thu Feb 19 18:18:54 UTC 2026
Chandan U created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1067
Project:Branches: Chandanuvm/rtems:chandan/issue-5491 to rtems/rtos/rtems:main
Author: Chandan U
## Summary
cpukit: fix off-chain state checks and pointer clearing
Semaphore wait nodes store flags in the left part of previous. So \_Chain_Is_node_off_chain() is not safe in all semaphore paths. Use node-\>next == NULL where needed for semaphore wait nodes.
Also clear both previous and next when a node is set off chain. do this whenever chain remove/get paths before re-use.
Updates #5491 Closes #5491
## Generative AI
<!--If you have used AI please use the "AI Contribution" template otherwise leave this blank see our fulls statement at https://www.rtems.org/generative-ai/-->
<!--Default settings, if it is a dropdown it will set after submission-->
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1067
You're receiving this email because of your account on gitlab.rtems.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260219/af72137c/attachment-0001.htm>
More information about the bugs
mailing list