------------[ cut here ]------------ WARNING: CPU: 1 PID: 23165 at fs/libfs.c:2117 stashed_dentry_prune+0x8f/0xb0 fs/libfs.c:2117 Modules linked in: CPU: 1 PID: 23165 Comm: syz-executor.3 Not tainted 6.8.0-syzkaller-00648-g8ede842f669b #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024 RIP: 0010:stashed_dentry_prune+0x8f/0xb0 fs/libfs.c:2117 Code: 21 8a ff be 08 00 00 00 48 89 ef e8 fb 53 e3 ff 48 89 d8 31 d2 f0 48 0f b1 55 00 5b 5d 41 5c e9 57 21 8a ff e8 52 21 8a ff 90 <0f> 0b 90 5b 5d 41 5c e9 45 21 8a ff e8 20 4c e3 ff eb 8c e8 19 4c RSP: 0018:ffffc90015427c68 EFLAGS: 00010246 RAX: 0000000000040000 RBX: ffff888038f90eb0 RCX: ffffc9000a8e2000 RDX: 0000000000040000 RSI: ffffffff82014b4e RDI: ffff888038f90f18 RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000010 R11: 0000000000000000 R12: 0000000000000000 R13: ffff888038f90f48 R14: ffff888038f90f90 R15: 0000000000000000 FS: 00007fead67776c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9a19c6ef78 CR3: 0000000035e6a000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __dentry_kill+0xb0/0x600 fs/dcache.c:594 dput.part.0+0x4b1/0x9b0 fs/dcache.c:845 dput+0x1f/0x30 fs/dcache.c:835 prepare_anon_dentry fs/libfs.c:2018 [inline] path_from_stashed+0x9fc/0xd60 fs/libfs.c:2094 pidfs_alloc_file+0x125/0x220 fs/pidfs.c:248 __pidfd_prepare kernel/fork.c:2028 [inline] pidfd_prepare+0xa8/0x160 kernel/fork.c:2076 pidfd_create kernel/pid.c:614 [inline] __do_sys_pidfd_open kernel/pid.c:650 [inline] __se_sys_pidfd_open kernel/pid.c:635 [inline] __x64_sys_pidfd_open+0x106/0x1a0 kernel/pid.c:635 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xd5/0x270 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x6f/0x77 RIP: 0033:0x7fead5a7dda9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fead67770b8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b2 RAX: ffffffffffffffda RBX: 00007fead5babf80 RCX: 00007fead5a7dda9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 000000000000271b RBP: 00007fead6777120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 000000000000000b R14: 00007fead5babf80 R15: 00007ffe6dcdd598