Kernel panic when running this kernel on Ubuntu 1604 on HyperV with Mellanox CX3 SR-IOV enabled. Could you please build a test kernel based on this one (test kernel 4.4.0-65): https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1667007 http://kernel.ubuntu.com/~jsalisbury/lp1667007/xenial/ [ 7.976040] Modules linked in: mlx4_core(+) pci_hyperv i2c_piix4 8250_fintek hyperv_fb hv_ballo on input_leds joydev serio_raw mac_hid ib_iser rdma_cm iw_cm ib_cm ib_sa ib_mad ib_core ib_addr is csi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi parport_pc ppdev lp parport autofs4 btrfs raid1 0 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear hid_generic hyperv_keyboard crct10dif_pclmul crc32_pclmul hid_hyperv hv_net vsc hv_storvsc hid scsi_transport_fc ghash_clmulni_intel hv_utils aesni_intel aes_x86_64 lrw gf128 mul glue_helper ablk_helper cryptd psmouse tulip pata_acpi hv_vmbus floppy fjes [ 7.976040] CPU: 0 PID: 668 Comm: systemd-udevd Tainted: G B D 4.4.0-64-generic #85~ lp1667527 [ 7.976041] Hardware name: Microsoft Corporation Virtual Machine/Virtual Machine, BIOS 090006 04/28/2016 [ 7.976042] 0000000000000286 0000000096836efa ffff8800f277f1e8 ffffffff813f8083 [ 7.976043] ffffea0003a87500 ffffffff81cd75a2 ffff8800f277f210 ffffffff811937ee [ 7.976043] ffffea0003a87540 ffff880107ffbf80 ffff8800f277f320 ffff8800f277f2d8 [ 7.976044] Call Trace: [ 7.976044] [] dump_stack+0x63/0x90 [ 7.976045] [] bad_page.part.68+0xae/0x100 [ 7.976046] [] get_page_from_freelist+0x516/0xa50 [ 7.976048] [] __alloc_pages_nodemask+0x159/0x2a0 [ 7.976049] [] alloc_pages_current+0x8c/0x110 [ 7.976050] [] __get_free_pages+0xe/0x40 [ 7.976051] [] __tlb_remove_page+0x54/0xa0 [ 7.976053] [] unmap_page_range+0x50e/0x7a0 [ 7.976054] [] unmap_single_vma+0x7d/0xe0 [ 7.976055] [] unmap_vmas+0x51/0xa0 [ 7.976056] [] exit_mmap+0xa7/0x170 [ 7.976057] [] mmput+0x57/0x130 [ 7.976058] [] do_exit+0x27a/0xb00 [ 7.976059] [] oops_end+0xa1/0xd0 [ 7.976060] [] die+0x4b/0x70 [ 7.976061] [] do_trap+0xb1/0x140 [ 7.976062] [] do_error_trap+0x89/0x110 [ 7.976063] [] ? kfree+0x147/0x150 [ 7.976064] [] ? dev_printk_emit+0x4e/0x70 [ 7.976068] [] ? mlx4_free_eq+0x11d/0x190 [mlx4_core] [ 7.976069] [] do_invalid_op+0x20/0x30 [ 7.976070] [] invalid_op+0x1e/0x30 [ 7.976074] [] ? mlx4_free_eq+0x11d/0x190 [mlx4_core] [ 7.976075] [] ? kfree+0x147/0x150 [ 7.976079] [] mlx4_free_eq+0x11d/0x190 [mlx4_core] [ 7.976083] [] mlx4_init_eq_table+0x2b2/0x630 [mlx4_core] [ 7.976087] [] mlx4_setup_hca+0x1f8/0x7a0 [mlx4_core] [ 7.976091] [] mlx4_load_one+0xb60/0x1680 [mlx4_core] [ 7.976095] [] mlx4_init_one+0x522/0x6c0 [mlx4_core] [ 7.976097] [] local_pci_probe+0x45/0xa0 [ 7.976098] [] pci_device_probe+0x103/0x150 [ 7.976099] [] driver_probe_device+0x222/0x4a0 [ 7.976100] [] __driver_attach+0x84/0x90 [ 7.976102] [] ? driver_probe_device+0x4a0/0x4a0 [ 7.976103] [] bus_for_each_dev+0x6c/0xc0 [ 7.976104] [] driver_attach+0x1e/0x20 [ 7.976105] [] bus_add_driver+0x1eb/0x280 [ 7.976105] [] ? 0xffffffffc03be000 [ 7.976106] [] driver_register+0x60/0xe0 [ 7.976107] [] __pci_register_driver+0x4c/0x50 [ 7.976113] [] mlx4_init+0x115/0x1000 [mlx4_core] [ 7.976113] [] do_one_initcall+0xb3/0x200 [ 7.976115] [] ? kmem_cache_alloc_trace+0x183/0x1f0 [ 7.976116] [] do_init_module+0x5f/0x1cf [ 7.976117] [] load_module+0x166f/0x1c10 [ 7.976118] [] ? __symbol_put+0x60/0x60 [ 7.976119] [] ? kernel_read+0x50/0x80 [ 7.976120] [] SYSC_finit_module+0xb4/0xe0 [ 7.976121] [] SyS_finit_module+0xe/0x10 [ 7.976122] [] entry_SYSCALL_64_fastpath+0x16/0x71 [ 7.976123] BUG: Bad page state in process systemd-udevd pfn:ea1d3 [ 7.976123] page:ffffea0003a874c0 count:-1 mapcount:0 mapping: (null) index:0x0 [ 7.976124] flags: 0xffffc000000000() [ 7.976124] page dumped because: nonzero _count