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
F103503134: D25364.id.diff
Mon, Nov 25, 8:16 PM
Unknown Object (File)
Mon, Nov 25, 1:51 AM
Unknown Object (File)
Sat, Nov 23, 4:12 PM
Unknown Object (File)
Thu, Nov 21, 2:39 PM
Unknown Object (File)
Tue, Nov 19, 11:35 PM
Unknown Object (File)
Thu, Nov 14, 5:18 PM
Unknown Object (File)
Thu, Nov 14, 5:16 PM
Unknown Object (File)
Mon, Nov 11, 2:19 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