From: Paolo Abeni <pabeni@redhat.com>
To: Junyoung Jang <graypanda.inzag@gmail.com>,
Jamal Hadi Salim <jhs@mojatatu.com>,
Jiri Pirko <jiri@resnulli.us>
Cc: "David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>,
Willem de Bruijn <willemb@google.com>,
Simon Horman <horms@kernel.org>,
Gwanhyun Lee <gwanhyunlee@gmail.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net] net/sched: sch_choke: fix skb leak on packet ring wrap
Date: Fri, 4 Dec 2026 12:19:07 +0100 [thread overview]
Message-ID: <31bc4b3f-5ffc-4a31-861a-48e00051a0e0@redhat.com> (raw)
In-Reply-To: <20261126141137.1261866-1-graypanda.inzag@gmail.com>
On 11/26/26 15:11, Junyoung Jang wrote:
> diff --git a/net/sched/sch_choke.c b/net/sched/sch_choke.c
> index 73d3e673dc7b..92d4f29acf57 100644
> --- a/net/sched/sch_choke.c
> +++ b/net/sched/sch_choke.c
> @@ -268,7 +268,7 @@ static int choke_enqueue(struct sk_buff *skb, struct Qdisc *sch,
> }
>
> /* Admit new packet */
> - if (sch->q.qlen < q->limit) {
> + if (sch->q.qlen < q->limit && choke_len(q) < q->tab_mask) {
Sashiko noted the above causes a behavior change:
https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261126141137.1261866-1-graypanda.inzag@gmail.com
and I think we should avoid it.
/P
prev parent reply other threads:[~2026-12-04 11:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 14:11 [PATCH net] net/sched: sch_choke: fix skb leak on packet ring wrap Junyoung Jang
2026-12-04 11:19 ` Paolo Abeni [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=31bc4b3f-5ffc-4a31-861a-48e00051a0e0@redhat.com \
--to=pabeni@redhat.com \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=graypanda.inzag@gmail.com \
--cc=gwanhyunlee@gmail.com \
--cc=horms@kernel.org \
--cc=jhs@mojatatu.com \
--cc=jiri@resnulli.us \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=willemb@google.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