From nobody Mon Feb 9 05:55:33 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D55A8230BC2; Thu, 8 May 2025 23:42:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746747753; cv=none; b=ZhBhjQzYNQO3Fcwq94/sH+MgEdBkcnp3Crwdt8moUdtlsb5BLQUkvklXot37B/2X6x5MG2uyIkn2H1VajSkwVL8ve2FzSDlUr65bN14Z0EJ2YeIsQ52MqvaPm683YswFBYZ0uUYQ87alPZ9ugcCjtcx3MireByRL8kZc+rX8rBI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746747753; c=relaxed/simple; bh=qKbpk5aA0PmCFIvSfweb7NuQ7n7KI2VncQk39HmbUNk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=iaynGOt/c8oRniwCjadxA0aN6raudKBgjJyREUixhn1rPy/dtjS83tyXloZwBOkrID0FC4VETFgTjs73q0RtzuMq3yPDIwCu5XQQ6gX7duKioBIvaH9N4evHIPyNGBB2sfqIYxJMTeLNVIm97x0AuJ5VN0gm4u9/fq6m7KeFUNo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uto1rABw; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uto1rABw" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 58F36C4CEE7; Thu, 8 May 2025 23:42:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1746747753; bh=qKbpk5aA0PmCFIvSfweb7NuQ7n7KI2VncQk39HmbUNk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uto1rABwKs++TyHL3Kq0A4qA3EPiRIeCJmEWFhBKgZn18l3PJQaE4b529sBZLFVyl 64gD4cvJlZLxk7QuhSHb93cTPXiS53QSP7jQ2RUpRN+4Obp90ydRwlbn7WTqMzV8oO 7amDdaLcOg8qXUBkYj64g+CbqCG/T9q3sda+/Wol8kIAX+LZvxQ8DHwI7DqsF6fo07 RUdw/b3W1nICahiYHwyutamonPMm7sbvqKQm0ha2Qq7aCZykAeCIGWstHAxHvKRvC6 LJWbWNJEPcxi+ezI4HdU4FbnY0e9DefD13wwGUJb0+jUa+SKFpSNrpGJ15mkiyYtPY 5oijrnh1mbXvw== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 0AEF3CE11A4; Thu, 8 May 2025 16:42:33 -0700 (PDT) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, rostedt@goodmis.org, "Paul E. McKenney" , Joel Fernandes Subject: [PATCH 1/3] torture: Check for "Call trace:" as well as "Call Trace:" Date: Thu, 8 May 2025 16:42:28 -0700 Message-Id: <20250508234230.1996554-1-paulmck@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Different architectures capitalize their splats differently. Who knew? This commit therefore checks for both arm64 "Call trace:" and x86 "Call Trace:". Reported-by: Joel Fernandes Closes: https://lore.kernel.org/all/553c33d8-2b51-4772-8aef-97b0163bc78e@nv= idia.com/ Signed-off-by: Paul E. McKenney Tested-by: Joel Fernandes --- tools/testing/selftests/rcutorture/bin/console-badness.sh | 2 +- tools/testing/selftests/rcutorture/bin/parse-console.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/rcutorture/bin/console-badness.sh b/to= ols/testing/selftests/rcutorture/bin/console-badness.sh index aad51e7c0183d..991fb11306eb6 100755 --- a/tools/testing/selftests/rcutorture/bin/console-badness.sh +++ b/tools/testing/selftests/rcutorture/bin/console-badness.sh @@ -10,7 +10,7 @@ # # Authors: Paul E. McKenney =20 -grep -E 'Badness|WARNING:|Warn|BUG|=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D|BUG: = KCSAN:|Call Trace:|Oops:|detected stalls on CPUs/tasks:|self-detected stall= on CPU|Stall ended before state dump start|\?\?\? Writer stall state|rcu_.= *kthread starved for|!!!' | +grep -E 'Badness|WARNING:|Warn|BUG|=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D|BUG: = KCSAN:|Call Trace:|Call trace:|Oops:|detected stalls on CPUs/tasks:|self-de= tected stall on CPU|Stall ended before state dump start|\?\?\? Writer stall= state|rcu_.*kthread starved for|!!!' | grep -v 'ODEBUG: ' | grep -v 'This means that this is a DEBUG kernel and it is' | grep -v 'Warning: unable to open an initial console' | diff --git a/tools/testing/selftests/rcutorture/bin/parse-console.sh b/tool= s/testing/selftests/rcutorture/bin/parse-console.sh index b07c11cf6929d..21e6ba3615f6a 100755 --- a/tools/testing/selftests/rcutorture/bin/parse-console.sh +++ b/tools/testing/selftests/rcutorture/bin/parse-console.sh @@ -148,7 +148,7 @@ then summary=3D"$summary KCSAN: $n_kcsan" fi fi - n_calltrace=3D`grep -c 'Call Trace:' $file` + n_calltrace=3D`grep -Ec 'Call Trace:|Call trace:' $file` if test "$n_calltrace" -ne 0 then summary=3D"$summary Call Traces: $n_calltrace" --=20 2.40.1 From nobody Mon Feb 9 05:55:33 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D554422FF4C; Thu, 8 May 2025 23:42:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746747753; cv=none; b=mqWff8zkvCEBW/xZebpu5rz8fFwCgE58LDw/Xu7JRgIVD856EBbsIr4YGUEqbNj25qWYL2utQYyNz+OIC0oMYXEeJCaXNOURKHNnGdGTXWZqyaHSZxB1cSsPP5/RU2oeYXuJoVbxIJg9RQ6FWuR2PVWB4D6kibUkE7CYmXrGVnA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746747753; c=relaxed/simple; bh=AXbdvbhnhQJc2Vt4aBypgEAuD+IUYP3v+j6U5ZNRkMo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=WVKVzNW7fYIwEZsn2WlmmkY33aF5mnVoXKf2aQYXEsWV9Duotsn5ccgGg0x9ByRukbvUnaSDv23wHf2Whm/rc/YfCfp8qSpbdWGUlAN+4O/2apxp73c6TQIarB5qBxFqceRQdgWfgfEB8VW9KJ3+0GefyljgPmjgw1WPpYH8PIA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=h9Bv20uA; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="h9Bv20uA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 615E3C4CEED; Thu, 8 May 2025 23:42:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1746747753; bh=AXbdvbhnhQJc2Vt4aBypgEAuD+IUYP3v+j6U5ZNRkMo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=h9Bv20uA1jdWwdjcX3Gn9YaMZTWfEcwAD19ooiJq3rMjC1JloCJ9b61oiCTJH6hMW bfwJXfloeE3BIUjDj4uELWtDivqP7NB+8dtebzMVHBeFMnHszMlGI39HQfQgXb3DTP v6CM7vRyw4CwvWaIYABjt74Yc2N+fp1A3GVkY8SSHz92zm3p8VQVRI55Jd8JLhm9Qj QpmjFAZE9Q0tojXwn255eN2UqcLWYGXV7vXmIGGDuyUzpOPzmRE79ifrTebZQ/wZ9q t9mXwDtJjMHytbbHPWSixYfCCVD8toYZU5/mSFT9v927Um/obXZwabnBk7HEyrzlDE nJ4zxenk2NuAA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 0D9D0CE11D3; Thu, 8 May 2025 16:42:33 -0700 (PDT) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, rostedt@goodmis.org, "Paul E. McKenney" Subject: [PATCH 2/3] rcutorture: Reduce TREE01 CPU overcommit Date: Thu, 8 May 2025 16:42:29 -0700 Message-Id: <20250508234230.1996554-2-paulmck@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The TREE01.boot nr_cpus kernel boot parameter has been set to 43 for more than seven years, but it can cause RCU CPU stall warnings on arm64, most of the time involving the stop-machine subsystem. This should not be too surprising, given that this causes 43 vCPUs to spin with interrupts disabled when there are only eight physical CPUs. The point of this CPU overcommit is to test the ability of expedited RCU grace period initialization to handle races with incoming CPUs that have never previously been online. But limiting to 17 CPUs instead of 43 allows time for this code to be exercised, and eliminates (or at least greatly reduces) the incidence of RCU CPU stall warnings on arm64. So this commit therefore sets nr_cpus=3D17 in TREE01.boot. Signed-off-by: Paul E. McKenney Tested-by: Joel Fernandes --- tools/testing/selftests/rcutorture/configs/rcu/TREE01.boot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/rcutorture/configs/rcu/TREE01.boot b/t= ools/testing/selftests/rcutorture/configs/rcu/TREE01.boot index 40af3df0f397f..1cc5b47dde282 100644 --- a/tools/testing/selftests/rcutorture/configs/rcu/TREE01.boot +++ b/tools/testing/selftests/rcutorture/configs/rcu/TREE01.boot @@ -1,4 +1,4 @@ -maxcpus=3D8 nr_cpus=3D43 +maxcpus=3D8 nr_cpus=3D17 rcutree.gp_preinit_delay=3D3 rcutree.gp_init_delay=3D3 rcutree.gp_cleanup_delay=3D3 --=20 2.40.1 From nobody Mon Feb 9 05:55:33 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E9DA5230BD0; Thu, 8 May 2025 23:42:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746747754; cv=none; b=CLWWkQw5URC4NK7bxec52876GG8rjNjn46UN46ULQaJ4EvaCH6EdGX9CNiJmGwDhvj3liPo3O0tj880LblAHsTK2Y9GO9mw3N6NhOc6OUeuqoxppg99hVZztKxziUA8FNgXMLJe2hQS659jwW+n6ViEk9coNxi1ctZZfMaWSJgo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746747754; c=relaxed/simple; bh=xkjlkRzXy3gD07TO4pnDWxA5oWDgHXa+wX7fIFSjXqU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=nTurzblRj0jXBsiBo0wqBFKXW44mWrUH6JyEGXU6nNLjxoaLGp1muIAqjH8LuonsRuplM8r55YdGhm0hxYjivFWLrQYmgYDiwLl+lt2ee1mRjoN57adBu3JREWnQbrmfxkd3CwMwYL4QeLfRON+b4CP9eMOAmQgfiy5GMiToZcY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=eCoHP2iM; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="eCoHP2iM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F953C4CEEE; Thu, 8 May 2025 23:42:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1746747753; bh=xkjlkRzXy3gD07TO4pnDWxA5oWDgHXa+wX7fIFSjXqU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eCoHP2iMLCyu1EXO6H5ih0kCuk+ZgM727OgswRp34bvzkAIsCtLkkBBe/7UDQdLOx EMX9peaGxT8xWB3vtONkZx8z3GCyqWHfgyUwoiAhkOGlM8yqLZMfsOWGoRpQZIy8Lu GnSd6ESnyHCTALw6ybXLltCeZzuk2m/PducscSSWtK8c3iTlYmXSiNKvMpJqgObmf3 C70BMFsMKYkEVTOTDI+7CRO4lJl2IzVbUGhHrt1MRsLgKOLOUKZBOrxYa5VAOVgaBz nCcQv/YPZqiDEUNc6dPdXNHGGhdzOEQZxpdi14UZoJe0v5RsokiuuKkcirTY/DCf11 ARH05QrcY2NSQ== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 10694CE11D4; Thu, 8 May 2025 16:42:33 -0700 (PDT) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, rostedt@goodmis.org, "Paul E. McKenney" Subject: [PATCH 3/3] rcutorture: Remove MAXSMP and CPUMASK_OFFSTACK from TREE01 Date: Thu, 8 May 2025 16:42:30 -0700 Message-Id: <20250508234230.1996554-3-paulmck@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Back in the day, rcutorture was about the only thing that tested off-stack CPU masks, but now any arm64 system with more than 256 CPUs tests it full time. In fact, it is necessary to hack the kernel to prevent such a system from testing off-stack CPU masks. This means that there is no longer much point in rcutorture going out of its way to test this. And given the differences in how CPUMASK_OFFSTACK is enabled in x86 and arm64, rcutorture would need to go out of its way. This commit therefore removes CONFIG_CPUMASK_OFFSTACK=3Dy (and the CONFIG_MAXSMP=3Dy required to enable it on x86) from TREE01. Signed-off-by: Paul E. McKenney Tested-by: Joel Fernandes --- tools/testing/selftests/rcutorture/configs/rcu/TREE01 | 2 -- 1 file changed, 2 deletions(-) diff --git a/tools/testing/selftests/rcutorture/configs/rcu/TREE01 b/tools/= testing/selftests/rcutorture/configs/rcu/TREE01 index 8ae41d5f81a3e..54b1600c7eb5f 100644 --- a/tools/testing/selftests/rcutorture/configs/rcu/TREE01 +++ b/tools/testing/selftests/rcutorture/configs/rcu/TREE01 @@ -8,8 +8,6 @@ CONFIG_NO_HZ_IDLE=3Dy CONFIG_NO_HZ_FULL=3Dn CONFIG_RCU_TRACE=3Dy CONFIG_HOTPLUG_CPU=3Dy -CONFIG_MAXSMP=3Dy -CONFIG_CPUMASK_OFFSTACK=3Dy CONFIG_RCU_NOCB_CPU=3Dy CONFIG_DEBUG_LOCK_ALLOC=3Dn CONFIG_RCU_BOOST=3Dn --=20 2.40.1