syzbot


WARNING in perf_event_release_kernel

Status: upstream: reported C repro on 2023/12/25 13:49
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+48ab933dba3b0b97b66f@syzkaller.appspotmail.com
First crash: 182d, last: 55d
Fix bisection: failed (error log, bisect log)
  
Bug presence (1)
Date Name Commit Repro Result
2023/12/25 upstream (ToT) 861deac3b092 C [report] WARNING in perf_event_release_kernel
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 WARNING in perf_event_release_kernel origin:upstream C 1 24d 182d 0/3 upstream: reported C repro on 2023/12/25 13:48
Fix bisection attempts (5)
Created Duration User Patch Repo Result
2024/05/30 15:42 26m bisect fix linux-6.1.y error job log (0)
2024/04/30 12:48 2h03m bisect fix linux-6.1.y job log (0) log
2024/03/30 11:16 1h31m bisect fix linux-6.1.y job log (0) log
2024/02/29 04:47 1h21m bisect fix linux-6.1.y job log (0) log
2024/01/25 14:23 57m bisect fix linux-6.1.y job log (0) log

Sample crash report:
------------[ cut here ]------------
unexpected event refcount: 2; ptr=ffff888075a670d0
WARNING: CPU: 0 PID: 3562 at kernel/events/core.c:5073 free_event kernel/events/core.c:5071 [inline]
WARNING: CPU: 0 PID: 3562 at kernel/events/core.c:5073 perf_event_release_kernel+0x794/0x870 kernel/events/core.c:5238
Modules linked in:
CPU: 0 PID: 3562 Comm: syz-executor417 Not tainted 6.1.69-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:free_event kernel/events/core.c:5071 [inline]
RIP: 0010:perf_event_release_kernel+0x794/0x870 kernel/events/core.c:5238
Code: 00 fc ff df 80 3c 08 00 48 8b 5c 24 20 74 08 4c 89 e7 e8 0f 66 32 00 49 8b 34 24 48 c7 c7 00 9f f4 8a 4c 89 fa e8 1c f2 a2 ff <0f> 0b eb 82 e8 03 05 db ff eb 05 e8 fc 04 db ff 4c 8b 7c 24 18 49
RSP: 0018:ffffc9000395f700 EFLAGS: 00010246
RAX: 4ee83116101dbe00 RBX: ffffc9000395f780 RCX: ffff888076655940
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc9000395f7e8 R08: ffffffff81527dae R09: ffffed1017324f1c
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888075a672f8
R13: 1ffff1100eb4ce74 R14: dead000000000100 R15: ffff888075a670d0
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200000cc CR3: 000000000ce8e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 perf_release+0x37/0x40 kernel/events/core.c:5259
 __fput+0x3b7/0x890 fs/file_table.c:320
 task_work_run+0x246/0x300 kernel/task_work.c:179
 exit_task_work include/linux/task_work.h:38 [inline]
 do_exit+0xa73/0x26a0 kernel/exit.c:869
 do_group_exit+0x202/0x2b0 kernel/exit.c:1019
 get_signal+0x16f7/0x17d0 kernel/signal.c:2862
 arch_do_signal_or_restart+0xb0/0x1a10 arch/x86/kernel/signal.c:871
 exit_to_user_mode_loop+0x6a/0x100 kernel/entry/common.c:168
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:204
 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline]
 syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:297
 ret_from_fork+0x15/0x30 arch/x86/entry/entry_64.S:299
RIP: 0033:0x7fc58bd74bf9
Code: Unable to access opcode bytes at 0x7fc58bd74bcf.
RSP: 002b:00007ffe35817968 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fc58bd74bf9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000200
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000006
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000001
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/12/25 13:48 linux-6.1.y 4aa6747d9352 fb427a07 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf WARNING in perf_event_release_kernel
* Struck through repros no longer work on HEAD.