Merge "genirq: Don't allow user space to set IRQ affinity to isolated CPUs"

This commit is contained in:
Linux Build Service Account 2017-07-06 20:07:11 -07:00 • committed by Gerrit - the friendly Code Review server
commit 0ff3f2c2af

View file

@ -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