Netdev List
 help / color / mirror / Atom feed
* Re: Linux 5.17-rc5
       [not found] ` <8f331927-69d4-e4e7-22bc-c2a2a098dc1e@gmail.com>
@ 2022-02-21 17:56   ` Linus Torvalds
  2022-02-21 18:01     ` Eric Dumazet
  0 siblings, 1 reply; 10+ messages in thread
From: Linus Torvalds @ 2022-02-21 17:56 UTC (permalink / raw)
  To: Woody Suwalski, Eric Dumazet, Pablo Neira Ayuso, Florian Westphal
  Cc: Linux Kernel Mailing List, Netdev

On Mon, Feb 21, 2022 at 6:23 AM Woody Suwalski <wsuwalski@gmail.com> wrote:
>
> Compile failed like reported by Robert Gadson in
> https://lkml.org/lkml/2022/2/20/341
>
> As a workaround:
> nf_defrag_ipv6.patch
> --- a/net/netfilter/xt_socket.c    2022-02-21 07:29:21.938263397 -0500
> +++ b/net/netfilter/xt_socket.c    2022-02-21 07:40:16.730022272 -0500
> @@ -17,11 +17,11 @@
>   #include <net/inet_sock.h>
>   #include <net/netfilter/ipv4/nf_defrag_ipv4.h>
>
> -#if IS_ENABLED(CONFIG_IP6_NF_IPTABLES)
> +//#if IS_ENABLED(CONFIG_IP6_NF_IPTABLES)
>   #include <linux/netfilter_ipv6/ip6_tables.h>
...

Hmm. That may fix the compile failure, but it looks somewhat broken to me.

Other cases of nf_defrag_ipv6_disable() end up being protected by

   #if IS_ENABLED(CONFIG_NF_TABLES_IPV6)

at the use-point, not by just assuming it always exists even when
CONFIG_NF_TABLES_IPV6 is off.

So I think the proper fix is something along the lines of

  --- a/net/netfilter/xt_socket.c
  +++ b/net/netfilter/xt_socket.c
  @@ -220,8 +220,10 @@ static void socket_mt_destroy(const struct
xt_mtdtor_param *par)
   {
        if (par->family == NFPROTO_IPV4)
                nf_defrag_ipv4_disable(par->net);
  +#if IS_ENABLED(CONFIG_IP6_NF_IPTABLES)
        else if (par->family == NFPROTO_IPV6)
                nf_defrag_ipv6_disable(par->net);
  +#endif
   }

instead. Entirely untested, because that's how I roll, but I suspect
the netfilter people will know what to do.

Added guilty parties and mailing list to the participants.

                Linus

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Linux 5.17-rc5
  2022-02-21 17:56   ` Linux 5.17-rc5 Linus Torvalds
