INFO: task kworker/u4:12:4498 blocked for more than 146 seconds. Not tainted 5.15.138-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:12 state:D stack:24320 pid: 4498 ppid: 2 flags:0x00004000 Workqueue: writeback wb_workfn (flush-7:1) Call Trace: context_switch kernel/sched/core.c:5026 [inline] __schedule+0x12c4/0x45b0 kernel/sched/core.c:6372 schedule+0x11b/0x1f0 kernel/sched/core.c:6455 rwsem_down_write_slowpath+0xebb/0x15c0 kernel/locking/rwsem.c:1157 __down_write_common kernel/locking/rwsem.c:1284 [inline] __down_write kernel/locking/rwsem.c:1293 [inline] down_write+0x164/0x170 kernel/locking/rwsem.c:1542 f2fs_balance_fs+0x4d4/0x6a0 fs/f2fs/segment.c:529 f2fs_write_inode+0x4c3/0x540 fs/f2fs/inode.c:727 write_inode fs/fs-writeback.c:1478 [inline] __writeback_single_inode+0x644/0xe30 fs/fs-writeback.c:1688 writeback_sb_inodes+0xbce/0x1a40 fs/fs-writeback.c:1913 __writeback_inodes_wb+0x114/0x400 fs/fs-writeback.c:1984 wb_writeback+0x465/0xc50 fs/fs-writeback.c:2089 wb_check_background_flush fs/fs-writeback.c:2155 [inline] wb_do_writeback fs/fs-writeback.c:2243 [inline] wb_workfn+0xd07/0x1130 fs/fs-writeback.c:2271 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 Showing all locks held in the system: 1 lock held by khungtaskd/27: #0: ffffffff8c91f020 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 5 locks held by kworker/0:2/1065: #0: ffff888011c70d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc900048f7d20 ((work_completion)(&rdev->rfkill_block)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 #2: ffffffff8d9d9b88 (rtnl_mutex){+.+.}-{3:3}, at: cfg80211_rfkill_set_block net/wireless/core.c:304 [inline] #2: ffffffff8d9d9b88 (rtnl_mutex){+.+.}-{3:3}, at: cfg80211_rfkill_block_work+0xe/0x30 net/wireless/core.c:317 #3: ffff88802d6a0628 (&rdev->wiphy.mtx){+.+.}-{3:3}, at: wiphy_lock include/net/cfg80211.h:5314 [inline] #3: ffff88802d6a0628 (&rdev->wiphy.mtx){+.+.}-{3:3}, at: cfg80211_netdev_notifier_call+0x4d4/0x1210 net/wireless/core.c:1411 #4: ffff88802f6e4d40 (&wdev->mtx){+.+.}-{3:3}, at: wdev_lock net/wireless/core.h:220 [inline] #4: ffff88802f6e4d40 (&wdev->mtx){+.+.}-{3:3}, at: cfg80211_leave net/wireless/core.c:1251 [inline] #4: ffff88802f6e4d40 (&wdev->mtx){+.+.}-{3:3}, at: cfg80211_netdev_notifier_call+0x4e2/0x1210 net/wireless/core.c:1412 2 locks held by getty/3258: #0: ffff88814b53e098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252 #1: ffffc90002bb32e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6af/0x1db0 drivers/tty/n_tty.c:2158 2 locks held by kworker/1:6/3625: #0: ffff888011c72538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc9000359fd20 ((work_completion)(&rew.rew_work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 3 locks held by kworker/u4:11/4012: 1 lock held by syz-executor.3/4166: #0: ffffffff8c9235e8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:322 [inline] #0: ffffffff8c9235e8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x350/0x740 kernel/rcu/tree_exp.h:845 4 locks held by kworker/u4:12/4498: #0: ffff8881433de938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc900046bfd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 #2: ffff88807a0d40e0 (&type->s_umount_key#72){++++}-{3:3}, at: trylock_super+0x1b/0xf0 fs/super.c:418 #3: ffff888037a9d108 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x4d4/0x6a0 fs/f2fs/segment.c:529 2 locks held by kworker/1:8/4708: #0: ffff888011c70d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc900035efd20 (free_ipc_work){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 4 locks held by kworker/u4:14/4910: #0: ffff8881433de938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc9000304fd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 #2: ffff88801e8e60e0 (&type->s_umount_key#72){++++}-{3:3}, at: trylock_super+0x1b/0xf0 fs/super.c:418 #3: ffff8880340fd108 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x4d4/0x6a0 fs/f2fs/segment.c:529 3 locks held by kworker/0:17/6287: #0: ffff888011c70d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc90004ab7d20 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 #2: ffffffff8d9d9b88 (rtnl_mutex){+.+.}-{3:3}, at: linkwatch_event+0xa/0x50 net/core/link_watch.c:251 6 locks held by syz-executor.1/8076: 4 locks held by syz-executor.5/8204: 3 locks held by kworker/u4:3/8288: #0: ffff88807afc4938 ((wq_completion)phy23){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc9000305fd20 ((work_completion)(&sdata->work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 #2: ffff88802f6e4d40 (&wdev->mtx){+.+.}-{3:3}, at: sdata_lock net/mac80211/ieee80211_i.h:1033 [inline] #2: ffff88802f6e4d40 (&wdev->mtx){+.+.}-{3:3}, at: ieee80211_ibss_rx_queued_mgmt+0xff/0x2af0 net/mac80211/ibss.c:1632 3 locks held by kworker/1:1/8625: #0: ffff888011c70d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x78a/0x10c0 kernel/workqueue.c:2283 #1: ffffc9000384fd20 ((work_completion)(&pwq->unbound_release_work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0x10c0 kernel/workqueue.c:2285 #2: ffffffff8c9235e8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:322 [inline] #2: ffffffff8c9235e8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x350/0x740 kernel/rcu/tree_exp.h:845 1 lock held by syz-executor.1/8759: #0: ffffffff8d9d9b88 (rtnl_mutex){+.+.}-{3:3}, at: do_ipv6_setsockopt net/ipv6/ipv6_sockglue.c:417 [inline] #0: ffffffff8d9d9b88 (rtnl_mutex){+.+.}-{3:3}, at: ipv6_setsockopt+0x45f/0x43a0 net/ipv6/ipv6_sockglue.c:1006 1 lock held by syz-executor.1/8760: #0: ffffffff8d9d9b88 (rtnl_mutex){+.+.}-{3:3}, at: do_ipv6_setsockopt net/ipv6/ipv6_sockglue.c:417 [inline] #0: ffffffff8d9d9b88 (rtnl_mutex){+.+.}-{3:3}, at: ipv6_setsockopt+0x45f/0x43a0 net/ipv6/ipv6_sockglue.c:1006 1 lock held by syz-executor.4/8758: #0: ffff8881475e0468 (&lo->lo_mutex){+.+.}-{3:3}, at: __loop_clr_fd+0xa9/0xbe0 drivers/block/loop.c:1365 2 locks held by syz-executor.5/8780: #0: ffff888024338460 (sb_writers#5){.+.+}-{0:0}, at: do_sendfile+0x600/0xff0 fs/read_write.c:1248 #1: ffff8880744c53b0 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: inode_lock include/linux/fs.h:787 [inline] #1: ffff8880744c53b0 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: ext4_dio_write_checks fs/ext4/file.c:452 [inline] #1: ffff8880744c53b0 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: ext4_dio_write_iter fs/ext4/file.c:520 [inline] #1: ffff8880744c53b0 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: ext4_file_write_iter+0xe94/0x1990 fs/ext4/file.c:681 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 27 Comm: khungtaskd Not tainted 5.15.138-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 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: 4012 Comm: kworker/u4:11 Not tainted 5.15.138-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 Workqueue: netns cleanup_net RIP: 0010:check_preemption_disabled+0x4/0x110 lib/smp_processor_id.c:13 Code: c7 40 dc 92 8a e8 2c 01 00 00 65 ff 0d b1 ab e7 75 5b c3 cc cc cc 48 c7 c7 e0 7a d8 8a 48 c7 c6 20 7b d8 8a eb 00 41 57 41 56 <41> 54 53 48 83 ec 10 65 48 8b 04 25 28 00 00 00 48 89 44 24 08 65 RSP: 0000:ffffc90002d6f8c8 EFLAGS: 00000046 RAX: 0000000000000000 RBX: ffffc90002d6f940 RCX: ffffffff81627d4c RDX: 0000000000000000 RSI: ffffffff8a8b19e0 RDI: ffffffff8ad87b40 RBP: ffffc90002d6fa40 R08: dffffc0000000000 R09: fffffbfff1bc7266 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff920005adf24 R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000246 FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9f8dbd2000 CR3: 000000003508d000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lockdep_recursion_inc kernel/locking/lockdep.c:431 [inline] lock_acquire+0x1a0/0x4f0 kernel/locking/lockdep.c:5621 rcu_lock_acquire+0x2a/0x30 include/linux/rcupdate.h:269 rcu_read_lock include/linux/rcupdate.h:696 [inline] inet_twsk_purge+0x11e/0xa20 net/ipv4/inet_timewait_sock.c:268 ops_exit_list net/core/net_namespace.c:174 [inline] cleanup_net+0x763/0xb60 net/core/net_namespace.c:596 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457 kthread+0x3f6/0x4f0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298