syzbot


INFO: rcu detected stall in shmem_fault

Status: upstream: reported on 2024/06/07 10:17
Reported-by: syzbot+04d977c0209629383d45@syzkaller.appspotmail.com
First crash: 11d, last: 1d08h
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in shmem_fault (4) kernel 1 535d 535d 0/27 auto-obsoleted due to no activity on 2023/04/08 07:17
linux-5.15 INFO: rcu detected stall in shmem_fault (2) 1 14d 14d 0/3 upstream: reported on 2024/06/03 20:13
upstream INFO: rcu detected stall in shmem_fault mm 13 1918d 2078d 0/27 closed as dup on 2019/01/02 16:58
upstream INFO: rcu detected stall in shmem_fault (5) cgroups mm 3 305d 325d 23/27 fixed on 2023/10/12 12:48
linux-5.15 INFO: rcu detected stall in shmem_fault 1 290d 290d 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 784d 784d 0/27 auto-closed as invalid on 2022/06/25 08:10
upstream INFO: rcu detected stall in shmem_fault (2) cgroups mm 1 1658d 1658d 0/27 closed as invalid on 2019/12/04 14:04

Sample crash report:
rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { 0-...D } 2636 jiffies s: 26709 root: 0x1/.
rcu: blocking rcu_node structures (internal RCU debug):
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 9096 Comm: syz-executor.3 Not tainted 6.1.94-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
RIP: 0010:validate_chain+0x35/0x5950 kernel/locking/lockdep.c:3781
Code: 54 53 48 83 e4 e0 48 81 ec 80 02 00 00 49 89 ce 89 54 24 60 48 89 7c 24 78 65 48 8b 04 25 28 00 00 00 48 89 84 24 60 02 00 00 <49> bc 00 00 00 00 00 fc ff df 48 c7 84 24 00 01 00 00 b3 8a b5 41
RSP: 0018:ffffc90000007720 EFLAGS: 00000082
RAX: 5c6a8bc7280af100 RBX: ffffffff90193160 RCX: 2e4489edb596d9f6
RDX: 0000000000000000 RSI: ffff8880173f0b30 RDI: ffff8880173f0000
RBP: ffffc900000079d0 R08: dffffc0000000000 R09: fffffbfff2093a45
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880173f0ad8
R13: ffff8880173f0000 R14: 2e4489edb596d9f6 R15: 1ffff11002e7e16a
FS:  00007f76a2cd86c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2fc2e000 CR3: 000000001b892000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 000000000000bbca DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 __lock_acquire+0x125b/0x1f80 kernel/locking/lockdep.c:5049
 lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162
 debug_object_activate+0x68/0x4e0 lib/debugobjects.c:697
 debug_hrtimer_activate kernel/time/hrtimer.c:420 [inline]
 debug_activate kernel/time/hrtimer.c:475 [inline]
 enqueue_hrtimer+0x30/0x410 kernel/time/hrtimer.c:1084
 __run_hrtimer kernel/time/hrtimer.c:1703 [inline]
 __hrtimer_run_queues+0x728/0xe50 kernel/time/hrtimer.c:1750
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1812
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline]
 __sysvec_apic_timer_interrupt+0x156/0x580 arch/x86/kernel/apic/apic.c:1112
 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1106
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653
RIP: 0010:__raw_spin_unlock_irq include/linux/spinlock_api_smp.h:160 [inline]
RIP: 0010:_raw_spin_unlock_irq+0x25/0x40 kernel/locking/spinlock.c:202
Code: b1 bc f5 ff 90 53 48 89 fb 48 83 c7 18 48 8b 74 24 08 e8 7e 2f d5 f6 48 89 df e8 e6 6c d6 f6 e8 01 f9 fb f6 fb bf 01 00 00 00 <e8> 56 05 c9 f6 65 8b 05 47 12 6d 75 85 c0 74 02 5b c3 e8 f4 35 6b
RSP: 0018:ffffc900031bf3b0 EFLAGS: 00000282
RAX: 5c6a8bc7280af100 RBX: ffff888056fcf510 RCX: ffffffff816ad40a
RDX: dffffc0000000000 RSI: ffffffff8aec0240 RDI: 0000000000000001
RBP: ffffc900031bf530 R08: dffffc0000000000 R09: fffffbfff2093a4b
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000cc0
R13: ffffc900031bf498 R14: ffffea0001468640 R15: 0000000000000000
 spin_unlock_irq include/linux/spinlock.h:401 [inline]
 shmem_add_to_page_cache+0xc5b/0x1e60 mm/shmem.c:740
 shmem_get_folio_gfp+0x164e/0x3470 mm/shmem.c:1971
 shmem_fault+0x235/0x9c0 mm/shmem.c:2156
 __do_fault+0x136/0x4f0 mm/memory.c:4261
 do_read_fault mm/memory.c:4612 [inline]
 do_fault mm/memory.c:4741 [inline]
 handle_pte_fault mm/memory.c:5013 [inline]
 __handle_mm_fault mm/memory.c:5155 [inline]
 handle_mm_fault+0x3412/0x5340 mm/memory.c:5276
 faultin_page mm/gup.c:1009 [inline]
 __get_user_pages+0x4f3/0x1190 mm/gup.c:1233
 populate_vma_page_range+0x217/0x2b0 mm/gup.c:1590
 __mm_populate+0x275/0x440 mm/gup.c:1704
 mm_populate include/linux/mm.h:2797 [inline]
 vm_mmap_pgoff+0x22b/0x2d0 mm/util.c:525
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f76a1e7cea9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f76a2cd80c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007f76a1fb3f80 RCX: 00007f76a1e7cea9
RDX: b635773f06ebbeee RSI: 0000000000b36000 RDI: 0000000020000000
RBP: 00007f76a1eebff4 R08: ffffffffffffffff R09: 0000000000000000
R10: 0000000000008031 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f76a1fb3f80 R15: 00007fffe68fa578
 </TASK>

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/17 04:32 linux-6.1.y eb44d83053d6 f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in shmem_fault
2024/06/11 01:45 linux-6.1.y 88690811da69 048c640a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in shmem_fault
2024/06/08 09:03 linux-6.1.y 88690811da69 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in shmem_fault
2024/06/07 10:16 linux-6.1.y 88690811da69 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in shmem_fault
* Struck through repros no longer work on HEAD.