syzbot


INFO: rcu detected stall in mmap_pgoff (2)

Status: upstream: reported on 2024/07/04 06:23
Reported-by: syzbot+de84462faf002a8c8dcf@syzkaller.appspotmail.com
First crash: 230d, last: 24d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in mmap_pgoff (6) fs 6 153d 249d 0/28 auto-obsoleted due to no activity on 2024/12/18 09:17
upstream INFO: rcu detected stall in mmap_pgoff (5) mm fs 2 573d 602d 0/28 auto-obsoleted due to no activity on 2023/10/25 16:56
linux-4.19 INFO: rcu detected stall in mmap_pgoff syz error 2 1400d 1469d 0/1 upstream: reported syz repro on 2021/02/11 18:33
linux-5.15 INFO: rcu detected stall in mmap_pgoff 1 498d 498d 0/3 auto-obsoleted due to no activity on 2024/01/17 20:08
upstream INFO: rcu detected stall in mmap_pgoff (4) mm 1 700d 700d 0/28 auto-obsoleted due to no activity on 2023/05/21 07:37
upstream INFO: rcu detected stall in mmap_pgoff crypto 3 1193d 1201d 0/28 closed as invalid on 2022/02/08 10:00
upstream INFO: rcu detected stall in mmap_pgoff (3) mm 1 891d 891d 0/28 auto-obsoleted due to no activity on 2022/12/11 19:43
upstream INFO: rcu detected stall in mmap_pgoff (2) kernel 1 1089d 1089d 0/28 auto-closed as invalid on 2022/05/26 19:52

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P4237/1:b..l P14297/1:b..l
	(detected by 1, t=10502 jiffies, g=59397, q=183)
