[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20110702181146.GM23059@one.firstfloor.org>
Date: Sat, 2 Jul 2011 20:11:46 +0200
From: Andi Kleen <andi@...stfloor.org>
To: Alan Stern <stern@...land.harvard.edu>
Cc: axboe@...nel.dk,
James Bottomley <James.Bottomley@...senPartnership.com>,
Andi Kleen <andi@...stfloor.org>,
Dave Jones <davej@...hat.com>,
SCSI development list <linux-scsi@...r.kernel.org>,
Kernel development list <linux-kernel@...r.kernel.org>,
"Rafael J. Wysocki" <rjw@...k.pl>,
USB list <linux-usb@...r.kernel.org>
Subject: Re: Linux 3.0 oopses when pulling a USB CDROM
> The problem is that blk_peek_request() calls scsi_prep_fn(), which
> does this:
>
> struct scsi_device *sdev = q->queuedata;
> int ret = BLKPREP_KILL;
>
> if (req->cmd_type == REQ_TYPE_BLOCK_PC)
> ret = scsi_setup_blk_pc_cmnd(sdev, req);
> return scsi_prep_return(q, req, ret);
>
> It doesn't check to see if sdev is NULL, nor does
> scsi_setup_blk_pc_cmnd(). That accounts for this error:
I actually added a NULL check in scsi_setup_blk_pc_cmnd early on,
but that just caused RCU CPU stalls afterwards and then eventually
a hung system.
-Andi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists