* Patch "net: flow_dissector: use DEBUG_NET_WARN_ON_ONCE" should probably be ported to 5.4, 5.10 and 5.15 LTS.
@ 2025-01-22 7:07 Xingyu Li
2025-01-22 7:30 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Xingyu Li @ 2025-01-22 7:07 UTC (permalink / raw)
To: stable; +Cc: pablo, pabeni, Zheng Zhang
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.
--
Yours sincerely,
Xingyu
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Patch "net: flow_dissector: use DEBUG_NET_WARN_ON_ONCE" should probably be ported to 5.4, 5.10 and 5.15 LTS.
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
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2025-01-22 7:30 UTC (permalink / raw)
To: Xingyu Li; +Cc: stable, pablo, pabeni, Zheng Zhang
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-01-22 7:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.