syzbot


WARNING in put_pmu_ctx

Status: fixed on 2023/06/08 14:41
Subsystems: perf
[Documentation on labels]
Reported-by: syzbot+697196bc0265049822bd@syzkaller.appspotmail.com
Fix commit: 4f64a6c9f6f1 perf: Fix perf_event_pmu_context serialization
First crash: 487d, last: 429d
Cause bisection: failed (error log, bisect log)
  
Discussions (2)
Title Replies (including bot) Last reply
[PATCH 0/1] perf: Fix warning from concurrent read/write of perf_event_pmu_context 7 (7) 2023/02/01 16:10
[syzbot] WARNING in put_pmu_ctx 0 (2) 2022/12/20 06:29

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 1 PID: 20943 at kernel/events/core.c:4920 put_pmu_ctx kernel/events/core.c:4920 [inline]
WARNING: CPU: 1 PID: 20943 at kernel/events/core.c:4920 put_pmu_ctx+0x2a5/0x390 kernel/events/core.c:4893
Modules linked in:
CPU: 1 PID: 20943 Comm: syz-executor196 Not tainted 6.1.0-syzkaller-14017-g45435d8da71f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:put_pmu_ctx kernel/events/core.c:4920 [inline]
RIP: 0010:put_pmu_ctx+0x2a5/0x390 kernel/events/core.c:4893
Code: dd ff e8 be 10 dd ff 48 8d 7b 50 48 c7 c6 e0 95 a3 81 e8 3e c9 c7 ff eb d6 e8 a7 10 dd ff 0f 0b e9 64 ff ff ff e8 9b 10 dd ff <0f> 0b eb 88 e8 22 11 2b 00 eb a5 e8 8b 10 dd ff 0f 0b e9 e4 fd ff
RSP: 0018:ffffc9000613fb70 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff8880b9841728 RCX: 0000000000000000
RDX: ffff88807cc0d7c0 RSI: ffffffff81a44145 RDI: 0000000000000001
RBP: ffff8880b9841758 R08: 0000000000000001 R09: 0000000000000001
R10: ffffed1017306b70 R11: 0000000000000000 R12: ffff8880b9835c50
R13: ffff8880b9835b80 R14: 0000000000000293 R15: ffff8880b9841730
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2c3a8a5588 CR3: 0000000029a38000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 _free_event+0x3c5/0x13d0 kernel/events/core.c:5196
 put_event kernel/events/core.c:5283 [inline]
 perf_event_release_kernel+0x6ad/0x8f0 kernel/events/core.c:5395
 perf_release+0x37/0x50 kernel/events/core.c:5405
 __fput+0x27c/0xa90 fs/file_table.c:320
 task_work_run+0x16f/0x270 kernel/task_work.c:179
 exit_task_work include/linux/task_work.h:38 [inline]
 do_exit+0xaa8/0x2950 kernel/exit.c:867
 do_group_exit+0xd4/0x2a0 kernel/exit.c:1010
 __do_sys_exit_group kernel/exit.c:1021 [inline]
 __se_sys_exit_group kernel/exit.c:1019 [inline]
 __x64_sys_exit_group+0x3e/0x50 kernel/exit.c:1019
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f2c3a818559
Code: Unable to access opcode bytes at 0x7f2c3a81852f.
RSP: 002b:00007ffc36d833b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 00007f2c3a8a1390 RCX: 00007f2c3a818559
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffffffffffb8 R09: 0000000000f0b5ff
R10: 00007ffc36d83440 R11: 0000000000000246 R12: 00007f2c3a8a1390
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001
 </TASK>

