syzbot


INFO: rcu detected stall in shmem_fault (2)

Status: upstream: reported on 2024/06/03 20:13
Reported-by: syzbot+cf92cb07cc1063893ed7@syzkaller.appspotmail.com
First crash: 346d, last: 91d
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in shmem_fault (4) kernel 1 867d 867d 0/28 auto-obsoleted due to no activity on 2023/04/08 07:17
upstream INFO: rcu detected stall in shmem_fault mm 13 2250d 2410d 0/28 closed as dup on 2019/01/02 16:58
linux-6.1 INFO: rcu detected stall in shmem_fault 7 278d 343d 0/3 auto-obsoleted due to no activity on 2024/11/18 20:23
upstream INFO: rcu detected stall in shmem_fault (5) cgroups mm 3 637d 657d 23/28 fixed on 2023/10/12 12:48
linux-5.15 INFO: rcu detected stall in shmem_fault 1 622d 622d 0/3 auto-obsoleted due to no activity on 2023/12/11 11:17
upstream INFO: rcu detected stall in shmem_fault (3) fs mm 4 1116d 1116d 0/28 auto-closed as invalid on 2022/06/25 08:10
linux-6.1 INFO: rcu detected stall in shmem_fault (2) 5 55d 150d 0/3 upstream: reported on 2024/12/17 16:40
upstream INFO: rcu detected stall in shmem_fault (2) cgroups mm 1 1990d 1990d 0/28 closed as invalid on 2019/12/04 14:04
upstream INFO: rcu detected stall in shmem_fault (6) mm C 108 2h53m 239d 0/28 upstream: reported C repro on 2024/09/19 14:28

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...0: (1 GPs behind) idle=4b9/1/0x4000000000000000 softirq=25035/25040 fqs=5243 
	(detected by 0, t=10502 jiffies, g=29993, q=1010)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 9647 Comm: syz.7.1147 Not tainted 5.15.178-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
RIP: 0010:__lock_acquire+0x136/0x1ff0 kernel/locking/lockdep.c:4915
Code: 00 00 48 89 6c 24 30 8b 6d 00 48 c7 c0 c0 2f a9 96 48 c1 e8 03 0f b6 04 10 84 c0 0f 85 bf 15 00 00 83 3d 3c 5b 46 15 00 75 09 <83> fd 30 0f 83 d3 13 00 00 44 89 7c 24 2c 44 8b bc 24 d0 00 00 00
RSP: 0018:ffffc90000dd0a60 EFLAGS: 00000046
RAX: 0000000000000004 RBX: ffffffff9037c540 RCX: ffffffff96a92f03
RDX: dffffc0000000000 RSI: 0000000000000000 RDI: ffff88807cc80b00
RBP: 0000000000000002 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001
R13: ffff888064f95940 R14: 0000000000000000 R15: 0000000000000001
FS:  00007f9230acb6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c2450ed CR3: 0000000077770000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623
 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline]
 _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:154
 spin_lock include/linux/spinlock.h:363 [inline]
 advance_sched+0x47/0x940 net/sched/sch_taprio.c:716
 __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:lock_acquire+0x252/0x4f0 kernel/locking/lockdep.c:5627
Code: 2b 00 74 08 4c 89 f7 e8 9c 9e 67 00 f6 44 24 61 02 0f 85 84 01 00 00 41 f7 c7 00 02 00 00 74 01 fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 44 25 00 00 00 00 00 43 c7 44 25 09 00 00 00 00 43 c7 44 25
RSP: 0018:ffffc90003ddf080 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 1ffff920007bbe1c RCX: 1ffff920007bbdbc
RDX: dffffc0000000000 RSI: ffffffff8aab3e20 RDI: ffffffff8af9f2c0
RBP: ffffc90003ddf1e0 R08: dffffc0000000000 R09: fffffbfff2131821
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff920007bbe18
R13: dffffc0000000000 R14: ffffc90003ddf0e0 R15: 0000000000000246
 rcu_lock_acquire+0x20/0x30 include/linux/rcupdate.h:312
 rcu_read_lock include/linux/rcupdate.h:739 [inline]
 percpu_ref_get_many+0x15/0x110 include/linux/percpu-refcount.h:202
 percpu_ref_get include/linux/percpu-refcount.h:222 [inline]
 css_get include/linux/cgroup.h:325 [inline]
 charge_memcg+0x145/0x340 mm/memcontrol.c:6766
 __mem_cgroup_charge+0x23/0x80 mm/memcontrol.c:6798
 mem_cgroup_charge include/linux/memcontrol.h:700 [inline]
 shmem_add_to_page_cache+0xc22/0x17c0 mm/shmem.c:718
 shmem_getpage_gfp+0x1aa1/0x3190 mm/shmem.c:1940
 shmem_fault+0x1d7/0x700 mm/shmem.c:2118
 __do_fault+0x139/0x340 mm/memory.c:3926
 do_read_fault mm/memory.c:4262 [inline]
 do_fault mm/memory.c:4390 [inline]
 handle_pte_fault mm/memory.c:4648 [inline]
 __handle_mm_fault mm/memory.c:4783 [inline]
 handle_mm_fault+0x376f/0x5960 mm/memory.c:4881
 faultin_page mm/gup.c:976 [inline]
 __get_user_pages+0x4ed/0x11d0 mm/gup.c:1197
 populate_vma_page_range+0x215/0x2a0 mm/gup.c:1529
 __mm_populate+0x2a5/0x4a0 mm/gup.c:1638
 mm_populate include/linux/mm.h:2632 [inline]
 vm_mmap_pgoff+0x22b/0x2d0 mm/util.c:556
 ksys_mmap_pgoff+0x13e/0x780 mm/mmap.c:1623
 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:0x7f9232c61de9
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:00007f9230acb038 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007f9232e7afa0 RCX: 00007f9232c61de9
RDX: b635773f06ebbeee RSI: 0000000000b36000 RDI: 0000400000000000
RBP: 00007f9232ce32a0 R08: ffffffffffffffff R09: 0000000000000000
R10: 0000000000008031 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f9232e7afa0 R15: 00007ffed412ade8
 </TASK>

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/02/14 06:45 linux-5.15.y c16c81c81336 d9a046cf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in shmem_fault
2025/02/05 16:19 linux-5.15.y c16c81c81336 4dc70884 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in shmem_fault
2024/12/02 17:59 linux-5.15.y 0a51d2d4527b b499ea68 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in shmem_fault
2024/10/27 20:55 linux-5.15.y 74cdd62cb470 65e8686b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in shmem_fault
2024/09/30 06:12 linux-5.15.y 3a5928702e71 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in shmem_fault
2024/08/23 10:59 linux-5.15.y fa93fa65db6e ce8a9099 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in shmem_fault
2024/07/12 21:11 linux-5.15.y f45bea23c39c eaeb5c15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in shmem_fault
2024/06/03 20:12 linux-5.15.y c61bd26ae81a 0aba2352 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in shmem_fault
2024/09/19 06:48 linux-5.15.y 3a5928702e71 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: rcu detected stall in shmem_fault
* Struck through repros no longer work on HEAD.