rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P21010/1:b..l (detected by 0, t=10502 jiffies, g=126653, q=293) task:syz-executor.0 state:R running task stack:25216 pid:21010 ppid: 12611 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:4986 [inline] __schedule+0xab2/0x4e90 kernel/sched/core.c:6296 preempt_schedule_irq+0x4e/0x90 kernel/sched/core.c:6711 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:__local_bh_enable_ip+0xa8/0x120 kernel/softirq.c:390 Code: 1d 3d 45 bb 7e 65 8b 05 36 45 bb 7e a9 00 ff ff 00 74 45 bf 01 00 00 00 e8 75 44 09 00 e8 20 6e 37 00 fb 65 8b 05 18 45 bb 7e <85> c0 74 58 5b 5d c3 65 8b 05 66 4c bb 7e 85 c0 75 a2 0f 0b eb 9e RSP: 0018:ffffc90002c5f528 EFLAGS: 00000206 RAX: 0000000000000000 RBX: 00000000fffffe01 RCX: 1ffffffff1b28861 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffffff8730b15f R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff817e98f8 R11: 0000000000000000 R12: ffff888079c00900 R13: ffff888079c00800 R14: ffff888042d7e0e8 R15: 0000000000000000 local_bh_enable include/linux/bottom_half.h:33 [inline] rcu_read_unlock_bh include/linux/rcupdate.h:764 [inline] __dev_queue_xmit+0x195d/0x3660 net/core/dev.c:4143 __bpf_tx_skb net/core/filter.c:2113 [inline] __bpf_redirect_no_mac net/core/filter.c:2138 [inline] __bpf_redirect+0x5ba/0xd60 net/core/filter.c:2161 ____bpf_clone_redirect net/core/filter.c:2428 [inline] bpf_clone_redirect+0x2ae/0x420 net/core/filter.c:2400 bpf_prog_4e7fa76dca93f93f+0x56/0x31c bpf_dispatcher_nop_func include/linux/bpf.h:785 [inline] __bpf_prog_run include/linux/filter.h:626 [inline] bpf_prog_run include/linux/filter.h:633 [inline] bpf_test_run+0x381/0x9d0 net/bpf/test_run.c:120 bpf_prog_test_run_skb+0xb32/0x1de0 net/bpf/test_run.c:666 bpf_prog_test_run kernel/bpf/syscall.c:3350 [inline] __sys_bpf+0x1839/0x5970 kernel/bpf/syscall.c:4652 __do_sys_bpf kernel/bpf/syscall.c:4738 [inline] __se_sys_bpf kernel/bpf/syscall.c:4736 [inline] __x64_sys_bpf+0x75/0xb0 kernel/bpf/syscall.c:4736 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:0x7f3497e7e059 RSP: 002b:00007f34967f3168 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f3497f90f60 RCX: 00007f3497e7e059 RDX: 0000000000000028 RSI: 00000000200000c0 RDI: 000000000000000a RBP: 00007f3497ed808d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff96e469ef R14: 00007f34967f3300 R15: 0000000000022000 rcu: rcu_preempt kthread timer wakeup didn't happen for 10490 jiffies! g126653 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 rcu: Possible timer handling issue on cpu=1 timer-softirq=47601 rcu: rcu_preempt kthread starved for 10491 jiffies! g126653 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->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:I stack:29144 pid: 14 ppid: 2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:4986 [inline] __schedule+0xab2/0x4e90 kernel/sched/core.c:6296 schedule+0xd2/0x260 kernel/sched/core.c:6369 schedule_timeout+0x14a/0x2a0 kernel/time/timer.c:1881 rcu_gp_fqs_loop+0x186/0x810 kernel/rcu/tree.c:1963 rcu_gp_kthread+0x1de/0x320 kernel/rcu/tree.c:2136 kthread+0x2e9/0x3a0 kernel/kthread.c:377 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 rcu: Stack dump where RCU GP kthread last ran: Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 21024 Comm: syz-executor.1 Not tainted 5.16.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:29 [inline] RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:70 [inline] RIP: 0010:arch_local_irq_save arch/x86/include/asm/irqflags.h:106 [inline] RIP: 0010:lock_is_held_type+0x51/0x140 kernel/locking/lockdep.c:5678 Code: b5 76 85 c0 0f 85 ca 00 00 00 65 4c 8b 24 25 00 70 02 00 41 8b 94 24 5c 0a 00 00 85 d2 0f 85 b1 00 00 00 48 89 fd 41 89 f6 9c <8f> 04 24 fa 48 c7 c7 00 3c ac 89 31 db e8 fd 0d 00 00 41 8b 84 24 RSP: 0018:ffffc90000dc0de8 EFLAGS: 00000046 RAX: 0000000000000000 RBX: ffff888141da6b40 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 00000000ffffffff RDI: ffffffff8bb850a0 RBP: ffffffff8bb850a0 R08: 0000000000000000 R09: 0000000000000001 R10: ffffffff8167b848 R11: 0000000000000000 R12: ffff888041899d00 R13: 00000000ffffffff R14: 00000000ffffffff R15: 0000000000000001 FS: 00007f584fd7b700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f585151a090 CR3: 000000007c163000 CR4: 0000000000350ee0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 Call Trace: lock_is_held include/linux/lockdep.h:283 [inline] rcu_read_lock_sched_held+0x3a/0x70 kernel/rcu/update.c:125 trace_hrtimer_cancel include/trace/events/timer.h:290 [inline] debug_deactivate kernel/time/hrtimer.c:482 [inline] __run_hrtimer kernel/time/hrtimer.c:1653 [inline] __hrtimer_run_queues+0xaac/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:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x38/0x70 kernel/locking/spinlock.c:194 Code: 74 24 10 e8 4a af 0d f8 48 89 ef e8 02 25 0e f8 81 e3 00 02 00 00 75 25 9c 58 f6 c4 02 75 2d 48 85 db 74 01 fb bf 01 00 00 00 43 e0 00 f8 65 8b 05 ec e0 b2 76 85 c0 74 0a 5b 5d c3 e8 e0 09 RSP: 0018:ffffc90002ddfcb0 EFLAGS: 00000206 RAX: 0000000000000002 RBX: 0000000000000200 RCX: 1ffffffff1ff9876 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001 RBP: ffff8880b9c2a600 R08: 0000000000000001 R09: ffffffff8ffcba07 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000004 R13: 0000000000000000 R14: 0000000000000000 R15: dffffc0000000000 clock_was_set+0x56d/0x790 kernel/time/hrtimer.c:970 do_settimeofday64 kernel/time/timekeeping.c:1326 [inline] do_settimeofday64+0x3b9/0x5b0 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:0x7f5851406059 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f584fd7b168 EFLAGS: 00000246 ORIG_RAX: 00000000000000e3 RAX: ffffffffffffffda RBX: 00007f5851518f60 RCX: 00007f5851406059 RDX: 0000000000000000 RSI: 0000000020000100 RDI: 0000000000000000 RBP: 00007f585146008d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff5641865f R14: 00007f584fd7b300 R15: 0000000000022000 ---------------- Code disassembly (best guess): 0: 1d 3d 45 bb 7e sbb $0x7ebb453d,%eax 5: 65 8b 05 36 45 bb 7e mov %gs:0x7ebb4536(%rip),%eax # 0x7ebb4542 c: a9 00 ff ff 00 test $0xffff00,%eax 11: 74 45 je 0x58 13: bf 01 00 00 00 mov $0x1,%edi 18: e8 75 44 09 00 callq 0x94492 1d: e8 20 6e 37 00 callq 0x376e42 22: fb sti 23: 65 8b 05 18 45 bb 7e mov %gs:0x7ebb4518(%rip),%eax # 0x7ebb4542 * 2a: 85 c0 test %eax,%eax <-- trapping instruction 2c: 74 58 je 0x86 2e: 5b pop %rbx 2f: 5d pop %rbp 30: c3 retq 31: 65 8b 05 66 4c bb 7e mov %gs:0x7ebb4c66(%rip),%eax # 0x7ebb4c9e 38: 85 c0 test %eax,%eax 3a: 75 a2 jne 0xffffffde 3c: 0f 0b ud2 3e: eb 9e jmp 0xffffffde