freebsd-dev/sys/ofed/drivers/infiniband
Hans Petter Selasky cd2c05d323 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.

MFC after:	1 week
Reviewed by:	kib
Sponsored by:	Mellanox Technologies // NVIDIA Networking
2021-07-12 15:01:19 +02:00
..
core ibcore: Add some functions and definitions for selecting and querying retryable ucontext cleanup. 2021-07-12 14:22:34 +02:00
ulp ipoib: Fix for accessing uninitialized pointers and freed memory during attach and detach. 2021-07-12 15:01:19 +02:00
util Infiniband clients must be attached and detached in a specific order in ibcore. 2020-07-06 08:50:11 +00:00