general protection fault, probably for non-canonical address 0xdffffc000000000d: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000068-0x000000000000006f] CPU: 1 PID: 8645 Comm: syz-executor.2 Not tainted 6.2.0-rc2-syzkaller-00024-g512dee0c00ad #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:d_backing_inode include/linux/dcache.h:543 [inline] RIP: 0010:security_inode_getattr+0x42/0x140 security/security.c:1373 Code: 96 fd 49 8d 5e 08 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 ec 94 ec fd 48 8b 1b 48 83 c3 68 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 cf 94 ec fd 48 8b 1b 48 83 c3 0c RSP: 0018:ffffc9000485f1c0 EFLAGS: 00010202 RAX: 000000000000000d RBX: 0000000000000068 RCX: 0000000000040000 RDX: ffffc9000c48b000 RSI: 000000000000064f RDI: 0000000000000650 RBP: ffffc9000485f540 R08: ffffffff82f99cee R09: ffffc9000485f540 R10: 0000000000000006 R11: 0000000000000000 R12: ffffc9000485f550 R13: dffffc0000000000 R14: ffffc9000485f540 R15: dffffc0000000000 FS: 00007f8026147700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4d5cd85058 CR3: 0000000027345000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: vfs_getattr+0x21/0x60 fs/stat.c:161 ovl_copy_up_one fs/overlayfs/copy_up.c:1009 [inline] ovl_copy_up_flags+0x53e/0x1f10 fs/overlayfs/copy_up.c:1091 ovl_maybe_copy_up+0x161/0x190 fs/overlayfs/copy_up.c:1123 ovl_open+0xf3/0x290 fs/overlayfs/file.c:153 do_dentry_open+0x85f/0x11b0 fs/open.c:882 do_open fs/namei.c:3557 [inline] path_openat+0x25ba/0x2dd0 fs/namei.c:3714 do_filp_open+0x264/0x4f0 fs/namei.c:3741 do_sys_openat2+0x124/0x4e0 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_open fs/open.c:1334 [inline] __se_sys_open fs/open.c:1330 [inline] __x64_sys_open+0x221/0x270 fs/open.c:1330 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f802548c0c9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f8026147168 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f80255ac050 RCX: 00007f802548c0c9 RDX: 0000000000000002 RSI: 0000000000000001 RDI: 00000000200004c0 RBP: 00007f80254e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffef3fb622f R14: 00007f8026147300 R15: 0000000000022000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:d_backing_inode include/linux/dcache.h:543 [inline] RIP: 0010:security_inode_getattr+0x42/0x140 security/security.c:1373 Code: 96 fd 49 8d 5e 08 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 ec 94 ec fd 48 8b 1b 48 83 c3 68 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 cf 94 ec fd 48 8b 1b 48 83 c3 0c RSP: 0018:ffffc9000485f1c0 EFLAGS: 00010202 RAX: 000000000000000d RBX: 0000000000000068 RCX: 0000000000040000 RDX: ffffc9000c48b000 RSI: 000000000000064f RDI: 0000000000000650 RBP: ffffc9000485f540 R08: ffffffff82f99cee R09: ffffc9000485f540 R10: 0000000000000006 R11: 0000000000000000 R12: ffffc9000485f550 R13: dffffc0000000000 R14: ffffc9000485f540 R15: dffffc0000000000 FS: 00007f8026147700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000027345000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 96 xchg %eax,%esi 1: fd std 2: 49 8d 5e 08 lea 0x8(%r14),%rbx 6: 48 89 d8 mov %rbx,%rax 9: 48 c1 e8 03 shr $0x3,%rax d: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) 12: 74 08 je 0x1c 14: 48 89 df mov %rbx,%rdi 17: e8 ec 94 ec fd callq 0xfdec9508 1c: 48 8b 1b mov (%rbx),%rbx 1f: 48 83 c3 68 add $0x68,%rbx 23: 48 89 d8 mov %rbx,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 42 80 3c 38 00 cmpb $0x0,(%rax,%r15,1) <-- trapping instruction 2f: 74 08 je 0x39 31: 48 89 df mov %rbx,%rdi 34: e8 cf 94 ec fd callq 0xfdec9508 39: 48 8b 1b mov (%rbx),%rbx 3c: 48 83 c3 0c add $0xc,%rbx