diff options
author | 2018-08-10 15:53:49 +0000 | |
---|---|---|
committer | 2018-08-10 15:53:49 +0000 | |
commit | 9406475e8b3ea5593448995104226950635465a6 (patch) | |
tree | 7aa35297b02db34d1ced3d0f6a23e27167e597fd /sys/lib/libsa/softraid.c | |
parent | Another place where we should handle AS_SET better. aspath_lenmatch() (diff) | |
download | wireguard-openbsd-9406475e8b3ea5593448995104226950635465a6.tar.xz wireguard-openbsd-9406475e8b3ea5593448995104226950635465a6.zip |
Update fd_freefile when filtering/closing kqueue descriptors in fdcopy().
Prior to r1.153 of kern_descrip.c, the kqueue descriptors were removed
using fdremove(), which reset fd_freefile as appropriate. The new code
simply avoids adding the descriptor to the new table, however this means
that fd_freefile can be left with an incorrect value, resulting in a file
descriptor allocation "hole". Restore the previous behavour by lowering
fd_freefile as appropriate when dropping descriptors.
Issue found via golang regress tests.
ok deraadt@ mpi@ visa@
Diffstat (limited to 'sys/lib/libsa/softraid.c')
0 files changed, 0 insertions, 0 deletions