]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
genirq/cpuhotplug: Add sanity check for effective affinity mask
authorThomas Gleixner <tglx@linutronix.de>
Mon, 9 Oct 2017 10:47:24 +0000 (12:47 +0200)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 19 Oct 2017 14:49:42 +0000 (09:49 -0500)
commit2b1789339dcf0523246c7924d2119ceb27ee528b
tree57c5f93629c36c9ae470f5f96394dedadca1f0b9
parentd738e29e4e705258f3353c76e75d6da015ef74fa
genirq/cpuhotplug: Add sanity check for effective affinity mask

BugLink: http://bugs.launchpad.net/bugs/1724669
commit 60b09c51bb4fb46e2331fdbb39f91520f31d35f7 upstream.

The effective affinity mask handling has no safety net when the mask is not
updated by the interrupt chip or the mask contains offline CPUs.

If that happens the CPU unplug code fails to migrate interrupts.

Add sanity checks and emit a warning when the mask contains only offline
CPUs.

Fixes: 415fcf1a2293 ("genirq/cpuhotplug: Use effective affinity mask")
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Christoph Hellwig <hch@lst.de>
Link: http://lkml.kernel.org/r/alpine.DEB.2.20.1710042208400.2406@nanos
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
kernel/irq/cpuhotplug.c