syzbot


INFO: rcu detected stall in kcov_mmap

Status: upstream: reported on 2024/07/24 05:49
Reported-by: syzbot+0812db36b5596e2caa2c@syzkaller.appspotmail.com
First crash: 85d, last: 85d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-5.15 INFO: rcu detected stall in kcov_mmap 3 55d 147d 0/3 upstream: reported on 2024/05/24 02:36
upstream INFO: rcu detected stall in kcov_mmap mm 1 247d 247d 0/28 auto-obsoleted due to no activity on 2024/05/13 16:16
upstream BUG: soft lockup in kcov_mmap mm 1 1286d 1282d 0/28 auto-closed as invalid on 2021/07/09 11:42

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...!: (1 GPs behind) idle=3884/1/0x4000000000000000 softirq=55365/55366 fqs=18
	(detected by 0, t=10505 jiffies, g=70177, q=490 ncpus=2)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 12336 Comm: syz-executor Not tainted 6.1.100-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
RIP: 0010:validate_chain+0x0/0x5950 kernel/locking/lockdep.c:3781
Code: c1 e8 b8 73 8e 80 e1 07 80 c1 03 38 c1 7c 92 48 c7 c7 e8 b8 73 8e e8 ef fb 76 00 eb 84 e8 68 33 20 09 0f 1f 84 00 00 00 00 00 <55> 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 81 ec 80 02
RSP: 0018:ffffc900001e0a58 EFLAGS: 00000086
RAX: 1ffffffff2049064 RBX: ffffffff90248320 RCX: 9c499799e614992d
RDX: 0000000000000001 RSI: ffff888076a12918 RDI: ffff888076a11dc0
RBP: 9c499799e614992d R08: dffffc0000000000 R09: fffffbfff2093881
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888076a12898
R13: ffff888076a11dc0 R14: 0000000000000001 R15: 1ffff1100ed42527
FS:  0000555555bcb500(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b33707ff8 CR3: 00000000211d3000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 __lock_acquire+0x125b/0x1f80 kernel/locking/lockdep.c:5049
 lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662
 __raw_spin_lock include/linux/spinlock_api_smp.h:133 [inline]
 _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154
 spin_lock include/linux/spinlock.h:351 [inline]
 advance_sched+0x47/0x970 net/sched/sch_taprio.c:700
 __run_hrtimer kernel/time/hrtimer.c:1686 [inline]
 __hrtimer_run_queues+0x5e5/0xe50 kernel/time/hrtimer.c:1750
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1812
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline]
 __sysvec_apic_timer_interrupt+0x156/0x580 arch/x86/kernel/apic/apic.c:1112
 sysvec_apic_timer_interrupt+0x8c/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:debug_lockdep_rcu_enabled+0x0/0x30 kernel/rcu/update.c:279
Code: bd 59 e8 03 00 75 e7 48 c7 c7 e0 00 ec 8a 48 c7 c6 00 25 ec 8a e8 e0 31 c7 f6 0f 0b eb d0 cc cc cc cc cc cc cc cc cc cc cc cc <31> c0 83 3d f7 25 e8 03 00 74 1d 83 3d 82 59 e8 03 00 74 14 65 48
RSP: 0018:ffffc90003be78e8 EFLAGS: 00000286
RAX: ffffffff81eccb09 RBX: ffff88801606f690 RCX: ffff888076a11dc0
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff88801606f690
RBP: ffffc90003be79d8 R08: ffffffff81ecdf00 R09: ffffed1002c0ded2
R10: 0000000000000000 R11: dffffc0000000001 R12: 80000000598c1027
R13: ffff8880287a0f00 R14: ffffc90003be7960 R15: ffff888079db4418
 rcu_read_unlock include/linux/rcupdate.h:820 [inline]
 page_ext_put+0x17/0xb0 mm/page_ext.c:182
 page_table_check_pte_set include/linux/page_table_check.h:83 [inline]
 set_pte_at arch/x86/include/asm/pgtable.h:1009 [inline]
 insert_page_into_pte_locked+0x4c6/0x570 mm/memory.c:1870
 insert_page mm/memory.c:1895 [inline]
 vm_insert_page+0x3e5/0x5a0 mm/memory.c:2059
 kcov_mmap+0x80/0xd0 kernel/kcov.c:495
 call_mmap include/linux/fs.h:2270 [inline]
 mmap_region+0xf96/0x1fa0 mm/mmap.c:2763
 do_mmap+0x8c5/0xf60 mm/mmap.c:1425
 vm_mmap_pgoff+0x1ca/0x2d0 mm/util.c:520
 ksys_mmap_pgoff+0x4f5/0x6d0 mm/mmap.c:1471
 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:0x7f8b4d175f53
