[vfio-users] Unbind Vfio Passthrough = general protection fault

nahoxou at netcourrier.com nahoxou at netcourrier.com
Mon Sep 21 10:26:50 UTC 2015


I get 2 different kernel errors when unbind card with same config.

2:
[ 1533.266175] device tap0 entered promiscuous mode
[ 1533.266200] br0: port 5(tap0) entered forwarding state
[ 1533.266218] br0: port 5(tap0) entered forwarding state
[ 1534.153667] vfio_ecap_init: 0000:01:00.0 hiding ecap 0x1e at 0x258
[ 1534.153681] vfio_ecap_init: 0000:01:00.0 hiding ecap 0x19 at 0x900
[ 1536.018420] kvm: zapping shadow pages for mmio generation wraparound
[ 1536.018515] kvm: zapping shadow pages for mmio generation wraparound
[ 1900.951781] br0: port 5(tap0) entered disabled state
[ 1900.952845] device tap0 left promiscuous mode
[ 1900.952848] br0: port 5(tap0) entered disabled state
[ 1918.035733] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=io+mem,decodes=io+mem:owns=none
[ 1918.069890] BUG: unable to handle kernel paging request at 0000100000000000
[ 1918.072021] IP: [<0000100000000000>] 0x100000000000
[ 1918.074387] PGD 0 
[ 1918.076565] Oops: 0010 [#1] SMP 
[ 1918.078831] Modules linked in: snd_hda_intel vhost_net vhost macvtap macvlan ufs qnx4 hfsplus hfs minix ntfs msdos jfs xfs cx8800 cx88_dvb cx8802 cx88_alsa cx88xx xt_nat veth xt_CHECKSUM xt_addrtype dm_thin_pool dm_persistent_data dm_bio_prison dm_bufio libcrc32c xt_tcpudp xt_multiport input_leds joydev cx22702 isl6421 iptable_filter iptable_mangle cx24116 ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_conntrack_ipv4 cx88_vp3054_i2c nf_defrag_ipv4 nf_nat_ipv4 videobuf2_dvb nf_nat dvb_core ip_tables snd_soc_wm8776 snd_soc_core snd_compress ac97_bus snd_pcm_dmaengine ir_xmp_decoder wm8775 ir_sharp_decoder ir_sanyo_decoder ir_lirc_codec ir_nec_decoder ir_mce_kbd_decoder ir_rc5_decoder ir_rc6_decoder ir_jvc_decoder ir_sony_decoder lirc_dev rc_hauppauge bridge stp tuner_simple llc tuner_types tda9887 tda8290 tuner tveeprom snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic videobuf2_dma_sg videobuf2_memops rc_core videobuf2_core snd_hda_codec v4l2_common videodev snd_seq_midi snd_seq_midi_event snd_rawmidi snd_hda_core snd_hwdep media snd_seq snd_pcm snd_seq_device snd_timer snd soundcore intel_rapl iosf_mbi x86_pkg_temp_thermal dm_multipath bnep rfcomm mei_me lpc_ich bluetooth shpchp mei intel_powerclamp coretemp kvm_intel serio_raw mac_hid tpm_infineon 8250_fintek kvm parport_pc ppdev xt_iprange xt_conntrack nf_conntrack ipt_REJECT nf_reject_ipv4 xt_mark xt_NFQUEUE x_tables pci_stub vfio_pci vfio_virqfd vfio_iommu_type1 vfio hid_wiimote ff_memless lp parport nls_iso8859_1 btrfs xor raid6_pq drbg ansi_cprng dm_crypt dm_mirror dm_region_hash dm_log hid_generic crct10dif_pclmul crc32_pclmul i915 ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd psmouse i2c_algo_bit ahci drm_kms_helper libahci syscopyarea sysfillrect r8169 sysimgblt fb_sys_fops usbhid mii hid drm video fjes [last unloaded: snd_hda_intel]
[ 1918.098318] CPU: 5 PID: 512 Comm: win Tainted: G     U  W       4.2.0-040200-generic #201508301530
[ 1918.100605] Hardware name: Gigabyte Technology Co., Ltd. B85M-D3H/B85M-D3H, BIOS F14 09/19/2014
[ 1918.102703] task: ffff8801e7194600 ti: ffff8801a7bf8000 task.ti: ffff8801a7bf8000
[ 1918.104866] RIP: 0010:[<0000100000000000>]  [<0000100000000000>] 0x100000000000
[ 1918.106993] RSP: 0018:ffff8801a7bfbcb8  EFLAGS: 00010246
[ 1918.109151] RAX: 0000100000000000 RBX: ffff88023444a098 RCX: 0000000000000000
[ 1918.111367] RDX: 0000100000000000 RSI: ffff88023444a098 RDI: ffff88023444a098
[ 1918.113532] RBP: ffff8801a7bfbcd8 R08: ffffffff81f3e640 R09: 0000000000000001
[ 1918.115603] R10: ffffea0007db8b00 R11: ffffffff810cfbe9 R12: ffff88023444a148
[ 1918.117705] R13: 0000000000000004 R14: 0000000000000000 R15: ffffffffffffffed
[ 1918.119930] FS:  00007f97f7815740(0000) GS:ffff88023e340000(0000) knlGS:0000000000000000
[ 1918.122135] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1918.124464] CR2: 0000100000000000 CR3: 00000002321c8000 CR4: 00000000001406e0
[ 1918.126782] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 1918.129028] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 1918.131176] Stack:
[ 1918.133377]  ffffffff814fdb13 0000000000000008 ffff88023444a098 0000000000000004
[ 1918.135511]  ffff8801a7bfbd08 ffffffff814fe594 0000000000000004 ffff88023444a098
[ 1918.137717]  ffff88023444a148 0000000000000246 ffff8801a7bfbd38 ffffffff814fe65c
[ 1918.139868] Call Trace:
[ 1918.141951]  [<ffffffff814fdb13>] ? __rpm_callback+0x33/0x70
[ 1918.144053]  [<ffffffff814fe594>] rpm_idle+0x194/0x200
[ 1918.146091]  [<ffffffff814fe65c>] __pm_runtime_idle+0x5c/0x80
[ 1918.148051]  [<ffffffff813f483a>] pci_device_remove+0x7a/0xc0
[ 1918.149993]  [<ffffffff814f4806>] __device_release_driver+0x96/0x130
[ 1918.152039]  [<ffffffff814f48c3>] device_release_driver+0x23/0x30
[ 1918.153959]  [<ffffffff814f2aea>] unbind_store+0xba/0xe0
[ 1918.155795]  [<ffffffff814f1ff4>] drv_attr_store+0x24/0x30
[ 1918.157610]  [<ffffffff8126c82a>] sysfs_kf_write+0x3a/0x50
[ 1918.159577]  [<ffffffff8126bec0>] kernfs_fop_write+0x120/0x170
[ 1918.161535]  [<ffffffff811f1718>] __vfs_write+0x28/0xf0
[ 1918.163483]  [<ffffffff81352568>] ? apparmor_file_permission+0x18/0x20
[ 1918.165499]  [<ffffffff81316f6d>] ? security_file_permission+0x3d/0xc0
[ 1918.167391]  [<ffffffff810c0631>] ? percpu_down_read+0x21/0x50
[ 1918.169151]  [<ffffffff811f1dd9>] vfs_write+0xa9/0x190
[ 1918.171054]  [<ffffffff81065987>] ? __do_page_fault+0x1b7/0x430
[ 1918.172870]  [<ffffffff811f2ae6>] SyS_write+0x46/0xa0
[ 1918.174617]  [<ffffffff817b3136>] entry_SYSCALL_64_fastpath+0x16/0x75
[ 1918.176431] Code:  Bad RIP value.
[ 1918.178171] RIP  [<0000100000000000>] 0x100000000000
[ 1918.179930]  RSP <ffff8801a7bfbcb8>
[ 1918.181551] CR2: 0000100000000000
[ 1918.183314] ---[ end trace 0f3748c3a80ccd49 ]---


