INFO: task syz-executor.4:25177 blocked for more than 143 seconds. Not tainted 6.6.0-rc7-syzkaller-00018-gd88520ad73b7 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.4 state:D stack:22520 pid:25177 ppid:5060 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0x196c/0x4af0 kernel/sched/core.c:6695 schedule+0xc3/0x180 kernel/sched/core.c:6771 io_schedule+0x8c/0x100 kernel/sched/core.c:9026 folio_wait_bit_common+0x881/0x12a0 mm/filemap.c:1301 folio_wait_writeback+0xe7/0x1e0 mm/page-writeback.c:3068 __filemap_fdatawait_range+0x17b/0x400 mm/filemap.c:525 filemap_write_and_wait_range+0x220/0x2c0 mm/filemap.c:687 direct_write_fallback+0xae/0x150 fs/libfs.c:1900 generic_file_write_iter+0xaf/0x310 mm/filemap.c:4090 call_write_iter include/linux/fs.h:1956 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x782/0xaf0 fs/read_write.c:584 ksys_write+0x1a0/0x2c0 fs/read_write.c:637 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:0x7fd49107cae9 RSP: 002b:00007fd491db70c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fd49119bf80 RCX: 00007fd49107cae9 RDX: 0000000002007ffb RSI: 0000000020000040 RDI: 0000000000000004 RBP: 00007fd4910c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fd49119bf80 R15: 00007fff2188b858 Showing all locks held in the system: 1 lock held by khungtaskd/29: #0: ffffffff8d32c460 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:303 [inline] #0: ffffffff8d32c460 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:749 [inline] #0: ffffffff8d32c460 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6613 1 lock held by syslogd/4464: #0: ffff8880b983c318 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:558 2 locks held by getty/4784: #0: ffff8880266ce0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc900031332f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b1/0x1dc0 drivers/tty/n_tty.c:2206 4 locks held by syz-executor.1/5062: 1 lock held by syz-executor.3/5068: 2 locks held by kworker/1:5/5161: #0: ffff888012872938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #0: ffff888012872938 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 kernel/workqueue.c:2703 #1: ffffc90004797d20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:2605 [inline] #1: ffffc90004797d20 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_scheduled_works+0x825/0x1400 kernel/workqueue.c:2703 2 locks held by syz-executor.5/8377: 4 locks held by kworker/1:3/1629: 3 locks held by syz-executor.4/25177: #0: ffff8880249bb9c8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x2b0/0x340 fs/file.c:1064 #1: ffff888032384410 (sb_writers#31){.+.+}-{0:0}, at: vfs_write+0x216/0xaf0 fs/read_write.c:580 #2: ffff88808a859c48 (&sb->s_type->i_mutex_key#36){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:802 [inline] #2: ffff88808a859c48 (&sb->s_type->i_mutex_key#36){+.+.}-{3:3}, at: generic_file_write_iter+0x83/0x310 mm/filemap.c:4087 2 locks held by kworker/u4:3/26598: 1 lock held by syz-executor.0/27374: #0: ffff88803323a0e0 (&type->s_umount_key#52){++++}-{3:3}, at: xfs_open_devices+0x4ff/0x550 fs/xfs/xfs_super.c:491 2 locks held by syz-executor.1/27383: 3 locks held by syz-executor.3/27390: 2 locks held by syz-executor.2/27388: ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.6.0-rc7-syzkaller-00018-gd88520ad73b7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/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+0x198/0x310 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+0xfa9/0xff0 kernel/hung_task.c:379 kthread+0x2d3/0x370 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 26598 Comm: kworker/u4:3 Not tainted 6.6.0-rc7-syzkaller-00018-gd88520ad73b7 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023 Workqueue: bat_events batadv_purge_orig RIP: 0010:lock_acquire+0xf2/0x520 kernel/locking/lockdep.c:5726 Code: 99 8e be 08 00 00 00 e8 0c b9 7b 00 48 0f a3 1d 8c 63 2c 0d 73 0d e8 dd 83 09 00 84 c0 0f 84 bb 02 00 00 48 c7 c0 cc 9d 99 8e <48> c1 e8 03 42 0f b6 04 28 84 c0 0f 85 df 02 00 00 83 3d 02 98 2c RSP: 0018:ffffc90016c17900 EFLAGS: 00000202 RAX: ffffffff8e999dcc RBX: 0000000000000001 RCX: ffffffff816d0594 RDX: 0000000000000000 RSI: ffffffff8b598680 RDI: ffffffff8b598640 RBP: ffffc90016c17a50 R08: ffffffff8e99692f R09: 1ffffffff1d32d25 R10: dffffc0000000000 R11: fffffbfff1d32d26 R12: 1ffff92002d82f28 R13: dffffc0000000000 R14: 0000000000000000 R15: ffffffff815cac55 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fcb7588c001 CR3: 000000002e078000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_bh+0x35/0x50 kernel/locking/spinlock.c:178 spin_lock_bh include/linux/spinlock.h:356 [inline] batadv_purge_orig_ref+0x1be/0x1600 net/batman-adv/originator.c:1243 batadv_purge_orig+0x19/0x60 net/batman-adv/originator.c:1272 process_one_work kernel/workqueue.c:2630 [inline] process_scheduled_works+0x90f/0x1400 kernel/workqueue.c:2703 worker_thread+0xa5f/0xff0 kernel/workqueue.c:2784 kthread+0x2d3/0x370 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304