From: Stefano Brivio <sbrivio@redhat.com>
To: Laurent Vivier <lvivier@redhat.com>
Cc: passt-dev@passt.top, Martin Rijntjes <bugs@air-global.nl>
Subject: Re: [PATCH] flow: fix podman issue #25959
Date: Fri, 2 May 2025 19:26:58 +0200 [thread overview]
Message-ID: <20250502192658.0ac2e3f0@elisabeth> (raw)
In-Reply-To: <20250430160525.3642997-1-lvivier@redhat.com>
On Wed, 30 Apr 2025 18:05:25 +0200
Laurent Vivier <lvivier@redhat.com> wrote:
> While running piHole using podman, traffic can trigger the following
> assert:
>
> ASSSERTION FAILED in flow_alloc (flow.c:521): flow->f.state == FLOW_STATE_FREE
>
> Backtrace shows that this happens in flow_defer_handler():
>
> #4 0x00005610d6f5b481 flow_alloc (passt + 0xb481)
> #5 0x00005610d6f74f86 udp_flow_from_sock (passt + 0x24f86)
> #6 0x00005610d6f737c3 udp_sock_fwd (passt + 0x237c3)
> #7 0x00005610d6f74c07 udp_flush_flow (passt + 0x24c07)
> #8 0x00005610d6f752c2 udp_flow_defer (passt + 0x252c2)
> #9 0x00005610d6f5bce1 flow_defer_handler (passt + 0xbce1)
>
> We are trying to allocate a new flow inside the loop freeing them.
>
> Inside the loop free_head points to the first free flow entry in the
> current cluster. But if we allocate a new entry during the loop,
> free_head is not updated and can point now to the entry we have just
> allocated.
>
> We can fix the problem by spliting the loop in two parts:
> - first part where we can close some of them and allocate some new
> flow entries,
> - second part where we free the entries closed in the previous loop
> and we aggregate the free entries to merge consecutive the clusters.
>
> Link: https://github.com/containers/podman/issues/25959
> Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Applied, thanks!
--
Stefano
prev parent reply other threads:[~2025-05-02 17:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-30 16:05 [PATCH] flow: fix podman issue #25959 Laurent Vivier
2025-05-02 17:26 ` Stefano Brivio [this message]
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=20250502192658.0ac2e3f0@elisabeth \
--to=sbrivio@redhat.com \
--cc=bugs@air-global.nl \
--cc=lvivier@redhat.com \
--cc=passt-dev@passt.top \
/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.
Code repositories for project(s) associated with this public inbox
https://passt.top/passt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).