Date: Wed, 18 Feb 2026 19:17:31 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 293266] kern_descrip.c: Don't free in-use fd map in fdgrowtable() Message-ID: <bug-293266-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
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: bugs@FreeBSD.org Reporter: kris@tranception.com 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.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-293266-227>
