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  linux-hardening  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:	Thu, 20 Mar 2014 17:10:13 -0700
From:	Greg Kroah-Hartman <>
Cc:	Greg Kroah-Hartman <>,, Ales Novak <>,
	Thomas Abraham <>,
	Jiri Kosina <>,
	"K. Y. Srinivasan" <>,
	James Bottomley <>
Subject: [PATCH 3.10 70/85] SCSI: storvsc: NULL pointer dereference fix

3.10-stable review patch.  If anyone has any objections, please let me know.


From: Ales Novak <>

commit b12bb60d6c350b348a4e1460cd68f97ccae9822e upstream.

If the initialization of storvsc fails, the storvsc_device_destroy()
causes NULL pointer dereference.


	  sdev->hostdata = hostdata

	  now the host allocation fails


	  calls sdev->host->hostt->slave_destroy() ==
	    access of sdev->hostdata->request_mempool

Signed-off-by: Ales Novak <>
Signed-off-by: Thomas Abraham <>
Reviewed-by: Jiri Kosina <>
Acked-by: K. Y. Srinivasan <>
Signed-off-by: James Bottomley <>
Signed-off-by: Greg Kroah-Hartman <>

 drivers/scsi/storvsc_drv.c |    3 +++
 1 file changed, 3 insertions(+)

--- a/drivers/scsi/storvsc_drv.c
+++ b/drivers/scsi/storvsc_drv.c
@@ -1189,6 +1189,9 @@ static void storvsc_device_destroy(struc
 	struct stor_mem_pools *memp = sdevice->hostdata;
+	if (!memp)
+		return;

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