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)
Fri, Sep 18, 5:29 AM
Unknown Object (File)
Sep 8 2026, 8:16 PM
Unknown Object (File)
Sep 5 2026, 12:55 PM
Unknown Object (File)
Sep 5 2026, 8:34 AM
Unknown Object (File)
Sep 5 2026, 7:39 AM
Unknown Object (File)
Sep 4 2026, 9:52 AM
Unknown Object (File)
Sep 3 2026, 9:01 PM
Unknown Object (File)
Sep 2 2026, 4:44 PM
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