lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  PHC 
Open Source and information security mailing list archives
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 5 Mar 2012 19:02:08 -0500
From:	Josh Boyer <>
To:	Fengguang Wu <>
Cc:	"linux-fsdevel@...r.kernel.o..." <>,
	"" <>,
	LKML <>
Subject: Re: [BUG] scsi_device.device == NULL in sd_revalidate_disk()

On Mon, Mar 5, 2012 at 6:41 PM, Fengguang Wu <> 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.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

Powered by blists - more mailing lists