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, Jul 25, 8:08 PM
Unknown Object (File)
Mon, Jul 20, 2:08 AM
Unknown Object (File)
Sun, Jul 19, 5:24 PM
Unknown Object (File)
Sat, Jul 18, 7:29 AM
Unknown Object (File)
Fri, Jul 17, 5:42 PM
Unknown Object (File)
Wed, Jul 15, 7:13 AM
Unknown Object (File)
Wed, Jul 15, 7:13 AM
Unknown Object (File)
Mon, Jul 6, 11:08 PM

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