WSL2-Linux-Kernel/kernel/irq
Dean Nelson b6f3b7803a 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>
2008-10-21 15:59:21 +02:00
..
Makefile [PATCH] sort the devres mess out 2007-02-11 11:18:07 -08:00
autoprobe.c genirq: fix name space collision of nr_irqs in autoprobe.c 2008-10-16 16:53:30 +02:00
chip.c genirq: NULL struct irq_desc's member 'name' in dynamic_irq_cleanup() 2008-10-21 15:59:21 +02:00
devres.c kernel: explicitly include required header files under kernel/ 2008-04-29 08:06:04 -07:00
handle.c genirq: use iterators for irq_desc loops 2008-10-16 16:53:30 +02:00
internals.h irq: replace loop with nr_irqs with for_each_irq_desc 2008-10-16 16:52:33 +02:00
manage.c genirq: cleanup the sparseirq modifications 2008-10-16 16:53:29 +02:00
migration.c generic: sparse irqs: use irq_desc() together with dyn_array, instead of irq_desc[] 2008-10-16 16:52:29 +02:00
proc.c genirq: cleanup the sparseirq modifications 2008-10-16 16:53:29 +02:00
resend.c generic: sparse irqs: use irq_desc() together with dyn_array, instead of irq_desc[] 2008-10-16 16:52:29 +02:00
spurious.c genirq: cleanup the sparseirq modifications 2008-10-16 16:53:29 +02:00