diff options
author | 2005-09-30 11:59:20 -0700 | |
---|---|---|
committer | 2005-09-30 12:41:20 -0700 | |
commit | 2dd960d66bc12b6b206e63104636514e5da0ddb7 (patch) | |
tree | 07fc074809ad2028891201f10b0279d3280da5e6 /drivers/i2c/i2c-dev.c | |
parent | [PATCH] ohci1394: less noise in dmesg (diff) | |
download | wireguard-linux-2dd960d66bc12b6b206e63104636514e5da0ddb7.tar.xz wireguard-linux-2dd960d66bc12b6b206e63104636514e5da0ddb7.zip |
[PATCH] utilization of kprobe_mutex is incorrect on x86_64
The up()/down() orders are incorrect in arch/x86_64/kprobes.c file.
kprobe_mutext is used to protect the free kprobe instruction slot list.
arch_prepare_kprobe applies for a slot from the free list, and
arch_remove_kprobe returns a slot to the free list. The incorrect up()/down()
orders to operate on kprobe_mutex fail to protect the free list. If 2 threads
try to get/return kprobe instruction slot at the same time, the free slot list
might be broken, or a free slot might be applied by 2 threads.
Signed-off-by: Zhang Yanmin <Yanmin.zhang@intel.com>
Cc: Andi Kleen <ak@muc.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/i2c/i2c-dev.c')
0 files changed, 0 insertions, 0 deletions