kernel: Update to 4.13.10/4.9.59/4.4.95

Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
Rolf Neugebauer 2017-10-28 17:46:23 +01:00
parent 1e18bf8638
commit 17e5b55d17
32 changed files with 50 additions and 97 deletions

View File

@ -172,11 +172,11 @@ endef
# Build Targets # Build Targets
# Debug targets only for latest stable and LTS stable # Debug targets only for latest stable and LTS stable
# #
$(eval $(call kernel,4.13.9,4.13.x,$(EXTRA))) $(eval $(call kernel,4.13.10,4.13.x,$(EXTRA)))
$(eval $(call kernel,4.13.9,4.13.x,-dbg)) $(eval $(call kernel,4.13.10,4.13.x,-dbg))
$(eval $(call kernel,4.9.58,4.9.x,$(EXTRA))) $(eval $(call kernel,4.9.59,4.9.x,$(EXTRA)))
$(eval $(call kernel,4.9.58,4.9.x,-dbg)) $(eval $(call kernel,4.9.59,4.9.x,-dbg))
$(eval $(call kernel,4.4.94,4.4.x,$(EXTRA))) $(eval $(call kernel,4.4.95,4.4.x,$(EXTRA)))
# Target for kernel config # Target for kernel config
kconfig: | sources kconfig: | sources

View File

@ -1,6 +1,6 @@
# #
# Automatically generated file; DO NOT EDIT. # Automatically generated file; DO NOT EDIT.
# Linux/arm64 4.13.9 Kernel Configuration # Linux/arm64 4.13.10 Kernel Configuration
# #
CONFIG_ARM64=y CONFIG_ARM64=y
CONFIG_64BIT=y CONFIG_64BIT=y

View File

@ -1,6 +1,6 @@
# #
# Automatically generated file; DO NOT EDIT. # Automatically generated file; DO NOT EDIT.
# Linux/x86 4.13.9 Kernel Configuration # Linux/x86 4.13.10 Kernel Configuration
# #
CONFIG_64BIT=y CONFIG_64BIT=y
CONFIG_X86_64=y CONFIG_X86_64=y

View File

@ -1,6 +1,6 @@
# #
# Automatically generated file; DO NOT EDIT. # Automatically generated file; DO NOT EDIT.
# Linux/arm64 4.4.94 Kernel Configuration # Linux/arm64 4.4.95 Kernel Configuration
# #
CONFIG_ARM64=y CONFIG_ARM64=y
CONFIG_64BIT=y CONFIG_64BIT=y

View File

@ -1,6 +1,6 @@
# #
# Automatically generated file; DO NOT EDIT. # Automatically generated file; DO NOT EDIT.
# Linux/x86 4.4.94 Kernel Configuration # Linux/x86 4.4.95 Kernel Configuration
# #
CONFIG_64BIT=y CONFIG_64BIT=y
CONFIG_X86_64=y CONFIG_X86_64=y

View File

@ -1,6 +1,6 @@
# #
# Automatically generated file; DO NOT EDIT. # Automatically generated file; DO NOT EDIT.
# Linux/arm64 4.9.58 Kernel Configuration # Linux/arm64 4.9.59 Kernel Configuration
# #
CONFIG_ARM64=y CONFIG_ARM64=y
CONFIG_64BIT=y CONFIG_64BIT=y

View File

@ -1,6 +1,6 @@
# #
# Automatically generated file; DO NOT EDIT. # Automatically generated file; DO NOT EDIT.
# Linux/x86 4.9.58 Kernel Configuration # Linux/x86 4.9.59 Kernel Configuration
# #
CONFIG_64BIT=y CONFIG_64BIT=y
CONFIG_X86_64=y CONFIG_X86_64=y

View File

@ -1,4 +1,4 @@
From 255a4eb6b920f42018f05235f525b8c72624df62 Mon Sep 17 00:00:00 2001 From f4a0a0b8f21fba644927d8993dc8f10ac0aa1ae9 Mon Sep 17 00:00:00 2001
From: Dexuan Cui <decui@microsoft.com> From: Dexuan Cui <decui@microsoft.com>
Date: Fri, 5 May 2017 16:57:12 -0600 Date: Fri, 5 May 2017 16:57:12 -0600
Subject: [PATCH 01/12] vmbus: vmbus_open(): reset onchannel_callback on error Subject: [PATCH 01/12] vmbus: vmbus_open(): reset onchannel_callback on error

