------------[ cut here ]------------ kernel BUG at arch/x86/mm/physaddr.c:28! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 15567 Comm: syz-executor.1 Not tainted 5.8.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__phys_addr+0xa7/0x110 arch/x86/mm/physaddr.c:28 Code: 14 7a 09 4c 89 e3 31 ff 48 d3 eb 48 89 de e8 10 5e 3f 00 48 85 db 75 0d e8 66 61 3f 00 4c 89 e0 5b 5d 41 5c c3 e8 59 61 3f 00 <0f> 0b e8 52 61 3f 00 48 c7 c0 10 10 a8 89 48 ba 00 00 00 00 00 fc RSP: 0018:ffffc90017d87a18 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 000000005966e340 RCX: ffffffff81345848 RDX: ffff88804d626140 RSI: ffffffff813458a7 RDI: 0000000000000006 RBP: 00000000d966e340 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000d966e340 R11: 0000000000000000 R12: 000077805966e340 R13: ffffc90017d87a70 R14: 0000000000000000 R15: 0000000000000282 FS: 0000000001fdd940(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000043e3e0 CR3: 000000003ca48000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: virt_to_head_page include/linux/mm.h:841 [inline] qlink_to_cache mm/kasan/quarantine.c:128 [inline] qlist_free_all+0xbb/0x140 mm/kasan/quarantine.c:164 quarantine_reduce+0x17e/0x200 mm/kasan/quarantine.c:260 __kasan_kmalloc.constprop.0+0x9e/0xd0 mm/kasan/common.c:475 slab_post_alloc_hook mm/slab.h:586 [inline] slab_alloc mm/slab.c:3320 [inline] __do_kmalloc mm/slab.c:3654 [inline] __kmalloc+0x164/0x340 mm/slab.c:3665 kmalloc include/linux/slab.h:560 [inline] kzalloc include/linux/slab.h:669 [inline] tomoyo_encode2.part.0+0xe9/0x3a0 security/tomoyo/realpath.c:45 tomoyo_encode2 security/tomoyo/realpath.c:31 [inline] tomoyo_encode+0x28/0x50 security/tomoyo/realpath.c:80 tomoyo_path_perm+0x35f/0x3f0 security/tomoyo/file.c:831 tomoyo_path_symlink+0x94/0xe0 security/tomoyo/tomoyo.c:200 security_path_symlink+0xdf/0x150 security/security.c:1109 do_symlinkat+0x123/0x2c0 fs/namei.c:3978 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:384 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45c937 Code: Bad RIP value. RSP: 002b:00007ffd7d47f758 EFLAGS: 00000202 ORIG_RAX: 0000000000000058 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000045c937 RDX: 00007ffd7d47f7f3 RSI: 00000000004c2714 RDI: 00007ffd7d47f7e0 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000013 R10: 0000000000000075 R11: 0000000000000202 R12: 0000000000000000 R13: 00007ffd7d47f790 R14: 0000000000000000 R15: 00007ffd7d47f7a0 Modules linked in: ---[ end trace 2cfaff46cd1672b6 ]--- RIP: 0010:__phys_addr+0xa7/0x110 arch/x86/mm/physaddr.c:28 Code: 14 7a 09 4c 89 e3 31 ff 48 d3 eb 48 89 de e8 10 5e 3f 00 48 85 db 75 0d e8 66 61 3f 00 4c 89 e0 5b 5d 41 5c c3 e8 59 61 3f 00 <0f> 0b e8 52 61 3f 00 48 c7 c0 10 10 a8 89 48 ba 00 00 00 00 00 fc RSP: 0018:ffffc90017d87a18 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 000000005966e340 RCX: ffffffff81345848 RDX: ffff88804d626140 RSI: ffffffff813458a7 RDI: 0000000000000006 RBP: 00000000d966e340 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000d966e340 R11: 0000000000000000 R12: 000077805966e340 R13: ffffc90017d87a70 R14: 0000000000000000 R15: 0000000000000282 FS: 0000000001fdd940(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1510fa8000 CR3: 000000003ca48000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400