From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mail.toke.dk; spf=pass smtp.mailfrom=; dkim=pass header.d=kernel.org; arc=none (Message is not ARC signed); dmarc=pass (Used From Domain Record) header.from=kernel.org policy.dmarc=quarantine Received: from sea.source.kernel.org (sea.source.kernel.org [172.234.252.31]) by mail.toke.dk (Postfix) with ESMTPS id D9F239D61DA for ; Fri, 28 Nov 2025 00:36:48 +0100 (CET) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 4C82A43B1E; Thu, 27 Nov 2025 23:36:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A52D5C4CEF8; Thu, 27 Nov 2025 23:36:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1764286606; bh=34KozKoOVCmT+6fnS1OOQMxNpW5m8bk9dYmhP2vKwYU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=GM7O+sLHQe2TWcnufenIMMz9qPJHizbr/IzJAQqhFAVwpfiUENzpz/7cZs2iH94FZ 9B1nMlScIz9crUcUbv4MLW0yJynaZS7PRPc1RR9gmnioyBA4aLBZGKy+IuGj8zaraC ct/0Nh4Rj+5t+JtrFX8mBWHLeLLnRNTKu//9+Gd3iRcsAh5V99TrBuBMF2tjPqzAxb RzAXfdQ982OYeAptmqCV7gC/TsASXjZz9mfF9AwEkkKVOwFoKjXpmvvbxvvXd2VcpS c2tFw0oSGv+32usdJKwUqpCBe7Osux7Z1mDSPDstuDbr/1x4OwCduqPSDgv0F08iHC g6H/CteAL7q+Q== Date: Thu, 27 Nov 2025 15:36:44 -0800 From: Jakub Kicinski To: Xiang Mei Cc: security@kernel.org, netdev@vger.kernel.org, toke@toke.dk, xiyou.wangcong@gmail.com, cake@lists.bufferbloat.net, bestswngs@gmail.com Message-ID: <20251127153644.55ef4796@kernel.org> In-Reply-To: <20251126194513.3984722-1-xmei5@asu.edu> References: <20251126194513.3984722-1-xmei5@asu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID-Hash: AT4LCNCRIFH2OFDK4BFS52VFDZSJTD7L X-Message-ID-Hash: AT4LCNCRIFH2OFDK4BFS52VFDZSJTD7L X-MailFrom: kuba@kernel.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list Subject: [Cake] Re: [PATCH net v7 1/2] net/sched: sch_cake: Fix incorrect qlen reduction in cake_drop List-Id: Cake - FQ_codel the next generation Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: On Wed, 26 Nov 2025 12:45:12 -0700 Xiang Mei wrote: > In cake_drop(), qdisc_tree_reduce_backlog() is used to update the qlen > and backlog of the qdisc hierarchy. Its caller, cake_enqueue(), assumes > that the parent qdisc will enqueue the current packet. However, this > assumption breaks when cake_enqueue() returns NET_XMIT_CN: the parent > qdisc stops enqueuing current packet, leaving the tree qlen/backlog > accounting inconsistent. This mismatch can lead to a NULL dereference > (e.g., when the parent Qdisc is qfq_qdisc). This series does not apply, please rebase on netdev/net/main. -- pw-bot: cr