Page MenuHomeFreeBSD

Fix crash when VIMAGE + Infiniband is compiled into the kernel
ClosedPublic

Authored by rodrigc on Dec 7 2014, 10:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 28, 5:09 AM
Unknown Object (File)
Sun, Apr 28, 5:08 AM
Unknown Object (File)
Dec 22 2023, 8:42 PM
Unknown Object (File)
Oct 13 2023, 7:28 AM
Unknown Object (File)
May 12 2023, 5:08 PM
Unknown Object (File)
Dec 12 2022, 10:22 PM
Unknown Object (File)
Jun 26 2016, 10:42 PM
Unknown Object (File)
Jun 26 2016, 11:58 AM
Subscribers

Details

Reviewers
hselasky
bz
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
  1. Compile a kernel with the following kernel config and boot it:
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

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

rodrigc retitled this revision from to Fix crash when VIMAGE + Infiniband is compiled into the kernel.
rodrigc updated this object.
rodrigc edited the test plan for this revision. (Show Details)
rodrigc added reviewers: bz, hselasky.
rodrigc edited the test plan for this revision. (Show Details)
rodrigc added a subscriber: Unknown Object (MLST).
hselasky edited edge metadata.

Looks good. Thank you!

This revision is now accepted and ready to land.Dec 8 2014, 6:46 AM