syzbot


INFO: rcu detected stall in clone3

Status: closed as invalid on 2022/02/08 10:10
Subsystems: mm
[Documentation on labels]
First crash: 1138d, last: 1112d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in clone3 (2) kernfs 1 960d 960d 0/28 auto-closed as invalid on 2022/09/10 23:49
upstream INFO: rcu detected stall in clone3 (3) kernel 1 709d 709d 0/28 auto-obsoleted due to no activity on 2023/05/19 23:49
upstream INFO: rcu detected stall in clone3 (4) net mm 2 522d 602d 0/28 auto-obsoleted due to no activity on 2023/11/22 09:08

Sample crash report:
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	1-....: (1487 ticks this GP) idle=113/1/0x4000000000000000 softirq=450757/450757 fqs=8 
	(t=10502 jiffies g=476761 q=37457)
NMI backtrace for cpu 1
CPU: 1 PID: 2428 Comm: syz-executor.5 Not tainted 5.16.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:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x1b3/0x230 lib/nmi_backtrace.c:62
 trigger_single_cpu_backtrace include/linux/nmi.h:164 [inline]
 rcu_dump_cpu_stacks+0x25e/0x3f0 kernel/rcu/tree_stall.h:343
 print_cpu_stall kernel/rcu/tree_stall.h:604 [inline]
 check_cpu_stall kernel/rcu/tree_stall.h:688 [inline]
 rcu_pending kernel/rcu/tree.c:3919 [inline]
 rcu_sched_clock_irq.cold+0x5c/0x759 kernel/rcu/tree.c:2617
 update_process_times+0x16d/0x200 kernel/time/timer.c:1785
 tick_sched_handle+0x9b/0x180 kernel/time/tick-sched.c:226
 tick_sched_timer+0x1b0/0x2d0 kernel/time/tick-sched.c:1428
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x1c0/0xe50 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x31c/0x790 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1086 [inline]
 __sysvec_apic_timer_interrupt+0x146/0x530 arch/x86/kernel/apic/apic.c:1103
 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1097
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:check_region_inline mm/kasan/generic.c:169 [inline]
RIP: 0010:kasan_check_range+0x9/0x180 mm/kasan/generic.c:189
Code: b6 f5 bf 00 08 00 00 89 43 0c e8 e2 e4 ff ff 89 43 08 5b 5d 41 5c c3 66 2e 0f 1f 84 00 00 00 00 00 48 85 f6 0f 84 3c 01 00 00 <49> 89 f9 41 54 44 0f b6 c2 49 01 f1 55 53 0f 82 18 01 00 00 48 b8
RSP: 0018:ffffc9008314f5b0 EFLAGS: 00000202
RAX: 0000000000000000 RBX: 0000000000000001 RCX: ffffffff81ad1a5b
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffea0002338a00
RBP: ffffea0002338a00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffffea0002338a08
R13: ffff88804a9a4950 R14: dffffc0000000000 R15: 000000002012b000
 instrument_atomic_read include/linux/instrumented.h:71 [inline]
 test_bit include/asm-generic/bitops/instrumented-non-atomic.h:134 [inline]
 PageCompound include/linux/page-flags.h:242 [inline]
 page_mapcount include/linux/mm.h:836 [inline]
 zap_pte_range mm/memory.c:1358 [inline]
 zap_pmd_range mm/memory.c:1467 [inline]
 zap_pud_range mm/memory.c:1496 [inline]
 zap_p4d_range mm/memory.c:1517 [inline]
 unmap_page_range+0xf1b/0x29f0 mm/memory.c:1538
 unmap_single_vma+0x198/0x310 mm/memory.c:1583
 unmap_vmas+0x16b/0x2f0 mm/memory.c:1615
 exit_mmap+0x1d0/0x630 mm/mmap.c:3170
 __mmput+0x122/0x4b0 kernel/fork.c:1113
 mmput+0x56/0x60 kernel/fork.c:1134
 dup_mm+0xd73/0x13e0 kernel/fork.c:1466
 copy_mm kernel/fork.c:1502 [inline]
 copy_process+0x6fed/0x75a0 kernel/fork.c:2191
 kernel_clone+0xe7/0xab0 kernel/fork.c:2582
 __do_sys_clone3+0x1dd/0x2f0 kernel/fork.c:2857
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f842f9e8eb9
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:00007f842e31c168 EFLAGS: 00000246 ORIG_RAX: 00000000000001b3
RAX: ffffffffffffffda RBX: 00007f842fafc100 RCX: 00007f842f9e8eb9
RDX: 0000000000000000 RSI: 0000000000000058 RDI: 0000000020000600
RBP: 00007f842fa4308d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f843002fb1f R14: 00007f842e31c300 R15: 0000000000022000
 </TASK>
----------------
Code disassembly (best guess):
   0:	b6 f5                	mov    $0xf5,%dh
   2:	bf 00 08 00 00       	mov    $0x800,%edi
   7:	89 43 0c             	mov    %eax,0xc(%rbx)
   a:	e8 e2 e4 ff ff       	callq  0xffffe4f1
   f:	89 43 08             	mov    %eax,0x8(%rbx)
  12:	5b                   	pop    %rbx
  13:	5d                   	pop    %rbp
  14:	41 5c                	pop    %r12
  16:	c3                   	retq
  17:	66 2e 0f 1f 84 00 00 	nopw   %cs:0x0(%rax,%rax,1)
  1e:	00 00 00
  21:	48 85 f6             	test   %rsi,%rsi
  24:	0f 84 3c 01 00 00    	je     0x166
* 2a:	49 89 f9             	mov    %rdi,%r9 <-- trapping instruction
  2d:	41 54                	push   %r12
  2f:	44 0f b6 c2          	movzbl %dl,%r8d
  33:	49 01 f1             	add    %rsi,%r9
  36:	55                   	push   %rbp
  37:	53                   	push   %rbx
  38:	0f 82 18 01 00 00    	jb     0x156
  3e:	48                   	rex.W
  3f:	b8                   	.byte 0xb8

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/01/11 23:50 upstream 6f38be8f2ccd 44d1319a .config console log report info ci-upstream-kasan-gce INFO: rcu detected stall in clone3
2021/12/16 19:51 upstream 2b14864acbaa 8dd6a5e3 .config console log report info ci-upstream-kasan-gce-root INFO: rcu detected stall in clone3
* Struck through repros no longer work on HEAD.