Crashes (66):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/29 22:12 bpf 45435d8da71f 44712fbc .config strace log report syz C ci-upstream-bpf-kasan-gce WARNING in put_pmu_ctx
2022/12/20 08:50 bpf cc074822465d c52b2efb .config console log report syz C ci-upstream-bpf-kasan-gce WARNING in put_pmu_ctx
2022/12/29 22:27 bpf-next 30465003ad77 44712fbc .config console log report syz C ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
2022/12/20 06:28 bpf-next e2bb9e01d589 c52b2efb .config console log report syz C ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
2022/12/17 09:01 bpf 13e3c7793e2f 05494336 .config console log report syz ci-upstream-bpf-kasan-gce WARNING in put_pmu_ctx
2023/01/07 01:16 bpf-next 6bd4755c7c49 1dac8c7a .config console log report syz ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
2023/02/11 18:36 bpf b963d9d5b943 93e26d60 .config console log report info ci-upstream-bpf-kasan-gce WARNING in put_pmu_ctx
2023/02/11 10:21 bpf b963d9d5b943 93e26d60 .config console log report info ci-upstream-bpf-kasan-gce WARNING in put_pmu_ctx
2023/02/08 04:47 bpf a6efc42a86c0 15c3d445 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in put_pmu_ctx
2023/02/07 02:51 bpf a6efc42a86c0 0a9c11b6 .config console log report info ci-upstream-bpf-kasan-gce WARNING in put_pmu_ctx
2023/02/04 05:53 bpf a6efc42a86c0 1b2f701a .config console log report info ci-upstream-bpf-kasan-gce WARNING in put_pmu_ctx
2023/02/03 11:19 bpf a6efc42a86c0 16d19e30 .config console log report info ci-upstream-bpf-kasan-gce WARNING in put_pmu_ctx
2023/02/01 17:34 bpf a6efc42a86c0 9dfcf09c .config console log report info ci-upstream-bpf-kasan-gce WARNING in put_pmu_ctx
2023/02/01 01:48 bpf a6efc42a86c0 9dfcf09c .config console log report info ci-upstream-bpf-kasan-gce WARNING in put_pmu_ctx
2023/01/31 19:47 bpf a6efc42a86c0 9dfcf09c .config console log report info ci-upstream-bpf-kasan-gce WARNING in put_pmu_ctx
2023/01/31 04:51 bpf a6efc42a86c0 9dfcf09c .config console log report info ci-upstream-bpf-kasan-gce WARNING in put_pmu_ctx
2023/01/29 20:56 bpf a6efc42a86c0 9dfcf09c .config console log report info ci-upstream-bpf-kasan-gce WARNING in put_pmu_ctx
2023/01/29 05:42 bpf a6efc42a86c0 9dfcf09c .config console log report info ci-upstream-bpf-kasan-gce WARNING in put_pmu_ctx
2023/01/22 03:52 bpf 74bc3a5acc82 559a440a .config console log report info ci-upstream-bpf-kasan-gce WARNING in put_pmu_ctx
2023/01/21 23:58 bpf 74bc3a5acc82 559a440a .config console log report info ci-upstream-bpf-kasan-gce WARNING in put_pmu_ctx
2023/01/20 14:53 bpf 2eecf81e149c 559a440a .config console log report info ci-upstream-bpf-kasan-gce WARNING in put_pmu_ctx
2023/01/16 20:30 bpf e4f4db47794c a63719e7 .config console log report info ci-upstream-bpf-kasan-gce WARNING in put_pmu_ctx
2023/01/10 20:21 bpf e7895f017b79 1dac8c7a .config console log report info ci-upstream-bpf-kasan-gce WARNING in put_pmu_ctx
2023/01/09 12:11 bpf a3d81bc1eaef 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in put_pmu_ctx
2023/01/06 15:05 bpf 50011c32f421 1dac8c7a .config console log report info ci-upstream-bpf-kasan-gce WARNING in put_pmu_ctx
2023/01/04 10:22 bpf 45435d8da71f 1dac8c7a .config console log report info ci-upstream-bpf-kasan-gce WARNING in put_pmu_ctx
2023/01/02 00:45 bpf 45435d8da71f ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in put_pmu_ctx
2022/12/31 09:06 bpf 45435d8da71f ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in put_pmu_ctx
2022/12/26 07:43 bpf fcbb408a1aaf 9da18ae8 .config console log report info ci-upstream-bpf-kasan-gce WARNING in put_pmu_ctx
2022/12/24 15:50 bpf fcbb408a1aaf 9da18ae8 .config console log report info ci-upstream-bpf-kasan-gce WARNING in put_pmu_ctx
2022/12/23 22:36 bpf cedebd74cf38 9da18ae8 .config console log report info ci-upstream-bpf-kasan-gce WARNING in put_pmu_ctx
2022/12/22 03:28 bpf 54c3f1a81421 4067838e .config console log report info ci-upstream-bpf-kasan-gce WARNING in put_pmu_ctx
2022/12/17 02:10 bpf 13e3c7793e2f 05494336 .config console log report info ci-upstream-bpf-kasan-gce WARNING in put_pmu_ctx
2022/12/16 08:39 bpf f506439ec3de 6f9c033e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-kasan-gce WARNING in put_pmu_ctx
2023/02/04 03:54 bpf-next 377c16fa3f3c 1b2f701a .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
2023/02/04 02:38 bpf-next 377c16fa3f3c 1b2f701a .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
2023/02/03 21:05 bpf-next 377c16fa3f3c 1b2f701a .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
2023/01/30 15:59 bpf-next c1a3daf7363b 9dfcf09c .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
2023/01/30 11:41 bpf-next c1a3daf7363b 9dfcf09c .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
2023/01/30 01:33 bpf-next 07dcbd7325ce 9dfcf09c .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
2023/01/29 00:55 bpf-next 16809afdcbad 9dfcf09c .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
2023/01/27 14:44 bpf-next a5f3a3f7c172 9dfcf09c .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
2023/01/27 06:11 bpf-next 0164776a2ce7 9dfcf09c .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
2023/01/25 08:17 bpf-next 0eb9d19e2201 9dfcf09c .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
2023/01/24 08:30 bpf-next 74d23931f409 9dfcf09c .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
2023/01/23 04:59 bpf-next 84150795a49a 559a440a .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
2023/01/22 07:18 bpf-next 84150795a49a 559a440a .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
2023/01/21 00:00 bpf-next 00b8f39f1d15 559a440a .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
2023/01/20 18:19 bpf-next 00b8f39f1d15 559a440a .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
2023/01/20 01:16 bpf-next 92afc5329a5b 1b826a2f .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
2023/01/18 16:35 bpf-next c0f264e4edb6 42660d9e .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
2023/01/16 20:27 bpf-next dfff86f8eb6a a63719e7 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
2023/01/14 22:05 bpf-next 1c48391bc673 a63719e7 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
2023/01/09 12:02 bpf-next 6d0c4b11e743 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
2023/01/09 06:32 bpf-next 6d0c4b11e743 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
2023/01/07 07:37 bpf-next 6d0c4b11e743 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
2023/01/06 13:27 bpf-next 4aea86b4033f 1dac8c7a .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
2023/01/02 06:15 bpf-next bb5747cfbc4b ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
2022/12/31 06:54 bpf-next bb5747cfbc4b ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
2022/12/29 02:33 bpf-next 4633a0068258 44712fbc .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
2022/12/28 12:54 bpf-next 4633a0068258 44712fbc .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
2022/12/22 16:34 bpf-next 59fe41b5255f c692fab1 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
2022/12/22 01:06 bpf-next 7b43df6c6ec3 4067838e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
2022/12/19 22:20 bpf-next e2bb9e01d589 c52b2efb .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
2022/12/16 05:53 bpf-next 0e43662e61f2 6f9c033e .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
2022/12/15 06:55 bpf-next c9883ee9d110 b18f0a64 .config console log report info ci-upstream-bpf-next-kasan-gce WARNING in put_pmu_ctx
* Struck through repros no longer work on HEAD.