• Paul E. McKenney's avatar
    rcutorture: Allow pointer leaks to test diagnostic code · d6855142
    Paul E. McKenney authored
    This commit adds an rcutorture.leakpointer module parameter that
    intentionally leaks an RCU-protected pointer out of the RCU read-side
    critical section and checks to see if the corresponding grace period
    has elapsed, emitting a WARN_ON_ONCE() if so.  This module parameter can
    be used to test facilities like CONFIG_RCU_STRICT_GRACE_PERIOD that end
    grace periods quickly.
    
    While in the area, also document rcutorture.irqreader, which was
    previously left out.
    
    Reported-by Jann Horn <jannh@google.com>
    Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
    d6855142
rcutorture.c 83 KB