From: Pablo Neira Ayuso <pablo@netfilter.org>
To: "Jensen, Nicklas Bo" <njensen@akamai.com>
Cc: "netfilter-devel@vger.kernel.org" <netfilter-devel@vger.kernel.org>
Subject: Re: [PATCH] Fix bug where garbage collection for nf_conncount is not skipped when jiffies wrap around
Date: Wed, 5 Mar 2025 22:49:35 +0100 [thread overview]
Message-ID: <Z8jG7xeL0Nm7HZam@calendula> (raw)
In-Reply-To: <EC4CB996-F5A1-4368-AAB7-F77E1B2E6A4D@akamai.com>
On Thu, Feb 27, 2025 at 01:32:34PM +0000, Jensen, Nicklas Bo wrote:
> nf_conncount is supposed to skip garbage collection if it has already run garbage collection in the same jiffy. Unfortunately, this is broken when jiffies wrap around which this patch fixes.
>
> The problem is that last_gc in the nf_conncount_list struct is an u32, but jiffies is an unsigned long which is 8 bytes on my systems. When those two are compared it only works until last_gc wraps around.
>
> See bug report https://bugzilla.netfilter.org/show_bug.cgi?id=1778 for more details.
Applied as:
("netfilter: nf_conncount: garbage collection is not skipped when jiffies wrap around")
prev parent reply other threads:[~2025-03-05 21:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-27 13:32 [PATCH] Fix bug where garbage collection for nf_conncount is not skipped when jiffies wrap around Jensen, Nicklas Bo
2025-02-27 15:48 ` Florian Westphal
2025-02-27 15:49 ` Florian Westphal
2025-03-05 21:49 ` Pablo Neira Ayuso [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=Z8jG7xeL0Nm7HZam@calendula \
--to=pablo@netfilter.org \
--cc=netfilter-devel@vger.kernel.org \
--cc=njensen@akamai.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.