------------[ cut here ]------------ kernel BUG at arch/x86/mm/physaddr.c:28! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 35 Comm: kworker/1:1 Not tainted 5.11.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: md_misc mddev_delayed_delete RIP: 0010:__phys_addr+0x6c/0xd0 arch/x86/mm/physaddr.c:28 Code: 0e 38 d1 7f 04 84 c9 75 23 0f b6 0d 73 07 06 0b 80 f9 3f 0f 87 77 7f c9 06 48 89 c2 48 d3 ea 48 85 d2 75 06 48 83 c4 10 5b c3 <0f> 0b 48 c7 c7 b5 1c 33 8c 48 89 04 24 e8 62 1b 74 00 48 8b 04 24 RSP: 0018:ffffc90000e3fc48 EFLAGS: 00010287 RAX: 0000778000000000 RBX: 0000000080000000 RCX: 0000000000000001 RDX: 0000000000000004 RSI: 1ffff110022ec845 RDI: 0000000000000000 RBP: 0000000000000007 R08: 0000000000000001 R09: ffffffff8e16191f R10: fffffbfff1c2c323 R11: 000000000000014a R12: 1ffff1100717f1b1 R13: ffffed100717f1b2 R14: 0000000000000000 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4834d0d718 CR3: 0000000011f46000 CR4: 0000000000350ee0 Call Trace: virt_to_head_page include/linux/mm.h:874 [inline] __ksize+0x13/0x110 mm/slub.c:4107 kasan_unpoison_element mm/mempool.c:115 [inline] remove_element mm/mempool.c:133 [inline] mempool_exit+0x166/0x2e0 mm/mempool.c:152 md_free+0x12e/0x1b0 drivers/md/md.c:5608 kobject_cleanup lib/kobject.c:705 [inline] kobject_release lib/kobject.c:736 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x139/0x410 lib/kobject.c:753 process_one_work+0x84c/0x13b0 kernel/workqueue.c:2275 worker_thread+0x598/0xf80 kernel/workqueue.c:2421 kthread+0x36f/0x450 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:296 Modules linked in: ---[ end trace b1ae73a9e32c14e6 ]--- RIP: 0010:__phys_addr+0x6c/0xd0 arch/x86/mm/physaddr.c:28 Code: 0e 38 d1 7f 04 84 c9 75 23 0f b6 0d 73 07 06 0b 80 f9 3f 0f 87 77 7f c9 06 48 89 c2 48 d3 ea 48 85 d2 75 06 48 83 c4 10 5b c3 <0f> 0b 48 c7 c7 b5 1c 33 8c 48 89 04 24 e8 62 1b 74 00 48 8b 04 24 RSP: 0018:ffffc90000e3fc48 EFLAGS: 00010287 RAX: 0000778000000000 RBX: 0000000080000000 RCX: 0000000000000001 RDX: 0000000000000004 RSI: 1ffff110022ec845 RDI: 0000000000000000 RBP: 0000000000000007 R08: 0000000000000001 R09: ffffffff8e16191f R10: fffffbfff1c2c323 R11: 000000000000014a R12: 1ffff1100717f1b1 R13: ffffed100717f1b2 R14: 0000000000000000 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4834d0d718 CR3: 00000000371b0000 CR4: 0000000000350ee0