overlayfs: './file1' not a directory BUG: kernel NULL pointer dereference, address: 0000000000000068 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 11773b067 P4D 11773b067 PUD 1175e1067 PMD 0 Oops: 0000 [#1] PREEMPT SMP CPU: 0 PID: 15352 Comm: syz-executor.0 Not tainted 5.11.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:security_inode_getattr+0x4/0x40 security/security.c:1278 Code: 74 15 44 89 e6 48 89 ef ff 53 18 85 c0 75 0a 48 8b 1b 48 85 db 75 eb 31 c0 5b 5d 41 5c c3 31 c0 c3 0f 1f 44 00 00 48 8b 47 08 <48> 8b 40 68 f6 40 0d 02 75 28 55 48 89 fd 53 48 8b 1d 2e 00 6e 04 RSP: 0018:ffffc900024dfd20 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffffc900024dfd68 RCX: 0000000000000000 RDX: 0000000000000400 RSI: ffffc900024dfd78 RDI: ffffc900024dfd68 RBP: ffffc900024dfd78 R08: 0000000000000000 R09: 0000000000000000 R10: ffffc900024dfd68 R11: 29312c3828766564 R12: 0000000000000400 R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000001 FS: 00007f8fd7cf8700(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000068 CR3: 000000011765c000 CR4: 0000000000350ef0 Call Trace: vfs_getattr+0x17/0x40 fs/stat.c:121 ovl_getattr+0x269/0x380 fs/overlayfs/inode.c:245 vfs_statx+0x84/0x110 fs/stat.c:189 vfs_fstatat fs/stat.c:207 [inline] vfs_stat include/linux/fs.h:3118 [inline] __do_sys_newstat+0x39/0x70 fs/stat.c:349 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45d5f9 Code: 5d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 2b b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f8fd7cf7c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 0000000000033a40 RCX: 000000000045d5f9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000280 RBP: 000000000118d018 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118cfec R13: 00007fff42b5d69f R14: 00007f8fd7cf89c0 R15: 000000000118cfec Modules linked in: CR2: 0000000000000068 ---[ end trace 6a3e484757acc032 ]--- RIP: 0010:security_inode_getattr+0x4/0x40 security/security.c:1278 Code: 74 15 44 89 e6 48 89 ef ff 53 18 85 c0 75 0a 48 8b 1b 48 85 db 75 eb 31 c0 5b 5d 41 5c c3 31 c0 c3 0f 1f 44 00 00 48 8b 47 08 <48> 8b 40 68 f6 40 0d 02 75 28 55 48 89 fd 53 48 8b 1d 2e 00 6e 04 RSP: 0018:ffffc900024dfd20 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffffc900024dfd68 RCX: 0000000000000000 RDX: 0000000000000400 RSI: ffffc900024dfd78 RDI: ffffc900024dfd68 RBP: ffffc900024dfd78 R08: 0000000000000000 R09: 0000000000000000 R10: ffffc900024dfd68 R11: 29312c3828766564 R12: 0000000000000400 R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000001 FS: 00007f8fd7cf8700(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000068 CR3: 000000011765c000 CR4: 0000000000350ef0