Re: [PATCH for-2.6.39] [SCSI] scsi_dh_emc: fix panic when handling multiple path failures

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

 



On Mon, Mar 21 2011 at  4:02pm -0400,
James Bottomley <James.Bottomley@xxxxxxx> wrote:

> On Mon, 2011-03-21 at 15:57 -0400, Mike Snitzer wrote:
> > From: Eddie Williams <eddie.williams@xxxxxxxxxxxx>
> > 
> > Do not sdev_printk() a scsi_device that was, or is being, deleted.
> > 
> > If multiple failures occur (e.g. FC switch with multiple paths fails),
> > and both the active path and next path is failed in the process, the
> > scsi_device associated with the next path can be accessed after it was
> > deleted.
> 
> This treats the symptom, not the cause, doesn't it?  Why do we have a
> reference to an ungot instance of an sdev here ... and should it have
> had a reference taken on it?

Stands to reason, and to be fair Eddie thought that might be the case
too -- I should have shared as much.  I'll take a closer look (quite
busy this week but...).

Finding the root cause in the near-term would be ideal.  Short of that
this "fix" isn't unreasonable.  Only problem with taking it would be if
someone like me didn't know to actively chase the real problem with this
"fix" reverted.  Whereby papering over the real issue.

Anyway, it's now on my plate to sort out.  No idea if I'll do so by the
close of the merge window.  But maybe a real fix to this can go in after
the window closes?

I guess time will tell, thanks.
Mike
--
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