syzbot


INFO: rcu detected stall in sys_clone (4)

Status: auto-closed as invalid on 2021/09/27 17:49
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 526d, last: 526d
similar bugs (6):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_clone (2) 49 1009d 1126d 0/24 auto-closed as invalid on 2020/06/01 05:26
upstream INFO: rcu detected stall in sys_clone (3) 2 862d 884d 0/24 auto-closed as invalid on 2020/10/26 22:48
upstream INFO: rcu detected stall in sys_clone (6) 1 196d 196d 0/24 auto-closed as invalid on 2022/08/23 03:28
upstream INFO: rcu detected stall in sys_clone 1 1182d 1182d 14/24 fixed on 2019/10/09 10:54
linux-4.19 INFO: rcu detected stall in sys_clone 2 1080d 1099d 0/1 auto-closed as invalid on 2020/04/21 05:46
upstream INFO: rcu detected stall in sys_clone (5) 5 330d 430d 0/24 closed as invalid on 2022/02/08 10:00

Sample crash report:
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	0-...!: (10499 ticks this GP) idle=4a2/1/0x4000000000000000 softirq=60988/60988 fqs=0 
	(t=10500 jiffies g=99193 q=42)
rcu: rcu_preempt kthread timer wakeup didn't happen for 10499 jiffies! g99193 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=1 timer-softirq=40290
rcu: rcu_preempt kthread starved for 10500 jiffies! g99193 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->cpu=1
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:26000 pid:   14 ppid:     2 flags:0x00004000
Call Trace:
 context_switch kernel/sched/core.c:4683 [inline]
 __schedule+0xb53/0x1450 kernel/sched/core.c:5940
 schedule+0x14b/0x210 kernel/sched/core.c:6019
 schedule_timeout+0x1aa/0x2f0 kernel/time/timer.c:1892
 rcu_gp_fqs_loop kernel/rcu/tree.c:2004 [inline]
 rcu_gp_kthread+0x112d/0x2190 kernel/rcu/tree.c:2177
 kthread+0x453/0x480 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294
