------------[ cut here ]------------
WARNING: CPU: 0 PID: 7142 at kernel/events/core.c:2045 perf_group_attach+0x396/0x450 kernel/events/core.c:2045
Modules linked in:
CPU: 0 PID: 7142 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:ffff88806ce09db8 EFLAGS: 00010046
RAX: 0000000000000000 RBX: ffff88804614f000 RCX: ffffffff814cc6bf
RDX: ffff88801a9a0000 RSI: ffffffff814cc986 RDI: ffff88804614f218
RBP: ffff88804555c000 R08: 0000000000000001 R09: ffffffff85e3600f
R10: 0000000000000000 R11: ffffffff85e3601b R12: ffff888045db8400
R13: 0000000000000000 R14: 0000000000000000 R15: ffff88806ce3f748
FS: 0000555557012400(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056104b352080 CR3: 000000004af72000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
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
run_sysvec_on_irqstack_cond arch/x86/include/asm/irq_stack.h:91 [inline]
sysvec_call_function_single+0x3e/0xa0 arch/x86/kernel/smp.c:243
asm_sysvec_call_function_single+0x12/0x20 arch/x86/include/asm/idtentry.h:643
RIP: 0010:__do_softirq+0x173/0x867 kernel/softirq.c:284
Code: c8 83 83 94 08 00 00 01 c7 44 24 20 0a 00 00 00 48 89 44 24 18 65 66 c7 05 d8 a6 03 7c 00 00 e8 b3 ed 45 fd fb b8 ff ff ff ff <48> c7 c3 c0 a0 c0 84 41 0f bc c5 89 c1 83 c1 01 89 4c 24 04 0f 85
RSP: 0018:ffff88806ce09f88 EFLAGS: 00000212
RAX: 00000000ffffffff RBX: ffff88801a9a0000 RCX: 1ffffffff0a8e199
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8400016d
RBP: ffff88804b177bb0 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
R13: 0000000000000200 R14: 0000000000000000 R15: 0000000000000000
asm_call_irq_on_stack+0x12/0x20
__run_on_irqstack arch/x86/include/asm/irq_stack.h:26 [inline]
run_on_irqstack_cond arch/x86/include/asm/irq_stack.h:77 [inline]
do_softirq_own_stack+0x80/0xa0 arch/x86/kernel/irq_64.c:77
invoke_softirq kernel/softirq.c:393 [inline]
__irq_exit_rcu kernel/softirq.c:423 [inline]
irq_exit_rcu+0x110/0x1a0 kernel/softirq.c:435
sysvec_apic_timer_interrupt+0x43/0xa0 arch/x86/kernel/apic/apic.c:1095
asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:635
RIP: 0010:lock_acquire+0x1b9/0x490 kernel/locking/lockdep.c:5530
Code: cf db 7e e8 19 91 ff ff b8 ff ff ff ff 48 83 c4 20 65 0f c1 05 88 cf db 7e 83 f8 01 4c 8b 54 24 08 0f 85 6a 02 00 00 41 52 9d <48> b8 00 00 00 00 00 fc ff df 48 01 c3 48 c7 03 00 00 00 00 48 c7
RSP: 0018:ffff88804b177ca0 EFLAGS: 00000246
RAX: 0000000000000001 RBX: 1ffff1100962ef96 RCX: 00000000ef9df767
RDX: 1ffff11003534115 RSI: f059bce437243ed8 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000000 R09: ffffffff86555667
R10: 0000000000000246 R11: 0000000000000001 R12: 0000000000000002
R13: 0000000000000000 R14: ffffffff84df6fe0 R15: 0000000000000000
rcu_lock_acquire include/linux/rcupdate.h:258 [inline]
rcu_read_lock include/linux/rcupdate.h:651 [inline]
mntput_no_expire+0xa5/0xc20 fs/namespace.c:1144
mntput+0x67/0x90 fs/namespace.c:1214
__fput+0x3c8/0x980 fs/file_table.c:297
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:0x7fab9c98272b
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:00007fff4b6deac0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007fab9c98272b
RDX: 00007fab9caec338 RSI: 0000000000000081 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 00007fab9cee7000 R11: 0000000000000293 R12: 00007fab9caec338
R13: 00007fff4b6debe0 R14: 00007fab9cae2f60 R15: 00000000000b8921
irq event stamp: 4113
hardirqs last enabled at (4112): [] __do_softirq+0x16d/0x867 kernel/softirq.c:282
hardirqs last disabled at (4113): [] sysvec_call_function_single+0xb/0xa0 arch/x86/kernel/smp.c:243
softirqs last enabled at (4052): [] sock_orphan include/net/sock.h:1873 [inline]
softirqs last enabled at (4052): [] sk_common_release+0x147/0x390 net/core/sock.c:3285
softirqs last disabled at (4111): [] asm_call_irq_on_stack+0x12/0x20
---[ end trace d7f2c0454d4ce0cd ]---
======================================================
----------------
Code disassembly (best guess):
0: c8 83 83 94 enterq $0x8383,$0x94
4: 08 00 or %al,(%rax)
6: 00 01 add %al,(%rcx)
8: c7 44 24 20 0a 00 00 movl $0xa,0x20(%rsp)
f: 00
10: 48 89 44 24 18 mov %rax,0x18(%rsp)
15: 65 66 c7 05 d8 a6 03 movw $0x0,%gs:0x7c03a6d8(%rip) # 0x7c03a6f7
1c: 7c 00 00
1f: e8 b3 ed 45 fd callq 0xfd45edd7
24: fb sti
25: b8 ff ff ff ff mov $0xffffffff,%eax
* 2a: 48 c7 c3 c0 a0 c0 84 mov $0xffffffff84c0a0c0,%rbx <-- trapping instruction
31: 41 0f bc c5 bsf %r13d,%eax
35: 89 c1 mov %eax,%ecx
37: 83 c1 01 add $0x1,%ecx
3a: 89 4c 24 04 mov %ecx,0x4(%rsp)
3e: 0f .byte 0xf
3f: 85 .byte 0x85