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
F132001160: D1279.id2675.diff
Sun, Oct 12, 8:35 PM
Unknown Object (File)
Thu, Oct 9, 10:51 PM
Unknown Object (File)
Mon, Sep 29, 2:17 AM
Unknown Object (File)
Fri, Sep 19, 12:36 AM
Unknown Object (File)
Aug 31 2025, 6:35 PM
Unknown Object (File)
Aug 4 2025, 8:47 PM
Unknown Object (File)
Jul 3 2025, 10:14 PM
Unknown Object (File)
Jul 3 2025, 12:27 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