From: Greg Kroah-Hartman Date: Thu, 29 Oct 2020 11:34:13 +0000 (+0100) Subject: 4.4-stable patches X-Git-Tag: v4.19.154~30 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=439661dd43b91a6a82943c86dcb36a6cead78872;p=thirdparty%2Fkernel%2Fstable-queue.git 4.4-stable patches added patches: sunrpc-econnrefused-should-cause-a-rebind.patch --- diff --git a/queue-4.19/series b/queue-4.19/series new file mode 100644 index 00000000000..4865bb331fd --- /dev/null +++ b/queue-4.19/series @@ -0,0 +1 @@ +objtool-support-clang-non-section-symbols-in-orc-generation.patch diff --git a/queue-4.4/series b/queue-4.4/series new file mode 100644 index 00000000000..5acd35dbb50 --- /dev/null +++ b/queue-4.4/series @@ -0,0 +1 @@ +sunrpc-econnrefused-should-cause-a-rebind.patch diff --git a/queue-4.4/sunrpc-econnrefused-should-cause-a-rebind.patch b/queue-4.4/sunrpc-econnrefused-should-cause-a-rebind.patch new file mode 100644 index 00000000000..1c243ed0807 --- /dev/null +++ b/queue-4.4/sunrpc-econnrefused-should-cause-a-rebind.patch @@ -0,0 +1,52 @@ +From fd01b2597941d9c17980222999b0721648b383b8 Mon Sep 17 00:00:00 2001 +From: NeilBrown +Date: Fri, 18 Aug 2017 17:12:51 +1000 +Subject: SUNRPC: ECONNREFUSED should cause a rebind. + +From: NeilBrown + +commit fd01b2597941d9c17980222999b0721648b383b8 upstream. + +If you + - mount and NFSv3 filesystem + - do some file locking which requires the server + to make a GRANT call back + - unmount + - mount again and do the same locking + +then the second attempt at locking suffers a 30 second delay. +Unmounting and remounting causes lockd to stop and restart, +which causes it to bind to a new port. +The server still thinks the old port is valid and gets ECONNREFUSED +when trying to contact it. +ECONNREFUSED should be seen as a hard error that is not worth +retrying. Rebinding is the only reasonable response. + +This patch forces a rebind if that makes sense. + +Signed-off-by: NeilBrown +Signed-off-by: Trond Myklebust +Cc: Calum Mackay +Signed-off-by: Greg Kroah-Hartman + +--- + net/sunrpc/clnt.c | 8 ++++++++ + 1 file changed, 8 insertions(+) + +--- a/net/sunrpc/clnt.c ++++ b/net/sunrpc/clnt.c +@@ -1826,6 +1826,14 @@ call_connect_status(struct rpc_task *tas + task->tk_status = 0; + switch (status) { + case -ECONNREFUSED: ++ /* A positive refusal suggests a rebind is needed. */ ++ if (RPC_IS_SOFTCONN(task)) ++ break; ++ if (clnt->cl_autobind) { ++ rpc_force_rebind(clnt); ++ task->tk_action = call_bind; ++ return; ++ } + case -ECONNRESET: + case -ECONNABORTED: + case -ENETUNREACH: diff --git a/queue-4.9/series b/queue-4.9/series new file mode 100644 index 00000000000..5acd35dbb50 --- /dev/null +++ b/queue-4.9/series @@ -0,0 +1 @@ +sunrpc-econnrefused-should-cause-a-rebind.patch diff --git a/queue-5.4/series b/queue-5.4/series new file mode 100644 index 00000000000..a41f8d98cec --- /dev/null +++ b/queue-5.4/series @@ -0,0 +1,3 @@ +netfilter-nftables_offload-kasan-slab-out-of-bounds-read-in-nft_flow_rule_create.patch +socket-don-t-clear-sock_tstamp_new-when-so_timestampns-is-disabled.patch +objtool-support-clang-non-section-symbols-in-orc-generation.patch diff --git a/queue-5.8/series b/queue-5.8/series new file mode 100644 index 00000000000..a9871319fc4 --- /dev/null +++ b/queue-5.8/series @@ -0,0 +1 @@ +netfilter-nftables_offload-kasan-slab-out-of-bounds-read-in-nft_flow_rule_create.patch diff --git a/queue-5.9/series b/queue-5.9/series new file mode 100644 index 00000000000..858c46a546d --- /dev/null +++ b/queue-5.9/series @@ -0,0 +1,2 @@ +cpufreq-improve-code-around-unlisted-freq-check.patch +netfilter-nftables_offload-kasan-slab-out-of-bounds-read-in-nft_flow_rule_create.patch