@ 2022-02-21 18:01     ` Eric Dumazet
  2022-02-21 18:07       ` Linus Torvalds
  2022-02-21 19:52       ` Robert Gadsdon
  0 siblings, 2 replies; 10+ messages in thread
From: Eric Dumazet @ 2022-02-21 18:01 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: Woody Suwalski, Pablo Neira Ayuso, Florian Westphal,
	Linux Kernel Mailing List, Netdev

On Mon, Feb 21, 2022 at 9:56 AM Linus Torvalds
<torvalds@linux-foundation.org> wrote:
>
> On Mon, Feb 21, 2022 at 6:23 AM Woody Suwalski <wsuwalski@gmail.com> wrote:
> >
> > Compile failed like reported by Robert Gadson in
> > https://lkml.org/lkml/2022/2/20/341
> >
> > As a workaround:
> > nf_defrag_ipv6.patch
> > --- a/net/netfilter/xt_socket.c    2022-02-21 07:29:21.938263397 -0500
> > +++ b/net/netfilter/xt_socket.c    2022-02-21 07:40:16.730022272 -0500
> > @@ -17,11 +17,11 @@
> >   #include <net/inet_sock.h>
> >   #include <net/netfilter/ipv4/nf_defrag_ipv4.h>
> >
> > -#if IS_ENABLED(CONFIG_IP6_NF_IPTABLES)
> > +//#if IS_ENABLED(CONFIG_IP6_NF_IPTABLES)
> >   #include <linux/netfilter_ipv6/ip6_tables.h>
> ...
>
> Hmm. That may fix the compile failure, but it looks somewhat broken to me.
>
> Other cases of nf_defrag_ipv6_disable() end up being protected by
>
>    #if IS_ENABLED(CONFIG_NF_TABLES_IPV6)
>
> at the use-point, not by just assuming it always exists even when
> CONFIG_NF_TABLES_IPV6 is off.
>
> So I think the proper fix is something along the lines of
>
>   --- a/net/netfilter/xt_socket.c
>   +++ b/net/netfilter/xt_socket.c
>   @@ -220,8 +220,10 @@ static void socket_mt_destroy(const struct
> xt_mtdtor_param *par)
>    {
>         if (par->family == NFPROTO_IPV4)
>                 nf_defrag_ipv4_disable(par->net);
>   +#if IS_ENABLED(CONFIG_IP6_NF_IPTABLES)
>         else if (par->family == NFPROTO_IPV6)
>                 nf_defrag_ipv6_disable(par->net);
>   +#endif
>    }
>
> instead. Entirely untested, because that's how I roll, but I suspect
> the netfilter people will know what to do.
>
> Added guilty parties and mailing list to the participants.
>
>                 Linus

I am pretty sure Pablo fixed this one week ago.

https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git/commit/?id=2874b7911132f6975e668f6849c8ac93bc4e1f35

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Linux 5.17-rc5
  2022-02-21 18:01     ` Eric Dumazet
@ 2022-02-21 18:07       ` Linus Torvalds
  2022-02-21 18:21         ` Eric Dumazet
                           ` (2 more replies)
  2022-02-21 19:52       ` Robert Gadsdon
  1 sibling, 3 replies; 10+ messages in thread
From: Linus Torvalds @ 2022-02-21 18:07 UTC (permalink / raw)
  To: Eric Dumazet
  Cc: Woody Suwalski, Pablo Neira Ayuso, Florian Westphal,
	Linux Kernel Mailing List, Netdev

On Mon, Feb 21, 2022 at 10:02 AM Eric Dumazet <edumazet@google.com> wrote:
>
> I am pretty sure Pablo fixed this one week ago.

.. looks about right. Apart from the "it was never sent to me, so -rc5
ended up showing the problem" part.

             Linus

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Linux 5.17-rc5
  2022-02-21 18:07       ` Linus Torvalds
@ 2022-02-21 18:21         ` Eric Dumazet
  2022-02-21 18:25           ` Pablo Neira Ayuso
  2022-02-21 18:22         ` Woody Suwalski
  2022-02-21 18:25         ` Pablo Neira Ayuso
  2 siblings, 1 reply; 10+ messages in thread
From: Eric Dumazet @ 2022-02-21 18:21 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: Woody Suwalski, Pablo Neira Ayuso, Florian Westphal,
	Linux Kernel Mailing List, Netdev

On Mon, Feb 21, 2022 at 10:08 AM Linus Torvalds
<torvalds@linux-foundation.org> wrote:
>
> On Mon, Feb 21, 2022 at 10:02 AM Eric Dumazet <edumazet@google.com> wrote:
> >
> > I am pretty sure Pablo fixed this one week ago.
>
> .. looks about right. Apart from the "it was never sent to me, so -rc5
> ended up showing the problem" part.
>

Indeed, I personally these kinds of trivial fixes should be sent right away,
especially considering two bots complained about it.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Linux 5.17-rc5
  2022-02-21 18:07       ` Linus Torvalds
  2022-02-21 18:21         ` Eric Dumazet
@ 2022-02-21 18:22         ` Woody Suwalski
  2022-02-21 18:25         ` Pablo Neira Ayuso
  2 siblings, 0 replies; 10+ messages in thread
From: Woody Suwalski @ 2022-02-21 18:22 UTC (permalink / raw)
  To: Linus Torvalds, Eric Dumazet
  Cc: Pablo Neira Ayuso, Florian Westphal, Linux Kernel Mailing List,
	Netdev

Linus Torvalds wrote:
> On Mon, Feb 21, 2022 at 10:02 AM Eric Dumazet <edumazet@google.com> wrote:
>> I am pretty sure Pablo fixed this one week ago.
> .. looks about right. Apart from the "it was never sent to me, so -rc5
> ended up showing the problem" part.
>
>               Linus
Patch works-for-me. Thanks...
Woody


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Linux 5.17-rc5
  2022-02-21 18:07       ` Linus Torvalds
  2022-02-21 18:21         ` Eric Dumazet
  2022-02-21 18:22         ` Woody Suwalski
