linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Fengguang Wu <fengguang.wu@intel.com>
To: Josh Boyer <jwboyer@gmail.com>
Cc: "linux-fsdevel@vger.kernel.o..." <linux-fsdevel@vger.kernel.org>,
	"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
	LKML <linux-kernel@vger.kernel.org>, Jens Axboe <axboe@kernel.dk>
Subject: Re: [BUG] scsi_device.device == NULL in sd_revalidate_disk()
Date: Mon, 5 Mar 2012 16:11:46 -0800	[thread overview]
Message-ID: <20120306001146.GA31227@localhost> (raw)
In-Reply-To: <CA+5PVA4axkm-S5-E1pnkgNpDLy3DHegFL2Cfo2i-8HOsfGMHDw@mail.gmail.com>

On Mon, Mar 05, 2012 at 07:02:08PM -0500, Josh Boyer wrote:
> On Mon, Mar 5, 2012 at 6:41 PM, Fengguang Wu <fengguang.wu@intel.com> wrote:
> > Hi,
> >
> > I ran into a NULL dereference bug on USB key hot remove, which should
> > be caused by the below skdp->device reference
> >
> >        static int sd_revalidate_disk(struct gendisk *disk)
> >        {
> >                struct scsi_disk *sdkp = scsi_disk(disk);
> > ==>             struct scsi_device *sdp = sdkp->device;
> 
> This has been reported numerous times.  There are patches to the block layer
> that are supposed to fix it, but they haven't hit Linus' tree yet.  I think
> we're waiting on Jens to push them.

OK, thanks for the information!

Thanks,
Fengguang

      reply	other threads:[~2012-03-06  0:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-05 23:41 [BUG] scsi_device.device == NULL in sd_revalidate_disk() Fengguang Wu
2012-03-06  0:02 ` Josh Boyer
2012-03-06  0:11   ` Fengguang Wu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120306001146.GA31227@localhost \
    --to=fengguang.wu@intel.com \
    --cc=axboe@kernel.dk \
    --cc=jwboyer@gmail.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).