INFO: task syz-executor.2:5318 blocked for more than 143 seconds. Not tainted 5.15.153-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.2 state:D stack:25016 pid: 5318 ppid: 4765 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5030 [inline] __schedule+0x12c4/0x45b0 kernel/sched/core.c:6376 schedule+0x11b/0x1f0 kernel/sched/core.c:6459 schedule_timeout+0xac/0x300 kernel/time/timer.c:1860 do_wait_for_common+0x2d9/0x480 kernel/sched/completion.c:85 __wait_for_common kernel/sched/completion.c:106 [inline] wait_for_common kernel/sched/completion.c:117 [inline] wait_for_completion+0x48/0x60 kernel/sched/completion.c:138 flush_workqueue+0x737/0x1610 kernel/workqueue.c:2882 nbd_start_device_ioctl drivers/block/nbd.c:1365 [inline] __nbd_ioctl drivers/block/nbd.c:1427 [inline] nbd_ioctl+0xab8/0xe10 drivers/block/nbd.c:1467 blkdev_ioctl+0x333/0x6b0 block/ioctl.c:604 block_ioctl+0xb1/0xf0 block/fops.c:493 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl+0xf1/0x160 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7ff9baa4ee69 RSP: 002b:00007ff9b8fc10c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007ff9bab7cf80 RCX: 00007ff9baa4ee69 RDX: 0000000000000000 RSI: 000000000000ab03 RDI: 0000000000000007 RBP: 00007ff9baa9b47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007ff9bab7cf80 R15: 00007ffe04a11e78 Showing all locks held in the system: 1 lock held by kworker/0:0/7: #0: ffff8880b9a3a318 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x26/0x140 kernel/sched/core.c:475 1 lock held by khungtaskd/27: #0: ffffffff8c91f720 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by kworker/u4:1/144: 1 lock held by udevd/2962: #0: ffff88801b520918 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_get_by_dev+0x14d/0xa50 block/bdev.c:817 2 locks held by getty/3261: #0: ffff88802456c098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252 #1: ffffc90002bab2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6af/0x1db0 drivers/tty/n_tty.c:2158 2 locks held by kworker/u5:2/3519: #0: ffff88801b81e138 ((wq_completion)nbd4-recv){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc90002da7d20 ((work_completion)(&args->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 1 lock held by syz-executor.3/3520: #0: ffff8880b9a3a318 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x26/0x140 kernel/sched/core.c:475 1 lock held by syz-executor.0/3522: #0: ffff8880b9a3a318 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x26/0x140 kernel/sched/core.c:475 2 locks held by kworker/u5:3/3527: #0: ffff88801b85e938 ((wq_completion)nbd2-recv){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc90002ff7d20 ((work_completion)(&args->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 2 locks held by syz-executor.0/8383: 2 locks held by syz-executor.2/8528: 2 locks held by syz-executor.3/8530: 2 locks held by syz-executor.3/8539: #0: ffff88801b520918 (&disk->open_mutex){+.+.}-{3:3}, at: blkdev_put+0xfb/0x790 block/bdev.c:912 #1: ffff8881472ad468 (&lo->lo_mutex){+.+.}-{3:3}, at: lo_release+0x4d/0x1f0 drivers/block/loop.c:2070 2 locks held by syz-executor.0/8543: 2 locks held by syz-executor.4/8555: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 27 Comm: khungtaskd Not tainted 5.15.153-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 nmi_cpu_backtrace+0x46a/0x4a0 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x181/0x2a0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline] watchdog+0xe72/0xeb0 kernel/hung_task.c:295 kthread+0x3f6/0x4f0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 8543 Comm: syz-executor.0 Not tainted 5.15.153-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:__lock_acquire+0x6d/0x1ff0 kernel/locking/lockdep.c:4882 Code: 7c 24 08 0f 85 3f 16 00 00 83 3d f1 36 81 0c 00 0f 84 ec 14 00 00 83 3d e0 55 1c 0b 00 74 2d 48 89 f8 48 c1 e8 03 80 3c 10 00 <74> 14 e8 ac 66 67 00 48 8b 7c 24 08 48 ba 00 00 00 00 00 fc ff df RSP: 0018:ffffc90002ef7120 EFLAGS: 00000046 RAX: 1ffff110295d1f27 RBX: 0000000000000000 RCX: 0000000000000000 RDX: dffffc0000000000 RSI: 0000000000000000 RDI: ffff88814ae8f938 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000 R13: ffff888013598000 R14: 0000000000000000 R15: 0000000000000001 FS: 00007fc444b676c0(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2e722000 CR3: 000000007a3e6000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623 flush_workqueue+0x170/0x1610 kernel/workqueue.c:2830 nf_flow_table_offload_flush+0x54/0x90 net/netfilter/nf_flow_table_offload.c:1064 nf_flow_table_gc_cleanup+0x339/0x380 net/netfilter/nf_flow_table_core.c:579 nf_flow_table_cleanup+0x45/0x90 net/netfilter/nf_flow_table_core.c:588 flow_offload_netdev_event+0x4d/0x60 net/netfilter/nft_flow_offload.c:466 notifier_call_chain kernel/notifier.c:83 [inline] raw_notifier_call_chain+0xd0/0x170 kernel/notifier.c:391 call_netdevice_notifiers_info net/core/dev.c:2018 [inline] call_netdevice_notifiers_extack net/core/dev.c:2030 [inline] call_netdevice_notifiers net/core/dev.c:2044 [inline] dev_close_many+0x37c/0x530 net/core/dev.c:1619 unregister_netdevice_many+0x4b0/0x18f0 net/core/dev.c:11069 mroute_clean_tables+0x38f/0xb40 net/ipv4/ipmr.c:1288 ip_mroute_setsockopt+0xef1/0x1540 net/ipv4/ipmr.c:1472 do_ip_setsockopt net/ipv4/ip_sockglue.c:947 [inline] ip_setsockopt+0x5b3/0x3fb0 net/ipv4/ip_sockglue.c:1430 __sys_setsockopt+0x57e/0x990 net/socket.c:2198 __do_sys_setsockopt net/socket.c:2209 [inline] __se_sys_setsockopt net/socket.c:2206 [inline] __x64_sys_setsockopt+0xb1/0xc0 net/socket.c:2206 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fc4465f4e69 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc444b670c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007fc446722f80 RCX: 00007fc4465f4e69 RDX: 00000000000000d4 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 00007fc44664147a R08: 0000000000000004 R09: 0000000000000000 R10: 00000000200000c0 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fc446722f80 R15: 00007ffee928e758