syzbot


INFO: rcu detected stall in sys_exit_group (3)

Status: upstream: reported on 2024/10/12 11:23
Reported-by: syzbot+226f79deeff269673a38@syzkaller.appspotmail.com
First crash: 55d, last: 22d
Similar bugs (14)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_exit_group (7) net C unreliable inconclusive 90 151d 1148d 0/28 upstream: reported C repro on 2021/10/15 18:41
upstream INFO: rcu detected stall in sys_exit_group (6) mm C 4 1528d 1534d 19/28 fixed on 2021/03/10 01:48
linux-5.15 INFO: rcu detected stall in sys_exit_group (2) 3 232d 267d 0/3 auto-obsoleted due to no activity on 2024/07/27 04:53
linux-6.1 INFO: rcu detected stall in sys_exit_group (3) origin:upstream C 10 23d 318d 0/3 upstream: reported C repro on 2024/01/23 11:05
linux-6.1 INFO: rcu detected stall in sys_exit_group (2) 1 464d 464d 0/3 auto-obsoleted due to no activity on 2023/12/07 20:57
linux-6.1 INFO: rcu detected stall in sys_exit_group 1 575d 575d 0/3 auto-obsoleted due to no activity on 2023/08/23 09:06
linux-5.15 INFO: rcu detected stall in sys_exit_group 1 526d 526d 0/3 auto-obsoleted due to no activity on 2023/10/06 21:30
upstream INFO: rcu detected stall in sys_exit_group (2) cgroups mm 56 1829d 1830d 0/28 closed as invalid on 2019/12/04 14:14
upstream INFO: rcu detected stall in sys_exit_group (3) kernel 8 1794d 1794d 0/28 closed as invalid on 2020/01/08 05:23
upstream INFO: rcu detected stall in sys_exit_group (4) kernel 13 1794d 1794d 0/28 closed as invalid on 2020/01/09 08:13
upstream INFO: rcu detected stall in sys_exit_group (5) mm 1 1715d 1715d 0/28 auto-closed as invalid on 2020/06/25 07:58
upstream INFO: rcu detected stall in sys_exit_group kernel C done 1 1910d 1906d 13/28 fixed on 2019/10/09 10:54
android-5-10 BUG: soft lockup in sys_exit_group 1 138d 138d 0/2 auto-obsoleted due to no activity on 2024/10/19 10:22
android-5-15 BUG: soft lockup in sys_exit_group C error 7 99d 243d 0/2 upstream: reported C repro on 2024/04/07 14:27

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...!: (1 GPs behind) idle=543/1/0x4000000000000000 softirq=35476/35476 fqs=40 
	(detected by 0, t=10504 jiffies, g=58973, q=1111)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 8657 Comm: syz.7.989 Not tainted 5.15.172-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:match_held_lock+0x1/0xb0 kernel/locking/lockdep.c:5070
