rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P4495/1:b..l P5094/1:b..l P5084/1:b..l rcu: (detected by 0, t=10502 jiffies, g=185021, q=19 ncpus=2) task:syz-executor.1 state:R running task stack:23776 pid:5084 ppid:5065 flags:0x00000002 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0xee1/0x5a10 kernel/sched/core.c:6695 preempt_schedule_common+0x45/0xc0 kernel/sched/core.c:6864 preempt_schedule_thunk+0x1a/0x30 arch/x86/entry/thunk_64.S:45 unwind_next_frame+0x1c80/0x2390 arch/x86/kernel/unwind_orc.c:672 arch_stack_walk+0xfa/0x170 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x96/0xd0 kernel/stacktrace.c:122 save_stack+0x160/0x1f0 mm/page_owner.c:128 __reset_page_owner+0x5a/0x190 mm/page_owner.c:149 reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1136 [inline] free_unref_page_prepare+0x476/0xa40 mm/page_alloc.c:2312 free_unref_page+0x33/0x3b0 mm/page_alloc.c:2405 qlink_free mm/kasan/quarantine.c:166 [inline] qlist_free_all+0x6a/0x170 mm/kasan/quarantine.c:185 kasan_quarantine_reduce+0x18e/0x1d0 mm/kasan/quarantine.c:292 __kasan_slab_alloc+0x65/0x90 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook mm/slab.h:762 [inline] slab_alloc_node mm/slub.c:3478 [inline] slab_alloc mm/slub.c:3486 [inline] __kmem_cache_alloc_lru mm/slub.c:3493 [inline] kmem_cache_alloc+0x16c/0x3b0 mm/slub.c:3502 kmem_cache_zalloc include/linux/slab.h:710 [inline] alloc_empty_file+0x73/0x1d0 fs/file_table.c:206 path_openat+0xdc/0x29c0 fs/namei.c:3782 do_filp_open+0x1de/0x430 fs/namei.c:3823 do_sys_openat2+0x176/0x1e0 fs/open.c:1422 do_sys_open fs/open.c:1437 [inline] __do_sys_openat fs/open.c:1453 [inline] __se_sys_openat fs/open.c:1448 [inline] __x64_sys_openat+0x175/0x210 fs/open.c:1448 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fd60627c541 RSP: 002b:00007fd6064bfcf0 EFLAGS: 00000287 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 000000000000177f RCX: 00007fd60627c541 RDX: 0000000000090800 RSI: 00007fd6062c745d RDI: 00000000ffffff9c RBP: 00007fd6064bfdbc R08: 0000000000000000 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000287 R12: 0000000000000000 R13: 0000000000160235 R14: 00000000001601db R15: 0000000000000002 task:syz-executor.2 state:R running task stack:24304 pid:5094 ppid:5073 flags:0x00000002 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0xee1/0x5a10 kernel/sched/core.c:6695 preempt_schedule_common+0x45/0xc0 kernel/sched/core.c:6864 preempt_schedule_thunk+0x1a/0x30 arch/x86/entry/thunk_64.S:45 unwind_next_frame+0x1c80/0x2390 arch/x86/kernel/unwind_orc.c:672 arch_stack_walk+0xfa/0x170 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x96/0xd0 kernel/stacktrace.c:122 save_stack+0x160/0x1f0 mm/page_owner.c:128 __reset_page_owner+0x5a/0x190 mm/page_owner.c:149 reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1136 [inline] free_unref_page_prepare+0x476/0xa40 mm/page_alloc.c:2312 free_unref_page+0x33/0x3b0 mm/page_alloc.c:2405 qlink_free mm/kasan/quarantine.c:166 [inline] qlist_free_all+0x6a/0x170 mm/kasan/quarantine.c:185 kasan_quarantine_reduce+0x18e/0x1d0 mm/kasan/quarantine.c:292 ____kasan_kmalloc mm/kasan/common.c:340 [inline] __kasan_kmalloc+0x86/0xb0 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:198 [inline] __do_kmalloc_node mm/slab_common.c:1023 [inline] __kmalloc_node+0x63/0x110 mm/slab_common.c:1030 kmalloc_node include/linux/slab.h:619 [inline] kvmalloc_node+0x99/0x1a0 mm/util.c:607 kvmalloc include/linux/slab.h:737 [inline] xt_alloc_table_info+0x3e/0xa0 net/netfilter/x_tables.c:1192 do_replace net/ipv4/netfilter/ip_tables.c:1122 [inline] do_ipt_set_ctl+0x534/0xbb0 net/ipv4/netfilter/ip_tables.c:1627 nf_setsockopt+0x87/0xe0 net/netfilter/nf_sockopt.c:101 ip_setsockopt+0xc7/0xe0 net/ipv4/ip_sockglue.c:1429 tcp_setsockopt+0x9d/0x100 net/ipv4/tcp.c:3677 __sys_setsockopt+0x2cd/0x5b0 net/socket.c:2308 __do_sys_setsockopt net/socket.c:2319 [inline] __se_sys_setsockopt net/socket.c:2316 [inline] __x64_sys_setsockopt+0xbd/0x150 net/socket.c:2316 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f3b4487e83a RSP: 002b:00007f3b44abf668 EFLAGS: 00000206 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 00007f3b44abf6f0 RCX: 00007f3b4487e83a RDX: 0000000000000040 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 0000000000000003 R08: 00000000000002d8 R09: 0079746972756365 R10: 00007f3b4497a860 R11: 0000000000000206 R12: 00007f3b4497a800 R13: 00007f3b44abf68c R14: 0000000000000000 R15: 00007f3b4497aec0 task:udevd state:R running task stack:24768 pid:4495 ppid:1 flags:0x00000002 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0xee1/0x5a10 kernel/sched/core.c:6695 preempt_schedule_irq+0x52/0x90 kernel/sched/core.c:7007 irqentry_exit+0x35/0x80 kernel/entry/common.c:432 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 RIP: 0010:__unwind_start+0x32c/0x880 arch/x86/kernel/unwind_orc.c:768 Code: da 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 0f b6 04 02 84 c0 74 08 3c 03 0f 8e b3 03 00 00 c7 03 00 00 00 00 48 83 c4 20 5b <5d> 41 5c 41 5d 41 5e 41 5f e9 c6 59 4d 00 e8 c1 59 4d 00 65 48 8b RSP: 0018:ffffc9000319f480 EFLAGS: 00000286 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff813a6f4e RDX: ffff88807dd01dc0 RSI: 0000000000000000 RDI: 0000000000000006 RBP: ffffc9000319f548 R08: 0000000000000006 R09: ffffc9000319f558 R10: ffffc9000319f548 R11: 0000000000000000 R12: dffffc0000000000 R13: fffff52000633e99 R14: fffff52000633e98 R15: ffffc9000319f558 unwind_start arch/x86/include/asm/unwind.h:64 [inline] arch_stack_walk+0xaf/0x170 arch/x86/kernel/stacktrace.c:24 stack_trace_save+0x96/0xd0 kernel/stacktrace.c:122 save_stack+0x160/0x1f0 mm/page_owner.c:128 __reset_page_owner+0x5a/0x190 mm/page_owner.c:149 reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1136 [inline] free_unref_page_prepare+0x476/0xa40 mm/page_alloc.c:2312 free_unref_page+0x33/0x3b0 mm/page_alloc.c:2405 __unfreeze_partials+0x21d/0x240 mm/slub.c:2655 qlink_free mm/kasan/quarantine.c:166 [inline] qlist_free_all+0x6a/0x170 mm/kasan/quarantine.c:185 kasan_quarantine_reduce+0x18e/0x1d0 mm/kasan/quarantine.c:292 __kasan_slab_alloc+0x65/0x90 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook mm/slab.h:762 [inline] slab_alloc_node mm/slub.c:3478 [inline] __kmem_cache_alloc_node+0x195/0x340 mm/slub.c:3517 __do_kmalloc_node mm/slab_common.c:1022 [inline] __kmalloc+0x4f/0x100 mm/slab_common.c:1036 kmalloc include/linux/slab.h:603 [inline] tomoyo_realpath_from_path+0xb9/0x710 security/tomoyo/realpath.c:251 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0x26f/0x450 security/tomoyo/file.c:822 security_inode_getattr+0xf1/0x150 security/security.c:2153 vfs_getattr fs/stat.c:169 [inline] vfs_statx+0x180/0x430 fs/stat.c:244 vfs_fstatat+0xb3/0x140 fs/stat.c:295 __do_sys_newfstatat+0x98/0x110 fs/stat.c:459 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fd8421165f4 RSP: 002b:00007ffea299fb88 EFLAGS: 00000246 ORIG_RAX: 0000000000000106 RAX: ffffffffffffffda RBX: 000055bf869486c8 RCX: 00007fd8421165f4 RDX: 00007ffea299fb98 RSI: 000055bf86938897 RDI: 00000000ffffff9c RBP: 000055bf87589fb8 R08: 0005f9c4c6fe15c0 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 0005f9c4c6fe15c0 R15: 000055bf8693cdca rcu: rcu_preempt kthread starved for 10519 jiffies! g185021 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=1 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:27568 pid:17 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0xee1/0x5a10 kernel/sched/core.c:6695 schedule+0xe7/0x1b0 kernel/sched/core.c:6771 schedule_timeout+0x157/0x2c0 kernel/time/timer.c:2167 rcu_gp_fqs_loop+0x1ec/0xa50 kernel/rcu/tree.c:1613 rcu_gp_kthread+0x249/0x380 kernel/rcu/tree.c:1812 kthread+0x33c/0x440 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 rcu: Stack dump where RCU GP kthread last ran: Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 skipped: idling at native_safe_halt arch/x86/include/asm/irqflags.h:48 [inline] NMI backtrace for cpu 1 skipped: idling at arch_safe_halt arch/x86/include/asm/irqflags.h:86 [inline] NMI backtrace for cpu 1 skipped: idling at acpi_safe_halt+0x1b/0x20 drivers/acpi/processor_idle.c:112