Page MenuHomeFreeBSD

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

Authored by cem on Jun 19 2020, 8:50 PM.

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
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

cem requested review of this revision.Jun 19 2020, 8:50 PM
cem created this revision.
markj accepted this revision.Jun 20 2020, 12:31 AM
This revision is now accepted and ready to land.Jun 20 2020, 12:31 AM
rstone accepted this revision.Jun 20 2020, 5:04 PM
This revision was automatically updated to reflect the committed changes.