rcu: Fix rcu_dynticks_curr_cpu_in_eqs() vs noinstr
authorPeter Zijlstra <peterz@infradead.org>
Tue, 28 Sep 2021 08:40:22 +0000 (10:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Nov 2021 18:16:30 +0000 (19:16 +0100)
commitd846b69dc7ffca2042428cd46b323fed4ce6a801
tree677357829048251a66fadf623d39fc2dd65ae2c3
parentfa1af3cb0e47aa0a7abe2c179dde07011465e29c
rcu: Fix rcu_dynticks_curr_cpu_in_eqs() vs noinstr

[ Upstream commit 74aece72f95f399dd29363669dc32a1344c8fab4 ]

  vmlinux.o: warning: objtool: rcu_nmi_enter()+0x36: call to __kasan_check_read() leaves .noinstr.text section

noinstr cannot have atomic_*() functions in because they're explicitly
annotated, use arch_atomic_*().

Fixes: 2be57f732889 ("rcu: Weaken ->dynticks accesses and updates")
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/rcu/tree.c