INFO: task syz-executor.0:2607 blocked for more than 143 seconds. Not tainted 6.3.0-rc7-syzkaller-00043-gaf67688dca57 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:26952 pid:2607 ppid:5096 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5307 [inline] __schedule+0x173b/0x4630 kernel/sched/core.c:6625 schedule+0xc3/0x180 kernel/sched/core.c:6701 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6760 rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306 lock_rename+0x186/0x1a0 do_renameat2+0x549/0x13c0 fs/namei.c:4864 __do_sys_renameat2 fs/namei.c:4956 [inline] __se_sys_renameat2 fs/namei.c:4953 [inline] __x64_sys_renameat2+0xd2/0xe0 fs/namei.c:4953 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:0x7f3f63e8c169 RSP: 002b:00007f3f64c8c168 EFLAGS: 00000246 ORIG_RAX: 000000000000013c RAX: ffffffffffffffda RBX: 00007f3f63fac050 RCX: 00007f3f63e8c169 RDX: 0000000000000004 RSI: 0000000020000180 RDI: 0000000000000004 RBP: 00007f3f63ee7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000020000380 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc1cd3913f R14: 00007f3f64c8c300 R15: 0000000000022000 INFO: task syz-executor.0:2609 blocked for more than 143 seconds. Not tainted 6.3.0-rc7-syzkaller-00043-gaf67688dca57 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:26976 pid:2609 ppid:5096 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5307 [inline] __schedule+0x173b/0x4630 kernel/sched/core.c:6625 schedule+0xc3/0x180 kernel/sched/core.c:6701 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6760 rwsem_down_write_slowpath+0xedd/0x13a0 kernel/locking/rwsem.c:1178 __down_write_common+0x1aa/0x200 kernel/locking/rwsem.c:1306 inode_lock_nested include/linux/fs.h:793 [inline] ext4_rename fs/ext4/namei.c:3821 [inline] ext4_rename2+0x106b/0x4400 fs/ext4/namei.c:4200 vfs_rename+0xb1b/0xfa0 fs/namei.c:4772 do_renameat2+0xb9b/0x13c0 fs/namei.c:4923 __do_sys_rename fs/namei.c:4969 [inline] __se_sys_rename fs/namei.c:4967 [inline] __x64_sys_rename+0x86/0x90 fs/namei.c:4967 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:0x7f3f63e8c169 RSP: 002b:00007f3f64c6b168 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007f3f63fac120 RCX: 00007f3f63e8c169 RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000020000200 RBP: 00007f3f63ee7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc1cd3913f R14: 00007f3f64c6b300 R15: 0000000000022000 INFO: task syz-executor.0:2612 blocked for more than 144 seconds. Not tainted 6.3.0-rc7-syzkaller-00043-gaf67688dca57 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:28024 pid:2612 ppid:5096 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5307 [inline] __schedule+0x173b/0x4630 kernel/sched/core.c:6625 schedule+0xc3/0x180 kernel/sched/core.c:6701 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6760 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:758 [inline] open_last_lookups fs/namei.c:3481 [inline] path_openat+0x7ba/0x3170 fs/namei.c:3712 do_filp_open+0x234/0x490 fs/namei.c:3742 do_sys_openat2+0x13f/0x500 fs/open.c:1348 do_sys_open fs/open.c:1364 [inline] __do_sys_creat fs/open.c:1440 [inline] __se_sys_creat fs/open.c:1434 [inline] __x64_sys_creat+0x123/0x160 fs/open.c:1434 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:0x7f3f63e8c169 RSP: 002b:00007f3f64c4a168 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f3f63fac1f0 RCX: 00007f3f63e8c169 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000140 RBP: 00007f3f63ee7ca1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc1cd3913f R14: 00007f3f64c4a300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8cf25570 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:510 1 lock held by rcu_tasks_trace/13: #0: ffffffff8cf25d70 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xd20 kernel/rcu/tasks.h:510 1 lock held by khungtaskd/28: #0: ffffffff8cf253a0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by syslogd/4410: #0: ffff8880b983be98 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2a/0x140 kernel/sched/core.c:539 #1: ffff88807e8dbfb0 (&mm->cid_lock){....}-{2:2}, at: mm_cid_put kernel/sched/sched.h:3270 [inline] #1: ffff88807e8dbfb0 (&mm->cid_lock){....}-{2:2}, at: switch_mm_cid kernel/sched/sched.h:3298 [inline] #1: ffff88807e8dbfb0 (&mm->cid_lock){....}-{2:2}, at: prepare_task_switch kernel/sched/core.c:5117 [inline] #1: ffff88807e8dbfb0 (&mm->cid_lock){....}-{2:2}, at: context_switch kernel/sched/core.c:5258 [inline] #1: ffff88807e8dbfb0 (&mm->cid_lock){....}-{2:2}, at: __schedule+0x11e1/0x4630 kernel/sched/core.c:6625 2 locks held by getty/4743: #0: ffff88814a5e9098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900015b02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6ab/0x1db0 drivers/tty/n_tty.c:2177 2 locks held by syz-fuzzer/6515: #0: ffff88807b38dc68 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x254/0x2f0 fs/file.c:1047 #1: ffff888021ad2218 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: iterate_dir+0x10e/0x570 fs/readdir.c:55 4 locks held by syz-executor.0/2607: #0: ffff88802c392460 (sb_writers#4){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:394 #1: ffff88802c392748 (&type->s_vfs_rename_key){+.+.}-{3:3}, at: lock_rename+0x58/0x1a0 fs/namei.c:2995 #2: ffff888035ed8400 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: lock_rename+0x13e/0x1a0 #3: ffff88807989a218 (&type->i_mutex_dir_key#3/5){+.+.}-{3:3}, at: lock_rename+0x186/0x1a0 4 locks held by syz-executor.0/2609: #0: ffff88802c392460 (sb_writers#4){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:394 #1: ffff888021ad2218 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: lock_rename+0x186/0x1a0 #2: ffff88807989a218 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #2: ffff88807989a218 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: vfs_rename+0x617/0xfa0 fs/namei.c:4744 #3: ffff888035ed8400 (&type->i_mutex_dir_key#3/4){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:793 [inline] #3: ffff888035ed8400 (&type->i_mutex_dir_key#3/4){+.+.}-{3:3}, at: ext4_rename fs/ext4/namei.c:3821 [inline] #3: ffff888035ed8400 (&type->i_mutex_dir_key#3/4){+.+.}-{3:3}, at: ext4_rename2+0x106b/0x4400 fs/ext4/namei.c:4200 2 locks held by syz-executor.0/2612: #0: ffff88802c392460 (sb_writers#4){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:394 #1: ffff88807989a218 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #1: ffff88807989a218 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: open_last_lookups fs/namei.c:3481 [inline] #1: ffff88807989a218 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: path_openat+0x7ba/0x3170 fs/namei.c:3712 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.3.0-rc7-syzkaller-00043-gaf67688dca57 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/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:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xec2/0xf00 kernel/hung_task.c:379 kthread+0x270/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 5277 Comm: kworker/u4:7 Not tainted 6.3.0-rc7-syzkaller-00043-gaf67688dca57 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 Workqueue: bat_events batadv_nc_worker RIP: 0010:__lock_release kernel/locking/lockdep.c:5330 [inline] RIP: 0010:lock_release+0x1f4/0x9d0 kernel/locking/lockdep.c:5689 Code: 85 62 05 00 00 83 3d 6e 45 e9 0c 00 0f 84 d5 03 00 00 4d 8d b5 30 0a 00 00 4c 89 f0 48 c1 e8 03 48 89 44 24 48 42 0f b6 04 38 <84> c0 0f 85 61 05 00 00 41 8b 06 85 c0 0f 84 4d 02 00 00 4c 89 34 RSP: 0018:ffffc90004c07a00 EFLAGS: 00000802 RAX: 0000000000000000 RBX: 0000000000000246 RCX: ffffc90004c07a03 RDX: 1ffff92000980f50 RSI: ffffffff8aea8a80 RDI: ffffffff8b37fec0 RBP: ffffc90004c07b38 R08: dffffc0000000000 R09: fffffbfff1ca6946 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000980f4c R13: ffff888026a1d7c0 R14: ffff888026a1e1f0 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c014eb1208 CR3: 000000002221f000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __raw_spin_unlock_bh include/linux/spinlock_api_smp.h:165 [inline] _raw_spin_unlock_bh+0x1b/0x40 kernel/locking/spinlock.c:210 spin_unlock_bh include/linux/spinlock.h:395 [inline] batadv_nc_purge_paths+0x309/0x3a0 net/batman-adv/network-coding.c:471 batadv_nc_worker+0x30f/0x5c0 net/batman-adv/network-coding.c:722 process_one_work+0x8a0/0x10e0 kernel/workqueue.c:2390 worker_thread+0xa63/0x1210 kernel/workqueue.c:2537 kthread+0x270/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308