]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.1-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 May 2019 14:06:21 +0000 (16:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 May 2019 14:06:21 +0000 (16:06 +0200)
added patches:
drivers-hv-vmbus-remove-the-undesired-put_cpu_ptr-in-hv_synic_cleanup.patch
series

queue-5.1/drivers-hv-vmbus-remove-the-undesired-put_cpu_ptr-in-hv_synic_cleanup.patch [new file with mode: 0644]
queue-5.1/series [new file with mode: 0644]

diff --git a/queue-5.1/drivers-hv-vmbus-remove-the-undesired-put_cpu_ptr-in-hv_synic_cleanup.patch b/queue-5.1/drivers-hv-vmbus-remove-the-undesired-put_cpu_ptr-in-hv_synic_cleanup.patch
new file mode 100644 (file)
index 0000000..8c06e11
--- /dev/null
@@ -0,0 +1,34 @@
+From a0033bd1eae4650b69be07c17cb87393da584563 Mon Sep 17 00:00:00 2001
+From: Dexuan Cui <decui@microsoft.com>
+Date: Fri, 12 Apr 2019 23:34:45 +0000
+Subject: Drivers: hv: vmbus: Remove the undesired put_cpu_ptr() in hv_synic_cleanup()
+
+From: Dexuan Cui <decui@microsoft.com>
+
+commit a0033bd1eae4650b69be07c17cb87393da584563 upstream.
+
+With CONFIG_DEBUG_PREEMPT=y, the put_cpu_ptr() triggers an underflow
+warning in preempt_count_sub().
+
+Fixes: 37cdd991fac8 ("vmbus: put related per-cpu variable together")
+Cc: stable@vger.kernel.org
+Cc: Stephen Hemminger <sthemmin@microsoft.com>
+Signed-off-by: Dexuan Cui <decui@microsoft.com>
+Reviewed-by: Michael Kelley <mikelley@microsoft.com>
+Signed-off-by: Sasha Levin (Microsoft) <sashal@kernel.org>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/hv/hv.c |    1 -
+ 1 file changed, 1 deletion(-)
+
+--- a/drivers/hv/hv.c
++++ b/drivers/hv/hv.c
+@@ -408,7 +408,6 @@ int hv_synic_cleanup(unsigned int cpu)
+               clockevents_unbind_device(hv_cpu->clk_evt, cpu);
+               hv_ce_shutdown(hv_cpu->clk_evt);
+-              put_cpu_ptr(hv_cpu);
+       }
+       hv_get_synint_state(VMBUS_MESSAGE_SINT, shared_sint.as_uint64);
diff --git a/queue-5.1/series b/queue-5.1/series
new file mode 100644 (file)
index 0000000..c513e84
--- /dev/null
@@ -0,0 +1 @@
+drivers-hv-vmbus-remove-the-undesired-put_cpu_ptr-in-hv_synic_cleanup.patch