rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P5995/1:b..l P5205/1:b..l P5984/3:b..l P5965/2:b..l rcu: (detected by 1, t=10502 jiffies, g=13093, q=598 ncpus=2) task:syz.3.227 state:R running task stack:24464 pid:5965 tgid:5965 ppid:5096 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5407 [inline] __schedule+0x1800/0x4a60 kernel/sched/core.c:6748 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:7070 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:instrument_atomic_read include/linux/instrumented.h:68 [inline] RIP: 0010:atomic_read include/linux/atomic/atomic-instrumented.h:32 [inline] RIP: 0010:folio_memcg_lock+0x22b/0x390 mm/memcontrol.c:2366 Code: 89 fe 74 0a 48 8d 7c 24 40 e8 61 2b f8 ff f6 44 24 41 02 0f 85 88 00 00 00 41 f7 c4 00 02 00 00 74 01 fb 49 8d 9d 40 09 00 00 <48> 89 df be 04 00 00 00 e8 a8 2d f8 ff 48 89 d8 48 c1 e8 03 48 b9 RSP: 0018:ffffc90004cdea20 EFLAGS: 00000206 RAX: dffffc0000000000 RBX: ffff888065e80940 RCX: 1ffff9200099bd4c RDX: dffffc0000000000 RSI: ffffffff8bcabbc0 RDI: ffffffff8c2028a0 RBP: ffffc90004cdeaf0 R08: ffffffff8fadabef R09: 1ffffffff1f5b57d R10: dffffc0000000000 R11: fffffbfff1f5b57e R12: 0000000000000246 R13: ffff888065e80000 R14: 1ffff9200099bd50 R15: 1ffff9200099bd50 __folio_end_writeback+0x167/0xdb0 mm/page-writeback.c:3050 folio_end_writeback+0x1f7/0x6f0 mm/filemap.c:1632 end_bio_bh_io_sync+0xc1/0x120 fs/buffer.c:2774 blk_update_request+0x5e5/0x1160 block/blk-mq.c:925 blk_mq_end_request+0x3e/0x70 block/blk-mq.c:1053 nullb_complete_cmd drivers/block/null_blk/main.c:1346 [inline] null_handle_cmd drivers/block/null_blk/main.c:1397 [inline] null_queue_rq+0xbb1/0xd60 drivers/block/null_blk/main.c:1637 null_queue_rqs+0x199/0x2b0 drivers/block/null_blk/main.c:1652 __blk_mq_flush_plug_list block/blk-mq.c:2704 [inline] blk_mq_flush_plug_list+0x56f/0x1880 block/blk-mq.c:2781 blk_add_rq_to_plug+0x19c/0x480 block/blk-mq.c:1292 blk_mq_submit_bio+0x127e/0x22d0 block/blk-mq.c:3028 __submit_bio+0x1c1/0x560 block/blk-core.c:615 __submit_bio_noacct_mq block/blk-core.c:696 [inline] submit_bio_noacct_nocheck+0x4d3/0xe30 block/blk-core.c:725 __block_write_full_folio+0x7ed/0xf50 fs/buffer.c:1913 write_cache_pages+0xd2/0x230 mm/page-writeback.c:2613 blkdev_writepages+0xb1/0x110 block/fops.c:436 do_writepages+0x35b/0x870 mm/page-writeback.c:2656 filemap_fdatawrite_wbc+0x125/0x180 mm/filemap.c:397 __filemap_fdatawrite_range mm/filemap.c:430 [inline] filemap_write_and_wait_range+0x198/0x290 mm/filemap.c:685 filemap_write_and_wait include/linux/pagemap.h:66 [inline] sync_blockdev block/bdev.c:218 [inline] bdev_release+0x165/0x700 block/bdev.c:1078 blkdev_release+0x15/0x20 block/fops.c:638 __fput+0x24c/0x8a0 fs/file_table.c:422 task_work_run+0x251/0x310 kernel/task_work.c:180 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0xa27/0x27e0 kernel/exit.c:876 do_group_exit+0x207/0x2c0 kernel/exit.c:1025 __do_sys_exit_group kernel/exit.c:1036 [inline] __se_sys_exit_group kernel/exit.c:1034 [inline] __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1034 x64_sys_call+0x2634/0x2640 arch/x86/include/generated/asm/syscalls_64.h:232 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:0x7f6dc1175bd9 RSP: 002b:00007ffe8ecd9d18 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f6dc1175bd9 RDX: 0000000000000064 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000001 R08: 0000000e8ecd9e3f R09: 0000000000000000 R10: 0000000000000006 R11: 0000000000000246 R12: 00007ffe8ecd9e00 R13: 0000000000000000 R14: 0000000000000000 R15: 00007ffe8ecd9e00 task:syz.5.230 state:R running task stack:24240 pid:5984 tgid:5978 ppid:5090 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5407 [inline] __schedule+0x1800/0x4a60 kernel/sched/core.c:6748 preempt_schedule_common+0x84/0xd0 kernel/sched/core.c:6927 preempt_schedule+0xe1/0xf0 kernel/sched/core.c:6951 preempt_schedule_thunk+0x1a/0x30 arch/x86/entry/thunk.S:12 __raw_spin_unlock include/linux/spinlock_api_smp.h:143 [inline] _raw_spin_unlock+0x3e/0x50 kernel/locking/spinlock.c:186 spin_unlock include/linux/spinlock.h:391 [inline] filemap_map_pages+0x1707/0x1e70 mm/filemap.c:3655 do_fault_around mm/memory.c:4879 [inline] do_read_fault mm/memory.c:4912 [inline] do_fault mm/memory.c:5051 [inline] do_pte_missing mm/memory.c:3897 [inline] handle_pte_fault+0x3b9d/0x7090 mm/memory.c:5381 __handle_mm_fault mm/memory.c:5524 [inline] handle_mm_fault+0x10df/0x1ba0 mm/memory.c:5689 faultin_page mm/gup.c:1305 [inline] __get_user_pages+0x6ec/0x16a0 mm/gup.c:1604 populate_vma_page_range+0x264/0x330 mm/gup.c:2043 __mm_populate+0x27a/0x460 mm/gup.c:2146 mm_populate include/linux/mm.h:3469 [inline] vm_mmap_pgoff+0x2c3/0x3d0 mm/util.c:578 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:0x7f9c2c175bd9 RSP: 002b:00007f9c2bbde048 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007f9c2c304110 RCX: 00007f9c2c175bd9 RDX: 0000000000000003 RSI: 0000000000b36000 RDI: 0000000020000000 RBP: 00007f9c2c1e4e60 R08: ffffffffffffffff R09: 0000000000000000 R10: 0000000000008031 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f9c2c304110 R15: 00007fffa4e83bc8 task:udevd state:R running task stack:24240 pid:5205 tgid:5205 ppid:4539 flags:0x00000002 Call Trace: context_switch kernel/sched/core.c:5407 [inline] __schedule+0x1800/0x4a60 kernel/sched/core.c:6748 preempt_schedule_common+0x84/0xd0 kernel/sched/core.c:6927 preempt_schedule+0xe1/0xf0 kernel/sched/core.c:6951 preempt_schedule_thunk+0x1a/0x30 arch/x86/entry/thunk.S:12 __raw_spin_unlock include/linux/spinlock_api_smp.h:143 [inline] _raw_spin_unlock+0x3e/0x50 kernel/locking/spinlock.c:186 spin_unlock include/linux/spinlock.h:391 [inline] lockref_get_not_dead+0x78/0xc0 lib/lockref.c:190 __legitimize_path fs/namei.c:717 [inline] legitimize_path fs/namei.c:727 [inline] try_to_unlazy+0x12c/0x5b0 fs/namei.c:788 may_lookup fs/namei.c:1755 [inline] link_path_walk+0x83e/0xea0 fs/namei.c:2352 path_openat+0x25d/0x3470 fs/namei.c:3882 do_filp_open+0x235/0x490 fs/namei.c:3913 do_sys_openat2+0x13e/0x1d0 fs/open.c:1416 do_sys_open fs/open.c:1431 [inline] __do_sys_openat fs/open.c:1447 [inline] __se_sys_openat fs/open.c:1442 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1442 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:0x7fdd22b73ab9 RSP: 002b:00007ffecba56c00 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007ffecba58d60 RCX: 00007fdd22b73ab9 RDX: 0000000000080000 RSI: 00007fdd22ce7dd8 RDI: 000000000000000b RBP: 000055d853ba21a0 R08: 000055d853b8f2f0 R09: 00007fdd22c4eb20 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000000b R13: 00007fdd22ce7dd8 R14: 0000000000080000 R15: 0000000000000001 task:syz-executor state:R running task stack:26784 pid:5995 tgid:5995 ppid:5093 flags:0x00000000 Call Trace: context_switch kernel/sched/core.c:5407 [inline] __schedule+0x1800/0x4a60 kernel/sched/core.c:6748 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:7070 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+0x0/0x70 kernel/kcov.c:200 Code: 89 fb e8 23 00 00 00 48 8b 3d 0c c5 45 0c 48 89 de 5b e9 43 4e 5a 00 0f 1f 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1e fa 48 8b 04 24 65 48 8b 0c 25 c0 d4 03 00 65 8b 15 90 76 RSP: 0018:ffffc90009287a58 EFLAGS: 00000202 RAX: 0000000000000000 RBX: ffff888028f7c180 RCX: ffffffff8ba00130 RDX: ffff888028f7bc00 RSI: 0000000005040334 RDI: 0000000000000000 RBP: ffffc90009287b90 R08: ffffffff82064585 R09: 000000000000000c R10: dffffc0000000000 R11: fffffbfff1f5b57e R12: dffffc0000000000 R13: 1ffff92001250f50 R14: 0000000005040334 R15: 1ffff110051ef830 save_stack+0x11f/0x1f0 mm/page_owner.c:158 __reset_page_owner+0x75/0x3f0 mm/page_owner.c:297 reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1093 [inline] free_unref_page+0xd22/0xea0 mm/page_alloc.c:2588 discard_slab mm/slub.c:2527 [inline] __put_partials+0xeb/0x130 mm/slub.c:2995 put_cpu_partial+0x17c/0x250 mm/slub.c:3070 __slab_free+0x2ea/0x3d0 mm/slub.c:4308 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9e/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:322 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3940 [inline] slab_alloc_node mm/slub.c:4002 [inline] kmem_cache_alloc_noprof+0x135/0x2a0 mm/slub.c:4009 getname_flags+0xb7/0x540 fs/namei.c:139 getname fs/namei.c:225 [inline] __do_sys_symlinkat fs/namei.c:4610 [inline] __se_sys_symlinkat fs/namei.c:4607 [inline] __x64_sys_symlinkat+0x7a/0xb0 fs/namei.c:4607 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:0x7fb91ef751f7 RSP: 002b:00007ffdcccc37c8 EFLAGS: 00000202 ORIG_RAX: 000000000000010a RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fb91ef751f7 RDX: 00007fb91efe4b04 RSI: 00000000ffffff9c RDI: 00007ffdcccc3890 RBP: 0000000000000001 R08: 0000000000000013 R09: 00007ffdcccc3517 R10: 0000000000000000 R11: 0000000000000202 R12: 00007ffdcccc3890 R13: 0000000000000000 R14: 0000000000000000 R15: 00007ffdcccc3890 rcu: rcu_preempt kthread starved for 10524 jiffies! g13093 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:25328 pid:17 tgid:17 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5407 [inline] __schedule+0x1800/0x4a60 kernel/sched/core.c:6748 __schedule_loop kernel/sched/core.c:6825 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6840 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: 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:48 [inline] NMI backtrace for cpu 0 skipped: idling at arch_safe_halt arch/x86/include/asm/irqflags.h:86 [inline] NMI backtrace for cpu 0 skipped: idling at acpi_safe_halt+0x21/0x30 drivers/acpi/processor_idle.c:111