https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293266
Bug ID: 293266
Summary: kern_descrip.c: Don't free in-use fd map in
fdgrowtable()
Product: Base System
Version: CURRENT
Hardware: Any
URL: https://github.com/freebsd/freebsd-src/pull/2029
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: kern
Assignee: [email protected]
Reporter: [email protected]
When expanding a file table, the condition for allocating a new map is
NDSLOTS(nnfiles) > NDSLOTS(onfiles) whereas for freeing the old map is
NDSLOTS(onfiles) > NDSLOTS(NDFILE).
If a previously expanded file table is expanded slightly again such that the
map does not need to be increased, fdgrowtable will free the current map
regardless.
Change the condition for freeing the old map such that the old map is only
freed if a new map has been allocated and the old map was not the original
static allocation.
--
You are receiving this mail because:
You are the assignee for the bug.