[Bug 223600] vnic: kernel panic when running tcpdump

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Nov 10 21:58:15 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=223600

Bjoern A. Zeeb <bz at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bz at FreeBSD.org

--- Comment #1 from Bjoern A. Zeeb <bz at FreeBSD.org> ---
Looking at nicvf_xmit_locked() it seems the mbuf is passed to bufdma and the
ring is advanced and only then a copy is sent to BPF.  By that time DMA might
have happened and the reference to the mbuf is no longer valid.  The BPF_MTAP()
call needs to happen before dma is initiated so probably before
nicvf_tx_mbuf_locked() and not after.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list