From b9299ae0e7b939659d2549fe1e69768eeb1cf944 Mon Sep 17 00:00:00 2001 From: Shiji Yang Date: Sat, 21 Mar 2026 00:53:00 +0800 Subject: [PATCH] ramips: kernel: drop ip_fast_csum() dead loop fix The issue described in the patch has been fixed by commit 604355e8c4d1 ("kernel: fix fraglist GRO on linux 6.12") Signed-off-by: Shiji Yang Link: https://github.com/openwrt/openwrt/pull/22525 Signed-off-by: Robert Marko --- ...eck-if-data-length-is-zero-in-ip_fas.patch | 28 ------------------- 1 file changed, 28 deletions(-) delete mode 100644 target/linux/ramips/patches-6.12/325-MIPS-checksum-check-if-data-length-is-zero-in-ip_fas.patch diff --git a/target/linux/ramips/patches-6.12/325-MIPS-checksum-check-if-data-length-is-zero-in-ip_fas.patch b/target/linux/ramips/patches-6.12/325-MIPS-checksum-check-if-data-length-is-zero-in-ip_fas.patch deleted file mode 100644 index 6e78dd7199..0000000000 --- a/target/linux/ramips/patches-6.12/325-MIPS-checksum-check-if-data-length-is-zero-in-ip_fas.patch +++ /dev/null @@ -1,28 +0,0 @@ -From e34037bd3df9d80c96eda35d346a9220c71a3459 Mon Sep 17 00:00:00 2001 -From: Shiji Yang -Date: Fri, 30 May 2025 19:56:16 +0800 -Subject: [PATCH] MIPS: checksum: check if data length is zero in - ip_fast_csum() - -If ihl equals 0, the nonsensical infinite do while loop will -eventually access an invalid memory address, which will cause -the system to halt. - -Signed-off-by: Shiji Yang ---- - arch/mips/include/asm/checksum.h | 4 ++++ - 1 file changed, 4 insertions(+) - ---- a/arch/mips/include/asm/checksum.h -+++ b/arch/mips/include/asm/checksum.h -@@ -101,6 +101,10 @@ static inline __sum16 ip_fast_csum(const - unsigned int csum; - int carry; - -+ /* ihl should never be zero */ -+ if (unlikely(ihl == 0)) -+ return 0; -+ - csum = word[0]; - csum += word[1]; - carry = (csum < word[1]);