System calls operating on file descriptors obtain a reference to relevant struct file which due to a programming error was not always put back, which in turn could be used to overflow the counter of affected struct file.
- Don't forget
fdrop
to avoidstruct file
leak
- sys/kern/uipc_mqueue.c
https://github.com/freebsd/freebsd/commit/feb038e4b4cec89f24f3a23da2d69e3d1e741cc5
Fixed by emaste.