hrtimer: interrupt took 4288980 ns rcu: INFO: rcu_preempt self-detected stall on CPU rcu: 1-...!: (1 GPs behind) idle=1a84/1/0x4000000000000000 softirq=10677/10679 fqs=0 rcu: (t=12517 jiffies g=8913 q=137 ncpus=2) rcu: rcu_preempt kthread timer wakeup didn't happen for 12516 jiffies! g8913 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 rcu: Possible timer handling issue on cpu=0 timer-softirq=5038 rcu: rcu_preempt kthread starved for 12517 jiffies! g8913 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->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:29176 pid:16 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5343 [inline] __schedule+0xc9a/0x5880 kernel/sched/core.c:6669 schedule+0xde/0x1a0 kernel/sched/core.c:6745 schedule_timeout+0x14e/0x2b0 kernel/time/timer.c:2167 rcu_gp_fqs_loop+0x190/0x910 kernel/rcu/tree.c:1609 rcu_gp_kthread+0x23a/0x360 kernel/rcu/tree.c:1808 kthread+0x344/0x440 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 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: 5388 Comm: syz-executor.0 Not tainted 6.4.0-rc1-syzkaller-g1e306ec49a1f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 RIP: 0010:bytes_is_nonzero mm/kasan/generic.c:84 [inline] RIP: 0010:memory_is_nonzero mm/kasan/generic.c:102 [inline] RIP: 0010:memory_is_poisoned_n mm/kasan/generic.c:128 [inline] RIP: 0010:memory_is_poisoned mm/kasan/generic.c:159 [inline] RIP: 0010:check_region_inline mm/kasan/generic.c:178 [inline] RIP: 0010:kasan_check_range+0xcc/0x190 mm/kasan/generic.c:187 Code: 38 00 74 ed 48 8d 50 08 eb 09 48 83 c0 01 48 39 d0 74 7a 80 38 00 74 f2 48 89 c2 b8 01 00 00 00 48 85 d2 75 56 5b 5d 41 5c c3 <48> 85 d2 74 5e 48 01 ea eb 09 48 83 c0 01 48 39 d0 74 50 80 38 00 RSP: 0018:ffffc90000007ac0 EFLAGS: 00000083 RAX: fffffbfff22a4fa0 RBX: fffffbfff22a4fa1 RCX: ffffffff816596b6 RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffffff91527d00 RBP: fffffbfff22a4fa0 R08: 0000000000000000 R09: ffffffff91527d07 R10: fffffbfff22a4fa0 R11: 0000000000000000 R12: ffff8880217e46c0 R13: ffff8880217e3b80 R14: 0000000000000000 R15: 4eff3115b7ca8633 FS: 00007fe5b8d89700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000051e370 CR3: 0000000015fd5000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: instrument_atomic_read include/linux/instrumented.h:68 [inline] _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] hlock_class kernel/locking/lockdep.c:228 [inline] lookup_chain_cache_add kernel/locking/lockdep.c:3754 [inline] validate_chain kernel/locking/lockdep.c:3810 [inline] __lock_acquire+0x1916/0x5df0 kernel/locking/lockdep.c:5074 lock_acquire kernel/locking/lockdep.c:5691 [inline] lock_acquire+0x1b1/0x520 kernel/locking/lockdep.c:5656 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x3d/0x60 kernel/locking/spinlock.c:162 debug_object_deactivate lib/debugobjects.c:763 [inline] debug_object_deactivate+0x105/0x300 lib/debugobjects.c:751 debug_hrtimer_deactivate kernel/time/hrtimer.c:425 [inline] debug_deactivate kernel/time/hrtimer.c:481 [inline] __run_hrtimer kernel/time/hrtimer.c:1653 [inline] __hrtimer_run_queues+0x3f3/0xbe0 kernel/time/hrtimer.c:1749 hrtimer_interrupt+0x320/0x7b0 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline] __sysvec_apic_timer_interrupt+0x14a/0x430 arch/x86/kernel/apic/apic.c:1112 sysvec_apic_timer_interrupt+0x92/0xc0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x3c/0x70 kernel/locking/spinlock.c:194 Code: 74 24 10 e8 96 34 53 f7 48 89 ef e8 be a2 53 f7 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 0f 77 45 f7 65 8b 05 30 09 f1 75 85 c0 74 0a 5b 5d c3 e8 ac 2e RSP: 0018:ffffc90004eaf1b0 EFLAGS: 00000206 RAX: 0000000000000002 RBX: 0000000000000200 RCX: 1ffffffff22ae0ee RDX: 0000000000000000 RSI: 0000000000000202 RDI: 0000000000000001 RBP: ffff8880b992b840 R08: 0000000000000001 R09: ffffffff91527dc7 R10: 0000000000000001 R11: 0000000000000000 R12: 00000000ffffffff R13: ffff8880b992ba40 R14: 0000000000000246 R15: dffffc0000000000 unlock_hrtimer_base kernel/time/hrtimer.c:1017 [inline] hrtimer_try_to_cancel kernel/time/hrtimer.c:1336 [inline] hrtimer_try_to_cancel+0x163/0x4b0 kernel/time/hrtimer.c:1316 hrtimer_cancel+0x17/0x40 kernel/time/hrtimer.c:1443 taprio_reset+0x76/0x200 net/sched/sch_taprio.c:2005 qdisc_reset+0xda/0x620 net/sched/sch_generic.c:1022 dev_reset_queue+0x92/0x130 net/sched/sch_generic.c:1285 netdev_for_each_tx_queue include/linux/netdevice.h:2514 [inline] dev_deactivate_many+0x36d/0xa60 net/sched/sch_generic.c:1351 dev_deactivate+0xed/0x1b0 net/sched/sch_generic.c:1374 qdisc_graft+0xec6/0x1450 net/sched/sch_api.c:1090 tc_modify_qdisc+0xc1b/0x1aa0 net/sched/sch_api.c:1693 rtnetlink_rcv_msg+0x43d/0xd50 net/core/rtnetlink.c:6395 netlink_rcv_skb+0x165/0x440 net/netlink/af_netlink.c:2546 netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline] netlink_unicast+0x547/0x7f0 net/netlink/af_netlink.c:1365 netlink_sendmsg+0x925/0xe30 net/netlink/af_netlink.c:1913 sock_sendmsg_nosec net/socket.c:724 [inline] sock_sendmsg+0xde/0x190 net/socket.c:747 ____sys_sendmsg+0x71c/0x900 net/socket.c:2503 ___sys_sendmsg+0x110/0x1b0 net/socket.c:2557 __sys_sendmsg+0xf7/0x1c0 net/socket.c:2586 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x4665d9 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:00007fe5b8d89188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9 RDX: 0000000000000000 RSI: 00000000200007c0 RDI: 0000000000000004 RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffde7e3201f R14: 00007fe5b8d89300 R15: 0000000000022000 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 5388 Comm: syz-executor.0 Not tainted 6.4.0-rc1-syzkaller-g1e306ec49a1f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 RIP: 0010:hlock_class kernel/locking/lockdep.c:223 [inline] RIP: 0010:__lock_acquire+0x16e8/0x5df0 kernel/locking/lockdep.c:5070 Code: c7 c7 20 69 4c 8a e8 f7 6d e6 ff 0f 0b 31 ed e9 e4 ed ff ff 49 8d 7c 24 f8 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e a1 39 00 00 41 0f b7 5c 24 f8 RSP: 0018:ffffc90000007bd0 EFLAGS: 00000806 RAX: dffffc0000000000 RBX: 0000000000000040 RCX: ffffffff81658ca7 RDX: 1ffff110042fc8d2 RSI: 0000000000000008 RDI: ffff8880217e4690 RBP: 0000000000000040 R08: 0000000000000000 R09: ffffffff91527d0f R10: fffffbfff22a4fa1 R11: 0000000000000000 R12: ffff8880217e4698 R13: ffff8880217e3b80 R14: 0000000000000001 R15: 0f5f31bd8a99387b FS: 00007fe5b8d89700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000000051e370 CR3: 0000000015fd5000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire kernel/locking/lockdep.c:5691 [inline] lock_acquire+0x1b1/0x520 kernel/locking/lockdep.c:5656 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:119 [inline] _raw_spin_lock_irq+0x36/0x50 kernel/locking/spinlock.c:170 __run_hrtimer kernel/time/hrtimer.c:1689 [inline] __hrtimer_run_queues+0x23e/0xbe0 kernel/time/hrtimer.c:1749 hrtimer_interrupt+0x320/0x7b0 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline] __sysvec_apic_timer_interrupt+0x14a/0x430 arch/x86/kernel/apic/apic.c:1112 sysvec_apic_timer_interrupt+0x92/0xc0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x3c/0x70 kernel/locking/spinlock.c:194 Code: 74 24 10 e8 96 34 53 f7 48 89 ef e8 be a2 53 f7 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 0f 77 45 f7 65 8b 05 30 09 f1 75 85 c0 74 0a 5b 5d c3 e8 ac 2e RSP: 0018:ffffc90004eaf1b0 EFLAGS: 00000206 RAX: 0000000000000002 RBX: 0000000000000200 RCX: 1ffffffff22ae0ee RDX: 0000000000000000 RSI: 0000000000000202 RDI: 0000000000000001 RBP: ffff8880b992b840 R08: 0000000000000001 R09: ffffffff91527dc7 R10: 0000000000000001 R11: 0000000000000000 R12: 00000000ffffffff R13: ffff8880b992ba40 R14: 0000000000000246 R15: dffffc0000000000 unlock_hrtimer_base kernel/time/hrtimer.c:1017 [inline] hrtimer_try_to_cancel kernel/time/hrtimer.c:1336 [inline] hrtimer_try_to_cancel+0x163/0x4b0 kernel/time/hrtimer.c:1316 hrtimer_cancel+0x17/0x40 kernel/time/hrtimer.c:1443 taprio_reset+0x76/0x200 net/sched/sch_taprio.c:2005 qdisc_reset+0xda/0x620 net/sched/sch_generic.c:1022 dev_reset_queue+0x92/0x130 net/sched/sch_generic.c:1285 netdev_for_each_tx_queue include/linux/netdevice.h:2514 [inline] dev_deactivate_many+0x36d/0xa60 net/sched/sch_generic.c:1351 dev_deactivate+0xed/0x1b0 net/sched/sch_generic.c:1374 qdisc_graft+0xec6/0x1450 net/sched/sch_api.c:1090 tc_modify_qdisc+0xc1b/0x1aa0 net/sched/sch_api.c:1693 rtnetlink_rcv_msg+0x43d/0xd50 net/core/rtnetlink.c:6395 netlink_rcv_skb+0x165/0x440 net/netlink/af_netlink.c:2546 netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline] netlink_unicast+0x547/0x7f0 net/netlink/af_netlink.c:1365 netlink_sendmsg+0x925/0xe30 net/netlink/af_netlink.c:1913 sock_sendmsg_nosec net/socket.c:724 [inline] sock_sendmsg+0xde/0x190 net/socket.c:747 ____sys_sendmsg+0x71c/0x900 net/socket.c:2503 ___sys_sendmsg+0x110/0x1b0 net/socket.c:2557 __sys_sendmsg+0xf7/0x1c0 net/socket.c:2586 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x4665d9 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:00007fe5b8d89188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9 RDX: 0000000000000000 RSI: 00000000200007c0 RDI: 0000000000000004 RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffde7e3201f R14: 00007fe5b8d89300 R15: 0000000000022000 CPU: 1 PID: 56 Comm: kworker/u4:4 Not tainted 6.4.0-rc1-syzkaller-g1e306ec49a1f #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:kvm_wait+0xa8/0x110 arch/x86/kernel/kvm.c:1064 Code: fa 83 e2 07 38 d0 7f 04 84 c0 75 66 0f b6 07 40 38 c6 74 1b 48 83 c4 10 c3 c3 e8 e3 9e 52 00 66 90 0f 00 2d aa 46 11 09 fb f4 <48> 83 c4 10 c3 66 90 0f 00 2d 9a 46 11 09 f4 48 83 c4 10 c3 89 74 RSP: 0018:ffffc900001e0d98 EFLAGS: 00000256 RAX: 000000000003e3a0 RBX: 0000000000000000 RCX: 1ffffffff22ae0ee RDX: 0000000000000000 RSI: 0000000000000102 RDI: 0000000000000000 RBP: ffff888140fe10f0 R08: 0000000000000001 R09: ffffffff91527dc7 R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000 R13: ffffed10281fc21e R14: 0000000000000001 R15: ffff8880b993d440 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffdaf9c8fb8 CR3: 000000000c571000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: pv_wait arch/x86/include/asm/paravirt.h:598 [inline] pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:470 [inline] __pv_queued_spin_lock_slowpath+0x8cb/0xb50 kernel/locking/qspinlock.c:511 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:586 [inline] queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline] queued_spin_lock include/asm-generic/qspinlock.h:114 [inline] do_raw_spin_lock+0x204/0x2b0 kernel/locking/spinlock_debug.c:115 spin_lock include/linux/spinlock.h:350 [inline] net_tx_action+0x56b/0xc70 net/core/dev.c:5072 __do_softirq+0x1d4/0x905 kernel/softirq.c:571 invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x114/0x190 kernel/softirq.c:650 irq_exit_rcu+0x9/0x20 kernel/softirq.c:662 sysvec_apic_timer_interrupt+0x97/0xc0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 RIP: 0010:csd_lock_wait kernel/smp.c:285 [inline] RIP: 0010:smp_call_function_many_cond+0x67f/0x15a0 kernel/smp.c:828 Code: 89 ee e8 f4 3c 0b 00 85 ed 74 48 48 8b 44 24 08 49 89 c4 83 e0 07 49 c1 ec 03 48 89 c5 4d 01 f4 83 c5 03 e8 b3 40 0b 00 f3 90 <41> 0f b6 04 24 40 38 c5 7c 08 84 c0 0f 85 ad 0c 00 00 8b 43 08 31 RSP: 0018:ffffc90001577948 EFLAGS: 00000293 RAX: 0000000000000000 RBX: ffff8880b98451e0 RCX: 0000000000000000 RDX: ffff888017675940 RSI: ffffffff8179042d RDI: 0000000000000005 RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffffed1017308a3d R13: 0000000000000000 R14: dffffc0000000000 R15: 0000000000000001 on_each_cpu_cond_mask+0x5a/0xa0 kernel/smp.c:996 on_each_cpu include/linux/smp.h:71 [inline] text_poke_sync arch/x86/kernel/alternative.c:1770 [inline] text_poke_bp_batch+0x237/0x770 arch/x86/kernel/alternative.c:1970 text_poke_flush arch/x86/kernel/alternative.c:2161 [inline] text_poke_flush arch/x86/kernel/alternative.c:2158 [inline] text_poke_finish+0x1a/0x30 arch/x86/kernel/alternative.c:2168 arch_jump_label_transform_apply+0x17/0x30 arch/x86/kernel/jump_label.c:146 jump_label_update+0x32f/0x410 kernel/jump_label.c:829 static_key_enable_cpuslocked+0x1b5/0x270 kernel/jump_label.c:205 static_key_enable+0x1a/0x20 kernel/jump_label.c:218 toggle_allocation_gate mm/kfence/core.c:831 [inline] toggle_allocation_gate+0xf8/0x230 mm/kfence/core.c:823 process_one_work+0x99a/0x15e0 kernel/workqueue.c:2405 worker_thread+0x67d/0x10c0 kernel/workqueue.c:2552 kthread+0x344/0x440 kernel/kthread.c:379 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308