* [PATCH] selftests/net: fix gro.c compilation failure due to non-existent opt_ipproto_off
@ 2024-07-12 23:51 John Hubbard
2024-07-13 0:01 ` John Hubbard
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: John Hubbard @ 2024-07-12 23:51 UTC (permalink / raw)
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, netdev,
linux-arm-kernel, linux-actions, mptcp, dev, linux-kselftest,
LKML, llvm, John Hubbard, stable, Ignat Korchagin
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: <stable@vger.kernel.org> # 6.6
Reported-by: Ignat Korchagin <ignat@cloudflare.com>
Closes: https://lore.kernel.org/all/8B1717DB-8C4A-47EE-B28C-170B630C4639@cloudflare.com/#t
Signed-off-by: John Hubbard <jhubbard@nvidia.com>
---
tools/testing/selftests/net/gro.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/tools/testing/selftests/net/gro.c b/tools/testing/selftests/net/gro.c
index b204df4f3332..30024d0ed373 100644
--- 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);
base-commit: 2ced7518a03d002284999ed8336ffac462a358ec
--
2.45.2
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH] selftests/net: fix gro.c compilation failure due to non-existent opt_ipproto_off 2024-07-12 23:51 [PATCH] selftests/net: fix gro.c compilation failure due to non-existent opt_ipproto_off John Hubbard @ 2024-07-13 0:01 ` John Hubbard 2024-07-15 12:11 ` Greg Kroah-Hartman 2024-07-13 0:40 ` MPTCP CI 2024-07-15 12:11 ` gregkh 2 siblings, 1 reply; 6+ messages in thread From: John Hubbard @ 2024-07-13 0:01 UTC (permalink / raw) 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, netdev, linux-arm-kernel, linux-actions, mptcp, dev, linux-kselftest, LKML, llvm, stable, Ignat Korchagin On 7/12/24 4:51 PM, John Hubbard wrote: > 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. This is the first time I've tried to fix something in linux-stable, and I'm not sure that I've made it completely clear. This is only for linux-6.6.y in linux-stable. thanks, -- John Hubbard NVIDIA > > Fixes: c80d53c484e8 ("selftests/net: fix uninitialized variables") > Cc: <stable@vger.kernel.org> # 6.6 > Reported-by: Ignat Korchagin <ignat@cloudflare.com> > Closes: https://lore.kernel.org/all/8B1717DB-8C4A-47EE-B28C-170B630C4639@cloudflare.com/#t > Signed-off-by: John Hubbard <jhubbard@nvidia.com> > --- > tools/testing/selftests/net/gro.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/tools/testing/selftests/net/gro.c b/tools/testing/selftests/net/gro.c > index b204df4f3332..30024d0ed373 100644 > --- 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); > > base-commit: 2ced7518a03d002284999ed8336ffac462a358ec ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] selftests/net: fix gro.c compilation failure due to non-existent opt_ipproto_off 2024-07-13 0:01 ` John Hubbard @ 2024-07-15 12:11 ` Greg Kroah-Hartman 0 siblings, 0 replies; 6+ messages in thread From: Greg Kroah-Hartman @ 2024-07-15 12:11 UTC (permalink / raw) To: John Hubbard 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, netdev, linux-arm-kernel, linux-actions, mptcp, dev, linux-kselftest, LKML, llvm, stable, Ignat Korchagin On Fri, Jul 12, 2024 at 05:01:38PM -0700, John Hubbard wrote: > On 7/12/24 4:51 PM, John Hubbard wrote: > > 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. > > This is the first time I've tried to fix something in linux-stable, and > I'm not sure that I've made it completely clear. This is only for > linux-6.6.y in linux-stable. This worked just fine, now queued up, thanks. greg k-h ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] selftests/net: fix gro.c compilation failure due to non-existent opt_ipproto_off 2024-07-12 23:51 [PATCH] selftests/net: fix gro.c compilation failure due to non-existent opt_ipproto_off John Hubbard 2024-07-13 0:01 ` John Hubbard @ 2024-07-13 0:40 ` MPTCP CI 2024-07-15 12:11 ` gregkh 2 siblings, 0 replies; 6+ messages in thread From: MPTCP CI @ 2024-07-13 0:40 UTC (permalink / raw) To: John Hubbard; +Cc: mptcp Hi John, Thank you for your modifications, that's great! Our CI did some validations and here is its report: - KVM Validation: normal: Success! ✅ - KVM Validation: debug: Success! ✅ - KVM Validation: btf (only bpftest_all): Success! ✅ - Task: https://github.com/multipath-tcp/mptcp_net-next/actions/runs/9915563597 Initiator: Patchew Applier Commits: https://github.com/multipath-tcp/mptcp_net-next/commits/2e3231d9f88c Patchwork: https://patchwork.kernel.org/project/mptcp/list/?series=870973 If there are some issues, you can reproduce them using the same environment as the one used by the CI thanks to a docker image, e.g.: $ cd [kernel source code] $ docker run -v "${PWD}:${PWD}:rw" -w "${PWD}" --privileged --rm -it \ --pull always mptcp/mptcp-upstream-virtme-docker:latest \ auto-normal For more details: https://github.com/multipath-tcp/mptcp-upstream-virtme-docker Please note that despite all the efforts that have been already done to have a stable tests suite when executed on a public CI like here, it is possible some reported issues are not due to your modifications. Still, do not hesitate to help us improve that ;-) Cheers, MPTCP GH Action bot Bot operated by Matthieu Baerts (NGI0 Core) ^ permalink raw reply [flat|nested] 6+ messages in thread
* Patch "[PATCH] selftests/net: fix gro.c compilation failure due to non-existent opt_ipproto_off" has been added to the 6.6-stable tree 2024-07-12 23:51 [PATCH] selftests/net: fix gro.c compilation failure due to non-existent opt_ipproto_off John Hubbard @ 2024-07-15 12:11 ` gregkh 2024-07-13 0:40 ` MPTCP CI 2024-07-15 12:11 ` gregkh 2 siblings, 0 replies; 6+ messages in thread From: gregkh @ 2024-07-15 12:11 UTC (permalink / raw) To: 0x7f454c46, 8B1717DB-8C4A-47EE-B28C-170B630C4639, afaerber, alexander, bigeasy, bpoirier, davem, dev, edumazet, geliang, gregkh, herbert, idosch, ignat, jhubbard, kuba, linux-actions, linux-arm-kernel, liuhangbin, llvm, manivannan.sadhasivam, martineau, matttbe, mptcp, pabeni, petrm, pshelar, razor, shuah, steffen.klassert, willemdebruijn.kernel, zhujun2 Cc: stable-commits This is a note to let you know that I've just added the patch titled [PATCH] selftests/net: fix gro.c compilation failure due to non-existent opt_ipproto_off to the 6.6-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: selftests-net-fix-gro.c-compilation-failure-due-to-non-existent-opt_ipproto_off.patch and it can be found in the queue-6.6 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@vger.kernel.org> know about it. From jhubbard@nvidia.com Mon Jul 15 14:10:26 2024 From: John Hubbard <jhubbard@nvidia.com> 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 <gregkh@linuxfoundation.org> Cc: "Shuah Khan" <shuah@kernel.org>, "David S . Miller" <davem@davemloft.net>, "Eric Dumazet" <edumazet@google.com>, "Jakub Kicinski" <kuba@kernel.org>, "Paolo Abeni" <pabeni@redhat.com>, "Steffen Klassert" <steffen.klassert@secunet.com>, "Herbert Xu" <herbert@gondor.apana.org.au>, "Andreas Färber" <afaerber@suse.de>, "Manivannan Sadhasivam" <manivannan.sadhasivam@linaro.org>, "Matthieu Baerts" <matttbe@kernel.org>, "Mat Martineau" <martineau@kernel.org>, "Geliang Tang" <geliang@kernel.org>, "Pravin B Shelar" <pshelar@ovn.org>, "Willem de Bruijn" <willemdebruijn.kernel@gmail.com>, "Alexander Mikhalitsyn" <alexander@mihalicyn.com>, zhujun2 <zhujun2@cmss.chinamobile.com>, "Petr Machata" <petrm@nvidia.com>, "Ido Schimmel" <idosch@nvidia.com>, "Hangbin Liu" <liuhangbin@gmail.com>, "Nikolay Aleksandrov" <razor@blackwall.org>, "Benjamin Poirier" <bpoirier@nvidia.com>, "Sebastian Andrzej Siewior" <bigeasy@linutronix.de>, "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 <linux-kernel@vger.kernel.org>, llvm@lists.linux.dev, "John Hubbard" <jhubbard@nvidia.com>, stable@vger.kernel.org, "Ignat Korchagin" <ignat@cloudflare.com> Message-ID: <20240712235150.99175-1-jhubbard@nvidia.com> From: John Hubbard <jhubbard@nvidia.com> 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: <stable@vger.kernel.org> # 6.6 Reported-by: Ignat Korchagin <ignat@cloudflare.com> Closes: https://lore.kernel.org/all/8B1717DB-8C4A-47EE-B28C-170B630C4639@cloudflare.com/#t Signed-off-by: John Hubbard <jhubbard@nvidia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> --- 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); Patches currently in stable-queue which might be from jhubbard@nvidia.com are queue-6.6/selftests-net-fix-gro.c-compilation-failure-due-to-non-existent-opt_ipproto_off.patch ^ permalink raw reply [flat|nested] 6+ messages in thread
* Patch "[PATCH] selftests/net: fix gro.c compilation failure due to non-existent opt_ipproto_off" has been added to the 6.6-stable tree @ 2024-07-15 12:11 ` gregkh 0 siblings, 0 replies; 6+ messages in thread From: gregkh @ 2024-07-15 12:11 UTC (permalink / raw) To: 0x7f454c46, 8B1717DB-8C4A-47EE-B28C-170B630C4639, afaerber, alexander, bigeasy, bpoirier, davem, dev, edumazet, geliang, gregkh, herbert, idosch, ignat, jhubbard, kuba, linux-actions, linux-arm-kernel, liuhangbin, llvm, manivannan.sadhasivam, martineau, matttbe, mptcp, pabeni, petrm, pshelar, razor, shuah, steffen.klassert, willemdebruijn.kernel, zhujun2 Cc: stable-commits This is a note to let you know that I've just added the patch titled [PATCH] selftests/net: fix gro.c compilation failure due to non-existent opt_ipproto_off to the 6.6-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: selftests-net-fix-gro.c-compilation-failure-due-to-non-existent-opt_ipproto_off.patch and it can be found in the queue-6.6 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@vger.kernel.org> know about it. From jhubbard@nvidia.com Mon Jul 15 14:10:26 2024 From: John Hubbard <jhubbard@nvidia.com> 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 <gregkh@linuxfoundation.org> Cc: "Shuah Khan" <shuah@kernel.org>, "David S . Miller" <davem@davemloft.net>, "Eric Dumazet" <edumazet@google.com>, "Jakub Kicinski" <kuba@kernel.org>, "Paolo Abeni" <pabeni@redhat.com>, "Steffen Klassert" <steffen.klassert@secunet.com>, "Herbert Xu" <herbert@gondor.apana.org.au>, "Andreas Färber" <afaerber@suse.de>, "Manivannan Sadhasivam" <manivannan.sadhasivam@linaro.org>, "Matthieu Baerts" <matttbe@kernel.org>, "Mat Martineau" <martineau@kernel.org>, "Geliang Tang" <geliang@kernel.org>, "Pravin B Shelar" <pshelar@ovn.org>, "Willem de Bruijn" <willemdebruijn.kernel@gmail.com>, "Alexander Mikhalitsyn" <alexander@mihalicyn.com>, zhujun2 <zhujun2@cmss.chinamobile.com>, "Petr Machata" <petrm@nvidia.com>, "Ido Schimmel" <idosch@nvidia.com>, "Hangbin Liu" <liuhangbin@gmail.com>, "Nikolay Aleksandrov" <razor@blackwall.org>, "Benjamin Poirier" <bpoirier@nvidia.com>, "Sebastian Andrzej Siewior" <bigeasy@linutronix.de>, "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 <linux-kernel@vger.kernel.org>, llvm@lists.linux.dev, "John Hubbard" <jhubbard@nvidia.com>, stable@vger.kernel.org, "Ignat Korchagin" <ignat@cloudflare.com> Message-ID: <20240712235150.99175-1-jhubbard@nvidia.com> From: John Hubbard <jhubbard@nvidia.com> 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: <stable@vger.kernel.org> # 6.6 Reported-by: Ignat Korchagin <ignat@cloudflare.com> Closes: https://lore.kernel.org/all/8B1717DB-8C4A-47EE-B28C-170B630C4639@cloudflare.com/#t Signed-off-by: John Hubbard <jhubbard@nvidia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> --- 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); Patches currently in stable-queue which might be from jhubbard@nvidia.com are queue-6.6/selftests-net-fix-gro.c-compilation-failure-due-to-non-existent-opt_ipproto_off.patch ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-07-15 12:12 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2024-07-12 23:51 [PATCH] selftests/net: fix gro.c compilation failure due to non-existent opt_ipproto_off John Hubbard 2024-07-13 0:01 ` John Hubbard 2024-07-15 12:11 ` Greg Kroah-Hartman 2024-07-13 0:40 ` MPTCP CI 2024-07-15 12:11 ` Patch "[PATCH] selftests/net: fix gro.c compilation failure due to non-existent opt_ipproto_off" has been added to the 6.6-stable tree gregkh 2024-07-15 12:11 ` gregkh
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.