]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
oce(4): Account and trace mbufs before handing to hw
authorcem <cem@FreeBSD.org>
Sat, 20 Jun 2020 17:22:46 +0000 (17:22 +0000)
committercem <cem@FreeBSD.org>
Sat, 20 Jun 2020 17:22:46 +0000 (17:22 +0000)
commit9b757494bbc767c505ad34e79c9168c459a2aa9d
tree16f41a215f5e49142c6756982056672d8ae91fe1
parentd8fc66b39d393cec216377c01383d2c8fa74ed20
oce(4): Account and trace mbufs before handing to hw

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>
Reviewed by: markj, rstone
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D25364
sys/dev/oce/oce_if.c