rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 1-...!: (1 GPs behind) idle=c944/1/0x4000000000000000 softirq=80273/80277 fqs=9 rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P18667/1:b..l rcu: (detected by 0, t=10502 jiffies, g=110501, q=333 ncpus=2) Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 17960 Comm: syz-executor.3 Not tainted 6.9.0-rc7-next-20240507-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:26 [inline] RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:67 [inline] RIP: 0010:arch_irqs_disabled arch/x86/include/asm/irqflags.h:127 [inline] RIP: 0010:lock_release+0x5fd/0x9f0 kernel/locking/lockdep.c:5777 Code: 01 0f 85 9a 00 00 00 4c 89 f3 48 c1 eb 03 42 80 3c 3b 00 74 08 4c 89 f7 e8 40 37 89 00 48 c7 84 24 90 00 00 00 00 00 00 00 9c <8f> 84 24 90 00 00 00 42 80 3c 3b 00 74 08 4c 89 f7 e8 2d 36 89 00 RSP: 0018:ffffc90000a18a58 EFLAGS: 00000046 RAX: 0000000000000001 RBX: 1ffff9200014315e RCX: ffffc90000a18a03 RDX: 0000000000000004 RSI: ffffffff8bcac4c0 RDI: ffffffff8c1fc9c0 RBP: ffffc90000a18b90 R08: ffffffff8fad0c2f R09: 1ffffffff1f5a185 R10: dffffc0000000000 R11: fffffbfff1f5a186 R12: 1ffff92000143158 R13: 0000000000000046 R14: ffffc90000a18af0 R15: dffffc0000000000 FS: 00007efef31666c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000200000c0 CR3: 000000002ecea000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:149 [inline] _raw_spin_unlock_irqrestore+0x79/0x140 kernel/locking/spinlock.c:194 debug_object_deactivate+0x2d5/0x390 lib/debugobjects.c:778 debug_hrtimer_deactivate kernel/time/hrtimer.c:428 [inline] debug_deactivate+0x1b/0x220 kernel/time/hrtimer.c:484 __run_hrtimer kernel/time/hrtimer.c:1655 [inline] __hrtimer_run_queues+0x30f/0xd50 kernel/time/hrtimer.c:1751 hrtimer_interrupt+0x396/0x990 kernel/time/hrtimer.c:1813 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1032 [inline] __sysvec_apic_timer_interrupt+0x110/0x3f0 arch/x86/kernel/apic/apic.c:1049 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0xa1/0xc0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:kasan_check_range+0x1b7/0x290 mm/kasan/generic.c:189 Code: f5 4d 01 fb 48 8d 5d 07 48 85 ed 48 0f 49 dd 48 83 e3 f8 48 29 dd 74 12 41 80 3b 00 0f 85 a6 00 00 00 49 ff c3 48 ff cd 75 ee <5b> 41 5c 41 5e 41 5f 5d c3 cc cc cc cc 40 84 ed 75 5f f7 c5 00 ff RSP: 0018:ffffc90009ad7010 EFLAGS: 00000256 RAX: 0000000000000001 RBX: 1ffffd40002cc476 RCX: ffffffff81cc624a RDX: 0000000000000001 RSI: 0000000000000004 RDI: ffffea00016623b4 RBP: 0000000000000000 R08: ffffea00016623b7 R09: 1ffffd40002cc476 R10: dffffc0000000000 R11: fffff940002cc477 R12: ffffea0001662380 R13: ffffea00016623b4 R14: dffffc0000000001 R15: fffff940002cc477 instrument_atomic_read_write include/linux/instrumented.h:96 [inline] atomic_add_unless include/linux/atomic/atomic-instrumented.h:1517 [inline] page_ref_add_unless include/linux/page_ref.h:233 [inline] folio_ref_add_unless include/linux/page_ref.h:242 [inline] folio_ref_try_add_rcu include/linux/page_ref.h:275 [inline] folio_try_get_rcu include/linux/page_ref.h:308 [inline] filemap_get_entry+0x26a/0x4e0 mm/filemap.c:1850 __filemap_get_folio+0x65/0xbb0 mm/filemap.c:1885 grow_dev_folio fs/buffer.c:1049 [inline] grow_buffers fs/buffer.c:1115 [inline] __getblk_slow fs/buffer.c:1141 [inline] bdev_getblk+0x201/0x5a0 fs/buffer.c:1443 __bread_gfp+0x86/0x400 fs/buffer.c:1497 sb_bread include/linux/buffer_head.h:347 [inline] get_branch+0x2c3/0x6e0 fs/sysv/itree.c:102 get_block+0x180/0x16d0 fs/sysv/itree.c:222 block_read_full_folio+0x42e/0xe10 fs/buffer.c:2407 filemap_read_folio+0x1a0/0x790 mm/filemap.c:2355 do_read_cache_folio+0x134/0x820 mm/filemap.c:3789 do_read_cache_page+0x30/0x200 mm/filemap.c:3855 read_mapping_page include/linux/pagemap.h:888 [inline] dir_get_page fs/sysv/dir.c:64 [inline] sysv_find_entry+0x1af/0x410 fs/sysv/dir.c:157 sysv_inode_by_name+0x98/0x1f0 fs/sysv/dir.c:374 sysv_lookup+0x6b/0xe0 fs/sysv/namei.c:38 lookup_open fs/namei.c:3483 [inline] open_last_lookups fs/namei.c:3574 [inline] path_openat+0x1033/0x3280 fs/namei.c:3804 do_filp_open+0x235/0x490 fs/namei.c:3834 do_sys_openat2+0x13e/0x1d0 fs/open.c:1405 do_sys_open fs/open.c:1420 [inline] __do_sys_creat fs/open.c:1496 [inline] __se_sys_creat fs/open.c:1490 [inline] __x64_sys_creat+0x123/0x170 fs/open.c:1490 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7efef247dd69 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:00007efef31660c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007efef25abf80 RCX: 00007efef247dd69 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 00000000200000c0 RBP: 00007efef24ca49e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007efef25abf80 R15: 00007ffd27881d98 task:syz-executor.0 state:R running task stack:26936 pid:18667 tgid:18666 ppid:17879 flags:0x00000002 Call Trace: context_switch kernel/sched/core.c:5408 [inline] __schedule+0x17e8/0x4a50 kernel/sched/core.c:6745 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:7067 irqentry_exit+0x5e/0x90 kernel/entry/common.c:354 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:__sanitizer_cov_trace_pc+0x5d/0x70 kernel/kcov.c:225 Code: f8 15 00 00 83 fa 02 75 21 48 8b 91 00 16 00 00 48 8b 32 48 8d 7e 01 8b 89 fc 15 00 00 48 39 cf 73 08 48 89 3a 48 89 44 f2 08 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 90 90 90 RSP: 0000:ffffc9000c457ed0 EFLAGS: 00000287 RAX: ffffffff8141bc8b RBX: ffff88806685c4d8 RCX: 0000000000040000 RDX: ffffc90005231000 RSI: 00000000000139c4 RDI: 00000000000139c5 RBP: 0000000000000001 R08: ffffffff8141bc79 R09: 1ffffffff25f56b0 R10: dffffc0000000000 R11: fffffbfff25f56b1 R12: ffff888021005a00 R13: 0000000000000254 R14: ffffffff8141bc48 R15: 0000000000000004 rcu_read_lock include/linux/rcupdate.h:840 [inline] vma_end_read+0x5b/0x170 include/linux/mm.h:701 do_user_addr_fault arch/x86/mm/fault.c:1340 [inline] handle_page_fault arch/x86/mm/fault.c:1481 [inline] exc_page_fault+0x4c8/0x8c0 arch/x86/mm/fault.c:1539 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0033:0x7f5f79e29806 RSP: 002b:00007f5f7abf3530 EFLAGS: 00010206 RAX: 000000000025d001 RBX: 00007f5f7abf35d0 RCX: 0000000000000062 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 00007f5f7abf3670 RBP: 0000000000000102 R08: 00007f5f6fc00000 R09: 000000000025d000 R10: 0000000000000000 R11: 00007f5f7abf35e0 R12: 0000000000000001 R13: 00007f5f79eecfe0 R14: 0000000000000000 R15: 00007f5f7abf3670 rcu: rcu_preempt kthread starved for 10484 jiffies! g110501 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:24880 pid:17 tgid:17 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5408 [inline] __schedule+0x17e8/0x4a50 kernel/sched/core.c:6745 __schedule_loop kernel/sched/core.c:6822 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6837 schedule_timeout+0x1be/0x310 kernel/time/timer.c:2581 rcu_gp_fqs_loop+0x2df/0x1370 kernel/rcu/tree.c:2031 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:2233 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 rcu: Stack dump where RCU GP kthread last ran: CPU: 0 PID: 18677 Comm: syz-executor.4 Not tainted 6.9.0-rc7-next-20240507-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 RIP: 0010:csd_lock_wait kernel/smp.c:311 [inline] RIP: 0010:smp_call_function_many_cond+0x1894/0x2a00 kernel/smp.c:855 Code: 45 8b 65 00 44 89 e6 83 e6 01 31 ff e8 e5 f2 0b 00 41 83 e4 01 49 bc 00 00 00 00 00 fc ff df 75 07 e8 90 ee 0b 00 eb 38 f3 90 <42> 0f b6 04 23 84 c0 75 11 41 f7 45 00 01 00 00 00 74 1e e8 74 ee RSP: 0018:ffffc9000e0d7960 EFLAGS: 00000246 RAX: ffffffff818a2b2c RBX: 1ffff110172a88a9 RCX: 0000000000040000 RDX: ffffc90013139000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: ffffc9000e0d7b60 R08: ffffffff818a2afb R09: 1ffffffff25f56b0 R10: dffffc0000000000 R11: fffffbfff25f56b1 R12: dffffc0000000000 R13: ffff8880b9544548 R14: ffff8880b943f900 R15: 0000000000000001 FS: 00007f8a80a846c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f8a80a84d58 CR3: 0000000048d28000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: on_each_cpu_cond_mask+0x3f/0x80 kernel/smp.c:1023 on_each_cpu include/linux/smp.h:71 [inline] text_poke_sync arch/x86/kernel/alternative.c:2069 [inline] text_poke_bp_batch+0x352/0xb30 arch/x86/kernel/alternative.c:2279 text_poke_flush arch/x86/kernel/alternative.c:2470 [inline] text_poke_finish+0x30/0x50 arch/x86/kernel/alternative.c:2477 arch_jump_label_transform_apply+0x1c/0x30 arch/x86/kernel/jump_label.c:146 static_key_slow_inc_cpuslocked+0xb3/0x150 kernel/jump_label.c:165 static_key_slow_inc+0x1a/0x30 kernel/jump_label.c:186 bpf_enable_runtime_stats kernel/bpf/syscall.c:5518 [inline] bpf_enable_stats+0xfe/0x140 kernel/bpf/syscall.c:5537 __sys_bpf+0x75b/0x810 kernel/bpf/syscall.c:5770 __do_sys_bpf kernel/bpf/syscall.c:5794 [inline] __se_sys_bpf kernel/bpf/syscall.c:5792 [inline] __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5792 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f8a7fc7dd69 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:00007f8a80a840c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007f8a7fdac120 RCX: 00007f8a7fc7dd69 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000020 RBP: 00007f8a7fcca49e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f8a7fdac120 R15: 00007ffcbd5fa7d8