All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jozsef Kadlecsik <kadlec@netfilter.org>
To: Pablo Neira Ayuso <pablo@netfilter.org>
Cc: "Maciej Żenczykowski" <zenczykowski@gmail.com>,
	"Netfilter Development Mailinglist"
	<netfilter-devel@vger.kernel.org>,
	"Florian Westphal" <fw@strlen.de>
Subject: Re: Android boot failure with 6.12
Date: Sat, 11 Jan 2025 17:53:15 +0100 (CET)	[thread overview]
Message-ID: <6b97f047-e48c-3830-12cc-26385aea42a5@netfilter.org> (raw)
In-Reply-To: <Z4J9aM40NuYLakiy@calendula>

[-- Attachment #1: Type: text/plain, Size: 2541 bytes --]

Hi Pablo,

On Sat, 11 Jan 2025, Pablo Neira Ayuso wrote:

> On Sat, Jan 11, 2025 at 02:31:18PM +0100, Jozsef Kadlecsik wrote:
> > 
> > On Fri, 10 Jan 2025, Maciej Żenczykowski wrote:
> > 
> > > nvm - https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/net/netfilter/xt_mark.c?id=306ed1728e8438caed30332e1ab46b28c25fe3d8
> > 
> > Sorry, but I don't understand the patch at all. With it applied now it'd 
> > be not possible to load in the "MARK" target with IPv4. The code segment 
> > after the patch:
> > 
> > static struct xt_target mark_tg_reg[] __read_mostly = {
> >         {
> >                 .name           = "MARK",
> >                 .revision       = 2,
> >                 .family         = NFPROTO_IPV6,
> >                 .target         = mark_tg,
> >                 .targetsize     = sizeof(struct xt_mark_tginfo2),
> >                 .me             = THIS_MODULE,
> >         },
> > #if IS_ENABLED(CONFIG_IP_NF_ARPTABLES)
> >         {
> >                 .name           = "MARK",
> >                 .revision       = 2,
> >                 .family         = NFPROTO_ARP,
> >                 .target         = mark_tg,
> >                 .targetsize     = sizeof(struct xt_mark_tginfo2),
> >                 .me             = THIS_MODULE,
> >         },
> > #endif
> > #if IS_ENABLED(CONFIG_IP6_NF_IPTABLES)
> >         {
> >                 .name           = "MARK",
> >                 .revision       = 2,
> >                 .family         = NFPROTO_IPV6,
> >                 .target         = mark_tg,
> >                 .targetsize     = sizeof(struct xt_mark_tginfo2),
> >                 .me             = THIS_MODULE,
> >         },
> > #endif
> > };
> > 
> > How is it supposed to work for IPv4?
> > 
> > Why the "IS_ENABLED(CONFIG_IP6_NF_IPTABLES)" part was not enough for the 
> > IPv6-specific MARK target to be compiled in? Isn't it an issue about 
> > selecting CONFIG_IP6_NF_IPTABLES vs CONFIG_IP6_NF_IPTABLES_LEGACY?
> 
> This was fixed by an incremental patch:
> 
>   306ed1728e84 ("netfilter: xtables: fix typo causing some targets not to load on IPv6")
> 
> so there is no two MARK targets for NFPROTO_IPV6.

No, it was my fault not checking the patch properly. It's completely fine, 
sorry for the noise!

Best regards,
Jozsef
-- 
E-mail : kadlec@netfilter.org, kadlec@blackhole.kfki.hu, kadlecsik.jozsef@wigner.hu
Address: Wigner Research Centre for Physics
         H-1525 Budapest 114, POB. 49, Hungary

  reply	other threads:[~2025-01-11 16:53 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-10 22:20 Android boot failure with 6.12 Maciej Żenczykowski
2025-01-10 22:23 ` Maciej Żenczykowski
2025-01-10 22:28   ` Maciej Żenczykowski
2025-01-10 22:36     ` Maciej Żenczykowski
2025-01-11 13:31       ` Jozsef Kadlecsik
2025-01-11 14:05         ` Florian Westphal
2025-01-11 16:51           ` Jozsef Kadlecsik
2025-01-11 14:17         ` Pablo Neira Ayuso
2025-01-11 16:53           ` Jozsef Kadlecsik [this message]
2025-01-11 13:57       ` Pablo Neira Ayuso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6b97f047-e48c-3830-12cc-26385aea42a5@netfilter.org \
    --to=kadlec@netfilter.org \
    --cc=fw@strlen.de \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=pablo@netfilter.org \
    --cc=zenczykowski@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.