syzbot


INFO: rcu detected stall in vm_mmap_pgoff

Status: upstream: reported on 2024/06/22 04:29
Reported-by: syzbot+4b0bbce1d75cb57afd3e@syzkaller.appspotmail.com
First crash: 230d, last: 28d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in vm_mmap_pgoff mm kasan 77 16d 180d 0/28 upstream: reported on 2024/08/11 07:12

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	1-...!: (3 ticks this GP) idle=baec/1/0x4000000000000000 softirq=92704/92704 fqs=22
	(detected by 0, t=10502 jiffies, g=125861, q=338 ncpus=2)
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 19310 Comm: syz.7.3053 Not tainted 6.1.124-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:hlock_class kernel/locking/lockdep.c:228 [inline]
RIP: 0010:lookup_chain_cache_add kernel/locking/lockdep.c:3737 [inline]
RIP: 0010:validate_chain+0x11a/0x5950 kernel/locking/lockdep.c:3793
Code: 04 00 00 81 e3 ff 1f 00 00 48 89 d8 48 c1 e8 06 48 8d 3c c5 60 e2 24 91 be 08 00 00 00 e8 0e d5 76 00 48 0f a3 1d b6 83 b9 0f <72> 25 48 c7 c0 60 51 35 97 48 c1 e8 03 42 0f b6 04 20 84 c0 0f 85
RSP: 0018:ffffc900001e07c0 EFLAGS: 00000057
RAX: 0000000000000001 RBX: 0000000000000061 RCX: ffffffff816b5ea2
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff9124e268
RBP: ffffc900001e0a70 R08: dffffc0000000000 R09: fffffbfff2249c4e
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff88802b160b50 R14: 4b21b045db16ba9e R15: 1ffff1100562c16a
FS:  00007ff805ef16c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8c245452d8 CR3: 000000001ff80000 CR4: 00000000003506e0
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_irq include/linux/spinlock_api_smp.h:119 [inline]
 _raw_spin_lock_irq+0xcf/0x110 kernel/locking/spinlock.c:170
 __run_hrtimer kernel/time/hrtimer.c:1693 [inline]
 __hrtimer_run_queues+0x6d3/0xe50 kernel/time/hrtimer.c:1753
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1815
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1107 [inline]
 __sysvec_apic_timer_interrupt+0x158/0x5b0 arch/x86/kernel/apic/apic.c:1124
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline]
 sysvec_apic_timer_interrupt+0x9b/0xc0 arch/x86/kernel/apic/apic.c:1118
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691
RIP: 0010:mm_counter_file+0x102/0x2c0
Code: 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 f7 e8 f5 e7 14 00 49 8b 1e 81 e3 00 00 08 00 31 ff 48 89 de e8 a2 55 bd ff 48 c1 eb 13 <8d> 04 5b 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 ab 51 bd ff 48 ff cb
RSP: 0018:ffffc90005f9f6a8 EFLAGS: 00000202
RAX: 0000000000000002 RBX: 0000000000000001 RCX: ffff88802b160000
RDX: 0000000000000000 RSI: 0000000000080000 RDI: 0000000000000000
RBP: ffffc90005f9f7b0 R08: ffffffff81cd4a3e R09: fffff940002650e9
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffffd40002650e9 R14: ffffea0001328740 R15: ffffea0001328748
 do_set_pte+0x2fe/0x590 mm/memory.c:4421
 finish_fault+0x922/0xa30 mm/memory.c:4497
 do_read_fault mm/memory.c:4633 [inline]
 do_fault mm/memory.c:4758 [inline]
 handle_pte_fault mm/memory.c:5029 [inline]
 __handle_mm_fault mm/memory.c:5171 [inline]
 handle_mm_fault+0x3436/0x5340 mm/memory.c:5292
 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:2801 [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:0x7ff805185d29
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:00007ff805ef1038 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007ff805375fa0 RCX: 00007ff805185d29
RDX: b635773f06ebbeee RSI: 0000000000b36000 RDI: 0000000020000000
RBP: 00007ff805201b08 R08: ffffffffffffffff R09: 0000000000000000
R10: 0000000000008031 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007ff805375fa0 R15: 00007ffdd0f1f818
 </TASK>
rcu: rcu_preempt kthread starved for 10458 jiffies! g125861 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=0
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:R  running task     stack:26136 pid:16    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5241 [inline]
 __schedule+0x143f/0x4570 kernel/sched/core.c:6558
 schedule+0xbf/0x180 kernel/sched/core.c:6634
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1965
 rcu_gp_fqs_loop+0x2d2/0x1150 kernel/rcu/tree.c:1706
 rcu_gp_kthread+0xa3/0x3b0 kernel/rcu/tree.c:1905
 kthread+0x28d/0x320 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 0 PID: 19320 Comm: syz.2.3058 Not tainted 6.1.124-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:csd_lock_wait kernel/smp.c:424 [inline]
RIP: 0010:smp_call_function_many_cond+0x1fae/0x3460 kernel/smp.c:998
Code: 2f 44 89 ee 83 e6 01 31 ff e8 0e 44 0b 00 41 83 e5 01 49 bd 00 00 00 00 00 fc ff df 75 0a e8 99 40 0b 00 e9 1b ff ff ff f3 90 <42> 0f b6 04 2b 84 c0 75 14 41 f7 07 01 00 00 00 0f 84 fe fe ff ff
RSP: 0018:ffffc90005f77240 EFLAGS: 00000246
RAX: ffffffff817f5b89 RBX: 1ffff110171e81b1 RCX: 0000000000080000
RDX: ffffc9000e441000 RSI: 000000000007ffff RDI: 0000000000080000
RBP: ffffc90005f77620 R08: ffffffff817f5b52 R09: fffffbfff2249c4d
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000800000000
R13: dffffc0000000000 R14: 0000000000000001 R15: ffff8880b8f40d88
FS:  00007ffb3e69f6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2ee1fffc CR3: 00000000588f8000 CR4: 00000000003506f0
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 on_each_cpu_cond_mask+0x3b/0x80 kernel/smp.c:1166
 on_each_cpu include/linux/smp.h:71 [inline]
 text_poke_sync arch/x86/kernel/alternative.c:1334 [inline]
 text_poke_bp_batch+0x2bb/0x940 arch/x86/kernel/alternative.c:1534
 text_poke_bp+0xc8/0x140 arch/x86/kernel/alternative.c:1771
 __static_call_transform+0x333/0x560 arch/x86/kernel/static_call.c:109
 arch_static_call_transform+0xcc/0x270 arch/x86/kernel/static_call.c:161
 __static_call_update+0xd4/0x5d0 kernel/static_call_inline.c:136
 tracepoint_update_call kernel/tracepoint.c:317 [inline]
 tracepoint_add_func+0x90c/0x9d0 kernel/tracepoint.c:358
 tracepoint_probe_register_prio_may_exist+0x11e/0x190 kernel/tracepoint.c:482
 bpf_raw_tp_link_attach+0x456/0x6b0 kernel/bpf/syscall.c:3392
 bpf_raw_tracepoint_open+0x196/0x210 kernel/bpf/syscall.c:3419
 __sys_bpf+0x4a7/0x6c0 kernel/bpf/syscall.c:5067
 __do_sys_bpf kernel/bpf/syscall.c:5129 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5127 [inline]
 __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:5127
 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:0x7ffb3d785d29
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:00007ffb3e69f038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007ffb3d975fa0 RCX: 00007ffb3d785d29
RDX: 0000000000000010 RSI: 0000000020000100 RDI: 0000000000000011
RBP: 00007ffb3d801b08 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007ffb3d975fa0 R15: 00007ffc86f07138
 </TASK>

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/01/09 23:16 linux-6.1.y c63962be84ef 9220929f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in vm_mmap_pgoff
2024/12/16 14:36 linux-6.1.y 52f863f820fd eec85da6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in vm_mmap_pgoff
2024/11/22 01:30 linux-6.1.y b67dc5c9ade9 4b25d554 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in vm_mmap_pgoff
2024/10/08 22:40 linux-6.1.y aa4cd140bba5 402f1df0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in vm_mmap_pgoff
2024/09/23 21:57 linux-6.1.y e526b12bf916 89298aad .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in vm_mmap_pgoff
2024/09/17 12:59 linux-6.1.y 5f55cad62cc9 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in vm_mmap_pgoff
2024/07/29 20:34 linux-6.1.y c1cec4dad96b 5187fc86 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in vm_mmap_pgoff
2024/07/20 22:47 linux-6.1.y 9b3f9a5b12dc b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in vm_mmap_pgoff
2024/06/24 06:53 linux-6.1.y eb44d83053d6 edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in vm_mmap_pgoff
2024/06/22 04:28 linux-6.1.y eb44d83053d6 edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in vm_mmap_pgoff
* Struck through repros no longer work on HEAD.