]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.4-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 May 2019 12:34:46 +0000 (14:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 May 2019 12:34:46 +0000 (14:34 +0200)
added patches:
dm-delay-fix-a-crash-when-invalid-device-is-specified.patch

queue-4.4/dm-delay-fix-a-crash-when-invalid-device-is-specified.patch [new file with mode: 0644]
queue-4.4/series

diff --git a/queue-4.4/dm-delay-fix-a-crash-when-invalid-device-is-specified.patch b/queue-4.4/dm-delay-fix-a-crash-when-invalid-device-is-specified.patch
new file mode 100644 (file)
index 0000000..8d94d14
--- /dev/null
@@ -0,0 +1,34 @@
+From 81bc6d150ace6250503b825d9d0c10f7bbd24095 Mon Sep 17 00:00:00 2001
+From: Mikulas Patocka <mpatocka@redhat.com>
+Date: Thu, 25 Apr 2019 12:07:54 -0400
+Subject: dm delay: fix a crash when invalid device is specified
+
+From: Mikulas Patocka <mpatocka@redhat.com>
+
+commit 81bc6d150ace6250503b825d9d0c10f7bbd24095 upstream.
+
+When the target line contains an invalid device, delay_ctr() will call
+delay_dtr() with NULL workqueue.  Attempting to destroy the NULL
+workqueue causes a crash.
+
+Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
+Cc: stable@vger.kernel.org
+Signed-off-by: Mike Snitzer <snitzer@redhat.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/md/dm-delay.c |    3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+--- a/drivers/md/dm-delay.c
++++ b/drivers/md/dm-delay.c
+@@ -222,7 +222,8 @@ static void delay_dtr(struct dm_target *
+ {
+       struct delay_c *dc = ti->private;
+-      destroy_workqueue(dc->kdelayd_wq);
++      if (dc->kdelayd_wq)
++              destroy_workqueue(dc->kdelayd_wq);
+       dm_put_device(ti, dc->dev_read);
index 81e7d22066d09f32da029fad0c249fe5f4ce5ee0..e9d89428c2d833d0576063a6d6c7e1af4bc62be4 100644 (file)
@@ -61,3 +61,4 @@ fbdev-sm712fb-fix-support-for-1024x768-16-mode.patch
 fbdev-sm712fb-use-1024x768-by-default-on-non-mips-fix-garbled-display.patch
 fbdev-sm712fb-fix-crashes-and-garbled-display-during-dpms-modesetting.patch
 pci-mark-atheros-ar9462-to-avoid-bus-reset.patch
+dm-delay-fix-a-crash-when-invalid-device-is-specified.patch