Page MenuHomeFreeBSD

ifnet: Fix decreasing the vnet interface count
ClosedPublic

Authored by zlei on Mar 16 2026, 3:44 AM.
Tags
None
Referenced Files
F169746977: D55873.id173753.diff
Wed, Sep 2, 11:01 AM
F169680338: D55873.id173746.diff
Wed, Sep 2, 6:53 AM
F169671475: D55873.id.diff
Wed, Sep 2, 6:12 AM
F169662435: D55873.diff
Wed, Sep 2, 5:28 AM
Unknown Object (File)
Wed, Aug 26, 9:55 PM
Unknown Object (File)
Wed, Aug 26, 12:23 AM
Unknown Object (File)
Mon, Aug 24, 11:05 AM
Unknown Object (File)
Sat, Aug 22, 11:03 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