rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 1-...!: (1 GPs behind) idle=e0b4/1/0x4000000000000000 softirq=296816/296817 fqs=0 rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P27404/1:b..l rcu: (detected by 0, t=10505 jiffies, g=391405, q=339 ncpus=2) Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 27373 Comm: syz.1.2913 Not tainted 6.11.0-rc6-syzkaller-00017-gc9f016e72b5c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 RIP: 0010:__kasan_check_read+0x0/0x20 mm/kasan/shadow.c:30 Code: 8e 4c 89 fe e8 71 c0 bb 09 31 db eb d0 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1e fa 89 f6 48 8b 0c 24 31 d2 e9 6f e6 ff ff 66 2e 0f 1f 84 RSP: 0018:ffffc90000a18688 EFLAGS: 00000056 RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000000040000 RDX: 0000000000080000 RSI: 0000000000000008 RDI: ffffffff941e4840 RBP: 000000000000001e R08: 0000000000000001 R09: ffff888060eda8e0 R10: dffffc0000000000 R11: fffffbfff2030de6 R12: ffff888060ed9e00 R13: 0000000000000001 R14: 00000000000c6001 R15: 0000000000000000 FS: 00007f8a913de6c0(0000) GS:ffff8880b8900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9ae5c0f000 CR3: 00000000726a6000 CR4: 0000000000350ef0 Call Trace: instrument_atomic_read include/linux/instrumented.h:68 [inline] _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline] hlock_class kernel/locking/lockdep.c:227 [inline] check_wait_context kernel/locking/lockdep.c:4772 [inline] __lock_acquire+0x4d4/0x2040 kernel/locking/lockdep.c:5092 lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5759 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0xd5/0x120 kernel/locking/spinlock.c:162 debug_object_activate+0x16d/0x510 lib/debugobjects.c:709 debug_hrtimer_activate kernel/time/hrtimer.c:423 [inline] debug_activate kernel/time/hrtimer.c:478 [inline] enqueue_hrtimer+0x30/0x3c0 kernel/time/hrtimer.c:1085 __run_hrtimer kernel/time/hrtimer.c:1706 [inline] __hrtimer_run_queues+0x6cb/0xd50 kernel/time/hrtimer.c:1753 hrtimer_interrupt+0x396/0x990 kernel/time/hrtimer.c:1815 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1032 [inline] __sysvec_apic_timer_interrupt+0x112/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+0x52/0xc0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:variable_ffs arch/x86/include/asm/bitops.h:321 [inline] RIP: 0010:handle_softirqs+0x1df/0x970 kernel/softirq.c:542 Code: 89 7c 24 70 0f b7 db 48 c7 c7 60 ca 09 8c e8 b8 58 62 0a 65 66 c7 05 76 76 ac 7e 00 00 e8 69 90 43 00 fb 49 c7 c4 c0 a0 60 8e ff ff ff ff 0f bc c3 41 89 c7 41 ff c7 0f 84 e6 03 00 00 89 5c RSP: 0018:ffffc90000a18e40 EFLAGS: 00000286 RAX: c2ec6ec5bb14d800 RBX: 0000000000000040 RCX: ffffffff81703fea RDX: dffffc0000000000 RSI: ffffffff8c0ad560 RDI: ffffffff8c608d40 RBP: ffffc90000a18f50 R08: ffffffff941e4a47 R09: 1ffffffff283c948 R10: dffffc0000000000 R11: fffffbfff283c949 R12: ffffffff8e60a0c0 R13: 0000000000000000 R14: dffffc0000000000 R15: 1ffff920001431dc __do_softirq kernel/softirq.c:588 [inline] invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu+0xf4/0x1c0 kernel/softirq.c:637 irq_exit_rcu+0x9/0x30 kernel/softirq.c:649 instr_sysvec_call_function_single arch/x86/kernel/smp.c:266 [inline] sysvec_call_function_single+0xa3/0xc0 arch/x86/kernel/smp.c:266 asm_sysvec_call_function_single+0x1a/0x20 arch/x86/include/asm/idtentry.h:709 RIP: 0010:arch_stack_walk+0x135/0x1b0 arch/x86/kernel/stacktrace.c:27 Code: 89 de e8 ae 0a 5c 00 85 db 74 4b 4c 8d bd 70 ff ff ff 4c 89 ff e8 3b 9f 09 00 48 89 c3 31 ff 48 89 c6 e8 2e 0b 5c 00 48 85 db <74> 31 4c 89 f7 48 89 de 4d 89 eb e8 eb 69 8c 0a 84 c0 74 26 4c 89 RSP: 0018:ffffc9000320e2a0 EFLAGS: 00000246 RAX: 0000000000000002 RBX: 0000000000000000 RCX: ffff888060ed9e00 RDX: ffffc90018b9f000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc9000320e330 R08: ffffffff81378662 R09: 1ffffffff2030de5 R10: dffffc0000000000 R11: fffffbfff2030de6 R12: ffff888060ed9e00 R13: ffffffff817f2f80 R14: ffffc9000320e380 R15: ffffc9000320e2a0 stack_trace_save+0x118/0x1d0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:370 [inline] __kasan_kmalloc+0x98/0xb0 mm/kasan/common.c:387 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slub.c:4158 [inline] __kmalloc_node_track_caller_noprof+0x225/0x440 mm/slub.c:4177 kstrdup+0x3a/0x80 mm/util.c:64 __kernfs_new_node+0x9d/0x870 fs/kernfs/dir.c:620 kernfs_new_node+0x137/0x240 fs/kernfs/dir.c:700 __kernfs_create_file+0x49/0x2e0 fs/kernfs/file.c:1034 sysfs_add_file_mode_ns+0x24a/0x310 fs/sysfs/file.c:307 create_files fs/sysfs/group.c:76 [inline] internal_create_group+0x7a7/0x11d0 fs/sysfs/group.c:180 internal_create_groups fs/sysfs/group.c:220 [inline] sysfs_create_groups+0x56/0x120 fs/sysfs/group.c:246 setup_port drivers/infiniband/core/sysfs.c:1258 [inline] ib_setup_port_attrs+0xfae/0x2440 drivers/infiniband/core/sysfs.c:1444 add_one_compat_dev+0x51a/0x710 drivers/infiniband/core/device.c:975 add_compat_devs drivers/infiniband/core/device.c:1033 [inline] enable_device_and_get+0x31a/0x440 drivers/infiniband/core/device.c:1344 ib_register_device+0x10d4/0x13d0 drivers/infiniband/core/device.c:1426 rxe_register_device+0x267/0x380 drivers/infiniband/sw/rxe/rxe_verbs.c:1524 rxe_net_add+0x98/0x110 drivers/infiniband/sw/rxe/rxe_net.c:542 rxe_newlink+0xde/0x1a0 drivers/infiniband/sw/rxe/rxe.c:197 nldev_newlink+0x5c1/0x640 drivers/infiniband/core/nldev.c:1794 rdma_nl_rcv_skb drivers/infiniband/core/netlink.c:239 [inline] rdma_nl_rcv+0x6df/0x9e0 drivers/infiniband/core/netlink.c:259 netlink_unicast_kernel net/netlink/af_netlink.c:1331 [inline] netlink_unicast+0x7f8/0x990 net/netlink/af_netlink.c:1357 netlink_sendmsg+0x8e4/0xcb0 net/netlink/af_netlink.c:1901 sock_sendmsg_nosec net/socket.c:730 [inline] __sock_sendmsg+0x223/0x270 net/socket.c:745 ____sys_sendmsg+0x525/0x7d0 net/socket.c:2597 ___sys_sendmsg net/socket.c:2651 [inline] __sys_sendmsg+0x2b0/0x3a0 net/socket.c:2680 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f8a91979eb9 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:00007f8a913de038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007f8a91b16208 RCX: 00007f8a91979eb9 RDX: 0000000000000000 RSI: 00000000200002c0 RDI: 0000000000000003 RBP: 00007f8a919e793e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f8a91b16208 R15: 00007ffc52cfaf08 task:syz.5.2916 state:R running task stack:23800 pid:27404 tgid:27399 ppid:26831 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5188 [inline] __schedule+0x1800/0x4a60 kernel/sched/core.c:6529 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:6851 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:lock_acquire+0x264/0x550 kernel/locking/lockdep.c:5763 Code: 2b 00 74 08 4c 89 f7 e8 2a 09 8b 00 f6 44 24 61 02 0f 85 85 01 00 00 41 f7 c7 00 02 00 00 74 01 fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 44 25 00 00 00 00 00 43 c7 44 25 09 00 00 00 00 43 c7 44 25 RSP: 0018:ffffc90003aaee40 EFLAGS: 00000206 RAX: 0000000000000001 RBX: 1ffff92000755dd4 RCX: bc7ec94fff6bbf00 RDX: dffffc0000000000 RSI: ffffffff8c0ae6e0 RDI: ffffffff8c608d40 RBP: ffffc90003aaefa0 R08: ffffffff941e4847 R09: 1ffffffff283c908 R10: dffffc0000000000 R11: fffffbfff283c909 R12: 1ffff92000755dd0 R13: dffffc0000000000 R14: ffffc90003aaeea0 R15: 0000000000000246 rcu_lock_acquire include/linux/rcupdate.h:326 [inline] rcu_read_lock include/linux/rcupdate.h:838 [inline] percpu_ref_get_many+0x36/0x140 include/linux/percpu-refcount.h:202 percpu_ref_get include/linux/percpu-refcount.h:222 [inline] css_get include/linux/cgroup_refcnt.h:11 [inline] mem_cgroup_commit_charge+0x9f/0x380 mm/memcontrol.c:2389 charge_memcg+0xb1/0x160 mm/memcontrol.c:4443 __mem_cgroup_charge+0x27/0x80 mm/memcontrol.c:4454 mem_cgroup_charge include/linux/memcontrol.h:672 [inline] shmem_alloc_and_add_folio+0x88f/0x14f0 mm/shmem.c:1792 shmem_get_folio_gfp+0x8dc/0x2370 mm/shmem.c:2188 shmem_fault+0x252/0x6f0 mm/shmem.c:2388 __do_fault+0x137/0x460 mm/memory.c:4655 do_read_fault mm/memory.c:5061 [inline] do_fault mm/memory.c:5191 [inline] do_pte_missing mm/memory.c:3947 [inline] handle_pte_fault+0x321f/0x6fc0 mm/memory.c:5521 __handle_mm_fault mm/memory.c:5664 [inline] handle_mm_fault+0x1109/0x1bc0 mm/memory.c:5832 faultin_page mm/gup.c:1194 [inline] __get_user_pages+0x6ec/0x16a0 mm/gup.c:1493 populate_vma_page_range+0x264/0x330 mm/gup.c:1932 __mm_populate+0x27a/0x460 mm/gup.c:2035 mm_populate include/linux/mm.h:3430 [inline] vm_mmap_pgoff+0x2c3/0x3d0 mm/util.c:593 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f9af0579eb9 RSP: 002b:00007f9af1400038 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007f9af0716130 RCX: 00007f9af0579eb9 RDX: b635773f07ebbeef RSI: 0000000000b36000 RDI: 0000000020000000 RBP: 00007f9af05e793e R08: ffffffffffffffff R09: 0000000000000000 R10: 0000000000008031 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f9af0716130 R15: 00007fff27aec7b8 rcu: rcu_preempt kthread starved for 10505 jiffies! g391405 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:25560 pid:17 tgid:17 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5188 [inline] __schedule+0x1800/0x4a60 kernel/sched/core.c:6529 __schedule_loop kernel/sched/core.c:6606 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6621 schedule_timeout+0x1be/0x310 kernel/time/timer.c:2581 rcu_gp_fqs_loop+0x2df/0x1330 kernel/rcu/tree.c:2034 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:2236 kthread+0x2f2/0x390 kernel/kthread.c:389 ret_from_fork+0x4d/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 UID: 0 PID: 1097 Comm: kworker/u8:6 Not tainted 6.11.0-rc6-syzkaller-00017-gc9f016e72b5c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:csd_lock_wait kernel/smp.c:312 [inline] RIP: 0010:smp_call_function_many_cond+0x1865/0x29d0 kernel/smp.c:856 Code: 89 e6 83 e6 01 31 ff e8 39 18 0c 00 41 83 e4 01 49 bc 00 00 00 00 00 fc ff df 75 07 e8 e4 13 0c 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 c8 13 0c 00 eb e4 44 RSP: 0018:ffffc900040d7700 EFLAGS: 00000293 RAX: 0000000000000000 RBX: 1ffff110171288f1 RCX: ffff888027f31e00 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc900040d78e0 R08: ffffffff818778b7 R09: 1ffffffff283c908 R10: dffffc0000000000 R11: fffffbfff283c909 R12: dffffc0000000000 R13: ffff8880b8944788 R14: ffff8880b883fb40 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff8880b8800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30b0cff8 CR3: 000000000e734000 CR4: 0000000000350ef0 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:2085 [inline] text_poke_bp_batch+0x352/0xb30 arch/x86/kernel/alternative.c:2295 text_poke_flush arch/x86/kernel/alternative.c:2486 [inline] text_poke_finish+0x30/0x50 arch/x86/kernel/alternative.c:2493 arch_jump_label_transform_apply+0x1c/0x30 arch/x86/kernel/jump_label.c:146 static_key_enable_cpuslocked+0x136/0x260 kernel/jump_label.c:210 static_key_enable+0x1a/0x20 kernel/jump_label.c:223 toggle_allocation_gate+0xb5/0x250 mm/kfence/core.c:833 process_one_work kernel/workqueue.c:3231 [inline] process_scheduled_works+0xa2e/0x1830 kernel/workqueue.c:3312 worker_thread+0x86d/0xd10 kernel/workqueue.c:3389 kthread+0x2f2/0x390 kernel/kthread.c:389 ret_from_fork+0x4d/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244