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
F152537378: D25364.diff
Wed, Apr 15, 1:34 PM
F152490108: D25364.diff
Wed, Apr 15, 7:11 AM
F152441713: D25364.diff
Wed, Apr 15, 12:00 AM
Unknown Object (File)
Mon, Apr 13, 1:08 PM
Unknown Object (File)
Sun, Apr 5, 1:10 AM
Unknown Object (File)
Sat, Apr 4, 12:04 PM
Unknown Object (File)
Fri, Mar 27, 3:04 PM
Unknown Object (File)
Wed, Mar 25, 6:47 AM
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

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 31835
Build 29395: arc lint + arc unit