diff options
| author | Linux Build Service Account <lnxbuild@quicinc.com> | 2017-07-06 23:41:22 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-07-06 23:41:22 -0700 |
| commit | e46fafb501980533c5d9331cca71697dba4dbbf6 (patch) | |
| tree | c3adadee33efff3fc97f104aa9a64a5604bdc6f1 /kernel | |
| parent | 4e361bef1f81e982800fb9538aab46e48f20c905 (diff) | |
| parent | 7d5479c9b78d7dab24a404feb759e8ebf43b0832 (diff) | |
Merge "genirq: Don't allow user space to set IRQ affinity to isolated CPUs"
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/irq/proc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/irq/proc.c b/kernel/irq/proc.c index a24c5b909047..b05509af0352 100644 --- a/kernel/irq/proc.c +++ b/kernel/irq/proc.c @@ -114,6 +114,11 @@ static ssize_t write_irq_affinity(int type, struct file *file, goto free_cpumask; } + if (cpumask_subset(new_value, cpu_isolated_mask)) { + err = -EINVAL; + goto free_cpumask; + } + /* * Do not allow disabling IRQs completely - it's a too easy * way to make the system unusable accidentally :-) At least |
