------------[ cut here ]------------ kernel BUG at arch/x86/mm/physaddr.c:28! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 2984 Comm: udevd Not tainted 5.19.0-next-20220815-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022 RIP: 0010:__phys_addr+0xd3/0x140 arch/x86/mm/physaddr.c:28 Code: e3 44 89 e9 31 ff 48 d3 eb 48 89 de e8 16 24 45 00 48 85 db 75 0f e8 2c 27 45 00 4c 89 e0 5b 5d 41 5c 41 5d c3 e8 1d 27 45 00 <0f> 0b e8 16 27 45 00 48 c7 c0 10 50 cb 8b 48 ba 00 00 00 00 00 fc RSP: 0018:ffffc90002e5fc48 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff000000000000 RCX: 0000000000000000 RDX: ffff88807a2e9d80 RSI: ffffffff8136e1c3 RDI: 0000000000000006 RBP: ffff000080000000 R08: 0000000000000006 R09: ffff000080000000 R10: ffff778000000000 R11: 0000000000000000 R12: ffff778000000000 R13: ffffc90002e5fcb0 R14: ffff000000000000 R15: 0000000000000000 FS: 00007febe85ae840(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffdd3f339f8 CR3: 000000002549e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: virt_to_folio include/linux/mm.h:856 [inline] virt_to_slab mm/kasan/../slab.h:175 [inline] qlink_to_cache mm/kasan/quarantine.c:131 [inline] qlist_free_all+0x86/0x170 mm/kasan/quarantine.c:184 kasan_quarantine_reduce+0x180/0x200 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0xa2/0xc0 mm/kasan/common.c:447 kasan_slab_alloc include/linux/kasan.h:224 [inline] slab_post_alloc_hook mm/slab.h:727 [inline] slab_alloc_node mm/slub.c:3243 [inline] slab_alloc mm/slub.c:3251 [inline] __kmem_cache_alloc_lru mm/slub.c:3258 [inline] kmem_cache_alloc+0x267/0x3b0 mm/slub.c:3268 getname_flags.part.0+0x50/0x4f0 fs/namei.c:139 getname_flags include/linux/audit.h:320 [inline] getname+0x8e/0xd0 fs/namei.c:218 do_sys_openat2+0xf5/0x4c0 fs/open.c:1305 do_sys_open fs/open.c:1327 [inline] __do_sys_openat fs/open.c:1343 [inline] __se_sys_openat fs/open.c:1338 [inline] __x64_sys_openat+0x13f/0x1f0 fs/open.c:1338 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7febe8125697 Code: 25 00 00 41 00 3d 00 00 41 00 74 37 64 8b 04 25 18 00 00 00 85 c0 75 5b 44 89 e2 48 89 ee bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 85 00 00 00 48 83 c4 68 5d 41 5c c3 0f 1f RSP: 002b:00007ffdd3f35570 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 000055bbe5cf3af0 RCX: 00007febe8125697 RDX: 0000000000080000 RSI: 00007ffdd3f356a8 RDI: 00000000ffffff9c RBP: 00007ffdd3f356a8 R08: 0000000000000008 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000080000 R13: 000055bbe5cf3af0 R14: 0000000000000001 R15: 000055bbe5ccc910 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__phys_addr+0xd3/0x140 arch/x86/mm/physaddr.c:28 Code: e3 44 89 e9 31 ff 48 d3 eb 48 89 de e8 16 24 45 00 48 85 db 75 0f e8 2c 27 45 00 4c 89 e0 5b 5d 41 5c 41 5d c3 e8 1d 27 45 00 <0f> 0b e8 16 27 45 00 48 c7 c0 10 50 cb 8b 48 ba 00 00 00 00 00 fc RSP: 0018:ffffc90002e5fc48 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffff000000000000 RCX: 0000000000000000 RDX: ffff88807a2e9d80 RSI: ffffffff8136e1c3 RDI: 0000000000000006 RBP: ffff000080000000 R08: 0000000000000006 R09: ffff000080000000 R10: ffff778000000000 R11: 0000000000000000 R12: ffff778000000000 R13: ffffc90002e5fcb0 R14: ffff000000000000 R15: 0000000000000000 FS: 00007febe85ae840(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007febe80e0880 CR3: 000000002549e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400