loop2: detected capacity change from 0 to 264192 general protection fault, probably for non-canonical address 0xdffffc0000000033: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000198-0x000000000000019f] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.19.0-next-20220808 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 RIP: 0010:x86_pmu_enable_event+0x6a/0x2e0 Code: 00 e8 aa ac 44 00 48 c7 c7 e0 63 80 84 e8 8e 2e 1d 03 48 8d bb 98 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 65 4c 8b 2d 72 2b 01 7f 84 c0 74 08 3c 03 0f 8e 0c 02 RSP: 0018:ffff88806ce09bf8 EFLAGS: 00010016 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000033 RSI: 0000000000010002 RDI: 0000000000000198 RBP: 0000000000000001 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000001 R13: ffff88806ce21e20 R14: ffff88806ce21c20 R15: fffffbfff0b5d715 FS: 0000000000000000(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000556993f5c648 CR3: 000000000eed0000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff4ff0 DR7: 0000000000000400 Call Trace: amd_pmu_enable_all+0x122/0x190 x86_pmu_enable+0x580/0xd90 perf_event_task_tick+0xa7c/0x1030 scheduler_tick+0x17e/0x350 update_process_times+0x138/0x190 tick_sched_handle+0x9b/0x180 tick_sched_timer+0xf2/0x120 __hrtimer_run_queues+0x1ca/0xbd0 hrtimer_interrupt+0x315/0x770 __sysvec_apic_timer_interrupt+0x144/0x500 sysvec_apic_timer_interrupt+0x89/0xc0 asm_sysvec_apic_timer_interrupt+0x16/0x20 RIP: 0010:default_idle+0xb/0x10 Code: c2 fe ff 4c 89 e2 48 89 ef 31 f6 5d 41 5c e9 9c f9 1a fe cc cc cc cc cc cc cc cc cc cc cc cc eb 07 0f 00 2d 57 69 62 00 fb f4 d0 2c 40 00 41 54 be 08 00 00 00 53 65 48 8b 1c 25 c0 6e 02 00 RSP: 0018:ffffffff85207e18 EFLAGS: 00000206 RAX: ffffffff84200da0 RBX: ffffffff85232900 RCX: ffffffff841e2c12 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000001 R09: ffff88806ce33b53 R10: ffffed100d9c676a R11: 0000000000000001 R12: fffffbfff0a46520 R13: ffffffff85aedd50 R14: 0000000000000000 R15: dffffc0000000000 default_idle_call+0x84/0xc0 do_idle+0x3bd/0x530 cpu_startup_entry+0x14/0x20 rest_init+0x162/0x250 arch_call_rest_init+0xf/0x14 start_kernel+0x4bc/0x4e1 secondary_startup_64_no_verify+0xe0/0xeb Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:x86_pmu_enable_event+0x6a/0x2e0 Code: 00 e8 aa ac 44 00 48 c7 c7 e0 63 80 84 e8 8e 2e 1d 03 48 8d bb 98 01 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 65 4c 8b 2d 72 2b 01 7f 84 c0 74 08 3c 03 0f 8e 0c 02 RSP: 0018:ffff88806ce09bf8 EFLAGS: 00010016 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000033 RSI: 0000000000010002 RDI: 0000000000000198 RBP: 0000000000000001 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000001 R13: ffff88806ce21e20 R14: ffff88806ce21c20 R15: fffffbfff0b5d715 FS: 0000000000000000(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000556993f5c648 CR3: 000000000eed0000 CR4: 0000000000350ef0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff4ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: e8 aa ac 44 00 callq 0x44acaf 5: 48 c7 c7 e0 63 80 84 mov $0xffffffff848063e0,%rdi c: e8 8e 2e 1d 03 callq 0x31d2e9f 11: 48 8d bb 98 01 00 00 lea 0x198(%rbx),%rdi 18: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 1f: fc ff df 22: 48 89 fa mov %rdi,%rdx 25: 48 c1 ea 03 shr $0x3,%rdx * 29: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax <-- trapping instruction 2d: 65 4c 8b 2d 72 2b 01 mov %gs:0x7f012b72(%rip),%r13 # 0x7f012ba7 34: 7f 35: 84 c0 test %al,%al 37: 74 08 je 0x41 39: 3c 03 cmp $0x3,%al 3b: 0f .byte 0xf 3c: 8e 0c 02 mov (%rdx,%rax,1),%cs