View File

@ -1,4 +1,4 @@
From 9d372844cc64ec8921879c81beab83eeb4f8a05f Mon Sep 17 00:00:00 2001 From 3b85f52d8ace71a3b5f5184e7475f0bbdd64cdb7 Mon Sep 17 00:00:00 2001
From: Dexuan Cui <decui@microsoft.com> From: Dexuan Cui <decui@microsoft.com>
Date: Fri, 5 May 2017 16:57:20 -0600 Date: Fri, 5 May 2017 16:57:20 -0600
Subject: [PATCH 02/12] vmbus: remove "goto error_clean_msglist" in Subject: [PATCH 02/12] vmbus: remove "goto error_clean_msglist" in

View File

@ -1,4 +1,4 @@
From 2d199886c8f5b1aaaf0beef6e4f14a871f98d834 Mon Sep 17 00:00:00 2001 From 98b9acabc37de2de3058542f7675d9a0acfc027a Mon Sep 17 00:00:00 2001
From: Dexuan Cui <decui@microsoft.com> From: Dexuan Cui <decui@microsoft.com>
Date: Fri, 5 May 2017 16:57:26 -0600 Date: Fri, 5 May 2017 16:57:26 -0600
Subject: [PATCH 03/12] hv_sock: implements Hyper-V transport for Virtual Subject: [PATCH 03/12] hv_sock: implements Hyper-V transport for Virtual

View File

@ -1,4 +1,4 @@
From fe24104d463f6c66ba20d6637bcd8e64ea3d91f4 Mon Sep 17 00:00:00 2001 From 0b6bb454585f5377a680de8ddc575560ccc70dd0 Mon Sep 17 00:00:00 2001
From: Dexuan Cui <decui@microsoft.com> From: Dexuan Cui <decui@microsoft.com>
Date: Fri, 5 May 2017 16:57:29 -0600 Date: Fri, 5 May 2017 16:57:29 -0600
Subject: [PATCH 04/12] VMCI: only try to load on VMware hypervisor Subject: [PATCH 04/12] VMCI: only try to load on VMware hypervisor

View File

@ -1,4 +1,4 @@
From 3846240ba100e7178bfffe1d7a20382167764a2a Mon Sep 17 00:00:00 2001 From 40b7f8b296e25569f5b591227266f4563580fa15 Mon Sep 17 00:00:00 2001
From: Dexuan Cui <decui@microsoft.com> From: Dexuan Cui <decui@microsoft.com>
Date: Fri, 5 May 2017 16:57:35 -0600 Date: Fri, 5 May 2017 16:57:35 -0600
Subject: [PATCH 05/12] hv_sock: add the support of auto-loading Subject: [PATCH 05/12] hv_sock: add the support of auto-loading

View File

@ -1,4 +1,4 @@
From 0e575b9966945fb1132bd13c7a3c69330c14166e Mon Sep 17 00:00:00 2001 From 9ba95ab3f8b0ecb2b603cdbd4a91ea2e706e3b15 Mon Sep 17 00:00:00 2001
From: Dexuan Cui <decui@microsoft.com> From: Dexuan Cui <decui@microsoft.com>
Date: Fri, 5 May 2017 18:52:02 -0600 Date: Fri, 5 May 2017 18:52:02 -0600
Subject: [PATCH 06/12] tools: hv_sock: 2 simple test cases. Subject: [PATCH 06/12] tools: hv_sock: 2 simple test cases.

View File

@ -1,4 +1,4 @@
From b5b86d3b2b25b051b4cef6d2a3be970726111da1 Mon Sep 17 00:00:00 2001 From 6239bf9e96e36e5d1b90ea81424e2546279cbc13 Mon Sep 17 00:00:00 2001
From: Dexuan Cui <decui@microsoft.com> From: Dexuan Cui <decui@microsoft.com>
Date: Tue, 16 May 2017 22:14:03 +0800 Date: Tue, 16 May 2017 22:14:03 +0800
Subject: [PATCH 07/12] hvsock: fix a race in hvs_stream_dequeue() Subject: [PATCH 07/12] hvsock: fix a race in hvs_stream_dequeue()

View File

