I am woriking on SCSIControllerDriverKit IOUserSCSIParallelInterfaceController
When I hot-plug my PCIe SCSI controller, the controller works normally, but when I hot remove the PCIe SCSI controller, the driverkit crashes.
Thread 3 Crashed:: Dispatch queue: MyUserSpaceDriver-Default
-
—
erich-areca
Add a CommentI found out that the cause of the kernel panic is from my code "OSSafeReleaseNULL(ivars->pciDevice);" But after removing it, the system is still not as expected. After a hot unplug, the Thunderbolt cable was plugged in again and the PCIe Device Controller never came back. My DEXT user space driver is never loaded again. Only reboot the system once.