INFO: task syz.4.134:6629 blocked for more than 143 seconds. Not tainted 6.10.0-syzkaller-05505-gb1bc554e009e #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.4.134 state:D stack:26032 pid:6629 tgid:6585 ppid:5828 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5188 [inline] __schedule+0x17ae/0x4a10 kernel/sched/core.c:6529 __schedule_loop kernel/sched/core.c:6606 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6621 __bch2_two_state_lock+0x171/0x200 fs/bcachefs/two_state_shared_lock.c:7 bch2_two_state_lock fs/bcachefs/two_state_shared_lock.h:56 [inline] bch2_buffered_write fs/bcachefs/fs-io-buffered.c:1037 [inline] bch2_write_iter+0x410/0x2840 fs/bcachefs/fs-io-buffered.c:1136 do_iter_readv_writev+0x60a/0x890 vfs_writev+0x37c/0xbb0 fs/read_write.c:971 do_pwritev fs/read_write.c:1072 [inline] __do_sys_pwritev2 fs/read_write.c:1131 [inline] __se_sys_pwritev2+0x1ca/0x2d0 fs/read_write.c:1122 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff25bf75ad9 RSP: 002b:00007ff25cd98048 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007ff25c1041e8 RCX: 00007ff25bf75ad9 RDX: 0000000000000001 RSI: 0000000020000140 RDI: 0000000000000006 RBP: 00007ff25bfe4e5d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007ff25c1041e8 R15: 00007ffeba40d388 Showing all locks held in the system: 2 locks held by kworker/0:0/8: 1 lock held by khungtaskd/30: #0: ffffffff8e335fe0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:327 [inline] #0: ffffffff8e335fe0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:839 [inline] #0: ffffffff8e335fe0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6613 2 locks held by kworker/u8:2/35: #0: ffff888015089148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3206 [inline] #0: ffff888015089148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x90a/0x1830 kernel/workqueue.c:3312 #1: ffff8880b9428948 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x441/0x770 kernel/sched/psi.c:989 2 locks held by kworker/u8:5/144: 2 locks held by getty/4844: #0: ffff88802a75c0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90002efe2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b5/0x1e10 drivers/tty/n_tty.c:2211 3 locks held by syz.4.134/6586: #0: ffff88801ebdd4c8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x24e/0x310 fs/file.c:1191 #1: ffff88801f9b0420 (sb_writers#20){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2876 [inline] #1: ffff88801f9b0420 (sb_writers#20){.+.+}-{0:0}, at: vfs_write+0x227/0xc90 fs/read_write.c:586 #2: ffff8880778259c8 (&sb->s_type->i_mutex_key#26){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:799 [inline] #2: ffff8880778259c8 (&sb->s_type->i_mutex_key#26){+.+.}-{3:3}, at: bch2_direct_write+0x243/0x3050 fs/bcachefs/fs-io-direct.c:598 2 locks held by syz.4.134/6621: #0: ffff88802d2d39c8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x24e/0x310 fs/file.c:1191 #1: ffff88801f9b0420 (sb_writers#20){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2876 [inline] #1: ffff88801f9b0420 (sb_writers#20){.+.+}-{0:0}, at: vfs_write+0x227/0xc90 fs/read_write.c:586 2 locks held by syz.4.134/6623: #0: ffff88801f9b0420 (sb_writers#20){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2876 [inline] #0: ffff88801f9b0420 (sb_writers#20){.+.+}-{0:0}, at: vfs_fallocate+0x4ea/0x6c0 fs/open.c:333 #1: ffff888077825268 (&sb->s_type->i_mutex_key#26){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:799 [inline] #1: ffff888077825268 (&sb->s_type->i_mutex_key#26){+.+.}-{3:3}, at: bch2_fallocate_dispatch+0x295/0x3810 fs/bcachefs/fs-io.c:774 1 lock held by syz.4.134/6629: #0: ffff88801f9b0420 (sb_writers#20){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2876 [inline] #0: ffff88801f9b0420 (sb_writers#20){.+.+}-{0:0}, at: vfs_writev+0x2d4/0xbb0 fs/read_write.c:969 2 locks held by syz.2.221/7484: #0: ffff88801f9b00e0 (&type->s_umount_key#68){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline] #0: ffff88801f9b00e0 (&type->s_umount_key#68){++++}-{3:3}, at: super_lock+0x27c/0x400 fs/super.c:120 #1: ffff88801f9b0938 (&s->s_sync_lock){+.+.}-{3:3}, at: wait_sb_inodes fs/fs-writeback.c:2612 [inline] #1: ffff88801f9b0938 (&s->s_sync_lock){+.+.}-{3:3}, at: sync_inodes_sb+0x335/0xb20 fs/fs-writeback.c:2795 2 locks held by syz.2.315/8078: #0: ffff88801f9b00e0 (&type->s_umount_key#68){++++}-{3:3}, at: __super_lock fs/super.c:58 [inline] #0: ffff88801f9b00e0 (&type->s_umount_key#68){++++}-{3:3}, at: super_lock+0x27c/0x400 fs/super.c:120 #1: ffff88801f9b0938 (&s->s_sync_lock){+.+.}-{3:3}, at: wait_sb_inodes fs/fs-writeback.c:2612 [inline] #1: ffff88801f9b0938 (&s->s_sync_lock){+.+.}-{3:3}, at: sync_inodes_sb+0x335/0xb20 fs/fs-writeback.c:2795 1 lock held by syz-executor/8329: #0: ffffffff8e33b3b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:296 [inline] #0: ffffffff8e33b3b8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x381/0x830 kernel/rcu/tree_exp.h:958 2 locks held by syz.1.345/8659: 1 lock held by cmp/8711: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 30 Comm: khungtaskd Not tainted 6.10.0-syzkaller-05505-gb1bc554e009e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline] watchdog+0xfde/0x1020 kernel/hung_task.c:379 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 49 Comm: kworker/u8:3 Not tainted 6.10.0-syzkaller-05505-gb1bc554e009e #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Workqueue: bat_events batadv_nc_worker RIP: 0010:lock_acquire+0x0/0x550 kernel/locking/lockdep.c:5721 Code: 05 5d 48 91 7e a9 00 ff ff 00 0f 95 c0 c3 cc cc cc cc 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1e fa 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 RSP: 0018:ffffc90000b97b48 EFLAGS: 00000246 RAX: ffffffff8b4eefeb RBX: ffff8880120797c0 RCX: 0000000000000002 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8e335fe0 RBP: ffff88802ece4ae0 R08: 0000000000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: fffffbfff1f5a8c6 R12: ffff88804eefccc0 R13: 000000000000015c R14: ffff8880120797c0 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffc79121edc CR3: 000000000e134000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rcu_lock_acquire include/linux/rcupdate.h:327 [inline] rcu_read_lock include/linux/rcupdate.h:839 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:408 [inline] batadv_nc_worker+0xec/0x610 net/batman-adv/network-coding.c:719 process_one_work kernel/workqueue.c:3231 [inline] process_scheduled_works+0xa2c/0x1830 kernel/workqueue.c:3312 worker_thread+0x86d/0xd40 kernel/workqueue.c:3390 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244