syzbot


BUG: soft lockup in perf_release (2)

Status: premoderation: reported on 2025/03/29 12:13
Reported-by: syzbot+277051f906e03d729614@syzkaller.appspotmail.com
First crash: 7d07h, last: 7d07h
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 BUG: soft lockup in perf_release 3 288d 350d 0/2 auto-obsoleted due to no activity on 2024/09/19 17:30
linux-4.19 BUG: soft lockup in perf_release 1 2065d 2065d 0/1 auto-closed as invalid on 2019/12/08 14:19
upstream BUG: soft lockup in perf_release (2) perf 2 1733d 1730d 0/28 auto-closed as invalid on 2020/10/05 03:02
upstream BUG: soft lockup in perf_release trace 6 2236d 2391d 0/28 auto-closed as invalid on 2019/08/19 07:15
linux-6.1 INFO: rcu detected stall in perf_release 2 200d 200d 0/3 auto-obsoleted due to no activity on 2024/12/25 21:00

Sample crash report:
RBP: 00007fc9721b02a0 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffffffffffff R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fc972347fa0 R15: 00007fff3b203cc8
 </TASK>
watchdog: BUG: soft lockup - CPU#0 stuck for 266s! [syz.2.2930:8303]
Modules linked in:
CPU: 0 PID: 8303 Comm: syz.2.2930 Tainted: G        W         5.15.178-syzkaller-00034-g5e1b899f19c3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:preempt_count arch/x86/include/asm/preempt.h:27 [inline]
RIP: 0010:check_kcov_mode kernel/kcov.c:172 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x10/0x60 kernel/kcov.c:206
Code: 89 fb e8 13 00 00 00 48 8b 3d e4 42 b9 05 48 89 de e8 74 a6 41 00 5b 5d c3 cc 55 48 89 e5 48 8b 45 08 65 48 8b 0d c0 00 92 7e <65> 8b 15 c1 00 92 7e 81 e2 00 01 ff 00 74 11 81 fa 00 01 00 00 75
RSP: 0018:ffffc90001337578 EFLAGS: 00000202
RAX: ffffffff8192f0ef RBX: 0000000000000000 RCX: ffff888133b72780
RDX: ffffc9000536a000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc90001337578 R08: ffffffff8192ef8e R09: ffffc900013371e0
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff888116442000 R14: ffff888116441ff0 R15: ffff888116441250
FS:  00007fc9707996c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000100000000 CR3: 0000000113fab000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 pmu_filter_match kernel/events/core.c:2338 [inline]
 event_filter_match kernel/events/core.c:2349 [inline]
 perf_iterate_ctx kernel/events/core.c:7744 [inline]
 perf_iterate_sb+0xa8f/0xb90 kernel/events/core.c:7805
 perf_event_text_poke+0x24d/0x320 kernel/events/core.c:9221
 text_poke_bp_batch+0x399/0x720 arch/x86/kernel/alternative.c:1460
 text_poke_bp+0xc8/0x140 arch/x86/kernel/alternative.c:1644
 __static_call_transform+0x333/0x560 arch/x86/kernel/static_call.c:111
 arch_static_call_transform+0x1ae/0x270 arch/x86/kernel/static_call.c:162
 __static_call_update+0x38a/0x5d0 kernel/static_call_inline.c:198
 tracepoint_update_call kernel/tracepoint.c:317 [inline]
 tracepoint_remove_func kernel/tracepoint.c:419 [inline]
 tracepoint_probe_unregister+0x694/0x900 kernel/tracepoint.c:551
 trace_event_reg+0x21d/0x260 kernel/trace/trace_events.c:-1
 perf_trace_event_unreg+0xb7/0x1b0 kernel/trace/trace_event_perf.c:162
 perf_trace_destroy+0xaa/0x170 kernel/trace/trace_event_perf.c:241
 tp_perf_event_destroy+0x15/0x20 kernel/events/core.c:9911
 _free_event+0x973/0xce0 kernel/events/core.c:5100
 put_event kernel/events/core.c:5194 [inline]
 perf_event_release_kernel+0x85a/0x8e0 kernel/events/core.c:5319
 perf_release+0x3b/0x40 kernel/events/core.c:5329
 __fput+0x228/0x8c0 fs/file_table.c:311
 ____fput+0x15/0x20 fs/file_table.c:339
 task_work_run+0x129/0x190 kernel/task_work.c:188
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop+0xc4/0xe0 kernel/entry/common.c:181
 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:214
 __syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline]
 syscall_exit_to_user_mode+0x26/0x160 kernel/entry/common.c:307
 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fc97212f169
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fc970799038 EFLAGS: 00000246 ORIG_RAX: 000000000000012a
RAX: ffffffffffffffea RBX: 00007fc972347fa0 RCX: 00007fc97212f169
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00002000000003c0
RBP: 00007fc9721b02a0 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffffffffffff R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fc972347fa0 R15: 00007fff3b203cc8
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1 skipped: idling at native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline]
NMI backtrace for cpu 1 skipped: idling at arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline]
NMI backtrace for cpu 1 skipped: idling at acpi_safe_halt drivers/acpi/processor_idle.c:108 [inline]
NMI backtrace for cpu 1 skipped: idling at acpi_idle_do_entry drivers/acpi/processor_idle.c:562 [inline]
NMI backtrace for cpu 1 skipped: idling at acpi_idle_enter+0x416/0x760 drivers/acpi/processor_idle.c:697

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/29 12:12 android13-5.15-lts 5e1b899f19c3 cf25e2c2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in perf_release
* Struck through repros no longer work on HEAD.