task:syz.8.2519      state:R  running task     stack:23896 pid:14297 ppid: 12134 flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5027 [inline]
 __schedule+0x12c4/0x45b0 kernel/sched/core.c:6373
 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6777
 irqentry_exit+0x53/0x80 kernel/entry/common.c:432
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:lock_is_held_type+0x137/0x180
Code: 75 40 48 c7 04 24 00 00 00 00 9c 8f 04 24 f7 04 24 00 02 00 00 75 46 41 f7 c4 00 02 00 00 74 01 fb 65 48 8b 04 25 28 00 00 00 <48> 3b 44 24 08 75 3c 89 e8 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f
RSP: 0018:ffffc9000360f540 EFLAGS: 00000206
RAX: aad15cf678f4e800 RBX: 0000000000000002 RCX: ffff88802c5ebb80
RDX: ffff88802c5ebb80 RSI: ffffffff8aab3e20 RDI: ffffffff8af9f2c0
RBP: 0000000000000000 R08: ffffffff843aadd3 R09: ffffffff843b266c
R10: 0000000000000002 R11: ffff88802c5ebb80 R12: 0000000000000246
R13: ffff88802c5ebb80 R14: 00000000ffffffff R15: ffff88807d117360
 lock_is_held include/linux/lockdep.h:287 [inline]
 xa_head include/linux/xarray.h:1166 [inline]
 xas_start+0x21c/0x7b0 lib/xarray.c:188
 xas_load lib/xarray.c:233 [inline]
 xas_find+0x173/0xaa0 lib/xarray.c:1249
 first_map_page mm/filemap.c:3288 [inline]
 filemap_map_pages+0x2bd/0x15c0 mm/filemap.c:3314
 do_fault_around mm/memory.c:4241 [inline]
 do_read_fault mm/memory.c:4256 [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+0x341b/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:0x7f8ced4c7d29
RSP: 002b:00007f8ceb2ef038 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007f8ced6e1160 RCX: 00007f8ced4c7d29
RDX: b635773f06ebbeee RSI: 0000000000b36000 RDI: 0000000020000000
RBP: 00007f8ced5492a0 R08: ffffffffffffffff R09: 0000000000000000
R10: 0000000000008031 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f8ced6e1160 R15: 00007ffef605ec28
 </TASK>
task:kworker/u4:5    state:R  running task     stack:20984 pid: 4237 ppid:     2 flags:0x00004000
Workqueue: bat_events batadv_nc_worker
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5027 [inline]
 __schedule+0x12c4/0x45b0 kernel/sched/core.c:6373
 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6777
 irqentry_exit+0x53/0x80 kernel/entry/common.c:432
 asm_sysvec_reschedule_ipi+0x16/0x20 arch/x86/include/asm/idtentry.h:681
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:ffffc900031afa80 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 1ffff92000635f5c RCX: 1ffff92000635efc
RDX: dffffc0000000000 RSI: ffffffff8aab3e20 RDI: ffffffff8af9f2c0
RBP: ffffc900031afbd8 R08: dffffc0000000000 R09: fffffbfff2131821
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000635f58
R13: dffffc0000000000 R14: ffffc900031afae0 R15: 0000000000000246
 rcu_lock_acquire+0x2a/0x30 include/linux/rcupdate.h:312
 rcu_read_lock include/linux/rcupdate.h:739 [inline]
 batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:412 [inline]
 batadv_nc_worker+0xc1/0x5b0 net/batman-adv/network-coding.c:723
 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
 kthread+0x3f6/0x4f0 kernel/kthread.c:334
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
 </TASK>
rcu: rcu_preempt kthread starved for 10542 jiffies! g59397 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:I stack:27064 pid:   15 ppid:     2 flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5027 [inline]
 __schedule+0x12c4/0x45b0 kernel/sched/core.c:6373
 schedule+0x11b/0x1f0 kernel/sched/core.c:6456
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1914
 rcu_gp_fqs_loop+0x2bf/0x1080 kernel/rcu/tree.c:1972
 rcu_gp_kthread+0xa4/0x360 kernel/rcu/tree.c:2145
 kthread+0x3f6/0x4f0 kernel/kthread.c:334
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 3838 Comm: dhcpcd Not tainted 5.15.177-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
RIP: 0010:__lock_acquire+0x415/0x1ff0 kernel/locking/lockdep.c:4952
Code: 5c 13 00 00 31 c0 83 3f 00 0f 95 c0 09 c3 c1 e3 0d 44 09 e3 8b 44 24 60 c1 e0 0f 0f b7 c0 09 d8 8b 74 24 54 83 e6 03 c1 e6 10 <09> c6 8b 44 24 2c 83 e0 01 c1 e0 12 31 c9 83 7c 24 70 00 0f 95 c1
RSP: 0018:ffffc9000359f460 EFLAGS: 00000046
RAX: 000000000000059c RBX: 000000000000059c RCX: ffff88802870e414
RDX: dffffc0000000000 RSI: 0000000000000000 RDI: ffff88802870e414
RBP: ffff88802870d940 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000000 R11: dffffc0000000001 R12: 000000000000059c
R13: 0000000000000005 R14: 1ffff110050e1c8f R15: 0000000000000000
FS:  00007fc8850d4740(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055a5f5ac8078 CR3: 00000000249c4000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 lock_acquire+0x1db/0x4f0 kernel/locking/lockdep.c:5623
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline]
 _raw_spin_lock_irqsave+0xd1/0x120 kernel/locking/spinlock.c:162
 __wake_up_common_lock kernel/sched/wait.c:137 [inline]
 __wake_up_sync_key+0xf5/0x1c0 kernel/sched/wait.c:205
 sock_def_readable+0x135/0x240 net/core/sock.c:3095
 unix_dgram_sendmsg+0x15fc/0x2090 net/unix/af_unix.c:1935
 sock_sendmsg_nosec net/socket.c:704 [inline]
 __sock_sendmsg net/socket.c:716 [inline]
 sock_write_iter+0x39b/0x530 net/socket.c:1079
 do_iter_readv_writev+0x594/0x7a0
 do_iter_write+0x1e6/0x760 fs/read_write.c:855
 vfs_writev fs/read_write.c:928 [inline]
 do_writev+0x281/0x470 fs/read_write.c:971
 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:0x7fc8851a2e03
Code: 89 c7 48 89 44 24 08 e8 6a f2 f9 ff 48 8b 44 24 08 48 83 c4 28 c3 c3 64 8b 04 25 18 00 00 00 85 c0 75 20 b8 14 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 6d 48 8b 15 f6 5f 0d 00 f7 d8 64 89 02 48 83
RSP: 002b:00007ffd8ecea838 EFLAGS: 00000246 ORIG_RAX: 0000000000000014
RAX: ffffffffffffffda RBX: 00007ffd8eceab78 RCX: 00007fc8851a2e03
RDX: 0000000000000005 RSI: 00007ffd8ecea850 RDI: 000000000000000a
RBP: 0000000000004801 R08: 000000000000000a R09: 00007ffd8ecea890
R10: 00007ffd8ecea898 R11: 0000000000000246 R12: 000055a5f5aa8810
R13: 000055a5da496f88 R14: 00000000ffffffff R15: 000055a5f5ce3650
 </TASK>

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/01/26 07:06 linux-5.15.y 003148680b79 9fbd772e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in mmap_pgoff
2024/12/19 09:47 linux-5.15.y 963e654022cc 1432fc84 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in mmap_pgoff
2024/11/22 19:30 linux-5.15.y 0a51d2d4527b 4b25d554 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in mmap_pgoff
2024/10/29 23:24 linux-5.15.y 74cdd62cb470 66aeb999 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in mmap_pgoff
2024/08/28 05:11 linux-5.15.y fa93fa65db6e 6c853ff9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in mmap_pgoff
2024/07/04 06:22 linux-5.15.y 4878aadf2d15 f76a75f3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in mmap_pgoff
* Struck through repros no longer work on HEAD.