]> git.hungrycats.org Git - linux/commit
[PATCH] protect 'action' in show_interrupts
authorAndrew Morton <akpm@digeo.com>
Sat, 8 Mar 2003 11:28:10 +0000 (03:28 -0800)
committerJames Bottomley <jejb@raven.il.steeleye.com>
Sat, 8 Mar 2003 11:28:10 +0000 (03:28 -0800)
commitac84c974207dfc5769211cbf9b31a13353bedc2b
tree036ca1944ed457ad540547370ce3a47ce31b0bc4
parentf6da87caaefffe786e83ca23af7390d7b25456ed
[PATCH] protect 'action' in show_interrupts

Patch from Zwane Mwaikambo <zwane@linuxpower.ca>

On SMP or preemptible kernels, every instance of show_interrupts() is oopsily
racy wrt request_irq() and free_irq().

Fix that up by taking the irq_desc_t's lock while walking the action list.
22 files changed:
arch/alpha/kernel/irq.c
arch/arm/kernel/irq.c
arch/cris/kernel/irq.c
arch/i386/kernel/irq.c
arch/ia64/kernel/irq.c
arch/mips/baget/irq.c
arch/mips/dec/irq.c
arch/mips/ite-boards/generic/irq.c
arch/mips/kernel/irq.c
arch/mips/kernel/old-irq.c
arch/mips/mips-boards/atlas/atlas_int.c
arch/mips/philips/nino/irq.c
arch/mips64/mips-boards/atlas/atlas_int.c
arch/mips64/mips-boards/malta/malta_int.c
arch/mips64/sgi-ip22/ip22-int.c
arch/mips64/sgi-ip27/ip27-irq.c
arch/ppc/kernel/irq.c
arch/ppc64/kernel/irq.c
arch/sh/kernel/irq.c
arch/sparc/kernel/irq.c
arch/v850/kernel/irq.c
arch/x86_64/kernel/irq.c