Skip to content

Commit 5ac7cdc

Browse files
author
Paul E. McKenney
committed
rcutorture: Don't do busted forward-progress testing
The "busted" rcutorture type is an intentionally broken implementation of RCU. Doing forward-progress testing on this implementation is not particularly meaningful on the one hand and can result in fatal abuse of the memory allocator on the other. This commit therefore disables forward-progress testing of the "busted" rcutorture type. Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
1 parent 2e57bf9 commit 5ac7cdc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kernel/rcu/rcutorture.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1900,7 +1900,8 @@ static int __init rcu_torture_fwd_prog_init(void)
19001900
{
19011901
if (!fwd_progress)
19021902
return 0; /* Not requested, so don't do it. */
1903-
if (!cur_ops->stall_dur || cur_ops->stall_dur() <= 0) {
1903+
if (!cur_ops->stall_dur || cur_ops->stall_dur() <= 0 ||
1904+
cur_ops == &rcu_busted_ops) {
19041905
VERBOSE_TOROUT_STRING("rcu_torture_fwd_prog_init: Disabled, unsupported by RCU flavor under test");
19051906
return 0;
19061907
}

0 commit comments

Comments
 (0)