RTEMS | cpukit: fix off-chain state checks and pointer clearing (!1067)

Gedare Bloom (@gedare) gitlab at rtems.org
Fri Feb 20 16:24:08 UTC 2026




Gedare Bloom started a new discussion on cpukit/rtems/src/timerserver.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1067#note_143078

 >    cpu = _Watchdog_Get_CPU( &the_timer->Ticker );
 >    the_timer->stop_time = _Timer_Get_CPU_ticks( cpu );
 >    wakeup = _Chain_Is_empty( &ts->Pending );
 > +  _Chain_Set_off_chain( &the_timer->Ticker.Node.Chain );
 >    _Chain_Append_unprotected( &ts->Pending, &the_timer->Ticker.Node.Chain );

I'm not sure about the reasoning here. If `&the_timer->Ticker.Node.Chain` is on an existing chain, then this would lead to memory corruption.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1067#note_143078
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/20260220/7527246c/attachment.htm>


More information about the bugs mailing list