syzbot


INFO: rcu detected stall in filemap_fault (2)

Status: auto-closed as invalid on 2022/02/07 21:39
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 404d, last: 383d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in filemap_fault 1 1513d 1510d 0/24 closed as dup on 2019/01/02 16:20

Sample crash report:
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	0-....: (1 GPs behind) idle=0e9/1/0x4000000000000000 softirq=396533/396534 fqs=5153 
	(t=10502 jiffies g=731925 q=120675)
NMI backtrace for cpu 0
CPU: 0 PID: 1386 Comm: syz-executor.0 Not tainted 5.15.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:105
 nmi_trigger_cpumask_backtrace+0x1ae/0x220 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:627 [inline]
 check_cpu_stall kernel/rcu/tree_stall.h:711 [inline]
 rcu_pending kernel/rcu/tree.c:3878 [inline]
 rcu_sched_clock_irq.cold+0x9d/0x746 kernel/rcu/tree.c:2597
 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:1421
 __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:rcu_rnp_online_cpus kernel/rcu/tree.c:221 [inline]
RIP: 0010:rcu_lockdep_current_cpu_online kernel/rcu/tree.c:1171 [inline]
RIP: 0010:rcu_lockdep_current_cpu_online+0xc5/0x150 kernel/rcu/tree.c:1160
Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 75 7b 48 8d 7d 70 48 8b 5b 20 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 <75> 66 48 8b 45 70 48 85 c3 74 11 b8 01 00 00 00 65 ff 0d b4 25 9f
RSP: 0018:ffffc9000a5073c8 EFLAGS: 00000246
RAX: dffffc0000000000 RBX: 0000000000000001 RCX: ffffc900167cb000
RDX: 1ffffffff17318fe RSI: 0000000000000001 RDI: ffffffff8b98c7f0
RBP: ffffffff8b98c780 R08: 0000000000000001 R09: 0000000000000000
R10: ffffffff83f77476 R11: 000000000000003f R12: ffff8881a8e55080
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 rcu_read_lock_held_common kernel/rcu/update.c:112 [inline]
 rcu_read_lock_held_common kernel/rcu/update.c:102 [inline]
 rcu_read_lock_held+0x21/0x40 kernel/rcu/update.c:309
 xa_entry include/linux/xarray.h:1182 [inline]
 xas_descend+0x2a5/0x3b0 lib/xarray.c:204
 xas_load+0xe5/0x140 lib/xarray.c:240
 xa_get_order+0xf7/0x390 lib/xarray.c:1761
 __filemap_add_folio+0x364/0xe20 mm/filemap.c:908
 filemap_add_folio+0xab/0x1d0 mm/filemap.c:991
 page_cache_ra_unbounded+0x3d2/0x940 mm/readahead.c:221
 do_page_cache_ra+0xf9/0x140 mm/readahead.c:268
 do_sync_mmap_readahead mm/filemap.c:2988 [inline]
 filemap_fault+0x1562/0x26d0 mm/filemap.c:3081
 __do_fault+0x10d/0x4d0 mm/memory.c:3849
 do_read_fault mm/memory.c:4164 [inline]
 do_fault mm/memory.c:4293 [inline]
 handle_pte_fault mm/memory.c:4551 [inline]
 __handle_mm_fault+0x28e8/0x5120 mm/memory.c:4686
 handle_mm_fault+0x1c8/0x790 mm/memory.c:4784
 faultin_page mm/gup.c:939 [inline]
 __get_user_pages+0x522/0xfb0 mm/gup.c:1160
 populate_vma_page_range+0x24d/0x330 mm/gup.c:1492
 __mm_populate+0x1ea/0x3e0 mm/gup.c:1601
 mm_populate include/linux/mm.h:2734 [inline]
 vm_mmap_pgoff+0x20e/0x290 mm/util.c:524
 ksys_mmap_pgoff+0x49f/0x620 mm/mmap.c:1624
 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:0x7f42ac90bae9
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:00007f42a9e81188 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007f42aca1ef60 RCX: 00007f42ac90bae9
RDX: 0000000001000002 RSI: 0000000000b36000 RDI: 0000000020000000
RBP: 00007f42ac965f45 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000028011 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc9fa80def R14: 00007f42a9e81300 R15: 0000000000022000
 </TASK>
----------------
Code disassembly (best guess):
   0:	48 89 fa             	mov    %rdi,%rdx
   3:	48 c1 ea 03          	shr    $0x3,%rdx
   7:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
   b:	75 7b                	jne    0x88
   d:	48 8d 7d 70          	lea    0x70(%rbp),%rdi
  11:	48 8b 5b 20          	mov    0x20(%rbx),%rbx
  15:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  1c:	fc ff df
  1f:	48 89 fa             	mov    %rdi,%rdx
  22:	48 c1 ea 03          	shr    $0x3,%rdx
  26:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
* 2a:	75 66                	jne    0x92 <-- trapping instruction
  2c:	48 8b 45 70          	mov    0x70(%rbp),%rax
  30:	48 85 c3             	test   %rax,%rbx
  33:	74 11                	je     0x46
  35:	b8 01 00 00 00       	mov    $0x1,%eax
  3a:	65                   	gs
  3b:	ff                   	.byte 0xff
  3c:	0d                   	.byte 0xd
  3d:	b4 25                	mov    $0x25,%ah
  3f:	9f                   	lahf

Crashes (7):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2021/11/09 06:17 upstream e851dfae4371 8ab17e57 .config log report info INFO: rcu detected stall in filemap_fault
ci-upstream-kasan-gce-root 2021/11/06 13:18 upstream d4439a1189f9 4c1be0be .config log report info INFO: rcu detected stall in filemap_fault
ci-upstream-linux-next-kasan-gce-root 2021/11/07 03:22 linux-next 6a37ebbe07bf 4c1be0be .config log report info INFO: rcu detected stall in filemap_fault
ci-upstream-linux-next-kasan-gce-root 2021/10/19 23:10 linux-next 60e8840126bd 466b7db1 .config log report info INFO: rcu detected stall in filemap_fault
ci-qemu2-arm64 2021/11/09 21:24 upstream d2f38a3c6507 59bcaf9a .config log report info BUG: soft lockup in filemap_fault
ci-qemu2-arm64 2021/11/09 00:48 upstream e851dfae4371 8ab17e57 .config log report info BUG: soft lockup in filemap_fault
ci-qemu2-arm64 2021/11/02 18:52 upstream cc0356d6a02e 17f3edd2 .config log report info BUG: soft lockup in filemap_fault
* Struck through repros no longer work on HEAD.