[RTEMS Project] #3136: Use FIFO for file descriptor free list

RTEMS trac trac at rtems.org
Fri Sep 15 05:39:25 UTC 2017


#3136: Use FIFO for file descriptor free list
-----------------------------+-----------------------------
 Reporter:  Sebastian Huber  |      Owner:  Sebastian Huber
     Type:  enhancement      |     Status:  assigned
 Priority:  normal           |  Milestone:  4.12.0
Component:  filesystem       |    Version:
 Severity:  normal           |   Keywords:
-----------------------------+-----------------------------
 Currently, the free list of file descriptors is organized as a LIFO. In
 erroneous systems which use a file descriptor after a call to close(),
 this increases the likelihood that this error is undetected due to the
 prompt re-use of the file descriptor. The use of a FIFO has the benefit
 that free file descriptors remain on the free list as long as possible.
 This increases the time frame in which an invalid use of a closed file
 descriptor returns an error status.

--
Ticket URL: <http://devel.rtems.org/ticket/3136>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list