INFO: task syz-executor.0:28113 blocked for more than 143 seconds. Not tainted 5.16.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:26960 pid:28113 ppid: 6527 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:4972 [inline] __schedule+0xb72/0x1460 kernel/sched/core.c:6253 schedule+0x12b/0x1f0 kernel/sched/core.c:6326 rwsem_down_read_slowpath+0x541/0x980 kernel/locking/rwsem.c:996 __down_read_common+0xaa/0x450 kernel/locking/rwsem.c:1224 inode_lock_shared include/linux/fs.h:793 [inline] lookup_slow fs/namei.c:1673 [inline] walk_component+0x508/0x790 fs/namei.c:1970 lookup_last fs/namei.c:2425 [inline] path_lookupat+0x19d/0x6c0 fs/namei.c:2449 filename_lookup+0x270/0x640 fs/namei.c:2478 user_path_at_empty+0x40/0x1a0 fs/namei.c:2801 user_path_at include/linux/namei.h:57 [inline] __do_sys_chdir fs/open.c:489 [inline] __se_sys_chdir+0xa4/0x2a0 fs/open.c:483 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f0512c2bae9 RSP: 002b:00007f051015f188 EFLAGS: 00000246 ORIG_RAX: 0000000000000050 RAX: ffffffffffffffda RBX: 00007f0512d3f0e0 RCX: 00007f0512c2bae9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000040 RBP: 00007f0512c85f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffb91f4f5f R14: 00007f051015f300 R15: 0000000000022000 INFO: task syz-executor.0:28115 blocked for more than 143 seconds. Not tainted 5.16.0-rc1-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:27664 pid:28115 ppid: 6527 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:4972 [inline] __schedule+0xb72/0x1460 kernel/sched/core.c:6253 schedule+0x12b/0x1f0 kernel/sched/core.c:6326 rwsem_down_write_slowpath+0xd47/0x1440 kernel/locking/rwsem.c:1117 __down_write_common kernel/locking/rwsem.c:1272 [inline] __down_write kernel/locking/rwsem.c:1281 [inline] down_write+0x163/0x170 kernel/locking/rwsem.c:1528 inode_lock include/linux/fs.h:783 [inline] open_last_lookups fs/namei.c:3347 [inline] path_openat+0x853/0x3660 fs/namei.c:3556 do_filp_open+0x277/0x4f0 fs/namei.c:3586 do_sys_openat2+0x13b/0x500 fs/open.c:1212 do_sys_open fs/open.c:1228 [inline] __do_sys_creat fs/open.c:1304 [inline] __se_sys_creat fs/open.c:1298 [inline] __x64_sys_creat+0x11f/0x160 fs/open.c:1298 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f0512c2bae9 RSP: 002b:00007f051013e188 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f0512d3f1a0 RCX: 00007f0512c2bae9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000080 RBP: 00007f0512c85f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffb91f4f5f R14: 00007f051013e300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by khungtaskd/27: #0: ffffffff8cd1da80 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 1 lock held by kswapd1/99: 1 lock held by in:imklog/6211: #0: ffff888023126d70 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x24e/0x2f0 fs/file.c:990 2 locks held by syz-executor.0/28096: 1 lock held by syz-executor.0/28113: #0: ffff88809086d6d0 (&type->i_mutex_dir_key#9){++++}-{3:3}, at: inode_lock_shared include/linux/fs.h:793 [inline] #0: ffff88809086d6d0 (&type->i_mutex_dir_key#9){++++}-{3:3}, at: lookup_slow fs/namei.c:1673 [inline] #0: ffff88809086d6d0 (&type->i_mutex_dir_key#9){++++}-{3:3}, at: walk_component+0x508/0x790 fs/namei.c:1970 2 locks held by syz-executor.0/28115: #0: ffff88808ec5c460 (sb_writers#17){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:376 #1: ffff88809086d6d0 (&type->i_mutex_dir_key#9){++++}-{3:3}, at: inode_lock include/linux/fs.h:783 [inline] #1: ffff88809086d6d0 (&type->i_mutex_dir_key#9){++++}-{3:3}, at: open_last_lookups fs/namei.c:3347 [inline] #1: ffff88809086d6d0 (&type->i_mutex_dir_key#9){++++}-{3:3}, at: path_openat+0x853/0x3660 fs/namei.c:3556 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 27 Comm: khungtaskd Not tainted 5.16.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1dc/0x2d8 lib/dump_stack.c:106 nmi_cpu_backtrace+0x45f/0x490 lib/nmi_backtrace.c:105 nmi_trigger_cpumask_backtrace+0x16a/0x280 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline] watchdog+0xc82/0xcd0 kernel/hung_task.c:295 kthread+0x468/0x490 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 11161 Comm: kworker/u4:11 Not tainted 5.16.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: bat_events batadv_nc_worker RIP: 0010:rcu_lockdep_current_cpu_online+0x36/0x130 kernel/rcu/tree.c:1169 Code: 93 7e b0 01 f7 c1 00 00 f0 00 0f 85 e3 00 00 00 83 3d 8d bc af 0c 00 0f 84 d6 00 00 00 65 83 05 07 9b 93 7e 01 e8 8a 26 b9 08 <89> c3 83 f8 08 0f 83 cd 00 00 00 49 bf 00 00 00 00 00 fc ff df 48 RSP: 0018:ffffc900051178d8 EFLAGS: 00000286 RAX: 0000000000000000 RBX: 1ffff92000a22f20 RCX: 0000000080000202 RDX: 0000000000000000 RSI: 0000000000000203 RDI: 0000000000000000 RBP: ffffc90005117988 R08: dffffc0000000000 R09: fffffbfff1c3d206 R10: fffffbfff1c3d206 R11: 0000000000000000 R12: 0000000000000000 R13: 1ffff92000a22f44 R14: dffffc0000000000 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f75821b6000 CR3: 0000000072693000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rcu_read_lock_held_common kernel/rcu/update.c:112 [inline] rcu_read_lock_sched_held+0x74/0x130 kernel/rcu/update.c:123 trace_lock_acquire+0x59/0x190 include/trace/events/lock.h:13 lock_acquire+0xa5/0x4d0 kernel/locking/lockdep.c:5608 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:126 [inline] _raw_spin_lock_bh+0x31/0x40 kernel/locking/spinlock.c:178 spin_lock_bh include/linux/spinlock.h:354 [inline] batadv_nc_purge_paths+0xe0/0x3f0 net/batman-adv/network-coding.c:446 batadv_nc_worker+0x2da/0x5b0 net/batman-adv/network-coding.c:724 process_one_work+0x853/0x1140 kernel/workqueue.c:2298 worker_thread+0xac1/0x1320 kernel/workqueue.c:2445 kthread+0x468/0x490 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 ---------------- Code disassembly (best guess): 0: 93 xchg %eax,%ebx 1: 7e b0 jle 0xffffffb3 3: 01 f7 add %esi,%edi 5: c1 00 00 roll $0x0,(%rax) 8: f0 00 0f lock add %cl,(%rdi) b: 85 e3 test %esp,%ebx d: 00 00 add %al,(%rax) f: 00 83 3d 8d bc af add %al,-0x504372c3(%rbx) 15: 0c 00 or $0x0,%al 17: 0f 84 d6 00 00 00 je 0xf3 1d: 65 83 05 07 9b 93 7e addl $0x1,%gs:0x7e939b07(%rip) # 0x7e939b2c 24: 01 25: e8 8a 26 b9 08 callq 0x8b926b4 * 2a: 89 c3 mov %eax,%ebx <-- trapping instruction 2c: 83 f8 08 cmp $0x8,%eax 2f: 0f 83 cd 00 00 00 jae 0x102 35: 49 bf 00 00 00 00 00 movabs $0xdffffc0000000000,%r15 3c: fc ff df 3f: 48 rex.W