@ -1,4 +1,4 @@
From 2cf5773ab1091bc4e575ba1e8d861ae89bdf1f9e Mon Sep 17 00:00:00 2001 From 90c9108bd15c2727eba0f39d574c36b4c211dfd2 Mon Sep 17 00:00:00 2001
From: Dexuan Cui <decui@microsoft.com> From: Dexuan Cui <decui@microsoft.com>
Date: Fri, 19 May 2017 21:49:59 +0800 Date: Fri, 19 May 2017 21:49:59 +0800
Subject: [PATCH 08/12] hvsock: fix vsock_dequeue/enqueue_accept race Subject: [PATCH 08/12] hvsock: fix vsock_dequeue/enqueue_accept race

View File

@ -1,4 +1,4 @@
From d449661db47a2dc22437d30bbf5e9354344a0dd3 Mon Sep 17 00:00:00 2001 From 72c2a4fa0f4b0189299ebbbd832f3d3c9b099ff1 Mon Sep 17 00:00:00 2001
From: Dexuan Cui <decui@microsoft.com> From: Dexuan Cui <decui@microsoft.com>
Date: Wed, 21 Jun 2017 22:30:42 +0800 Date: Wed, 21 Jun 2017 22:30:42 +0800
Subject: [PATCH 09/12] hv-sock: a temporary workaround for the Subject: [PATCH 09/12] hv-sock: a temporary workaround for the

View File

@ -1,4 +1,4 @@
From a0be18ac0d4976c54d4c4359a4d0289cf88bbf4c Mon Sep 17 00:00:00 2001 From 3ae05c99d9c0e6f2301216eac4cf8ce2ae486d62 Mon Sep 17 00:00:00 2001
From: Dexuan Cui <decui@microsoft.com> From: Dexuan Cui <decui@microsoft.com>
Date: Fri, 7 Jul 2017 09:15:29 +0800 Date: Fri, 7 Jul 2017 09:15:29 +0800
Subject: [PATCH 10/12] hv-sock: avoid double FINs if shutdown() is called Subject: [PATCH 10/12] hv-sock: avoid double FINs if shutdown() is called

View File

@ -1,4 +1,4 @@
From 22b335999bba926ec0c168a4b8ebd9ab388853e4 Mon Sep 17 00:00:00 2001 From 05fde1fa40b0dd5022754e3d48dd620af68e904b Mon Sep 17 00:00:00 2001
From: Randy Dodgen <dodgen@google.com> From: Randy Dodgen <dodgen@google.com>
Date: Thu, 24 Aug 2017 15:26:01 -0400 Date: Thu, 24 Aug 2017 15:26:01 -0400
Subject: [PATCH 11/12] ext4: fix fault handling when mounted with -o dax,ro Subject: [PATCH 11/12] ext4: fix fault handling when mounted with -o dax,ro

View File

@ -1,4 +1,4 @@
From a6fc1687fbd218542285c2d77a49ff88a3cb100c Mon Sep 17 00:00:00 2001 From edb260a0322aabd25741c944ad51c50b25afc58d Mon Sep 17 00:00:00 2001
From: Cheng-mean Liu <soccerl@microsoft.com> From: Cheng-mean Liu <soccerl@microsoft.com>
Date: Tue, 11 Jul 2017 16:58:26 -0700 Date: Tue, 11 Jul 2017 16:58:26 -0700
Subject: [PATCH 12/12] NVDIMM: reducded ND_MIN_NAMESPACE_SIZE from 4MB to 4KB Subject: [PATCH 12/12] NVDIMM: reducded ND_MIN_NAMESPACE_SIZE from 4MB to 4KB

View File

@ -1,7 +1,7 @@
From 07cc90bf689d8d1446f19af31f419e96b6aae8d1 Mon Sep 17 00:00:00 2001 From e95145acfc6062195b12e14299e3839be2df97bf Mon Sep 17 00:00:00 2001
From: Arnaldo Carvalho de Melo <acme@redhat.com> From: Arnaldo Carvalho de Melo <acme@redhat.com>
Date: Thu, 2 Mar 2017 12:55:49 -0300 Date: Thu, 2 Mar 2017 12:55:49 -0300
Subject: [PATCH 01/13] tools build: Add test for sched_getcpu() Subject: [PATCH 01/12] tools build: Add test for sched_getcpu()
Instead of trying to go on adding more ifdef conditions, do a feature Instead of trying to go on adding more ifdef conditions, do a feature
test and define HAVE_SCHED_GETCPU_SUPPORT instead, then use it to test and define HAVE_SCHED_GETCPU_SUPPORT instead, then use it to

View File

