syzbot


INFO: rcu detected stall in mmap_pgoff (6)

Status: auto-obsoleted due to no activity on 2024/12/18 09:17
Subsystems: fs
[Documentation on labels]
First crash: 219d, last: 123d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in mmap_pgoff (5) mm fs 2 543d 573d 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 1370d 1439d 0/1 upstream: reported syz repro on 2021/02/11 18:33
linux-5.15 INFO: rcu detected stall in mmap_pgoff 1 469d 469d 0/3 auto-obsoleted due to no activity on 2024/01/17 20:08
linux-5.15 INFO: rcu detected stall in mmap_pgoff (2) 5 32d 200d 0/3 upstream: reported on 2024/07/04 06:23
upstream INFO: rcu detected stall in mmap_pgoff (4) mm 1 670d 670d 0/28 auto-obsoleted due to no activity on 2023/05/21 07:37
upstream INFO: rcu detected stall in mmap_pgoff crypto 3 1163d 1171d 0/28 closed as invalid on 2022/02/08 10:00
upstream INFO: rcu detected stall in mmap_pgoff (3) mm 1 861d 861d 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 1060d 1060d 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): P8713/1:b..l P8411/1:b..l P5230/1:b..l P4677/1:b..l
rcu: 	(detected by 1, t=10502 jiffies, g=35997, q=634 ncpus=2)
task:udevd           state:R  running task     stack:21664 pid:4677  tgid:4677  ppid:1      flags:0x00000002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5188 [inline]
 __schedule+0x17ae/0x4a10 kernel/sched/core.c:6529
 preempt_schedule_common+0x84/0xd0 kernel/sched/core.c:6708
 preempt_schedule+0xe1/0xf0 kernel/sched/core.c:6732
 preempt_schedule_thunk+0x1a/0x30 arch/x86/entry/thunk.S:12
 __raw_spin_unlock include/linux/spinlock_api_smp.h:143 [inline]
 _raw_spin_unlock+0x3e/0x50 kernel/locking/spinlock.c:186
 fast_dput+0x1e1/0x420
 dput+0xe8/0x2b0 fs/dcache.c:851
 step_into+0x355/0x1080 fs/namei.c:1906
 walk_component fs/namei.c:2059 [inline]
 link_path_walk+0x7b7/0xea0 fs/namei.c:2418
 path_openat+0x266/0x3590 fs/namei.c:3929
 do_filp_open+0x235/0x490 fs/namei.c:3960
 do_sys_openat2+0x13e/0x1d0 fs/open.c:1415
 do_sys_open fs/open.c:1430 [inline]
 __do_sys_openat fs/open.c:1446 [inline]
 __se_sys_openat fs/open.c:1441 [inline]
 __x64_sys_openat+0x247/0x2a0 fs/open.c:1441
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f8cdcd9f9a4
RSP: 002b:00007ffdb799f5c0 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f8cdcd9f9a4
RDX: 0000000000080141 RSI: 00005584befa80d8 RDI: 00000000ffffff9c
RBP: 00005584befa80d8 R08: 00000000ffffffff R09: 0000000000000000
R10: 00000000000001a4 R11: 0000000000000246 R12: 0000000000080141
R13: ffffffffffffffff R14: 00000000ffffffff R15: 00000000ffffffff
 </TASK>
task:syz-executor    state:R  running task     stack:20888 pid:5230  tgid:5230  ppid:5217   flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5188 [inline]
 __schedule+0x17ae/0x4a10 kernel/sched/core.c:6529
 preempt_schedule_common+0x84/0xd0 kernel/sched/core.c:6708
 preempt_schedule+0xe1/0xf0 kernel/sched/core.c:6732
 preempt_schedule_thunk+0x1a/0x30 arch/x86/entry/thunk.S:12
 __raw_spin_unlock include/linux/spinlock_api_smp.h:143 [inline]
 _raw_spin_unlock+0x3e/0x50 kernel/locking/spinlock.c:186
 spin_unlock include/linux/spinlock.h:391 [inline]
 copy_pte_range mm/memory.c:1191 [inline]
 copy_pmd_range+0x7ad5/0x8500 mm/memory.c:1252
 copy_pud_range mm/memory.c:1289 [inline]
 copy_p4d_range mm/memory.c:1313 [inline]
 copy_page_range+0x99f/0xe90 mm/memory.c:1411
 dup_mmap kernel/fork.c:749 [inline]
 dup_mm kernel/fork.c:1672 [inline]
 copy_mm+0x11e2/0x1f30 kernel/fork.c:1721
 copy_process+0x1854/0x3d80 kernel/fork.c:2373
 kernel_clone+0x223/0x880 kernel/fork.c:2780
 __do_sys_clone kernel/fork.c:2923 [inline]
 __se_sys_clone kernel/fork.c:2907 [inline]
 __x64_sys_clone+0x258/0x2a0 kernel/fork.c:2907
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f4dfd174753
RSP: 002b:00007ffc9a010928 EFLAGS: 00000246 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f4dfd174753
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011
RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000001
R10: 00005555824ae7d0 R11: 0000000000000246 R12: 0000000000000000
R13: 00000000000525a3 R14: 0000000000052434 R15: 00007ffc9a010ab0
 </TASK>
