[Bug 247647] if_vmx(4): Page fault when opening netmap port (IFLIB/DMA)
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Aug 10 17:53:51 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=247647
--- Comment #26 from commit-hook at FreeBSD.org ---
A commit references this bug:
Author: vmaffione
Date: Mon Aug 10 17:53:10 UTC 2020
New revision: 364085
URL: https://svnweb.freebsd.org/changeset/base/364085
Log:
MFC r363378
iflib: initialize netmap with the correct number of descriptors
In case the network device has a RX or TX control queue, the correct
number of TX/RX descriptors is contained in the second entry of the
isc_ntxd (or isc_nrxd) array, rather than in the first entry.
This case is correctly handled by iflib_device_register() and
iflib_pseudo_register(), but not by iflib_netmap_attach().
If the first entry is larger than the second, this can result in a
panic. This change fixes the bug by introducing two helper functions
that also lead to some code simplification.
PR: 247647
Differential Revision: https://reviews.freebsd.org/D25541
Changes:
_U stable/12/
stable/12/sys/net/iflib.c
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the freebsd-net
mailing list