BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 64f9a067 P4D 64f9a067 PUD 654ed067 PMD 0 Oops: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 21894 Comm: syz-executor.5 Not tainted 5.7.0-rc7-next-20200529-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__sanitizer_cov_trace_pc+0x43/0x60 kernel/kcov.c:202 Code: 24 74 0f 80 e6 01 74 35 8b 90 0c 14 00 00 85 d2 74 2b 8b 90 e8 13 00 00 83 fa 02 75 20 48 8b 88 f0 13 00 00 8b 80 ec 13 00 00 <48> 8b 11 48 83 c2 01 48 39 d0 76 07 48 89 34 d1 48 89 11 c3 66 0f RSP: 0018:ffffc9000974f568 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 000000000000000c RCX: 0000000000000000 RDX: 0000000000000002 RSI: ffffffff83641519 RDI: 0000000000000005 RBP: ffff8880a7733800 R08: ffff88809abd4180 R09: fffffbfff1956481 R10: ffffffff8cab2407 R11: fffffbfff1956480 R12: 0000000000000010 R13: 0000000000000098 R14: dffffc0000000000 R15: 0000000000000000 FS: 00007fa885a11700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000098415000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: tomoyo_domain_quota_is_ok+0x359/0x540 security/tomoyo/util.c:1070 tomoyo_supervisor+0x286/0xe80 security/tomoyo/common.c:2089 tomoyo_audit_path_log security/tomoyo/file.c:168 [inline] tomoyo_path_permission security/tomoyo/file.c:587 [inline] tomoyo_path_permission+0x257/0x360 security/tomoyo/file.c:573 tomoyo_check_open_permission+0x307/0x370 security/tomoyo/file.c:780 tomoyo_file_open security/tomoyo/tomoyo.c:313 [inline] tomoyo_file_open+0xa3/0xd0 security/tomoyo/tomoyo.c:308 security_file_open+0x6e/0x3d0 security/security.c:1558 do_dentry_open+0x355/0x11a0 fs/open.c:809 do_open fs/namei.c:3234 [inline] path_openat+0x1e9e/0x27d0 fs/namei.c:3351 do_filp_open+0x192/0x260 fs/namei.c:3378 do_sys_openat2+0x585/0x7a0 fs/open.c:1173 do_sys_open+0xc3/0x140 fs/open.c:1189 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:359 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45ca59 Code: 0d b7 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 db b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fa885a10c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00000000004f9320 RCX: 000000000045ca59 RDX: 0000000000020601 RSI: 00000000200003c0 RDI: ffffffffffffff9c RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000000000b R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000805 R14: 00000000004caeaf R15: 00007fa885a116d4 Modules linked in: CR2: 0000000000000000 ---[ end trace 1c50fab2540cbcee ]--- RIP: 0010:__sanitizer_cov_trace_pc+0x43/0x60 kernel/kcov.c:202 Code: 24 74 0f 80 e6 01 74 35 8b 90 0c 14 00 00 85 d2 74 2b 8b 90 e8 13 00 00 83 fa 02 75 20 48 8b 88 f0 13 00 00 8b 80 ec 13 00 00 <48> 8b 11 48 83 c2 01 48 39 d0 76 07 48 89 34 d1 48 89 11 c3 66 0f RSP: 0018:ffffc9000974f568 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 000000000000000c RCX: 0000000000000000 RDX: 0000000000000002 RSI: ffffffff83641519 RDI: 0000000000000005 RBP: ffff8880a7733800 R08: ffff88809abd4180 R09: fffffbfff1956481 R10: ffffffff8cab2407 R11: fffffbfff1956480 R12: 0000000000000010 R13: 0000000000000098 R14: dffffc0000000000 R15: 0000000000000000 FS: 00007fa885a11700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000073c138 CR3: 0000000098415000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400