INFO: task syz.1.885:8065 blocked for more than 143 seconds. Not tainted 6.1.146-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.1.885 state:D stack:24096 pid:8065 ppid:6863 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x10e9/0x40d0 kernel/sched/core.c:6561 schedule+0xb9/0x180 kernel/sched/core.c:6637 rwsem_down_write_slowpath+0xbed/0x1090 kernel/locking/rwsem.c:1189 f2fs_down_write fs/f2fs/f2fs.h:2178 [inline] f2fs_balance_fs+0x4a7/0x680 fs/f2fs/segment.c:428 f2fs_map_blocks+0x2e06/0x3840 fs/f2fs/data.c:1751 expand_inode_data+0x4ab/0x870 fs/f2fs/file.c:1805 f2fs_fallocate+0x4c3/0x950 fs/f2fs/file.c:1908 vfs_fallocate+0x584/0x6f0 fs/open.c:323 ksys_fallocate fs/open.c:346 [inline] __do_sys_fallocate fs/open.c:354 [inline] __se_sys_fallocate fs/open.c:352 [inline] __x64_sys_fallocate+0xbd/0x100 fs/open.c:352 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f0d9778e9a9 RSP: 002b:00007f0d9855e038 EFLAGS: 00000246 ORIG_RAX: 000000000000011d RAX: ffffffffffffffda RBX: 00007f0d979b5fa0 RCX: 00007f0d9778e9a9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 00007f0d97810d69 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000009000f4 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f0d979b5fa0 R15: 00007ffc299b9638 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8cb2b7b0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x33/0xf00 kernel/rcu/tasks.h:517 1 lock held by rcu_tasks_trace/13: #0: ffffffff8cb2bfd0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x33/0xf00 kernel/rcu/tasks.h:517 1 lock held by khungtaskd/27: #0: ffffffff8cb2ae20 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline] #0: ffffffff8cb2ae20 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:791 [inline] #0: ffffffff8cb2ae20 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x51/0x290 kernel/locking/lockdep.c:6513 4 locks held by kworker/u4:2/34: #0: ffff888017616938 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x7a1/0x1160 kernel/workqueue.c:2267 #1: ffffc90000ab7d00 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x7a1/0x1160 kernel/workqueue.c:2267 #2: ffffffff8dd332d0 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x132/0xb80 net/core/net_namespace.c:594 #3: ffffffff8cb309c0 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x48/0x600 kernel/rcu/tree.c:4023 2 locks held by getty/4033: #0: ffff8880304a4098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc9000327b2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x41b/0x1380 drivers/tty/n_tty.c:2198 2 locks held by kworker/1:16/5695: #0: ffff888017472138 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x7a1/0x1160 kernel/workqueue.c:2267 #1: ffffc90006277d00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x7a1/0x1160 kernel/workqueue.c:2267 3 locks held by kworker/1:17/5696: #0: ffff888017470938 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x7a1/0x1160 kernel/workqueue.c:2267 #1: ffffc90006287d00 (free_ipc_work){+.+.}-{0:0}, at: process_one_work+0x7a1/0x1160 kernel/workqueue.c:2267 #2: ffffffff8cb30af8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:323 [inline] #2: ffffffff8cb30af8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x346/0x830 kernel/rcu/tree_exp.h:962 4 locks held by kworker/u4:18/7003: #0: ffff888019aee938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x7a1/0x1160 kernel/workqueue.c:2267 #1: ffffc90003ae7d00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7a1/0x1160 kernel/workqueue.c:2267 #2: ffff8880568be0e0 (&type->s_umount_key#76){++++}-{3:3}, at: trylock_super+0x1c/0xf0 fs/super.c:415 #3: ffff8880582351e8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_down_write fs/f2fs/f2fs.h:2178 [inline] #3: ffff8880582351e8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x4a7/0x680 fs/f2fs/segment.c:428 4 locks held by syz.1.885/8065: #0: ffff8880568be460 (sb_writers#26){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:3015 [inline] #0: ffff8880568be460 (sb_writers#26){.+.+}-{0:0}, at: vfs_fallocate+0x4f1/0x6f0 fs/open.c:322 #1: ffff888056e5d130 (&sb->s_type->i_mutex_key#34){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #1: ffff888056e5d130 (&sb->s_type->i_mutex_key#34){+.+.}-{3:3}, at: f2fs_fallocate+0x21e/0x950 fs/f2fs/file.c:1873 #2: ffff888058235330 (&sbi->pin_sem){+.+.}-{3:3}, at: f2fs_down_write fs/f2fs/f2fs.h:2178 [inline] #2: ffff888058235330 (&sbi->pin_sem){+.+.}-{3:3}, at: expand_inode_data+0x462/0x870 fs/f2fs/file.c:1798 #3: ffff8880582351e8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_down_write fs/f2fs/f2fs.h:2178 [inline] #3: ffff8880582351e8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x4a7/0x680 fs/f2fs/segment.c:428 3 locks held by syz.1.885/8109: 1 lock held by syz.2.1092/8690: #0: ffffffff8dd3ff68 (rtnl_mutex){+.+.}-{3:3}, at: tun_detach drivers/net/tun.c:698 [inline] #0: ffffffff8dd3ff68 (rtnl_mutex){+.+.}-{3:3}, at: tun_chr_close+0x3d/0x1b0 drivers/net/tun.c:3492 2 locks held by syz.9.1265/9259: #0: ffff8880568be0e0 (&type->s_umount_key#76){++++}-{3:3}, at: iterate_supers+0xa4/0x1d0 fs/super.c:755 #1: ffff8881437c07d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:362 [inline] #1: ffff8881437c07d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x19c/0x9e0 fs/fs-writeback.c:2737 2 locks held by syz.9.1265/9263: #0: ffff8880568be0e0 (&type->s_umount_key#76){++++}-{3:3}, at: iterate_supers+0xa4/0x1d0 fs/super.c:755 #1: ffff8881437c07d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:362 [inline] #1: ffff8881437c07d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x19c/0x9e0 fs/fs-writeback.c:2737 2 locks held by syz.3.1644/10401: #0: ffff8880568be0e0 (&type->s_umount_key#76){++++}-{3:3}, at: iterate_supers+0xa4/0x1d0 fs/super.c:755 #1: ffff8881437c07d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:362 [inline] #1: ffff8881437c07d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x19c/0x9e0 fs/fs-writeback.c:2737 1 lock held by syz-executor/10544: #0: ffffffff8cb30af8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:323 [inline] #0: ffffffff8cb30af8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x346/0x830 kernel/rcu/tree_exp.h:962 3 locks held by syz.6.1699/10562: #0: ffff8880781910b8 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close net/bluetooth/hci_core.c:508 [inline] #0: ffff8880781910b8 (&hdev->req_lock){+.+.}-{3:3}, at: hci_unregister_dev+0x1fa/0x4f0 net/bluetooth/hci_core.c:2705 #1: ffff888078190078 (&hdev->lock){+.+.}-{3:3}, at: hci_dev_close_sync+0x458/0xf40 net/bluetooth/hci_sync.c:5171 #2: ffffffff8de9d408 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_disconn_cfm include/net/bluetooth/hci_core.h:1799 [inline] #2: ffffffff8de9d408 (hci_cb_list_lock){+.+.}-{3:3}, at: hci_conn_hash_flush+0xac/0x290 net/bluetooth/hci_conn.c:2503 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 27 Comm: khungtaskd Not tainted 6.1.146-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Call Trace: dump_stack_lvl+0x168/0x22e lib/dump_stack.c:106 nmi_cpu_backtrace+0x3f4/0x470 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x1d4/0x450 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+0xeee/0xf30 kernel/hung_task.c:377 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 15 Comm: ksoftirqd/0 Not tainted 6.1.146-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 RIP: 0010:memset_erms+0x9/0x10 arch/x86/lib/memset_64.S:64 Code: c1 e9 03 40 0f b6 f6 48 b8 01 01 01 01 01 01 01 01 48 0f af c6 f3 48 ab 89 d1 f3 aa 4c 89 c8 c3 90 49 89 f9 40 88 f0 48 89 d1 aa 4c 89 c8 c3 90 49 89 fa 40 0f b6 ce 48 b8 01 01 01 01 01 01 RSP: 0018:ffffc900001476f8 EFLAGS: 00010202 RAX: 0000000000000000 RBX: ffff8880235e1208 RCX: 0000000000000180 RDX: 0000000000000200 RSI: 0000000000000000 RDI: ffffc90000147780 RBP: ffffc90000147928 R08: dffffc0000000000 R09: ffffc90000147700 R10: 0000000000000000 R11: 0000000000000040 R12: 0000000000000000 R13: ffffc900001479d8 R14: 0000000000000800 R15: ffffc90000147700 FS: 0000000000000000(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000559f46754000 CR3: 0000000027743000 CR4: 00000000003506f0 Call Trace: kasan_save_stack mm/kasan/common.c:42 [inline] kasan_set_track+0x3c/0x70 mm/kasan/common.c:52 kasan_save_free_info+0x2d/0x50 mm/kasan/generic.c:516 ____kasan_slab_free+0x126/0x1e0 mm/kasan/common.c:236 kasan_slab_free include/linux/kasan.h:177 [inline] slab_free_hook mm/slub.c:1724 [inline] slab_free_freelist_hook+0x131/0x1a0 mm/slub.c:1750 slab_free mm/slub.c:3661 [inline] __kmem_cache_free+0xb6/0x1f0 mm/slub.c:3674 free_workqueue_attrs kernel/workqueue.c:3381 [inline] rcu_free_wq+0xd4/0x110 kernel/workqueue.c:3532 rcu_do_batch kernel/rcu/tree.c:2297 [inline] rcu_core+0x9c0/0x16a0 kernel/rcu/tree.c:2557 handle_softirqs+0x2a1/0x920 kernel/softirq.c:596 run_ksoftirqd+0x98/0xf0 kernel/softirq.c:963 smpboot_thread_fn+0x64a/0xa40 kernel/smpboot.c:164 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295