]> git.baikalelectronics.ru Git - kernel.git/commit
genirq: NULL struct irq_desc's member 'name' in dynamic_irq_cleanup()
authorDean Nelson <dcn@sgi.com>
Sat, 18 Oct 2008 23:06:56 +0000 (16:06 -0700)
committerIngo Molnar <mingo@elte.hu>
Tue, 21 Oct 2008 13:59:21 +0000 (15:59 +0200)
commit7c29b6fcf68fce148b1b36fb47b4be703d741a16
treeac5149f718d8c6c0692daa973632f3538253c31c
parent3e0c4f4f52e29ca222070f4b3d7c30f87275d78a
genirq: NULL struct irq_desc's member 'name' in dynamic_irq_cleanup()

If the member 'name' of the irq_desc structure happens to point to a
character string that is resident within a kernel module, problems ensue
if that module is rmmod'd (at which time dynamic_irq_cleanup() is called)
and then later show_interrupts() is called by someone.

It is also not a good thing if the character string resided in kmalloc'd
space that has been kfree'd (after having called dynamic_irq_cleanup()).
dynamic_irq_cleanup() fails to NULL the 'name' member and
show_interrupts() references it on a few architectures (like h8300, sh and
x86).

Signed-off-by: Dean Nelson <dcn@sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/irq/chip.c