Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stop_machine, rcu: Mark functions as notrace
Some architectures assume that the stopped CPUs don't make function calls to traceable functions when they are in the stopped state. See also commit cb9d7fd ("watchdog: Mark watchdog touch functions as notrace"). Violating this assumption causes kernel crashes when switching tracer on RISC-V. Mark rcu_momentary_dyntick_idle() and stop_machine_yield() notrace to prevent this. Fixes: 4ecf0a4 ("processor: get rid of cpu_relax_yield") Fixes: 366237e ("stop_machine: Provide RCU quiescent state in multi_cpu_stop()") Signed-off-by: Zong Li <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Tested-by: Atish Patra <[email protected]> Tested-by: Colin Ian King <[email protected]> Acked-by: Steven Rostedt (VMware) <[email protected]> Acked-by: Paul E. McKenney <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected]
- Loading branch information