rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P4553/1:b..l P4640/2:b..l (detected by 1, t=10502 jiffies, g=11133, q=194 ncpus=2) task:syz-executor state:R running task stack:28768 pid:4640 ppid:4270 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x10ec/0x40b0 kernel/sched/core.c:6561 preempt_schedule_irq+0xb1/0x150 kernel/sched/core.c:6873 irqentry_exit+0x63/0x70 kernel/entry/common.c:439 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691 RIP: 0010:lock_acquire+0x20f/0x490 kernel/locking/lockdep.c:5666 Code: 00 9c 8f 84 24 80 00 00 00 f6 84 24 81 00 00 00 02 0f 85 f5 00 00 00 41 f7 c6 00 02 00 00 74 01 fb 48 c7 44 24 60 0e 36 e0 45 <4b> c7 44 3d 00 00 00 00 00 66 43 c7 44 3d 09 00 00 43 c6 44 3d 0b RSP: 0018:ffffc90004b8faa0 EFLAGS: 00000206 RAX: 0000000000000001 RBX: 0000000000000000 RCX: c54c53b4c0d95a00 RDX: 0000000000000000 RSI: ffffffff8a8c1680 RDI: ffffffff8adef020 RBP: ffffc90004b8fba8 R08: dffffc0000000000 R09: fffffbfff215c449 R10: fffffbfff215c449 R11: 1ffffffff215c448 R12: 0000000000000000 R13: 1ffff92000971f60 R14: 0000000000000246 R15: dffffc0000000000 rcu_lock_acquire include/linux/rcupdate.h:350 [inline] rcu_read_lock include/linux/rcupdate.h:791 [inline] percpu_ref_tryget_many include/linux/percpu-refcount.h:241 [inline] percpu_ref_tryget include/linux/percpu-refcount.h:266 [inline] css_tryget include/linux/cgroup.h:357 [inline] get_mem_cgroup_from_objcg include/linux/memcontrol.h:523 [inline] memcg_slab_pre_alloc_hook mm/slab.h:493 [inline] slab_pre_alloc_hook+0x18b/0x310 mm/slab.h:715 slab_alloc_node mm/slub.c:3279 [inline] slab_alloc mm/slub.c:3367 [inline] __kmem_cache_alloc_lru mm/slub.c:3374 [inline] kmem_cache_alloc_lru+0x49/0x2e0 mm/slub.c:3390 alloc_inode_sb include/linux/fs.h:3245 [inline] shmem_alloc_inode+0x24/0x40 mm/shmem.c:3898 alloc_inode fs/inode.c:261 [inline] new_inode_pseudo+0x5f/0x1c0 fs/inode.c:1063 new_inode+0x25/0x1c0 fs/inode.c:1091 shmem_get_inode+0x347/0xbf0 mm/shmem.c:2354 shmem_symlink+0x97/0x670 mm/shmem.c:3150 vfs_symlink+0x247/0x3d0 fs/namei.c:4471 do_symlinkat+0x1ae/0x3f0 fs/namei.c:4500 __do_sys_symlinkat fs/namei.c:4517 [inline] __se_sys_symlinkat fs/namei.c:4514 [inline] __x64_sys_symlinkat+0x95/0xa0 fs/namei.c:4514 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fefa498e547 RSP: 002b:00007ffc7ebe93b8 EFLAGS: 00000206 ORIG_RAX: 000000000000010a RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fefa498e547 RDX: 00007fefa4a13862 RSI: 00000000ffffff9c RDI: 00007ffc7ebe9450 RBP: 00007ffc7ebe93fc R08: 0000000000000013 R09: 00007ffc7ebe9107 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000011 R13: 00000000000927c0 R14: 00000000000198e9 R15: 00007ffc7ebe9450 task:syz.2.48 state:R running task stack:25728 pid:4553 ppid:4275 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x10ec/0x40b0 kernel/sched/core.c:6561 preempt_schedule_irq+0xb1/0x150 kernel/sched/core.c:6873 irqentry_exit+0x63/0x70 kernel/entry/common.c:439 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691 RIP: 0010:mt_locked lib/maple_tree.c:807 [inline] RIP: 0010:mas_root lib/maple_tree.c:858 [inline] RIP: 0010:mas_start lib/maple_tree.c:1399 [inline] RIP: 0010:mas_state_walk lib/maple_tree.c:3894 [inline] RIP: 0010:mt_find+0x339/0x810 lib/maple_tree.c:6537 Code: 7b f7 41 81 ff 00 03 00 00 75 28 e8 51 9c 7b f7 4c 89 e8 48 c1 e8 03 42 80 3c 20 00 74 08 4c 89 ef e8 2b ca cb f7 4d 8b 6d 00 10 e8 30 9c 7b f7 eb 49 e8 29 9c 7b f7 49 83 c5 18 4c 89 ef be RSP: 0018:ffffc90004aff6a0 EFLAGS: 00000246 RAX: 1ffff11005f63e10 RBX: ffff88807d09ec1e RCX: 0000000000080000 RDX: ffffc9000fc56000 RSI: 000000000007ffff RDI: 0000000000080000 RBP: ffffc90004aff7b0 R08: dffffc0000000000 R09: fffffbfff215c449 R10: fffffbfff215c449 R11: 1ffffffff215c448 R12: dffffc0000000000 R13: ffff88802fb1f1d8 R14: ffffffffffffff00 R15: 0000000000000300 find_vma+0x126/0x1a0 mm/mmap.c:1898 lock_mm_and_find_vma+0x71/0x2f0 mm/memory.c:5387 do_user_addr_fault+0x2db/0xb10 arch/x86/mm/fault.c:1312 handle_page_fault arch/x86/mm/fault.c:1431 [inline] exc_page_fault+0x60/0x100 arch/x86/mm/fault.c:1487 asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:608 RIP: 0010:copy_user_short_string+0xa/0x40 arch/x86/lib/copy_user_64.S:232 Code: 83 f8 12 74 0a 89 d1 f3 a4 89 c8 0f 01 ca c3 89 d0 0f 01 ca c3 01 ca eb e7 90 90 90 90 90 90 90 89 d1 83 e2 07 c1 e9 03 74 12 <4c> 8b 06 4c 89 07 48 8d 76 08 48 8d 7f 08 ff c9 75 ee 21 d2 74 10 RSP: 0018:ffffc90004affa48 EFLAGS: 00050202 RAX: ffffffff84071301 RBX: 0000000000000038 RCX: 0000000000000007 RDX: 0000000000000000 RSI: 0000200000388000 RDI: ffffc90004affae0 RBP: 0000000000000000 R08: dffffc0000000000 R09: fffff5200095ff63 R10: fffff5200095ff63 R11: 1ffff9200095ff5c R12: 00007fffffffefc8 R13: dffffc0000000000 R14: ffffc90004affae0 R15: 0000200000388000 copy_user_generic arch/x86/include/asm/uaccess_64.h:37 [inline] raw_copy_from_user arch/x86/include/asm/uaccess_64.h:52 [inline] _copy_from_user+0xf4/0x170 lib/usercopy.c:23 copy_from_user include/linux/uaccess.h:161 [inline] copy_msghdr_from_user net/socket.c:2449 [inline] recvmsg_copy_msghdr net/socket.c:2704 [inline] ___sys_recvmsg+0x12b/0x510 net/socket.c:2776 do_recvmmsg+0x359/0x7d0 net/socket.c:2874 __sys_recvmmsg net/socket.c:2953 [inline] __do_sys_recvmmsg net/socket.c:2976 [inline] __se_sys_recvmmsg net/socket.c:2969 [inline] __x64_sys_recvmmsg+0x18d/0x240 net/socket.c:2969 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fbb1838efc9 RSP: 002b:00007fbb165d5038 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007fbb185e6090 RCX: 00007fbb1838efc9 RDX: 0000000000010106 RSI: 00002000000000c0 RDI: 0000000000000003 RBP: 00007fbb18411f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fbb185e6128 R14: 00007fbb185e6090 R15: 00007ffd42bc0f98 rcu: rcu_preempt kthread starved for 9885 jiffies! g11133 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:27840 pid:16 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x10ec/0x40b0 kernel/sched/core.c:6561 schedule+0xb9/0x180 kernel/sched/core.c:6637 schedule_timeout+0x15c/0x280 kernel/time/timer.c:1965 rcu_gp_fqs_loop+0x2f2/0x1310 kernel/rcu/tree.c:1706 rcu_gp_kthread+0x95/0x380 kernel/rcu/tree.c:1905 kthread+0x29d/0x330 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 rcu: Stack dump where RCU GP kthread last ran: Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 skipped: idling at native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline] NMI backtrace for cpu 0 skipped: idling at arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline] NMI backtrace for cpu 0 skipped: idling at default_idle+0xb/0x10 arch/x86/kernel/process.c:741 sched: RT throttling activated