BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD 9e831067 P4D 9e831067 PUD 8a78b067 PMD 0 Oops: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 28518 Comm: syz-executor.5 Not tainted 5.7.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__read_once_size include/linux/compiler.h:252 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x3f/0x60 kernel/kcov.c:202 Code: c2 00 01 ff 00 74 11 f7 c2 00 01 00 00 74 35 83 b9 04 14 00 00 00 74 2c 8b 91 e0 13 00 00 83 fa 02 75 21 48 8b 91 e8 13 00 00 <48> 8b 32 48 8d 7e 01 8b 89 e4 13 00 00 48 39 cf 73 08 48 89 44 f2 RSP: 0018:ffffc90001d67780 EFLAGS: 00010246 RAX: ffffffff8362f473 RBX: 0000000000000002 RCX: ffff8880951da1c0 RDX: 0000000000000000 RSI: ffffffff8943a5d0 RDI: 0000000000000002 RBP: dffffc0000000000 R08: 0000000000000001 R09: ffffffff8362f403 R10: 0000000000000007 R11: ffff8880951da1c0 R12: ffff88809d1be310 R13: 0000000000000139 R14: ffff88808a541098 R15: ffff88808a541080 FS: 00007f0b2dac9700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 0000000093bee000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: tomoyo_domain_quota_is_ok+0x1b3/0x590 security/tomoyo/util.c:1050 tomoyo_supervisor+0x270/0x1310 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_check_open_permission+0x3f7/0x900 security/tomoyo/file.c:777 security_file_open+0x50/0xc0 security/security.c:1553 do_dentry_open+0x38f/0x1020 fs/open.c:815 do_open fs/namei.c:3229 [inline] path_openat+0x2790/0x38b0 fs/namei.c:3346 do_filp_open+0x191/0x3a0 fs/namei.c:3373 do_sys_openat2+0x463/0x770 fs/open.c:1179 do_sys_open fs/open.c:1195 [inline] __do_sys_openat fs/open.c:1209 [inline] __se_sys_openat fs/open.c:1204 [inline] __x64_sys_openat+0x1c8/0x1f0 fs/open.c:1204 do_syscall_64+0xf3/0x1b0 arch/x86/entry/common.c:295 entry_SYSCALL_64_after_hwframe+0x49/0xb3 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:00007f0b2dac8c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00000000004f9460 RCX: 000000000045ca59 RDX: 0000000000004080 RSI: 0000000020000000 RDI: ffffffffffffff9c RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000807 R14: 00000000004caecd R15: 00007f0b2dac96d4 Modules linked in: CR2: 0000000000000000 ---[ end trace fe404f6f120600ac ]--- RIP: 0010:__read_once_size include/linux/compiler.h:252 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x3f/0x60 kernel/kcov.c:202 Code: c2 00 01 ff 00 74 11 f7 c2 00 01 00 00 74 35 83 b9 04 14 00 00 00 74 2c 8b 91 e0 13 00 00 83 fa 02 75 21 48 8b 91 e8 13 00 00 <48> 8b 32 48 8d 7e 01 8b 89 e4 13 00 00 48 39 cf 73 08 48 89 44 f2 RSP: 0018:ffffc90001d67780 EFLAGS: 00010246 RAX: ffffffff8362f473 RBX: 0000000000000002 RCX: ffff8880951da1c0 RDX: 0000000000000000 RSI: ffffffff8943a5d0 RDI: 0000000000000002 RBP: dffffc0000000000 R08: 0000000000000001 R09: ffffffff8362f403 R10: 0000000000000007 R11: ffff8880951da1c0 R12: ffff88809d1be310 R13: 0000000000000139 R14: ffff88808a541098 R15: ffff88808a541080 FS: 00007f0b2dac9700(0000) GS:ffff8880ae800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005601b06542b8 CR3: 0000000093bee000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400