Page MenuHomeFreeBSD

oce(4): Account and trace mbufs before handing to hw
ClosedPublic

Authored by cem on Jun 19 2020, 8:50 PM.
Tags
None
Referenced Files
F163280964: D25364.diff
Tue, Jul 21, 5:08 PM
F163280952: D25364.diff
Tue, Jul 21, 5:08 PM
Unknown Object (File)
Mon, Jun 29, 1:48 PM
Unknown Object (File)
Sun, Jun 28, 4:43 PM
Unknown Object (File)
Tue, Jun 23, 4:28 AM
Unknown Object (File)
Mon, Jun 22, 8:33 PM
Unknown Object (File)
Sun, Jun 21, 6:22 PM
Unknown Object (File)
Jun 19 2026, 10:27 PM
Subscribers

Details

Summary

Once tx mbufs have been handed to hardware, nothing serializes the tx
path against completion and potential use-after-free of the outbound
mbuf. Perform accounting and BPF tap before queueing to hardware to
avoid this race.

Submitted by: Steve Wirtz <steve_wirtz AT dell.com>

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable