Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758961AbYB1KZZ (ORCPT ); Thu, 28 Feb 2008 05:25:25 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752133AbYB1KZP (ORCPT ); Thu, 28 Feb 2008 05:25:15 -0500 Received: from rv-out-0910.google.com ([209.85.198.187]:34956 "EHLO rv-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751291AbYB1KZO (ORCPT ); Thu, 28 Feb 2008 05:25:14 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=c+4yyUSHdY/FjqkFXRpbvn1TbeQsOkQubQ6IhsfhgsLD0OefiIr13EwdBozc80bhAzMNYyII5VzNt9Xcs1+q/3e3/sfdG9YYiJ6rdMJsaK/vkQKX6YcOO8NtqpTBooRUUSxXnEEhvVxTkfHgLKfEmsI0ZrRmgeQiwrb5Qm5TakI= Message-ID: Date: Thu, 28 Feb 2008 11:25:13 +0100 From: "Zdenek Kabelac" To: "Kernel development list" Subject: KVM & Qemu crashed with infinite recursive kernel loop in the guest MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3229 Lines: 70 Hi While testing something inside the Qemu I've accidentally created infinite fast recursive loop with locked IRQ that instead of deadlocking guest kernel inside Qemu actually caused some troubles to the hosting system. (but the system survived) Using 64bit kernels and git 2.6.25-rc3 ------------[ cut here ]------------ WARNING: at arch/x86/kvm/x86.c:158 kvm_queue_exception_e+0x61/0x70 [kvm]() Modules linked in: loop tun i915 drm ipt_MASQUERADE iptable_nat nf_nat nf_conntrack_ipv4 xt_s tate nf_conntrack ipt_REJECT xt_tcpudp iptable_filter ip_tables x_tables bridge llc nfsd lockd nfs_acl auth_rpcgss exportfs autofs4 sunrpc bin fmt_misc dm_mirror dm_multipath dm_mod uinput kvm_intel kvm snd_hda_intel snd_seq_oss snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss sn d_mixer_oss snd_pcm mmc_block arc4 ecb crypto_blkcipher cryptomgr sr_mod snd_timer crypto_algapi sdhci i2c_i801 cdrom snd psmouse rtc_cmos rtc _core serio_raw iwl3945 mac80211 cfg80211 soundcore iTCO_wdt iTCO_vendor_support e1000e snd_page_alloc ac intel_agp thinkpad_acpi hwmon backli ght rtc_lib i2c_core mmc_core evdev nvram button uhci_hcd ohci_hcd ehci_hcd usbcore [last unloaded: battery] Pid: 1856, comm: qemu-kvm Not tainted 2.6.25-rc3 #85 Call Trace: [] warn_on_slowpath+0x5f/0x90 [] ? :kvm:gfn_to_hva+0x11/0x90 [] ? :kvm:kvm_read_guest_page+0x62/0x70 [] ? __down_read_trylock+0x20/0x60 [] ? :kvm:kvm_read_guest+0x48/0x90 [] ? __down_read_trylock+0x20/0x60 [] ? :kvm:paging64_walk_addr+0x180/0x320 [] :kvm:kvm_queue_exception_e+0x61/0x70 [] :kvm:kvm_inject_page_fault+0x38/0x60 [] :kvm:paging64_page_fault+0x27e/0x4d0 [] ? :kvm:emulator_write_emulated+0x70/0x90 [] ? :kvm:x86_emulate_insn+0x3e2/0x4dd0 [] ? :kvm_intel:vcpu_put_rsp_rip+0x2e/0x40 [] ? :kvm_intel:vmx_set_rflags+0x25/0x30 [] :kvm:kvm_mmu_page_fault+0x1a/0xb0 [] :kvm_intel:handle_exception+0x1e5/0x280 [] :kvm_intel:kvm_handle_exit+0x75/0xc0 [] :kvm:kvm_arch_vcpu_ioctl_run+0x286/0x760 [] :kvm:kvm_vcpu_ioctl+0x38e/0x3a0 [] ? mutex_unlock+0x9/0x10 [] ? generic_file_aio_write+0x74/0xd0 [] ? ext3_file_write+0x26/0xc0 [] ? do_sync_write+0xf1/0x140 [] ? :kvm:kvm_vm_ioctl+0x85/0x220 [] ? dnotify_parent+0x3c/0xa0 [] vfs_ioctl+0x31/0xa0 [] do_vfs_ioctl+0x283/0x2f0 [] sys_ioctl+0x99/0xa0 [] system_call_after_swapgs+0x8a/0x8f And these were repeated in the log many many time possible even mixed with some different back traces - but this should be the primary reason. Zdenek -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/