Page MenuHomeFreeBSD

ifnet: Fix decreasing the vnet interface count
ClosedPublic

Authored by zlei on Mar 16 2026, 3:44 AM.
Tags
None
Referenced Files
F162918964: D55873.diff
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
Unknown Object (File)
Jun 4 2026, 11:40 AM
Unknown Object (File)
Jun 4 2026, 11:40 AM
Unknown Object (File)
May 18 2026, 7:12 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