Page MenuHomeFreeBSD

ifnet: Fix decreasing the vnet interface count
ClosedPublic

Authored by zlei on Mar 16 2026, 3:44 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 18, 7:37 PM
Unknown Object (File)
Sat, Apr 18, 11:32 AM
Unknown Object (File)
Fri, Apr 17, 5:15 AM
Unknown Object (File)
Wed, Apr 15, 5:54 AM
Unknown Object (File)
Wed, Apr 15, 4:17 AM
Unknown Object (File)
Mon, Apr 13, 7:25 PM
Unknown Object (File)
Thu, Apr 9, 1:47 AM
Unknown Object (File)
Wed, Apr 8, 9:55 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