mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/7] rcu: Record callback enqueue stacks and add torture tests
@ 2026-11-28 14:27 Kunwu Chan
  2026-11-28 14:27 ` [PATCH v3 1/7] rcu-tasks: Record callback enqueue stack Kunwu Chan
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Kunwu Chan @ 2026-11-28 14:27 UTC (permalink / raw)
  To: dave, paulmck, josh, frederic, neeraj.upadhyay, joelagnelf,
	boqun, urezki
  Cc: rostedt, mathieu.desnoyers, jiangshanlai, qiang.zhang,
	linux-kernel, rcu, Kunwu Chan

This series records the enqueue stack for RCU Tasks callbacks and adds
rcutorture coverage for duplicate callbacks and KASAN auxiliary-stack
recording.

kasan-aux.sh runs the auxiliary-stack self-test on existing scenarios
and checks for the enqueue caller in the intentional KASAN report.
Patch 6 runs it from torture.sh when both RCU torture and KASAN testing
are enabled. The extra builds follow --configs-rcutorture. --no-kasan
disables both ordinary KASAN torture and the auxiliary-stack checks.

Changes since v2 [1]

- Rebased onto Paul's dev branch at 68dcfb0e34ee. The previous callback
  stack and duplicate-enqueue series is already in dev. Joel's Tasks
  RCU barrier debugobjects fix is included in f9857faffbb2
  ("rcu-tasks: Detect duplicate callback enqueue").
- Dropped v2 patch 4/7. Zqiang's 6abf78ac6a2c ("rcutorture: Make
  tasks-tracing support duplicate call testing") already sets
  debug_objects for Tasks Trace.
- Adjusted the torture.sh patch to keep dev's NMI boot parameters and
  QEMU arguments for ordinary RCU torture. The dedicated aux-stack run
  uses its own boot parameters.
- Added patch 7/7 to accept the expected KASAN aux-stack skip in the
  TRIVIAL-PREEMPT scenario. Codex found and helped fix the checker
  omission while comparing the rebased series with v2.

On the rebased x86-64 tree, I built the RCU objects with Generic KASAN
enabled and checked torture.sh argument handling. A 30-second QEMU
run of TRIVIAL-PREEMPT skipped the KASAN self-test and reached
SUCCESS.

[1] https://lore.kernel.org/all/20261118085147.1668598-1-kunwu.chan@gmail.com/

Kunwu Chan (7):
  rcu-tasks: Record callback enqueue stack
  rcutorture: Require debug_objects flag for debug-objects test
  rcutorture: Test duplicate call_rcu_tasks() callback enqueue
  rcutorture: Add KASAN aux-stack self-test
  rcutorture: Add kasan-aux.sh aux-stack checker
  rcutorture: Run KASAN aux-stack checks from torture.sh
  rcutorture: Accept TRIVIAL-PREEMPT skips in kasan-aux.sh

 Documentation/RCU/torture.rst                 |  46 ++++
 .../admin-guide/kernel-parameters.txt         |  11 +
 kernel/rcu/rcutorture.c                       |  54 ++++-
 kernel/rcu/tasks.h                            |   4 +
 .../rcutorture/bin/kasan-aux-check.sh         | 158 ++++++++++++
 .../selftests/rcutorture/bin/kasan-aux.sh     | 229 ++++++++++++++++++
 .../selftests/rcutorture/bin/torture.sh       |   9 +
 7 files changed, 509 insertions(+), 2 deletions(-)
 create mode 100755 tools/testing/selftests/rcutorture/bin/kasan-aux-check.sh
 create mode 100755 tools/testing/selftests/rcutorture/bin/kasan-aux.sh


base-commit: 68dcfb0e34ee3a9628f6b5ce7e06931b5248bb9e
-- 
2.43.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-11-28 14:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` [PATCH v3 7/7] rcutorture: Accept TRIVIAL-PREEMPT skips in kasan-aux.sh Kunwu Chan

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®