]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerRadim Krčmář <rkrcmar@redhat.com>
Tue, 6 Jun 2017 12:43:16 +0000 (14:43 +0200)
commit165570541ec9d8befba89e8946a5d6f98b22097f
tree99fe3f8e3ff76c4837987b5c3d49c26a1b59a697
parente9e02ea9c2ec5186bb77a8d5bc3b7bee407a45bb
kvm: async_pf: fix rcu_irq_enter() with irqs enabled

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>
Cc: stable@vger.kernel.org
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>
arch/x86/kernel/kvm.c