@ -1,7 +1,7 @@
From c1bc306f2a98bc201c155b7e1e93574ab9bb42f2 Mon Sep 17 00:00:00 2001 From 98c13fec490097bd8318a70d81b19ddbfaa16052 Mon Sep 17 00:00:00 2001
From: Arnaldo Carvalho de Melo <acme@redhat.com> From: Arnaldo Carvalho de Melo <acme@redhat.com>
Date: Thu, 13 Oct 2016 17:12:35 -0300 Date: Thu, 13 Oct 2016 17:12:35 -0300
Subject: [PATCH 02/13] perf jit: Avoid returning garbage for a ret variable Subject: [PATCH 02/12] perf jit: Avoid returning garbage for a ret variable
When the loop body isn't executed at all, then the 'ret' local variable, When the loop body isn't executed at all, then the 'ret' local variable,
that is uninitialized will be used as the return value. that is uninitialized will be used as the return value.

View File

@ -1,7 +1,7 @@
From c6eb46c35ff75022c19211cd1236cb0be75456cb Mon Sep 17 00:00:00 2001 From 8efd45543d57bf4cf24eafecb64f490fa831ed82 Mon Sep 17 00:00:00 2001
From: Dexuan Cui <decui@microsoft.com> From: Dexuan Cui <decui@microsoft.com>
Date: Sat, 23 Jul 2016 01:35:51 +0000 Date: Sat, 23 Jul 2016 01:35:51 +0000
Subject: [PATCH 03/13] hv_sock: introduce Hyper-V Sockets Subject: [PATCH 03/12] hv_sock: introduce Hyper-V Sockets
Hyper-V Sockets (hv_sock) supplies a byte-stream based communication Hyper-V Sockets (hv_sock) supplies a byte-stream based communication
mechanism between the host and the guest. It's somewhat like TCP over mechanism between the host and the guest. It's somewhat like TCP over
@ -56,7 +56,7 @@ index 63cefa62324c..e64920219d88 100644
F: Documentation/ABI/stable/sysfs-bus-vmbus F: Documentation/ABI/stable/sysfs-bus-vmbus
diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h
index d596a076da11..489ad74c1e6e 100644 index 8cc99de27bc2..c9af8369b4f7 100644
--- a/include/linux/hyperv.h --- a/include/linux/hyperv.h
+++ b/include/linux/hyperv.h +++ b/include/linux/hyperv.h
@@ -1613,5 +1613,18 @@ static inline void commit_rd_index(struct vmbus_channel *channel) @@ -1613,5 +1613,18 @@ static inline void commit_rd_index(struct vmbus_channel *channel)

View File

@ -1,7 +1,7 @@
From 9ba10da496908d0c21d07639e07dba839935522f Mon Sep 17 00:00:00 2001 From 875dad6f4fa637023682f54a03d1eab4a7dcebf3 Mon Sep 17 00:00:00 2001
From: Rolf Neugebauer <rolf.neugebauer@gmail.com> From: Rolf Neugebauer <rolf.neugebauer@gmail.com>
Date: Mon, 23 May 2016 18:55:45 +0100 Date: Mon, 23 May 2016 18:55:45 +0100
Subject: [PATCH 04/13] vmbus: Don't spam the logs with unknown GUIDs Subject: [PATCH 04/12] vmbus: Don't spam the logs with unknown GUIDs
With Hyper-V sockets device types are introduced on the fly. The pr_info() With Hyper-V sockets device types are introduced on the fly. The pr_info()
then prints a message on every connection, which is way too verbose. Since then prints a message on every connection, which is way too verbose. Since

View File

@ -1,7 +1,7 @@
From bcbd97d95f015dde8d730206bc6cfcc58d1457c9 Mon Sep 17 00:00:00 2001 From e45050acfc01efc8484dfe2d04ba7c21c83100c7 Mon Sep 17 00:00:00 2001
From: Alex Ng <alexng@messages.microsoft.com> From: Alex Ng <alexng@messages.microsoft.com>
Date: Sun, 6 Nov 2016 13:14:07 -0800 Date: Sun, 6 Nov 2016 13:14:07 -0800
Subject: [PATCH 05/13] Drivers: hv: utils: Fix the mapping between host Subject: [PATCH 05/12] Drivers: hv: utils: Fix the mapping between host
version and protocol to use version and protocol to use
We should intentionally declare the protocols to use for every known host We should intentionally declare the protocols to use for every known host

