]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/irq: Protect smp_cleanup_move
authorThomas Gleixner <tglx@linutronix.de>
Sun, 2 Aug 2015 20:38:23 +0000 (20:38 +0000)
committerChuck Anderson <chuck.anderson@oracle.com>
Tue, 22 Aug 2017 15:43:01 +0000 (08:43 -0700)
commit22daeb9d69a506b6cd8bed0e23c36f53b6999dae
tree9b629056fcfde9cf96fe96f9928c30026ea458d2
parent5988f831f57690ecd56317a56a81833b5777f25e
x86/irq: Protect smp_cleanup_move

smp_cleanup_move fiddles without protection in the interrupt
descriptors and the vector array. A concurrent irq setup/teardown or
affinity setting can pull the rug under that operation.

Add proper locking.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Jiang Liu <jiang.liu@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Link: http://lkml.kernel.org/r/20150802203609.222975294@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
(cherry picked from commit df54c4934e030e73cb6a7bd6713f697350dabd0b)

Orabug: 25677661

Signed-off-by: Ethan Zhao <ethan.zhao@oracle.com>
Reviewed-by: Jack vogel <jack.vogel@oracle.com>
Conflicts:
arch/x86/kernel/apic/vector.c
arch/x86/kernel/apic/vector.c