------------[ cut here ]------------ WARNING: CPU: 1 PID: 29539 at kernel/events/core.c:2045 perf_group_attach+0x396/0x450 kernel/events/core.c:2045 Modules linked in: CPU: 1 PID: 29539 Comm: syz-executor.4 Not tainted 5.10.109 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 RIP: 0010:perf_group_attach+0x396/0x450 kernel/events/core.c:2045 Code: 48 c1 e8 03 42 80 3c 20 00 75 5f 48 8b 5b 10 48 83 eb 10 48 39 dd 75 d4 5b 5d 41 5c 41 5d 41 5e e9 8f e5 f2 ff e8 8a e5 f2 ff <0f> 0b e9 b1 fd ff ff 48 c7 c7 bc 50 47 85 e8 67 3e 1e 00 e9 b9 fc RSP: 0018:ffff88806cf09ef0 EFLAGS: 00010046 RAX: 0000000080010003 RBX: ffff8880511de000 RCX: ffffffff814cc6bf RDX: ffff888050f04bc0 RSI: ffffffff814cc986 RDI: ffff8880511de218 RBP: ffff888009033000 R08: 0000000000000001 R09: 0000000000000003 R10: 0000000000000000 R11: 0000000000000001 R12: ffff88804f82e800 R13: 0000000000000000 R14: 0000000000000000 R15: ffff88806cf3f748 FS: 0000555556a0a400(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1a7777d718 CR3: 00000000549b6000 CR4: 0000000000350ee0 Call Trace: add_event_to_ctx kernel/events/core.c:2688 [inline] __perf_install_in_context+0x246/0x2d0 kernel/events/core.c:2839 remote_function kernel/events/core.c:88 [inline] remote_function+0x11d/0x1a0 kernel/events/core.c:68 flush_smp_call_function_queue+0x1b4/0x5d0 kernel/smp.c:395 __sysvec_call_function_single+0x92/0x370 arch/x86/kernel/smp.c:248 asm_call_irq_on_stack+0x12/0x20 __run_sysvec_on_irqstack arch/x86/include/asm/irq_stack.h:37 [inline] run_sysvec_on_irqstack_cond arch/x86/include/asm/irq_stack.h:89 [inline] sysvec_call_function_single+0x7f/0xa0 arch/x86/kernel/smp.c:243 asm_sysvec_call_function_single+0x12/0x20 arch/x86/include/asm/idtentry.h:643 RIP: 0010:csd_lock_wait kernel/smp.c:228 [inline] RIP: 0010:smp_call_function_single+0x312/0x3e0 kernel/smp.c:516 Code: 10 8b 7c 24 1c 48 8d 74 24 40 48 89 44 24 50 48 8b 44 24 08 48 89 44 24 58 e8 fa f9 ff ff 41 89 c4 eb 07 e8 10 97 0a 00 f3 90 <8b> 5c 24 48 31 ff 83 e3 01 89 de e8 6e 90 0a 00 85 db 75 e5 e8 f5 RSP: 0018:ffff888053d47aa0 EFLAGS: 00000293 RAX: 0000000000000000 RBX: 0000000000000001 RCX: ffffffff81351812 RDX: ffff888050f04bc0 RSI: ffffffff81351800 RDI: 0000000000000005 RBP: ffff888053d47b78 R08: 0000000000000001 R09: ffffffff8655571f R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000 R13: 0000000000000200 R14: 1ffff1100a7a8f58 R15: ffff888053d47c90 task_function_call+0xd9/0x160 kernel/events/core.c:116 event_function_call+0x206/0x420 kernel/events/core.c:284 perf_remove_from_context+0x9b/0x1c0 kernel/events/core.c:2440 perf_event_release_kernel+0x3ef/0xc20 kernel/events/core.c:5074 perf_release+0x33/0x40 kernel/events/core.c:5170 __fput+0x285/0x980 fs/file_table.c:281 task_work_run+0xe2/0x1a0 kernel/task_work.c:151 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop kernel/entry/common.c:164 [inline] exit_to_user_mode_prepare+0x155/0x160 kernel/entry/common.c:191 syscall_exit_to_user_mode+0x38/0x230 kernel/entry/common.c:266 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7f1a7a1db72b Code: 0f 05 48 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 63 fc ff ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 a1 fc ff ff 8b 44 RSP: 002b:00007ffe40d20a80 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007f1a7a1db72b RDX: 00007f1a7a343f90 RSI: 0000000000000080 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000000 R09: 00007f1a7a343f98 R10: 00007ffe40d20b70 R11: 0000000000000293 R12: 0000000000206b77 R13: 00000000000003e8 R14: 00007f1a7a33bf60 R15: 0000000000206b54 irq event stamp: 2820 hardirqs last enabled at (2819): [] __send_ipi_mask+0x2fd/0x3c0 arch/x86/kernel/kvm.c:555 hardirqs last disabled at (2820): [] sysvec_call_function_single+0xb/0xa0 arch/x86/kernel/smp.c:243 softirqs last enabled at (2672): [] asm_call_irq_on_stack+0x12/0x20 softirqs last disabled at (2479): [] asm_call_irq_on_stack+0x12/0x20 ---[ end trace e35cc8b28b2cad44 ]--- ====================================================== ---------------- Code disassembly (best guess): 0: 10 8b 7c 24 1c 48 adc %cl,0x481c247c(%rbx) 6: 8d 74 24 40 lea 0x40(%rsp),%esi a: 48 89 44 24 50 mov %rax,0x50(%rsp) f: 48 8b 44 24 08 mov 0x8(%rsp),%rax 14: 48 89 44 24 58 mov %rax,0x58(%rsp) 19: e8 fa f9 ff ff callq 0xfffffa18 1e: 41 89 c4 mov %eax,%r12d 21: eb 07 jmp 0x2a 23: e8 10 97 0a 00 callq 0xa9738 28: f3 90 pause * 2a: 8b 5c 24 48 mov 0x48(%rsp),%ebx <-- trapping instruction 2e: 31 ff xor %edi,%edi 30: 83 e3 01 and $0x1,%ebx 33: 89 de mov %ebx,%esi 35: e8 6e 90 0a 00 callq 0xa90a8 3a: 85 db test %ebx,%ebx 3c: 75 e5 jne 0x23 3e: e8 .byte 0xe8 3f: f5 cmc