rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 0-...!: (1 GPs behind) idle=6e9/1/0x4000000000000000 softirq=148223/148224 fqs=1 (detected by 1, t=10502 jiffies, g=289869, q=48) Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 23138 Comm: syz-executor.0 Not tainted 5.15.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__lock_acquire+0x941/0x54a0 kernel/locking/lockdep.c:4998 Code: 54 24 18 4d 8b bd 10 0a 00 00 85 d2 0f 84 a3 05 00 00 45 31 f6 48 b8 00 00 00 00 00 fc ff df 4c 89 e2 48 c1 ea 03 80 3c 02 00 <0f> 85 90 48 00 00 48 8b 14 24 4d 89 3c 24 48 b8 00 00 00 00 00 fc RSP: 0018:ffffc90000007ba0 EFLAGS: 00000046 RAX: dffffc0000000000 RBX: 000000000000002d RCX: ffffffff815b1ffa RDX: 1ffff1100ec1498c RSI: 0000000000000008 RDI: ffffffff8fd069e0 RBP: 0000000000000002 R08: 0000000000000000 R09: ffffffff8fd069e7 R10: fffffbfff1fa0d3c R11: 0000000000000000 R12: ffff8880760a4c60 R13: ffff8880760a4240 R14: 0000000000000001 R15: ffffffffffffffff FS: 00007f31f8da3700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7c85cc33a4 CR3: 0000000081bf0000 CR4: 00000000003526f0 Call Trace: lock_acquire kernel/locking/lockdep.c:5625 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5590 rcu_lock_acquire include/linux/rcupdate.h:267 [inline] rcu_read_lock include/linux/rcupdate.h:687 [inline] advance_sched+0x4a5/0x9a0 net/sched/sch_taprio.c:763 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x609/0xe50 kernel/time/hrtimer.c:1749 hrtimer_interrupt+0x31c/0x790 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1086 [inline] __sysvec_apic_timer_interrupt+0x146/0x530 arch/x86/kernel/apic/apic.c:1103 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1097 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:finish_task_switch.isra.0+0x323/0xb80 kernel/sched/core.c:4814 Code: 43 57 e7 07 85 c0 75 02 0f 0b 48 85 db 0f 85 25 01 00 00 4c 89 f7 e8 fc f7 ff ff e8 37 d2 2c 00 fb 65 48 8b 1c 25 40 f0 01 00 <48> 8d bb 40 15 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 RSP: 0018:ffffc90005b577e0 EFLAGS: 00000206 RAX: 0000000000002b7b RBX: ffff8880760a4240 RCX: 1ffffffff1adc531 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc90005b57828 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff817c4de8 R11: 0000000000000000 R12: ffff8880b9c32818 R13: ffff888024896140 R14: ffff8880b9c31ac0 R15: ffff8880b9c324f8 context_switch kernel/sched/core.c:4943 [inline] __schedule+0xb4c/0x5960 kernel/sched/core.c:6287 preempt_schedule_irq+0x4e/0x90 kernel/sched/core.c:6687 irqentry_exit+0x31/0x80 kernel/entry/common.c:425 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:lock_release+0x3f1/0x720 kernel/locking/lockdep.c:5633 Code: 7e 83 f8 01 0f 85 8d 01 00 00 9c 58 f6 c4 02 0f 85 78 01 00 00 48 f7 04 24 00 02 00 00 74 01 fb 48 b8 00 00 00 00 00 fc ff df <48> 01 c5 48 c7 45 00 00 00 00 00 c7 45 08 00 00 00 00 48 8b 84 24 RSP: 0018:ffffc90005b57a60 EFLAGS: 00000206 RAX: dffffc0000000000 RBX: ffffffffffffffff RCX: ffffc90005b57ab0 RDX: 1ffff1100ec1498a RSI: 0000000000000000 RDI: 0000000000000000 RBP: 1ffff92000b6af4e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000001 R14: ffff8880760a4c58 R15: ffff8880760a4240 __might_fault mm/memory.c:5271 [inline] __might_fault+0x144/0x180 mm/memory.c:5256 _copy_from_user+0x27/0x180 lib/usercopy.c:13 copy_from_user include/linux/uaccess.h:192 [inline] generic_map_update_batch+0x338/0x5b0 kernel/bpf/syscall.c:1374 bpf_map_do_batch+0x3d5/0x510 kernel/bpf/syscall.c:4179 __sys_bpf+0x2727/0x5df0 kernel/bpf/syscall.c:4654 __do_sys_bpf kernel/bpf/syscall.c:4694 [inline] __se_sys_bpf kernel/bpf/syscall.c:4692 [inline] __x64_sys_bpf+0x75/0xb0 kernel/bpf/syscall.c:4692 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f31fb82dae9 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f31f8da3188 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f31fb940f60 RCX: 00007f31fb82dae9 RDX: 0000000000000038 RSI: 0000000020000400 RDI: 000000000000001a RBP: 00007f31fb887f25 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffbcf92b5f R14: 00007f31f8da3300 R15: 0000000000022000 rcu: rcu_preempt kthread starved for 10500 jiffies! g289869 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:28856 pid: 14 ppid: 2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:4940 [inline] __schedule+0xb44/0x5960 kernel/sched/core.c:6287 schedule+0xd3/0x270 kernel/sched/core.c:6366 schedule_timeout+0x14a/0x2a0 kernel/time/timer.c:1881 rcu_gp_fqs_loop+0x186/0x800 kernel/rcu/tree.c:1957 rcu_gp_kthread+0x1de/0x320 kernel/rcu/tree.c:2130 kthread+0x3e5/0x4d0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 rcu: Stack dump where RCU GP kthread last ran: NMI backtrace for cpu 1 CPU: 1 PID: 23142 Comm: syz-executor.3 Not tainted 5.15.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:105 nmi_trigger_cpumask_backtrace+0x1ae/0x220 lib/nmi_backtrace.c:62 trigger_single_cpu_backtrace include/linux/nmi.h:164 [inline] rcu_check_gp_kthread_starvation.cold+0x1fb/0x200 kernel/rcu/tree_stall.h:481 print_other_cpu_stall kernel/rcu/tree_stall.h:586 [inline] check_cpu_stall kernel/rcu/tree_stall.h:729 [inline] rcu_pending kernel/rcu/tree.c:3880 [inline] rcu_sched_clock_irq+0x2125/0x2200 kernel/rcu/tree.c:2599 update_process_times+0x16d/0x200 kernel/time/timer.c:1785 tick_sched_handle+0x9b/0x180 kernel/time/tick-sched.c:226 tick_sched_timer+0x1b0/0x2d0 kernel/time/tick-sched.c:1421 __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x1c0/0xe50 kernel/time/hrtimer.c:1749 hrtimer_interrupt+0x31c/0x790 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1086 [inline] __sysvec_apic_timer_interrupt+0x146/0x530 arch/x86/kernel/apic/apic.c:1103 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1097 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638 RIP: 0010:csd_lock_wait kernel/smp.c:440 [inline] RIP: 0010:smp_call_function_many_cond+0x452/0xc20 kernel/smp.c:969 Code: 0b 00 85 ed 74 4d 48 b8 00 00 00 00 00 fc ff df 4d 89 f4 4c 89 f5 49 c1 ec 03 83 e5 07 49 01 c4 83 c5 03 e8 f0 4b 0b 00 f3 90 <41> 0f b6 04 24 40 38 c5 7c 08 84 c0 0f 85 33 06 00 00 8b 43 08 31 RSP: 0018:ffffc90005a57c08 EFLAGS: 00000246 RAX: 0000000000040000 RBX: ffff8880b9c3cfe0 RCX: ffffc9000cbca000 RDX: 0000000000040000 RSI: ffffffff816ad7b0 RDI: 0000000000000003 RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff816ad7d6 R11: 0000000000000000 R12: ffffed10173879fd R13: 0000000000000000 R14: ffff8880b9c3cfe8 R15: 0000000000000001 clock_was_set+0x599/0x790 kernel/time/hrtimer.c:974 do_settimeofday64 kernel/time/timekeeping.c:1327 [inline] do_settimeofday64+0x3e2/0x5c0 kernel/time/timekeeping.c:1293 do_sys_settimeofday64 kernel/time/time.c:195 [inline] do_sys_settimeofday64+0x1de/0x260 kernel/time/time.c:169 __do_sys_clock_settime kernel/time/posix-timers.c:1079 [inline] __se_sys_clock_settime kernel/time/posix-timers.c:1067 [inline] __x64_sys_clock_settime+0x1a1/0x280 kernel/time/posix-timers.c:1067 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f5048395ae9 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f504590b188 EFLAGS: 00000246 ORIG_RAX: 00000000000000e3 RAX: ffffffffffffffda RBX: 00007f50484a8f60 RCX: 00007f5048395ae9 RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000000 RBP: 00007f50483eff25 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffecd3748df R14: 00007f504590b300 R15: 0000000000022000 ---------------- Code disassembly (best guess): 0: 54 push %rsp 1: 24 18 and $0x18,%al 3: 4d 8b bd 10 0a 00 00 mov 0xa10(%r13),%r15 a: 85 d2 test %edx,%edx c: 0f 84 a3 05 00 00 je 0x5b5 12: 45 31 f6 xor %r14d,%r14d 15: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 1c: fc ff df 1f: 4c 89 e2 mov %r12,%rdx 22: 48 c1 ea 03 shr $0x3,%rdx 26: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) * 2a: 0f 85 90 48 00 00 jne 0x48c0 <-- trapping instruction 30: 48 8b 14 24 mov (%rsp),%rdx 34: 4d 89 3c 24 mov %r15,(%r12) 38: 48 rex.W 39: b8 00 00 00 00 mov $0x0,%eax 3e: 00 fc add %bh,%ah