rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 1-...!: (2 ticks this GP) idle=98b/1/0x4000000000000000 softirq=5847/5847 fqs=0 (detected by 0, t=10503 jiffies, g=4893, q=15 ncpus=2) Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 3626 Comm: syz-executor542 Not tainted 5.19.0-rc2-syzkaller-00147-gf0ec9c65a8d6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:kasan_check_range+0x12b/0x180 mm/kasan/generic.c:190 Code: 3a 00 74 ef 49 8d 04 2c 48 85 d2 75 0b 48 89 da 48 29 c2 e9 55 ff ff ff 49 39 d2 75 17 49 0f be 02 41 83 e1 07 49 39 c1 7d 0a <5b> b8 01 00 00 00 5d 41 5c c3 44 89 c2 e8 03 f0 ff ff 5b 83 f0 01 RSP: 0018:ffffc900003f8cc0 EFLAGS: 00000046 RAX: fffffbfff1b75a53 RBX: fffffbfff1b75a53 RCX: ffffffff815d85e8 RDX: fffffbfff1b75a53 RSI: 0000000000000008 RDI: ffffffff8dbad290 RBP: fffffbfff1b75a52 R08: 0000000000000000 R09: ffffffff8dbad297 R10: fffffbfff1b75a52 R11: 0000000000000001 R12: 0000000000000002 R13: 0000000000000000 R14: ffffffff8bd84020 R15: 0000000000000000 FS: 00005555566ee300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000600 CR3: 0000000017741000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: instrument_atomic_read include/linux/instrumented.h:71 [inline] test_bit include/asm-generic/bitops/instrumented-non-atomic.h:134 [inline] cpumask_test_cpu include/linux/cpumask.h:379 [inline] cpu_online include/linux/cpumask.h:921 [inline] trace_lock_acquire include/trace/events/lock.h:24 [inline] lock_acquire+0xb8/0x570 kernel/locking/lockdep.c:5636 rcu_lock_acquire include/linux/rcupdate.h:269 [inline] rcu_read_lock include/linux/rcupdate.h:695 [inline] advance_sched+0x4a5/0x9a0 net/sched/sch_taprio.c:768 __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:1095 [inline] __sysvec_apic_timer_interrupt+0x146/0x530 arch/x86/kernel/apic/apic.c:1112 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:649 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 cc e3 f7 48 89 ef e8 52 4d e4 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 b3 56 d7 f7 65 8b 05 ac bd 88 76 85 c0 74 0a 5b 5d c3 e8 50 42 RSP: 0018:ffffc900031271e0 EFLAGS: 00000206 RAX: 0000000000000002 RBX: 0000000000000200 RCX: 1ffffffff20d87b6 RDX: 0000000000000000 RSI: 0000000000000202 RDI: 0000000000000001 RBP: ffff88807d6ceae8 R08: 0000000000000001 R09: ffffffff906799c7 R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000 R13: ffff88807d6ceae8 R14: 0000000000000246 R15: ffff88807d6ce800 spin_unlock_irqrestore include/linux/spinlock.h:404 [inline] taprio_change+0x2eab/0x4050 net/sched/sch_taprio.c:1607 taprio_init+0x52e/0x670 net/sched/sch_taprio.c:1739 qdisc_create.constprop.0+0x44a/0x10f0 net/sched/sch_api.c:1253 tc_modify_qdisc+0x4c5/0x1a00 net/sched/sch_api.c:1660 rtnetlink_rcv_msg+0x43a/0xc90 net/core/rtnetlink.c:6089 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2501 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x543/0x7f0 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x917/0xe10 net/netlink/af_netlink.c:1921 sock_sendmsg_nosec net/socket.c:714 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:734 ____sys_sendmsg+0x6eb/0x810 net/socket.c:2492 ___sys_sendmsg+0xf3/0x170 net/socket.c:2546 __sys_sendmsg net/socket.c:2575 [inline] __do_sys_sendmsg net/socket.c:2584 [inline] __se_sys_sendmsg net/socket.c:2582 [inline] __x64_sys_sendmsg+0x132/0x220 net/socket.c:2582 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+0x46/0xb0 RIP: 0033:0x7fdbd6e42dc9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 41 15 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffd33df8758 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fdbd6e42dc9 RDX: 0000000000000000 RSI: 00000000200007c0 RDI: 0000000000000004 RBP: 0000000000000000 R08: 000000000000000d R09: 000000000000000d R10: 000000000000000d R11: 0000000000000246 R12: 00007ffd33df8770 R13: 00000000000f4240 R14: 0000000000000000 R15: 0000000000000000 INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 2.098 msecs rcu: rcu_preempt kthread timer wakeup didn't happen for 10502 jiffies! g4893 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 rcu: Possible timer handling issue on cpu=1 timer-softirq=1253 rcu: rcu_preempt kthread starved for 10503 jiffies! g4893 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:28864 pid: 17 ppid: 2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5116 [inline] __schedule+0xa00/0x4b30 kernel/sched/core.c:6428 schedule+0xd2/0x1f0 kernel/sched/core.c:6500 schedule_timeout+0x14a/0x2a0 kernel/time/timer.c:1935 rcu_gp_fqs_loop+0x186/0x810 kernel/rcu/tree.c:1999 rcu_gp_kthread+0x1de/0x320 kernel/rcu/tree.c:2187 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302 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: 3626 Comm: syz-executor542 Not tainted 5.19.0-rc2-syzkaller-00147-gf0ec9c65a8d6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:rcu_is_watching+0x0/0xb0 kernel/rcu/tree.c:1134 Code: 89 61 00 e9 2c ff ff ff 66 90 48 c7 c7 e0 f0 cd 89 e8 24 72 12 08 65 8a 05 c1 70 9f 7e 0f be c0 c3 66 0f 1f 84 00 00 00 00 00 <55> 53 65 ff 05 e7 2f 9e 7e e8 e2 71 12 08 48 c7 c3 d0 af 03 00 83 RSP: 0018:ffffc900003f8ce0 EFLAGS: 00000002 RAX: 0000000000000001 RBX: 0000000000000001 RCX: ffffffff815d7e51 RDX: dffffc0000000000 RSI: 0000000000000008 RDI: ffffffff8dbad290 RBP: 1ffff9200007f1a1 R08: 0000000000000000 R09: ffffffff8dbad297 R10: fffffbfff1b75a52 R11: 0000000000000001 R12: 0000000000000001 R13: 16f996ba68372d20 R14: ffff888078cea9a0 R15: 16f996ba68372d20 FS: 00005555566ee300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000600 CR3: 0000000017741000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rcu_read_lock_held_common kernel/rcu/update.c:108 [inline] rcu_read_lock_sched_held+0x1c/0x70 kernel/rcu/update.c:123 trace_lock_release include/trace/events/lock.h:69 [inline] lock_release+0x560/0x780 kernel/locking/lockdep.c:5676 __raw_spin_unlock include/linux/spinlock_api_smp.h:141 [inline] _raw_spin_unlock+0x12/0x40 kernel/locking/spinlock.c:186 spin_unlock include/linux/spinlock.h:389 [inline] advance_sched+0x435/0x9a0 net/sched/sch_taprio.c:764 __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:1095 [inline] __sysvec_apic_timer_interrupt+0x146/0x530 arch/x86/kernel/apic/apic.c:1112 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:649 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 cc e3 f7 48 89 ef e8 52 4d e4 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 b3 56 d7 f7 65 8b 05 ac bd 88 76 85 c0 74 0a 5b 5d c3 e8 50 42 RSP: 0018:ffffc900031271e0 EFLAGS: 00000206 RAX: 0000000000000002 RBX: 0000000000000200 RCX: 1ffffffff20d87b6 RDX: 0000000000000000 RSI: 0000000000000202 RDI: 0000000000000001 RBP: ffff88807d6ceae8 R08: 0000000000000001 R09: ffffffff906799c7 R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000000 R13: ffff88807d6ceae8 R14: 0000000000000246 R15: ffff88807d6ce800 spin_unlock_irqrestore include/linux/spinlock.h:404 [inline] taprio_change+0x2eab/0x4050 net/sched/sch_taprio.c:1607 taprio_init+0x52e/0x670 net/sched/sch_taprio.c:1739 qdisc_create.constprop.0+0x44a/0x10f0 net/sched/sch_api.c:1253 tc_modify_qdisc+0x4c5/0x1a00 net/sched/sch_api.c:1660 rtnetlink_rcv_msg+0x43a/0xc90 net/core/rtnetlink.c:6089 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2501 netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] netlink_unicast+0x543/0x7f0 net/netlink/af_netlink.c:1345 netlink_sendmsg+0x917/0xe10 net/netlink/af_netlink.c:1921 sock_sendmsg_nosec net/socket.c:714 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:734 ____sys_sendmsg+0x6eb/0x810 net/socket.c:2492 ___sys_sendmsg+0xf3/0x170 net/socket.c:2546 __sys_sendmsg net/socket.c:2575 [inline] __do_sys_sendmsg net/socket.c:2584 [inline] __se_sys_sendmsg net/socket.c:2582 [inline] __x64_sys_sendmsg+0x132/0x220 net/socket.c:2582 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+0x46/0xb0 RIP: 0033:0x7fdbd6e42dc9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 41 15 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 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffd33df8758 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fdbd6e42dc9 RDX: 0000000000000000 RSI: 00000000200007c0 RDI: 0000000000000004 RBP: 0000000000000000 R08: 000000000000000d R09: 000000000000000d R10: 000000000000000d R11: 0000000000000246 R12: 00007ffd33df8770 R13: 00000000000f4240 R14: 0000000000000000 R15: 0000000000000000 watchdog: BUG: soft lockup - CPU#0 stuck for 246s! [kworker/u4:0:8] Modules linked in: irq event stamp: 157192 hardirqs last enabled at (157191): [] asm_sysvec_apic_timer_interrupt+0x1b/0x20 arch/x86/include/asm/idtentry.h:649 hardirqs last disabled at (157192): [] sysvec_apic_timer_interrupt+0xb/0xc0 arch/x86/kernel/apic/apic.c:1106 softirqs last enabled at (106518): [] invoke_softirq kernel/softirq.c:445 [inline] softirqs last enabled at (106518): [] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650 softirqs last disabled at (106447): [] invoke_softirq kernel/softirq.c:445 [inline] softirqs last disabled at (106447): [] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650 CPU: 0 PID: 8 Comm: kworker/u4:0 Not tainted 5.19.0-rc2-syzkaller-00147-gf0ec9c65a8d6 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:csd_lock_wait kernel/smp.c:414 [inline] RIP: 0010:smp_call_function_many_cond+0x499/0x1110 kernel/smp.c:988 Code: 01 89 ee e8 69 98 0a 00 85 ed 74 47 48 8b 04 24 49 89 c4 83 e0 07 49 c1 ec 03 48 89 c5 4d 01 fc 83 c5 03 e8 09 9c 0a 00 f3 90 <41> 0f b6 04 24 40 38 c5 7c 08 84 c0 0f 85 21 0a 00 00 8b 43 08 31 RSP: 0018:ffffc900002ef950 EFLAGS: 00000293 RAX: 0000000000000000 RBX: ffff8880b9b3f760 RCX: 0000000000000000 RDX: ffff888012198200 RSI: ffffffff816f07a7 RDI: 0000000000000005 RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffffed1017367eed R13: 0000000000000001 R14: 0000000000000001 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fdbd6e00c84 CR3: 000000000ba8e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: on_each_cpu_cond_mask+0x56/0xa0 kernel/smp.c:1154 on_each_cpu include/linux/smp.h:71 [inline] text_poke_sync arch/x86/kernel/alternative.c:1231 [inline] text_poke_bp_batch+0x233/0x6c0 arch/x86/kernel/alternative.c:1419 text_poke_flush arch/x86/kernel/alternative.c:1589 [inline] text_poke_flush arch/x86/kernel/alternative.c:1586 [inline] text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:1596 arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146 jump_label_update+0x32f/0x410 kernel/jump_label.c:830 static_key_enable_cpuslocked+0x1b1/0x260 kernel/jump_label.c:177 static_key_enable+0x16/0x20 kernel/jump_label.c:190 toggle_allocation_gate mm/kfence/core.c:808 [inline] toggle_allocation_gate+0x100/0x390 mm/kfence/core.c:800 process_one_work+0x996/0x1610 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:302 ---------------- Code disassembly (best guess): 0: 3a 00 cmp (%rax),%al 2: 74 ef je 0xfffffff3 4: 49 8d 04 2c lea (%r12,%rbp,1),%rax 8: 48 85 d2 test %rdx,%rdx b: 75 0b jne 0x18 d: 48 89 da mov %rbx,%rdx 10: 48 29 c2 sub %rax,%rdx 13: e9 55 ff ff ff jmpq 0xffffff6d 18: 49 39 d2 cmp %rdx,%r10 1b: 75 17 jne 0x34 1d: 49 0f be 02 movsbq (%r10),%rax 21: 41 83 e1 07 and $0x7,%r9d 25: 49 39 c1 cmp %rax,%r9 28: 7d 0a jge 0x34 * 2a: 5b pop %rbx <-- trapping instruction 2b: b8 01 00 00 00 mov $0x1,%eax 30: 5d pop %rbp 31: 41 5c pop %r12 33: c3 retq 34: 44 89 c2 mov %r8d,%edx 37: e8 03 f0 ff ff callq 0xfffff03f 3c: 5b pop %rbx 3d: 83 f0 01 xor $0x1,%eax