Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757318AbcC2PWf (ORCPT ); Tue, 29 Mar 2016 11:22:35 -0400 Received: from smtp28.mail.ru ([94.100.181.183]:59672 "EHLO smtp28.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751842AbcC2PWd (ORCPT ); Tue, 29 Mar 2016 11:22:33 -0400 To: kvm@vger.kernel.org From: Stas Sergeev Subject: kvm: repeatable kernel crash with Athlon II cpu Cc: Stas Sergeev , Linux kernel Message-ID: <56FA9DB1.4060704@list.ru> Date: Tue, 29 Mar 2016 18:22:25 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Mras: Ok Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1475 Lines: 40 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.