Page MenuHomeFreeBSD

ifnet: Fix decreasing the vnet interface count
ClosedPublic

Authored by zlei on Mar 16 2026, 3:44 AM.
Tags
None
Referenced Files
F166344047: D55873.id173753.diff
Thu, Aug 13, 12:53 AM
Unknown Object (File)
Mon, Aug 10, 12:18 PM
Unknown Object (File)
Sun, Aug 9, 10:53 AM
Unknown Object (File)
Sun, Aug 9, 4:47 AM
Unknown Object (File)
Sat, Aug 8, 2:32 AM
Unknown Object (File)
Fri, Aug 7, 6:30 PM
Unknown Object (File)
Tue, Aug 4, 3:56 AM
Unknown Object (File)
Tue, Aug 4, 2:58 AM

Details

Summary

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".

Fixes: a779388f8bb3 if: Protect V_ifnet in vnet_if_return()
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable