audit: type=1400 audit(1649800249.661:54): avc: denied { checkpoint_restore } for pid=7150 comm="syz-executor.0" capability=40 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=capability2 permissive=1 ------------[ cut here ]------------ WARNING: CPU: 1 PID: 7150 at kernel/events/core.c:2045 perf_group_attach+0x396/0x450 kernel/events/core.c:2045 Modules linked in: CPU: 1 PID: 7150 Comm: syz-executor.0 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:ffff88806cf09bd8 EFLAGS: 00010046 RAX: 0000000000000000 RBX: ffff888045b8f000 RCX: ffffffff814cc6bf RDX: ffff888043e04bc0 RSI: ffffffff814cc986 RDI: ffff888045b8f218 RBP: ffff88801e74b000 R08: 0000000000000001 R09: 0000000000000003 R10: 0000000000000000 R11: 0000000000000001 R12: ffff8880453fc800 R13: 0000000000000000 R14: 0000000000000000 R15: ffff88806cf3f748 FS: 0000555556d87400(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000000 CR3: 0000000018288000 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 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:get_current arch/x86/include/asm/current.h:15 [inline] RIP: 0010:__sanitizer_cov_trace_pc+0x4/0x60 kernel/kcov.c:196 Code: 08 00 00 00 4d 8b 17 49 8b 16 48 0f bd c8 48 63 c9 e9 5e ff ff ff 4c 01 d2 49 89 17 e9 d1 fd ff ff 0f 1f 44 00 00 48 8b 34 24 <65> 48 8b 14 25 80 6f 02 00 65 8b 05 1c c0 c2 7e a9 00 01 ff 00 74 RSP: 0018:ffff88806cf09da8 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffff88800d96d340 RCX: ffffffff82993a18 RDX: 0000000000000000 RSI: ffffffff82993b38 RDI: 0000000000000005 RBP: ffff88800d96d450 R08: 0000000000000000 R09: ffff88800c474037 R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000 R13: ffff888009615000 R14: ffff88800d96d474 R15: 0000000000001000 sd_done+0x468/0xf90 drivers/scsi/sd.c:2082 scsi_finish_command+0x35a/0x5d0 drivers/scsi/scsi.c:204 scsi_softirq_done+0x11b/0x490 drivers/scsi/scsi_lib.c:1445 blk_done_softirq+0x22f/0x360 block/blk-mq.c:586 __do_softirq+0x1b8/0x867 kernel/softirq.c:298 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_call_function_single+0x43/0xa0 arch/x86/kernel/smp.c:243 asm_sysvec_call_function_single+0x12/0x20 arch/x86/include/asm/idtentry.h:643 RIP: 0010:__sanitizer_cov_trace_pc+0x30/0x60 kernel/kcov.c:197 Code: 8b 14 25 80 6f 02 00 65 8b 05 1c c0 c2 7e a9 00 01 ff 00 74 0f f6 c4 01 74 35 8b 82 64 13 00 00 85 c0 74 2b 8b 82 40 13 00 00 <83> f8 02 75 20 48 8b 8a 48 13 00 00 8b 92 44 13 00 00 48 8b 01 48 RSP: 0018:ffff888048577ce8 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffffffff84cfd3c0 RCX: ffffffff8147652e RDX: ffff888043e04bc0 RSI: ffffffff8147653b RDI: 0000000000000005 RBP: 0000000000000000 R08: 0000000000000000 R09: ffffffff84e451e7 R10: 0000000000000000 R11: 0000000000000001 R12: ffff88801e74e4f8 R13: ffffffff85439660 R14: ffff88801e74e104 R15: 0000000000000001 perf_trace_event_unreg.isra.0+0x5b/0x210 kernel/trace/trace_event_perf.c:162 perf_trace_destroy+0xba/0x100 kernel/trace/trace_event_perf.c:243 _free_event+0x159/0xc70 kernel/events/core.c:4951 put_event kernel/events/core.c:5045 [inline] perf_event_release_kernel+0x899/0xc20 kernel/events/core.c:5160 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:0x7f2ab083672b 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:00007ffee30e3cf0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007f2ab083672b RDX: 00007f2ab099f7d0 RSI: 0000000000000080 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000000 R09: 00007f2ab099f7d8 R10: 00007ffee30e3de0 R11: 0000000000000293 R12: 0000000000115854 R13: 00000000000003e8 R14: 00007f2ab0996f60 R15: 00000000001156d2 irq event stamp: 4857 hardirqs last enabled at (4856): [] blk_done_softirq+0x14a/0x360 block/blk-mq.c:579 hardirqs last disabled at (4857): [] sysvec_call_function_single+0xb/0xa0 arch/x86/kernel/smp.c:243 softirqs last enabled at (3978): [] asm_call_irq_on_stack+0x12/0x20 softirqs last disabled at (4853): [] asm_call_irq_on_stack+0x12/0x20 ---[ end trace 77d1ce1b5548eb2c ]--- ====================================================== ---------------- Code disassembly (best guess): 0: 08 00 or %al,(%rax) 2: 00 00 add %al,(%rax) 4: 4d 8b 17 mov (%r15),%r10 7: 49 8b 16 mov (%r14),%rdx a: 48 0f bd c8 bsr %rax,%rcx e: 48 63 c9 movslq %ecx,%rcx 11: e9 5e ff ff ff jmpq 0xffffff74 16: 4c 01 d2 add %r10,%rdx 19: 49 89 17 mov %rdx,(%r15) 1c: e9 d1 fd ff ff jmpq 0xfffffdf2 21: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 26: 48 8b 34 24 mov (%rsp),%rsi * 2a: 65 48 8b 14 25 80 6f mov %gs:0x26f80,%rdx <-- trapping instruction 31: 02 00 33: 65 8b 05 1c c0 c2 7e mov %gs:0x7ec2c01c(%rip),%eax # 0x7ec2c056 3a: a9 00 01 ff 00 test $0xff0100,%eax 3f: 74 .byte 0x74