mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Kunwu Chan <kunwu.chan@gmail.com>
To: dave@stgolabs.net, paulmck@kernel.org, josh@joshtriplett.org,
	frederic@kernel.org, neeraj.upadhyay@kernel.org,
	joelagnelf@nvidia.com, boqun@kernel.org, urezki@gmail.com
Cc: rostedt@goodmis.org, mathieu.desnoyers@efficios.com,
	jiangshanlai@gmail.com, qiang.zhang@linux.dev,
	linux-kernel@vger.kernel.org, rcu@vger.kernel.org,
	Kunwu Chan <kunwu.chan@gmail.com>,
	Kunwu Chan <chentao@kylinos.cn>
Subject: [PATCH v3 7/7] rcutorture: Accept TRIVIAL-PREEMPT skips in kasan-aux.sh
Date: Sat, 28 Nov 2026 22:27:29 +0800	[thread overview]
Message-ID: <20261128142729.3756679-8-kunwu.chan@gmail.com> (raw)
In-Reply-To: <20261128142729.3756679-1-kunwu.chan@gmail.com>

The TRIVIAL-PREEMPT scenario selects trivial-preempt, which has no
callback or barrier operations. The kernel correctly skips the
KASAN aux-stack self-test, but kasan-aux.sh rejects the saved flavor
and kasan-aux-check.sh does not recognize the expected skip.

Accept trivial-preempt in both scripts and require its skip message
and a successful torture run, as for the other skip-only flavors.

Cc: Kunwu Chan <kunwu.chan@gmail.com>
Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
---
 tools/testing/selftests/rcutorture/bin/kasan-aux-check.sh | 2 +-
 tools/testing/selftests/rcutorture/bin/kasan-aux.sh       | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/tools/testing/selftests/rcutorture/bin/kasan-aux-check.sh b/tools/testing/selftests/rcutorture/bin/kasan-aux-check.sh
index 7a6f425975207..5518ca507557f 100755
--- a/tools/testing/selftests/rcutorture/bin/kasan-aux-check.sh
+++ b/tools/testing/selftests/rcutorture/bin/kasan-aux-check.sh
@@ -25,7 +25,7 @@ BEGIN {
 	test_name = "rcutorture: WARN: KASAN aux-stack call_" flavor "()";
 	success = flavor "-torture:--- End of test: SUCCESS: ";
 	skip_name = "rcutorture: " flavor " has no callback/barrier ops, skipping KASAN test";
-	skip_mode = flavor ~ /^(tasks-rude|busted|trivial)$/;
+	skip_mode = flavor ~ /^(tasks-rude|busted|trivial(-preempt)?)$/;
 }
 
 function fail(message)
diff --git a/tools/testing/selftests/rcutorture/bin/kasan-aux.sh b/tools/testing/selftests/rcutorture/bin/kasan-aux.sh
index ae7896658e94d..6b6d9971f03d7 100755
--- a/tools/testing/selftests/rcutorture/bin/kasan-aux.sh
+++ b/tools/testing/selftests/rcutorture/bin/kasan-aux.sh
@@ -157,7 +157,8 @@ check_results () {
 			}
 		END {
 			if (!valid || commands != 1 || !multi_shot ||
-			    flavor !~ /^(rcu|srcu|srcud|tasks|tasks-tracing|tasks-rude|busted|trivial)$/)
+			    (flavor !~ /^(rcu|srcu|srcud|tasks|tasks-tracing)$/ &&
+			     flavor !~ /^(tasks-rude|busted|trivial(-preempt)?)$/))
 				exit 1;
 			print flavor;
 		}' "$dir/qemu-cmd")
-- 
2.43.0


      parent reply	other threads:[~2026-11-28 14:28 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-28 14:27 [PATCH v3 0/7] rcu: Record callback enqueue stacks and add torture tests Kunwu Chan
2026-11-28 14:27 ` [PATCH v3 1/7] rcu-tasks: Record callback enqueue stack Kunwu Chan
2026-11-28 14:27 ` [PATCH v3 2/7] rcutorture: Require debug_objects flag for debug-objects test Kunwu Chan
2026-11-28 14:27 ` [PATCH v3 3/7] rcutorture: Test duplicate call_rcu_tasks() callback enqueue Kunwu Chan
2026-11-28 14:27 ` [PATCH v3 4/7] rcutorture: Add KASAN aux-stack self-test Kunwu Chan
2026-11-28 14:27 ` [PATCH v3 5/7] rcutorture: Add kasan-aux.sh aux-stack checker Kunwu Chan
2026-11-28 14:27 ` [PATCH v3 6/7] rcutorture: Run KASAN aux-stack checks from torture.sh Kunwu Chan
2026-11-28 14:27 ` Kunwu Chan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261128142729.3756679-8-kunwu.chan@gmail.com \
    --to=kunwu.chan@gmail.com \
    --cc=boqun@kernel.org \
    --cc=chentao@kylinos.cn \
    --cc=dave@stgolabs.net \
    --cc=frederic@kernel.org \
    --cc=jiangshanlai@gmail.com \
    --cc=joelagnelf@nvidia.com \
    --cc=josh@joshtriplett.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mathieu.desnoyers@efficios.com \
    --cc=neeraj.upadhyay@kernel.org \
    --cc=paulmck@kernel.org \
    --cc=qiang.zhang@linux.dev \
    --cc=rcu@vger.kernel.org \
    --cc=rostedt@goodmis.org \
    --cc=urezki@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®