linux/kernel/irq
Matt Redfearn 4589f450fb genirq: Dont allow affinity mask to be updated on IPIs
The IPI domain re-purposes the IRQ affinity to signify the mask of CPUs
that this IPI will deliver to. This must not be modified before the IPI
is destroyed again, so set the IRQ_NO_BALANCING flag to prevent the
affinity being overwritten by setup_affinity().

Without this, if an IPI is reserved for a single target CPU, then
allocated using __setup_irq(), the affinity is overwritten with
cpu_online_mask. When ipi_destroy() is subsequently called on a
multi-cpu system, it will attempt to free cpumask_weight() IRQs
that were never allocated, and crash.

Fixes: d17bf24e69 ("genirq: Add a new generic IPI reservation code to irq core")
Signed-off-by: Matt Redfearn <matt.redfearn@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: jason@lakedaemon.net
Cc: marc.zyngier@arm.com
Cc: ralf@linux-mips.org
Cc: Qais Yousef <qsyousef@gmail.com>
Cc: lisa.parratt@imgtec.com
Link: http://lkml.kernel.org/r/1461229712-13057-1-git-send-email-matt.redfearn@imgtec.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2016-04-21 12:05:15 +02:00
..
Kconfig genirq: Add GENERIC_IRQ_IPI Kconfig symbol 2016-02-25 10:56:55 +01:00
Makefile genirq: Add a new generic IPI reservation code to irq core 2016-02-25 10:56:56 +01:00
autoprobe.c
chip.c genirq: Export IRQ functions for module use 2016-03-10 16:00:35 +01:00
cpuhotplug.c
debug.h
devres.c
dummychip.c
generic-chip.c
handle.c genirq: Use a common macro to go through the actions list 2016-02-15 00:07:34 +01:00
internals.h Merge branch 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2016-03-15 12:48:48 -07:00
ipi.c genirq: Dont allow affinity mask to be updated on IPIs 2016-04-21 12:05:15 +02:00
irqdesc.c genirq: Add default affinity mask command line option 2016-02-08 15:03:42 +01:00
irqdomain.c genirq: Export IRQ functions for module use 2016-03-10 16:00:35 +01:00
manage.c kernel/...: convert pr_warning to pr_warn 2016-03-22 15:36:02 -07:00
migration.c
msi.c PCI changes for the v4.5 merge window: 2016-01-21 11:52:16 -08:00
pm.c
proc.c genirq: Use a common macro to go through the actions list 2016-02-15 00:07:34 +01:00
resend.c
settings.h
spurious.c genirq: Use a common macro to go through the actions list 2016-02-15 00:07:34 +01:00