rcu: Provide optional RCU-reader exit delay for strict GPs
authorPaul E. McKenney <paulmck@kernel.org>
Fri, 7 Aug 2020 20:44:10 +0000 (13:44 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 25 Aug 2020 01:40:27 +0000 (18:40 -0700)
commit3d29aaf1ef992b5b4612fe32b9e6f517f7bba904
tree5ea92127640c2899da6805a887d25c9e249c5154
parent4e025f52a1e0e8ff4e303fa0a80e2061ccfa27d6
rcu: Provide optional RCU-reader exit delay for strict GPs

The goal of this series is to increase the probability of tools like
KASAN detecting that an RCU-protected pointer was used outside of its
RCU read-side critical section.  Thus far, the approach has been to make
grace periods and callback processing happen faster.  Another approach
is to delay the pointer leaker.  This commit therefore allows a delay
to be applied to exit from RCU read-side critical sections.

This slowdown is specified by a new rcutree.rcu_unlock_delay kernel boot
parameter that specifies this delay in microseconds, defaulting to zero.

Reported-by Jann Horn <jannh@google.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Documentation/admin-guide/kernel-parameters.txt
kernel/rcu/tree_plugin.h