HomeFreeBSD

ipoib: Fix for accessing uninitialized pointers and freed memory during attach…

Description

ipoib: Fix for accessing uninitialized pointers and freed memory during attach and detach.

Call infiniband_ifdetach() early to stop ifioctl(9) calls from user-space
during device removal. Also make sure that ifioctl(9) calls are blocked from
executing until the device is fully initialized. Ideally we would delay the
infiniband_ifattach() call, but because part of the initialization is to update
the link level address, that is not possible without more significant changes.

Reviewed by: kib
Sponsored by: Mellanox Technologies // NVIDIA Networking

(cherry picked from commit cd2c05d323d272163d04dd94caabe018ca2d4dc5)

Details

Provenance
hselaskyAuthored on Jul 12 2021, 1:01 PM
Parents
rG5b803f682001: mlx5: Numa domain improvements.
Branches
Unknown
Tags
Unknown