Skip to content
Snippets Groups Projects
Commit d6b5fc6d authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Yang Yingliang
Browse files

genirq: Add protection against unsafe usage of generic_handle_irq()


mainline inclusion
from mainline-5.7
commit c16816ac
category: bugfix
bugzilla: NA
CVE: NA

-------------------------------------------------

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 avatarLiao Chang <liaochang1@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent b8ac39c4
No related branches found
No related tags found
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment