|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH] Linux: blktap2: Fwd: Fix wild ptr deref during devic
A put_disk() before blk_cleanup_queue() would free gd before gd->queue
is read.
Signed-off-by: Daniel Stodden <daniel.stodden@xxxxxxxxxx>
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
--- a/drivers/xen/blktap2/device.c
+++ b/drivers/xen/blktap2/device.c
@@ -1077,8 +1077,8 @@
#endif
del_gendisk(dev->gd);
+ blk_cleanup_queue(dev->gd->queue);
put_disk(dev->gd);
- blk_cleanup_queue(dev->gd->queue);
dev->gd = NULL;
blktap2-wild-ptr-deref.patch
Description: Text document
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH] Linux: blktap2: Fwd: Fix wild ptr deref during device destruction.,
Jan Beulich <=
|
|
|
|
|