From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@bugzilla.kernel.org Subject: [Bug 87591] New: Host will call trace when loading igbvf. Date: Mon, 03 Nov 2014 01:58:52 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from mail.kernel.org ([198.145.19.201]:59355 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752288AbaKCB65 (ORCPT ); Sun, 2 Nov 2014 20:58:57 -0500 Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4CCBC20254 for ; Mon, 3 Nov 2014 01:58:54 +0000 (UTC) Received: from bugzilla2.web.kernel.org (bugzilla2.web.kernel.org [172.20.200.52]) by mail.kernel.org (Postfix) with ESMTP id 3C964201CE for ; Mon, 3 Nov 2014 01:58:53 +0000 (UTC) Sender: kvm-owner@vger.kernel.org List-ID: https://bugzilla.kernel.org/show_bug.cgi?id=87591 Bug ID: 87591 Summary: Host will call trace when loading igbvf. Product: Virtualization Version: unspecified Kernel Version: 3.18.0-rc2 Hardware: All OS: Linux Tree: Mainline Status: NEW Severity: normal Priority: P1 Component: kvm Assignee: virtualization_kvm@kernel-bugs.osdl.org Reporter: chao.zhou@intel.com Regression: No Environment: ------------ Host OS (ia32/ia32e/IA64):ia32e Guest OS (ia32/ia32e/IA64):ia32e Guest OS Type (Linux/Windows):Linux kvm.git Commit:cac7f2429872d3733dc3f9915857b1691da2eb2f qemu.git Commit:3e9418e160cd8901c83a3c88967158084f5b5c03 Host Kernel Version:3.18.0-rc2 Hardware:Haswell_EP, Ivytown_EP Bug detailed description: -------------------------- after load igbvf, the host will call trace. note: this is a kernel bug kvm.git + qemu.git = result cac7f242 + 3e9418e1 = bad da01e614 + 3e9418e1 = good Reproduce steps: ---------------- 1.start up a host with kvm 2. rmmod igb 3. modprobe igb max_vfs=3 Current result: ---------------- host call trace after load igbvf Expected result: ---------------- host works fine after load igbvf Basic root-causing log: ---------------------- igb 0000:86:00.0: Enabling SR-IOV VFs using the module parameter is deprecated - please use the pci sysfs interface. igb 0000:86:00.0: irq 42 for MSI/MSI-X igb 0000:86:00.0: irq 43 for MSI/MSI-X igb 0000:86:00.0: irq 44 for MSI/MSI-X pci 0000:87:10.0: [8086:10ca] type 00 class 0x020000 BUG: unable to handle kernel NULL pointer dereference at 00000000000002c8 IP: [] pci_get_hp_params+0x36/0x164 PGD 1036cd2067 PUD 103c31b067 PMD 0 Oops: 0000 [#1] SMP Modules linked in: igb(+) nfsv3 nfs_acl auth_rpcgss oid_registry nfsv4 dns_resolver nfs fscache lockd sunrpc grace kvm_intel kvm bridge stp llc autofs4 8021q cpufreq_ondemand ipv6 joydev microcode pcspkr i2c_algo_bit i2c_i801 i2c_core ehci_pci ehci_hcd xhci_pci xhci_hcd ixgbe ptp pps_core hwmon mdio tpm_tis tpm ipmi_si ipmi_msghandler acpi_cpufreq button dm_mirror dm_region_hash dm_log dm_mod [last unloaded: igb] CPU: 4 PID: 7215 Comm: modprobe Not tainted 3.18.0-rc2 #2 Hardware name: Intel Corporation S2600WTT/S2600WTT, BIOS GRNDSDP1.TP2.0025.R02.1403131625 03/13/2014 task: ffff88103e5aa010 ti: ffff881036e60000 task.ti: ffff881036e60000 RIP: 0010:[] [] pci_get_hp_params+0x36/0x164 RSP: 0018:ffff881036e638a8 EFLAGS: 00010206 RAX: 0000000000000090 RBX: ffff881036e63918 RCX: 0000000000000000 RDX: ffff88203ecc0800 RSI: ffff881036e63918 RDI: ffff88103ed39000 RBP: ffff881036e63908 R08: ffff88203ecbd340 R09: 0000000000000008 R10: 0000000000000005 R11: 0000000000000000 R12: ffff88103ed39090 R13: ffff88103c202400 R14: ffff88103ee367c0 R15: 0000000000000000 FS: 00007f6dfaa3e700(0000) GS:ffff88107f480000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000000002c8 CR3: 0000001034ffa000 CR4: 00000000001407e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Stack: ffff88103ed39490 0000000000000097 ffff881036e638f8 ffffffff813e9af3 ffff881036e63944 ffffffff00000002 ffff881036e638e8 ffff88103ed39000 ffff88103ed39090 ffff88103c202400 ffff88103ee367c0 0000000000000000 Call Trace: [] ? pci_conf1_read+0xdc/0xe9 [] pci_configure_device+0x24/0x63 [] ? pci_bus_read_config_word+0x6e/0x7c [] pci_device_add+0x1f/0x114 [] virtfn_add.clone.1+0x223/0x328 [] sriov_enable+0x297/0x370 [] pci_enable_sriov+0x2e/0x30 [] igb_enable_sriov+0xdc/0x187 [igb] [] igb_pci_enable_sriov+0x11/0x2d [igb] [] igb_sw_init+0x173/0x19d [igb] [] igb_probe+0x2ee/0xb47 [igb] [] local_pci_probe+0x3a/0x81 [] pci_call_probe+0x83/0x8e [] ? pci_match_device+0xc7/0xe4 [] pci_device_probe+0x57/0x7d [] ? driver_sysfs_add+0x6e/0x93 [] really_probe+0x9c/0x1a9 [] driver_probe_device+0x32/0x4e [] __driver_attach+0x58/0x7c [] ? driver_probe_device+0x4e/0x4e [] bus_for_each_dev+0x53/0x91 [] driver_attach+0x19/0x1b [] bus_add_driver+0xd7/0x1cf [] driver_register+0x89/0xc1 [] ? 0xffffffffa03fe000 [] __pci_register_driver+0x46/0x48 [] igb_init_module+0x4f/0x51 [igb] [] do_one_initcall+0xe3/0x170 [] ? __vunmap+0xad/0xb8 [] do_init_module+0x2b/0x174 [] load_module+0x43e/0x569 [] ? do_init_module+0x174/0x174 [] ? module_sect_show+0x20/0x20 [] SyS_init_module+0x54/0x81 [] system_call_fastpath+0x12/0x17 Code: 54 53 48 89 f3 48 83 ec 38 48 8b 47 10 eb 4b 48 8b 50 10 48 85 d2 75 09 48 8b 80 10 01 00 00 eb 0a 48 8b 40 38 48 05 90 00 00 00 <48> 8b 80 38 02 00 00 48 85 c0 74 20 4c 8b 60 08 4d 85 e4 74 17 RIP [] pci_get_hp_params+0x36/0x164 RSP CR2: 00000000000002c8 ---[ end trace 846b555b0bbcaaf1 ]--- -- You are receiving this mail because: You are watching the assignee of the bug.