From: Paolo Abeni <pabeni@redhat.com>
To: netdev-bot+sashiko@kernel.org, jhs@mojatatu.com
Cc: netdev@vger.kernel.org, jiri@resnulli.us, davem@davemloft.net,
edumazet@kernel.org, kuba@kernel.org, horms@kernel.org,
victor@mojatatu.com, toke@toke.dk, bjorn@kernel.org,
sashiko-bot@kernel.org
Subject: Re: [PATCH net-next v8 4/4] net/sched: cake: hash before segmenting and reject an overlong split
Date: Tue, 27 Oct 2026 10:48:22 +0100 [thread overview]
Message-ID: <d03b1d1d-b7c1-434e-afde-8e2cab55e706@redhat.com> (raw)
In-Reply-To: <179286304080.3134.13197757888201893950@kernel.org>
On 10/24/26 19:30, netdev-bot+sashiko@kernel.org wrote:
>> @@ -1784,12 +1811,49 @@ static s32 cake_enqueue(struct sk_buff *skb, struct Qdisc *sch,
>> QDISC_DROP_OVERLIMIT);
>> }
>>
>> - /* choose flow to insert into */
>> + /* Select the tin and extract the keys before segmenting:
>> + * skb_gso_segment() rewrites encapsulated headers, which
>> + * changes the keys.
>> + */
>> b = cake_select_tin(sch, skb);
>> - idx = cake_hash(b, skb, q->config->flow_mode, flow_override,
>> - host_override) + 1;
>> + cake_hash_keys(skb, flow_mode, flow_override, host_override, &keys);
>> +
>> + if (qdisc_pkt_segs(skb) > 1 && q->config->rate_flags & CAKE_FLAG_SPLIT_GSO) {
>> + netdev_features_t features = netif_skb_features(skb);
>> + struct sk_buff *nskb, *seg;
>> +
>> + segs = skb_gso_segment(skb, features & ~NETIF_F_GSO_MASK);
>> + if (IS_ERR_OR_NULL(segs))
>> + return qdisc_drop(skb, sch, to_free);
>
> [Severity: Medium]
> Can this qdisc_drop() report a bogus drop reason for the original skb?
I'm sorry forcing another iteration, but this looks real, and should be
easily fixable.
Thanks,
Paolo
next prev parent reply other threads:[~2026-10-27 9:48 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-20 16:57 [PATCH net-next v8 0/4] net/sched: cap the accounted backlog before it can wrap Jamal Hadi Salim
2026-10-20 16:57 ` [PATCH net-next v8 1/4] net/sched: cake: return the classifier result to the caller Jamal Hadi Salim
2026-10-20 17:45 ` Toke Høiland-Jørgensen
2026-10-20 18:59 ` Jamal Hadi Salim
2026-10-24 17:30 ` netdev-bot+sashiko
2026-10-20 16:57 ` [PATCH net-next v8 2/4] net/sched: cake: use a dedicated split-GSO list iterator Jamal Hadi Salim
2026-10-20 16:57 ` [PATCH net-next v8 3/4] net/sched: cap the accounted backlog before it can wrap Jamal Hadi Salim
2026-10-24 17:30 ` netdev-bot+sashiko
2026-10-20 16:57 ` [PATCH net-next v8 4/4] net/sched: cake: hash before segmenting and reject an overlong split Jamal Hadi Salim
2026-10-20 17:42 ` Toke Høiland-Jørgensen
2026-10-24 17:30 ` netdev-bot+sashiko
2026-10-27 9:48 ` Paolo Abeni [this message]
2026-10-27 11:42 ` Jamal Hadi Salim
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=d03b1d1d-b7c1-434e-afde-8e2cab55e706@redhat.com \
--to=pabeni@redhat.com \
--cc=bjorn@kernel.org \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=horms@kernel.org \
--cc=jhs@mojatatu.com \
--cc=jiri@resnulli.us \
--cc=kuba@kernel.org \
--cc=netdev-bot+sashiko@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=sashiko-bot@kernel.org \
--cc=toke@toke.dk \
--cc=victor@mojatatu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox