Re: [PATCH] st: null pointer dereference panic caused by use after kref_put by st_open

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

 



> On 2.7.2015, at 15.01, Seymour, Shane M <shane.seymour@xxxxxx> wrote:
> 
> 
> Two SLES11 SP3 servers encountered similar crashes simultaneously
> following some kind of SAN/tape target issue:
> 
...
> The crash is fixed by reordering the code so we no longer access
> the struct scsi_tape after the kref_put() is done on it in st_open().
> 
> Signed-off-by: Shane Seymour <shane.seymour@xxxxxx>
> Signed-off-by: Darren Lavender <darren.lavender@xxxxxx>

Acked-by: Kai Mäkisara <kai.makisara@xxxxxxxxxxx>

Thanks for finding this. No code should touch an object after put().

Thanks,
Kai

--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[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