syzbot


WARNING in ovl_d_real (2)

Status: upstream: reported on 2024/04/23 08:45
Reported-by: syzbot+3dfbb79fd73a0cfc58d6@syzkaller.appspotmail.com
First crash: 212d, last: 27d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in ovl_d_real overlayfs 1 1610d 1608d 0/28 auto-closed as invalid on 2020/10/23 17:22
linux-6.1 WARNING in ovl_d_real 5 168d 202d 0/3 auto-obsoleted due to no activity on 2024/09/14 07:09
linux-5.15 WARNING in ovl_d_real 1 401d 401d 0/3 auto-obsoleted due to no activity on 2024/01/24 23:41

Sample crash report:
------------[ cut here ]------------
ovl_d_real(/file3, loop0:15): real dentry (ffff888074003d60/21) not found
WARNING: CPU: 1 PID: 4794 at fs/overlayfs/super.c:115 ovl_d_real+0x215/0x480 fs/overlayfs/super.c:112
Modules linked in:
CPU: 1 PID: 4794 Comm: syz.0.138 Not tainted 5.15.169-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:ovl_d_real+0x215/0x480 fs/overlayfs/super.c:112
Code: 00 45 31 ff 31 c0 48 c7 c7 80 74 bf 8a 48 c7 c6 ef af 1f 8c 4c 89 f2 4c 89 e1 4d 89 e8 4d 89 f9 50 e8 ff be 78 fe 48 83 c4 08 <0f> 0b 4c 89 f0 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 56 23 ad fe 49
RSP: 0018:ffffc90003337540 EFLAGS: 00010292
RAX: 875a3b0d55af8100 RBX: ffff88807428beb0 RCX: 0000000000040000
RDX: ffffc90003ffe000 RSI: 0000000000000d7f RDI: 0000000000000d80
RBP: dffffc0000000000 R08: ffffffff81669a2c R09: ffffed1017224f24
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888078b686a8
R13: 000000000000000f R14: ffff888062ab8a48 R15: ffff888074003d60
FS:  00007fd18aacf6c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fd18aacef98 CR3: 000000001f4de000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 d_real include/linux/dcache.h:587 [inline]
 file_dentry include/linux/fs.h:1388 [inline]
 fscrypt_file_open+0x29d/0x300 fs/crypto/hooks.c:39
 ext4_file_open+0x1fc/0x710 fs/ext4/file.c:836
 do_dentry_open+0x807/0xfb0 fs/open.c:826
 open_with_fake_path+0x53/0x90 fs/open.c:1032
 ovl_open_realfile+0x16d/0x2c0 fs/overlayfs/file.c:60
 ovl_open+0xe7/0x200 fs/overlayfs/file.c:156
 do_dentry_open+0x807/0xfb0 fs/open.c:826
 do_open fs/namei.c:3608 [inline]
 path_openat+0x2705/0x2f20 fs/namei.c:3742
 do_filp_open+0x21c/0x460 fs/namei.c:3769
 do_sys_openat2+0x13b/0x4f0 fs/open.c:1253
 do_sys_open fs/open.c:1269 [inline]
 __do_sys_openat fs/open.c:1285 [inline]
 __se_sys_openat fs/open.c:1280 [inline]
 __x64_sys_openat+0x243/0x290 fs/open.c:1280
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fd18c678719
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fd18aacf038 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007fd18c830058 RCX: 00007fd18c678719
RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000004
RBP: 00007fd18c6eb2be R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007fd18c830058 R15: 00007ffcb6480c88
 </TASK>

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/25 03:24 linux-5.15.y 74cdd62cb470 c79b8ca5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in ovl_d_real
2024/10/21 16:27 linux-5.15.y 584a40a22cb9 f1e4447c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in ovl_d_real
2024/07/19 07:07 linux-5.15.y 7c6d66f0266f ee4e11c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in ovl_d_real
2024/07/10 08:01 linux-5.15.y f45bea23c39c bc144f9a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in ovl_d_real
2024/05/21 08:13 linux-5.15.y 83655231580b 4c0d3ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in ovl_d_real
2024/05/21 08:10 linux-5.15.y 83655231580b 4c0d3ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in ovl_d_real
2024/05/14 01:32 linux-5.15.y 284087d4f7d5 fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in ovl_d_real
2024/05/01 02:51 linux-5.15.y b925f60c6ee7 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in ovl_d_real
2024/05/25 21:25 linux-5.15.y c61bd26ae81a a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in ovl_d_real
2024/05/15 14:05 linux-5.15.y 284087d4f7d5 94b087b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in ovl_d_real
2024/04/23 08:45 linux-5.15.y c52b9710c83d 21339d7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 WARNING in ovl_d_real
* Struck through repros no longer work on HEAD.