Page MenuHomeFreeBSD

dummynet: do not store struct ifnet pointers
ClosedPublic

Authored by kp on May 19 2022, 5:00 PM.
Tags
None
Referenced Files
F110255220: D35256.diff
Sat, Feb 15, 7:37 PM
Unknown Object (File)
Mon, Jan 27, 5:05 PM
Unknown Object (File)
Fri, Jan 24, 5:49 PM
Unknown Object (File)
Jan 5 2025, 4:39 PM
Unknown Object (File)
Dec 5 2024, 6:07 PM
Unknown Object (File)
Nov 25 2024, 1:10 PM
Unknown Object (File)
Nov 24 2024, 4:47 PM
Unknown Object (File)
Nov 22 2024, 12:13 PM

Details

Summary

The dn_pkt_tag tag contained a struct ifnet pointer. If we persist that
across NET_EPOCH boundaries (as we did in dummynet) we risk panics if
the interface is removed between the packet being enqueued and it being
dequeued.

Convert the pointer into an index/generation pair and restore it when
the packet is taken out of the queue.

Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 45633
Build 42521: arc lint + arc unit