Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jul 2020 21:09:43 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 247647] panic: page fault when opening netmap port (vmxnet3)
Message-ID:  <bug-247647-7501-1PvOQA0BJo@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-247647-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-247647-7501@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247647

--- Comment #9 from commit-hook@FreeBSD.org ---
A commit references this bug:

Author: vmaffione
Date: Mon Jul 20 21:08:57 UTC 2020
New revision: 363378
URL: https://svnweb.freebsd.org/changeset/base/363378

Log:
  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
  MFC after:    3 weeks
  Differential Revision:        https://reviews.freebsd.org/D25541

Changes:
  head/sys/net/iflib.c

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-247647-7501-1PvOQA0BJo>