Commit 4b50cb05 authored by Thomas Gleixner's avatar Thomas Gleixner Committed by Yang Yingliang
Browse files

genirq/debugfs: Add missing sanity checks to interrupt injection



mainline inclusion
from mainline-v5.6
commit a740a423
category: bugfix
bugzilla: 32425
CVE: NA

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

Interrupts cannot be injected when the interrupt is not activated and when
a replay is already in progress.

Fixes: 536e2e34 ("genirq/debugfs: Triggering of interrupts from userspace")
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Acked-by: default avatarMarc Zyngier <maz@kernel.org>
Link: https://lkml.kernel.org/r/20200306130623.500019114@linutronix.de


Signed-off-by: default avatarYuan Can <yuancan@huawei.com>
Reviewed-by: default avatarHanjun Guo <guohanjun@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 62834c28
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment