aboutsummaryrefslogtreecommitdiffstats
path: root/samples/ftrace/sample-trace-array.c
diff options
context:
space:
mode:
authorMasami Hiramatsu <[email protected]>2020-05-12 08:02:56 +0000
committerSteven Rostedt (VMware) <[email protected]>2020-06-17 01:21:01 +0000
commit1a0aa991a6274161c95a844c58cfb801d681eb59 (patch)
treea90f727b5b0b1406ffbc7ae50cc90ec1c0bb4f2e /samples/ftrace/sample-trace-array.c
parentkprobes: Use non RCU traversal APIs on kprobe_tables if possible (diff)
downloadkernel-1a0aa991a6274161c95a844c58cfb801d681eb59.tar.gz
kernel-1a0aa991a6274161c95a844c58cfb801d681eb59.zip
kprobes: Fix to protect kick_kprobe_optimizer() by kprobe_mutex
In kprobe_optimizer() kick_kprobe_optimizer() is called without kprobe_mutex, but this can race with other caller which is protected by kprobe_mutex. To fix that, expand kprobe_mutex protected area to protect kick_kprobe_optimizer() call. Link: http://lkml.kernel.org/r/158927057586.27680.5036330063955940456.stgit@devnote2 Fixes: cd7ebe2298ff ("kprobes: Use text_poke_smp_batch for optimizing") Cc: Ingo Molnar <[email protected]> Cc: "Gustavo A . R . Silva" <[email protected]> Cc: Anders Roxell <[email protected]> Cc: "Naveen N . Rao" <[email protected]> Cc: Anil S Keshavamurthy <[email protected]> Cc: David Miller <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Ziqian SUN <[email protected]> Cc: [email protected] Signed-off-by: Masami Hiramatsu <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'samples/ftrace/sample-trace-array.c')
0 files changed, 0 insertions, 0 deletions