TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue block nbd0: shutting down sockets ====================================================== WARNING: possible circular locking dependency detected 4.14.307-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.0/10133 is trying to acquire lock: (&bdev->bd_mutex){+.+.}, at: [] blkdev_reread_part+0x1b/0x40 block/ioctl.c:192 but task is already holding lock: (&nbd->config_lock){+.+.}, at: [] nbd_ioctl+0x11f/0xad0 drivers/block/nbd.c:1369 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #2 (&nbd->config_lock){+.+.}: __mutex_lock_common kernel/locking/mutex.c:756 [inline] __mutex_lock+0xc4/0x1310 kernel/locking/mutex.c:893 nbd_open+0x1ac/0x370 drivers/block/nbd.c:1422 __blkdev_get+0x306/0x1090 fs/block_dev.c:1470 blkdev_get+0x88/0x890 fs/block_dev.c:1611 blkdev_open+0x1cc/0x250 fs/block_dev.c:1772 do_dentry_open+0x44b/0xec0 fs/open.c:777 vfs_open+0x105/0x220 fs/open.c:888 do_last fs/namei.c:3428 [inline] path_openat+0x628/0x2970 fs/namei.c:3571 do_filp_open+0x179/0x3c0 fs/namei.c:3605 do_sys_open+0x296/0x410 fs/open.c:1081 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 -> #1 (nbd_index_mutex){+.+.}: __mutex_lock_common kernel/locking/mutex.c:756 [inline] __mutex_lock+0xc4/0x1310 kernel/locking/mutex.c:893 nbd_open+0x1e/0x370 drivers/block/nbd.c:1409 __blkdev_get+0x306/0x1090 fs/block_dev.c:1470 blkdev_get+0x88/0x890 fs/block_dev.c:1611 blkdev_open+0x1cc/0x250 fs/block_dev.c:1772 do_dentry_open+0x44b/0xec0 fs/open.c:777 vfs_open+0x105/0x220 fs/open.c:888 do_last fs/namei.c:3428 [inline] path_openat+0x628/0x2970 fs/namei.c:3571 do_filp_open+0x179/0x3c0 fs/namei.c:3605 do_sys_open+0x296/0x410 fs/open.c:1081 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 -> #0 (&bdev->bd_mutex){+.+.}: lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998 __mutex_lock_common kernel/locking/mutex.c:756 [inline] __mutex_lock+0xc4/0x1310 kernel/locking/mutex.c:893 blkdev_reread_part+0x1b/0x40 block/ioctl.c:192 nbd_bdev_reset drivers/block/nbd.c:1076 [inline] nbd_clear_sock_ioctl drivers/block/nbd.c:1282 [inline] __nbd_ioctl drivers/block/nbd.c:1306 [inline] nbd_ioctl+0x802/0xad0 drivers/block/nbd.c:1376 __blkdev_driver_ioctl block/ioctl.c:297 [inline] blkdev_ioctl+0x540/0x1830 block/ioctl.c:594 block_ioctl+0xd9/0x120 fs/block_dev.c:1893 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x75a/0xff0 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 other info that might help us debug this: Chain exists of: &bdev->bd_mutex --> nbd_index_mutex --> &nbd->config_lock Possible unsafe locking scenario: TCP: request_sock_TCPv6: Possible SYN flooding on port 20002. Sending cookies. Check SNMP counters. CPU0 CPU1 ---- ---- lock(&nbd->config_lock); lock(nbd_index_mutex); lock(&nbd->config_lock); lock(&bdev->bd_mutex); *** DEADLOCK *** 1 lock held by syz-executor.0/10133: #0: (&nbd->config_lock){+.+.}, at: [] nbd_ioctl+0x11f/0xad0 drivers/block/nbd.c:1369 stack backtrace: CPU: 0 PID: 10133 Comm: syz-executor.0 Not tainted 4.14.307-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 print_circular_bug.constprop.0.cold+0x2d7/0x41e kernel/locking/lockdep.c:1258 check_prev_add kernel/locking/lockdep.c:1905 [inline] check_prevs_add kernel/locking/lockdep.c:2022 [inline] validate_chain kernel/locking/lockdep.c:2464 [inline] __lock_acquire+0x2e0e/0x3f20 kernel/locking/lockdep.c:3491 lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998 __mutex_lock_common kernel/locking/mutex.c:756 [inline] __mutex_lock+0xc4/0x1310 kernel/locking/mutex.c:893 blkdev_reread_part+0x1b/0x40 block/ioctl.c:192 nbd_bdev_reset drivers/block/nbd.c:1076 [inline] nbd_clear_sock_ioctl drivers/block/nbd.c:1282 [inline] __nbd_ioctl drivers/block/nbd.c:1306 [inline] nbd_ioctl+0x802/0xad0 drivers/block/nbd.c:1376 __blkdev_driver_ioctl block/ioctl.c:297 [inline] blkdev_ioctl+0x540/0x1830 block/ioctl.c:594 block_ioctl+0xd9/0x120 fs/block_dev.c:1893 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x75a/0xff0 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 RIP: 0033:0x7f3bbe5e20f9 RSP: 002b:00007f3bbcb54168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f3bbe701f80 RCX: 00007f3bbe5e20f9 RDX: 0000000000000000 RSI: 000000000000ab04 RDI: 0000000000000007 RBP: 00007f3bbe63dae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff1a68fe0f R14: 00007f3bbcb54300 R15: 0000000000022000 netlink: 12 bytes leftover after parsing attributes in process `syz-executor.3'. block nbd0: shutting down sockets EXT4-fs (loop2): mounted filesystem without journal. Opts: ,errors=continue netlink: 12 bytes leftover after parsing attributes in process `syz-executor.3'. hfsplus: request for non-existent node 33423360 in B*Tree hfsplus: request for non-existent node 33423360 in B*Tree netlink: 24 bytes leftover after parsing attributes in process `syz-executor.0'. audit: type=1326 audit(1678013257.143:11): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=10509 comm="syz-executor.2" exe="/root/syz-executor.2" sig=31 arch=c000003e syscall=202 compat=0 ip=0x7effa23760f9 code=0x0 audit: type=1326 audit(1678013257.323:12): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=10550 comm="syz-executor.3" exe="/root/syz-executor.3" sig=31 arch=c000003e syscall=202 compat=0 ip=0x7f9e7c3ec0f9 code=0x0 audit: type=1326 audit(1678013257.353:13): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=10552 comm="syz-executor.4" exe="/root/syz-executor.4" sig=31 arch=c000003e syscall=202 compat=0 ip=0x7f5c662da0f9 code=0x0 audit: type=1326 audit(1678013258.173:14): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=10595 comm="syz-executor.2" exe="/root/syz-executor.2" sig=31 arch=c000003e syscall=202 compat=0 ip=0x7effa23760f9 code=0x0 audit: type=1326 audit(1678013258.203:15): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=10591 comm="syz-executor.4" exe="/root/syz-executor.4" sig=31 arch=c000003e syscall=202 compat=0 ip=0x7f5c662da0f9 code=0x0 audit: type=1326 audit(1678013258.263:16): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=10614 comm="syz-executor.0" exe="/root/syz-executor.0" sig=31 arch=c000003e syscall=202 compat=0 ip=0x7f3bbe5e20f9 code=0x0 audit: type=1326 audit(1678013258.263:17): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=10618 comm="syz-executor.4" exe="/root/syz-executor.4" sig=31 arch=c000003e syscall=202 compat=0 ip=0x7f5c662da0f9 code=0x0 audit: type=1326 audit(1678013258.343:18): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=10633 comm="syz-executor.4" exe="/root/syz-executor.4" sig=31 arch=c000003e syscall=202 compat=0 ip=0x7f5c662da0f9 code=0x0 audit: type=1326 audit(1678013258.473:19): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=10642 comm="syz-executor.0" exe="/root/syz-executor.0" sig=31 arch=c000003e syscall=202 compat=0 ip=0x7f3bbe5e20f9 code=0x0 Zero length message leads to an empty skb Dev loop0: unable to read RDB block 1 loop0: unable to read partition table loop0: partition table beyond EOD, truncated loop_reread_partitions: partition scan of loop0 (Qa*LɄ uQ?)^Y{P[t$:Q@dhIH븺) failed (rc=-5) NILFS (loop3): segctord starting. Construction interval = 5 seconds, CP frequency < 30 seconds syz-executor.5 (10828): drop_caches: 1 netlink: 348 bytes leftover after parsing attributes in process `syz-executor.0'. hid-generic 0000:0000:0000.0001: unknown main item tag 0x0 hid-generic 0000:0000:0000.0001: hidraw0: HID v0.00 Device [syz0] on syz1 syz-executor.5 (10828): drop_caches: 1 9pnet: Insufficient options for proto=fd vhci_hcd: Failed attach request for unsupported USB speed: UNKNOWN netlink: 8 bytes leftover after parsing attributes in process `syz-executor.0'. L1TF CPU bug present and SMT on, data leak possible. See CVE-2018-3646 and https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/l1tf.html for details. syz-executor.5 (10902): drop_caches: 2 syz-executor.1 (10919): drop_caches: 2 syz-executor.1 (10919): drop_caches: 2 syz-executor.5 (10902): drop_caches: 2 syz-executor.1 (10954): drop_caches: 2 hid-generic 0000:0000:0000.0002: unknown main item tag 0x0 syz-executor.1 (10954): drop_caches: 2 hid-generic 0000:0000:0000.0002: hidraw0: HID v0.00 Device [syz0] on syz1 syz-executor.1 (11010): drop_caches: 2 hid-generic 0000:0000:0000.0003: unknown main item tag 0x0 syz-executor.1 (11010): drop_caches: 2 hid-generic 0000:0000:0000.0003: hidraw0: HID v0.00 Device [syz0] on syz1 hid-generic 0000:0000:0000.0004: unknown main item tag 0x0 syz-executor.1 (11052): drop_caches: 2 hid-generic 0000:0000:0000.0004: hidraw0: HID v0.00 Device [syz0] on syz1 syz-executor.1 (11052): drop_caches: 2 sp0: Synchronizing with TNC hid-generic 0000:0000:0000.0005: unknown main item tag 0x0 hid-generic 0000:0000:0000.0005: hidraw0: HID v0.00 Device [syz0] on syz1 unregister_netdevice: waiting for ip6gre0 to become free. Usage count = -1 EXT4-fs (loop1): Test dummy encryption mount option ignored EXT4-fs (loop1): inodes count not valid: 32 vs 8192 EXT4-fs (loop0): Test dummy encryption mount option ignored EXT4-fs (loop0): Invalid log cluster size: 512 print_req_error: I/O error, dev loop1, sector 0 Buffer I/O error on dev loop1, logical block 0, async page read print_req_error: I/O error, dev loop1, sector 4 Buffer I/O error on dev loop1, logical block 2, async page read print_req_error: I/O error, dev loop1, sector 6 Buffer I/O error on dev loop1, logical block 3, async page read print_req_error: I/O error, dev loop0, sector 0 Buffer I/O error on dev loop0, logical block 0, async page read print_req_error: I/O error, dev loop0, sector 4 Buffer I/O error on dev loop0, logical block 2, async page read print_req_error: I/O error, dev loop0, sector 6 Buffer I/O error on dev loop0, logical block 3, async page read block nbd5: shutting down sockets syz-executor.1 (11270): drop_caches: 2 syz-executor.1 (11270): drop_caches: 2 syz-executor.1 (11292): drop_caches: 2 NILFS (loop4): segctord starting. Construction interval = 5 seconds, CP frequency < 30 seconds syz-executor.1 (11292): drop_caches: 2 syz-executor.1 (11327): drop_caches: 2 syz-executor.1 (11327): drop_caches: 2 NILFS (loop4): segctord starting. Construction interval = 5 seconds, CP frequency < 30 seconds device vxlan0 entered promiscuous mode syz-executor.1 (11349): drop_caches: 2 syz-executor.1 (11349): drop_caches: 2 NILFS (loop4): segctord starting. Construction interval = 5 seconds, CP frequency < 30 seconds device vxlan0 entered promiscuous mode can: request_module (can-proto-0) failed. device vxlan0 entered promiscuous mode NILFS (loop4): segctord starting. Construction interval = 5 seconds, CP frequency < 30 seconds EXT4-fs (loop0): Test dummy encryption mount option ignored EXT4-fs (loop0): Invalid log cluster size: 255 EXT4-fs (loop0): Test dummy encryption mount option ignored EXT4-fs (loop0): bad geometry: block count 16777216 exceeds size of device (512 blocks) attempt to access beyond end of device