Page MenuHomeFreeBSD

ifnet: Fix decreasing the vnet interface count
ClosedPublic

Authored by zlei on Mar 16 2026, 3:44 AM.
Tags
None
Referenced Files
F158664482: D55873.diff
Thu, Jun 4, 11:40 AM
F158664472: D55873.diff
Thu, Jun 4, 11:40 AM
Unknown Object (File)
Mon, May 18, 7:12 AM
Unknown Object (File)
Mon, May 18, 7:06 AM
Unknown Object (File)
Sun, May 17, 10:19 PM
Unknown Object (File)
Sun, May 17, 10:11 PM
Unknown Object (File)
Thu, May 14, 3:38 PM
Unknown Object (File)
Wed, May 13, 11:19 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