task:syz-executor    state:R  running task     stack:20208 pid:8411  tgid:8411  ppid:8400   flags:0x00004002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5188 [inline]
 __schedule+0x17ae/0x4a10 kernel/sched/core.c:6529
 preempt_schedule_common+0x84/0xd0 kernel/sched/core.c:6708
 preempt_schedule+0xe1/0xf0 kernel/sched/core.c:6732
 preempt_schedule_thunk+0x1a/0x30 arch/x86/entry/thunk.S:12
 vprintk_emit+0x84c/0xa10 kernel/printk/printk.c:2408
 _printk+0xd5/0x120 kernel/printk/printk.c:2432
 batadv_check_known_mac_addr+0x2b1/0x410 net/batman-adv/hard-interface.c:526
 batadv_hard_if_event+0x3a5/0x1620 net/batman-adv/hard-interface.c:998
 notifier_call_chain+0x19f/0x3e0 kernel/notifier.c:93
 call_netdevice_notifiers_extack net/core/dev.c:2034 [inline]
 call_netdevice_notifiers net/core/dev.c:2048 [inline]
 dev_set_mac_address+0x3d9/0x510 net/core/dev.c:9100
 dev_set_mac_address_user+0x31/0x50 net/core/dev.c:9114
 do_setlink+0x8b6/0x41f0 net/core/rtnetlink.c:2855
 __rtnl_newlink net/core/rtnetlink.c:3696 [inline]
 rtnl_newlink+0x180d/0x20a0 net/core/rtnetlink.c:3743
 rtnetlink_rcv_msg+0x73f/0xcf0 net/core/rtnetlink.c:6646
 netlink_rcv_skb+0x1e3/0x430 net/netlink/af_netlink.c:2550
 netlink_unicast_kernel net/netlink/af_netlink.c:1331 [inline]
 netlink_unicast+0x7f6/0x990 net/netlink/af_netlink.c:1357
 netlink_sendmsg+0x8e4/0xcb0 net/netlink/af_netlink.c:1901
 sock_sendmsg_nosec net/socket.c:730 [inline]
 __sock_sendmsg+0x221/0x270 net/socket.c:745
 __sys_sendto+0x398/0x4f0 net/socket.c:2210
 __do_sys_sendto net/socket.c:2222 [inline]
 __se_sys_sendto net/socket.c:2218 [inline]
 __x64_sys_sendto+0xde/0x100 net/socket.c:2218
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f212117fd8c
RSP: 002b:00007ffd228da300 EFLAGS: 00000293 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 00007f2121e64620 RCX: 00007f212117fd8c
RDX: 000000000000002c RSI: 00007f2121e64670 RDI: 0000000000000003
RBP: 0000000000000000 R08: 00007ffd228da354 R09: 000000000000000c
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000003
R13: 0000000000000000 R14: 00007f2121e64670 R15: 0000000000000000
 </TASK>