Code: f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 41 89 ca 41 f7 c1 ff 0f 00 00 75 14 b8 09 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 25 c3 0f 1f 40 00 48 c7 c0 a8 ff ff ff 64 c7
RSP: 002b:00007ffd8b516f68 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007f8b4d305f20 RCX: 00007f8b4d175f53
RDX: 0000000000000003 RSI: 0000000000800000 RDI: 00007f8b4bbf9000
RBP: 00007f8b4bbf8000 R08: 00000000000000d7 R09: 0000000000000000
R10: 0000000000000011 R11: 0000000000000246 R12: 000000000000000c
R13: 0000000000000003 R14: 0000000000000009 R15: 0000000000000009
 </TASK>
rcu: rcu_preempt kthread timer wakeup didn't happen for 10414 jiffies! g70177 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=0 timer-softirq=36686
rcu: rcu_preempt kthread starved for 10415 jiffies! g70177 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->cpu=0
rcu: 	Unless rcu_preempt kthread gets sufficient CPU time, OOM is now expected behavior.
rcu: RCU grace-period kthread stack dump:
task:rcu_preempt     state:I stack:26712 pid:16    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5244 [inline]
 __schedule+0x143f/0x4570 kernel/sched/core.c:6561
 schedule+0xbf/0x180 kernel/sched/core.c:6637
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1965
 rcu_gp_fqs_loop+0x2d2/0x1150 kernel/rcu/tree.c:1706
 rcu_gp_kthread+0xa3/0x3b0 kernel/rcu/tree.c:1905
 kthread+0x28d/0x320 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 0 PID: 12355 Comm: syz.1.2328 Not tainted 6.1.100-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
RIP: 0010:csd_lock_wait kernel/smp.c:424 [inline]
RIP: 0010:smp_call_function_many_cond+0x1fb0/0x3460 kernel/smp.c:998
Code: 2f 44 89 ee 83 e6 01 31 ff e8 2c 43 0b 00 41 83 e5 01 49 bd 00 00 00 00 00 fc ff df 75 0a e8 b7 3f 0b 00 e9 1b ff ff ff f3 90 <42> 0f b6 04 2b 84 c0 75 14 41 f7 07 01 00 00 00 0f 84 fe fe ff ff
RSP: 0018:ffffc9000382f240 EFLAGS: 00000246
RAX: ffffffff817f5aeb RBX: 1ffff110173281b1 RCX: 0000000000040000
RDX: ffffc9000fece000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: ffffc9000382f620 R08: ffffffff817f5ab4 R09: fffffbfff2093845
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000800000000
R13: dffffc0000000000 R14: 0000000000000001 R15: ffff8880b9940d88
FS:  00007f6b24df16c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b3351fffc CR3: 0000000074bfe000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 on_each_cpu_cond_mask+0x3b/0x80 kernel/smp.c:1166
 on_each_cpu include/linux/smp.h:71 [inline]
 text_poke_sync arch/x86/kernel/alternative.c:1334 [inline]
 text_poke_bp_batch+0x2bb/0x940 arch/x86/kernel/alternative.c:1534
 text_poke_bp+0xc8/0x140 arch/x86/kernel/alternative.c:1771
 __static_call_transform+0x333/0x560 arch/x86/kernel/static_call.c:109
 arch_static_call_transform+0xcc/0x270 arch/x86/kernel/static_call.c:161
 __static_call_update+0xd4/0x5c0 kernel/static_call_inline.c:136
 tracepoint_update_call kernel/tracepoint.c:317 [inline]
 tracepoint_add_func+0x90c/0x9d0 kernel/tracepoint.c:358
 tracepoint_probe_register_prio_may_exist+0x11e/0x190 kernel/tracepoint.c:482
 bpf_raw_tp_link_attach+0x456/0x6b0 kernel/bpf/syscall.c:3387
 bpf_raw_tracepoint_open+0x196/0x210 kernel/bpf/syscall.c:3414
 __sys_bpf+0x4a7/0x6c0 kernel/bpf/syscall.c:5062
 __do_sys_bpf kernel/bpf/syscall.c:5124 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5122 [inline]
 __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:5122
 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:0x7f6b23f75f19
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:00007f6b24df1048 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f6b24105f60 RCX: 00007f6b23f75f19
RDX: 0000000000000010 RSI: 0000000020000200 RDI: 0000000000000011
RBP: 00007f6b23fe4e68 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f6b24105f60 R15: 00007ffd91ab0718
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/24 05:48 linux-6.1.y 9b3f9a5b12dc 57b2edb1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in kcov_mmap
* Struck through repros no longer work on HEAD.