INFO: task syz-executor.1:5065 blocked for more than 143 seconds. Not tainted 6.4.0-rc7-next-20230621-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:24464 pid:5065 ppid:1 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5381 [inline] __schedule+0x1d15/0x5780 kernel/sched/core.c:6710 schedule+0xde/0x1a0 kernel/sched/core.c:6786 wb_wait_for_completion+0x182/0x240 fs/fs-writeback.c:192 sync_inodes_sb+0x1aa/0xa60 fs/fs-writeback.c:2736 sync_filesystem.part.0+0xe6/0x1d0 fs/sync.c:64 sync_filesystem+0x8f/0xc0 fs/sync.c:43 generic_shutdown_super+0x74/0x480 fs/super.c:472 kill_block_super+0x64/0xb0 fs/super.c:1417 deactivate_locked_super+0x98/0x160 fs/super.c:330 deactivate_super+0xb1/0xd0 fs/super.c:361 cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1254 task_work_run+0x16f/0x270 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0x210/0x240 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:297 do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f00f8c8d7f7 RSP: 002b:00007fffe8004198 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f00f8c8d7f7 RDX: 00007fffe800426b RSI: 000000000000000a RDI: 00007fffe8004260 RBP: 00007fffe8004260 R08: 00000000ffffffff R09: 00007fffe8004030 R10: 0000555555eb8893 R11: 0000000000000246 R12: 00007f00f8cd643b R13: 00007fffe8005320 R14: 0000555555eb8810 R15: 00007fffe8005360 Showing all locks held in the system: 5 locks held by kworker/u4:0/10: 1 lock held by rcu_tasks_kthre/13: #0: ffffffff8c9a1d70 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xe60 kernel/rcu/tasks.h:568 1 lock held by rcu_tasks_trace/14: #0: ffffffff8c9a1a30 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xe60 kernel/rcu/tasks.h:568 1 lock held by khungtaskd/28: #0: ffffffff8c9a2980 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x51/0x390 kernel/locking/lockdep.c:6615 1 lock held by klogd/4471: #0: ffff8880b993c458 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2f/0x120 kernel/sched/core.c:558 2 locks held by getty/4779: #0: ffff88802d432098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:243 #1: ffffc900015c02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xf08/0x13f0 drivers/tty/n_tty.c:2187 2 locks held by syz-executor.1/5065: #0: ffff88805ab4c0e0 (&type->s_umount_key#48){++++}-{3:3}, at: deactivate_super+0xa9/0xd0 fs/super.c:360 #1: ffffffff8c9ae138 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:293 [inline] #1: ffffffff8c9ae138 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x64a/0x770 kernel/rcu/tree_exp.h:992 2 locks held by kworker/0:10/11021: #0: ffff888012872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:20 [inline] #0: ffff888012872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: raw_atomic64_set include/linux/atomic/atomic-arch-fallback.h:2608 [inline] #0: ffff888012872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: raw_atomic_long_set include/linux/atomic/atomic-long.h:79 [inline] #0: ffff888012872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:3196 [inline] #0: ffff888012872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:675 [inline] #0: ffff888012872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:702 [inline] #0: ffff888012872538 ((wq_completion)rcu_gp){+.+.}-{0:0}, at: process_one_work+0x8fd/0x16f0 kernel/workqueue.c:2564 #1: ffffc9000af57db0 ((work_completion)(&rew->rew_work)){+.+.}-{0:0}, at: process_one_work+0x930/0x16f0 kernel/workqueue.c:2568 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.4.0-rc7-next-20230621-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 nmi_cpu_backtrace+0x29c/0x350 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x2a4/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+0xe16/0x1090 kernel/hung_task.c:379 kthread+0x344/0x440 kernel/kthread.c:389 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 12 Comm: kworker/u4:1 Not tainted 6.4.0-rc7-next-20230621-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 Workqueue: bat_events batadv_nc_worker RIP: 0010:find_held_lock+0x0/0x110 kernel/locking/lockdep.c:5244 Code: d6 f8 72 00 e9 61 fe ff ff e8 3c af b8 08 e8 c7 f8 72 00 e9 f9 fe ff ff e8 bd f8 72 00 e9 18 ff ff ff e8 b3 f8 72 00 eb 9a 90 <41> 57 44 8d 7a ff 49 63 c7 41 56 49 89 ce 48 8d 04 80 41 55 49 89 RSP: 0018:ffffc90000117bc0 EFLAGS: 00000006 RAX: 0000000000000000 RBX: 0000000000000003 RCX: ffffc90000117c18 RDX: 0000000000000003 RSI: ffffffff8c9a2980 RDI: ffff888016255940 RBP: 1ffff92000022f7b R08: 0000000000000001 R09: fffffbfff1d54582 R10: ffffffff8eaa2c17 R11: 0000000000000001 R12: ffffffff8c9a2980 R13: ffff888016256400 R14: 0000000000000003 R15: ffff888016255940 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c0005a6000 CR3: 0000000029b24000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __lock_release kernel/locking/lockdep.c:5436 [inline] lock_release+0x1f5/0x670 kernel/locking/lockdep.c:5781 rcu_lock_release include/linux/rcupdate.h:307 [inline] rcu_read_unlock include/linux/rcupdate.h:781 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:412 [inline] batadv_nc_worker+0x86c/0xfe0 net/batman-adv/network-coding.c:719 process_one_work+0xa34/0x16f0 kernel/workqueue.c:2594 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2745 kthread+0x344/0x440 kernel/kthread.c:389 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308