Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C95593B6379; Tue, 21 Jul 2026 21:00:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784667658; cv=none; b=QSPDCNblxVdh1ul9/F0iAyIANx3nbHHKrX/SfTsJuJfHRb9I4Bw4IhBWmkBNQ1XGZA5IyG1ds6U1aEJqLrLm/CDOA4SpaeGGGu92f70Ycam22GRL2MMkkizi6csLCLicvjDbvJU2wPNBwMI9Ko4+dA8Y2tLgH0YSifN1CZU9hX0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784667658; c=relaxed/simple; bh=eRDewQwtB6sj/hleixDO4n1WszifRAfmeqZGBWUIX04=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EYCAc0LXWgAmpsXpiPVNHWDL0Fu7vZs9R1O7Cd3LJZ8Q9nfpquieM3Ge2FEOxbgpBDo5rJEq4PpJ6JqpgetxDwQ+l4jL/IJhdAC05nCuQoNCDpmNnA9vbe20jOCby+CzD/st2PQoGMWJWvUU2hE/VmPwYKE5GxCg9Lg6RRHIGm8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=glwb4szJ; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="glwb4szJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 35C0B1F000E9; Tue, 21 Jul 2026 21:00:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784667657; bh=TMCasOdLxhF6PWIjBSpzLR9x5hMOgBTAncibplbe+u4=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=glwb4szJ2BXgle+i7hbz1ABibliVKmk66usy/vqT+LloU1LdUpZr1egee9o6ndOhl d7bKqg41/jnKPoy4iwa3+sVuoraO88W4CtziY2e71+22e8vXJElsbx7nK8Xp29BGHH Qbu6YCZHhKVS5MrmafLz5mRCoj1Rxin1no/IeJ7o= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Bryam Vargas , Victor Nogueira , Jamal Hadi Salim , Jakub Kicinski Subject: [PATCH 6.6 1107/1266] net/sched: sch_multiq: Replace direct dequeue call with peek and qdisc_dequeue_peeked Date: Tue, 21 Jul 2026 17:25:44 +0200 Message-ID: <20260721152506.574288715@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260721152441.786066624@linuxfoundation.org> References: <20260721152441.786066624@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Bryam Vargas commit 54f6b0c843e228d499eb4b6bbb89df68cad9ad5d upstream. multiq_dequeue() takes a packet from a band's child with a direct ->dequeue() call after multiq_peek() peeked it. When the child is non-work-conserving the peek stashes the skb in the child's gso_skb, so the direct dequeue returns a different skb and orphans the stash, desyncing the child's qlen/backlog. With a qfq child reached through a peeking parent (e.g. tbf) this re-enters the child on an emptied list and dereferences NULL, panicking the kernel from softirq on ordinary egress. Take the packet through qdisc_dequeue_peeked(), as sch_prio already does and as sch_red and sch_sfb were just fixed to do. The helper is a no-op when the child has no stash, so a work-conserving child is unaffected. Fixes: 77be155cba4e ("pkt_sched: Add peek emulation for non-work-conserving qdiscs.") Cc: stable@vger.kernel.org Signed-off-by: Bryam Vargas Reviewed-by: Victor Nogueira Acked-by: Jamal Hadi Salim Link: https://patch.msgid.link/20260625-b4-disp-31bcb279-v1-2-85c40b83c529@proton.me Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- net/sched/sch_multiq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/sched/sch_multiq.c +++ b/net/sched/sch_multiq.c @@ -103,7 +103,7 @@ static struct sk_buff *multiq_dequeue(st if (!netif_xmit_stopped( netdev_get_tx_queue(qdisc_dev(sch), q->curband))) { qdisc = q->queues[q->curband]; - skb = qdisc->dequeue(qdisc); + skb = qdisc_dequeue_peeked(qdisc); if (skb) { qdisc_bstats_update(sch, skb); sch->q.qlen--;