diff options
| author | Zhenlei Huang <zlei@FreeBSD.org> | 2026-03-16 16:20:08 +0000 |
|---|---|---|
| committer | Zhenlei Huang <zlei@FreeBSD.org> | 2026-03-20 10:03:43 +0000 |
| commit | 2265cf938ec30d9658d787d4128541cc7b9bd67a (patch) | |
| tree | 9dc1158f7f6f0b3c8027ab2011363586d54583bd /lib/libc/sys/kevent.c | |
| parent | 242346cb89f8d4ca97d933fc215bf2cf25f2ed0b (diff) | |
ifnet: Fix decreasing the vnet interface countstable/13
It should be decreased only when the interface has been successfully
removed from the "active" list.
This prevents vnet_if_return() from potential OOB writes to the
allocated memory "pending".
Reviewed by: kp, pouria
Fixes: a779388f8bb3 if: Protect V_ifnet in vnet_if_return()
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D55873
(cherry picked from commit 8065ff63c0e5c3bb4abb02f55b20cb47bb51d1a7)
(cherry picked from commit 1b7687f053afcf251ee7643ee5a4f22a225f4a02)
(cherry picked from commit 47339e4a9209c1d1323f58d792e277792990e060)
Diffstat (limited to 'lib/libc/sys/kevent.c')
0 files changed, 0 insertions, 0 deletions
