From: Greg Kroah-Hartman Date: Mon, 15 Jul 2024 12:11:05 +0000 (+0200) Subject: 6.6-stable patches X-Git-Tag: v4.19.318~37 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3e3bf4fefd0d58adf2ef4505d02b4364ef36dbc0;p=thirdparty%2Fkernel%2Fstable-queue.git 6.6-stable patches added patches: selftests-net-fix-gro.c-compilation-failure-due-to-non-existent-opt_ipproto_off.patch --- diff --git a/queue-6.6/selftests-net-fix-gro.c-compilation-failure-due-to-non-existent-opt_ipproto_off.patch b/queue-6.6/selftests-net-fix-gro.c-compilation-failure-due-to-non-existent-opt_ipproto_off.patch new file mode 100644 index 00000000000..5e315a04689 --- /dev/null +++ b/queue-6.6/selftests-net-fix-gro.c-compilation-failure-due-to-non-existent-opt_ipproto_off.patch @@ -0,0 +1,36 @@ +From jhubbard@nvidia.com Mon Jul 15 14:10:26 2024 +From: John Hubbard +Date: Fri, 12 Jul 2024 16:51:50 -0700 +Subject: [PATCH] selftests/net: fix gro.c compilation failure due to non-existent opt_ipproto_off +To: Greg Kroah-Hartman +Cc: "Shuah Khan" , "David S . Miller" , "Eric Dumazet" , "Jakub Kicinski" , "Paolo Abeni" , "Steffen Klassert" , "Herbert Xu" , "Andreas Färber" , "Manivannan Sadhasivam" , "Matthieu Baerts" , "Mat Martineau" , "Geliang Tang" , "Pravin B Shelar" , "Willem de Bruijn" , "Alexander Mikhalitsyn" , zhujun2 , "Petr Machata" , "Ido Schimmel" , "Hangbin Liu" , "Nikolay Aleksandrov" , "Benjamin Poirier" , "Sebastian Andrzej Siewior" , "Dmitry Safonov" <0x7f454c46@gmail.com>, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-actions@lists.infradead.org, mptcp@lists.linux.dev, dev@openvswitch.org, linux-kselftest@vger.kernel.org, LKML , llvm@lists.linux.dev, "John Hubbard" , stable@vger.kernel.org, "Ignat Korchagin" +Message-ID: <20240712235150.99175-1-jhubbard@nvidia.com> + +From: John Hubbard + +Linux 6.6 does not have an opt_ipproto_off variable in gro.c at all (it +was added in later kernel versions), so attempting to initialize one +breaks the build. + +Fixes: c80d53c484e8 ("selftests/net: fix uninitialized variables") +Cc: # 6.6 +Reported-by: Ignat Korchagin +Closes: https://lore.kernel.org/all/8B1717DB-8C4A-47EE-B28C-170B630C4639@cloudflare.com/#t +Signed-off-by: John Hubbard +Signed-off-by: Greg Kroah-Hartman +--- + tools/testing/selftests/net/gro.c | 3 --- + 1 file changed, 3 deletions(-) + +--- a/tools/testing/selftests/net/gro.c ++++ b/tools/testing/selftests/net/gro.c +@@ -113,9 +113,6 @@ static void setup_sock_filter(int fd) + next_off = offsetof(struct ipv6hdr, nexthdr); + ipproto_off = ETH_HLEN + next_off; + +- /* Overridden later if exthdrs are used: */ +- opt_ipproto_off = ipproto_off; +- + if (strcmp(testname, "ip") == 0) { + if (proto == PF_INET) + optlen = sizeof(struct ip_timestamp); diff --git a/queue-6.6/series b/queue-6.6/series index 0484626125a..3fa3db5f8e0 100644 --- a/queue-6.6/series +++ b/queue-6.6/series @@ -102,3 +102,4 @@ misc-fastrpc-fix-ownership-reassignment-of-remote-heap.patch misc-fastrpc-restrict-untrusted-app-to-attach-to-privileged-pd.patch mm-shmem-disable-pmd-sized-page-cache-if-needed.patch mm-damon-core-merge-regions-aggressively-when-max_nr_regions-is-unmet.patch +selftests-net-fix-gro.c-compilation-failure-due-to-non-existent-opt_ipproto_off.patch