#3136 closed enhancement (fixed)

Use FIFO for file descriptor free list

Reported by: Sebastian Huber Owned by: Sebastian Huber
Priority: normal Milestone: 5.1
Component: fs Version:
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

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.

Change History (3)

comment:1 Changed on Sep 15, 2017 at 9:01:44 AM by Sebastian Huber <sebastian.huber@…>

In ac74162/rtems:

libio: Use FIFO for iop free list

Update #3136.

comment:2 Changed on Sep 15, 2017 at 10:50:09 AM by Sebastian Huber

Resolution: fixed
Status: assignedclosed

comment:3 Changed on Nov 9, 2017 at 6:27:14 AM by Sebastian Huber

Milestone: 4.12.05.1

Milestone renamed

Note: See TracTickets for help on using tickets.