Skip to content
Commit 8ed00760 authored by Paul E. McKenney's avatar Paul E. McKenney
Browse files

srcu: Tighten cleanup_srcu_struct() GP checks



Currently, cleanup_srcu_struct() checks for a grace period in progress,
but it does not check for a grace period that has not yet started but
which might start at any time.  Such a situation could result in a
use-after-free bug, so this commit adds a check for a grace period that
is needed but not yet started to cleanup_srcu_struct().

Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 31231092
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment