]> git.baikalelectronics.ru Git - kernel.git/commit
kernel/irq/proc.c: unprotected iteration over the IRQ action list in name_unique()
authorDmitry Adamushko <dmitry.adamushko@gmail.com>
Tue, 8 May 2007 07:27:31 +0000 (00:27 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 8 May 2007 18:15:05 +0000 (11:15 -0700)
commit75f0e0285826256923e5eb66deef9f5dcd0c51ac
tree5a9fb2c9531bec148f21fc499d49493b5576e79c
parent083fdcf5254f7c77b3d80fd8217fd9be4b88539d
kernel/irq/proc.c: unprotected iteration over the IRQ action list in name_unique()

setup_irq() releases a desc->lock before calling register_handler_proc(), so
the iteration over the IRQ action list is not protected.

(akpm: the check itself is still racy, but at least it probably won't oops
now).

Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/irq/proc.c