Code: 03 00 75 cf 48 c7 c7 20 29 8b 8a 48 c7 c6 60 29 8b 8a e8 b2 9b 17 f7 0f 0b eb b6 e8 09 fb ff ff 66 0f 1f 84 00 00 00 00 00 55 <53> bd 01 00 00 00 48 39 77 10 74 67 48 89 fb 81 7f 20 00 00 10 00
RSP: 0018:ffffc90000dd0c68 EFLAGS: 00000087
RAX: 0000000000000004 RBX: 0000000000000002 RCX: ffff8880287b0000
RDX: ffff8880287b0000 RSI: ffff88805dc27300 RDI: ffff8880287b0b40
RBP: ffff8880287b0b40 R08: ffffffff8881eaa7 R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: 0000000000000046
R13: ffff8880287b0000 R14: 00000000ffffffff R15: ffff88805dc27300
FS:  0000000000000000(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b32e1aff8 CR3: 000000000c68e000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 __lock_is_held kernel/locking/lockdep.c:5366 [inline]
 lock_is_held_type+0xa4/0x180 kernel/locking/lockdep.c:5666
 lock_is_held include/linux/lockdep.h:287 [inline]
 advance_sched+0x69/0x940 net/sched/sch_taprio.c:717
 __run_hrtimer kernel/time/hrtimer.c:1688 [inline]
 __hrtimer_run_queues+0x598/0xcf0 kernel/time/hrtimer.c:1752
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1814
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1097 [inline]
 __sysvec_apic_timer_interrupt+0x13b/0x4b0 arch/x86/kernel/apic/apic.c:1114
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
 sysvec_apic_timer_interrupt+0x9b/0xc0 arch/x86/kernel/apic/apic.c:1108
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:rcu_read_unlock include/linux/rcupdate.h:771 [inline]
RIP: 0010:__mod_lruvec_page_state+0x213/0x340 mm/memcontrol.c:789
Code: 74 28 80 3d a6 e8 06 0c 00 75 1f c6 05 9d e8 06 0c 01 48 c7 c7 a0 00 96 8a be 01 03 00 00 48 c7 c2 40 01 96 8a e8 3d 4d 94 ff <e8> 68 0c 9d ff 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f 5d e9 d5 e8
RSP: 0018:ffffc900030276c0 EFLAGS: 00000202
RAX: 0000000000008501 RBX: 1ffff1100c561018 RCX: ffff8880287b0000
RDX: 0000000000000000 RSI: ffffffff8ad90520 RDI: ffffffff8ad904e0
RBP: 00000000ffffffff R08: ffffffff8179e8f5 R09: fffff940002b6b81
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888062b08000
R13: dffffc0000000000 R14: ffff888062b080c0 R15: 0000000000000011
 __dec_lruvec_page_state include/linux/vmstat.h:543 [inline]
 page_remove_rmap+0x62f/0x11e0 mm/rmap.c:1372
 zap_pte_range mm/memory.c:1373 [inline]
 zap_pmd_range mm/memory.c:1494 [inline]
 zap_pud_range mm/memory.c:1523 [inline]
 zap_p4d_range mm/memory.c:1544 [inline]
 unmap_page_range+0xffa/0x2630 mm/memory.c:1565
 unmap_vmas+0x1f8/0x390 mm/memory.c:1642
 exit_mmap+0x3b6/0x670 mm/mmap.c:3186
 __mmput+0x112/0x3b0 kernel/fork.c:1127
 exit_mm+0x688/0x7f0 kernel/exit.c:550
 do_exit+0x626/0x2480 kernel/exit.c:861
 do_group_exit+0x144/0x310 kernel/exit.c:996
 __do_sys_exit_group kernel/exit.c:1007 [inline]
 __se_sys_exit_group kernel/exit.c:1005 [inline]
 __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1005
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f01a7463719
Code: Unable to access opcode bytes at RIP 0x7f01a74636ef.
RSP: 002b:00007ffe73fbbc28 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f01a7463719
RDX: 0000000000000064 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007ffe73fbbc7c R08: 00007ffe73fbbd0f R09: 000000000006a284
R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000032
R13: 000000000006a284 R14: 000000000006a1f3 R15: 00007ffe73fbbcd0
 </TASK>
rcu: rcu_preempt kthread starved for 10302 jiffies! g58973 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->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:R  running task     stack:27064 pid:   15 ppid:     2 flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5027 [inline]
 __schedule+0x12c4/0x45b0 kernel/sched/core.c:6373
 schedule+0x11b/0x1f0 kernel/sched/core.c:6456
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1914
 rcu_gp_fqs_loop+0x2bf/0x1080 kernel/rcu/tree.c:1972
 rcu_gp_kthread+0xa4/0x360 kernel/rcu/tree.c:2145
 kthread+0x3f6/0x4f0 kernel/kthread.c:334
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
NMI backtrace for cpu 0
CPU: 0 PID: 6019 Comm: kworker/0:12 Not tainted 5.15.172-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Workqueue: events bpf_prog_free_deferred
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x46a/0x4a0 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x181/0x2a0 lib/nmi_backtrace.c:62
 trigger_single_cpu_backtrace include/linux/nmi.h:166 [inline]
 rcu_check_gp_kthread_starvation+0x1d2/0x240 kernel/rcu/tree_stall.h:487
 print_other_cpu_stall+0x137a/0x14d0 kernel/rcu/tree_stall.h:592
 check_cpu_stall kernel/rcu/tree_stall.h:745 [inline]
 rcu_pending kernel/rcu/tree.c:3932 [inline]
 rcu_sched_clock_irq+0xa38/0x1150 kernel/rcu/tree.c:2619
 update_process_times+0x196/0x200 kernel/time/timer.c:1818
 tick_sched_handle kernel/time/tick-sched.c:254 [inline]
 tick_sched_timer+0x386/0x550 kernel/time/tick-sched.c:1473
 __run_hrtimer kernel/time/hrtimer.c:1688 [inline]
 __hrtimer_run_queues+0x55b/0xcf0 kernel/time/hrtimer.c:1752
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1814
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1097 [inline]
 __sysvec_apic_timer_interrupt+0x13b/0x4b0 arch/x86/kernel/apic/apic.c:1114
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
 sysvec_apic_timer_interrupt+0x9b/0xc0 arch/x86/kernel/apic/apic.c:1108
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:rep_nop arch/x86/include/asm/vdso/processor.h:13 [inline]
RIP: 0010:cpu_relax arch/x86/include/asm/vdso/processor.h:18 [inline]
RIP: 0010:csd_lock_wait kernel/smp.c:440 [inline]
RIP: 0010:smp_call_function_many_cond+0xa91/0xd90 kernel/smp.c:969
Code: 0f b6 04 03 84 c0 0f 85 84 00 00 00 45 8b 7d 00 44 89 fe 83 e6 01 31 ff e8 4c d5 0b 00 41 83 e7 01 75 07 e8 e1 d1 0b 00 eb 41 <f3> 90 48 b8 00 00 00 00 00 fc ff df 0f b6 04 03 84 c0 75 11 41 f7
RSP: 0018:ffffc900036d78a0 EFLAGS: 00000293
RAX: ffffffff8174a1e4 RBX: 1ffff110172280b1 RCX: ffff8880271a0000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc900036d79e0 R08: ffffffff8174a1b4 R09: fffffbfff20ec822
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001
R13: ffff8880b9140588 R14: ffff8880b903b380 R15: 0000000000000001
 on_each_cpu_cond_mask+0x3b/0x80 kernel/smp.c:1135
 __purge_vmap_area_lazy+0x294/0x1740 mm/vmalloc.c:1683
 _vm_unmap_aliases+0x453/0x4e0 mm/vmalloc.c:2107
 vm_remove_mappings mm/vmalloc.c:2584 [inline]
 __vunmap+0x72e/0xa20 mm/vmalloc.c:2611
 bpf_jit_binary_free kernel/bpf/core.c:914 [inline]
 bpf_jit_free+0x92/0x180 kernel/bpf/core.c:927
 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
 kthread+0x3f6/0x4f0 kernel/kthread.c:334
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/14 19:04 linux-5.15.y d98fd109f827 a8c99394 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in sys_exit_group
2024/10/12 11:23 linux-5.15.y 3a5928702e71 084d8178 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in sys_exit_group
* Struck through repros no longer work on HEAD.