------------[ cut here ]------------ kernel BUG at arch/x86/mm/physaddr.c:28! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 3911 Comm: systemd-udevd Not tainted 5.9.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__phys_addr+0x107/0x120 arch/x86/mm/physaddr.c:28 Code: eb ab 48 c7 c1 a5 ef 8e 89 80 e1 07 38 c1 0f 8c 75 ff ff ff 48 c7 c7 a5 ef 8e 89 e8 d3 ff 7f 00 e9 64 ff ff ff e8 09 29 40 00 <0f> 0b e8 02 29 40 00 0f 0b e8 fb 28 40 00 0f 0b 66 0f 1f 84 00 00 RSP: 0018:ffffc900053b7870 EFLAGS: 00010293 RAX: ffffffff8134cf17 RBX: 0007000080000707 RCX: ffff8880a2656040 RDX: 0000000000000000 RSI: 0007000080000707 RDI: 0007778000000707 RBP: 0007000000000707 R08: ffffffff8134ce51 R09: ffffed1025fff799 R10: ffffed1025fff799 R11: 0000000000000000 R12: ffff8881cb752000 R13: 0000000000001000 R14: 0007778000000707 R15: ffffea0000000000 FS: 00007f658ee148c0(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055c46162b288 CR3: 00000000a1f56000 CR4: 00000000001526e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: virt_to_head_page include/linux/mm.h:843 [inline] qlink_to_cache mm/kasan/quarantine.c:128 [inline] qlist_free_all mm/kasan/quarantine.c:165 [inline] quarantine_reduce+0x130/0x1c0 mm/kasan/quarantine.c:261 __kasan_kmalloc+0x32/0x130 mm/kasan/common.c:442 slab_post_alloc_hook+0x3e/0x290 mm/slab.h:518 slab_alloc mm/slab.c:3312 [inline] __do_kmalloc mm/slab.c:3653 [inline] __kmalloc+0x205/0x320 mm/slab.c:3664 kmalloc include/linux/slab.h:559 [inline] tomoyo_realpath_from_path+0xd8/0x630 security/tomoyo/realpath.c:254 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0x17d/0x740 security/tomoyo/file.c:822 security_inode_getattr+0xc0/0x140 security/security.c:1278 vfs_getattr fs/stat.c:121 [inline] vfs_statx+0x118/0x380 fs/stat.c:206 vfs_lstat include/linux/fs.h:3175 [inline] __do_sys_newlstat fs/stat.c:374 [inline] __se_sys_newlstat fs/stat.c:368 [inline] __x64_sys_newlstat+0x81/0xd0 fs/stat.c:368 do_syscall_64+0x31/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7f658dc87335 Code: 69 db 2b 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 83 ff 01 48 89 f0 77 30 48 89 c7 48 89 d6 b8 06 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 03 f3 c3 90 48 8b 15 31 db 2b 00 f7 d8 64 89 RSP: 002b:00007ffe2ad7cec8 EFLAGS: 00000246 ORIG_RAX: 0000000000000006 RAX: ffffffffffffffda RBX: 000055c4615ea120 RCX: 00007f658dc87335 RDX: 00007ffe2ad7cf00 RSI: 00007ffe2ad7cf00 RDI: 000055c4615e9120 RBP: 00007ffe2ad7cfc0 R08: 00007f658df461f8 R09: 0000000000001010 R10: 00007f658df45b58 R11: 0000000000000246 R12: 000055c4615e9120 R13: 000055c4615e912c R14: 000055c4615f8ae5 R15: 000055c4615f8aec Modules linked in: ---[ end trace e33cb0e81de41fd1 ]--- RIP: 0010:__phys_addr+0x107/0x120 arch/x86/mm/physaddr.c:28 Code: eb ab 48 c7 c1 a5 ef 8e 89 80 e1 07 38 c1 0f 8c 75 ff ff ff 48 c7 c7 a5 ef 8e 89 e8 d3 ff 7f 00 e9 64 ff ff ff e8 09 29 40 00 <0f> 0b e8 02 29 40 00 0f 0b e8 fb 28 40 00 0f 0b 66 0f 1f 84 00 00 RSP: 0018:ffffc900053b7870 EFLAGS: 00010293 RAX: ffffffff8134cf17 RBX: 0007000080000707 RCX: ffff8880a2656040 RDX: 0000000000000000 RSI: 0007000080000707 RDI: 0007778000000707 RBP: 0007000000000707 R08: ffffffff8134ce51 R09: ffffed1025fff799 R10: ffffed1025fff799 R11: 0000000000000000 R12: ffff8881cb752000 R13: 0000000000001000 R14: 0007778000000707 R15: ffffea0000000000 FS: 00007f658ee148c0(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055c46162b288 CR3: 00000000a1f56000 CR4: 00000000001526e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400