rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 0-...!: (1 GPs behind) idle=0f24/1/0x4000000000000000 softirq=62046/62047 fqs=0 rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P28075/1:b..l rcu: (detected by 1, t=10505 jiffies, g=98637, q=48 ncpus=2) Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 28080 Comm: syz-executor.1 Not tainted 6.7.0-rc6-next-20231222-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 RIP: 0010:kasan_check_range+0x12/0x190 mm/kasan/generic.c:188 Code: d6 ff ff 44 89 e7 5b 5d 41 5c 41 5d e9 f7 cd ba 02 5b 5d 41 5c 41 5d c3 66 0f 1f 00 48 85 f6 0f 84 48 01 00 00 48 89 f8 41 54 <44> 0f b6 c2 48 01 f0 55 53 0f 82 c6 00 00 00 48 b8 ff ff ff ff ff RSP: 0018:ffffc90000007e20 EFLAGS: 00000002 RAX: ffffffff8f3a5b10 RBX: 0000000000000000 RCX: ffffffff8176b969 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff8f3a5b10 RBP: 000000000003c2cc R08: 0000000000000005 R09: 0000000000000007 R10: 0000000000000000 R11: ffffffff8acf3060 R12: ffff8880b982bbc0 R13: ffff8880865be340 R14: ffff8880b982bac0 R15: ffffffff88ad04f0 FS: 0000555555ee0480(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000100 CR3: 000000001d674000 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] cpumask_test_cpu include/linux/cpumask.h:516 [inline] cpu_online include/linux/cpumask.h:1116 [inline] trace_hrtimer_cancel include/trace/events/timer.h:317 [inline] debug_deactivate kernel/time/hrtimer.c:484 [inline] __run_hrtimer kernel/time/hrtimer.c:1656 [inline] __hrtimer_run_queues+0x4c9/0xc20 kernel/time/hrtimer.c:1752 hrtimer_interrupt+0x31b/0x800 kernel/time/hrtimer.c:1814 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1065 [inline] __sysvec_apic_timer_interrupt+0x10c/0x410 arch/x86/kernel/apic/apic.c:1082 sysvec_apic_timer_interrupt+0x90/0xb0 arch/x86/kernel/apic/apic.c:1076 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:finish_task_switch.isra.0+0x220/0xcb0 kernel/sched/core.c:5274 Code: 90 0a 00 00 44 8b 0d c7 4c df 0d 45 85 c9 0f 85 bc 01 00 00 48 89 df e8 ce f8 ff ff e8 49 86 33 00 fb 65 48 8b 1d 90 80 a8 7e <48> 8d bb d8 15 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 RSP: 0018:ffffc90005f77908 EFLAGS: 00000246 RAX: 0000000000000003 RBX: ffff8880703b8000 RCX: 1ffffffff1e751db RDX: 0000000000000000 RSI: ffffffff8b2f95c0 RDI: ffffffff815b4227 RBP: ffffc90005f77950 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff8f3a5b17 R11: 0000000000000001 R12: ffff8880b983da78 R13: ffff8880239b1dc0 R14: 0000000000000000 R15: ffff8880b983cd00 context_switch kernel/sched/core.c:5403 [inline] __schedule+0xf1d/0x5c80 kernel/sched/core.c:6727 __schedule_loop kernel/sched/core.c:6802 [inline] schedule+0xe7/0x270 kernel/sched/core.c:6817 futex_wait_queue+0xfc/0x1f0 kernel/futex/waitwake.c:370 __futex_wait+0x291/0x3c0 kernel/futex/waitwake.c:669 futex_wait+0xe9/0x380 kernel/futex/waitwake.c:697 do_futex+0x227/0x350 kernel/futex/syscalls.c:102 __do_sys_futex kernel/futex/syscalls.c:179 [inline] __se_sys_futex kernel/futex/syscalls.c:160 [inline] __x64_sys_futex+0x1e1/0x4c0 kernel/futex/syscalls.c:160 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x62/0x6a RIP: 0033:0x7f4603e7cce9 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:00007ffcf9dcf7b8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: ffffffffffffffda RBX: 0000000000107b38 RCX: 00007f4603e7cce9 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f4603f9bf8c RBP: 0000000000000032 R08: 00007f4603f9bf8c R09: 00007f4603f9bf8c R10: 00007ffcf9dcf8f0 R11: 0000000000000246 R12: 00007f4603f9bf8c R13: 0000000000107b6a R14: 00007ffcf9dcf910 R15: 00007ffcf9dcf8f0 task:syz-executor.0 state:R running task stack:27688 pid:28075 tgid:28072 ppid:21141 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5400 [inline] __schedule+0xf15/0x5c80 kernel/sched/core.c:6727 preempt_schedule_irq+0x51/0x90 kernel/sched/core.c:7047 irqentry_exit+0x36/0x80 kernel/entry/common.c:432 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:lock_acquire+0x24/0x530 kernel/locking/lockdep.c:5722 Code: 00 00 00 0f 1f 00 f3 0f 1e fa 48 b8 00 00 00 00 00 fc ff df 41 57 4d 89 cf 41 56 49 89 fe 41 55 41 89 d5 41 54 45 89 c4 55 53 <48> 81 ec b0 00 00 00 48 8d 5c 24 10 89 34 24 48 c1 eb 03 89 4c 24 RSP: 0018:ffffc90005f97740 EFLAGS: 00000246 RAX: dffffc0000000000 RBX: 0000000000000005 RCX: 0000000000000002 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8d1acba0 RBP: ffff8880152bdc80 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: dffffc0000000000 R12: 0000000000000000 R13: 0000000000000000 R14: ffffffff8d1acba0 R15: 0000000000000000 rcu_lock_acquire include/linux/rcupdate.h:298 [inline] rcu_read_lock include/linux/rcupdate.h:750 [inline] percpu_ref_get_many include/linux/percpu-refcount.h:202 [inline] percpu_ref_get include/linux/percpu-refcount.h:222 [inline] obj_cgroup_get include/linux/memcontrol.h:811 [inline] __memcg_slab_post_alloc_hook+0x14e/0x370 mm/slub.c:1976 memcg_slab_post_alloc_hook mm/slub.c:1993 [inline] slab_post_alloc_hook mm/slub.c:3826 [inline] slab_alloc_node mm/slub.c:3864 [inline] kmem_cache_alloc+0x310/0x320 mm/slub.c:3871 kmem_cache_zalloc include/linux/slab.h:701 [inline] alloc_buffer_head+0x21/0x150 fs/buffer.c:2990 folio_alloc_buffers+0x2c8/0x7d0 fs/buffer.c:924 create_empty_buffers+0x36/0x480 fs/buffer.c:1643 ext4_block_write_begin+0xcc6/0xee0 fs/ext4/inode.c:1036 ext4_da_write_begin+0x40c/0x8c0 fs/ext4/inode.c:2900 generic_perform_write+0x277/0x600 mm/filemap.c:3930 ext4_buffered_write_iter+0x11f/0x3c0 fs/ext4/file.c:299 ext4_file_write_iter+0x819/0x1950 fs/ext4/file.c:698 call_write_iter include/linux/fs.h:2085 [inline] new_sync_write fs/read_write.c:497 [inline] vfs_write+0x64d/0xdf0 fs/read_write.c:590 ksys_write+0x12f/0x250 fs/read_write.c:643 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x62/0x6a RIP: 0033:0x7fef7487cce9 RSP: 002b:00007fef7553a0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fef7499bf80 RCX: 00007fef7487cce9 RDX: 00000000fffffecc RSI: 0000000020000100 RDI: 0000000000000006 RBP: 00007fef748c947a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fef7499bf80 R15: 00007ffc38ad4fb8 rcu: rcu_preempt kthread starved for 10505 jiffies! g98637 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:27312 pid:17 tgid:17 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5400 [inline] __schedule+0xf15/0x5c80 kernel/sched/core.c:6727 __schedule_loop kernel/sched/core.c:6802 [inline] schedule+0xe7/0x270 kernel/sched/core.c:6817 schedule_timeout+0x136/0x290 kernel/time/timer.c:2183 rcu_gp_fqs_loop+0x1eb/0xb00 kernel/rcu/tree.c:1631 rcu_gp_kthread+0x271/0x380 kernel/rcu/tree.c:1830 kthread+0x2c1/0x3a0 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 rcu: Stack dump where RCU GP kthread last ran: CPU: 1 PID: 2857 Comm: kworker/u4:9 Not tainted 6.7.0-rc6-next-20231222-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:csd_lock_wait kernel/smp.c:311 [inline] RIP: 0010:smp_call_function_many_cond+0x4e4/0x1570 kernel/smp.c:855 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 7e c5 0b 00 f3 90 <41> 0f b6 04 24 40 38 c5 7c 08 84 c0 0f 85 44 0e 00 00 8b 43 08 31 RSP: 0018:ffffc9000b6c7920 EFLAGS: 00000293 RAX: 0000000000000000 RBX: ffff8880b9844840 RCX: ffffffff817c4e68 RDX: ffff888028f43b80 RSI: ffffffff817c4e42 RDI: 0000000000000005 RBP: 0000000000000003 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: ffffed1017308909 R13: 0000000000000001 R14: ffff8880b9844848 R15: ffff8880b993dec0 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020260000 CR3: 000000000cf78000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: on_each_cpu_cond_mask+0x40/0x90 kernel/smp.c:1023 on_each_cpu include/linux/smp.h:71 [inline] text_poke_sync arch/x86/kernel/alternative.c:2086 [inline] text_poke_bp_batch+0x22b/0x750 arch/x86/kernel/alternative.c:2296 text_poke_flush arch/x86/kernel/alternative.c:2487 [inline] text_poke_flush arch/x86/kernel/alternative.c:2484 [inline] text_poke_finish+0x30/0x40 arch/x86/kernel/alternative.c:2494 arch_jump_label_transform_apply+0x1c/0x30 arch/x86/kernel/jump_label.c:146 jump_label_update+0x1d7/0x400 kernel/jump_label.c:829 static_key_enable_cpuslocked+0x1b7/0x270 kernel/jump_label.c:205 static_key_enable+0x1a/0x20 kernel/jump_label.c:218 toggle_allocation_gate mm/kfence/core.c:826 [inline] toggle_allocation_gate+0xf4/0x250 mm/kfence/core.c:818 process_one_work+0x8a4/0x15f0 kernel/workqueue.c:2633 process_scheduled_works kernel/workqueue.c:2706 [inline] worker_thread+0x8b6/0x1290 kernel/workqueue.c:2787 kthread+0x2c1/0x3a0 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242