Course sanity check with mainline kernels: 4.2 OK 4.3 hangs 4.4 hangs 4.5 hang 4.6 - 4.8 no hang, but dumps message (see below) 4.9 OK Oct 8 11:04:03 ubuntu kernel: [ 31.788232] block nbd0: NBD_DISCONNECT Oct 8 11:04:03 ubuntu kernel: [ 31.788286] block nbd0: shutting down socket Oct 8 11:04:03 ubuntu kernel: [ 31.788290] ------------[ cut here ]------------ Oct 8 11:04:03 ubuntu kernel: [ 31.788299] WARNING: CPU: 0 PID: 1807 at /home/kernel/COD/linux/kernel/softirq.c:150 __local_bh_enable_ip+0x6b/0x80 Oct 8 11:04:03 ubuntu kernel: [ 31.788301] Modules linked in: squashfs loop fuse nbd nls_iso8859_1 vfat fat snd_hda_codec_generic snd_hda_intel snd_hda_codec ppdev snd_hda_core virtio_console snd_hwdep virtio_balloon snd_pcm joydev input_leds efi_pstore led_class snd_timer efivars serio_raw snd i2c_piix4 soundcore acpi_cpufreq parport_pc 8250_fintek processor parport qemu_fw_cfg mac_hid ib_iser rdma_cm iw_cm ib_cm ib_sa ib_mad ib_core ib_addr configfs iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi efivarfs autofs4 ext4 crc16 jbd2 mbcache btrfs raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor hid_generic usbhid hid raid6_pq libcrc32c crc32c_generic raid1 raid0 multipath linear md_mod ata_generic virtio_net virtio_blk pata_acpi qxl ttm drm_kms_helper syscopyarea crct10dif_pclmul crc32_pclmul sysfillrect sysimgblt crc32c_intel fb_sys_fops ghash_clmulni_intel drm ata_piix intel_agp libata aesni_intel intel_gtt aes_x86_64 lrw gf128mul glue_helper uhci_hcd ablk_helper ehci_pci cryptd ehci_hcd agpgart scsi_mod virtio_pci psmouse usbcore virtio_ring virtio usb_common floppy button Oct 8 11:04:03 ubuntu kernel: [ 31.788400] CPU: 0 PID: 1807 Comm: nbd-client Not tainted 4.6.0-040600-generic #201606100558 Oct 8 11:04:03 ubuntu kernel: [ 31.788402] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 0.0.0 02/06/2015 Oct 8 11:04:03 ubuntu kernel: [ 31.788404] 0000000000000086 0000000047e82912 ffff88039807faa8 ffffffff8135f483 Oct 8 11:04:03 ubuntu kernel: [ 31.788409] 0000000000000000 0000000000000000 ffff88039807fae8 ffffffff810814db Oct 8 11:04:03 ubuntu kernel: [ 31.788412] 0000009647e82912 0000000000000200 ffff8803987d8840 ffff880393e74070 Oct 8 11:04:03 ubuntu kernel: [ 31.788416] Call Trace: Oct 8 11:04:03 ubuntu kernel: [ 31.788445] [] dump_stack+0x63/0x90 Oct 8 11:04:03 ubuntu kernel: [ 31.788448] [] __warn+0xcb/0xf0 Oct 8 11:04:03 ubuntu kernel: [ 31.788451] [] warn_slowpath_null+0x1d/0x20 Oct 8 11:04:03 ubuntu kernel: [ 31.788455] [] __local_bh_enable_ip+0x6b/0x80 Oct 8 11:04:03 ubuntu kernel: [ 31.788461] [] lock_sock_nested+0x57/0x70 Oct 8 11:04:03 ubuntu kernel: [ 31.788471] [] inet_shutdown+0x3b/0x110 Oct 8 11:04:03 ubuntu kernel: [ 31.788474] [] kernel_sock_shutdown+0x10/0x20 Oct 8 11:04:03 ubuntu kernel: [ 31.788481] [] sock_shutdown+0x4a/0xa0 [nbd] Oct 8 11:04:03 ubuntu kernel: [ 31.788486] [] __nbd_ioctl+0x615/0xb70 [nbd] Oct 8 11:04:03 ubuntu kernel: [ 31.788492] [] ? select_idle_sibling+0x2a/0x120 Oct 8 11:04:03 ubuntu kernel: [ 31.788497] [] ? select_task_rq_fair+0x61b/0x730 Oct 8 11:04:03 ubuntu kernel: [ 31.788504] [] ? try_to_wake_up+0x47/0x3c0 Oct 8 11:04:03 ubuntu kernel: [ 31.788507] [] ? default_wake_function+0x12/0x20 Oct 8 11:04:03 ubuntu kernel: [ 31.788519] [] ? pollwake+0x73/0x90 Oct 8 11:04:03 ubuntu kernel: [ 31.788526] [] ? wake_up_q+0x70/0x70 Oct 8 11:04:03 ubuntu kernel: [ 31.788532] [] ? __wake_up_common+0x52/0x90 Oct 8 11:04:03 ubuntu kernel: [ 31.788541] [] ? current_fs_time+0x23/0x30 Oct 8 11:04:03 ubuntu kernel: [ 31.788546] [] ? security_capable+0x48/0x60 Oct 8 11:04:03 ubuntu kernel: [ 31.788550] [] nbd_ioctl+0x5d/0x7d [nbd] Oct 8 11:04:03 ubuntu kernel: [ 31.788557] [] blkdev_ioctl+0x274/0x920 Oct 8 11:04:03 ubuntu kernel: [ 31.788564] [] ? __vfs_write+0xc9/0x120 Oct 8 11:04:03 ubuntu kernel: [ 31.788574] [] block_ioctl+0x3d/0x50 Oct 8 11:04:03 ubuntu kernel: [ 31.788577] [] do_vfs_ioctl+0xa1/0x5b0 Oct 8 11:04:03 ubuntu kernel: [ 31.788582] [] ? vfs_write+0x149/0x1a0 Oct 8 11:04:03 ubuntu kernel: [ 31.788585] [] SyS_ioctl+0x79/0x90 Oct 8 11:04:03 ubuntu kernel: [ 31.788601] [] entry_SYSCALL_64_fastpath+0x1e/0xa8 Oct 8 11:04:03 ubuntu kernel: [ 31.788605] ---[ end trace 017ff4e61fb69ab3 ]--- Oct 8 11:04:03 ubuntu kernel: [ 31.788687] block nbd0: Receive control failed (result -32) Oct 8 11:04:05 ubuntu kernel: [ 33.299189] nbd: unregistered device at major 43