]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.9-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Oct 2017 12:16:57 +0000 (14:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Oct 2017 12:16:57 +0000 (14:16 +0200)
added patches:
vmbus-fix-missing-signaling-in-hv_signal_on_read.patch

queue-4.9/series
queue-4.9/vmbus-fix-missing-signaling-in-hv_signal_on_read.patch [new file with mode: 0644]

index 78c20e9345cd678a8d8182211272738dd3f5fcfe..302aa6f59d462951c27585d75f56f1d53e8de9ba 100644 (file)
@@ -29,3 +29,4 @@ keys-encrypted-fix-dereference-of-null-user_key_payload.patch
 lib-digsig-fix-dereference-of-null-user_key_payload.patch
 keys-don-t-let-add_key-update-an-uninstantiated-key.patch
 pkcs7-prevent-null-pointer-dereference-since-sinfo-is-not-always-set.patch
+vmbus-fix-missing-signaling-in-hv_signal_on_read.patch
diff --git a/queue-4.9/vmbus-fix-missing-signaling-in-hv_signal_on_read.patch b/queue-4.9/vmbus-fix-missing-signaling-in-hv_signal_on_read.patch
new file mode 100644 (file)
index 0000000..196787d
--- /dev/null
@@ -0,0 +1,47 @@
+From decui@microsoft.com  Tue Oct 24 14:15:52 2017
+From: Dexuan Cui <decui@microsoft.com>
+Date: Thu, 19 Oct 2017 18:07:35 +0000
+Subject: vmbus: fix missing signaling in hv_signal_on_read()
+To: "gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>, "stable@vger.kernel.org" <stable@vger.kernel.org>
+Cc: KY Srinivasan <kys@microsoft.com>, Stephen Hemminger <stephen@networkplumber.org>, Stephen Hemminger <sthemmin@microsoft.com>
+Message-ID: <KL1P15301MB00062D18DE80DE90B4116AB4BF420@KL1P15301MB0006.APCP153.PROD.OUTLOOK.COM>
+
+From: Dexuan Cui <decui@microsoft.com>
+
+[Fixes upstream in a much larger set of patches that are not worth backporting
+to 4.9 - gregkh]
+
+When the space available before start of reading (cached_write_sz)
+is the same as the host required space (pending_sz), we need to
+still signal host.
+
+Fixes: 433e19cf33d3 ("Drivers: hv: vmbus: finally fix hv_need_to_signal_on_read()")
+
+Signed-off-by: John Starks <jon.Starks@microsoft.com>
+Signed-off-by: Dexuan Cui <decui@microsoft.com>
+Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+
+Hi Greg, as we discussed, I'm resending this patch, and please only apply
+it to linux-4.9.y (i.e. v4.9.57 as of today).
+
+ include/linux/hyperv.h |    4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+--- a/include/linux/hyperv.h
++++ b/include/linux/hyperv.h
+@@ -1521,11 +1521,11 @@ static inline  void hv_signal_on_read(st
+       cur_write_sz = hv_get_bytes_to_write(rbi);
+-      if (cur_write_sz < pending_sz)
++      if (cur_write_sz <= pending_sz)
+               return;
+       cached_write_sz = hv_get_cached_bytes_to_write(rbi);
+-      if (cached_write_sz < pending_sz)
++      if (cached_write_sz <= pending_sz)
+               vmbus_setevent(channel);
+       return;