aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpi-pow.c
diff options
context:
space:
mode:
authorHeiko Carstens <[email protected]>2016-11-03 12:09:24 +0000
committerMartin Schwidefsky <[email protected]>2016-11-08 09:29:44 +0000
commit7f8d61f005228fc48e6e2ca3c9af3302cd4870af (patch)
treef3eb2f26a65bf6c212819af6cd3aa9215d3078a1 /lib/mpi/mpi-pow.c
parents390/hypfs: Use get_free_page() instead of kmalloc to ensure page alignment (diff)
downloadkernel-7f8d61f005228fc48e6e2ca3c9af3302cd4870af.tar.gz
kernel-7f8d61f005228fc48e6e2ca3c9af3302cd4870af.zip
percpu: use notrace variant of preempt_disable/preempt_enable
Commit 345ddcc882d8 ("ftrace: Have set_ftrace_pid use the bitmap like events do") added a couple of this_cpu_read calls to the ftrace code. On x86 this is not a problem, since it has single instructions to read percpu data. Other architectures which use the generic variant now have additional preempt_disable and preempt_enable calls in the core ftrace code. This may lead to recursive calls and in result to a dead machine, e.g. if preemption and debugging options are enabled. To fix this use the notrace variant of preempt_disable and preempt_enable within the generic percpu code. Reported-and-bisected-by: Sebastian Ott <[email protected]> Tested-by: Sebastian Ott <[email protected]> Fixes: 345ddcc882d8 ("ftrace: Have set_ftrace_pid use the bitmap like events do") Signed-off-by: Heiko Carstens <[email protected]> Acked-by: Steven Rostedt <[email protected]> Signed-off-by: Martin Schwidefsky <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-pow.c')
0 files changed, 0 insertions, 0 deletions