]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
drop net-dcb-validate-netlink-message-in-dcb-handler.patch from all queues
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Jan 2021 19:58:51 +0000 (20:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Jan 2021 19:58:51 +0000 (20:58 +0100)
12 files changed:
queue-4.14/net-dcb-validate-netlink-message-in-dcb-handler.patch [deleted file]
queue-4.14/series
queue-4.19/net-dcb-validate-netlink-message-in-dcb-handler.patch [deleted file]
queue-4.19/series
queue-4.4/net-dcb-validate-netlink-message-in-dcb-handler.patch [deleted file]
queue-4.4/series
queue-4.9/net-dcb-validate-netlink-message-in-dcb-handler.patch [deleted file]
queue-4.9/series
queue-5.10/net-dcb-validate-netlink-message-in-dcb-handler.patch [deleted file]
queue-5.10/series
queue-5.4/net-dcb-validate-netlink-message-in-dcb-handler.patch [deleted file]
queue-5.4/series

diff --git a/queue-4.14/net-dcb-validate-netlink-message-in-dcb-handler.patch b/queue-4.14/net-dcb-validate-netlink-message-in-dcb-handler.patch
deleted file mode 100644 (file)
index d9ff969..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-From foo@baz Sun Jan 10 01:16:11 PM CET 2021
-From: Petr Machata <me@pmachata.org>
-Date: Tue, 22 Dec 2020 22:49:44 +0100
-Subject: net: dcb: Validate netlink message in DCB handler
-
-From: Petr Machata <me@pmachata.org>
-
-[ Upstream commit 826f328e2b7e8854dd42ea44e6519cd75018e7b1 ]
-
-DCB uses the same handler function for both RTM_GETDCB and RTM_SETDCB
-messages. dcb_doit() bounces RTM_SETDCB mesasges if the user does not have
-the CAP_NET_ADMIN capability.
-
-However, the operation to be performed is not decided from the DCB message
-type, but from the DCB command. Thus DCB_CMD_*_GET commands are used for
-reading DCB objects, the corresponding SET and DEL commands are used for
-manipulation.
-
-The assumption is that set-like commands will be sent via an RTM_SETDCB
-message, and get-like ones via RTM_GETDCB. However, this assumption is not
-enforced.
-
-It is therefore possible to manipulate DCB objects without CAP_NET_ADMIN
-capability by sending the corresponding command in an RTM_GETDCB message.
-That is a bug. Fix it by validating the type of the request message against
-the type used for the response.
-
-Fixes: 2f90b8657ec9 ("ixgbe: this patch adds support for DCB to the kernel and ixgbe driver")
-Signed-off-by: Petr Machata <me@pmachata.org>
-Link: https://lore.kernel.org/r/a2a9b88418f3a58ef211b718f2970128ef9e3793.1608673640.git.me@pmachata.org
-Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- net/dcb/dcbnl.c |    2 ++
- 1 file changed, 2 insertions(+)
-
---- a/net/dcb/dcbnl.c
-+++ b/net/dcb/dcbnl.c
-@@ -1727,6 +1727,8 @@ static int dcb_doit(struct sk_buff *skb,
-       fn = &reply_funcs[dcb->cmd];
-       if (!fn->cb)
-               return -EOPNOTSUPP;
-+      if (fn->type != nlh->nlmsg_type)
-+              return -EPERM;
-       if (!tb[DCB_ATTR_IFNAME])
-               return -EINVAL;
index 1eecb1c87ef4acdec9a43313132d360248494e65..49165a0e7456ed31d4dde986b77e6c9f8645862d 100644 (file)
@@ -9,7 +9,6 @@ ethernet-ucc_geth-set-dev-max_mtu-to-1518.patch
 atm-idt77252-call-pci_disable_device-on-error-path.patch
 qede-fix-offload-for-ipip-tunnel-packets.patch
 virtio_net-fix-recursive-call-to-cpus_read_lock.patch
-net-dcb-validate-netlink-message-in-dcb-handler.patch
 net-ncsi-use-real-net-device-for-response-handler.patch
 net-ethernet-fix-memleak-in-ethoc_probe.patch
 net-sysfs-take-the-rtnl-lock-when-storing-xps_cpus.patch
diff --git a/queue-4.19/net-dcb-validate-netlink-message-in-dcb-handler.patch b/queue-4.19/net-dcb-validate-netlink-message-in-dcb-handler.patch
deleted file mode 100644 (file)
index 9897b97..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-From foo@baz Sun Jan 10 12:47:32 PM CET 2021
-From: Petr Machata <me@pmachata.org>
-Date: Tue, 22 Dec 2020 22:49:44 +0100
-Subject: net: dcb: Validate netlink message in DCB handler
-
-From: Petr Machata <me@pmachata.org>
-
-[ Upstream commit 826f328e2b7e8854dd42ea44e6519cd75018e7b1 ]
-
-DCB uses the same handler function for both RTM_GETDCB and RTM_SETDCB
-messages. dcb_doit() bounces RTM_SETDCB mesasges if the user does not have
-the CAP_NET_ADMIN capability.
-
-However, the operation to be performed is not decided from the DCB message
-type, but from the DCB command. Thus DCB_CMD_*_GET commands are used for
-reading DCB objects, the corresponding SET and DEL commands are used for
-manipulation.
-
-The assumption is that set-like commands will be sent via an RTM_SETDCB
-message, and get-like ones via RTM_GETDCB. However, this assumption is not
-enforced.
-
-It is therefore possible to manipulate DCB objects without CAP_NET_ADMIN
-capability by sending the corresponding command in an RTM_GETDCB message.
-That is a bug. Fix it by validating the type of the request message against
-the type used for the response.
-
-Fixes: 2f90b8657ec9 ("ixgbe: this patch adds support for DCB to the kernel and ixgbe driver")
-Signed-off-by: Petr Machata <me@pmachata.org>
-Link: https://lore.kernel.org/r/a2a9b88418f3a58ef211b718f2970128ef9e3793.1608673640.git.me@pmachata.org
-Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- net/dcb/dcbnl.c |    2 ++
- 1 file changed, 2 insertions(+)
-
---- a/net/dcb/dcbnl.c
-+++ b/net/dcb/dcbnl.c
-@@ -1756,6 +1756,8 @@ static int dcb_doit(struct sk_buff *skb,
-       fn = &reply_funcs[dcb->cmd];
-       if (!fn->cb)
-               return -EOPNOTSUPP;
-+      if (fn->type != nlh->nlmsg_type)
-+              return -EPERM;
-       if (!tb[DCB_ATTR_IFNAME])
-               return -EINVAL;
index 2394b98c165e2fe74b04f1812050d65e58209398..a20003fd9e3d2bf34e5b575841a200c2fba9cddd 100644 (file)
@@ -17,7 +17,6 @@ atm-idt77252-call-pci_disable_device-on-error-path.patch
 net-mvpp2-fix-gop-port-3-networking-complex-control-configurations.patch
 qede-fix-offload-for-ipip-tunnel-packets.patch
 virtio_net-fix-recursive-call-to-cpus_read_lock.patch
-net-dcb-validate-netlink-message-in-dcb-handler.patch
 net-ncsi-use-real-net-device-for-response-handler.patch
 net-ethernet-fix-memleak-in-ethoc_probe.patch
 net-sysfs-take-the-rtnl-lock-when-storing-xps_cpus.patch
diff --git a/queue-4.4/net-dcb-validate-netlink-message-in-dcb-handler.patch b/queue-4.4/net-dcb-validate-netlink-message-in-dcb-handler.patch
deleted file mode 100644 (file)
index 54633f7..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-From foo@baz Sun Jan 10 02:09:05 PM CET 2021
-From: Petr Machata <me@pmachata.org>
-Date: Tue, 22 Dec 2020 22:49:44 +0100
-Subject: net: dcb: Validate netlink message in DCB handler
-
-From: Petr Machata <me@pmachata.org>
-
-[ Upstream commit 826f328e2b7e8854dd42ea44e6519cd75018e7b1 ]
-
-DCB uses the same handler function for both RTM_GETDCB and RTM_SETDCB
-messages. dcb_doit() bounces RTM_SETDCB mesasges if the user does not have
-the CAP_NET_ADMIN capability.
-
-However, the operation to be performed is not decided from the DCB message
-type, but from the DCB command. Thus DCB_CMD_*_GET commands are used for
-reading DCB objects, the corresponding SET and DEL commands are used for
-manipulation.
-
-The assumption is that set-like commands will be sent via an RTM_SETDCB
-message, and get-like ones via RTM_GETDCB. However, this assumption is not
-enforced.
-
-It is therefore possible to manipulate DCB objects without CAP_NET_ADMIN
-capability by sending the corresponding command in an RTM_GETDCB message.
-That is a bug. Fix it by validating the type of the request message against
-the type used for the response.
-
-Fixes: 2f90b8657ec9 ("ixgbe: this patch adds support for DCB to the kernel and ixgbe driver")
-Signed-off-by: Petr Machata <me@pmachata.org>
-Link: https://lore.kernel.org/r/a2a9b88418f3a58ef211b718f2970128ef9e3793.1608673640.git.me@pmachata.org
-Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- net/dcb/dcbnl.c |    2 ++
- 1 file changed, 2 insertions(+)
-
---- a/net/dcb/dcbnl.c
-+++ b/net/dcb/dcbnl.c
-@@ -1725,6 +1725,8 @@ static int dcb_doit(struct sk_buff *skb,
-       fn = &reply_funcs[dcb->cmd];
-       if (!fn->cb)
-               return -EOPNOTSUPP;
-+      if (fn->type != nlh->nlmsg_type)
-+              return -EPERM;
-       if (!tb[DCB_ATTR_IFNAME])
-               return -EINVAL;
index 3b57d91c9889cd56d94620391399c0aae8ebb5c8..b2f4a1cdee34e36e6c69077569b8962bb3dc5fe9 100644 (file)
@@ -3,7 +3,6 @@ workqueue-kick-a-worker-based-on-the-actual-activati.patch
 lib-genalloc-fix-the-overflow-when-size-is-too-big.patch
 depmod-handle-the-case-of-sbin-depmod-without-sbin-i.patch
 atm-idt77252-call-pci_disable_device-on-error-path.patch
-net-dcb-validate-netlink-message-in-dcb-handler.patch
 ipv4-ignore-ecn-bits-for-fib-lookups-in-fib_compute_spec_dst.patch
 net-hns-fix-return-value-check-in-__lb_other_process.patch
 net-hdlc_ppp-fix-issues-when-mod_timer-is-called-while-timer-is-running.patch
diff --git a/queue-4.9/net-dcb-validate-netlink-message-in-dcb-handler.patch b/queue-4.9/net-dcb-validate-netlink-message-in-dcb-handler.patch
deleted file mode 100644 (file)
index 1211657..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-From foo@baz Sun Jan 10 01:36:06 PM CET 2021
-From: Petr Machata <me@pmachata.org>
-Date: Tue, 22 Dec 2020 22:49:44 +0100
-Subject: net: dcb: Validate netlink message in DCB handler
-
-From: Petr Machata <me@pmachata.org>
-
-[ Upstream commit 826f328e2b7e8854dd42ea44e6519cd75018e7b1 ]
-
-DCB uses the same handler function for both RTM_GETDCB and RTM_SETDCB
-messages. dcb_doit() bounces RTM_SETDCB mesasges if the user does not have
-the CAP_NET_ADMIN capability.
-
-However, the operation to be performed is not decided from the DCB message
-type, but from the DCB command. Thus DCB_CMD_*_GET commands are used for
-reading DCB objects, the corresponding SET and DEL commands are used for
-manipulation.
-
-The assumption is that set-like commands will be sent via an RTM_SETDCB
-message, and get-like ones via RTM_GETDCB. However, this assumption is not
-enforced.
-
-It is therefore possible to manipulate DCB objects without CAP_NET_ADMIN
-capability by sending the corresponding command in an RTM_GETDCB message.
-That is a bug. Fix it by validating the type of the request message against
-the type used for the response.
-
-Fixes: 2f90b8657ec9 ("ixgbe: this patch adds support for DCB to the kernel and ixgbe driver")
-Signed-off-by: Petr Machata <me@pmachata.org>
-Link: https://lore.kernel.org/r/a2a9b88418f3a58ef211b718f2970128ef9e3793.1608673640.git.me@pmachata.org
-Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- net/dcb/dcbnl.c |    2 ++
- 1 file changed, 2 insertions(+)
-
---- a/net/dcb/dcbnl.c
-+++ b/net/dcb/dcbnl.c
-@@ -1726,6 +1726,8 @@ static int dcb_doit(struct sk_buff *skb,
-       fn = &reply_funcs[dcb->cmd];
-       if (!fn->cb)
-               return -EOPNOTSUPP;
-+      if (fn->type != nlh->nlmsg_type)
-+              return -EPERM;
-       if (!tb[DCB_ATTR_IFNAME])
-               return -EINVAL;
index 1f20d66610bc957d5b8edc918b37d3736e3204e4..9b38751c4a392eca8e63573ad9c75f5e79041f9f 100644 (file)
@@ -4,7 +4,6 @@ lib-genalloc-fix-the-overflow-when-size-is-too-big.patch
 depmod-handle-the-case-of-sbin-depmod-without-sbin-i.patch
 ethernet-ucc_geth-fix-use-after-free-in-ucc_geth_remove.patch
 atm-idt77252-call-pci_disable_device-on-error-path.patch
-net-dcb-validate-netlink-message-in-dcb-handler.patch
 net-ncsi-use-real-net-device-for-response-handler.patch
 net-ethernet-fix-memleak-in-ethoc_probe.patch
 ipv4-ignore-ecn-bits-for-fib-lookups-in-fib_compute_spec_dst.patch
diff --git a/queue-5.10/net-dcb-validate-netlink-message-in-dcb-handler.patch b/queue-5.10/net-dcb-validate-netlink-message-in-dcb-handler.patch
deleted file mode 100644 (file)
index 8fabd21..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-From foo@baz Sun Jan 10 11:18:59 AM CET 2021
-From: Petr Machata <me@pmachata.org>
-Date: Tue, 22 Dec 2020 22:49:44 +0100
-Subject: net: dcb: Validate netlink message in DCB handler
-
-From: Petr Machata <me@pmachata.org>
-
-[ Upstream commit 826f328e2b7e8854dd42ea44e6519cd75018e7b1 ]
-
-DCB uses the same handler function for both RTM_GETDCB and RTM_SETDCB
-messages. dcb_doit() bounces RTM_SETDCB mesasges if the user does not have
-the CAP_NET_ADMIN capability.
-
-However, the operation to be performed is not decided from the DCB message
-type, but from the DCB command. Thus DCB_CMD_*_GET commands are used for
-reading DCB objects, the corresponding SET and DEL commands are used for
-manipulation.
-
-The assumption is that set-like commands will be sent via an RTM_SETDCB
-message, and get-like ones via RTM_GETDCB. However, this assumption is not
-enforced.
-
-It is therefore possible to manipulate DCB objects without CAP_NET_ADMIN
-capability by sending the corresponding command in an RTM_GETDCB message.
-That is a bug. Fix it by validating the type of the request message against
-the type used for the response.
-
-Fixes: 2f90b8657ec9 ("ixgbe: this patch adds support for DCB to the kernel and ixgbe driver")
-Signed-off-by: Petr Machata <me@pmachata.org>
-Link: https://lore.kernel.org/r/a2a9b88418f3a58ef211b718f2970128ef9e3793.1608673640.git.me@pmachata.org
-Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- net/dcb/dcbnl.c |    2 ++
- 1 file changed, 2 insertions(+)
-
---- a/net/dcb/dcbnl.c
-+++ b/net/dcb/dcbnl.c
-@@ -1765,6 +1765,8 @@ static int dcb_doit(struct sk_buff *skb,
-       fn = &reply_funcs[dcb->cmd];
-       if (!fn->cb)
-               return -EOPNOTSUPP;
-+      if (fn->type != nlh->nlmsg_type)
-+              return -EPERM;
-       if (!tb[DCB_ATTR_IFNAME])
-               return -EINVAL;
index 1d01a717bfac65850e6396216c079eb1ee56e3f8..20190049a8c429c7665d591bc3be6a53880acdd9 100644 (file)
@@ -15,7 +15,6 @@ ibmvnic-continue-fatal-error-reset-after-passive-init.patch
 net-ethernet-mvneta-fix-error-handling-in-mvneta_probe.patch
 qede-fix-offload-for-ipip-tunnel-packets.patch
 virtio_net-fix-recursive-call-to-cpus_read_lock.patch
-net-dcb-validate-netlink-message-in-dcb-handler.patch
 net-ncsi-use-real-net-device-for-response-handler.patch
 net-ethernet-fix-memleak-in-ethoc_probe.patch
 net-sysfs-take-the-rtnl-lock-when-storing-xps_cpus.patch
diff --git a/queue-5.4/net-dcb-validate-netlink-message-in-dcb-handler.patch b/queue-5.4/net-dcb-validate-netlink-message-in-dcb-handler.patch
deleted file mode 100644 (file)
index 70d16f1..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-From foo@baz Sun Jan 10 11:49:07 AM CET 2021
-From: Petr Machata <me@pmachata.org>
-Date: Tue, 22 Dec 2020 22:49:44 +0100
-Subject: net: dcb: Validate netlink message in DCB handler
-
-From: Petr Machata <me@pmachata.org>
-
-[ Upstream commit 826f328e2b7e8854dd42ea44e6519cd75018e7b1 ]
-
-DCB uses the same handler function for both RTM_GETDCB and RTM_SETDCB
-messages. dcb_doit() bounces RTM_SETDCB mesasges if the user does not have
-the CAP_NET_ADMIN capability.
-
-However, the operation to be performed is not decided from the DCB message
-type, but from the DCB command. Thus DCB_CMD_*_GET commands are used for
-reading DCB objects, the corresponding SET and DEL commands are used for
-manipulation.
-
-The assumption is that set-like commands will be sent via an RTM_SETDCB
-message, and get-like ones via RTM_GETDCB. However, this assumption is not
-enforced.
-
-It is therefore possible to manipulate DCB objects without CAP_NET_ADMIN
-capability by sending the corresponding command in an RTM_GETDCB message.
-That is a bug. Fix it by validating the type of the request message against
-the type used for the response.
-
-Fixes: 2f90b8657ec9 ("ixgbe: this patch adds support for DCB to the kernel and ixgbe driver")
-Signed-off-by: Petr Machata <me@pmachata.org>
-Link: https://lore.kernel.org/r/a2a9b88418f3a58ef211b718f2970128ef9e3793.1608673640.git.me@pmachata.org
-Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
----
- net/dcb/dcbnl.c |    2 ++
- 1 file changed, 2 insertions(+)
-
---- a/net/dcb/dcbnl.c
-+++ b/net/dcb/dcbnl.c
-@@ -1765,6 +1765,8 @@ static int dcb_doit(struct sk_buff *skb,
-       fn = &reply_funcs[dcb->cmd];
-       if (!fn->cb)
-               return -EOPNOTSUPP;
-+      if (fn->type != nlh->nlmsg_type)
-+              return -EPERM;
-       if (!tb[DCB_ATTR_IFNAME])
-               return -EINVAL;
index 3393290a9185b89d4aef6af36c04fbef45376721..2ace4f5d2d3d528a0842285b7f8cd509f200c344 100644 (file)
@@ -20,7 +20,6 @@ ibmvnic-continue-fatal-error-reset-after-passive-init.patch
 net-ethernet-mvneta-fix-error-handling-in-mvneta_probe.patch
 qede-fix-offload-for-ipip-tunnel-packets.patch
 virtio_net-fix-recursive-call-to-cpus_read_lock.patch
-net-dcb-validate-netlink-message-in-dcb-handler.patch
 net-ncsi-use-real-net-device-for-response-handler.patch
 net-ethernet-fix-memleak-in-ethoc_probe.patch
 net-sysfs-take-the-rtnl-lock-when-storing-xps_cpus.patch