Skip to content

Commit 354ea05

Browse files
author
Paul E. McKenney
committed
rcutorture: Upper case solves the case of the vanishing NULL pointer
Various security techniques can obfuscate pointer printouts on the console. Unfortunately, rcutorture relies on either "null" or all zeroes to identify the last few statistics printouts at the end of the test. These need to be identified because failing to do so will results in false-positive complaints about grace-period hangs. This commit therefore prints the "ver:" in capitals ("VER:") when the RCU-protected pointer has been set to NULL, which causes rcutorture's parse-console.sh script to correctly ignore these lines. Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
1 parent 8997e63 commit 354ea05

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎kernel/rcu/rcutorture.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1408,8 +1408,9 @@ rcu_torture_stats_print(void)
14081408
}
14091409

14101410
pr_alert("%s%s ", torture_type, TORTURE_FLAG);
1411-
pr_cont("rtc: %p ver: %lu tfle: %d rta: %d rtaf: %d rtf: %d ",
1411+
pr_cont("rtc: %p %s: %lu tfle: %d rta: %d rtaf: %d rtf: %d ",
14121412
rcu_torture_current,
1413+
rcu_torture_current ? "ver" : "VER",
14131414
rcu_torture_current_version,
14141415
list_empty(&rcu_torture_freelist),
14151416
atomic_read(&n_rcu_torture_alloc),

0 commit comments

Comments
 (0)