From nobody Mon May 25 00:08:59 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 B1EC63BE14A; Wed, 20 May 2026 08:34:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779266077; cv=none; b=h2MX5AV8vVJaOOxc+sgNyPZZj5y0jcGtIgbYxdD0H9tModdEp8Gg7wCvI7WqN8kJ45bLboN9ynZJ528ZzZSw3R8x9wZbfs59T638ptoP718/kZqWcDzBV9MPX22VdJRwII5+Ch62phHUQj30i02pI2DCkEFQUTFyqHY7dPdpEyk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779266077; c=relaxed/simple; bh=y9Xnvxtcx4+cgdzb+djlvrtN7ZK6+BCTSAT5Sazqz5I=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=HL6g9NA3mfnQ0LUpgmqfQCON6RTdYJjC59WQ83rXi8PElv1LCEkaiI1cjVQAWah22L6rdZ/brcTHlfjPGslf0ADvtJMMRaPnoLRUbApDmKTLfMGTBZMH0Dvzj69Ci20V30rRuqRB0j6bVT2QwSdNRzwDu6jQQQQT1XerJ+oheos= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=sk12LLv6; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=cdL/Bw16; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="sk12LLv6"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="cdL/Bw16" Date: Wed, 20 May 2026 08:34:32 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1779266074; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BD02xUmNah2rc5KP6hencAdhVBDk/AovhO6RmLRs44A=; b=sk12LLv6M9nWaZI2dtialonwxzSgIqjvgZ/nhYVqkmCafgfQIrEi83A0ueTG0kimYbFyxV fFcjSAV6S+nMWepQZDIo1VcMOkhkBN/Esourp8V9x1JZJRcGwOC+U1DxBQJuZ27cffOlFY qX6bWauuoBHqTN3IRma+9hXGKta0dGJj5OA8YY/PGLKXr37juoVfyHpAah5MEFBkuHl+ZS 82TOhhZz5JhsmHkQFCGPUroJNAYaP+WoL+9HPk83z0LNWa+39pQRgFVwBbsEc2sbWbywKk R2RYnDjJlKXqTUawScHWnVgzwQdagV7Fe/m0aUBYk+m1mYW7ADcdes3VDR/daw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1779266074; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=BD02xUmNah2rc5KP6hencAdhVBDk/AovhO6RmLRs44A=; b=cdL/Bw16+yZchkW43PfUTPQeWn4GY3UmoBcSuz/kjr+x/n3uKW9kDc/+7nn8mn3Dsa6y2L OieF16v12+IHEIAA== From: "tip-bot2 for Chen Yu" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/cache: Fix rcu warning when accessing sd_llc domain Cc: Chen Yu , Tim Chen , "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: =?utf-8?q?=3C2dc49455e861215d8059a1c877953f0b95990038=2E1778703?= =?utf-8?q?694=2Egit=2Etim=2Ec=2Echen=40linux=2Eintel=2Ecom=3E?= References: =?utf-8?q?=3C2dc49455e861215d8059a1c877953f0b95990038=2E17787036?= =?utf-8?q?94=2Egit=2Etim=2Ec=2Echen=40linux=2Eintel=2Ecom=3E?= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177926607278.711.4890898362201121698.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the sched/core branch of tip: Commit-ID: d943b86dfbf4e9b76be30cf90b1b3f82ff9abbac Gitweb: https://git.kernel.org/tip/d943b86dfbf4e9b76be30cf90b1b3f82f= f9abbac Author: Chen Yu AuthorDate: Wed, 13 May 2026 13:39:18 -07:00 Committer: Peter Zijlstra CommitterDate: Mon, 18 May 2026 21:33:16 +02:00 sched/cache: Fix rcu warning when accessing sd_llc domain rcu_dereference_all() should be used to access the sd_llc domain under RCU protection. This bug was reported by sashiko. Fixes: df0d98475954 ("sched/cache: Introduce infrastructure for cache-aware= load balancing") Signed-off-by: Chen Yu Co-developed-by: Tim Chen Signed-off-by: Tim Chen Signed-off-by: Peter Zijlstra (Intel) Link: https://patch.msgid.link/2dc49455e861215d8059a1c877953f0b95990038.177= 8703694.git.tim.c.chen@linux.intel.com --- kernel/sched/fair.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 76ac6a8..c549ad4 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -1814,7 +1814,7 @@ static void task_cache_work(struct callback_head *wor= k) =20 for_each_cpu(cpu, cpus) { /* XXX sched_cluster_active */ - struct sched_domain *sd =3D per_cpu(sd_llc, cpu); + struct sched_domain *sd =3D rcu_dereference_all(per_cpu(sd_llc, cpu)); unsigned long occ, m_occ =3D 0, a_occ =3D 0; int m_cpu =3D -1, i; =20