Hannes, > Currently we free the resources backing the enclosure device before we > call device_unregister(). This is racy: during rmmod of low-level SCSI > drivers that hook into enclosure, we end up with a small window of > time during which writing to /sys can OOPS. Example trace with > mpt3sas: Applied to 4.14/scsi-queue but dropped link to non-public bugzilla. -- Martin K. Petersen Oracle Linux Engineering