-----------------------------------------------------------------------------------------------------------------------------------


3:
[187867.000506] br0: port 6(tap0) entered forwarding state
[187867.000519] br0: port 6(tap0) entered forwarding state
[187867.154645] br0: port 6(tap0) entered disabled state
[187867.155690] device tap0 left promiscuous mode
[187867.155692] br0: port 6(tap0) entered disabled state
[187884.484558] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=io+mem,decodes=io+mem:owns=none
[188224.872805] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=io+mem,decodes=io+mem:owns=none
[188224.887719] BUG: unable to handle kernel paging request at 0000000000001000
[188224.887749] IP: [<0000000000001000>] 0x1000
[188224.887766] PGD 2094bb067 PUD 1d81d3067 PMD 0 
[188224.887786] Oops: 0010 [#1] SMP 
[188224.887801] Modules linked in: vhost_net vhost macvtap macvlan ufs qnx4 hfsplus hfs minix ntfs msdos jfs xfs arc4 md4 nls_utf8 cifs fscache udp_diag tcp_diag inet_diag nfnetlink_queue nfnetlink cx8800 cx88_dvb cx8802 tuner_simple tuner_types tda9887 tda8290 cx88_alsa cx88xx xt_nat veth xt_CHECKSUM xt_addrtype dm_thin_pool dm_persistent_data dm_bio_prison dm_bufio libcrc32c xt_tcpudp xt_multiport iptable_filter iptable_mangle ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat ip_tables bridge stp llc joydev input_leds snd_soc_wm8776 snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel snd_soc_core snd_hda_codec snd_hda_core snd_compress ac97_bus cx22702 snd_pcm_dmaengine isl6421 cx24116 cx88_vp3054_i2c ir_jvc_decoder videobuf2_dvb ir_rc5_decoder dvb_core ir_xmp_decoder wm8775 ir_lirc_codec ir_mce_kbd_decoder ir_nec_decoder ir_rc6_decoder lirc_dev ir_sony_decoder ir_sanyo_decoder ir_sharp_decoder rc_hauppauge tuner snd_hwdep snd_pcm tveeprom rc_core videobuf2_dma_sg snd_seq_midi snd_seq_midi_event snd_rawmidi videobuf2_memops intel_rapl videobuf2_core snd_seq iosf_mbi x86_pkg_temp_thermal intel_powerclamp coretemp snd_seq_device snd_timer v4l2_common kvm_intel kvm videodev snd dm_multipath media soundcore scsi_dh mei_me mei 8250_fintek lpc_ich mac_hid shpchp serio_raw tpm_infineon rfcomm bnep parport_pc ppdev xt_iprange xt_conntrack bluetooth nf_conntrack ipt_REJECT nf_reject_ipv4 xt_mark xt_NFQUEUE x_tables pci_stub vfio_pci vfio_virqfd vfio_iommu_type1 vfio hid_wiimote ff_memless lp parport nls_iso8859_1 btrfs xor raid6_pq drbg ansi_cprng dm_crypt dm_mirror dm_region_hash dm_log hid_generic i915 crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel aes_x86_64 lrw gf128mul glue_helper ablk_helper cryptd i2c_algo_bit drm_kms_helper psmouse usbhid drm ahci r8169 hid libahci mii video [last unloaded: cx88xx]
[188224.888465] CPU: 3 PID: 16696 Comm: win Tainted: G     U          4.2.0-040200-generic #201508301530
[188224.888489] Hardware name: Gigabyte Technology Co., Ltd. B85M-D3H/B85M-D3H, BIOS F14 09/19/2014
[188224.888512] task: ffff88005e78b700 ti: ffff88019d0cc000 task.ti: ffff88019d0cc000
[188224.888533] RIP: 0010:[<0000000000001000>]  [<0000000000001000>] 0x1000
[188224.888553] RSP: 0018:ffff88019d0cfc50  EFLAGS: 00010206
[188224.888569] RAX: 0000000000001000 RBX: ffff880234451098 RCX: 000000003db90d18
[188224.888589] RDX: 0000000080000001 RSI: ffff880233d41e10 RDI: ffff880234451098
[188224.888609] RBP: ffff88019d0cfc78 R08: 0000000000019be0 R09: ffff88023e2d9be0
[188224.888629] R10: ffffffff81397626 R11: ffffea0001436200 R12: 0000000000000000
[188224.888649] R13: ffffffffc01b3088 R14: 0000000000000053 R15: 00000000ffffffff
[188224.888669] FS:  00007fddfca24740(0000) GS:ffff88023e2c0000(0000) knlGS:0000000000000000
[188224.888691] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[188224.888708] CR2: 0000000000001000 CR3: 000000022f910000 CR4: 00000000001406e0
[188224.888728] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[188224.888748] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[188224.888768] Stack:
[188224.888777]  ffffffff814e4b6f ffff880234451098 ffffffffc01b3088 ffff8802344510f8
[188224.888803]  0000000000000000 ffff88019d0cfca8 ffffffff814e4f80 ffffffffc01b3088
[188224.888830]  0000000000000000 ffffffffc01b3088 ffffffff814e4ef0 ffff88019d0cfce8
[188224.888856] Call Trace:
[188224.888871]  [<ffffffff814e4b6f>] ? driver_probe_device+0xaf/0x430
[188224.888891]  [<ffffffff814e4f80>] __driver_attach+0x90/0xa0
[188224.888908]  [<ffffffff814e4ef0>] ? driver_probe_device+0x430/0x430
[188224.888926]  [<ffffffff814e2b1d>] bus_for_each_dev+0x5d/0x90
[188224.888943]  [<ffffffff814e466e>] driver_attach+0x1e/0x20
[188224.888964]  [<ffffffff813e3aad>] pci_add_dynid+0xad/0xd0
[188224.888981]  [<ffffffff813e3f22>] ? store_new_id+0xa2/0x1a0
[188224.888998]  [<ffffffff813e3fdd>] store_new_id+0x15d/0x1a0
[188224.889015]  [<ffffffff814e2884>] drv_attr_store+0x24/0x30
[188224.889033]  [<ffffffff812621ea>] sysfs_kf_write+0x3a/0x50
[188224.889050]  [<ffffffff81261880>] kernfs_fop_write+0x120/0x170
[188224.889069]  [<ffffffff811e9428>] __vfs_write+0x28/0xf0
[188224.889087]  [<ffffffff811ebf49>] ? __sb_start_write+0x49/0xf0
[188224.889107]  [<ffffffff8130af8d>] ? security_file_permission+0x3d/0xc0
[188224.889126]  [<ffffffff811e9b09>] vfs_write+0xa9/0x190
[188224.889143]  [<ffffffff811ea876>] SyS_write+0x46/0xa0
[188224.889161]  [<ffffffff812068af>] ? __close_fd+0x8f/0xb0
[188224.889181]  [<ffffffff817a8e32>] entry_SYSCALL_64_fastpath+0x16/0x75
[188224.889199] Code:  Bad RIP value.
[188224.889214] RIP  [<0000000000001000>] 0x1000
[188224.889228]  RSP <ffff88019d0cfc50>
[188224.889240] CR2: 0000000000001000
[188224.889253] ---[ end trace 10dd928270eb686a ]---



Tell me please If need more detail information.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/vfio-users/attachments/20150921/738ff0e8/attachment.htm>


More information about the vfio-users mailing list