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
F139714898: D25364.id73354.diff
Mon, Dec 15, 6:15 AM
Unknown Object (File)
Sat, Dec 13, 10:17 PM
Unknown Object (File)
Sat, Dec 13, 5:23 PM
Unknown Object (File)
Tue, Dec 2, 6:08 PM
Unknown Object (File)
Sun, Nov 30, 12:07 PM
Unknown Object (File)
Sat, Nov 29, 8:52 AM
Unknown Object (File)
Thu, Nov 27, 9:10 PM
Unknown Object (File)
Mon, Nov 24, 12:11 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