audit: type=1400 audit(1662993065.881:8): avc: denied { kernel } for pid=3938 comm="syz-executor.5" 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: 3937 at kernel/events/core.c:2233 event_filter_match+0x422/0x660 Modules linked in: CPU: 0 PID: 3937 Comm: modprobe Not tainted 6.0.0-rc5-next-20220912 #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 4b 15 f1 ff 65 8b 2d c0 73 ad 7e 31 ff 89 ee e8 eb 11 f1 ff 85 ed 0f 84 ef 00 00 00 e8 2e 15 f1 ff <0f> 0b eb 9f e8 15 80 23 00 e9 17 fc ff ff e8 1b 15 f1 ff 48 8d 7b RSP: 0018:ffff88806ce09c70 EFLAGS: 00010046 RAX: 0000000080010002 RBX: ffff88803fe80000 RCX: 0000000000000000 RDX: ffff8880101db580 RSI: ffffffff81550212 RDI: 0000000000000005 RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000001 R10: 0000000000000000 R11: ffffffff865aa01b R12: ffff88803fe80220 R13: 0000000000000000 R14: ffff88803fe800a8 R15: ffff88803fe80220 FS: 0000000000000000(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb5ce21b8e0 CR3: 000000000eedc000 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:_raw_spin_unlock_irqrestore+0x2e/0x60 Code: 48 83 c7 18 53 48 89 f3 48 8b 74 24 10 e8 9a 4d 04 fd 48 89 ef e8 f2 c2 04 fd 80 e7 02 74 06 e8 98 05 27 fd fb bf 01 00 00 00 3d 4e fa fc 65 8b 05 66 84 dc 7b 85 c0 74 07 5b 5d e9 db 50 3a RSP: 0018:ffff88803fedf798 EFLAGS: 00000206 RAX: 0000000000002253 RBX: 0000000000000246 RCX: ffffffff812999ff RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001 RBP: ffffffff854ced60 R08: 0000000000000001 R09: ffffffff86cc97ef R10: fffffbfff0d992fd R11: 0000000000000001 R12: ffff888018174210 R13: ffff888007c75000 R14: 0000000000000004 R15: 0000000000000dc0 kmem_cache_alloc_bulk+0x3fe/0x7a0 mas_alloc_nodes+0x2ff/0x800 mas_preallocate+0x1bb/0x360 __vma_adjust+0x18a/0x1aa0 __split_vma+0x4c3/0x5d0 do_mas_align_munmap.constprop.0+0x62d/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:0x7fb5ce51fd82 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:00007ffcf5a725b8 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007fb5ce51fd82 RDX: 0000000000000003 RSI: 0000000000006000 RDI: 00007fb5ce1d8000 RBP: 00007fb5ce1d8000 R08: 0000000000000000 R09: 00000000001ba000 R10: 0000000000000812 R11: 0000000000000206 R12: 00007fb5ce4fea20 R13: 00007ffcf5a725d0 R14: 00007ffcf5a72660 R15: 00007ffcf5a729f0 irq event stamp: 8788 hardirqs last enabled at (8787): [] _raw_spin_unlock_irqrestore+0x28/0x60 hardirqs last disabled at (8788): [] sysvec_call_function_single+0xb/0xc0 softirqs last enabled at (8306): [] __irq_exit_rcu+0x11b/0x180 softirqs last disabled at (8269): [] __irq_exit_rcu+0x11b/0x180 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ WARNING: CPU: 0 PID: 3937 at kernel/events/core.c:2557 merge_sched_in+0xadb/0x1110 Modules linked in: CPU: 0 PID: 3937 Comm: modprobe Tainted: G W 6.0.0-rc5-next-20220912 #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 78 16 ef ff 65 8b 05 ed 74 ab 7e 31 ff 89 c6 89 04 24 e8 15 13 ef ff 8b 04 24 85 c0 0f 84 13 02 00 00 e8 55 16 ef ff <0f> 0b e9 c4 fb ff ff e8 49 16 ef ff 4c 89 e8 48 05 18 01 00 00 e9 RSP: 0018:ffff88806ce09cb0 EFLAGS: 00010046 RAX: 0000000080010002 RBX: ffff88806ce3d100 RCX: 0000000000000000 RDX: ffff8880101db580 RSI: ffffffff815700eb RDI: 0000000000000005 RBP: ffff88803fe80000 R08: 0000000000000005 R09: 0000000000000001 R10: 0000000000000000 R11: ffffffff865aa01b R12: ffff88806ce3d100 R13: ffff88806ce00000 R14: ffff88803fe800a8 R15: ffff88803fe80220 FS: 0000000000000000(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb5ce21b8e0 CR3: 000000000eedc000 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:_raw_spin_unlock_irqrestore+0x2e/0x60 Code: 48 83 c7 18 53 48 89 f3 48 8b 74 24 10 e8 9a 4d 04 fd 48 89 ef e8 f2 c2 04 fd 80 e7 02 74 06 e8 98 05 27 fd fb bf 01 00 00 00 3d 4e fa fc 65 8b 05 66 84 dc 7b 85 c0 74 07 5b 5d e9 db 50 3a RSP: 0018:ffff88803fedf798 EFLAGS: 00000206 RAX: 0000000000002253 RBX: 0000000000000246 RCX: ffffffff812999ff RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001 RBP: ffffffff854ced60 R08: 0000000000000001 R09: ffffffff86cc97ef R10: fffffbfff0d992fd R11: 0000000000000001 R12: ffff888018174210 R13: ffff888007c75000 R14: 0000000000000004 R15: 0000000000000dc0 kmem_cache_alloc_bulk+0x3fe/0x7a0 mas_alloc_nodes+0x2ff/0x800 mas_preallocate+0x1bb/0x360 __vma_adjust+0x18a/0x1aa0 __split_vma+0x4c3/0x5d0 do_mas_align_munmap.constprop.0+0x62d/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:0x7fb5ce51fd82 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:00007ffcf5a725b8 EFLAGS: 00000206 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 0000000000000812 RCX: 00007fb5ce51fd82 RDX: 0000000000000003 RSI: 0000000000006000 RDI: 00007fb5ce1d8000 RBP: 00007fb5ce1d8000 R08: 0000000000000000 R09: 00000000001ba000 R10: 0000000000000812 R11: 0000000000000206 R12: 00007fb5ce4fea20 R13: 00007ffcf5a725d0 R14: 00007ffcf5a72660 R15: 00007ffcf5a729f0 irq event stamp: 8788 hardirqs last enabled at (8787): [] _raw_spin_unlock_irqrestore+0x28/0x60 hardirqs last disabled at (8788): [] sysvec_call_function_single+0xb/0xc0 softirqs last enabled at (8306): [] __irq_exit_rcu+0x11b/0x180 softirqs last disabled at (8269): [] __irq_exit_rcu+0x11b/0x180 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ ====================================================== ---------------- Code disassembly (best guess): 0: 48 83 c7 18 add $0x18,%rdi 4: 53 push %rbx 5: 48 89 f3 mov %rsi,%rbx 8: 48 8b 74 24 10 mov 0x10(%rsp),%rsi d: e8 9a 4d 04 fd callq 0xfd044dac 12: 48 89 ef mov %rbp,%rdi 15: e8 f2 c2 04 fd callq 0xfd04c30c 1a: 80 e7 02 and $0x2,%bh 1d: 74 06 je 0x25 1f: e8 98 05 27 fd callq 0xfd2705bc 24: fb sti 25: bf 01 00 00 00 mov $0x1,%edi * 2a: e8 3d 4e fa fc callq 0xfcfa4e6c <-- trapping instruction 2f: 65 8b 05 66 84 dc 7b mov %gs:0x7bdc8466(%rip),%eax # 0x7bdc849c 36: 85 c0 test %eax,%eax 38: 74 07 je 0x41 3a: 5b pop %rbx 3b: 5d pop %rbp 3c: e9 .byte 0xe9 3d: db 50 3a fistl 0x3a(%rax)