]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.1-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Dec 2015 03:30:00 +0000 (22:30 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Dec 2015 03:30:00 +0000 (22:30 -0500)
added patches:
netlink-add-missing-goto-statement-to-netlink_insert.patch

queue-4.1/netlink-add-missing-goto-statement-to-netlink_insert.patch [new file with mode: 0644]
queue-4.1/series

diff --git a/queue-4.1/netlink-add-missing-goto-statement-to-netlink_insert.patch b/queue-4.1/netlink-add-missing-goto-statement-to-netlink_insert.patch
new file mode 100644 (file)
index 0000000..03e5fe1
--- /dev/null
@@ -0,0 +1,38 @@
+From herbert@gondor.apana.org.au  Tue Dec  8 22:28:59 2015
+From: Herbert Xu <herbert@gondor.apana.org.au>
+Date: Tue, 8 Dec 2015 14:13:19 +0800
+Subject: netlink: Add missing goto statement to netlink_insert
+To: Stefan Priebe - Profihost AG <s.priebe@profihost.ag>
+Cc: Hannes Frederic Sowa <hannes@stressinduktion.org>, Florian Weimer <fweimer@redhat.com>, Thomas Gleixner <tglx@linutronix.de>, netdev@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, jannik Winkel <j.winkel@profihost.ag>, Marco Schinkel <m.schinkel@profihost.ag>, "David S. Miller" <davem@davemloft.net>, stable@vger.kernel.org
+Message-ID: <20151208061319.GA16209@gondor.apana.org.au>
+Content-Disposition: inline
+
+From: Herbert Xu <herbert@gondor.apana.org.au>
+
+The backport of 1f770c0a09da855a2b51af6d19de97fb955eca85 ("netlink:
+Fix autobind race condition that leads to zero port ID") missed a
+goto statement, which causes netlink to break subtly.
+
+This was discovered by Stefan Priebe <s.priebe@profihost.ag>.
+
+Fixes: 4e2776241766 ("netlink: Fix autobind race condition that...")
+Reported-by: Stefan Priebe <s.priebe@profihost.ag>
+Reported-by: Philipp Hahn <pmhahn@pmhahn.de>
+Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
+Acked-by: David S. Miller <davem@davemloft.net>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ net/netlink/af_netlink.c |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/net/netlink/af_netlink.c
++++ b/net/netlink/af_netlink.c
+@@ -1118,6 +1118,7 @@ static int netlink_insert(struct sock *s
+               if (err == -EEXIST)
+                       err = -EADDRINUSE;
+               sock_put(sk);
++              goto err;
+       }
+       /* We need to ensure that the socket is hashed and visible. */
index 216a1aadf104007c653cfc445ccab878f17c740a..dbc62421df81ca8cbefcdc6b9a0200790187fa87 100644 (file)
@@ -93,3 +93,4 @@ tty-fix-tty_send_xchar-lock-order-inversion.patch
 xhci-workaround-to-get-intel-xhci-reset-working-more-reliably.patch
 staging-lustre-use-jiffies-for-lp_last_query-times.patch
 kvm-s390-enable-simd-only-when-no-vcpus-were-created.patch
+netlink-add-missing-goto-statement-to-netlink_insert.patch