audit: type=1400 audit(1664008166.389:8): avc: denied { kernel } for pid=3761 comm="syz-executor.4" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=perf_event permissive=1 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 3760 at kernel/events/core.c:2233 event_filter_match+0x422/0x660 Modules linked in: CPU: 0 PID: 3760 Comm: modprobe Not tainted 6.0.0-rc6-next-20220923 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 RIP: 0010:event_filter_match+0x422/0x660 Code: 00 00 00 e9 7c fc ff ff e8 1b 1e f1 ff 65 8b 2d e0 88 ad 7e 31 ff 89 ee e8 bb 1a f1 ff 85 ed 0f 84 ef 00 00 00 e8 fe 1d f1 ff <0f> 0b eb 9f e8 c5 80 23 00 e9 17 fc ff ff e8 eb 1d f1 ff 48 8d 7b RSP: 0018:ffff88806ce09c70 EFLAGS: 00010046 RAX: 0000000080010001 RBX: ffff888040a30000 RCX: 0000000000000000 RDX: ffff888040a11ac0 RSI: ffffffff8154ecf2 RDI: 0000000000000005 RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000001 R10: 0000000000000000 R11: ffffffff865b001b R12: ffff888040a30220 R13: 0000000000000000 R14: ffff888040a300a8 R15: ffff888040a30220 FS: 0000000000000000(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005648cb3b3290 CR3: 000000001f1c6000 CR4: 0000000000350ef0 Call Trace: merge_sched_in+0x107/0x1110 visit_groups_merge.constprop.0.isra.0+0x4fc/0xef0 ctx_sched_in+0x2e6/0x770 perf_event_sched_in+0x75/0x80 ctx_resched+0x1ce/0x390 __perf_install_in_context+0x285/0x9c0 remote_function+0x125/0x1b0 __flush_smp_call_function_queue+0x1df/0x5a0 __sysvec_call_function_single+0x92/0x3a0 sysvec_call_function_single+0x89/0xc0 asm_sysvec_call_function_single+0x16/0x20 RIP: 0010:debug_check_no_locks_freed+0xf4/0x1c0 Code: 28 49 39 d4 73 33 49 8d 14 34 48 39 d0 48 89 14 24 73 26 e8 de 7b d2 02 85 c0 75 31 41 f7 c6 00 02 00 00 74 01 fb 48 83 c4 10 <5b> 5d 41 5c 41 5d 41 5e 41 5f e9 9d e2 36 03 48 83 c3 28 48 39 cb RSP: 0018:ffff888018527898 EFLAGS: 00000282 RAX: ffff88800feb7858 RBX: ffff888040a12470 RCX: ffff888040a12470 RDX: ffff88800feb7880 RSI: 0000000000000040 RDI: ffff888040a12430 RBP: ffff888040a12438 R08: 00000000ffffffff R09: ffff88800ffa2d60 R10: ffff88806c6738e0 R11: 0000000000000001 R12: ffff888041452510 R13: ffff888040a11ac0 R14: 0000000000000202 R15: dffffc0000000000 __raw_spin_lock_init+0x1c/0x110 __create_object+0x121/0xc10 kmem_cache_alloc_bulk+0x3fe/0x7a0 mas_alloc_nodes+0x2ff/0x800 mas_preallocate+0x1bb/0x360 do_mas_align_munmap.constprop.0+0x111/0x1000 do_mas_munmap+0x1e8/0x2b0 mmap_region+0x21c/0x1a00 do_mmap+0x828/0xf40 vm_mmap_pgoff+0x1af/0x270 ksys_mmap_pgoff+0x3d0/0x4f0 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fb5bdcd2d82 Code: eb aa 66 0f 1f 44 00 00 41 f7 c1 ff 0f 00 00 75 27 55 48 89 fd 53 89 cb 48 85 ff 74 33 41 89 da 48 89 ef b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 56 5b 5d c3 0f 1f 00 c7 05 ae 03 01 00 16 00 RSP: 002b:00007ffefb820918 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007fb5bdcd2d82 RDX: 0000000000000001 RSI: 0000000000090000 RDI: 00007fb5bdbc2000 RBP: 00007fb5bdbc2000 R08: 0000000000000000 R09: 000000000022d000 R10: 0000000000000812 R11: 0000000000000206 R12: 00007fb5bdcb1510 R13: 00007ffefb820930 R14: 00007ffefb820990 R15: 00007ffefb820cc0 irq event stamp: 5188 hardirqs last enabled at (5187): [] _raw_spin_unlock_irqrestore+0x28/0x60 hardirqs last disabled at (5188): [] sysvec_call_function_single+0xb/0xc0 softirqs last enabled at (5004): [] __irq_exit_rcu+0x11b/0x180 softirqs last disabled at (4967): [] __irq_exit_rcu+0x11b/0x180 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ WARNING: CPU: 0 PID: 3760 at kernel/events/core.c:2557 merge_sched_in+0xadb/0x1110 Modules linked in: CPU: 0 PID: 3760 Comm: modprobe Tainted: G W 6.0.0-rc6-next-20220923 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 RIP: 0010:merge_sched_in+0xadb/0x1110 Code: ff ff e8 c8 1a ef ff 65 8b 05 8d 85 ab 7e 31 ff 89 c6 89 04 24 e8 65 17 ef ff 8b 04 24 85 c0 0f 84 13 02 00 00 e8 a5 1a ef ff <0f> 0b e9 c4 fb ff ff e8 99 1a ef ff 4c 89 e8 48 05 18 01 00 00 e9 RSP: 0018:ffff88806ce09cb0 EFLAGS: 00010046 RAX: 0000000080010001 RBX: ffff88806ce3d140 RCX: 0000000000000000 RDX: ffff888040a11ac0 RSI: ffffffff8156f04b RDI: 0000000000000005 RBP: ffff888040a30000 R08: 0000000000000005 R09: 0000000000000001 R10: 0000000000000000 R11: ffffffff865b001b R12: ffff88806ce3d140 R13: ffff88806ce00000 R14: ffff888040a300a8 R15: ffff888040a30220 FS: 0000000000000000(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005648cb3b3290 CR3: 000000001f1c6000 CR4: 0000000000350ef0 Call Trace: visit_groups_merge.constprop.0.isra.0+0x4fc/0xef0 ctx_sched_in+0x2e6/0x770 perf_event_sched_in+0x75/0x80 ctx_resched+0x1ce/0x390 __perf_install_in_context+0x285/0x9c0 remote_function+0x125/0x1b0 __flush_smp_call_function_queue+0x1df/0x5a0 __sysvec_call_function_single+0x92/0x3a0 sysvec_call_function_single+0x89/0xc0 asm_sysvec_call_function_single+0x16/0x20 RIP: 0010:debug_check_no_locks_freed+0xf4/0x1c0 Code: 28 49 39 d4 73 33 49 8d 14 34 48 39 d0 48 89 14 24 73 26 e8 de 7b d2 02 85 c0 75 31 41 f7 c6 00 02 00 00 74 01 fb 48 83 c4 10 <5b> 5d 41 5c 41 5d 41 5e 41 5f e9 9d e2 36 03 48 83 c3 28 48 39 cb RSP: 0018:ffff888018527898 EFLAGS: 00000282 RAX: ffff88800feb7858 RBX: ffff888040a12470 RCX: ffff888040a12470 RDX: ffff88800feb7880 RSI: 0000000000000040 RDI: ffff888040a12430 RBP: ffff888040a12438 R08: 00000000ffffffff R09: ffff88800ffa2d60 R10: ffff88806c6738e0 R11: 0000000000000001 R12: ffff888041452510 R13: ffff888040a11ac0 R14: 0000000000000202 R15: dffffc0000000000 __raw_spin_lock_init+0x1c/0x110 __create_object+0x121/0xc10 kmem_cache_alloc_bulk+0x3fe/0x7a0 mas_alloc_nodes+0x2ff/0x800 mas_preallocate+0x1bb/0x360 do_mas_align_munmap.constprop.0+0x111/0x1000 do_mas_munmap+0x1e8/0x2b0 mmap_region+0x21c/0x1a00 do_mmap+0x828/0xf40 vm_mmap_pgoff+0x1af/0x270 ksys_mmap_pgoff+0x3d0/0x4f0 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fb5bdcd2d82 Code: eb aa 66 0f 1f 44 00 00 41 f7 c1 ff 0f 00 00 75 27 55 48 89 fd 53 89 cb 48 85 ff 74 33 41 89 da 48 89 ef b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 56 5b 5d c3 0f 1f 00 c7 05 ae 03 01 00 16 00 RSP: 002b:00007ffefb820918 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007fb5bdcd2d82 RDX: 0000000000000001 RSI: 0000000000090000 RDI: 00007fb5bdbc2000 RBP: 00007fb5bdbc2000 R08: 0000000000000000 R09: 000000000022d000 R10: 0000000000000812 R11: 0000000000000206 R12: 00007fb5bdcb1510 R13: 00007ffefb820930 R14: 00007ffefb820990 R15: 00007ffefb820cc0 irq event stamp: 5188 hardirqs last enabled at (5187): [] _raw_spin_unlock_irqrestore+0x28/0x60 hardirqs last disabled at (5188): [] sysvec_call_function_single+0xb/0xc0 softirqs last enabled at (5004): [] __irq_exit_rcu+0x11b/0x180 softirqs last disabled at (4967): [] __irq_exit_rcu+0x11b/0x180 ---[ end trace 0000000000000000 ]--- audit: type=1400 audit(1664008166.577:9): avc: denied { write } for pid=3761 comm="syz-executor.4" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=perf_event permissive=1 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 3762 at arch/x86/events/core.c:1200 collect_events+0x500/0x870 Modules linked in: CPU: 0 PID: 3762 Comm: syz-executor.4 Tainted: G W 6.0.0-rc6-next-20220923 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 RIP: 0010:collect_events+0x500/0x870 Code: 85 db 0f 85 4d fe ff ff e8 fd 58 45 00 65 8b 1d c2 c3 01 7f 31 ff 89 de e8 9d 55 45 00 85 db 0f 84 4c 02 00 00 e8 e0 58 45 00 <0f> 0b e9 24 fe ff ff e8 d4 58 45 00 49 8d bc 24 48 13 00 00 48 b8 RSP: 0018:ffff888021087bd0 EFLAGS: 00010216 RAX: 0000000000002197 RBX: 0000000000000001 RCX: ffffc90004ff3000 RDX: 0000000000040000 RSI: ffffffff8100b210 RDI: 0000000000000005 RBP: ffff888008668000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffff888040ca4000 R13: 0000000000000006 R14: 0000000000000000 R15: 0000000000000001 FS: 00007ff27a98f700(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020001000 CR3: 00000000407f4000 CR4: 0000000000350ef0 Call Trace: x86_pmu_event_init+0x4b9/0xbc0 perf_try_init_event+0x202/0x570 perf_event_alloc.part.0+0xff8/0x3b90 __do_sys_perf_event_open+0x4c6/0x32c0 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7ff27d419b19 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff27a98f188 EFLAGS: 00000246 ORIG_RAX: 000000000000012a RAX: ffffffffffffffda RBX: 00007ff27d52cf60 RCX: 00007ff27d419b19 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000280 RBP: 00007ff27d473f6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000004 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd5413212f R14: 00007ff27a98f300 R15: 0000000000022000 irq event stamp: 1711 hardirqs last enabled at (1721): [] __up_console_sem+0x78/0x80 hardirqs last disabled at (1732): [] __up_console_sem+0x5d/0x80 softirqs last enabled at (1384): [] __irq_exit_rcu+0x11b/0x180 softirqs last disabled at (1375): [] __irq_exit_rcu+0x11b/0x180 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ ====================================================== ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 49 39 d4 cmp %rdx,%r12 3: 73 33 jae 0x38 5: 49 8d 14 34 lea (%r12,%rsi,1),%rdx 9: 48 39 d0 cmp %rdx,%rax c: 48 89 14 24 mov %rdx,(%rsp) 10: 73 26 jae 0x38 12: e8 de 7b d2 02 callq 0x2d27bf5 17: 85 c0 test %eax,%eax 19: 75 31 jne 0x4c 1b: 41 f7 c6 00 02 00 00 test $0x200,%r14d 22: 74 01 je 0x25 24: fb sti 25: 48 83 c4 10 add $0x10,%rsp * 29: 5b pop %rbx <-- trapping instruction 2a: 5d pop %rbp 2b: 41 5c pop %r12 2d: 41 5d pop %r13 2f: 41 5e pop %r14 31: 41 5f pop %r15 33: e9 9d e2 36 03 jmpq 0x336e2d5 38: 48 83 c3 28 add $0x28,%rbx 3c: 48 39 cb cmp %rcx,%rbx