Date: Sun, 7 Dec 2014 22:53:56 +0000 From: "rodrigc (Craig Rodrigues)" <phabric-noreply@FreeBSD.org> To: freebsd-net@freebsd.org Subject: [Differential] [Request, 4 lines] D1279: Fix crash when VIMAGE + Infiniband is compiled into the kernel Message-ID: <differential-rev-PHID-DREV-r2rchufsao7lanuoeygd-req@FreeBSD.org>
next in thread | raw e-mail | index | archive | help
rodrigc created this revision.
rodrigc added reviewers: bz, hselasky.
rodrigc added a subscriber: freebsd-net.
REVISION SUMMARY
PR: 191468
Use CURVNET macros inside inet_get_local_port_range() function.
Without this fix, a kernel with VIMAGE + Infiniband will panic on bootup.
Certain necessary #include statements require LIST_HEAD.
Add these includes to ofed/include/linux/list.h, because
LIST_HEAD is specifically overridden in this file.
TEST PLAN
# Compile a kernel with the following kernel config:
include GENERIC
ident VIMAGE
options VIMAGE
options VNET_DEBUG
# InfiniBand support
options OFED # InfiniBand support
options SDP # SDP protocol
options IPOIB # IPoIB
options IPOIB_CM # IPoIB connected mode
# InfiniBand Adapters
device mlx4ib
device mlxen
device mthca
# bhyve kernel debug
device bvmdebug
# Boot it
REVISION DETAIL
https://reviews.freebsd.org/D1279
AFFECTED FILES
sys/ofed/include/linux/list.h
sys/ofed/include/net/ip.h
To: rodrigc, bz, hselasky
Cc: freebsd-net
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?differential-rev-PHID-DREV-r2rchufsao7lanuoeygd-req>
