kvm: async_pf: fix rcu_irq_enter() with irqs enabled
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 26 Apr 2017 14:56:26 +0000 (16:56 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 2 Nov 2017 06:16:25 +0000 (07:16 +0100)
commitca58e3129147cd80996c9a7cde5faee28f9981ec
tree85cb638c48dd57add0b7f8f96fbf0749f5b6620e
parent28968bccd81010f0ab4c198849aaed6fa20658a3
kvm: async_pf: fix rcu_irq_enter() with irqs enabled

commit bbaf0e2b1c1b4f88abd6ef49576f0efb1734eae5 upstream.

native_safe_halt enables interrupts, and you just shouldn't
call rcu_irq_enter() with interrupts enabled.  Reorder the
call with the following local_irq_disable() to respect the
invariant.

Reported-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Tested-by: Wanpeng Li <wanpeng.li@hotmail.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
arch/x86/kernel/kvm.c