public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Bug found in block/scsi_ioctl.c
       [not found] <CANk961ZtHzC0cyzGc9WxC9mvqmHpixRKsavuMGMzeuLe+QA5TQ@mail.gmail.com>
@ 2013-06-05 14:53 ` Jens Axboe
  0 siblings, 0 replies; only message in thread
From: Jens Axboe @ 2013-06-05 14:53 UTC (permalink / raw)
  To: hari krishnan; +Cc: linux-kernel

On Wed, Jun 05 2013, hari krishnan wrote:
> I got a kernel crash, and dump is pointing to "IP: [<ffffffff81260e86>]
> sg_scsi_ioctl+0x166/0x3b0".
> 
> Test case:  *I was just deleting few NPIV port to which some of LUN's where
> exported, after sometime I was running parted on some devices"*
> 
> The crash is in sg_scsi_ioctl of block/scsi_ioctl.c.
> From code and dump it seems sg_scsi_ioctl is allocating request by calling
> blk_get_request and assuming it will never fail, but it will fail if device
> is dead, here in this case some of SCSI devices are dead.

It's a known bug, Joe Lawrence has posted a patch to fix it up that will
be muscled into 3.10.

Can you give it a go?

http://www.spinics.net/lists/linux-scsi/msg66294.html

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-06-05 14:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CANk961ZtHzC0cyzGc9WxC9mvqmHpixRKsavuMGMzeuLe+QA5TQ@mail.gmail.com>
2013-06-05 14:53 ` Bug found in block/scsi_ioctl.c Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox