]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.4-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2017 11:31:52 +0000 (12:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2017 11:31:52 +0000 (12:31 +0100)
added patches:
revert-sctp-do-not-peel-off-an-assoc-from-one-netns-to.patch

queue-4.4/revert-sctp-do-not-peel-off-an-assoc-from-one-netns-to.patch [new file with mode: 0644]
queue-4.4/series

diff --git a/queue-4.4/revert-sctp-do-not-peel-off-an-assoc-from-one-netns-to.patch b/queue-4.4/revert-sctp-do-not-peel-off-an-assoc-from-one-netns-to.patch
new file mode 100644 (file)
index 0000000..93dd692
--- /dev/null
@@ -0,0 +1,35 @@
+From c76eb04f0895952a58f0029223f181854901e52e Mon Sep 17 00:00:00 2001
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+Date: Tue, 28 Nov 2017 12:29:45 +0100
+Subject: Revert "sctp: do not peel off an assoc from one netns to another one"
+
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+This reverts commit 2a0e60907e54dad75e9b3568d02bec11d6e74f6b which is
+commit df80cd9b28b9ebaa284a41df611dbf3a2d05ca74 upstream as I messed up
+by applying it to the tree twice.
+
+Reported-by: Michal Kubecek <mkubecek@suse.cz>
+Cc: ChunYu Wang <chunwang@redhat.com>
+Cc: Xin Long <lucien.xin@gmail.com>
+Cc: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
+Cc: Neil Horman <nhorman@tuxdriver.com>
+Cc: David S. Miller <davem@davemloft.net>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ net/sctp/socket.c |    4 ----
+ 1 file changed, 4 deletions(-)
+
+--- a/net/sctp/socket.c
++++ b/net/sctp/socket.c
+@@ -4457,10 +4457,6 @@ int sctp_do_peeloff(struct sock *sk, sct
+       if (!net_eq(current->nsproxy->net_ns, sock_net(sk)))
+               return -EINVAL;
+-      /* Do not peel off from one netns to another one. */
+-      if (!net_eq(current->nsproxy->net_ns, sock_net(sk)))
+-              return -EINVAL;
+-
+       if (!asoc)
+               return -EINVAL;
index b329cb338ab7f7c1a3afc813c99c1ba61e9a9a6d..ed69a1e813a6f9b0ce5e8be167e17b95528407b8 100644 (file)
@@ -94,3 +94,4 @@ btrfs-return-the-actual-error-value-from-from-btrfs_uuid_tree_iterate.patch
 asoc-wm_adsp-don-t-overrun-firmware-file-buffer-when-reading-region-data.patch
 s390-kbuild-enable-modversions-for-symbols-exported-from-asm.patch
 xen-xenbus-driver-must-not-accept-invalid-transaction-ids.patch
+revert-sctp-do-not-peel-off-an-assoc-from-one-netns-to.patch