From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: "Tai, Gerrard" <gerrard.tai@starlabs.sg>
Cc: stable@vger.kernel.org, patches@lists.linux.dev,
Cong Wang <xiyou.wangcong@gmail.com>,
Simon Horman <horms@kernel.org>,
Jamal Hadi Salim <jhs@mojatatu.com>,
Paolo Abeni <pabeni@redhat.com>, Sasha Levin <sashal@kernel.org>
Subject: Re: net/sched: codel: Inclusion of patchset
Date: Wed, 7 May 2025 16:04:50 +0200 [thread overview]
Message-ID: <2025050712-prone-covenant-80c9@gregkh> (raw)
In-Reply-To: <CAHcdcOkMt_Mpcm1AjxbU8MurGO5e--LPPJOrSTA+utDOzVHE3g@mail.gmail.com>
On Wed, May 07, 2025 at 10:59:53AM +0800, Tai, Gerrard wrote:
> On Mon, May 5, 2025 at 5:28 PM Greg Kroah-Hartman
> <gregkh@linuxfoundation.org> wrote:
> >
> > On Fri, May 02, 2025 at 12:49:48PM +0800, Tai, Gerrard wrote:
> > > Upstream commits:
> > > 01: 5ba8b837b522d7051ef81bacf3d95383ff8edce5 ("sch_htb: make
> > > htb_qlen_notify() idempotent")
> > > 02: df008598b3a00be02a8051fde89ca0fbc416bd55 ("sch_drr: make
> > > drr_qlen_notify() idempotent")
> > > 03: 51eb3b65544c9efd6a1026889ee5fb5aa62da3bb ("sch_hfsc: make
> > > hfsc_qlen_notify() idempotent")
> > > 04: 55f9eca4bfe30a15d8656f915922e8c98b7f0728 ("sch_qfq: make
> > > qfq_qlen_notify() idempotent")
> > > 05: a7a15f39c682ac4268624da2abdb9114bdde96d5 ("sch_ets: make
> > > est_qlen_notify() idempotent")
> > > 06: 342debc12183b51773b3345ba267e9263bdfaaef ("codel: remove
> > > sch->q.qlen check before qdisc_tree_reduce_backlog()")
> > >
> > > These patches are patch 01-06 of the original patchset ([1]) authored by
> > > Cong Wang. I have omitted patches 07-11 which are selftests. This patchset
> > > addresses a UAF vulnerability.
> > >
> > > Originally, only the last commit (06) was picked to merge into the latest
> > > round of stable queues 5.15,5.10,5.4. For 6.x stable branches, that sole
> > > commit has already been merged in a previous cycle.
> > >
> > > >From my understanding, this patch depends on the previous patches to work.
> > > Without patches 01-05 which make various classful qdiscs' qlen_notify()
> > > idempotent, if an fq_codel's dequeue() routine empties the fq_codel qdisc,
> > > it will be doubly deactivated - first in the parent qlen_notify and then
> > > again in the parent dequeue. For instance, in the case of parent drr,
> > > the double deactivation will either cause a fault on an invalid address,
> > > or trigger a splat if list checks are compiled into the kernel. This is
> > > also why the original unpatched code included the qlen check in the first
> > > place.
> > >
> > > After discussion with Greg, he has helped to temporarily drop the patch
> > > from the 5.x queues ([2]). My suggestion is to include patches 01-06 of the
> > > patchset, as listed above, for the 5.x queues. For the 6.x queues that have
> > > already merged patch 06, the earlier patches 01-05 should be merged too.
> > >
> > > I'm not too familiar with the stable patch process, so I may be completely
> > > mistaken here.
> >
> > I'll be glad to take what is needed, but please list what commits need
> > to go to what branches and in what exact order please.
>
> Here's the list of commits. The order should be the sequence as listed
> below.
>
> 6.14, 6.13, 6.12, 6.6, 6.1: (all 6.* branches)
> 5ba8b837b522d7051ef81bacf3d95383ff8edce5 ("sch_htb: make
> htb_qlen_notify() idempotent")
> df008598b3a00be02a8051fde89ca0fbc416bd55 ("sch_drr: make
> drr_qlen_notify() idempotent")
> 51eb3b65544c9efd6a1026889ee5fb5aa62da3bb ("sch_hfsc: make
> hfsc_qlen_notify() idempotent")
> 55f9eca4bfe30a15d8656f915922e8c98b7f0728 ("sch_qfq: make
> qfq_qlen_notify() idempotent")
> a7a15f39c682ac4268624da2abdb9114bdde96d5 ("sch_ets: make
> est_qlen_notify() idempotent")
>
> 5.15, 5.10, 5.4: (all 5.* branches)
> 5ba8b837b522d7051ef81bacf3d95383ff8edce5 ("sch_htb: make
> htb_qlen_notify() idempotent")
> df008598b3a00be02a8051fde89ca0fbc416bd55 ("sch_drr: make
> drr_qlen_notify() idempotent")
This commit did not apply to 5.15.y and older, sorry.
Please provide working, and TESTED backports of patches for us to
be able to include them in the stable trees.
thanks,
greg k-h
prev parent reply other threads:[~2025-05-07 14:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-02 4:49 net/sched: codel: Inclusion of patchset Tai, Gerrard
2025-05-05 9:28 ` Greg Kroah-Hartman
2025-05-07 2:59 ` Tai, Gerrard
2025-05-07 4:11 ` Cong Wang
2025-05-07 14:04 ` Greg Kroah-Hartman [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=2025050712-prone-covenant-80c9@gregkh \
--to=gregkh@linuxfoundation.org \
--cc=gerrard.tai@starlabs.sg \
--cc=horms@kernel.org \
--cc=jhs@mojatatu.com \
--cc=pabeni@redhat.com \
--cc=patches@lists.linux.dev \
--cc=sashal@kernel.org \
--cc=stable@vger.kernel.org \
--cc=xiyou.wangcong@gmail.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