syzbot


INFO: rcu detected stall in sys_perf_event_open (2)

Status: upstream: reported on 2024/09/23 05:55
Reported-by: syzbot+5284a86a0b0a31ab266a@syzkaller.appspotmail.com
First crash: 5d06h, last: 5d06h
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 INFO: rcu detected stall in sys_perf_event_open (2) origin:lts-only C error 2 40d 262d 0/3 upstream: reported C repro on 2024/01/09 18:19
upstream INFO: rcu detected stall in sys_perf_event_open (3) perf 1 1725d 1725d 0/28 closed as invalid on 2020/01/08 05:23
upstream INFO: rcu detected stall in sys_perf_event_open (4) perf 1 1725d 1724d 0/28 closed as invalid on 2020/01/09 08:13
upstream INFO: rcu detected stall in sys_perf_event_open (2) perf 8 1760d 1761d 0/28 closed as invalid on 2019/12/04 14:14
linux-6.1 INFO: rcu detected stall in sys_perf_event_open 1 109d 109d 0/3 auto-obsoleted due to no activity on 2024/09/19 01:45
linux-5.15 INFO: rcu detected stall in sys_perf_event_open 1 528d 528d 0/3 auto-obsoleted due to no activity on 2023/08/17 04:33
upstream INFO: rcu detected stall in sys_perf_event_open perf 1 2204d 2202d 0/28 auto-closed as invalid on 2019/03/14 17:19
android-5-15 BUG: soft lockup in sys_perf_event_open 1 145d 145d 0/2 auto-obsoleted due to no activity on 2024/08/04 07:07
upstream BUG: soft lockup in sys_perf_event_open perf 1 120d 116d 0/28 auto-obsoleted due to no activity on 2024/08/29 01:52

Sample crash report:
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	1-....: (1 GPs behind) idle=a75c/1/0x4000000000000000 softirq=7983/7984 fqs=534
	(t=10501 jiffies g=7593 q=1637 ncpus=2)
CPU: 1 PID: 3791 Comm: syz.1.26 Not tainted 6.1.111-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:dst_cow_metrics_generic+0x3/0x1b0 net/core/dst.c:194
Code: 1f 84 00 00 00 00 00 53 48 89 fb e8 67 82 eb f8 48 83 c3 a8 48 89 df 5b e9 aa f7 ff ff 66 2e 0f 1f 84 00 00 00 00 00 55 41 57 <41> 56 41 55 41 54 53 49 89 f6 49 89 fc e8 3b 82 eb f8 48 c7 c0 68
RSP: 0018:ffffc900001e0820 EFLAGS: 00000246
RAX: 1ffff110059c5835 RBX: ffffffff8c063261 RCX: dffffc0000000000
RDX: 0000000000000100 RSI: ffffffff8c063261 RDI: ffff888079276000
RBP: ffff88802ce2c1a8 R08: ffffffff89653b0b R09: ffffed100f24ec13
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888079276000
R13: ffff888079276000 R14: ffff888073cc1000 R15: ffff8880792760d0
FS:  00007f70119ff6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f70119ded58 CR3: 00000000737ca000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 dst_metrics_write_ptr include/net/dst.h:119 [inline]
 dst_metric_set include/net/dst.h:180 [inline]
 icmp6_dst_alloc+0x2bf/0x470 net/ipv6/route.c:3282
 ndisc_send_skb+0x344/0x14e0 net/ipv6/ndisc.c:491
 addrconf_rs_timer+0x357/0x610 net/ipv6/addrconf.c:3963
 call_timer_fn+0x1ad/0x6b0 kernel/time/timer.c:1504
 expire_timers kernel/time/timer.c:1549 [inline]
 __run_timers+0x67c/0x890 kernel/time/timer.c:1820
 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1833
 handle_softirqs+0x2ee/0xa40 kernel/softirq.c:571
 __do_softirq kernel/softirq.c:605 [inline]
 invoke_softirq kernel/softirq.c:445 [inline]
 __irq_exit_rcu+0x157/0x240 kernel/softirq.c:654
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:666
 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1106
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653
RIP: 0010:finish_task_switch+0x1d3/0x810 kernel/sched/core.c:5120
Code: 32 0b 00 48 83 c4 08 4c 89 f7 e8 68 31 00 00 0f 1f 44 00 00 4c 89 f7 e8 9b ed 51 09 e8 26 21 32 00 fb 49 8d bc 24 f8 15 00 00 <48> 89 f8 48 c1 e8 03 49 bd 00 00 00 00 00 fc ff df 42 0f b6 04 28
RSP: 0018:ffffc90004d17828 EFLAGS: 00000282
RAX: 2a7cda8712c9fd00 RBX: ffff88802bb13bb4 RCX: ffffffff816af0fa
RDX: dffffc0000000000 RSI: ffffffff8b0c0340 RDI: ffff8880251933b8
RBP: ffffc90004d17870 R08: dffffc0000000000 R09: fffffbfff223b864
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888025191dc0
R13: 1ffff110171e76e3 R14: ffff8880b8f3a9c0 R15: ffff8880b8f3b718
 context_switch kernel/sched/core.c:5244 [inline]
 __schedule+0x1447/0x4570 kernel/sched/core.c:6558
 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6870
 irqentry_exit+0x53/0x80 kernel/entry/common.c:439
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653
RIP: 0010:task_function_call kernel/events/core.c:122 [inline]
RIP: 0010:perf_install_in_context+0x6b9/0xa90 kernel/events/core.c:2935
Code: c1 e8 03 0f b6 04 18 84 c0 0f 85 8b 00 00 00 41 8b 7d 00 48 c7 c6 80 14 b2 81 4c 89 f2 b9 01 00 00 00 e8 da 79 cd ff 41 89 c4 <31> ff 89 c6 e8 3e 0c d9 ff 45 85 e4 74 10 e8 d4 08 d9 ff 41 83 fc
RSP: 0018:ffffc90004d17bc0 EFLAGS: 00000246
RAX: 0000000000000000 RBX: dffffc0000000000 RCX: 0000000000040000
RDX: ffffc90004333000 RSI: 0000000000000860 RDI: 0000000000000861
RBP: ffffc90004d17d10 R08: ffffffff817f2533 R09: fffffbfff223b864
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: ffff888025191dd4 R14: ffffc90004d17c40 R15: 1ffff920009a2f8b
 __do_sys_perf_event_open kernel/events/core.c:12733 [inline]
 __se_sys_perf_event_open+0x37f3/0x4960 kernel/events/core.c:12327
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f7011b7def9
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:00007f70119ff038 EFLAGS: 00000246 ORIG_RAX: 000000000000012a
RAX: ffffffffffffffda RBX: 00007f7011d36058 RCX: 00007f7011b7def9
RDX: ffffffffffffffff RSI: 0000000000000000 RDI: 0000000020000100
RBP: 00007f7011bf0b76 R08: 0000000000000000 R09: 0000000000000000
R10: ffffffffffffffff R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f7011d36058 R15: 00007ffd80766d78
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/23 05:54 linux-6.1.y e526b12bf916 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in sys_perf_event_open
* Struck through repros no longer work on HEAD.