Re: [PATCH v3 0/4] Avoid that __scsi_remove_device() hangs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2017-04-18 at 14:58 +0300, Israel Rukshin wrote:
> I tested those patches and I got a NULL dereference at sd_sync_cache_done().
> The test is unloading ib_srp while one port is down.
> The previous version worked fine.
> 
> From the log:
> [  190.272412] BUG: unable to handle kernel NULL pointer dereference at 
> 00000000000002f0
> [  190.281102] IP: sd_sync_cache_done+0x1b/0x80 [sd_mod]

Hello Israel,

Thanks for testing. I assume that this data refers to the sd_printk() statement?
That statement was executed properly in my tests. Anyway, I will leave out that
statement, retest and repost this patch series. There is a del_gendisk() call in
sd just before the sd_shutdown() call so that means it's not safe to access the
disk pointer from anywhere in sd_shutdown().

Bart.



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux