INFO: task kworker/u4:10:3781 blocked for more than 143 seconds. Not tainted 6.1.27-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:10 state:D stack:22968 pid:3781 ppid:2 flags:0x00004000 Workqueue: writeback wb_workfn (flush-7:5) Call Trace: context_switch kernel/sched/core.c:5241 [inline] __schedule+0x132c/0x4330 kernel/sched/core.c:6554 schedule+0xbf/0x180 kernel/sched/core.c:6630 rwsem_down_write_slowpath+0xe93/0x14a0 kernel/locking/rwsem.c:1189 f2fs_down_write fs/f2fs/f2fs.h:2207 [inline] f2fs_balance_fs+0x4fb/0x6c0 fs/f2fs/segment.c:418 f2fs_write_inode+0x4c3/0x540 fs/f2fs/inode.c:757 write_inode fs/fs-writeback.c:1443 [inline] __writeback_single_inode+0x67d/0x11e0 fs/fs-writeback.c:1655 writeback_sb_inodes+0xc21/0x1ac0 fs/fs-writeback.c:1881 __writeback_inodes_wb+0x114/0x400 fs/fs-writeback.c:1952 wb_writeback+0x4b1/0xe10 fs/fs-writeback.c:2057 wb_check_start_all fs/fs-writeback.c:2179 [inline] wb_do_writeback fs/fs-writeback.c:2205 [inline] wb_workfn+0x9db/0x1020 fs/fs-writeback.c:2238 process_one_work+0x8aa/0x11f0 kernel/workqueue.c:2289 worker_thread+0xa5f/0x1210 kernel/workqueue.c:2436 kthread+0x26e/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 INFO: task syz-executor.1:25011 blocked for more than 144 seconds. Not tainted 6.1.27-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:28712 pid:25011 ppid:4965 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5241 [inline] __schedule+0x132c/0x4330 kernel/sched/core.c:6554 schedule+0xbf/0x180 kernel/sched/core.c:6630 wb_wait_for_completion+0x162/0x290 fs/fs-writeback.c:191 sync_inodes_sb+0x293/0xab0 fs/fs-writeback.c:2717 iterate_supers+0x127/0x1e0 fs/super.c:746 ksys_sync+0xb9/0x1c0 fs/sync.c:102 __do_sys_sync+0xa/0x10 fs/sync.c:113 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+0x63/0xcd RIP: 0033:0x7f067368c169 RSP: 002b:00007f067442b168 EFLAGS: 00000246 ORIG_RAX: 00000000000000a2 RAX: ffffffffffffffda RBX: 00007f06737ac050 RCX: 00007f067368c169 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007f06736e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff44d0682f R14: 00007f067442b300 R15: 0000000000022000 Showing all locks held in the system: 4 locks held by kworker/u4:1/11: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8cf273f0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:510 1 lock held by rcu_tasks_trace/13: #0: ffffffff8cf27bf0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:510 1 lock held by khungtaskd/28: #0: ffffffff8cf27220 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 3 locks held by kworker/u4:5/1141: 2 locks held by getty/3299: #0: ffff88802a261098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900031332f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6a7/0x1db0 drivers/tty/n_tty.c:2177 3 locks held by syz-executor.4/3591: #0: ffff8880774e80e0 (&type->s_umount_key#55){++++}-{3:3}, at: deactivate_super+0xa9/0xe0 fs/super.c:362 #1: ffffffff8cdc48b0 (cpu_hotplug_lock){++++}-{0:0}, at: kmem_cache_destroy+0x2c/0x160 mm/slab_common.c:483 #2: ffffffff8cfebdf8 (slab_mutex){+.+.}-{3:3}, at: kmem_cache_destroy+0x3a/0x160 mm/slab_common.c:484 4 locks held by kworker/u4:10/3781: #0: ffff8881422fe938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x77a/0x11f0 #1: ffffc9000580fd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7bd/0x11f0 kernel/workqueue.c:2264 #2: ffff8880244860e0 (&type->s_umount_key#55){++++}-{3:3}, at: trylock_super+0x1b/0xf0 fs/super.c:415 #3: ffff888059d45140 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_down_write fs/f2fs/f2fs.h:2207 [inline] #3: ffff888059d45140 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x4fb/0x6c0 fs/f2fs/segment.c:418 2 locks held by syz-executor.5/24695: 2 locks held by syz-executor.1/25011: #0: ffff8880244860e0 (&type->s_umount_key#55){++++}-{3:3}, at: iterate_supers+0xac/0x1e0 fs/super.c:744 #1: ffff888142b347d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:362 [inline] #1: ffff888142b347d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x274/0xab0 fs/fs-writeback.c:2715 2 locks held by kworker/1:6/25877: #0: ffff888012466538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x77a/0x11f0 #1: ffffc900188c7d20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x7bd/0x11f0 kernel/workqueue.c:2264 3 locks held by kworker/1:7/26073: #0: ffff888012464d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x77a/0x11f0 #1: ffffc90004aafd20 (deferred_process_work){+.+.}-{0:0}, at: process_one_work+0x7bd/0x11f0 kernel/workqueue.c:2264 #2: ffffffff8e0918c8 (rtnl_mutex){+.+.}-{3:3}, at: switchdev_deferred_process_work+0xa/0x20 net/switchdev/switchdev.c:75 2 locks held by syz-executor.2/26816: #0: ffffffff8e0918c8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:74 [inline] #0: ffffffff8e0918c8 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x720/0xf00 net/core/rtnetlink.c:6088 #1: ffffffff8cf2c7f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:292 [inline] #1: ffffffff8cf2c7f8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x3b0/0x8a0 kernel/rcu/tree_exp.h:948 1 lock held by syz-executor.2/26817: #0: ffffffff8e0918c8 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:74 [inline] #0: ffffffff8e0918c8 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x720/0xf00 net/core/rtnetlink.c:6088 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.1.27-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 nmi_cpu_backtrace+0x4e1/0x560 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x1b0/0x3f0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline] watchdog+0xf18/0xf60 kernel/hung_task.c:377 kthread+0x26e/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 26817 Comm: syz-executor.2 Not tainted 6.1.27-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 RIP: 0010:mark_lock+0x15/0x340 kernel/locking/lockdep.c:4596 Code: ff ff e8 3e 3f 17 09 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 55 41 57 41 56 41 55 41 54 53 48 83 ec 10 49 89 f7 48 89 3c 24 <49> bd 00 00 00 00 00 fc ff df 83 fa 08 75 27 49 8d 5f 20 48 89 d8 RSP: 0018:ffffc900001e0958 EFLAGS: 00000082 RAX: ffff888018342774 RBX: ffff888018342774 RCX: 00000000000c278f RDX: 0000000000000004 RSI: ffff8880183427b8 RDI: ffff888018341d40 RBP: ffff8880183427b8 R08: dffffc0000000000 R09: fffffbfff2050463 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888018342788 R13: ffff888018341d40 R14: ffff8880183427d8 R15: ffff8880183427b8 FS: 00007fbc6ad5a700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b33024000 CR3: 00000000889ae000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __lock_acquire+0xb7f/0x1f80 kernel/locking/lockdep.c:5010 lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5669 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162 skb_dequeue+0x29/0x140 net/core/skbuff.c:3401 ieee80211_tasklet_handler+0x73/0x1b0 net/mac80211/main.c:309 tasklet_action_common+0x3cb/0x4a0 __do_softirq+0x2e9/0xa4c kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x155/0x240 kernel/softirq.c:650 irq_exit_rcu+0x5/0x20 kernel/softirq.c:662 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1107 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:console_trylock_spinning+0x3ad/0x450 kernel/printk/printk.c:1919 Code: 0f 84 4c ff ff ff e8 f2 66 1c 00 fb 31 db eb 41 e8 e8 66 1c 00 e8 f3 16 14 09 4d 85 ed 74 cd e8 d9 66 1c 00 fb bb 01 00 00 00 <48> c7 c7 c0 33 e0 8c 31 f6 ba 01 00 00 00 31 c9 41 b8 01 00 00 00 RSP: 0018:ffffc900031eecc0 EFLAGS: 00000283 RAX: ffffffff816d61e7 RBX: 0000000000000001 RCX: 0000000000040000 RDX: ffffc90005f39000 RSI: 0000000000019901 RDI: 0000000000019902 RBP: ffffc900031eed88 R08: ffffffff816d61a0 R09: fffffbfff2050446 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff9200063dd98 R13: 0000000000000200 R14: 0000000000000046 R15: dffffc0000000000 vprintk_emit+0xb8/0x1f0 kernel/printk/printk.c:2267 _printk+0xd1/0x111 kernel/printk/printk.c:2289 validate_nla lib/nlattr.c:391 [inline] __nla_validate_parse+0xdc3/0x2b70 lib/nlattr.c:603 __nla_parse+0x3c/0x50 lib/nlattr.c:700 __nlmsg_parse include/net/netlink.h:748 [inline] nlmsg_parse_deprecated include/net/netlink.h:789 [inline] __rtnl_newlink net/core/rtnetlink.c:3429 [inline] rtnl_newlink+0x2cd/0x1fa0 net/core/rtnetlink.c:3594 rtnetlink_rcv_msg+0x776/0xf00 net/core/rtnetlink.c:6091 netlink_rcv_skb+0x1cd/0x410 net/netlink/af_netlink.c:2553 netlink_unicast_kernel net/netlink/af_netlink.c:1328 [inline] netlink_unicast+0x7bf/0x990 net/netlink/af_netlink.c:1354 netlink_sendmsg+0xa26/0xd60 net/netlink/af_netlink.c:1931 sock_sendmsg_nosec net/socket.c:716 [inline] sock_sendmsg net/socket.c:736 [inline] ____sys_sendmsg+0x59e/0x8f0 net/socket.c:2482 ___sys_sendmsg net/socket.c:2536 [inline] __sys_sendmsg+0x2a9/0x390 net/socket.c:2565 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+0x63/0xcd RIP: 0033:0x7fbc6a08c169 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fbc6ad5a168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fbc6a1ac120 RCX: 00007fbc6a08c169 RDX: 0000000000000000 RSI: 00000000200001c0 RDI: 0000000000000006 RBP: 00007fbc6a0e7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffb5939c9f R14: 00007fbc6ad5a300 R15: 0000000000022000