rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 1-...!: (1 GPs behind) idle=dc44/1/0x4000000000000000 softirq=78713/78715 fqs=0 rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P24129/1:b..l (detected by 0, t=10502 jiffies, g=102125, q=194 ncpus=2) Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 24122 Comm: syz-executor.4 Not tainted 6.1.77-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 RIP: 0010:hlock_class kernel/locking/lockdep.c:228 [inline] RIP: 0010:mark_lock+0xa2/0x340 kernel/locking/lockdep.c:4606 Code: 00 8b 1b 81 e3 ff 1f 00 00 48 89 d8 48 c1 e8 06 48 8d 3c c5 20 12 49 90 be 08 00 00 00 e8 a6 30 77 00 48 0f a3 1d ce 58 de 0e <73> 11 48 8d 04 5b 48 c1 e0 06 48 8d 98 20 71 18 90 eb 23 48 c7 c0 RSP: 0018:ffffc900001e0a38 EFLAGS: 00000057 RAX: 0000000000000001 RBX: 000000000000005e RCX: ffffffff816ab94a RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff90491228 RBP: 0000000000000000 R08: dffffc0000000000 R09: fffffbfff2092246 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888023170ad8 R13: dffffc0000000000 R14: 0000000000000001 R15: ffff888023170b08 FS: 00007f573374e6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2db26000 CR3: 000000004c213000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: mark_usage kernel/locking/lockdep.c:4520 [inline] __lock_acquire+0xb40/0x1f80 kernel/locking/lockdep.c:5003 lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662 __raw_spin_lock_irq include/linux/spinlock_api_smp.h:119 [inline] _raw_spin_lock_irq+0xcf/0x110 kernel/locking/spinlock.c:170 __run_hrtimer kernel/time/hrtimer.c:1689 [inline] __hrtimer_run_queues+0x6d3/0xe50 kernel/time/hrtimer.c:1749 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline] __sysvec_apic_timer_interrupt+0x156/0x580 arch/x86/kernel/apic/apic.c:1112 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0xd4/0x130 kernel/locking/spinlock.c:194 Code: 9c 8f 44 24 20 42 80 3c 23 00 74 08 4c 89 f7 e8 02 4d 4d f7 f6 44 24 21 02 75 4e 41 f7 c7 00 02 00 00 74 01 fb bf 01 00 00 00 87 a2 c9 f6 65 8b 05 c8 d3 6d 75 85 c0 74 3f 48 c7 04 24 0e 36 RSP: 0018:ffffc900058ef8c0 EFLAGS: 00000206 RAX: ca9a16782830c700 RBX: 1ffff92000b1df1c RCX: ffffffff91c89103 RDX: dffffc0000000000 RSI: ffffffff8aebecc0 RDI: 0000000000000001 RBP: ffffc900058ef958 R08: dffffc0000000000 R09: ffffed100a5d5c92 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: 1ffff92000b1df18 R14: ffffc900058ef8e0 R15: 0000000000000246 spin_unlock_irqrestore include/linux/spinlock.h:405 [inline] timerfd_clock_was_set+0x1dc/0x2e0 fs/timerfd.c:113 clock_was_set+0x86e/0x900 kernel/time/hrtimer.c:980 timekeeping_inject_offset+0x65f/0x710 kernel/time/timekeeping.c:1395 do_adjtimex+0x511/0xaa0 kernel/time/timekeeping.c:2444 do_clock_adjtime kernel/time/posix-timers.c:1149 [inline] __do_sys_clock_adjtime kernel/time/posix-timers.c:1161 [inline] __se_sys_clock_adjtime kernel/time/posix-timers.c:1152 [inline] __x64_sys_clock_adjtime+0x1dc/0x290 kernel/time/posix-timers.c:1152 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f5732a7dda9 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:00007f573374e0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000131 RAX: ffffffffffffffda RBX: 00007f5732bac050 RCX: 00007f5732a7dda9 RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000000 RBP: 00007f5732aca47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f5732bac050 R15: 00007ffdc6cc5fc8 task:syz-executor.0 state:R running task stack:27416 pid:24129 ppid:19943 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5245 [inline] __schedule+0x142d/0x4550 kernel/sched/core.c:6558 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6870 irqentry_exit+0x53/0x80 kernel/entry/common.c:433 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653 RIP: 0010:filter_irq_stacks+0x4b/0xa0 kernel/stacktrace.c:395 Code: 00 00 c0 8a 48 89 fb eb 0c 49 ff c7 48 83 c3 08 4d 39 fc 74 4f 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 <74> 08 48 89 df e8 8b 9f 69 00 4b 8b 04 fe 48 39 e8 72 0c 48 c7 c1 RSP: 0018:ffffc90006187610 EFLAGS: 00000246 RAX: 1ffff92000c30ed7 RBX: ffffc900061876b8 RCX: dffffc0000000000 RDX: 0000000000000000 RSI: 000000000000000d RDI: ffffc900061876b0 RBP: ffffffff8aa00190 R08: 0000000000000001 R09: fffffbfff1ce6876 R10: 0000000000000000 R11: dffffc0000000001 R12: 000000000000000d R13: ffffffff8ac00000 R14: ffffc900061876b0 R15: 0000000000000001 __stack_depot_save+0x36/0x470 lib/stackdepot.c:439 kasan_save_stack mm/kasan/common.c:46 [inline] kasan_set_track+0x60/0x70 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0x97/0xb0 mm/kasan/common.c:383 kmalloc include/linux/slab.h:553 [inline] kzalloc include/linux/slab.h:689 [inline] sctp_add_bind_addr+0x85/0x3a0 net/sctp/bind_addr.c:150 sctp_copy_local_addr_list+0x30d/0x4f0 net/sctp/protocol.c:165 sctp_bind_addr_copy+0xa9/0x3b0 net/sctp/bind_addr.c:56 sctp_connect_new_asoc+0x2e5/0x6a0 net/sctp/socket.c:1093 __sctp_connect+0x657/0xe10 net/sctp/socket.c:1195 __sctp_setsockopt_connectx net/sctp/socket.c:1334 [inline] sctp_setsockopt_connectx+0x17d/0x290 net/sctp/socket.c:1361 sctp_setsockopt+0x83b/0x10d0 net/sctp/socket.c:4620 __sys_setsockopt+0x57e/0xa00 net/socket.c:2283 __do_sys_setsockopt net/socket.c:2294 [inline] __se_sys_setsockopt net/socket.c:2291 [inline] __x64_sys_setsockopt+0xb1/0xc0 net/socket.c:2291 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fec1aa7dda9 RSP: 002b:00007fec1b8500c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007fec1ababf80 RCX: 00007fec1aa7dda9 RDX: 000000000000006e RSI: 0000000000000084 RDI: 0000000000000003 RBP: 00007fec1aaca47a R08: 000000000000001c R09: 0000000000000000 R10: 00000000200000c0 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fec1ababf80 R15: 00007ffd088b9e48 rcu: rcu_preempt kthread starved for 10502 jiffies! g102125 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->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:R running task stack:26680 pid:16 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5245 [inline] __schedule+0x142d/0x4550 kernel/sched/core.c:6558 schedule+0xbf/0x180 kernel/sched/core.c:6634 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1935 rcu_gp_fqs_loop+0x2d2/0x1120 kernel/rcu/tree.c:1706 rcu_gp_kthread+0xa3/0x3a0 kernel/rcu/tree.c:1905 kthread+0x28d/0x320 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 rcu: Stack dump where RCU GP kthread last ran: CPU: 0 PID: 22095 Comm: kworker/u4:10 Not tainted 6.1.77-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:csd_lock_wait kernel/smp.c:424 [inline] RIP: 0010:smp_call_function_many_cond+0x1fb0/0x3460 kernel/smp.c:998 Code: 2f 44 89 ee 83 e6 01 31 ff e8 ec 42 0b 00 41 83 e5 01 49 bd 00 00 00 00 00 fc ff df 75 0a e8 77 3f 0b 00 e9 1b ff ff ff f3 90 <42> 0f b6 04 2b 84 c0 75 14 41 f7 07 01 00 00 00 0f 84 fe fe ff ff RSP: 0018:ffffc90006b275a0 EFLAGS: 00000293 RAX: ffffffff817f3bcb RBX: 1ffff11017328031 RCX: ffff88801b755940 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc90006b27980 R08: ffffffff817f3b94 R09: fffffbfff2092245 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000800000000 R13: dffffc0000000000 R14: 0000000000000001 R15: ffff8880b9940188 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b32124000 CR3: 000000000ce8e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: on_each_cpu_cond_mask+0x3b/0x80 kernel/smp.c:1166 on_each_cpu include/linux/smp.h:71 [inline] text_poke_sync arch/x86/kernel/alternative.c:1329 [inline] text_poke_bp_batch+0x2bb/0x940 arch/x86/kernel/alternative.c:1529 text_poke_flush arch/x86/kernel/alternative.c:1720 [inline] text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:1727 arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146 static_key_enable_cpuslocked+0x12e/0x250 kernel/jump_label.c:177 static_key_enable+0x16/0x20 kernel/jump_label.c:190 toggle_allocation_gate+0xbf/0x480 mm/kfence/core.c:804 process_one_work+0x8a9/0x11d0 kernel/workqueue.c:2292 worker_thread+0xa47/0x1200 kernel/workqueue.c:2439 kthread+0x28d/0x320 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306