rcu: Stack dump where RCU GP kthread last ran:
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 8440 Comm: syz-executor.2 Not tainted 5.13.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__lock_acquire+0x1348/0x6100 kernel/locking/lockdep.c:5011
Code: ff df 48 83 c3 40 48 89 d8 48 c1 e8 03 42 80 3c 00 00 74 12 48 89 df e8 56 21 66 00 49 b8 00 00 00 00 00 fc ff df 48 83 3b 00 <48> 8b 5c 24 50 0f 84 a6 14 00 00 48 8b 44 24 60 42 8a 04 00 84 c0
RSP: 0018:ffffc90000dc0740 EFLAGS: 00000082
RAX: 1ffffffff2000898 RBX: ffffffff900044c0 RCX: ffffffff8162c7aa
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff90276e50
RBP: ffffc90000dc0ad0 R08: dffffc0000000000 R09: fffffbfff204edcb
R10: fffffbfff204edcb R11: 0000000000000000 R12: 00000000e460fc62
R13: ffff888028184398 R14: 000000007dc0ad1e R15: ffff888028183900
FS:  000000000278d400(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000542bf8 CR3: 000000006b974000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 lock_acquire+0x182/0x4a0 kernel/locking/lockdep.c:5625
 rcu_lock_acquire+0x2a/0x30 include/linux/rcupdate.h:267
 rcu_read_lock include/linux/rcupdate.h:657 [inline]
 advance_sched+0x714/0x8c0 net/sched/sch_taprio.c:797
 __run_hrtimer kernel/time/hrtimer.c:1537 [inline]
 __hrtimer_run_queues+0x50b/0xa60 kernel/time/hrtimer.c:1601
 hrtimer_interrupt+0x3b3/0x1040 kernel/time/hrtimer.c:1663
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1089 [inline]
 __sysvec_apic_timer_interrupt+0xf9/0x270 arch/x86/kernel/apic/apic.c:1106
 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1100
 </IRQ>
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:slab_alloc_node mm/slub.c:2880 [inline]
RIP: 0010:slab_alloc mm/slub.c:2922 [inline]
RIP: 0010:kmem_cache_alloc+0x2c8/0x340 mm/slub.c:2927
Code: c4 00 02 00 00 74 05 e8 36 f9 be ff 9c 8f 44 24 20 f7 44 24 20 00 02 00 00 75 19 41 f7 c4 00 02 00 00 74 01 fb 4c 89 6c 24 18 <44> 8b 7c 24 04 e9 92 fe ff ff e8 39 9a fc 07 41 f7 c4 00 02 00 00
RSP: 0018:ffffc9000198f898 EFLAGS: 00000206
RAX: 31bdee99530bc400 RBX: ffff8880b9b3a9b0 RCX: ffffffff81636b39
RDX: dffffc0000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000001 R08: dffffc0000000000 R09: fffffbfff204edcb
R10: fffffbfff204edcb R11: 0000000000000000 R12: 0000000000000246
R13: ffff88801954cb58 R14: ffff8881400058c0 R15: 0000000000000cc0
 vm_area_dup kernel/fork.c:357 [inline]
 dup_mmap+0x602/0xed0 kernel/fork.c:537
 dup_mm+0x8c/0x310 kernel/fork.c:1380
 copy_mm kernel/fork.c:1432 [inline]
 copy_process+0x2312/0x5b40 kernel/fork.c:2120
 kernel_clone+0x21a/0x7d0 kernel/fork.c:2510
 __do_sys_clone kernel/fork.c:2627 [inline]
 __se_sys_clone kernel/fork.c:2611 [inline]
 __x64_sys_clone+0x236/0x2b0 kernel/fork.c:2611
 do_syscall_64+0x39/0xa0 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x464bcb
Code: ed 0f 85 60 01 00 00 64 4c 8b 0c 25 10 00 00 00 45 31 c0 4d 8d 91 d0 02 00 00 31 d2 31 f6 bf 11 00 20 01 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 89 00 00 00 41 89 c5 85 c0 0f 85 90 00 00
RSP: 002b:00007fff63b42b60 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000464bcb
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 0000000000000001 R08: 0000000000000000 R09: 000000000278d400
R10: 000000000278d6d0 R11: 0000000000000246 R12: 0000000000000001
R13: 0000000000000000 R14: 0000000000000000 R15: 00007fff63b42c50
NMI backtrace for cpu 0
CPU: 0 PID: 28563 Comm: syz-executor.1 Not tainted 5.13.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:79 [inline]
 dump_stack+0x202/0x31e lib/dump_stack.c:120
 nmi_cpu_backtrace+0x16c/0x190 lib/nmi_backtrace.c:105
 nmi_trigger_cpumask_backtrace+0x191/0x2f0 lib/nmi_backtrace.c:62
 trigger_single_cpu_backtrace include/linux/nmi.h:164 [inline]
 rcu_dump_cpu_stacks+0x22d/0x390 kernel/rcu/tree_stall.h:341
 print_cpu_stall kernel/rcu/tree_stall.h:624 [inline]
 check_cpu_stall kernel/rcu/tree_stall.h:699 [inline]
 rcu_pending kernel/rcu/tree.c:3911 [inline]
 rcu_sched_clock_irq+0x1d0d/0x2a30 kernel/rcu/tree.c:2649
 update_process_times+0x197/0x200 kernel/time/timer.c:1796
 tick_sched_handle kernel/time/tick-sched.c:226 [inline]
 tick_sched_timer+0x27d/0x420 kernel/time/tick-sched.c:1421
 __run_hrtimer kernel/time/hrtimer.c:1537 [inline]
 __hrtimer_run_queues+0x4cb/0xa60 kernel/time/hrtimer.c:1601
 hrtimer_interrupt+0x3b3/0x1040 kernel/time/hrtimer.c:1663
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1089 [inline]
 __sysvec_apic_timer_interrupt+0xf9/0x270 arch/x86/kernel/apic/apic.c:1106
 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1100
 </IRQ>
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:csd_lock_wait kernel/smp.c:440 [inline]
RIP: 0010:smp_call_function_many_cond+0xa97/0xd60 kernel/smp.c:967
Code: 00 41 83 e7 01 49 bf 00 00 00 00 00 fc ff df 75 12 e8 cd 96 0b 00 eb 50 66 66 2e 0f 1f 84 00 00 00 00 00 f3 90 42 0f b6 04 3b <84> c0 75 11 41 f7 45 00 01 00 00 00 74 2b e8 a6 96 0b 00 eb e4 44
RSP: 0018:ffffc9000205fbc0 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 1ffff110173674b5 RCX: 0000000000040000
RDX: ffffc9000fa7a000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: ffffc9000205fcf8 R08: ffffffff817514be R09: ffffffff84213fb0
R10: 0000000000000009 R11: ffff888019c48000 R12: 0000000000000001
R13: ffff8880b9b3a5a8 R14: 1ffff11017346c30 R15: dffffc0000000000
 on_each_cpu_cond_mask+0x3b/0x80 kernel/smp.c:1133
 on_each_cpu include/linux/smp.h:71 [inline]
 clock_was_set+0x21/0x30 kernel/time/hrtimer.c:889
 do_settimeofday64+0x809/0x950 kernel/time/timekeeping.c:1327
 __do_sys_clock_settime kernel/time/posix-timers.c:1079 [inline]
 __se_sys_clock_settime kernel/time/posix-timers.c:1067 [inline]
 __x64_sys_clock_settime+0x1f4/0x230 kernel/time/posix-timers.c:1067
 do_syscall_64+0x39/0xa0 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x4665d9
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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ff60903d188 EFLAGS: 00000246 ORIG_RAX: 00000000000000e3
RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9
RDX: 0000000000000000 RSI: 00000000200001c0 RDI: 0000000000000000
RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80
R13: 00007ffcdda3dc3f R14: 00007ff60903d300 R15: 0000000000022000
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 8440 Comm: syz-executor.2 Not tainted 5.13.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:check_preemption_disabled+0x14/0x180 lib/smp_processor_id.c:13
Code: 92 8a 48 c7 c6 00 de 92 8a eb 0b 66 66 2e 0f 1f 84 00 00 00 00 00 55 41 57 41 56 41 55 41 54 53 48 83 ec 10 49 89 f6 49 89 ff <65> 48 8b 04 25 28 00 00 00 48 89 44 24 08 0f 1f 44 00 00 65 8b 1d
RSP: 0018:ffffc90000dc0a10 EFLAGS: 00000082
RAX: 0000000000000001 RBX: 1ffff920001b8150 RCX: 0000000080010002
RDX: 0000000000000000 RSI: ffffffff8a92de00 RDI: ffffffff8a92ddc0
RBP: ffffc90000dc0b10 R08: dffffc0000000000 R09: fffffbfff1c70d7e
R10: fffffbfff1c70d7e R11: 0000000000000000 R12: ffffffff816ff427
R13: 1ffff920001b8190 R14: ffffffff8a92de00 R15: ffffffff8a92ddc0
FS:  000000000278d400(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000542bf8 CR3: 000000006b974000 CR4: 00000000001506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 rcu_lockdep_current_cpu_online+0x36/0x130 kernel/rcu/tree.c:1216
 rcu_read_lock_held_common kernel/rcu/update.c:112 [inline]
 rcu_read_lock_sched_held+0x72/0x110 kernel/rcu/update.c:123
 trace_lock_release+0x61/0x140 include/trace/events/lock.h:58
 lock_release+0x81/0x7b0 kernel/locking/lockdep.c:5636
 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:158 [inline]
 _raw_spin_unlock_irqrestore+0x75/0x120 kernel/locking/spinlock.c:191
 __run_hrtimer kernel/time/hrtimer.c:1533 [inline]
 __hrtimer_run_queues+0x487/0xa60 kernel/time/hrtimer.c:1601
 hrtimer_interrupt+0x3b3/0x1040 kernel/time/hrtimer.c:1663
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1089 [inline]
 __sysvec_apic_timer_interrupt+0xf9/0x270 arch/x86/kernel/apic/apic.c:1106
 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1100
 </IRQ>
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:slab_alloc_node mm/slub.c:2880 [inline]
RIP: 0010:slab_alloc mm/slub.c:2922 [inline]
RIP: 0010:kmem_cache_alloc+0x2c8/0x340 mm/slub.c:2927
Code: c4 00 02 00 00 74 05 e8 36 f9 be ff 9c 8f 44 24 20 f7 44 24 20 00 02 00 00 75 19 41 f7 c4 00 02 00 00 74 01 fb 4c 89 6c 24 18 <44> 8b 7c 24 04 e9 92 fe ff ff e8 39 9a fc 07 41 f7 c4 00 02 00 00
RSP: 0018:ffffc9000198f898 EFLAGS: 00000206
RAX: 31bdee99530bc400 RBX: ffff8880b9b3a9b0 RCX: ffffffff81636b39
RDX: dffffc0000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000001 R08: dffffc0000000000 R09: fffffbfff204edcb
R10: fffffbfff204edcb R11: 0000000000000000 R12: 0000000000000246
R13: ffff88801954cb58 R14: ffff8881400058c0 R15: 0000000000000cc0
 vm_area_dup kernel/fork.c:357 [inline]
 dup_mmap+0x602/0xed0 kernel/fork.c:537
 dup_mm+0x8c/0x310 kernel/fork.c:1380
 copy_mm kernel/fork.c:1432 [inline]
 copy_process+0x2312/0x5b40 kernel/fork.c:2120
 kernel_clone+0x21a/0x7d0 kernel/fork.c:2510
 __do_sys_clone kernel/fork.c:2627 [inline]
 __se_sys_clone kernel/fork.c:2611 [inline]
 __x64_sys_clone+0x236/0x2b0 kernel/fork.c:2611
 do_syscall_64+0x39/0xa0 arch/x86/entry/common.c:47
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x464bcb
Code: ed 0f 85 60 01 00 00 64 4c 8b 0c 25 10 00 00 00 45 31 c0 4d 8d 91 d0 02 00 00 31 d2 31 f6 bf 11 00 20 01 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 89 00 00 00 41 89 c5 85 c0 0f 85 90 00 00
RSP: 002b:00007fff63b42b60 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000464bcb
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 0000000000000001 R08: 0000000000000000 R09: 000000000278d400
R10: 000000000278d6d0 R11: 0000000000000246 R12: 0000000000000001
R13: 0000000000000000 R14: 0000000000000000 R15: 00007fff63b42c50

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2021/06/29 17:40 upstream c54b245d0118 9d2ab5df .config log report info INFO: rcu detected stall in sys_clone
* Struck through repros no longer work on HEAD.