bisecting fixing commit since 729e3d091984487f7aa1ebfabfe594e5b317ed0f building syzkaller on ce441f065b6eebb166bb006dfd28ea0c6b730384 testing commit 729e3d091984487f7aa1ebfabfe594e5b317ed0f with gcc (GCC) 8.1.0 kernel signature: 1810ef21d3d2be5ff57758ffcea4977fd059abf2070d9939dac09333a5fdb2e7 all runs: crashed: BUG: unable to handle kernel NULL pointer dereference in security_inode_getattr testing current HEAD 41ba50b0572e90ed3d24fe4def54567e9050bc47 testing commit 41ba50b0572e90ed3d24fe4def54567e9050bc47 with gcc (GCC) 8.1.0 kernel signature: 4ba0818934ebe8eef9b35090ddb59655c6ca439e3a292f83ca5599b6b64a8577 all runs: crashed: BUG: unable to handle kernel NULL pointer dereference in security_inode_getattr revisions tested: 2, total time: 18m46.717716674s (build: 11m44.519442363s, test: 6m21.494776344s) the crash still happens on HEAD commit msg: Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 crash: BUG: unable to handle kernel NULL pointer dereference in security_inode_getattr 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 120003067 P4D 120003067 PUD 120116067 PMD 0 Oops: 0000 [#1] PREEMPT SMP CPU: 0 PID: 10732 Comm: syz-executor.5 Not tainted 5.10.0-rc1-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:1277 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 be af 4e 04 RSP: 0018:ffffc900040bfd20 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffffc900040bfd68 RCX: 0000000000000000 RDX: 0000000000000400 RSI: ffffc900040bfd78 RDI: ffffc900040bfd68 RBP: ffffc900040bfd78 R08: 0000000000000000 R09: 0000000000000000 R10: ffffc900040bfd68 R11: 29312c3828766564 R12: 0000000000000400 R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000001 FS: 00007f2b51683700(0000) GS:ffff88813bc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000068 CR3: 000000011f798000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 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:3105 [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:00007f2b51682c78 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: 00007fff8649e0bf R14: 00007f2b516839c0 R15: 000000000118cfec Modules linked in: CR2: 0000000000000068 ---[ end trace 9333da06e8e2f873 ]--- RIP: 0010:security_inode_getattr+0x4/0x40 security/security.c:1277 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 be af 4e 04 RSP: 0018:ffffc900040bfd20 EFLAGS: 00010246 RAX: 0000000000000000 RBX: ffffc900040bfd68 RCX: 0000000000000000 RDX: 0000000000000400 RSI: ffffc900040bfd78 RDI: ffffc900040bfd68 RBP: ffffc900040bfd78 R08: 0000000000000000 R09: 0000000000000000 R10: ffffc900040bfd68 R11: 29312c3828766564 R12: 0000000000000400 R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000001 FS: 00007f2b51683700(0000) GS:ffff88813bc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000011f798000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400