syzbot


INFO: rcu detected stall in sys_process_vm_readv

Status: auto-obsoleted due to no activity on 2024/03/02 07:32
Reported-by: syzbot+d8060c38208df4d1ae9a@syzkaller.appspotmail.com
First crash: 409d, last: 366d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_process_vm_readv (2) mm 1 804d 804d 0/28 auto-obsoleted due to no activity on 2022/12/09 23:02
upstream INFO: rcu detected stall in sys_process_vm_readv (3) mm cgroups 6 338d 514d 0/28 auto-obsoleted due to no activity on 2024/03/20 00:08
linux-5.15 INFO: rcu detected stall in sys_process_vm_readv (2) 4 53d 106d 0/3 upstream: reported on 2024/08/08 22:49
linux-6.1 INFO: rcu detected stall in sys_process_vm_readv 2 125d 138d 0/3 auto-obsoleted due to no activity on 2024/10/28 22:50
upstream INFO: rcu detected stall in sys_process_vm_readv cgroups mm 1 942d 942d 0/28 auto-closed as invalid on 2022/06/24 21:29

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P30687/1:b..l
	(detected by 1, t=10502 jiffies, g=132189, q=54)
task:syz-executor.0  state:R  running task     stack:25432 pid:30687 ppid:  3536 flags:0x00004002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5030 [inline]
 __schedule+0x12c4/0x45b0 kernel/sched/core.c:6376
 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6780
 irqentry_exit+0x53/0x80 kernel/entry/common.c:426
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:lock_acquire+0xd/0x4f0 kernel/locking/lockdep.c:5590
Code: 5c 67 00 e9 a2 fd ff ff 0f 1f 44 00 00 65 8b 05 11 f2 9f 7e a9 00 ff ff 00 0f 95 c0 c3 55 48 89 e5 41 57 41 56 41 55 41 54 53 <48> 83 e4 e0 48 81 ec 20 01 00 00 4c 89 4c 24 28 4c 89 44 24 38 48
RSP: 0018:ffffc9000332f3b8 EFLAGS: 00000246
RAX: 0000000000000001 RBX: ffff888078ce8010 RCX: 0000000000000002
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8c91f060
RBP: ffffc9000332f3e0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001
R13: ffffea0000c14f80 R14: 0000000000000001 R15: dffffc0000000000
 rcu_lock_acquire+0x20/0x30 include/linux/rcupdate.h:269
 rcu_read_lock include/linux/rcupdate.h:696 [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:6745
 __mem_cgroup_charge+0x23/0x80 mm/memcontrol.c:6777
 mem_cgroup_charge include/linux/memcontrol.h:700 [inline]
 wp_page_copy+0x3e7/0x2070 mm/memory.c:3048
 handle_pte_fault mm/memory.c:4639 [inline]
 __handle_mm_fault mm/memory.c:4756 [inline]
 handle_mm_fault+0x2a3d/0x5950 mm/memory.c:4854
 do_user_addr_fault arch/x86/mm/fault.c:1397 [inline]
 handle_page_fault arch/x86/mm/fault.c:1485 [inline]
 exc_page_fault+0x271/0x740 arch/x86/mm/fault.c:1541
 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:568
RIP: 0010:copy_user_enhanced_fast_string+0xe/0x40 arch/x86/lib/copy_user_64.S:206
Code: 89 d1 c1 e9 03 83 e2 07 f3 48 a5 89 d1 f3 a4 31 c0 0f 01 ca c3 0f 1f 80 00 00 00 00 0f 01 cb 83 fa 40 0f 82 70 ff ff ff 89 d1 <f3> a4 31 c0 0f 01 ca c3 66 2e 0f 1f 84 00 00 00 00 00 89 d1 83 f8
RSP: 0018:ffffc9000332fa70 EFLAGS: 00050206
RAX: ffffffff84053801 RBX: 00000000200d1e80 RCX: 0000000000000e80
RDX: 0000000000001000 RSI: ffff88800f4b8180 RDI: 00000000200d1000
RBP: ffffc9000332fcd0 R08: dffffc0000000000 R09: ffffed1001e97200
R10: 0000000000000000 R11: dffffc0000000001 R12: 00000000200d0e80
R13: 0000000000001000 R14: ffff88800f4b8000 R15: 00007ffffffff000
 copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline]
 raw_copy_to_user arch/x86/include/asm/uaccess_64.h:58 [inline]
 copyout lib/iov_iter.c:157 [inline]
 copy_page_to_iter_iovec lib/iov_iter.c:228 [inline]
 __copy_page_to_iter lib/iov_iter.c:861 [inline]
 copy_page_to_iter+0x49a/0x10d0 lib/iov_iter.c:889
 process_vm_rw_pages mm/process_vm_access.c:45 [inline]
 process_vm_rw_single_vec mm/process_vm_access.c:117 [inline]
 process_vm_rw_core mm/process_vm_access.c:215 [inline]
 process_vm_rw+0x886/0xcc0 mm/process_vm_access.c:283
 __do_sys_process_vm_readv mm/process_vm_access.c:295 [inline]
 __se_sys_process_vm_readv mm/process_vm_access.c:291 [inline]
 __x64_sys_process_vm_readv+0xdc/0xf0 mm/process_vm_access.c:291
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f217ed77ae9
RSP: 002b:00007f217d2f90c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000136
RAX: ffffffffffffffda RBX: 00007f217ee96f80 RCX: 00007f217ed77ae9
RDX: 0000000000000002 RSI: 0000000020008400 RDI: 0000000000001059
RBP: 00007f217edc347a R08: 0000000000000286 R09: 0000000000000000
R10: 0000000020008640 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f217ee96f80 R15: 00007fffe359a4b8
 </TASK>
