============================================ WARNING: possible recursive locking detected syzkaller #0 Tainted: G L -------------------------------------------- syz.3.2993/18046 is trying to acquire lock: ffff8880461e2ed0 (&sb->s_type->i_mutex_key#12){++++}-{4:4}, at: inode_lock_shared include/linux/fs.h:1039 [inline] ffff8880461e2ed0 (&sb->s_type->i_mutex_key#12){++++}-{4:4}, at: lookup_slow+0x46/0x80 fs/namei.c:1935 but task is already holding lock: ffff8880512e95a8 (&sb->s_type->i_mutex_key#12){++++}-{4:4}, at: inode_lock include/linux/fs.h:1024 [inline] ffff8880512e95a8 (&sb->s_type->i_mutex_key#12){++++}-{4:4}, at: cache_write+0x78/0x210 net/sunrpc/cache.c:961 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&sb->s_type->i_mutex_key#12); lock(&sb->s_type->i_mutex_key#12); *** DEADLOCK *** May be due to missing lock nesting notation locks held by syz.3.2993/18046: 3, last CPU#1: #0: ffff88803dfee0f0 (&f->f_pos_lock){+.+.}-{4:4}, at: fdget_pos+0x118/0x160 fs/file.c:1408 #1: ffff888026bf0460 (sb_writers#3){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2758 [inline] #1: ffff888026bf0460 (sb_writers#3){.+.+}-{0:0}, at: vfs_write+0x22b/0xba0 fs/read_write.c:683 #2: ffff8880512e95a8 (&sb->s_type->i_mutex_key#12){++++}-{4:4}, at: inode_lock include/linux/fs.h:1024 [inline] #2: ffff8880512e95a8 (&sb->s_type->i_mutex_key#12){++++}-{4:4}, at: cache_write+0x78/0x210 net/sunrpc/cache.c:961 stack backtrace: CPU: 1 UID: 0 PID: 18046 Comm: syz.3.2993 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026 Call Trace: dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120 print_deadlock_bug+0x27a/0x290 kernel/locking/lockdep.c:3085 check_deadlock kernel/locking/lockdep.c:3137 [inline] validate_chain kernel/locking/lockdep.c:3939 [inline] __lock_acquire+0x25db/0x2de0 kernel/locking/lockdep.c:5288 lock_acquire+0x115/0x350 kernel/locking/lockdep.c:5942 down_read+0x45/0x320 kernel/locking/rwsem.c:1574 inode_lock_shared include/linux/fs.h:1039 [inline] lookup_slow+0x46/0x80 fs/namei.c:1935 walk_component fs/namei.c:2282 [inline] lookup_last fs/namei.c:2789 [inline] path_lookupat+0x3f5/0x8c0 fs/namei.c:2813 filename_lookup+0x265/0x5d0 fs/namei.c:2842 kern_path+0x3d/0x150 fs/namei.c:3036 expkey_parse+0x468/0x770 fs/nfsd/export.c:155 cache_do_downcall net/sunrpc/cache.c:922 [inline] cache_downcall net/sunrpc/cache.c:944 [inline] cache_write+0x191/0x210 net/sunrpc/cache.c:962 pde_write fs/proc/inode.c:330 [inline] proc_reg_write+0x1e9/0x2e0 fs/proc/inode.c:342 vfs_write+0x296/0xba0 fs/read_write.c:685 ksys_write+0x150/0x270 fs/read_write.c:739 do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline] do_syscall_64+0x166/0x520 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f1a85b9f559 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f1a839b2028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f1a85e26270 RCX: 00007f1a85b9f559 RDX: 0000000000000024 RSI: 00002000000004c0 RDI: 000000000000000a RBP: 00007f1a85c36b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f1a85e26308 R14: 00007f1a85e26270 R15: 00007f1a85f4fa48