audit: type=1400 audit(1664741702.601:8): avc: denied { kernel } for pid=3653 comm="syz-executor.6" 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: 3652 at kernel/events/core.c:2233 event_filter_match+0x422/0x660 Modules linked in: CPU: 0 PID: 3652 Comm: modprobe Not tainted 6.0.0-rc7-next-20220930 #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 7b 33 f1 ff 65 8b 2d 00 9d ad 7e 31 ff 89 ee e8 1b 30 f1 ff 85 ed 0f 84 ef 00 00 00 e8 5e 33 f1 ff <0f> 0b eb 9f e8 d5 a1 23 00 e9 17 fc ff ff e8 4b 33 f1 ff 48 8d 7b RSP: 0018:ffff88806ce09c70 EFLAGS: 00010046 RAX: 0000000080010001 RBX: ffff88800ff58000 RCX: 0000000000000000 RDX: ffff8880174d9ac0 RSI: ffffffff8154d8d2 RDI: 0000000000000005 RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000001 R10: 0000000000000000 R11: ffffffff865b401b R12: ffff88800ff58220 R13: 0000000000000000 R14: ffff88800ff580a8 R15: ffff88800ff58220 FS: 0000000000000000(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9d19b5f260 CR3: 000000001f328000 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:unwind_get_return_address+0x4a/0xa0 Code: 7e 59 8b 03 85 c0 75 09 31 c0 5b 5d e9 bf 9b 4e 03 48 b8 00 00 00 00 00 fc ff df 48 8d 6b 58 48 89 ea 48 c1 ea 03 80 3c 02 00 <75> 36 48 8b 7b 58 e8 4b c0 0b 00 85 c0 74 cf 48 b8 00 00 00 00 00 RSP: 0018:ffff8880371f7688 EFLAGS: 00000246 RAX: dffffc0000000000 RBX: ffff8880371f76a0 RCX: ffff8880371f7740 RDX: 1ffff11006e3eedf RSI: ffff8880371f7738 RDI: ffff8880371f76a0 RBP: ffff8880371f76f8 R08: ffffffff85e3411e R09: ffffffff85e34122 R10: ffffed1006e3eee1 R11: ffff8880371f76e0 R12: ffff8880371f7768 R13: 0000000000000000 R14: ffff8880174d9ac0 R15: 0000000000000000 arch_stack_walk+0x99/0xf0 stack_trace_save+0x8c/0xc0 kasan_save_stack+0x1e/0x40 kasan_set_track+0x21/0x30 __kasan_slab_alloc+0x58/0x70 kmem_cache_alloc+0x1a9/0x3e0 security_file_alloc+0x34/0x170 __alloc_file+0xb6/0x240 alloc_empty_file+0x6d/0x170 path_openat+0xd4/0x27b0 do_filp_open+0x1b6/0x410 do_sys_openat2+0x171/0x4c0 __x64_sys_openat+0x13f/0x1f0 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f9d19ba8b84 Code: f9 41 89 f0 41 83 e2 40 75 2c 89 f0 25 00 00 41 00 3d 00 00 41 00 74 1e 44 89 c2 4c 89 ce bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 2c c3 0f 1f 00 48 8d 44 24 08 c7 44 24 b8 10 RSP: 002b:00007fff59431138 EFLAGS: 00000287 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f9d19ba8b84 RDX: 0000000000080000 RSI: 00007f9d19b874e0 RDI: 00000000ffffff9c RBP: 00007fff594311a0 R08: 0000000000080000 R09: 00007f9d19b874e0 R10: 0000000000000000 R11: 0000000000000287 R12: 00007fff594311ff R13: 00007f9d19b874e0 R14: 00007f9d19bb8060 R15: 00007fff59431210 irq event stamp: 3802 hardirqs last enabled at (3801): [] _raw_spin_unlock_irqrestore+0x28/0x60 hardirqs last disabled at (3802): [] sysvec_call_function_single+0xb/0xc0 softirqs last enabled at (2944): [] __irq_exit_rcu+0x11b/0x180 softirqs last disabled at (2801): [] __irq_exit_rcu+0x11b/0x180 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ WARNING: CPU: 0 PID: 3652 at kernel/events/core.c:2557 merge_sched_in+0xadb/0x1110 Modules linked in: CPU: 0 PID: 3652 Comm: modprobe Tainted: G W 6.0.0-rc7-next-20220930 #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 08 0e ef ff 65 8b 05 8d 77 ab 7e 31 ff 89 c6 89 04 24 e8 a5 0a ef ff 8b 04 24 85 c0 0f 84 13 02 00 00 e8 e5 0d ef ff <0f> 0b e9 c4 fb ff ff e8 d9 0d ef ff 4c 89 e8 48 05 18 01 00 00 e9 RSP: 0018:ffff88806ce09cb0 EFLAGS: 00010046 RAX: 0000000080010001 RBX: ffff88806ce3d2c0 RCX: 0000000000000000 RDX: ffff8880174d9ac0 RSI: ffffffff8156fe4b RDI: 0000000000000005 RBP: ffff88800ff58000 R08: 0000000000000005 R09: 0000000000000001 R10: 0000000000000000 R11: ffffffff865b401b R12: ffff88806ce3d2c0 R13: ffff88806ce00000 R14: ffff88800ff580a8 R15: ffff88800ff58220 FS: 0000000000000000(0000) GS:ffff88806ce00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9d19b5f260 CR3: 000000001f328000 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:unwind_get_return_address+0x4a/0xa0 Code: 7e 59 8b 03 85 c0 75 09 31 c0 5b 5d e9 bf 9b 4e 03 48 b8 00 00 00 00 00 fc ff df 48 8d 6b 58 48 89 ea 48 c1 ea 03 80 3c 02 00 <75> 36 48 8b 7b 58 e8 4b c0 0b 00 85 c0 74 cf 48 b8 00 00 00 00 00 RSP: 0018:ffff8880371f7688 EFLAGS: 00000246 RAX: dffffc0000000000 RBX: ffff8880371f76a0 RCX: ffff8880371f7740 RDX: 1ffff11006e3eedf RSI: ffff8880371f7738 RDI: ffff8880371f76a0 RBP: ffff8880371f76f8 R08: ffffffff85e3411e R09: ffffffff85e34122 R10: ffffed1006e3eee1 R11: ffff8880371f76e0 R12: ffff8880371f7768 R13: 0000000000000000 R14: ffff8880174d9ac0 R15: 0000000000000000 arch_stack_walk+0x99/0xf0 stack_trace_save+0x8c/0xc0 kasan_save_stack+0x1e/0x40 kasan_set_track+0x21/0x30 __kasan_slab_alloc+0x58/0x70 kmem_cache_alloc+0x1a9/0x3e0 security_file_alloc+0x34/0x170 __alloc_file+0xb6/0x240 alloc_empty_file+0x6d/0x170 path_openat+0xd4/0x27b0 do_filp_open+0x1b6/0x410 do_sys_openat2+0x171/0x4c0 __x64_sys_openat+0x13f/0x1f0 do_syscall_64+0x3b/0x90 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f9d19ba8b84 Code: f9 41 89 f0 41 83 e2 40 75 2c 89 f0 25 00 00 41 00 3d 00 00 41 00 74 1e 44 89 c2 4c 89 ce bf 9c ff ff ff b8 01 01 00 00 0f 05 <48> 3d 00 f0 ff ff 77 2c c3 0f 1f 00 48 8d 44 24 08 c7 44 24 b8 10 RSP: 002b:00007fff59431138 EFLAGS: 00000287 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f9d19ba8b84 RDX: 0000000000080000 RSI: 00007f9d19b874e0 RDI: 00000000ffffff9c RBP: 00007fff594311a0 R08: 0000000000080000 R09: 00007f9d19b874e0 R10: 0000000000000000 R11: 0000000000000287 R12: 00007fff594311ff R13: 00007f9d19b874e0 R14: 00007f9d19bb8060 R15: 00007fff59431210 irq event stamp: 3802 hardirqs last enabled at (3801): [] _raw_spin_unlock_irqrestore+0x28/0x60 hardirqs last disabled at (3802): [] sysvec_call_function_single+0xb/0xc0 softirqs last enabled at (2944): [] __irq_exit_rcu+0x11b/0x180 softirqs last disabled at (2801): [] __irq_exit_rcu+0x11b/0x180 ---[ end trace 0000000000000000 ]--- ------------[ cut here ]------------ ====================================================== ---------------- Code disassembly (best guess): 0: 7e 59 jle 0x5b 2: 8b 03 mov (%rbx),%eax 4: 85 c0 test %eax,%eax 6: 75 09 jne 0x11 8: 31 c0 xor %eax,%eax a: 5b pop %rbx b: 5d pop %rbp c: e9 bf 9b 4e 03 jmpq 0x34e9bd0 11: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 18: fc ff df 1b: 48 8d 6b 58 lea 0x58(%rbx),%rbp 1f: 48 89 ea mov %rbp,%rdx 22: 48 c1 ea 03 shr $0x3,%rdx 26: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) * 2a: 75 36 jne 0x62 <-- trapping instruction 2c: 48 8b 7b 58 mov 0x58(%rbx),%rdi 30: e8 4b c0 0b 00 callq 0xbc080 35: 85 c0 test %eax,%eax 37: 74 cf je 0x8 39: 48 rex.W 3a: b8 00 00 00 00 mov $0x0,%eax