View File

@ -1,7 +1,7 @@
From 513561517efb57638fa9819aa24f715639be6595 Mon Sep 17 00:00:00 2001 From 19924585496e229428e1871a27557d4918e6aff2 Mon Sep 17 00:00:00 2001
From: Alex Ng <alexng@messages.microsoft.com> From: Alex Ng <alexng@messages.microsoft.com>
Date: Sun, 6 Nov 2016 13:14:10 -0800 Date: Sun, 6 Nov 2016 13:14:10 -0800
Subject: [PATCH 06/13] Drivers: hv: vss: Improve log messages. Subject: [PATCH 06/12] Drivers: hv: vss: Improve log messages.
Adding log messages to help troubleshoot error cases and transaction Adding log messages to help troubleshoot error cases and transaction
handling. handling.

View File

@ -1,7 +1,7 @@
From 62ab4bab28c89b21dce9bba98cf1f493aedffa5c Mon Sep 17 00:00:00 2001 From 9477107e903d0939328a84d6e22de4dae762cfae Mon Sep 17 00:00:00 2001
From: Alex Ng <alexng@messages.microsoft.com> From: Alex Ng <alexng@messages.microsoft.com>
Date: Sun, 6 Nov 2016 13:14:11 -0800 Date: Sun, 6 Nov 2016 13:14:11 -0800
Subject: [PATCH 07/13] Drivers: hv: vss: Operation timeouts should match host Subject: [PATCH 07/12] Drivers: hv: vss: Operation timeouts should match host
expectation expectation
Increase the timeout of backup operations. When system is under I/O load, Increase the timeout of backup operations. When system is under I/O load,

View File

