]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
drop net-remove-two-bug-from-skb_checksum_help.patch from 5.4 and older
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Jun 2022 09:32:18 +0000 (11:32 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Jun 2022 09:32:18 +0000 (11:32 +0200)
queue-4.14/net-remove-two-bug-from-skb_checksum_help.patch [deleted file]
queue-4.14/series
queue-4.19/net-remove-two-bug-from-skb_checksum_help.patch [deleted file]
queue-4.19/series
queue-4.9/net-remove-two-bug-from-skb_checksum_help.patch [deleted file]
queue-4.9/series
queue-5.4/net-remove-two-bug-from-skb_checksum_help.patch [deleted file]
queue-5.4/series

diff --git a/queue-4.14/net-remove-two-bug-from-skb_checksum_help.patch b/queue-4.14/net-remove-two-bug-from-skb_checksum_help.patch
deleted file mode 100644 (file)
index de98a88..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-From 6374a2d901c66437fda6b4796c915b0d95dd7000 Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Mon, 9 May 2022 20:57:40 -0700
-Subject: net: remove two BUG() from skb_checksum_help()
-
-From: Eric Dumazet <edumazet@google.com>
-
-[ Upstream commit d7ea0d9df2a6265b2b180d17ebc64b38105968fc ]
-
-I have a syzbot report that managed to get a crash in skb_checksum_help()
-
-If syzbot can trigger these BUG(), it makes sense to replace
-them with more friendly WARN_ON_ONCE() since skb_checksum_help()
-can instead return an error code.
-
-Note that syzbot will still crash there, until real bug is fixed.
-
-Signed-off-by: Eric Dumazet <edumazet@google.com>
-Signed-off-by: David S. Miller <davem@davemloft.net>
-Signed-off-by: Sasha Levin <sashal@kernel.org>
----
- net/core/dev.c | 8 ++++++--
- 1 file changed, 6 insertions(+), 2 deletions(-)
-
-diff --git a/net/core/dev.c b/net/core/dev.c
-index ea09e0809c12..d99dce0efedc 100644
---- a/net/core/dev.c
-+++ b/net/core/dev.c
-@@ -2641,11 +2641,15 @@ int skb_checksum_help(struct sk_buff *skb)
-       }
-       offset = skb_checksum_start_offset(skb);
--      BUG_ON(offset >= skb_headlen(skb));
-+      ret = -EINVAL;
-+      if (WARN_ON_ONCE(offset >= skb_headlen(skb)))
-+              goto out;
-+
-       csum = skb_checksum(skb, offset, skb->len - offset, 0);
-       offset += skb->csum_offset;
--      BUG_ON(offset + sizeof(__sum16) > skb_headlen(skb));
-+      if (WARN_ON_ONCE(offset + sizeof(__sum16) > skb_headlen(skb)))
-+              goto out;
-       if (skb_cloned(skb) &&
-           !skb_clone_writable(skb, offset + sizeof(__sum16))) {
--- 
-2.35.1
-
index c583fb918913c7e0863d3f6bfe6e5d9499f1323a..22ba86f7c62348537bb9f5e966cac42b5ac75a79 100644 (file)
@@ -21,7 +21,6 @@ scsi-megaraid-fix-error-check-return-value-of-regist.patch
 drm-amd-pm-fix-the-compile-warning.patch
 ipv6-don-t-send-rs-packets-to-the-interface-of-arphr.patch
 asoc-dapm-don-t-fold-register-value-changes-into-not.patch
-net-remove-two-bug-from-skb_checksum_help.patch
 s390-preempt-disable-__preempt_count_add-optimizatio.patch
 dma-debug-change-allocation-mode-from-gfp_nowait-to-.patch
 ipmi-ssif-check-for-null-msg-when-handling-events-an.patch
diff --git a/queue-4.19/net-remove-two-bug-from-skb_checksum_help.patch b/queue-4.19/net-remove-two-bug-from-skb_checksum_help.patch
deleted file mode 100644 (file)
index 1fcac8b..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-From f9c49811fc861818637efb494ddf05ea351838c5 Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Mon, 9 May 2022 20:57:40 -0700
-Subject: net: remove two BUG() from skb_checksum_help()
-
-From: Eric Dumazet <edumazet@google.com>
-
-[ Upstream commit d7ea0d9df2a6265b2b180d17ebc64b38105968fc ]
-
-I have a syzbot report that managed to get a crash in skb_checksum_help()
-
-If syzbot can trigger these BUG(), it makes sense to replace
-them with more friendly WARN_ON_ONCE() since skb_checksum_help()
-can instead return an error code.
-
-Note that syzbot will still crash there, until real bug is fixed.
-
-Signed-off-by: Eric Dumazet <edumazet@google.com>
-Signed-off-by: David S. Miller <davem@davemloft.net>
-Signed-off-by: Sasha Levin <sashal@kernel.org>
----
- net/core/dev.c | 8 ++++++--
- 1 file changed, 6 insertions(+), 2 deletions(-)
-
-diff --git a/net/core/dev.c b/net/core/dev.c
-index 42f6ff8b9703..b2fc3884a8f4 100644
---- a/net/core/dev.c
-+++ b/net/core/dev.c
-@@ -2918,11 +2918,15 @@ int skb_checksum_help(struct sk_buff *skb)
-       }
-       offset = skb_checksum_start_offset(skb);
--      BUG_ON(offset >= skb_headlen(skb));
-+      ret = -EINVAL;
-+      if (WARN_ON_ONCE(offset >= skb_headlen(skb)))
-+              goto out;
-+
-       csum = skb_checksum(skb, offset, skb->len - offset, 0);
-       offset += skb->csum_offset;
--      BUG_ON(offset + sizeof(__sum16) > skb_headlen(skb));
-+      if (WARN_ON_ONCE(offset + sizeof(__sum16) > skb_headlen(skb)))
-+              goto out;
-       if (skb_cloned(skb) &&
-           !skb_clone_writable(skb, offset + sizeof(__sum16))) {
--- 
-2.35.1
-
index 49c38eec5b3b8735b2814f32e907c1048c36b5c3..800c148cd252f286210d43ee65beacaf483e43bc 100644 (file)
@@ -28,7 +28,6 @@ ipv6-don-t-send-rs-packets-to-the-interface-of-arphr.patch
 asoc-dapm-don-t-fold-register-value-changes-into-not.patch
 mlxsw-spectrum_dcb-do-not-warn-about-priority-change.patch
 asoc-tscs454-add-endianness-flag-in-snd_soc_componen.patch
-net-remove-two-bug-from-skb_checksum_help.patch
 s390-preempt-disable-__preempt_count_add-optimizatio.patch
 dma-debug-change-allocation-mode-from-gfp_nowait-to-.patch
 ipmi-ssif-check-for-null-msg-when-handling-events-an.patch
diff --git a/queue-4.9/net-remove-two-bug-from-skb_checksum_help.patch b/queue-4.9/net-remove-two-bug-from-skb_checksum_help.patch
deleted file mode 100644 (file)
index 45f0809..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-From e4b2ae55fd84627100243eb002ef7e93da392781 Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Mon, 9 May 2022 20:57:40 -0700
-Subject: net: remove two BUG() from skb_checksum_help()
-
-From: Eric Dumazet <edumazet@google.com>
-
-[ Upstream commit d7ea0d9df2a6265b2b180d17ebc64b38105968fc ]
-
-I have a syzbot report that managed to get a crash in skb_checksum_help()
-
-If syzbot can trigger these BUG(), it makes sense to replace
-them with more friendly WARN_ON_ONCE() since skb_checksum_help()
-can instead return an error code.
-
-Note that syzbot will still crash there, until real bug is fixed.
-
-Signed-off-by: Eric Dumazet <edumazet@google.com>
-Signed-off-by: David S. Miller <davem@davemloft.net>
-Signed-off-by: Sasha Levin <sashal@kernel.org>
----
- net/core/dev.c | 8 ++++++--
- 1 file changed, 6 insertions(+), 2 deletions(-)
-
-diff --git a/net/core/dev.c b/net/core/dev.c
-index 47468fc5d0c9..d725ca4d4455 100644
---- a/net/core/dev.c
-+++ b/net/core/dev.c
-@@ -2518,11 +2518,15 @@ int skb_checksum_help(struct sk_buff *skb)
-       }
-       offset = skb_checksum_start_offset(skb);
--      BUG_ON(offset >= skb_headlen(skb));
-+      ret = -EINVAL;
-+      if (WARN_ON_ONCE(offset >= skb_headlen(skb)))
-+              goto out;
-+
-       csum = skb_checksum(skb, offset, skb->len - offset, 0);
-       offset += skb->csum_offset;
--      BUG_ON(offset + sizeof(__sum16) > skb_headlen(skb));
-+      if (WARN_ON_ONCE(offset + sizeof(__sum16) > skb_headlen(skb)))
-+              goto out;
-       if (skb_cloned(skb) &&
-           !skb_clone_writable(skb, offset + sizeof(__sum16))) {
--- 
-2.35.1
-
index b55e69a807ed09de8d18d1e717977bc00c3cb149..3bf3a23d70cf71393dbaaf7797b15497c4232712 100644 (file)
@@ -16,7 +16,6 @@ scsi-megaraid-fix-error-check-return-value-of-regist.patch
 drm-amd-pm-fix-the-compile-warning.patch
 ipv6-don-t-send-rs-packets-to-the-interface-of-arphr.patch
 asoc-dapm-don-t-fold-register-value-changes-into-not.patch
-net-remove-two-bug-from-skb_checksum_help.patch
 dma-debug-change-allocation-mode-from-gfp_nowait-to-.patch
 ipmi-ssif-check-for-null-msg-when-handling-events-an.patch
 openrisc-start-cpu-timer-early-in-boot.patch
diff --git a/queue-5.4/net-remove-two-bug-from-skb_checksum_help.patch b/queue-5.4/net-remove-two-bug-from-skb_checksum_help.patch
deleted file mode 100644 (file)
index e2fc781..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-From 64c4b2f8a29a00a5ad19daf7a28770d1c8c7a5f4 Mon Sep 17 00:00:00 2001
-From: Sasha Levin <sashal@kernel.org>
-Date: Mon, 9 May 2022 20:57:40 -0700
-Subject: net: remove two BUG() from skb_checksum_help()
-
-From: Eric Dumazet <edumazet@google.com>
-
-[ Upstream commit d7ea0d9df2a6265b2b180d17ebc64b38105968fc ]
-
-I have a syzbot report that managed to get a crash in skb_checksum_help()
-
-If syzbot can trigger these BUG(), it makes sense to replace
-them with more friendly WARN_ON_ONCE() since skb_checksum_help()
-can instead return an error code.
-
-Note that syzbot will still crash there, until real bug is fixed.
-
-Signed-off-by: Eric Dumazet <edumazet@google.com>
-Signed-off-by: David S. Miller <davem@davemloft.net>
-Signed-off-by: Sasha Levin <sashal@kernel.org>
----
- net/core/dev.c | 8 ++++++--
- 1 file changed, 6 insertions(+), 2 deletions(-)
-
-diff --git a/net/core/dev.c b/net/core/dev.c
-index a03036456221..8fd0a0591e89 100644
---- a/net/core/dev.c
-+++ b/net/core/dev.c
-@@ -2857,11 +2857,15 @@ int skb_checksum_help(struct sk_buff *skb)
-       }
-       offset = skb_checksum_start_offset(skb);
--      BUG_ON(offset >= skb_headlen(skb));
-+      ret = -EINVAL;
-+      if (WARN_ON_ONCE(offset >= skb_headlen(skb)))
-+              goto out;
-+
-       csum = skb_checksum(skb, offset, skb->len - offset, 0);
-       offset += skb->csum_offset;
--      BUG_ON(offset + sizeof(__sum16) > skb_headlen(skb));
-+      if (WARN_ON_ONCE(offset + sizeof(__sum16) > skb_headlen(skb)))
-+              goto out;
-       if (skb_cloned(skb) &&
-           !skb_clone_writable(skb, offset + sizeof(__sum16))) {
--- 
-2.35.1
-
index 44e0d616c55d298c0a1018f5a82f1d1ae990a95b..4734cdcee4d15003bc3995a96901e1df863eb6eb 100644 (file)
@@ -40,7 +40,6 @@ mlxsw-spectrum_dcb-do-not-warn-about-priority-change.patch
 drm-amdgpu-ucode-remove-firmware-load-type-check-in-.patch
 hid-bigben-fix-slab-out-of-bounds-write-in-bigben_pr.patch
 asoc-tscs454-add-endianness-flag-in-snd_soc_componen.patch
-net-remove-two-bug-from-skb_checksum_help.patch
 s390-preempt-disable-__preempt_count_add-optimizatio.patch
 spi-stm32-qspi-fix-wait_cmd-timeout-in-apm-mode.patch
 dma-debug-change-allocation-mode-from-gfp_nowait-to-.patch