All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dmitry Vyukov <dvyukov@google.com>
To: "Paolo Bonzini" <pbonzini@redhat.com>,
	"Radim Krčmář" <rkrcmar@redhat.com>,
	"KVM list" <kvm@vger.kernel.org>,
	LKML <linux-kernel@vger.kernel.org>,
	"Jim Mattson" <jmattson@google.com>,
	"Steve Rutherford" <srutherford@google.com>,
	"Xiao Guangrong" <guangrong.xiao@linux.intel.com>,
	haozhong.zhang@intel.com
Cc: syzkaller <syzkaller@googlegroups.com>
Subject: kvm: WARNING in nested_vmx_merge_msr_bitmap
Date: Tue, 28 Feb 2017 20:06:50 +0100	[thread overview]
Message-ID: <CACT4Y+amWzfisvsr=UsDrC5RUhP++tr-WQTHbux-K6M_ez9X-Q@mail.gmail.com> (raw)

Hello,

I've got the following WARNING while running syzkaller fuzzer:

------------[ cut here ]------------
WARNING: CPU: 0 PID: 7832 at arch/x86/kvm/vmx.c:9709
nested_vmx_merge_msr_bitmap arch/x86/kvm/vmx.c:9709 [inline]
WARNING: CPU: 0 PID: 7832 at arch/x86/kvm/vmx.c:9709
nested_get_vmcs12_pages+0xfb6/0x15c0 arch/x86/kvm/vmx.c:9640
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 7832 Comm: syz-executor1 Not tainted 4.10.0+ #229
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:15 [inline]
 dump_stack+0x2ee/0x3ef lib/dump_stack.c:51
 panic+0x1fb/0x412 kernel/panic.c:179
 __warn+0x1c4/0x1e0 kernel/panic.c:540
 warn_slowpath_null+0x2c/0x40 kernel/panic.c:583
 nested_vmx_merge_msr_bitmap arch/x86/kvm/vmx.c:9709 [inline]
 nested_get_vmcs12_pages+0xfb6/0x15c0 arch/x86/kvm/vmx.c:9640
 enter_vmx_non_root_mode arch/x86/kvm/vmx.c:10471 [inline]
 nested_vmx_run+0x6186/0xaab0 arch/x86/kvm/vmx.c:10561
 handle_vmlaunch+0x1a/0x20 arch/x86/kvm/vmx.c:7312
 vmx_handle_exit+0xfc0/0x3f00 arch/x86/kvm/vmx.c:8526
 vcpu_enter_guest arch/x86/kvm/x86.c:6982 [inline]
 vcpu_run arch/x86/kvm/x86.c:7044 [inline]
 kvm_arch_vcpu_ioctl_run+0x1418/0x4840 arch/x86/kvm/x86.c:7205
 kvm_vcpu_ioctl+0x673/0x1120 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2570
sctp: [Deprecated]: syz-executor2 (pid 7865) Use of int in max_burst
socket option.
Use struct sctp_assoc_value instead
 vfs_ioctl fs/ioctl.c:43 [inline]
 do_vfs_ioctl+0x1bf/0x1790 fs/ioctl.c:683
 SYSC_ioctl fs/ioctl.c:698 [inline]
 SyS_ioctl+0x8f/0xc0 fs/ioctl.c:689
 entry_SYSCALL_64_fastpath+0x1f/0xc2
9pnet_virtio: no channels available for device ./bus
RIP: 0033:0x4458d9
RSP: 002b:00007f248b1abb58 EFLAGS: 00000286 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 000000000000001b RCX: 00000000004458d9
RDX: 0000000000000000 RSI: 000000000000ae80 RDI: 000000000000001b
RBP: 00000000006dfcd0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000286 R12: 00000000007080a8
R13: 000000000000001a R14: 000000000000001b R15: 00000000201b3000


If I am reading this correctly, failure to map msr bitmap is trivially
trigger-able by guest (specify an invalid address?) and thus should
not be a warning. The case is already handled by disabling
acceleration. So can we remove the warning? or replace with pr_err?

             reply	other threads:[~2017-02-28 20:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-28 19:06 Dmitry Vyukov [this message]
2017-02-28 21:07 ` kvm: WARNING in nested_vmx_merge_msr_bitmap Jim Mattson
2017-03-01 19:08   ` Radim Krčmář

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CACT4Y+amWzfisvsr=UsDrC5RUhP++tr-WQTHbux-K6M_ez9X-Q@mail.gmail.com' \
    --to=dvyukov@google.com \
    --cc=guangrong.xiao@linux.intel.com \
    --cc=haozhong.zhang@intel.com \
    --cc=jmattson@google.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=rkrcmar@redhat.com \
    --cc=srutherford@google.com \
    --cc=syzkaller@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.