From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796010608; b=r25iLtR3n8Xj2LSLSu8+/Q3xjAaeXBf1V3AvHuGN15irZ4xsqyaJqI6tNMb7xse+ZDdI KCSazYDuIpYfLwcxcx/1BQabWS/0YmfS4qquqI9veiOBJK6zkUMA3fD7UgEv7kgdU6DjL msl/EpxWLzRww06vrvxFvnl7u4KyNnsNLzJhO+I8sLF8iyWZZKtAfxA4L0o8EcgHUgZHE /NeG82bgNKeQjLec9jWuBspKsWgK6fgTTKs5gsOm3LvyO2CZclgs0l0kmHpzB82adQB5p cy8A5MCNPinOvAbX+ciGhMN3CSvGw1lmqMJShOx+lhzLGi/MOeLnFNXi+b+25AjFfgw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796010608; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=wlb+ahphk7Tu94bIKVXzDtWkVUxpscZJNUmD5QIztGw=; b=N/92e4SRs7gigPqIvCJwXv6dKcfXo1lXcfAkw01gH6bQTjsVtUvuA6aDv7ZCTtKYvW0H q2jChhAJmUAFfNCMLlWG+mAawHWHRnHP1C9uRD2Csgs2d15pEVqTP7/lQsivwmt7koICr jjtQSxMoauvtCxmgbSuG4RjQdRJ6vW/q2DqgRqeq60xx4l6SINkQWnbAcE22IIbmiHZh+ dLxpiBA8FiInK61jZh2mCyQUWkvHrqGmoYeoD+OQDvsxOmGd5kBVRirTA5J/Mjboq6sI3 u8bGQRm4T+SGwYsLDTBIM4OzuT2Vcs6dCYllGSNynv19qCfonxSLIhGQD3PSxQFpB3w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=KiEgSi2E; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4A7F2606A337; Mon, 30 Nov 2026 03:50:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=KiEgSi2E Received: by smtp.kernel.org (Postfix) with ESMTPSA id BA9B31F0089B; Mon, 30 Nov 2026 03:50:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796010607; bh=wlb+ahphk7Tu94bIKVXzDtWkVUxpscZJNUmD5QIztGw=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=KiEgSi2EtecVLIK4z6UfN4+Sos+Ism6y0Dnh8wpAzwRJjFwEF4+pzY1gmlILojv3z K4ayh0cvosvQ1wY50kEpFt4Rii91v2dMUHB9qremcIXduE9YjEqB2t1aRUgfD1kSF8 hMdHc+a51ZYYMfAAynyqzOE+KkroQcU50y6olBBzHAscoci7rPXQdUr7voSauIhHgf wGfZp+ElAunAcF4byS6Zh3/3fFlyBIcdxaJOVCZQcEOtZHo0gOFdbOcnxO1DBS11z2 u5rzYNpZrW/bVLuIau2wR3TjGL/M3Amiv9JSrjeDalUKPFinnKhm+a2gmVCDkb0Pka bO+O5hXqWapnw== Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id AE894392EA7F; Mon, 30 Nov 2026 03:50:07 +0000 (UTC) Content-Type: text/plain; charset="utf-8" X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net] net/sched: sch_cake: use rcu_dereference_bh() in the cake_mq sync loop From: patchwork-bot+netdevbpf@kernel.org Message-Id: <179601060650.3033121.15582534956912114829.git-patchwork-notify@kernel.org> Date: Mon, 30 Nov 2026 03:50:06 +0000 References: <179549599115.54577.5943710312861930188@gmail.com> In-Reply-To: <179549599115.54577.5943710312861930188@gmail.com> To: Kyuwon Cho Cc: toke@toke.dk, j.koeppeler@tu-berlin.de, jhs@mojatatu.com, jiri@resnulli.us, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, willemb@google.com, horms@kernel.org, cake@lists.bufferbloat.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Hello: This patch was applied to netdev/net.git (main) by Willem de Bruijn : On Tue, 24 Nov 2026 13:57:24 +0900 you wrote: > cake_dequeue() reads the other cake_mq sub-qdiscs with rcu_dereference(), > but it runs from __qdisc_run() under rcu_read_lock_bh() or in softirq > context, not under rcu_read_lock(), so lockdep warns: > > WARNING: suspicious RCU usage > net/sched/sch_cake.c:2039 suspicious rcu_dereference_check() usage! > 2 locks held by test/114: > #0: ffffffff88b2ca80 (rcu_read_lock_bh){....}-{1:3}, at: __dev_queue_xmit (net/core/dev.c:5014) > #1: ff11000013ec8170 (&sch->root_lock_key){+...}-{3:3}, at: __dev_queue_xmit (net/core/dev.c:5058) > Call Trace: > cake_dequeue (net/sched/sch_cake.c:2039) > __qdisc_run (net/sched/sch_generic.c:359) > __dev_queue_xmit (net/core/dev.c:4502) > packet_sendmsg (net/packet/af_packet.c:3157) > > [...] Here is the summary with links: - [net] net/sched: sch_cake: use rcu_dereference_bh() in the cake_mq sync loop https://git.kernel.org/netdev/net/c/8c9f86c2f55f You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html