On Fri, 09 Feb 2024 15:52:47 -0600, Mike Christie wrote: > This issue was found and also debugged by Carl Lei <me@xxxxxxxxxxxx>. > > If the device is not enabled, iblock/file will have not setup their > se_device to bdev/file mappings. If a user tries to config the unmap > settings at this time, we will then crash trying to access a NULL > pointer where the bdev/file should be. > > [...] Applied to 6.8/scsi-fixes, thanks! [1/1] scsi: target: Fix unmap setup during configuration https://git.kernel.org/mkp/scsi/c/4cbec7e89a41 -- Martin K. Petersen Oracle Linux Engineering