linux_dsm_epyc7002/arch/x86/kernel/apic
Seunghun Han e708e35ba6 x86/ioapic: Pass the correct data to unmask_ioapic_irq()
One of the rarely executed code pathes in check_timer() calls
unmask_ioapic_irq() passing irq_get_chip_data(0) as argument.

That's wrong as unmask_ioapic_irq() expects a pointer to the irq data of
interrupt 0. irq_get_chip_data(0) returns NULL, so the following
dereference in unmask_ioapic_irq() causes a kernel panic.

The issue went unnoticed in the first place because irq_get_chip_data()
returns a void pointer so the compiler cannot do a type check on the
argument. The code path was added for machines with broken configuration,
but it seems that those machines are either not running current kernels or
simply do not longer exist.

Hand in irq_get_irq_data(0) as argument which provides the correct data.

[ tglx: Rewrote changelog ]

Fixes: 4467715a44 ("x86/irq: Move irq_cfg.irq_2_pin into io_apic.c")
Signed-off-by: Seunghun Han <kkamagui@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: stable@vger.kernel.org
Link: http://lkml.kernel.org/r/1500369644-45767-1-git-send-email-kkamagui@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2017-07-20 10:28:10 +02:00
..
apic_flat_64.c x86/apic: Move cpumask and to core code 2017-06-22 18:21:22 +02:00
apic_noop.c x86/apic: Move cpumask and to core code 2017-06-22 18:21:22 +02:00
apic_numachip.c x86/apic: Move cpumask and to core code 2017-06-22 18:21:22 +02:00
apic.c Merge branch 'x86-timers-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2017-07-03 18:01:50 -07:00
bigsmp_32.c x86/apic: Move cpumask and to core code 2017-06-22 18:21:22 +02:00
htirq.c x86/htirq: Create named domain 2017-06-22 18:21:09 +02:00
hw_nmi.c kernel/watchdog: split up config options 2017-07-12 16:26:02 -07:00
io_apic.c x86/ioapic: Pass the correct data to unmask_ioapic_irq() 2017-07-20 10:28:10 +02:00
ipi.c x86/kernel: Audit and remove any unnecessary uses of module.h 2016-07-14 15:06:41 +02:00
Makefile kernel: add kcov code coverage 2016-03-22 15:36:02 -07:00
msi.c x86/msi: Create named irq domains 2017-06-22 18:21:11 +02:00
probe_32.c x86/apic: Move cpumask and to core code 2017-06-22 18:21:22 +02:00
probe_64.c x86/apic: Remove duplicated include from probe_64.c 2016-07-19 16:02:31 +02:00
vector.c Merge branch 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2017-07-03 16:50:31 -07:00
x2apic_cluster.c x86/apic: Implement effective irq mask update 2017-06-22 18:21:23 +02:00
x2apic_phys.c x86/apic: Move cpumask and to core code 2017-06-22 18:21:22 +02:00
x2apic_uv_x.c x86/apic: Add irq_data argument to apic->cpu_mask_to_apicid() 2017-06-22 18:21:22 +02:00