@ -1,7 +1,7 @@
From 162dd9275b4ce7ffe7e7e0d3dcdb9662a189309c Mon Sep 17 00:00:00 2001 From f6b40f0b7dbd32da19cd00f03aae30dd41b28186 Mon Sep 17 00:00:00 2001
From: Alex Ng <alexng@messages.microsoft.com> From: Alex Ng <alexng@messages.microsoft.com>
Date: Sat, 28 Jan 2017 12:37:17 -0700 Date: Sat, 28 Jan 2017 12:37:17 -0700
Subject: [PATCH 08/13] Drivers: hv: vmbus: Use all supported IC versions to Subject: [PATCH 08/12] Drivers: hv: vmbus: Use all supported IC versions to
negotiate negotiate
Previously, we were assuming that each IC protocol version was tied to a Previously, we were assuming that each IC protocol version was tied to a
@ -470,7 +470,7 @@ index e7707747f56d..f3797c07be10 100644
srv->util_cb, dev->channel); srv->util_cb, dev->channel);
if (ret) if (ret)
diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h
index 489ad74c1e6e..956acfc93487 100644 index c9af8369b4f7..7df9eb8f0cf7 100644
--- a/include/linux/hyperv.h --- a/include/linux/hyperv.h
+++ b/include/linux/hyperv.h +++ b/include/linux/hyperv.h
@@ -1453,9 +1453,10 @@ struct hyperv_service_callback { @@ -1453,9 +1453,10 @@ struct hyperv_service_callback {

View File

@ -1,7 +1,7 @@
From b7524ea7d09a2b2ff38adc898e1c34a12ca07e6f Mon Sep 17 00:00:00 2001 From 805f232cfdc518581666e5340c07eb8d218deb29 Mon Sep 17 00:00:00 2001
From: Alex Ng <alexng@messages.microsoft.com> From: Alex Ng <alexng@messages.microsoft.com>
Date: Sat, 28 Jan 2017 12:37:18 -0700 Date: Sat, 28 Jan 2017 12:37:18 -0700
Subject: [PATCH 09/13] Drivers: hv: Log the negotiated IC versions. Subject: [PATCH 09/12] Drivers: hv: Log the negotiated IC versions.
Log the negotiated IC versions. Log the negotiated IC versions.

View File

@ -1,7 +1,7 @@
From 1e50301f804c4d61db165693a184a919939e6153 Mon Sep 17 00:00:00 2001 From 6e224c15922d02dd6b04c394963e412d8c90e8e1 Mon Sep 17 00:00:00 2001
From: Dexuan Cui <decui@microsoft.com> From: Dexuan Cui <decui@microsoft.com>
Date: Sun, 26 Mar 2017 16:42:20 +0800 Date: Sun, 26 Mar 2017 16:42:20 +0800
Subject: [PATCH 10/13] vmbus: fix missed ring events on boot Subject: [PATCH 10/12] vmbus: fix missed ring events on boot
During initialization, the channel initialization code schedules the During initialization, the channel initialization code schedules the
tasklet to scan the VMBUS receive event page (i.e. simulates an tasklet to scan the VMBUS receive event page (i.e. simulates an

View File

@ -1,7 +1,7 @@
From 89c7fc409cc898f025963d0056b6ddf9a23a6c68 Mon Sep 17 00:00:00 2001 From fb3de9fdab13a2ef50eecaa05b937652b0718d1b Mon Sep 17 00:00:00 2001
From: Dexuan Cui <decui@microsoft.com> From: Dexuan Cui <decui@microsoft.com>
Date: Wed, 29 Mar 2017 18:37:10 +0800 Date: Wed, 29 Mar 2017 18:37:10 +0800
Subject: [PATCH 11/13] vmbus: remove "goto error_clean_msglist" in Subject: [PATCH 11/12] vmbus: remove "goto error_clean_msglist" in
vmbus_open() vmbus_open()
This is just a cleanup patch to simplify the code a little. This is just a cleanup patch to simplify the code a little.

View File

@ -1,7 +1,7 @@
From 2981fbdae254370cd9ccc4a344568300e0c59c7a Mon Sep 17 00:00:00 2001 From e46408349d038b9426dbfbb40f86b67583c3d24c Mon Sep 17 00:00:00 2001
From: Dexuan Cui <decui@microsoft.com> From: Dexuan Cui <decui@microsoft.com>
Date: Fri, 24 Mar 2017 20:53:18 +0800 Date: Fri, 24 Mar 2017 20:53:18 +0800
Subject: [PATCH 12/13] vmbus: dynamically enqueue/dequeue the channel on Subject: [PATCH 12/12] vmbus: dynamically enqueue/dequeue the channel on
vmbus_open/close vmbus_open/close
Signed-off-by: Dexuan Cui <decui@microsoft.com> Signed-off-by: Dexuan Cui <decui@microsoft.com>
@ -159,7 +159,7 @@ index 2fe024e86209..b2bdcfb49144 100644
err_free_chan: err_free_chan:
diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h
index 956acfc93487..9ee292b28e41 100644 index 7df9eb8f0cf7..a87757cf277b 100644
--- a/include/linux/hyperv.h --- a/include/linux/hyperv.h
+++ b/include/linux/hyperv.h +++ b/include/linux/hyperv.h
@@ -1461,6 +1461,9 @@ extern bool vmbus_prep_negotiate_resp(struct icmsg_hdr *icmsghdrp, u8 *buf, @@ -1461,6 +1461,9 @@ extern bool vmbus_prep_negotiate_resp(struct icmsg_hdr *icmsghdrp, u8 *buf,

View File

@ -1,47 +0,0 @@
From e4956e317bf21890abd2ffe2b9d66b6a177712f0 Mon Sep 17 00:00:00 2001
From: Dexuan Cui <decui@microsoft.com>
Date: Thu, 6 Jul 2017 21:37:11 +0000
Subject: [PATCH 13/13] vmbus: fix the missed signaling in hv_signal_on_read()
There is an off-by-one bug here, which can cause host-to-guest write to stall.
When cur_write_sz == pending_sz, we shouldn't signal the host because it's
meaningless: the ring mustn't be 100% full.
But when cached_write_sz == pending_sz, we must signal the host.
Fixes: 433e19cf33d3 ("Drivers: hv: vmbus: finally fix
hv_need_to_signal_on_read()")
Signed-off-by: John Starks <John.Starks@microsoft.com>
Signed-off-by: Dexuan Cui <decui@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: Stephen Hemminger <sthemmin@microsoft.com>
Cc: "K. Y. Srinivasan" <kys@microsoft.com>
Cc: <stable@vger.kernel.org>
Origin: https://patchwork.kernel.org/patch/9829039/
---
include/linux/hyperv.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/linux/hyperv.h b/include/linux/hyperv.h
index 9ee292b28e41..a87757cf277b 100644
--- a/include/linux/hyperv.h
+++ b/include/linux/hyperv.h
@@ -1525,11 +1525,11 @@ static inline void hv_signal_on_read(struct vmbus_channel *channel)
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;
--
2.11.1