KVM: x86: degrade WARN to pr_warn_ratelimited
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 26 Jun 2019 12:16:13 +0000 (14:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Jul 2019 07:54:42 +0000 (09:54 +0200)
commit8b90c9801c063f6d500bd20ba9a60b127b888e2d
tree102c88a01046f757f21366fa8effae807dd6e1d5
parent3b851f87ba20ee8825af227f846feee85856a1ec
KVM: x86: degrade WARN to pr_warn_ratelimited

commit 3f16a5c318392cbb5a0c7a3d19dff8c8ef3c38ee upstream.

This warning can be triggered easily by userspace, so it should certainly not
cause a panic if panic_on_warn is set.

Reported-by: syzbot+c03f30b4f4c46bdf8575@syzkaller.appspotmail.com
Suggested-by: Alexander Potapenko <glider@google.com>
Acked-by: Alexander Potapenko <glider@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/x86.c