Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5ac7cdc2 authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

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: default avatarkernel test robot <lkp@intel.com>
Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.ibm.com>
parent 2e57bf97
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1900,7 +1900,8 @@ static int __init rcu_torture_fwd_prog_init(void)
{
	if (!fwd_progress)
		return 0; /* Not requested, so don't do it. */
	if (!cur_ops->stall_dur || cur_ops->stall_dur() <= 0) {
	if (!cur_ops->stall_dur || cur_ops->stall_dur() <= 0 ||
	    cur_ops == &rcu_busted_ops) {
		VERBOSE_TOROUT_STRING("rcu_torture_fwd_prog_init: Disabled, unsupported by RCU flavor under test");
		return 0;
	}