INFO: task syz-executor.3:4639 blocked for more than 143 seconds. Not tainted 6.0.0-rc6-syzkaller-00045-gdc164f4fb00a #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.3 state:D stack:27568 pid: 4639 ppid: 3684 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5182 [inline] __schedule+0x91f/0xdf0 kernel/sched/core.c:6494 schedule+0xcb/0x190 kernel/sched/core.c:6570 rwsem_down_write_slowpath+0xf1c/0x1350 kernel/locking/rwsem.c:1182 __down_write_common kernel/locking/rwsem.c:1297 [inline] __down_write kernel/locking/rwsem.c:1306 [inline] down_write+0x163/0x170 kernel/locking/rwsem.c:1553 inode_lock include/linux/fs.h:756 [inline] __generic_file_fsync+0x96/0x190 fs/libfs.c:1119 generic_file_fsync+0x6f/0xe0 fs/libfs.c:1156 vfs_fsync_range fs/sync.c:188 [inline] vfs_fsync fs/sync.c:202 [inline] do_fsync fs/sync.c:212 [inline] __do_sys_fdatasync fs/sync.c:225 [inline] __se_sys_fdatasync fs/sync.c:223 [inline] __x64_sys_fdatasync+0xb1/0x100 fs/sync.c:223 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f94e288a669 RSP: 002b:00007f94e3aa3168 EFLAGS: 00000246 ORIG_RAX: 000000000000004b RAX: ffffffffffffffda RBX: 00007f94e29ac050 RCX: 00007f94e288a669 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000005 RBP: 00007f94e28e5560 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffef66d8b8f R14: 00007f94e3aa3300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8cb233f0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507 1 lock held by rcu_tasks_trace/13: #0: ffffffff8cb23bf0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507 1 lock held by khungtaskd/28: #0: ffffffff8cb23220 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 3 locks held by kworker/u4:3/52: 2 locks held by getty/3278: #0: ffff88814ad9b098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc90002d232f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x53b/0x1650 drivers/tty/n_tty.c:2177 1 lock held by syz-executor.4/3625: #0: ffffffff8cb28838 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:292 [inline] #0: ffffffff8cb28838 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x291/0x720 kernel/rcu/tree_exp.h:940 2 locks held by syz-executor.3/4635: 1 lock held by syz-executor.3/4639: #0: ffff88805ea386e0 (&type->i_mutex_dir_key#11){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:756 [inline] #0: ffff88805ea386e0 (&type->i_mutex_dir_key#11){+.+.}-{3:3}, at: __generic_file_fsync+0x96/0x190 fs/libfs.c:1119 2 locks held by kworker/0:12/5251: #0: ffff888012066538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x7f2/0xdb0 #1: ffffc9000bdb7d00 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x831/0xdb0 kernel/workqueue.c:2264 1 lock held by syz-executor.5/9564: #0: ffffffff8cb28838 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:324 [inline] #0: ffffffff8cb28838 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x365/0x720 kernel/rcu/tree_exp.h:940 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.0.0-rc6-syzkaller-00045-gdc164f4fb00a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1b1/0x28e lib/dump_stack.c:106 nmi_cpu_backtrace+0x425/0x450 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x169/0x280 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:212 [inline] watchdog+0xcd5/0xd20 kernel/hung_task.c:369 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 52 Comm: kworker/u4:3 Not tainted 6.0.0-rc6-syzkaller-00045-gdc164f4fb00a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022 Workqueue: bat_events batadv_iv_send_outstanding_bat_ogm_packet RIP: 0010:__lock_acquire+0x81f/0x1f60 kernel/locking/lockdep.c:5003 Code: 45 00 41 38 c5 41 0f b6 cd 41 89 c5 44 0f 42 e9 84 c0 44 0f 44 e9 49 ff c6 48 8b 44 24 38 0f b6 04 10 84 c0 0f 85 c2 00 00 00 <48> 8b 44 24 08 48 63 00 48 83 c3 28 49 83 c7 28 41 ff c4 49 39 c6 RSP: 0018:ffffc90000bd7808 EFLAGS: 00000046 RAX: 0000000000000000 RBX: ffff888018a20ac0 RCX: 0000000000000004 RDX: dffffc0000000000 RSI: 0000000000000008 RDI: ffffffff8fe07128 RBP: ffffffff8fb569f8 R08: dffffc0000000000 R09: fffffbfff1fc0e26 R10: fffffbfff1fc0e26 R11: 1ffffffff1fc0e25 R12: 0000000000000001 R13: 0000000000000004 R14: 0000000000000002 R15: ffff888018a20ac0 FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c00c1c6000 CR3: 000000004ea70000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire+0x182/0x3c0 kernel/locking/lockdep.c:5666 rcu_lock_acquire+0x2a/0x30 include/linux/rcupdate.h:280 rcu_read_lock include/linux/rcupdate.h:706 [inline] batadv_iv_ogm_slide_own_bcast_window net/batman-adv/bat_iv_ogm.c:755 [inline] batadv_iv_ogm_schedule_buff net/batman-adv/bat_iv_ogm.c:826 [inline] batadv_iv_ogm_schedule+0x422/0x1020 net/batman-adv/bat_iv_ogm.c:869 batadv_iv_send_outstanding_bat_ogm_packet+0x741/0x850 net/batman-adv/bat_iv_ogm.c:1713 process_one_work+0x877/0xdb0 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30