------------[ cut here ]------------ kernel BUG at arch/x86/mm/physaddr.c:28! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 7009 Comm: syz-executor.2 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: ea 79 09 4c 89 e3 31 ff 48 d3 eb 48 89 de e8 70 5b 3f 00 48 85 db 75 0d e8 c6 5e 3f 00 4c 89 e0 5b 5d 41 5c c3 e8 b9 5e 3f 00 <0f> 0b e8 b2 5e 3f 00 48 c7 c0 10 10 a8 89 48 ba 00 00 00 00 00 fc RSP: 0018:ffffc900049579d8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff000000000000 RCX: ffffffff81345848 RDX: ffff8880702e0180 RSI: ffffffff813458a7 RDI: 0000000000000006 RBP: ffff000080000000 R08: 0000000000000000 R09: 0000000000000000 R10: ffff000080000000 R11: 0000000000000000 R12: ffff778000000000 R13: ffffc90004957a30 R14: 0000000000000000 R15: 0000000000000286 FS: 00000000026ba940(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000560519449198 CR3: 00000000702da000 CR4: 00000000001426f0 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] tomoyo_realpath_from_path+0xc3/0x620 security/tomoyo/realpath.c:254 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0x212/0x3f0 security/tomoyo/file.c:822 security_inode_getattr+0xcf/0x140 security/security.c:1278 vfs_getattr fs/stat.c:121 [inline] vfs_statx_fd+0x70/0xf0 fs/stat.c:151 vfs_fstat include/linux/fs.h:3312 [inline] __do_sys_newfstat+0x88/0x100 fs/stat.c:398 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:384 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45bf74 Code: Bad RIP value. RSP: 002b:00007ffd62c2dd48 EFLAGS: 00000246 ORIG_RAX: 0000000000000005 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045bf74 RDX: 00007ffd62c2dd50 RSI: 00007ffd62c2dd50 RDI: 0000000000000003 RBP: 0000000000000b55 R08: 0000000000000001 R09: 00000000026ba940 R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffd62c2ef30 R13: 00007ffd62c2ef20 R14: 0000000000000000 R15: 00007ffd62c2ef30 Modules linked in: ---[ end trace a9ee517c150e08e5 ]--- RIP: 0010:__phys_addr+0xa7/0x110 arch/x86/mm/physaddr.c:28 Code: ea 79 09 4c 89 e3 31 ff 48 d3 eb 48 89 de e8 70 5b 3f 00 48 85 db 75 0d e8 c6 5e 3f 00 4c 89 e0 5b 5d 41 5c c3 e8 b9 5e 3f 00 <0f> 0b e8 b2 5e 3f 00 48 c7 c0 10 10 a8 89 48 ba 00 00 00 00 00 fc RSP: 0018:ffffc900049579d8 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff000000000000 RCX: ffffffff81345848 RDX: ffff8880702e0180 RSI: ffffffff813458a7 RDI: 0000000000000006 RBP: ffff000080000000 R08: 0000000000000000 R09: 0000000000000000 R10: ffff000080000000 R11: 0000000000000000 R12: ffff778000000000 R13: ffffc90004957a30 R14: 0000000000000000 R15: 0000000000000286 FS: 00000000026ba940(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2e124000 CR3: 00000000702da000 CR4: 00000000001426e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400