The patch titled md: fix use after free when removing rdev via sysfs has been added to the -mm tree. Its filename is md-fix-use-after-free-when-removing-rdev-via-sysfs.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: md: fix use after free when removing rdev via sysfs From: Dan Williams <dan.j.williams@xxxxxxxxx> rdev->mddev is no longer valid upon return from entry->store() when the 'remove' command is given. Cc: <stable@xxxxxxxxxx> Signed-off-by: Dan Williams <dan.j.williams@xxxxxxxxx> Signed-off-by: Neil Brown <neilb@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/md/md.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/md/md.c~md-fix-use-after-free-when-removing-rdev-via-sysfs drivers/md/md.c --- a/drivers/md/md.c~md-fix-use-after-free-when-removing-rdev-via-sysfs +++ a/drivers/md/md.c @@ -2096,7 +2096,7 @@ rdev_attr_store(struct kobject *kobj, st rv = -EBUSY; else rv = entry->store(rdev, page, length); - mddev_unlock(rdev->mddev); + mddev_unlock(mddev); } return rv; } _ Patches currently in -mm which might be from dan.j.williams@xxxxxxxxx are origin.patch sysfs-provide-a-clue-about-the-effects-of-config_usb_device_class=y.patch fsldma-the-mpc8377mds-board-device-tree-node-for-fsldma-driver.patch md-fix-use-after-free-when-removing-rdev-via-sysfs.patch md-remove-a-stray-command-from-a-copy-and-paste-error-in-resync_start_store.patch md-prevent-duplicates-in-bind_rdev_to_array.patch md-md-raid5-rate-limit-error-printk.patch md-md-support-blocking-writes-to-an-array-on-device-failure.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html