diff --git a/kernel/notifier.c b/kernel/notifier.c index ae9fc7cc360ebea6088db4ae0206e452d856214b..980e4330fb596d8acc54eee45afcd372e8e9e82e 100644 --- a/kernel/notifier.c +++ b/kernel/notifier.c @@ -544,6 +544,8 @@ int notrace notify_die(enum die_val val, const char *str, .signr = sig, }; + rcu_lockdep_assert(rcu_is_watching(), + "notify_die called but RCU thinks we're quiescent"); return atomic_notifier_call_chain(&die_chain, val, &args); } NOKPROBE_SYMBOL(notify_die);