RTEMS | fix(posix): Prevent deadlock in aio_suspend (CID 1667285) (!954)

MITHILESH MATTAPALLI (@mithileshm) gitlab at rtems.org
Tue Jan 27 13:59:26 UTC 2026



MITHILESH MATTAPALLI created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/954

Project:Branches: mithileshm/rtems:fix-posix-deadlock-1667285 to rtems/rtos/rtems:main
Author:   MITHILESH MATTAPALLI




Coverity analysis identified a concurrency issue in the aio_suspend() function:

CID 1667285 (Deadlock): The function held the global aio_request_queue.mutex while attempting to acquire a specific request's suspendcbp-\>mutex. This violated lock ordering if a worker thread held the request lock and waited for the global queue lock. The fix drops the global lock before acquiring the request lock and re-acquires it afterwards to maintain correct lock ordering.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/954
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/20260127/91cb4713/attachment.htm>


More information about the bugs mailing list