lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <aPghQ2-QVkeNgib1@calendula>
Date: Wed, 22 Oct 2025 02:11:47 +0200
From: Pablo Neira Ayuso <pablo@...filter.org>
To: Florian Westphal <fw@...len.de>
Cc: Andrii Melnychenko <a.melnychenko@...s.io>, kadlec@...filter.org,
	phil@....cc, davem@...emloft.net, edumazet@...gle.com,
	kuba@...nel.org, pabeni@...hat.com, horms@...nel.org,
	netfilter-devel@...r.kernel.org, coreteam@...filter.org,
	netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3 1/1] nft_ct: Added nfct_seqadj_ext_add() for NAT'ed
 conntrack.

On Tue, Oct 21, 2025 at 04:34:46PM +0200, Florian Westphal wrote:
> Andrii Melnychenko <a.melnychenko@...s.io> wrote:
> >  
> >  struct nft_ct_helper_obj  {
> >  	struct nf_conntrack_helper *helper4;
> > @@ -1173,6 +1174,9 @@ static void nft_ct_helper_obj_eval(struct nft_object *obj,
> >  	if (help) {
> >  		rcu_assign_pointer(help->helper, to_assign);
> >  		set_bit(IPS_HELPER_BIT, &ct->status);
> > +
> > +		if ((ct->status & IPS_NAT_MASK) && !nfct_seqadj(ct))
> > +			nfct_seqadj_ext_add(ct);
> 
> Any reason why you removed the drop logic of earlier versions?
> 
> I think this needs something like this:
> 
> 	if (!nfct_seqadj_ext_add(ct))
>            regs->verdict.code = NF_DROP;
> 
> so client will eventually retransmit the connection request.
> 
> I can also mangle this locally, let me know.

BTW, this fixes DNAT case, but SNAT case is still broken because flag
is set at a later stage, right?

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