Skip to content
Commit 0bedc395 authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Paul Gortmaker
Browse files

genirq: Add protection against unsafe usage of generic_handle_irq()



commit c16816ac upstream.

In general calling generic_handle_irq() with interrupts disabled from non
interrupt context is harmless. For some interrupt controllers like the x86
trainwrecks this is outright dangerous as it might corrupt state if an
interrupt affinity change is pending.

Add infrastructure which allows to mark interrupts as unsafe and catch such
usage in generic_handle_irq().

Reported-by: default avatar <sathyanarayanan.kuppuswamy@linux.intel.com>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Acked-by: default avatarMarc Zyngier <maz@kernel.org>
Link: https://lkml.kernel.org/r/20200306130623.590923677@linutronix.de


Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent 78747ef1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment