Changeset c2287ba2 in rtems

Timestamp:
03/10/20 16:07:19 (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
aa2d5d93
Parents:
2ff83634
git-author:
Sebastian Huber <sebastian.huber@…> (03/10/20 16:07:19)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/13/20 08:57:04)
Message:

libio: Robust file descriptor reference counting

There was a race conditon in the reference counting of file descriptors
during a close() operation. After the call to the close handler, the
rtems_libio_free() function cleared the flags to zero. However, at this
point in time there may still exist some holders of the file descriptor.
With RTEMS_DEBUG enabled this could lead to failed assertions in
rtems_libio_iop_drop().

Change the code to use only atomic read-modify-write operations on the
rtems_libio_iop::flags.

(No files)

Note: See TracChangeset for help on using the changeset viewer.