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
Unknown Object (File)
Sun, Sep 6, 6:01 AM
Unknown Object (File)
Sat, Sep 5, 6:35 PM
Unknown Object (File)
Sat, Aug 29, 2:54 PM
Unknown Object (File)
Mon, Aug 24, 5:44 AM
Unknown Object (File)
Fri, Aug 21, 10:40 AM
Unknown Object (File)
Sun, Aug 16, 3:02 PM
Unknown Object (File)
Wed, Aug 12, 11:05 AM
Unknown Object (File)
Aug 8 2026, 4:48 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