INFO: task syz-executor.5:13212 blocked for more than 143 seconds. Not tainted 6.3.0-rc2-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:27824 pid:13212 ppid:11278 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5304 [inline] __schedule+0xc91/0x57d0 kernel/sched/core.c:6622 schedule+0xde/0x1a0 kernel/sched/core.c:6698 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6757 rwsem_down_write_slowpath+0x3e2/0x1220 kernel/locking/rwsem.c:1178 __down_write_common kernel/locking/rwsem.c:1306 [inline] __down_write kernel/locking/rwsem.c:1315 [inline] down_write_nested+0x1d6/0x200 kernel/locking/rwsem.c:1690 inode_lock_nested include/linux/fs.h:793 [inline] lock_rename+0x1e4/0x280 fs/namei.c:3012 do_renameat2+0x63d/0xc90 fs/namei.c:4864 __do_sys_renameat2 fs/namei.c:4956 [inline] __se_sys_renameat2 fs/namei.c:4953 [inline] __x64_sys_renameat2+0xe8/0x120 fs/namei.c:4953 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f4da368c0f9 RSP: 002b:00007f4da4315168 EFLAGS: 00000246 ORIG_RAX: 000000000000013c RAX: ffffffffffffffda RBX: 00007f4da37ac050 RCX: 00007f4da368c0f9 RDX: 0000000000000004 RSI: 00000000200002c0 RDI: 0000000000000004 RBP: 00007f4da36e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000020000180 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff6600400f R14: 00007f4da4315300 R15: 0000000000022000 INFO: task syz-executor.5:13217 blocked for more than 143 seconds. Not tainted 6.3.0-rc2-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:28920 pid:13217 ppid:11278 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5304 [inline] __schedule+0xc91/0x57d0 kernel/sched/core.c:6622 schedule+0xde/0x1a0 kernel/sched/core.c:6698 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6757 rwsem_down_write_slowpath+0x3e2/0x1220 kernel/locking/rwsem.c:1178 __down_write_common kernel/locking/rwsem.c:1306 [inline] __down_write kernel/locking/rwsem.c:1315 [inline] down_write_nested+0x1d6/0x200 kernel/locking/rwsem.c:1690 inode_lock_nested include/linux/fs.h:793 [inline] ext4_rename+0x1593/0x27c0 fs/ext4/namei.c:3821 ext4_rename2+0x1c7/0x270 fs/ext4/namei.c:4202 vfs_rename+0xef6/0x17a0 fs/namei.c:4772 do_renameat2+0xb62/0xc90 fs/namei.c:4923 __do_sys_rename fs/namei.c:4969 [inline] __se_sys_rename fs/namei.c:4967 [inline] __x64_sys_rename+0x81/0xa0 fs/namei.c:4967 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f4da368c0f9 RSP: 002b:00007f4da21fe168 EFLAGS: 00000246 ORIG_RAX: 0000000000000052 RAX: ffffffffffffffda RBX: 00007f4da37ac120 RCX: 00007f4da368c0f9 RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000020000200 RBP: 00007f4da36e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff6600400f R14: 00007f4da21fe300 R15: 0000000000022000 INFO: task syz-executor.5:13221 blocked for more than 143 seconds. Not tainted 6.3.0-rc2-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:28792 pid:13221 ppid:11278 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5304 [inline] __schedule+0xc91/0x57d0 kernel/sched/core.c:6622 schedule+0xde/0x1a0 kernel/sched/core.c:6698 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6757 rwsem_down_write_slowpath+0x3e2/0x1220 kernel/locking/rwsem.c:1178 __down_write_common kernel/locking/rwsem.c:1306 [inline] __down_write kernel/locking/rwsem.c:1315 [inline] down_write+0x1d2/0x200 kernel/locking/rwsem.c:1574 inode_lock include/linux/fs.h:758 [inline] lock_mount+0x8a/0x2e0 fs/namespace.c:2294 __do_sys_pivot_root+0x2c0/0x1610 fs/namespace.c:3897 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f4da368c0f9 RSP: 002b:00007f4da1fdd168 EFLAGS: 00000246 ORIG_RAX: 000000000000009b RAX: ffffffffffffffda RBX: 00007f4da37ac1f0 RCX: 00007f4da368c0f9 RDX: 0000000000000000 RSI: 0000000020000100 RDI: 0000000020000000 RBP: 00007f4da36e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff6600400f R14: 00007f4da1fdd300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8c7954b0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:510 1 lock held by rcu_tasks_trace/13: #0: ffffffff8c7951b0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:510 1 lock held by khungtaskd/27: #0: ffffffff8c796000 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x340 kernel/locking/lockdep.c:6495 2 locks held by getty/4755: #0: ffff88802c0c1098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:244 #1: ffffc900020382f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef4/0x13e0 drivers/tty/n_tty.c:2177 2 locks held by syz-fuzzer/5077: #0: ffff8880585525e8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe7/0x100 fs/file.c:1047 #1: ffff888050c45e48 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: iterate_dir+0xd1/0x6f0 fs/readdir.c:55 2 locks held by kworker/u4:64/29084: #0: ffff8880b983c298 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2f/0x120 kernel/sched/core.c:539 #1: ffffc90017607da8 ((work_completion)(&(&bat_priv->nc.work)->work)){+.+.}-{0:0}, at: process_one_work+0x8ae/0x1710 kernel/workqueue.c:2365 5 locks held by kworker/u4:1/12497: 4 locks held by syz-executor.5/13212: #0: ffff88802c1d8460 (sb_writers#4){.+.+}-{0:0}, at: do_renameat2+0x37f/0xc90 fs/namei.c:4859 #1: ffff88802c1d8748 (&type->s_vfs_rename_key){+.+.}-{3:3}, at: lock_rename+0x58/0x280 fs/namei.c:2995 #2: ffff888055189810 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:793 [inline] #2: ffff888055189810 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: lock_rename+0x1b0/0x280 fs/namei.c:3011 #3: ffff88803a21f258 (&type->i_mutex_dir_key#3/5){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:793 [inline] #3: ffff88803a21f258 (&type->i_mutex_dir_key#3/5){+.+.}-{3:3}, at: lock_rename+0x1e4/0x280 fs/namei.c:3012 4 locks held by syz-executor.5/13217: #0: ffff88802c1d8460 (sb_writers#4){.+.+}-{0:0}, at: do_renameat2+0x37f/0xc90 fs/namei.c:4859 #1: ffff888050c45e48 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:793 [inline] #1: ffff888050c45e48 (&type->i_mutex_dir_key#3/1){+.+.}-{3:3}, at: lock_rename+0x229/0x280 fs/namei.c:2991 #2: ffff88803a21f258 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #2: ffff88803a21f258 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: vfs_rename+0x4f9/0x17a0 fs/namei.c:4744 #3: ffff888055189810 (&type->i_mutex_dir_key#3/4){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:793 [inline] #3: ffff888055189810 (&type->i_mutex_dir_key#3/4){+.+.}-{3:3}, at: ext4_rename+0x1593/0x27c0 fs/ext4/namei.c:3821 1 lock held by syz-executor.5/13221: #0: ffff88803a21f258 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: inode_lock include/linux/fs.h:758 [inline] #0: ffff88803a21f258 (&type->i_mutex_dir_key#3){++++}-{3:3}, at: lock_mount+0x8a/0x2e0 fs/namespace.c:2294 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 27 Comm: khungtaskd Not tainted 6.3.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/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:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xe16/0x1150 kernel/hung_task.c:379 kthread+0x2e8/0x3a0 kernel/kthread.c:376 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: 12497 Comm: kworker/u4:1 Not tainted 6.3.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023 Workqueue: bat_events batadv_nc_worker RIP: 0010:check_preemption_disabled+0x2/0x170 lib/smp_processor_id.c:13 Code: 44 00 00 85 db 74 07 0f 1f 44 00 00 0f 0b 0f 1f 44 00 00 5b e9 6f fb ff ff 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 41 56 <41> 55 49 89 f5 41 54 55 48 89 fd 53 0f 1f 44 00 00 65 44 8b 25 31 RSP: 0018:ffffc9000aa07b88 EFLAGS: 00000282 RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffffffff81656f55 RDX: dffffc0000000000 RSI: ffffffff8aa721c0 RDI: ffffffff8aa72200 RBP: 1ffff92001540f7a R08: 0000000000000000 R09: ffffffff8e784497 R10: fffffbfff1cf0892 R11: 0000000000000000 R12: 0000000000000001 R13: 0000000000000000 R14: dffffc0000000000 R15: 00000000000001d3 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f84ccab0370 CR3: 0000000026fe6000 CR4: 0000000000350ef0 Call Trace: rcu_dynticks_curr_cpu_in_eqs include/linux/context_tracking.h:121 [inline] rcu_is_watching+0x12/0xb0 kernel/rcu/tree.c:694 rcu_read_lock_held_common kernel/rcu/update.c:108 [inline] rcu_read_lock_sched_held+0x20/0x70 kernel/rcu/update.c:123 trace_lock_release include/trace/events/lock.h:69 [inline] lock_release+0x548/0x700 kernel/locking/lockdep.c:5680 rcu_lock_release include/linux/rcupdate.h:332 [inline] rcu_read_unlock include/linux/rcupdate.h:806 [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+0x991/0x1710 kernel/workqueue.c:2390 worker_thread+0x669/0x1090 kernel/workqueue.c:2537 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308