block nbd5: Device being setup by another task block nbd3: shutting down sockets block nbd2: shutting down sockets block nbd1: shutting down sockets block nbd0: shutting down sockets INFO: task syz-executor.5:32682 blocked for more than 140 seconds. block nbd4: shutting down sockets Not tainted 4.19.211-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor.5 D28248 32682 8139 0x00000004 Call Trace: context_switch kernel/sched/core.c:2828 [inline] __schedule+0x887/0x2040 kernel/sched/core.c:3517 block nbd5: Device being setup by another task schedule+0x8d/0x1b0 kernel/sched/core.c:3561 block nbd2: shutting down sockets block nbd1: shutting down sockets block nbd4: shutting down sockets block nbd0: shutting down sockets schedule_timeout+0x92d/0xfe0 kernel/time/timer.c:1794 block nbd3: shutting down sockets block nbd5: Device being setup by another task block nbd4: shutting down sockets block nbd1: shutting down sockets do_wait_for_common kernel/sched/completion.c:83 [inline] __wait_for_common kernel/sched/completion.c:104 [inline] wait_for_common+0x29c/0x470 kernel/sched/completion.c:115 block nbd0: shutting down sockets block nbd3: shutting down sockets block nbd2: shutting down sockets block nbd4: shutting down sockets block nbd5: Device being setup by another task flush_workqueue+0x40b/0x13e0 kernel/workqueue.c:2713 nbd_start_device_ioctl drivers/block/nbd.c:1276 [inline] __nbd_ioctl drivers/block/nbd.c:1347 [inline] nbd_ioctl+0x75b/0xbe0 drivers/block/nbd.c:1387 block nbd1: shutting down sockets block nbd2: shutting down sockets block nbd5: Device being setup by another task block nbd3: shutting down sockets block nbd0: shutting down sockets block nbd4: shutting down sockets __blkdev_driver_ioctl block/ioctl.c:303 [inline] blkdev_ioctl+0x5cb/0x1a80 block/ioctl.c:601 block nbd3: shutting down sockets block nbd5: Device being setup by another task block nbd1: shutting down sockets block nbd2: shutting down sockets block nbd0: shutting down sockets block nbd4: shutting down sockets block_ioctl+0xe9/0x130 fs/block_dev.c:1906 block nbd3: shutting down sockets vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0xcdb/0x12e0 fs/ioctl.c:688 block nbd5: Device being setup by another task block nbd4: shutting down sockets block nbd1: shutting down sockets block nbd0: shutting down sockets block nbd2: shutting down sockets block nbd3: shutting down sockets block nbd4: shutting down sockets block nbd5: Device being setup by another task block nbd0: shutting down sockets block nbd1: shutting down sockets ksys_ioctl+0x9b/0xc0 fs/ioctl.c:705 __do_sys_ioctl fs/ioctl.c:712 [inline] __se_sys_ioctl fs/ioctl.c:710 [inline] __x64_sys_ioctl+0x6f/0xb0 fs/ioctl.c:710 block nbd2: shutting down sockets do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 block nbd3: shutting down sockets entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f12f10555a9 block nbd4: shutting down sockets Code: Bad RIP value. block nbd0: shutting down sockets RSP: 002b:00007f12f07c9168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 block nbd5: Device being setup by another task block nbd1: shutting down sockets RAX: ffffffffffffffda RBX: 00007f12f1176f80 RCX: 00007f12f10555a9 RDX: 0000000000000000 RSI: 000000000000ab03 RDI: 0000000000000003 RBP: 00007f12f10b0580 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe2b91f42f R14: 00007f12f07c9300 R15: 0000000000022000 block nbd0: shutting down sockets block nbd2: shutting down sockets block nbd4: shutting down sockets block nbd3: shutting down sockets block nbd1: shutting down sockets Showing all locks held in the system: block nbd5: Device being setup by another task 1 lock held by khungtaskd/1570: #0: 00000000ba1e9ae1 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441 block nbd3: shutting down sockets 1 lock held by systemd-udevd/4697: 1 lock held by in:imklog/7811: #0: 000000004d818300 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767 block nbd5: Device being setup by another task block nbd0: shutting down sockets block nbd4: shutting down sockets block nbd2: shutting down sockets block nbd1: shutting down sockets 3 locks held by kworker/u5:3/8169: #0: 0000000088661440 ((wq_completion)"knbd%d-recv"nbd->index){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124 #1: 00000000d0f2b158 ((work_completion)(&args->work)){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128 block nbd3: shutting down sockets #2: 00000000e737c1ea (sk_lock-AF_AX25){+.+.}, at: lock_sock include/net/sock.h:1512 [inline] #2: 00000000e737c1ea (sk_lock-AF_AX25){+.+.}, at: ax25_recvmsg+0xbb/0x810 net/ax25/af_ax25.c:1629 block nbd0: shutting down sockets block nbd4: shutting down sockets block nbd2: shutting down sockets block nbd1: shutting down sockets block nbd5: Device being setup by another task 1 lock held by kworker/u4:7/12270: #0: 000000006e85d7c1 (&rq->lock){-.-.}, at: rq_lock kernel/sched/sched.h:1826 [inline] #0: 000000006e85d7c1 (&rq->lock){-.-.}, at: __schedule+0x1f9/0x2040 kernel/sched/core.c:3455 1 lock held by syz-executor.3/12277: #0: 00000000376da7ce (&nbd->config_lock){+.+.}, at: nbd_ioctl+0x151/0xbe0 drivers/block/nbd.c:1380 1 lock held by syz-executor.2/12279: #0: 000000005156cb22 (&nbd->config_lock){+.+.}, at: nbd_ioctl+0x151/0xbe0 drivers/block/nbd.c:1380 block nbd3: shutting down sockets 1 lock held by syz-executor.5/12278: block nbd5: Device being setup by another task #0: 00000000e83689b3 (&rq->lock){-.-.}, at: rq_lock kernel/sched/sched.h:1826 [inline] #0: 00000000e83689b3 (&rq->lock){-.-.}, at: __schedule+0x1f9/0x2040 kernel/sched/core.c:3455 block nbd4: shutting down sockets block nbd2: shutting down sockets block nbd1: shutting down sockets block nbd0: shutting down sockets 1 lock held by syz-executor.3/12295: #0: 00000000376da7ce (&nbd->config_lock){+.+.}, at: nbd_ioctl+0x151/0xbe0 drivers/block/nbd.c:1380 1 lock held by syz-executor.5/12297: #0: 000000000d7eaab7 (&nbd->config_lock){+.+.}, at: nbd_ioctl+0x151/0xbe0 drivers/block/nbd.c:1380 block nbd3: shutting down sockets 1 lock held by syz-executor.4/12293: block nbd5: Device being setup by another task block nbd4: shutting down sockets block nbd2: shutting down sockets block nbd0: shutting down sockets block nbd1: shutting down sockets #0: 000000006e85d7c1 (&rq->lock){-.-.}, at: rq_lock kernel/sched/sched.h:1826 [inline] #0: 000000006e85d7c1 (&rq->lock){-.-.}, at: __schedule+0x1f9/0x2040 kernel/sched/core.c:3455 1 lock held by syz-executor.1/12307: #0: 000000001a089394 (&nbd->config_lock){+.+.}, at: nbd_ioctl+0x151/0xbe0 drivers/block/nbd.c:1380 1 lock held by syz-executor.5/12310: #0: 000000000d7eaab7 (&nbd->config_lock){+.+.}, at: nbd_ioctl+0x151/0xbe0 drivers/block/nbd.c:1380 block nbd1: shutting down sockets 1 lock held by syz-executor.3/12313: block nbd3: shutting down sockets block nbd0: shutting down sockets block nbd5: Device being setup by another task block nbd2: shutting down sockets block nbd4: shutting down sockets #0: 000000006e85d7c1 (&rq->lock){-.-.}, at: rq_lock kernel/sched/sched.h:1826 [inline] #0: 000000006e85d7c1 (&rq->lock){-.-.}, at: __schedule+0x1f9/0x2040 kernel/sched/core.c:3455 2 locks held by syz-executor.1/12317: 1 lock held by syz-executor.3/12326: #0: 00000000376da7ce (&nbd->config_lock){+.+.}, at: nbd_ioctl+0x151/0xbe0 drivers/block/nbd.c:1380 1 lock held by syz-executor.2/12327: block nbd3: shutting down sockets block nbd2: shutting down sockets #0: 000000006e85d7c1 (&rq->lock){-.-.}, at: rq_lock kernel/sched/sched.h:1826 [inline] #0: 000000006e85d7c1 (&rq->lock){-.-.}, at: __schedule+0x1f9/0x2040 kernel/sched/core.c:3455 block nbd5: Device being setup by another task block nbd4: shutting down sockets block nbd0: shutting down sockets block nbd1: shutting down sockets 2 locks held by syz-executor.0/12335: #0: 000000006e85d7c1 (&rq->lock){-.-.}, at: rq_lock kernel/sched/sched.h:1826 [inline] #0: 000000006e85d7c1 (&rq->lock){-.-.}, at: __schedule+0x1f9/0x2040 kernel/sched/core.c:3455 #1: 00000000ba1e9ae1 (rcu_read_lock){....}, at: trace_sched_stat_runtime include/trace/events/sched.h:428 [inline] #1: 00000000ba1e9ae1 (rcu_read_lock){....}, at: update_curr+0x2c3/0x870 kernel/sched/fair.c:857 1 lock held by syz-executor.0/12341: block nbd3: shutting down sockets #0: 0000000030602419 (&nbd->config_lock){+.+.}, at: nbd_ioctl+0x151/0xbe0 drivers/block/nbd.c:1380 block nbd0: shutting down sockets 1 lock held by syz-executor.2/12343: block nbd5: Device being setup by another task block nbd1: shutting down sockets block nbd4: shutting down sockets #0: 000000005156cb22 (&nbd->config_lock){+.+.}, at: nbd_ioctl+0x151/0xbe0 drivers/block/nbd.c:1380 block nbd2: shutting down sockets 1 lock held by syz-executor.3/12349: block nbd3: shutting down sockets #0: 00000000e83689b3 (&rq->lock){-.-.}, at: rq_lock kernel/sched/sched.h:1826 [inline] #0: 00000000e83689b3 (&rq->lock){-.-.}, at: __schedule+0x1f9/0x2040 kernel/sched/core.c:3455 block nbd0: shutting down sockets 1 lock held by syz-executor.1/12359: #0: 000000001a089394 (&nbd->config_lock){+.+.}, at: nbd_ioctl+0x151/0xbe0 drivers/block/nbd.c:1380 block nbd5: Device being setup by another task 1 lock held by syz-executor.4/12360: block nbd1: shutting down sockets #0: 00000000f8dde6d6 (&nbd->config_lock){+.+.}, at: nbd_ioctl+0x151/0xbe0 drivers/block/nbd.c:1380 block nbd4: shutting down sockets block nbd3: shutting down sockets block nbd2: shutting down sockets block nbd0: shutting down sockets 2 locks held by syz-executor.2/12356: #0: 00000000e83689b3 (&rq->lock){-.-.}, at: rq_lock kernel/sched/sched.h:1826 [inline] #0: 00000000e83689b3 (&rq->lock){-.-.}, at: __schedule+0x1f9/0x2040 kernel/sched/core.c:3455 #1: 00000000ba1e9ae1 (rcu_read_lock){....}, at: trace_sched_stat_runtime include/trace/events/sched.h:428 [inline] #1: 00000000ba1e9ae1 (rcu_read_lock){....}, at: update_curr+0x2c3/0x870 kernel/sched/fair.c:857 3 locks held by syz-executor.4/12368: 1 lock held by syz-executor.3/12378: block nbd1: shutting down sockets block nbd0: shutting down sockets #0: 00000000376da7ce (&nbd->config_lock){+.+.}, at: nbd_ioctl+0x151/0xbe0 drivers/block/nbd.c:1380 1 lock held by syz-executor.2/12377: #0: 000000005156cb22 (&nbd->config_lock){+.+.}, at: nbd_ioctl+0x151/0xbe0 drivers/block/nbd.c:1380 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 1570 Comm: khungtaskd Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1fc/0x2ef lib/dump_stack.c:118 nmi_cpu_backtrace.cold+0x63/0xa2 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0x1a6/0x1f0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline] watchdog+0x991/0xe60 kernel/hung_task.c:287 kthread+0x33f/0x460 kernel/kthread.c:259 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 4697 Comm: systemd-udevd Not tainted 4.19.211-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022 RIP: 0010:legitimize_path.isra.0+0x2/0x1c0 fs/namei.c:615 Code: 00 e8 d2 26 73 06 5b 5d e9 5b 29 bd ff e8 46 06 f3 ff e9 79 ff ff ff e8 3c 06 f3 ff eb d5 e8 35 06 f3 ff eb a0 0f 1f 00 41 55 <41> 54 41 89 d4 55 89 fd 53 48 89 f3 e8 2d 29 bd ff 48 89 da 48 b8 RSP: 0018:ffff88809a847958 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffff88809a847bc0 RCX: 1ffff11013508f80 RDX: 0000000000000002 RSI: ffff88809a847be0 RDI: 0000000000000bd0 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000005 R11: 0000000000000000 R12: ffff88809a847bf8 R13: ffff8880ae6d55c0 R14: ffff88809a847c00 R15: ffff88809a847be0 FS: 00007f22991018c0(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005555557b9708 CR3: 000000009a87d000 CR4: 00000000003406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: unlazy_walk+0x2f5/0x540 fs/namei.c:680 may_lookup fs/namei.c:1700 [inline] link_path_walk.part.0+0x916/0x1230 fs/namei.c:2085 link_path_walk fs/namei.c:2270 [inline] path_lookupat+0xe4/0x8d0 fs/namei.c:2318 filename_lookup+0x1ac/0x5a0 fs/namei.c:2349 user_path_at include/linux/namei.h:57 [inline] vfs_statx+0x113/0x210 fs/stat.c:185 vfs_lstat include/linux/fs.h:3137 [inline] __do_sys_newlstat fs/stat.c:350 [inline] __se_sys_newlstat+0x96/0x120 fs/stat.c:344 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7f2297f73335 Code: 69 db 2b 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 83 ff 01 48 89 f0 77 30 48 89 c7 48 89 d6 b8 06 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 03 f3 c3 90 48 8b 15 31 db 2b 00 f7 d8 64 89 RSP: 002b:00007ffdb3eb33c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000006 RAX: ffffffffffffffda RBX: 000055dab0f052d0 RCX: 00007f2297f73335 RDX: 00007ffdb3eb3400 RSI: 00007ffdb3eb3400 RDI: 000055dab0f042d0 RBP: 00007ffdb3eb34c0 R08: 00007f2298232178 R09: 0000000000001010 R10: 0000000000000100 R11: 0000000000000246 R12: 000055dab0f042d0 R13: 000055dab0f042dc R14: 000055dab0efc985 R15: 000055dab0efc98c block nbd2: shutting down sockets block nbd3: shutting down sockets block nbd4: shutting down sockets