]> err.no Git - linux-2.6/commit
[PATCH] oprofile: fix potential deadlock on oprofilefs_lock
authorJiri Kosina <jkosina@suse.cz>
Wed, 28 Mar 2007 16:12:34 +0000 (18:12 +0200)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 28 Mar 2007 20:58:02 +0000 (13:58 -0700)
commit4dfc896e90359df04c80da5ab08ec31e87846c43
tree1d68ae9c2e07c87f7cbc2f4b5c10d98a6c60a874
parent6faee84b006af55bab9908741dd76916c8450be2
[PATCH] oprofile: fix potential deadlock on oprofilefs_lock

nmi_cpu_setup() is called from hardirq context and acquires oprofilefs_lock.
alloc_event_buffer() and oprofilefs_ulong_from_user() acquire this lock
without disabling irqs, which could deadlock.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/oprofile/event_buffer.c
drivers/oprofile/oprofilefs.c