kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stas Sergeev <stsp@list.ru>
To: kvm@vger.kernel.org
Cc: Stas Sergeev <stsp@users.sourceforge.net>,
	Linux kernel <linux-kernel@vger.kernel.org>
Subject: kvm: repeatable kernel crash with Athlon II cpu
Date: Tue, 29 Mar 2016 18:22:25 +0300	[thread overview]
Message-ID: <56FA9DB1.4060704@list.ru> (raw)

Hello.

I've been running dosemu and found out that it hangs
or reboots one of my PCs. This happens with any fedora-23
kernels and hand-compiled kernels. The latest I tried, were:
4.4.6-300.fc23.x86_64
4.5.0-rc6

I tried to put the debug printfs into dosemu, and it seems
the crash happens on KVM_RUN ioctl, but of course the one
can't say for sure when an instant reboot happens. Yet if
I disable the KVM use, or try on a different CPU, there is
no crash too, so I am pretty sure it is the KVM bug.

The CPU on which the problem happens:
AMD Athlon(tm) II X2 245 Processor

The CPUs on which the problem doesn't happen:
AMD FX 8350
Intel(R) Core(TM) i7-5500U CPU @ 2.40GHz

I've set up the test-case here:
https://github.com/stsp/dosemu2/tree/bug

After checking out this branch, you need to get the file
c_drive/c.tar.gz
and unpack it into ~/.dosemu/drives so that ~/.dosemu/drives/c
exists.
After that you need to build and run dosemu.
Make sure to install slang-devel first, so that it can work
on a text-console (kms or non-kms).
Then run dosemu. Dos Navigator should load. Hit Alt-x to exit,
then Enter to confirm. At this point the host machine reboots,
or, if there is a different CPU - dosemu just exits.
The test must be repeated 2-3 times to make sure, but in most
cases it works from the first time.

Hope someone can find such an old CPU an reproduce the problem.
Please let me know what info should I provide or what debugging
to do to help getting that fixed.

             reply	other threads:[~2016-03-29 15:22 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-29 15:22 Stas Sergeev [this message]
2016-03-29 15:37 ` kvm: repeatable kernel crash with Athlon II cpu Paolo Bonzini
2016-03-29 16:08   ` Stas Sergeev
2016-03-29 16:27     ` Paolo Bonzini
2016-03-29 17:10       ` Stas Sergeev
2016-03-29 17:13         ` Paolo Bonzini
2016-03-30 13:28           ` Stas Sergeev
2016-03-30 14:10             ` Paolo Bonzini
2016-03-31 13:24           ` Stas Sergeev

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=56FA9DB1.4060704@list.ru \
    --to=stsp@list.ru \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=stsp@users.sourceforge.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).