diff options
author | Jason Baron | 2010-10-01 23:23:48 +0200 |
---|---|---|
committer | Steven Rostedt | 2010-10-28 15:17:40 +0200 |
commit | 91bad2f8d3057482b9afb599f14421b007136960 (patch) | |
tree | ea5e09e74107593dcfc192c65c1395ed22674df4 /scripts | |
parent | jump label: Fix module __init section race (diff) | |
download | kernel-qcow2-linux-91bad2f8d3057482b9afb599f14421b007136960.tar.gz kernel-qcow2-linux-91bad2f8d3057482b9afb599f14421b007136960.tar.xz kernel-qcow2-linux-91bad2f8d3057482b9afb599f14421b007136960.zip |
jump label: Fix deadlock b/w jump_label_mutex vs. text_mutex
register_kprobe() downs the 'text_mutex' and then calls
jump_label_text_reserved(), which downs the 'jump_label_mutex'.
However, the jump label code takes those mutexes in the reverse
order.
Fix by requiring the caller of jump_label_text_reserved() to do
the jump label locking via the newly added: jump_label_lock(),
jump_label_unlock(). Currently, kprobes is the only user
of jump_label_text_reserved().
Reported-by: Ingo Molnar <mingo@elte.hu>
Acked-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Signed-off-by: Jason Baron <jbaron@redhat.com>
LKML-Reference: <759032c48d5e30c27f0bba003d09bffa8e9f28bb.1285965957.git.jbaron@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions