INFO: task syz-executor.4:28377 blocked for more than 143 seconds. Not tainted 6.5.0-rc7-syzkaller-00018-g89bf6209cad6 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:24040 pid:28377 ppid:5062 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5381 [inline] __schedule+0x1873/0x48f0 kernel/sched/core.c:6710 schedule+0xc3/0x180 kernel/sched/core.c:6786 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6845 rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306 inode_lock include/linux/fs.h:771 [inline] f2fs_ioc_commit_atomic_write fs/f2fs/file.c:2160 [inline] __f2fs_ioctl+0x3597/0xb770 fs/f2fs/file.c:4199 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xf8/0x170 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7feec887cae9 RSP: 002b:00007feec96a40c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007feec899bf80 RCX: 00007feec887cae9 RDX: 0000000000000000 RSI: 000000000000f502 RDI: 0000000000000005 RBP: 00007feec88c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007feec899bf80 R15: 00007ffee842b318 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/13: #0: ffffffff8d3295f0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:522 1 lock held by rcu_tasks_trace/14: #0: ffffffff8d3299b0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:522 1 lock held by khungtaskd/28: #0: ffffffff8d329420 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by getty/4767: #0: ffff88802d8a2098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900015a02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b1/0x1dc0 drivers/tty/n_tty.c:2187 4 locks held by kworker/u4:7/5149: #0: ffff888144e6e938 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x7e3/0x12c0 kernel/workqueue.c:2572 #1: ffffc90004ebfd00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x82b/0x12c0 kernel/workqueue.c:2574 #2: ffff88803e0460e0 (&type->s_umount_key#58){++++}-{3:3}, at: trylock_super+0x1f/0xf0 fs/super.c:413 #3: ffff88802332d2a8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_down_write fs/f2fs/f2fs.h:2133 [inline] #3: ffff88802332d2a8 (&sbi->gc_lock){+.+.}-{3:3}, at: f2fs_balance_fs+0x51a/0x6f0 fs/f2fs/segment.c:435 2 locks held by kworker/0:21/10287: #0: ffff888012872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x7e3/0x12c0 kernel/workqueue.c:2572 #1: ffffc900153c7d00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x82b/0x12c0 kernel/workqueue.c:2574 2 locks held by syz-executor.4/28377: #0: ffff88803e046410 (sb_writers#17){.+.+}-{0:0}, at: mnt_want_write_file+0x61/0x200 fs/namespace.c:447 #1: ffff888087cfbf38 (&sb->s_type->i_mutex_key#24){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:771 [inline] #1: ffff888087cfbf38 (&sb->s_type->i_mutex_key#24){+.+.}-{3:3}, at: f2fs_ioc_commit_atomic_write fs/f2fs/file.c:2160 [inline] #1: ffff888087cfbf38 (&sb->s_type->i_mutex_key#24){+.+.}-{3:3}, at: __f2fs_ioctl+0x3597/0xb770 fs/f2fs/file.c:4199 6 locks held by syz-executor.4/28407: 2 locks held by syz-executor.1/30260: #0: ffff88801876a0e0 (&type->s_umount_key#23/1){+.+.}-{3:3}, at: alloc_super+0x217/0x920 fs/super.c:228 #1: ffffffff8d32eab8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:325 [inline] ffffffff8d32eab8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x46c/0x890 kernel/rcu/tree_exp.h:992 1 lock held by syz-executor.0/30267: #0: ffff888021d5a0e0 (&type->s_umount_key#23/1){+.+.}-{3:3}, at: alloc_super+0x217/0x920 fs/super.c:228 1 lock held by syz-executor.3/30281: 1 lock held by syz-executor.2/30283: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.5.0-rc7-syzkaller-00018-g89bf6209cad6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x498/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x187/0x300 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xec2/0xf00 kernel/hung_task.c:379 kthread+0x2b8/0x350 kernel/kthread.c:389 ret_from_fork+0x2e/0x60 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 21334 Comm: kworker/u4:4 Not tainted 6.5.0-rc7-syzkaller-00018-g89bf6209cad6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 Workqueue: bat_events batadv_nc_worker RIP: 0010:check_preemption_disabled+0x19/0x110 lib/smp_processor_id.c:14 Code: ad 58 8b eb 0c 66 2e 0f 1f 84 00 00 00 00 00 66 90 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> 8b 1d 2c ca 46 75 65 8b 05 21 ca 46 75 a9 ff ff ff 7f 74 22 65 RSP: 0018:ffffc900167bfa48 EFLAGS: 00000086 RAX: ccbe0b0efea42c00 RBX: 0000000000000246 RCX: ffffffff816b93c0 RDX: 0000000000000000 RSI: ffffffff8b0aa540 RDI: ffffffff8b58ade0 RBP: ffffc900167bfba8 R08: ffffffff8e9877ef R09: 1ffffffff1d30efd R10: dffffc0000000000 R11: fffffbfff1d30efe R12: 1ffff92002cf7f5c R13: ffffffff8a8d3e15 R14: ffffc900167bfb30 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f422a3fe000 CR3: 0000000073aa2000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lockdep_recursion_inc kernel/locking/lockdep.c:462 [inline] lock_release+0x187/0x9d0 kernel/locking/lockdep.c:5780 rcu_read_unlock include/linux/rcupdate.h:782 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:412 [inline] batadv_nc_worker+0x23d/0x5c0 net/batman-adv/network-coding.c:719 process_one_work+0x92c/0x12c0 kernel/workqueue.c:2600 worker_thread+0xa63/0x1210 kernel/workqueue.c:2751 kthread+0x2b8/0x350 kernel/kthread.c:389 ret_from_fork+0x2e/0x60 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304