[v6.6] INFO: rcu detected stall in perf_release

3 views
Skip to first unread message

syzbot

unread,
Aug 27, 2025, 5:58:36 PM8/27/25
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: bb9c90ab9c5a Linux 6.6.102
git tree: linux-6.6.y
console output: https://syzkaller.appspot.com/x/log.txt?x=118cbc42580000
kernel config: https://syzkaller.appspot.com/x/.config?x=7b989b97a0687b0a
dashboard link: https://syzkaller.appspot.com/bug?extid=871268f5a3e35b01a3c3
compiler: Debian clang version 20.1.7 (++20250616065708+6146a88f6049-1~exp1~20250616065826.132), Debian LLD 20.1.7
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=119afc62580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=158cbc42580000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/3741b512b75a/disk-bb9c90ab.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/dedce7f4c998/vmlinux-bb9c90ab.xz
kernel image: https://storage.googleapis.com/syzbot-assets/acd529da0064/bzImage-bb9c90ab.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+871268...@syzkaller.appspotmail.com

rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 0-....: (17 ticks this GP) idle=24fc/1/0x4000000000000000 softirq=11109/11112 fqs=727
rcu: hardirqs softirqs csw/system
rcu: number: 8253452 0 0
rcu: cputime: 5942 46561 0 ==> 52500(ms)
rcu: (detected by 1, t=10504 jiffies, g=10241, q=50856 ncpus=2)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 5877 Comm: syz-executor381 Not tainted 6.6.102-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:__this_cpu_preempt_check+0x0/0x20 lib/smp_processor_id.c:65
Code: 48 89 da e8 f2 9c f4 ff 48 8b 74 24 30 48 c7 c7 40 67 fc 8a e8 e1 9c f4 ff e8 fc 7e ff ff eb a8 e8 c5 e8 ff ff 0f 1f 44 00 00 <f3> 0f 1e fa 48 89 fe 48 c7 c7 c0 66 fc 8a e9 dd fe ff ff cc cc cc
RSP: 0018:ffffc900000073c8 EFLAGS: 00000002
RAX: 0000000000000103 RBX: ffff8880b8e36aa8 RCX: ffffffff96eaa403
RDX: 0000000000000100 RSI: 0000000000000000 RDI: ffffffff8aa19aa0
RBP: ffffc90000007528 R08: dffffc0000000000 R09: 1ffffffff21b46a0
R10: dffffc0000000000 R11: fffffbfff21b46a1 R12: 1ffff92000000e88
R13: 0000000000000000 R14: ffffc90000007700 R15: dffffc0000000000
FS: 000055555b974480(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000000140 CR3: 0000000077edf000 CR4: 00000000003506f0
Call Trace:
<IRQ>
kvm_get_running_vcpu virt/kvm/kvm_main.c:5995 [inline]
kvm_guest_state+0x25/0xf0 virt/kvm/kvm_main.c:6013
perf_guest_state include/linux/perf_event.h:1520 [inline]
perf_misc_flags+0x21/0xd0 arch/x86/events/core.c:3016
perf_prepare_header kernel/events/core.c:7942 [inline]
__perf_event_output kernel/events/core.c:7972 [inline]
perf_event_output_forward+0x1d8/0x3a0 kernel/events/core.c:7992
__perf_event_overflow+0x447/0x630 kernel/events/core.c:9717
perf_swevent_overflow kernel/events/core.c:9793 [inline]
perf_swevent_event+0x2f5/0x5c0 kernel/events/core.c:-1
perf_tp_event+0x4f9/0x13a0 kernel/events/core.c:10343
perf_trace_run_bpf_submit+0xf4/0x1c0 kernel/events/core.c:10267
perf_trace_preemptirq_template+0x281/0x340 include/trace/events/preemptirq.h:14
trace_irq_enable+0xbf/0xe0 include/trace/events/preemptirq.h:40
trace_hardirqs_on+0x18/0x40 kernel/trace/trace_preemptirq.c:56
asm_sysvec_irq_work+0x1a/0x20 arch/x86/include/asm/idtentry.h:723
RIP: 0010:rcu_read_unlock_special+0x88/0x4c0 kernel/rcu/tree_plugin.h:682
Code: f1 f1 f1 00 f2 f2 f2 4a 89 04 2b 66 42 c7 44 2b 09 f3 f3 42 c6 44 2b 0b f3 65 44 8b 35 39 58 93 7e 41 f7 c6 00 00 f0 00 74 45 <48> c7 44 24 40 0e 36 e0 45 4a c7 04 2b 00 00 00 00 66 42 c7 44 2b
RSP: 0018:ffffc90000007b00 EFLAGS: 00000206
RAX: 61b502ccc9f81c00 RBX: 1ffff92000000f68 RCX: 61b502ccc9f81c00
RDX: dffffc0000000000 RSI: ffffffff8aaab9c0 RDI: ffffffff8afc66c0
RBP: ffffc90000007bf0 R08: ffffffff90da35f7 R09: 1ffffffff21b46be
R10: dffffc0000000000 R11: fffffbfff21b46bf R12: ffffffff8cd35400
R13: dffffc0000000000 R14: 0000000000000246 R15: 0000000000000001
__rcu_read_unlock+0x7c/0xd0 kernel/rcu/tree_plugin.h:426
rcu_read_unlock include/linux/rcupdate.h:818 [inline]
ieee80211_iterate_active_interfaces_atomic+0x15a/0x180 net/mac80211/util.c:804
mac80211_hwsim_beacon+0xbb/0x1b0 drivers/net/wireless/virtual/mac80211_hwsim.c:2295
__run_hrtimer kernel/time/hrtimer.c:1755 [inline]
__hrtimer_run_queues+0x51e/0xc40 kernel/time/hrtimer.c:1819
hrtimer_run_softirq+0x187/0x2b0 kernel/time/hrtimer.c:1836
handle_softirqs+0x280/0x820 kernel/softirq.c:578
__do_softirq kernel/softirq.c:612 [inline]
invoke_softirq kernel/softirq.c:452 [inline]
__irq_exit_rcu+0xc7/0x190 kernel/softirq.c:661
irq_exit_rcu+0x9/0x20 kernel/softirq.c:673
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1088 [inline]
sysvec_apic_timer_interrupt+0xa4/0xc0 arch/x86/kernel/apic/apic.c:1088
</IRQ>
<TASK>
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:687
RIP: 0010:lock_acquire+0x1f2/0x410 kernel/locking/lockdep.c:5758
Code: 00 9c 8f 84 24 80 00 00 00 f6 84 24 81 00 00 00 02 0f 85 f5 00 00 00 41 f7 c6 00 02 00 00 74 01 fb 48 c7 44 24 60 0e 36 e0 45 <4b> c7 04 3c 00 00 00 00 66 43 c7 44 3c 09 00 00 43 c6 44 3c 0b 00
RSP: 0018:ffffc90002e47a00 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 0000000000000000 RCX: 61b502ccc9f81c00
RDX: 0000000000000000 RSI: ffffffff8aaacb40 RDI: ffffffff8afc66c0
RBP: ffffc90002e47b08 R08: dffffc0000000000 R09: 1ffffffff21b46be
R10: dffffc0000000000 R11: fffffbfff21b46bf R12: 1ffff920005c8f4c
R13: ffff88802effd4a8 R14: 0000000000000246 R15: dffffc0000000000
__mutex_lock_common kernel/locking/mutex.c:603 [inline]
__mutex_lock+0x129/0xcc0 kernel/locking/mutex.c:747
perf_event_ctx_lock_nested+0x390/0x460 kernel/events/core.c:1309
perf_event_ctx_lock kernel/events/core.c:1322 [inline]
perf_event_release_kernel+0x194/0x8c0 kernel/events/core.c:5403
perf_release+0x3b/0x40 kernel/events/core.c:5511
__fput+0x234/0x970 fs/file_table.c:384
__do_sys_close fs/open.c:1571 [inline]
__se_sys_close+0x15f/0x220 fs/open.c:1556
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f0e8495ca0a
Code: 48 3d 00 f0 ff ff 77 48 c3 0f 1f 80 00 00 00 00 48 83 ec 18 89 7c 24 0c e8 33 80 02 00 8b 7c 24 0c 89 c2 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 36 89 d7 89 44 24 0c e8 93 80 02 00 8b 44 24
RSP: 002b:00007ffd9205f100 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007f0e8495ca0a
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000003 R09: 0000000000000003
R10: 0000000000000000 R11: 0000000000000293 R12: 00007ffd9205f138
R13: 00007ffd9205f170 R14: 0000000000000002 R15: 431bde82d7b634db
</TASK>


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Oct 3, 2025, 7:26:05 AM10/3/25
to syzkaller...@googlegroups.com
syzbot suspects this issue was fixed by commit:

commit e7a375453cca2b8a0d2fa1b82b913f3fed7c0507
Author: Joel Fernandes <joela...@nvidia.com>
Date: Tue Jul 8 14:22:19 2025 +0000

rcu: Fix rcu_read_unlock() deadloop due to IRQ work

bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=17cc9214580000
start commit: bb9c90ab9c5a Linux 6.6.102
git tree: linux-6.6.y
If the result looks correct, please mark the issue as fixed by replying with:

#syz fix: rcu: Fix rcu_read_unlock() deadloop due to IRQ work

For information about bisection process see: https://goo.gl/tpsmEJ#bisection
Reply all
Reply to author
Forward
0 new messages