loop0: detected capacity change from 0 to 1024 ------------[ cut here ]------------ kernel BUG at arch/x86/mm/physaddr.c:28! Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI CPU: 0 UID: 0 PID: 5108 Comm: syz.0.0 Not tainted 6.12.0-rc3-syzkaller-00420-g715ca9dd687f #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:__phys_addr+0x162/0x170 arch/x86/mm/physaddr.c:28 Code: e8 d3 e8 51 00 48 c7 c7 00 87 7a 8e 4c 89 f6 4c 89 fa e8 71 69 b2 03 e9 45 ff ff ff e8 b7 e8 51 00 90 0f 0b e8 af e8 51 00 90 <0f> 0b e8 a7 e8 51 00 90 0f 0b 0f 1f 40 00 90 90 90 90 90 90 90 90 RSP: 0018:ffffc9000179f4c0 EFLAGS: 00010283 RAX: ffffffff8142ff51 RBX: 0000000000000001 RCX: 0000000000040000 RDX: ffffc9000b751000 RSI: 0000000000008ae5 RDI: 0000000000008ae6 RBP: ffffc9000179f5e8 R08: ffffffff8142fe9c R09: 312e64313a30303a R10: dffffc0000000000 R11: fffff91ffff881ee R12: ffffe8ffffc40f28 R13: dffffc0000000000 R14: 000040800df5f000 R15: 000000000000002e FS: 00007fe2a86306c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020040000 CR3: 000000004082a000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: virt_to_phys arch/x86/include/asm/io.h:131 [inline] perf_trace_dma_alloc+0x3dd/0x620 include/trace/events/dma.h:117 trace_dma_alloc include/trace/events/dma.h:117 [inline] dma_alloc_attrs+0x46c/0x4e0 kernel/dma/mapping.c:622 usbdev_mmap+0x247/0x900 drivers/usb/core/devio.c:251 call_mmap include/linux/fs.h:2172 [inline] mmap_region+0x1c01/0x2a30 mm/mmap.c:1447 do_mmap+0x8f0/0x1000 mm/mmap.c:496 vm_mmap_pgoff+0x1dd/0x3d0 mm/util.c:588 ksys_mmap_pgoff+0x4eb/0x720 mm/mmap.c:542 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fe2a777dff9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe2a8630038 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007fe2a7935f80 RCX: 00007fe2a777dff9 RDX: 0000000001000002 RSI: 0000000000400000 RDI: 0000000020000000 RBP: 00007fe2a77f0296 R08: 000000000000000c R09: 0000000000000000 R10: 0000000000011012 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fe2a7935f80 R15: 00007ffef353afa8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__phys_addr+0x162/0x170 arch/x86/mm/physaddr.c:28 Code: e8 d3 e8 51 00 48 c7 c7 00 87 7a 8e 4c 89 f6 4c 89 fa e8 71 69 b2 03 e9 45 ff ff ff e8 b7 e8 51 00 90 0f 0b e8 af e8 51 00 90 <0f> 0b e8 a7 e8 51 00 90 0f 0b 0f 1f 40 00 90 90 90 90 90 90 90 90 RSP: 0018:ffffc9000179f4c0 EFLAGS: 00010283 RAX: ffffffff8142ff51 RBX: 0000000000000001 RCX: 0000000000040000 RDX: ffffc9000b751000 RSI: 0000000000008ae5 RDI: 0000000000008ae6 RBP: ffffc9000179f5e8 R08: ffffffff8142fe9c R09: 312e64313a30303a R10: dffffc0000000000 R11: fffff91ffff881ee R12: ffffe8ffffc40f28 R13: dffffc0000000000 R14: 000040800df5f000 R15: 000000000000002e FS: 00007fe2a86306c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020040000 CR3: 000000004082a000 CR4: 0000000000352ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400