From: Greg KH <gregkh@linuxfoundation.org>
To: Xingyu Li <xli399@ucr.edu>
Cc: stable@vger.kernel.org, pablo@netfilter.org, pabeni@redhat.com,
Zheng Zhang <zzhan173@ucr.edu>
Subject: Re: Patch "net: flow_dissector: use DEBUG_NET_WARN_ON_ONCE" should probably be ported to 5.4, 5.10 and 5.15 LTS.
Date: Wed, 22 Jan 2025 08:30:25 +0100 [thread overview]
Message-ID: <2025012201-stray-swore-9ffb@gregkh> (raw)
In-Reply-To: <CALAgD-4_rpg=yZ9+7a9E5mDkOdFsz8Jjx13Shju-SEO74nOjsg@mail.gmail.com>
On Tue, Jan 21, 2025 at 11:07:48PM -0800, Xingyu Li wrote:
> Hi,
>
> We noticed that the patch 120f1c857a73 should be ported to 5.4, 5.10
> and 5.15 LTS according to bug introducing commits. Also, they can be
> applied to the latest version of these three branches without
> conflicting.
> Its bug introducing commit is 9b52e3f267a6. According to our manual
> analysis, the commit (9b52e3f267a6) introduced a
> `WARN_ON_ONCE(!net);` statement in the `__skb_flow_dissect` function
> within `net/core/flow_dissector.c`. This change began triggering
> warnings (splat messages) when `net` is `NULL`, which can happen in
> legitimate use cases, such as when `__skb_get_hash()` is called by the
> nftables tracing infrastructure to identify packets in traces. The
> patch provided replaces this `WARN_ON_ONCE(!net);` with
> `DEBUG_NET_WARN_ON_ONCE(!net);`, which is more appropriate for
> situations where `net` can be `NULL` without it indicating a critical
> issue. This change prevents unnecessary warning messages from
> appearing, which can clutter logs and potentially mask real issues.
> Therefore, the prior commit introduced the issue (the unnecessary
> warnings when `net` is `NULL`), and the patch fixes this by adjusting
> the warning mechanism.
Have you tested the commit to ensure that it actually works?
Hint, I just tried, it breaks the build on all of the above branches,
which is probably why it was not backported.
Please test stuff before asking others to test it for you :(
thanks,
greg k-h
prev parent reply other threads:[~2025-01-22 7:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-22 7:07 Patch "net: flow_dissector: use DEBUG_NET_WARN_ON_ONCE" should probably be ported to 5.4, 5.10 and 5.15 LTS Xingyu Li
2025-01-22 7:30 ` Greg KH [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=2025012201-stray-swore-9ffb@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=pabeni@redhat.com \
--cc=pablo@netfilter.org \
--cc=stable@vger.kernel.org \
--cc=xli399@ucr.edu \
--cc=zzhan173@ucr.edu \
/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.