Loris Nardo created a merge request: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/178

Project:Branches: loris.nardo/rtems:open-truncate-race-close to 
rtems/rtos/rtems:main
Author:   Loris Nardo




## Summary

open: Fix race condition when called with O_TRUNC

Fix a race condition in which a file opened with O_TRUNC is made available to 
other file functions expecting a file descriptor before the truncation is 
performed.

This is only possible if the other thread was using an invalid file descriptor 
as the open call has yet to finish.

Closes #5109


<!-- 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/178
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to