rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 1-...!: (1 GPs behind) idle=183/1/0x4000000000000000 softirq=56943/56944 fqs=18 (detected by 0, t=10502 jiffies, g=66509, q=479) Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 19963 Comm: udevd Not tainted 5.15.173-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:arch_atomic_try_cmpxchg arch/x86/include/asm/atomic.h:202 [inline] RIP: 0010:atomic_try_cmpxchg_acquire include/linux/atomic/atomic-instrumented.h:513 [inline] RIP: 0010:queued_spin_lock include/asm-generic/qspinlock.h:82 [inline] RIP: 0010:do_raw_spin_lock+0x14a/0x370 kernel/locking/spinlock_debug.c:115 Code: 89 d3 0f 85 9e 01 00 00 c7 44 24 60 00 00 00 00 4c 89 e7 be 04 00 00 00 e8 73 1a 66 00 4c 89 f7 be 04 00 00 00 e8 66 1a 66 00 <41> 0f b6 44 1d 00 84 c0 48 89 da 0f 85 89 01 00 00 8b 44 24 60 b9 RSP: 0018:ffffc90000dd0be0 EFLAGS: 00000097 RAX: 0000000000000001 RBX: dffffc0000000000 RCX: ffffffff8164331a RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffffc90000dd0c40 RBP: ffffc90000dd0cb0 R08: dffffc0000000000 R09: 0000000000000003 R10: ffffffffffffffff R11: dffffc0000000001 R12: ffff8880b8f2a200 R13: 1ffff920001ba188 R14: ffffc90000dd0c40 R15: 1ffff110171e5441 FS: 00007f6a87544c80(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2d61fffc CR3: 00000000232bb000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __raw_spin_lock_irq include/linux/spinlock_api_smp.h:129 [inline] _raw_spin_lock_irq+0xdb/0x110 kernel/locking/spinlock.c:170 __run_hrtimer kernel/time/hrtimer.c:1692 [inline] __hrtimer_run_queues+0x662/0xcf0 kernel/time/hrtimer.c:1752 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1814 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1097 [inline] __sysvec_apic_timer_interrupt+0x13b/0x4b0 arch/x86/kernel/apic/apic.c:1114 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline] sysvec_apic_timer_interrupt+0x9b/0xc0 arch/x86/kernel/apic/apic.c:1108 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676 RIP: 0010:__unwind_start+0x1/0x720 arch/x86/kernel/unwind_orc.c:631 Code: 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 70 ff ff ff 48 89 df e8 41 92 91 00 e9 63 ff ff ff 66 2e 0f 1f 84 00 00 00 00 00 66 90 55 <41> 57 41 56 41 55 41 54 53 48 83 ec 28 48 89 4c 24 10 49 89 d4 48 RSP: 0018:ffffc90002def510 EFLAGS: 00000246 RAX: ffff8880670f3b80 RBX: ffffc90002def610 RCX: ffffc90002def5b0 RDX: 0000000000000000 RSI: ffff8880670f3b80 RDI: ffffc90002def520 RBP: ffffc90002def5b0 R08: dffffc0000000000 R09: ffffc90002def6b0 R10: 0000000000000006 R11: dffffc0000000001 R12: ffff8880670f3b80 R13: ffffffff816e0980 R14: ffffc90002def600 R15: 0000000000000000 unwind_start arch/x86/include/asm/unwind.h:60 [inline] arch_stack_walk+0xdb/0x140 arch/x86/kernel/stacktrace.c:24 stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4b/0x80 mm/kasan/common.c:46 kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:360 ____kasan_slab_free+0xd8/0x120 mm/kasan/common.c:366 kasan_slab_free include/linux/kasan.h:230 [inline] slab_free_hook mm/slub.c:1705 [inline] slab_free_freelist_hook+0xdd/0x160 mm/slub.c:1731 slab_free mm/slub.c:3499 [inline] kfree+0xf1/0x270 mm/slub.c:4559 tomoyo_path_perm+0x555/0x6b0 security/tomoyo/file.c:842 security_inode_getattr+0xcf/0x120 security/security.c:1348 vfs_getattr+0x26/0x360 fs/stat.c:157 vfs_statx+0x18f/0x3b0 fs/stat.c:225 vfs_fstatat fs/stat.c:243 [inline] __do_sys_newfstatat fs/stat.c:411 [inline] __se_sys_newfstatat fs/stat.c:405 [inline] __x64_sys_newfstatat+0x12c/0x1b0 fs/stat.c:405 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7f6a8766f5f4 Code: 64 c7 00 09 00 00 00 83 c8 ff c3 48 89 f2 b9 00 01 00 00 48 89 fe bf 9c ff ff ff e9 00 00 00 00 41 89 ca b8 06 01 00 00 0f 05 <45> 31 c0 3d 00 f0 ff ff 76 10 48 8b 15 03 a8 0d 00 f7 d8 41 83 c8 RSP: 002b:00007ffc38a760e8 EFLAGS: 00000206 ORIG_RAX: 0000000000000106 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f6a8766f5f4 RDX: 00007ffc38a76148 RSI: 00007f6a8770c130 RDI: 0000000000000009 RBP: 00005654d23daaa0 R08: 0000000000000000 R09: 00007f6a8774ac10 R10: 0000000000001000 R11: 0000000000000206 R12: 0000000000000009 R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000001 rcu: rcu_preempt kthread starved for 10457 jiffies! g66509 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:26712 pid: 15 ppid: 2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5027 [inline] __schedule+0x12c4/0x45b0 kernel/sched/core.c:6373 schedule+0x11b/0x1f0 kernel/sched/core.c:6456 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1914 rcu_gp_fqs_loop+0x2bf/0x1080 kernel/rcu/tree.c:1972 rcu_gp_kthread+0xa4/0x360 kernel/rcu/tree.c:2145 kthread+0x3f6/0x4f0 kernel/kthread.c:334 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287 rcu: Stack dump where RCU GP kthread last ran: NMI backtrace for cpu 0 CPU: 0 PID: 20542 Comm: syz.7.3647 Not tainted 5.15.173-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x46a/0x4a0 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x181/0x2a0 lib/nmi_backtrace.c:62 trigger_single_cpu_backtrace include/linux/nmi.h:166 [inline] rcu_check_gp_kthread_starvation+0x1d2/0x240 kernel/rcu/tree_stall.h:487 print_other_cpu_stall+0x137a/0x14d0 kernel/rcu/tree_stall.h:592 check_cpu_stall kernel/rcu/tree_stall.h:745 [inline] rcu_pending kernel/rcu/tree.c:3932 [inline] rcu_sched_clock_irq+0xa38/0x1150 kernel/rcu/tree.c:2619 update_process_times+0x196/0x200 kernel/time/timer.c:1818 tick_sched_handle kernel/time/tick-sched.c:254 [inline] tick_sched_timer+0x386/0x550 kernel/time/tick-sched.c:1473 __run_hrtimer kernel/time/hrtimer.c:1688 [inline] __hrtimer_run_queues+0x55b/0xcf0 kernel/time/hrtimer.c:1752 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1814 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1097 [inline] __sysvec_apic_timer_interrupt+0x13b/0x4b0 arch/x86/kernel/apic/apic.c:1114 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline] sysvec_apic_timer_interrupt+0x9b/0xc0 arch/x86/kernel/apic/apic.c:1108 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676 RIP: 0010:csd_lock_wait kernel/smp.c:440 [inline] RIP: 0010:smp_call_function_many_cond+0xa93/0xd90 kernel/smp.c:969 Code: 04 03 84 c0 0f 85 84 00 00 00 45 8b 7d 00 44 89 fe 83 e6 01 31 ff e8 4c d5 0b 00 41 83 e7 01 75 07 e8 e1 d1 0b 00 eb 41 f3 90 <48> b8 00 00 00 00 00 fc ff df 0f b6 04 03 84 c0 75 11 41 f7 45 00 RSP: 0018:ffffc9000401f220 EFLAGS: 00000246 RAX: ffffffff8174a1e4 RBX: 1ffff110171e80b1 RCX: 0000000000080000 RDX: ffffc90003971000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc9000401f360 R08: ffffffff8174a1b4 R09: fffffbfff2131022 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001 R13: ffff8880b8f40588 R14: ffff8880b8e3b380 R15: 0000000000000001 on_each_cpu_cond_mask+0x3b/0x80 kernel/smp.c:1135 __purge_vmap_area_lazy+0x294/0x1740 mm/vmalloc.c:1683 _vm_unmap_aliases+0x453/0x4e0 mm/vmalloc.c:2107 change_page_attr_set_clr+0x308/0x1050 arch/x86/mm/pat/set_memory.c:1740 change_page_attr_clear arch/x86/mm/pat/set_memory.c:1797 [inline] set_memory_ro+0xa1/0xe0 arch/x86/mm/pat/set_memory.c:1943 bpf_jit_binary_lock_ro include/linux/filter.h:892 [inline] bpf_int_jit_compile+0xbf36/0xc6c0 arch/x86/net/bpf_jit_comp.c:2422 bpf_prog_select_runtime+0x701/0x9f0 kernel/bpf/core.c:1930 bpf_prog_load+0x131c/0x1b60 kernel/bpf/syscall.c:2357 __sys_bpf+0x343/0x670 kernel/bpf/syscall.c:4651 __do_sys_bpf kernel/bpf/syscall.c:4755 [inline] __se_sys_bpf kernel/bpf/syscall.c:4753 [inline] __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:4753 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x66/0xd0 RIP: 0033:0x7fcd2db4bd19 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fcd2b9bc038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007fcd2dd3bfa0 RCX: 00007fcd2db4bd19 RDX: 0000000000000090 RSI: 0000000020000240 RDI: 0000000000000005 RBP: 00007fcd2dbc7a20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fcd2dd3bfa0 R15: 00007fffd7139078