@ 2022-02-21 18:25         ` Pablo Neira Ayuso
  2 siblings, 0 replies; 10+ messages in thread
From: Pablo Neira Ayuso @ 2022-02-21 18:25 UTC (permalink / raw)
  To: Linus Torvalds
  Cc: Eric Dumazet, Woody Suwalski, Florian Westphal,
	Linux Kernel Mailing List, Netdev

On Mon, Feb 21, 2022 at 10:07:57AM -0800, Linus Torvalds wrote:
> On Mon, Feb 21, 2022 at 10:02 AM Eric Dumazet <edumazet@google.com> wrote:
> >
> > I am pretty sure Pablo fixed this one week ago.
> 
> .. looks about right. Apart from the "it was never sent to me, so -rc5
> ended up showing the problem" part.

That's my fault, I did not catch up to reach -rc5, I am sorry about that.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Linux 5.17-rc5
  2022-02-21 18:21         ` Eric Dumazet
@ 2022-02-21 18:25           ` Pablo Neira Ayuso
  2022-02-21 18:28             ` Eric Dumazet
  0 siblings, 1 reply; 10+ messages in thread
From: Pablo Neira Ayuso @ 2022-02-21 18:25 UTC (permalink / raw)
  To: Eric Dumazet
  Cc: Linus Torvalds, Woody Suwalski, Florian Westphal,
	Linux Kernel Mailing List, Netdev

On Mon, Feb 21, 2022 at 10:21:16AM -0800, Eric Dumazet wrote:
> On Mon, Feb 21, 2022 at 10:08 AM Linus Torvalds
> <torvalds@linux-foundation.org> wrote:
> >
> > On Mon, Feb 21, 2022 at 10:02 AM Eric Dumazet <edumazet@google.com> wrote:
> > >
> > > I am pretty sure Pablo fixed this one week ago.
> >
> > .. looks about right. Apart from the "it was never sent to me, so -rc5
> > ended up showing the problem" part.
> >
> 
> Indeed, I personally these kinds of trivial fixes should be sent right away,
> especially considering two bots complained about it.

I did not consider this so important, that was my fault.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Linux 5.17-rc5
  2022-02-21 18:25           ` Pablo Neira Ayuso
@ 2022-02-21 18:28             ` Eric Dumazet
  2022-02-21 18:42               ` Pablo Neira Ayuso
  0 siblings, 1 reply; 10+ messages in thread
From: Eric Dumazet @ 2022-02-21 18:28 UTC (permalink / raw)
  To: Pablo Neira Ayuso
  Cc: Linus Torvalds, Woody Suwalski, Florian Westphal,
	Linux Kernel Mailing List, Netdev

On Mon, Feb 21, 2022 at 10:25 AM Pablo Neira Ayuso <pablo@netfilter.org> wrote:
>
> On Mon, Feb 21, 2022 at 10:21:16AM -0800, Eric Dumazet wrote:
> > On Mon, Feb 21, 2022 at 10:08 AM Linus Torvalds
> > <torvalds@linux-foundation.org> wrote:
> > >
> > > On Mon, Feb 21, 2022 at 10:02 AM Eric Dumazet <edumazet@google.com> wrote:
> > > >
> > > > I am pretty sure Pablo fixed this one week ago.
> > >
> > > .. looks about right. Apart from the "it was never sent to me, so -rc5
> > > ended up showing the problem" part.
> > >
> >
> > Indeed, I personally these kinds of trivial fixes should be sent right away,
> > especially considering two bots complained about it.
>
> I did not consider this so important, that was my fault.

Well, I was the one adding this compile error ;)

Testing CONFIG_IPV6=n builds is not my top priority.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Linux 5.17-rc5
  2022-02-21 18:28             ` Eric Dumazet
