RTEMS | cpukit/libio: Fix race condition in iop free (!1048)
Kinsey Moore (@opticron)
gitlab at rtems.org
Fri Feb 6 14:18:16 UTC 2026
Kinsey Moore started a new discussion on cpukit/libcsupport/src/libio.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1048#note_142005
> void rtems_libio_free_iop( rtems_libio_t *iop )
> {
> size_t zero;
> + unsigned int flags;
>
> + flags = rtems_libio_iop_flags_set( iop, LIBIO_FLAGS_FREE );
> + if ( (flags & LIBIO_FLAGS_FREE ) == 0 ) {
> rtems_libio_lock();
How is check and then lock not a data race?
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1048#note_142005
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/20260206/5d9c4242/attachment-0001.htm>
More information about the bugs
mailing list