rcu: rcu_preempt kthread starved for 10542 jiffies! g132189 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:27000 pid:   15 ppid:     2 flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5030 [inline]
 __schedule+0x12c4/0x45b0 kernel/sched/core.c:6376
 schedule+0x11b/0x1f0 kernel/sched/core.c:6459
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1884
 rcu_gp_fqs_loop+0x2af/0xf70 kernel/rcu/tree.c:1959
 rcu_gp_kthread+0xa4/0x360 kernel/rcu/tree.c:2132
 kthread+0x3f6/0x4f0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
NMI backtrace for cpu 1
CPU: 1 PID: 30692 Comm: syz-executor.4 Not tainted 5.15.139-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
 nmi_cpu_backtrace+0x46a/0x4a0 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x181/0x2a0 lib/nmi_backtrace.c:62
 trigger_single_cpu_backtrace include/linux/nmi.h:166 [inline]
 rcu_check_gp_kthread_starvation+0x1d2/0x240 kernel/rcu/tree_stall.h:481
 print_other_cpu_stall+0x137a/0x14d0 kernel/rcu/tree_stall.h:586
 check_cpu_stall kernel/rcu/tree_stall.h:729 [inline]
 rcu_pending kernel/rcu/tree.c:3911 [inline]
 rcu_sched_clock_irq+0x94f/0x1770 kernel/rcu/tree.c:2606
 update_process_times+0x196/0x200 kernel/time/timer.c:1788
 tick_sched_handle kernel/time/tick-sched.c:254 [inline]
 tick_sched_timer+0x386/0x550 kernel/time/tick-sched.c:1473
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x55b/0xcf0 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1085 [inline]
 __sysvec_apic_timer_interrupt+0x139/0x470 arch/x86/kernel/apic/apic.c:1102
 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1096
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:lock_release+0x62d/0x9a0 kernel/locking/lockdep.c:5646
Code: 3c 3b 00 74 08 4c 89 f7 e8 e0 2f 67 00 f6 84 24 91 00 00 00 02 75 6f 41 f7 c5 00 02 00 00 74 01 fb 48 c7 44 24 60 0e 36 e0 45 <4b> c7 04 27 00 00 00 00 4b c7 44 27 08 00 00 00 00 65 48 8b 04 25
RSP: 0000:ffffc9000324e200 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 1ffff92000649c52 RCX: ffffc9000324e203
RDX: 0000000000000002 RSI: ffffffff8a8b1e80 RDI: ffffffff8ad87b40
RBP: ffffc9000324e330 R08: dffffc0000000000 R09: fffffbfff1bc7276
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000649c4c
R13: 0000000000000246 R14: ffffc9000324e290 R15: dffffc0000000000
 __raw_spin_unlock_bh include/linux/spinlock_api_smp.h:174 [inline]
 _raw_spin_unlock_bh+0x17/0x30 kernel/locking/spinlock.c:210
 spin_unlock_bh include/linux/spinlock.h:408 [inline]
 batadv_tt_local_purge_pending_clients+0x2f1/0x380 net/batman-adv/translation-table.c:3673
 batadv_tt_local_resize_to_mtu+0x90/0x130 net/batman-adv/translation-table.c:3957
 batadv_update_min_mtu net/batman-adv/hard-interface.c:647 [inline]
 batadv_hardif_activate_interface+0x1ca/0x390 net/batman-adv/hard-interface.c:674
 batadv_hard_if_event+0xbc/0x17a0 net/batman-adv/hard-interface.c:965
 notifier_call_chain kernel/notifier.c:83 [inline]
 raw_notifier_call_chain+0xd0/0x170 kernel/notifier.c:391
 __dev_notify_flags+0x304/0x610
 dev_change_flags+0xe7/0x190 net/core/dev.c:8883
 vlan_device_event+0x442/0x1dd0 net/8021q/vlan.c:469
 notifier_call_chain kernel/notifier.c:83 [inline]
 raw_notifier_call_chain+0xd0/0x170 kernel/notifier.c:391
 __dev_notify_flags+0x304/0x610
 dev_change_flags+0xe7/0x190 net/core/dev.c:8883
 do_setlink+0xcd1/0x3ae0 net/core/rtnetlink.c:2741
 rtnl_group_changelink net/core/rtnetlink.c:3270 [inline]
 __rtnl_newlink net/core/rtnetlink.c:3439 [inline]
 rtnl_newlink+0x10b0/0x2070 net/core/rtnetlink.c:3549
 rtnetlink_rcv_msg+0x993/0xee0 net/core/rtnetlink.c:5630
 netlink_rcv_skb+0x1cf/0x410 net/netlink/af_netlink.c:2505
 netlink_unicast_kernel net/netlink/af_netlink.c:1330 [inline]
 netlink_unicast+0x7b6/0x980 net/netlink/af_netlink.c:1356
 netlink_sendmsg+0xa30/0xd60 net/netlink/af_netlink.c:1924
 sock_sendmsg_nosec net/socket.c:704 [inline]
 __sock_sendmsg net/socket.c:716 [inline]
 ____sys_sendmsg+0x59e/0x8f0 net/socket.c:2429
 ___sys_sendmsg+0x252/0x2e0 net/socket.c:2483
 __sys_sendmsg net/socket.c:2512 [inline]
 __do_sys_sendmsg net/socket.c:2521 [inline]
 __se_sys_sendmsg+0x19a/0x260 net/socket.c:2519
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f73b67a6ae9
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:00007f73b4ce60c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f73b68c6120 RCX: 00007f73b67a6ae9
RDX: 0000000000000000 RSI: 0000000020006440 RDI: 0000000000000008
RBP: 00007f73b67f247a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f73b68c6120 R15: 00007ffc5a31cea8
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/23 07:31 linux-5.15.y 2a910f4af54d fc59b78e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in sys_process_vm_readv
2023/10/11 06:31 linux-5.15.y 02e21884dcf2 83165b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in sys_process_vm_readv
* Struck through repros no longer work on HEAD.