From 6d89dd86bde7e89d25b000ab839259b5be50f58b Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Wed, 8 May 2019 16:06:19 +0200 Subject: [PATCH] 4.14-stable patches added patches: drivers-hv-vmbus-remove-the-undesired-put_cpu_ptr-in-hv_synic_cleanup.patch --- ...ired-put_cpu_ptr-in-hv_synic_cleanup.patch | 34 +++++++++++++++++++ queue-4.14/series | 1 + 2 files changed, 35 insertions(+) create mode 100644 queue-4.14/drivers-hv-vmbus-remove-the-undesired-put_cpu_ptr-in-hv_synic_cleanup.patch diff --git a/queue-4.14/drivers-hv-vmbus-remove-the-undesired-put_cpu_ptr-in-hv_synic_cleanup.patch b/queue-4.14/drivers-hv-vmbus-remove-the-undesired-put_cpu_ptr-in-hv_synic_cleanup.patch new file mode 100644 index 00000000000..91b5d1d6b73 --- /dev/null +++ b/queue-4.14/drivers-hv-vmbus-remove-the-undesired-put_cpu_ptr-in-hv_synic_cleanup.patch @@ -0,0 +1,34 @@ +From a0033bd1eae4650b69be07c17cb87393da584563 Mon Sep 17 00:00:00 2001 +From: Dexuan Cui +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 + +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 +Signed-off-by: Dexuan Cui +Reviewed-by: Michael Kelley +Signed-off-by: Sasha Levin (Microsoft) +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/hv/hv.c | 1 - + 1 file changed, 1 deletion(-) + +--- a/drivers/hv/hv.c ++++ b/drivers/hv/hv.c +@@ -356,7 +356,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(HV_X64_MSR_SINT0 + VMBUS_MESSAGE_SINT, diff --git a/queue-4.14/series b/queue-4.14/series index e1b7355755a..e06e45f2353 100644 --- a/queue-4.14/series +++ b/queue-4.14/series @@ -1 +1,2 @@ scsi-libsas-fix-a-race-condition-when-smp-task-timeout.patch +drivers-hv-vmbus-remove-the-undesired-put_cpu_ptr-in-hv_synic_cleanup.patch -- 2.39.5