@ 2022-02-21 18:42               ` Pablo Neira Ayuso
  0 siblings, 0 replies; 10+ messages in thread
From: Pablo Neira Ayuso @ 2022-02-21 18:42 UTC (permalink / raw)
  To: Eric Dumazet
  Cc: Linus Torvalds, Woody Suwalski, Florian Westphal,
	Linux Kernel Mailing List, Netdev

On Mon, Feb 21, 2022 at 10:28:46AM -0800, Eric Dumazet wrote:
> On Mon, Feb 21, 2022 at 10:25 AM Pablo Neira Ayuso <pablo@netfilter.org> wrote:
> >
> > On Mon, Feb 21, 2022 at 10:21:16AM -0800, Eric Dumazet wrote:
> > > On Mon, Feb 21, 2022 at 10:08 AM Linus Torvalds
> > > <torvalds@linux-foundation.org> wrote:
> > > >
> > > > On Mon, Feb 21, 2022 at 10:02 AM Eric Dumazet <edumazet@google.com> wrote:
> > > > >
> > > > > I am pretty sure Pablo fixed this one week ago.
> > > >
> > > > .. looks about right. Apart from the "it was never sent to me, so -rc5
> > > > ended up showing the problem" part.
> > > >
> > >
> > > Indeed, I personally these kinds of trivial fixes should be sent right away,
> > > especially considering two bots complained about it.
> >
> > I did not consider this so important, that was my fault.
> 
> Well, I was the one adding this compile error ;)

I poorly performed as a duly reviewer :)

> Testing CONFIG_IPV6=n builds is not my top priority.

For the record, this patch is now flying to the netdev tree via pull request:

https://patchwork.kernel.org/project/netdevbpf/patch/20220221161757.250801-1-pablo@netfilter.org/

Thanks.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Linux 5.17-rc5
  2022-02-21 18:01     ` Eric Dumazet
  2022-02-21 18:07       ` Linus Torvalds
@ 2022-02-21 19:52       ` Robert Gadsdon
  1 sibling, 0 replies; 10+ messages in thread
From: Robert Gadsdon @ 2022-02-21 19:52 UTC (permalink / raw)
  To: Eric Dumazet, Linus Torvalds
  Cc: Woody Suwalski, Pablo Neira Ayuso, Florian Westphal,
	Linux Kernel Mailing List, Netdev

On 2/21/22 10:01, Eric Dumazet wrote:
> I am pretty sure Pablo fixed this one week ago.
> https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git/commit/?id=2874b7911132f6975e668f6849c8ac93bc4e1f35

Applied this patch, and the problem is fixed, now..

Thanks..

Robert Gadsdon.
February 21st 2022.


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-02-21 19:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CAHk-=wgsMMuMP9_dWps7f25e6G628Hf7-B3hvSDvjhRXqVQvpg@mail.gmail.com>
     [not found] ` <8f331927-69d4-e4e7-22bc-c2a2a098dc1e@gmail.com>
2022-02-21 17:56   ` Linux 5.17-rc5 Linus Torvalds
2022-02-21 18:01     ` Eric Dumazet
2022-02-21 18:07       ` Linus Torvalds
2022-02-21 18:21         ` Eric Dumazet
2022-02-21 18:25           ` Pablo Neira Ayuso
2022-02-21 18:28             ` Eric Dumazet
2022-02-21 18:42               ` Pablo Neira Ayuso
2022-02-21 18:22         ` Woody Suwalski
2022-02-21 18:25         ` Pablo Neira Ayuso
2022-02-21 19:52       ` Robert Gadsdon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox