general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] CPU: 1 PID: 5518 Comm: dhcpcd-run-hook Not tainted 6.6.0-rc7-next-20231030-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/09/2023 RIP: 0010:tomoyo_find_domain+0x153/0x250 security/tomoyo/util.c:622 Code: a0 e8 a1 59 69 fd 48 8d 7b 20 48 89 f8 48 c1 e8 03 80 3c 28 00 0f 85 d6 00 00 00 4c 8b 7b 20 49 8d 7f 08 48 89 f8 48 c1 e8 03 <0f> b6 14 28 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 a4 RSP: 0018:ffffc900053779f0 EFLAGS: 00010202 RAX: 0000000000000001 RBX: ffff888028f1b700 RCX: ffffffff841fc315 RDX: ffff8880281e0000 RSI: ffffffff841fc31f RDI: 0000000000000008 RBP: dffffc0000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000066a9ebed R13: 1ffff92000a6ef3f R14: 00000000a17ea799 R15: 0000000000000000 FS: 00007f173d01b380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000559965959000 CR3: 00000000274fa000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: tomoyo_assign_domain+0xad/0x820 security/tomoyo/domain.c:526 tomoyo_find_next_domain+0x61a/0x2020 security/tomoyo/domain.c:846 tomoyo_bprm_check_security security/tomoyo/tomoyo.c:102 [inline] tomoyo_bprm_check_security+0x12a/0x1d0 security/tomoyo/tomoyo.c:92 security_bprm_check+0x6a/0xe0 security/security.c:1180 search_binary_handler fs/exec.c:1725 [inline] exec_binprm fs/exec.c:1779 [inline] bprm_execve fs/exec.c:1854 [inline] bprm_execve+0x730/0x1a80 fs/exec.c:1810 do_execveat_common.isra.0+0x5cf/0x740 fs/exec.c:1962 do_execve fs/exec.c:2036 [inline] __do_sys_execve fs/exec.c:2112 [inline] __se_sys_execve fs/exec.c:2107 [inline] __x64_sys_execve+0x8c/0xb0 fs/exec.c:2107 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3f/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x62/0x6a RIP: 0033:0x7f173d155ef7 Code: ba 0f 00 5b 5d 41 5c 41 5d 41 5e 41 5f e9 63 d8 fb ff 48 83 c4 18 5b 5d 41 5c 41 5d 41 5e 41 5f c3 66 90 b8 3b 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 01 3f 0f 00 f7 d8 64 89 01 48 RSP: 002b:00007ffd6e6c4ae8 EFLAGS: 00000246 ORIG_RAX: 000000000000003b RAX: ffffffffffffffda RBX: 0000559965958f58 RCX: 00007f173d155ef7 RDX: 0000559965958f78 RSI: 0000559965958f58 RDI: 0000559965959000 RBP: 0000559965959000 R08: 0000559965959005 R09: 00007ffd6e6c8e92 R10: 0000000000000008 R11: 0000000000000246 R12: 0000559965958f78 R13: 00007f173d303904 R14: 0000559965958f78 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:tomoyo_find_domain+0x153/0x250 security/tomoyo/util.c:622 Code: a0 e8 a1 59 69 fd 48 8d 7b 20 48 89 f8 48 c1 e8 03 80 3c 28 00 0f 85 d6 00 00 00 4c 8b 7b 20 49 8d 7f 08 48 89 f8 48 c1 e8 03 <0f> b6 14 28 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 a4 RSP: 0018:ffffc900053779f0 EFLAGS: 00010202 RAX: 0000000000000001 RBX: ffff888028f1b700 RCX: ffffffff841fc315 RDX: ffff8880281e0000 RSI: ffffffff841fc31f RDI: 0000000000000008 RBP: dffffc0000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000066a9ebed R13: 1ffff92000a6ef3f R14: 00000000a17ea799 R15: 0000000000000000 FS: 00007f173d01b380(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 ---------------- Code disassembly (best guess): 0: a0 e8 a1 59 69 fd 48 movabs 0x7b8d48fd6959a1e8,%al 7: 8d 7b 9: 20 48 89 and %cl,-0x77(%rax) c: f8 clc d: 48 c1 e8 03 shr $0x3,%rax 11: 80 3c 28 00 cmpb $0x0,(%rax,%rbp,1) 15: 0f 85 d6 00 00 00 jne 0xf1 1b: 4c 8b 7b 20 mov 0x20(%rbx),%r15 1f: 49 8d 7f 08 lea 0x8(%r15),%rdi 23: 48 89 f8 mov %rdi,%rax 26: 48 c1 e8 03 shr $0x3,%rax * 2a: 0f b6 14 28 movzbl (%rax,%rbp,1),%edx <-- trapping instruction 2e: 48 89 f8 mov %rdi,%rax 31: 83 e0 07 and $0x7,%eax 34: 83 c0 03 add $0x3,%eax 37: 38 d0 cmp %dl,%al 39: 7c 08 jl 0x43 3b: 84 d2 test %dl,%dl 3d: 0f .byte 0xf 3e: 85 .byte 0x85 3f: a4 movsb %ds:(%rsi),%es:(%rdi)