task:rm              state:R  running task     stack:24992 pid:8713  tgid:8713  ppid:8686   flags:0x00000000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5188 [inline]
 __schedule+0x17ae/0x4a10 kernel/sched/core.c:6529
 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:6851
 irqentry_exit+0x5e/0x90 kernel/entry/common.c:354
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:lock_acquire+0x264/0x550 kernel/locking/lockdep.c:5826
Code: 2b 00 74 08 4c 89 f7 e8 0a 56 88 00 f6 44 24 61 02 0f 85 85 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:ffffc90003ca7ce0 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 1ffff92000794fa8 RCX: af2fd8a314874800
RDX: dffffc0000000000 RSI: ffffffff8c0aea80 RDI: ffffffff8c5fea80
RBP: ffffc90003ca7e28 R08: ffffffff94211887 R09: 1ffffffff2842310
R10: dffffc0000000000 R11: fffffbfff2842311 R12: 1ffff92000794fa4
R13: dffffc0000000000 R14: ffffc90003ca7d40 R15: 0000000000000246
 rcu_lock_acquire include/linux/rcupdate.h:337 [inline]
 rcu_read_lock include/linux/rcupdate.h:849 [inline]
 __fget_files+0x4a/0x470 fs/file.c:1031
 ksys_mmap_pgoff+0x23b/0x720 mm/mmap.c:1485
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f20451bcb74
RSP: 002b:00007ffef5bc10a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000009
RAX: ffffffffffffffda RBX: 00007ffef5bc1120 RCX: 00007f20451bcb74
RDX: 0000000000000001 RSI: 0000000000028000 RDI: 00007f204516d000
RBP: 00007ffef5bc1410 R08: 0000000000000003 R09: 0000000000097000
R10: 0000000000000812 R11: 0000000000000246 R12: 00007f20451990c0
R13: 00007ffef5bc1498 R14: 0000000000096066 R15: 0000000000000000
 </TASK>
rcu: rcu_preempt kthread starved for 10628 jiffies! g35997 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=1
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:25552 pid:17    tgid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5188 [inline]
 __schedule+0x17ae/0x4a10 kernel/sched/core.c:6529
 __schedule_loop kernel/sched/core.c:6606 [inline]
 schedule+0x14b/0x320 kernel/sched/core.c:6621
 schedule_timeout+0x1be/0x310 kernel/time/timer.c:2615
 rcu_gp_fqs_loop+0x2df/0x1330 kernel/rcu/tree.c:2045
 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:2247
 kthread+0x2f0/0x390 kernel/kthread.c:389
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 1 UID: 0 PID: 0 Comm: swapper/1 Not tainted 6.11.0-syzkaller-05319-g4a39ac5b7d62 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:native_irq_disable arch/x86/include/asm/irqflags.h:37 [inline]
RIP: 0010:arch_local_irq_disable arch/x86/include/asm/irqflags.h:92 [inline]
RIP: 0010:acpi_safe_halt+0x21/0x30 drivers/acpi/processor_idle.c:112
Code: 90 90 90 90 90 90 90 90 90 65 48 8b 04 25 80 d6 03 00 48 f7 00 08 00 00 00 75 10 66 90 0f 00 2d 25 f9 b3 00 f3 0f 1e fa fb f4 <fa> c3 cc cc cc cc 66 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90
RSP: 0018:ffffc900001a7d08 EFLAGS: 00000246
RAX: ffff88801d6f8000 RBX: ffff8881412e7864 RCX: 0000000000daa599
RDX: 0000000000000001 RSI: ffff8881412e7800 RDI: ffff8881412e7864
RBP: 000000000003a878 R08: ffff8880b8937e9b R09: 1ffff11017126fd3
R10: dffffc0000000000 R11: ffffffff8bb5ac70 R12: ffff8881482e9000
R13: 0000000000000001 R14: 0000000000000001 R15: ffffffff8f10b6a0
FS:  0000000000000000(0000) GS:ffff8880b8900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000110c28f8cf CR3: 0000000062fb0000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 acpi_idle_enter+0xe4/0x140 drivers/acpi/processor_idle.c:702
 cpuidle_enter_state+0x109/0x470 drivers/cpuidle/cpuidle.c:264
 cpuidle_enter+0x5d/0xa0 drivers/cpuidle/cpuidle.c:385
 call_cpuidle kernel/sched/idle.c:155 [inline]
 cpuidle_idle_call kernel/sched/idle.c:230 [inline]
 do_idle+0x375/0x5d0 kernel/sched/idle.c:326
 cpu_startup_entry+0x42/0x60 kernel/sched/idle.c:424
 start_secondary+0x102/0x110 arch/x86/kernel/smpboot.c:313
 common_startup_64+0x13e/0x147
 </TASK>

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/19 09:14 upstream 4a39ac5b7d62 c673ca06 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in mmap_pgoff
2024/07/28 01:51 upstream 3a7e02c040b1 46eb10b7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in mmap_pgoff
2024/07/04 21:46 upstream 795c58e4c7fc dc6bbff0 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in mmap_pgoff
2024/06/24 08:15 upstream 7c16f0a4ed1c edc5149a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: rcu detected stall in mmap_pgoff
2024/06/15 17:43 upstream 2ccbdf43d5e7 f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in mmap_pgoff
2024/06/26 07:44 linux-next 62c97045b8f7 dec8bc94 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: rcu detected stall in mmap_pgoff
* Struck through repros no longer work on HEAD.