Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #83867

Bug#1070685: linux-image-6.1.0-21-amd64: Found Trace in the logs about br_netfilter and nf_conntrack

Path csiph.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From Salvatore Bonaccorso <carnil@debian.org>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#1070685: linux-image-6.1.0-21-amd64: Found Trace in the logs about br_netfilter and nf_conntrack
Date Sat, 07 Sep 2024 09:20:01 +0200
Message-ID <JjXTH-aAM0-3@gated-at.bofh.it> (permalink)
References <IBomZ-bFw4-5@gated-at.bofh.it> <JimCR-9x4h-9@gated-at.bofh.it> <JjNrj-ausc-1@gated-at.bofh.it> <JjOdH-auI6-7@gated-at.bofh.it> <IBomZ-bFw4-5@gated-at.bofh.it> <JjOdH-auI6-7@gated-at.bofh.it>
X-Original-To XXX XXX <tauromenion@gmail.com>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Sat Sep 7 07:15:09 2024
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -1.71
Reply-To Salvatore Bonaccorso <carnil@debian.org>, 1070685@bugs.debian.org
Original-Sender Salvatore Bonaccorso <salvatore.bonaccorso@gmail.com>
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc Debian Kernel Team <debian-kernel@lists.debian.org>
X-Debian-Pr-Message followup 1070685
X-Debian-Pr-Package src:linux
X-Debian-Pr-Keywords upstream
X-Debian-Pr-Source linux
X-Gm-Message-State AOJu0YzrUt/6ViiJ8OIWXppCighD+VPnvuf5L06Y/em9lJeCZO2EIkwo pZ1Bv+Qe1aFw4BKR1FRRly00Ac7K/UJqlNZax1d5aladts4T0+IK8XYBYc/L
X-Google-SMTP-Source AGHT+IFtLZovtxQxgmTELhGuZkQx18rd5jj6GDUvLE55NfSRFixJ1Derr+AR5BfVCbj9zNCK5LhoiA==
X-Received by 2002:adf:db41:0:b0:374:b71f:72c0 with SMTP id ffacd0b85a97d-378895ddf20mr3516692f8f.21.1725693191584; Sat, 07 Sep 2024 00:13:11 -0700 (PDT)
Sender robomod@news.nic.it
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1856891
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 79
Organization linux.* mail to news gateway
X-Original-Cc 1070685@bugs.debian.org
X-Original-Date Sat, 7 Sep 2024 09:13:09 +0200
X-Original-Message-ID <Ztv9BaK62IcxI4g5@eldamar.lan>
X-Original-References <171506998452.23691.9234881090556387547.reportbug@cerberus> <20240902230942.4538c18f@devuan> <ZttgS4NSNhAovNhB@eldamar.lan> <20240906224704.1e682e04@devuan> <171506998452.23691.9234881090556387547.reportbug@cerberus> <20240906224704.1e682e04@devuan>
X-Original-Sender Salvatore Bonaccorso <salvatore.bonaccorso@gmail.com>
Xref csiph.com linux.debian.bugs.dist:1211753 linux.debian.kernel:83867

Cross-posted to 2 groups.

Show key headers only | View raw


Hi,

On Fri, Sep 06, 2024 at 10:47:04PM +0200, XXX XXX wrote:
> On Fri, 6 Sep 2024 22:04:27 +0200
> Salvatore Bonaccorso <carnil@debian.org> wrote:
> 
> > Control: tags -1 + moreinfo
> > 
> > Hi,
> > 
> > On Mon, Sep 02, 2024 at 11:09:42PM +0200, XXX XXX wrote:
> > > Hi,
> > > this bug seems to be fixed in linux kernel 6.1.107,
> > > I suspect the commit that fixed it is:
> > > 
> > > commit 6dcc8ba8a6074bb79040f502dc66ad23a58a1c86
> > > Author: Florian Westphal <fw@strlen.de>
> > > Date:   Wed Aug 7 21:28:41 2024 +0200
> > > 
> > >     netfilter: nf_queue: drop packets with cloned unconfirmed conntracks
> > >     
> > >     [ Upstream commit 7d8dc1c7be8d3509e8f5164dd5df64c8e34d7eeb ]
> > >     
> > >     Conntrack assumes an unconfirmed entry (not yet committed to global hash
> > >     table) has a refcount of 1 and is not visible to other cores.
> > >     
> > >     With multicast forwarding this assumption breaks down because such
> > >     skbs get cloned after being picked up, i.e.  ct->use refcount is > 1.
> > >     
> > >     Likewise, bridge netfilter will clone broad/mutlicast frames and
> > >     all frames in case they need to be flood-forwarded during learning
> > >     phase.
> > >     
> > >     For ip multicast forwarding or plain bridge flood-forward this will
> > >     "work" because packets don't leave softirq and are implicitly
> > >     serialized.
> > >     
> > >     With nfqueue this no longer holds true, the packets get queued
> > >     and can be reinjected in arbitrary ways.
> > >     
> > >     Disable this feature, I see no other solution.
> > >     
> > >     After this patch, nfqueue cannot queue packets except the last
> > >     multicast/broadcast packet.
> > >     
> > >     Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
> > >     Signed-off-by: Florian Westphal <fw@strlen.de>
> > >     Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
> > >     Signed-off-by: Sasha Levin <sashal@kernel.org>
> > 
> > Would you be able to confirm this? In case this is true, then this
> > would imply that the issue should be visible as well current testing
> > until <= 6.10.7-1.
> > 
> > Regards,
> > Salvatore
> 
> Hi,
> 
> for sure it was visible in linux-image-6.10.6+bpo-amd64 that I tried from 
> stable backports after the trace popped up again after upgrading to 
> linux-image-6.1.0-25-amd64.
> So  by checking the changelog for the source file and line shown in the traces on kernel.org 
> I've spotted this patch that was interesting because  I use suricata in nfqueue
> mode and because the trace happened always at boot (during the learning phase).
> So I first erroneously I tried 6.1.106 and the trace was still there
> and then 6.1.107 and it was gone.
> Hope this helps.

Yes thanks. One option to get a final confirmation and proper closure
tracking, would be if you can cherry-pick the commit on top of the
6.1.106-3 version and see if it resolved the issue.

You could proceed as described in

https://kernel-team.pages.debian.net/kernel-handbook/ch-common-tasks.html#id-1.6.6.4

Regards,
Salvatore

Back to linux.debian.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Bug#1070685: linux-image-6.1.0-21-amd64: Found Trace in the logs about br_netfilter and nf_conntrack XXX XXX <tauromenion@gmail.com> - 2024-09-02 23:20 +0200
  Bug#1070685: linux-image-6.1.0-21-amd64: Found Trace in the logs about br_netfilter and nf_conntrack Salvatore Bonaccorso <carnil@debian.org> - 2024-09-06 22:10 +0200
    Bug#1070685: linux-image-6.1.0-21-amd64: Found Trace in the logs about br_netfilter and nf_conntrack XXX XXX <tauromenion@gmail.com> - 2024-09-06 23:00 +0200
      Bug#1070685: linux-image-6.1.0-21-amd64: Found Trace in the logs about br_netfilter and nf_conntrack Salvatore Bonaccorso <carnil@debian.org> - 2024-09-07 09:20 +0200

csiph-web