[PATCH] md - Fix user-after-free bug in multipath

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



If mddev->thread is non-null later, it gets used.

 ----------- Diffstat output ------------
 ./drivers/md/multipath.c |    1 +
 1 files changed, 1 insertion(+)

diff ./drivers/md/multipath.c~current~ ./drivers/md/multipath.c
--- ./drivers/md/multipath.c~current~	2004-05-18 11:09:16.000000000 +1000
+++ ./drivers/md/multipath.c	2004-05-18 11:12:01.000000000 +1000
@@ -531,6 +531,7 @@ static int multipath_stop (mddev_t *mdde
 	multipath_conf_t *conf = mddev_to_conf(mddev);
 
 	md_unregister_thread(mddev->thread);
+	mddev->thread = NULL;
 	mempool_destroy(conf->pool);
 	kfree(conf->multipaths);
 	kfree(conf);
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux