rcu: INFO: rcu_preempt self-detected stall on CPU rcu: 1-...!: (10500 ticks this GP) idle=03cc/1/0x4000000000000000 softirq=210937/210937 fqs=10 (t=10502 jiffies g=373329 q=86 ncpus=2) rcu: rcu_preempt kthread starved for 10477 jiffies! g373329 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:24672 pid:16 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5241 [inline] __schedule+0x143f/0x4570 kernel/sched/core.c:6558 schedule+0xbf/0x180 kernel/sched/core.c:6634 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1965 rcu_gp_fqs_loop+0x2d2/0x1150 kernel/rcu/tree.c:1706 rcu_gp_kthread+0xa3/0x3b0 kernel/rcu/tree.c:1905 kthread+0x28d/0x320 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 CPU: 0 PID: 9463 Comm: syz.3.11047 Not tainted 6.1.112-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:arch_static_branch arch/x86/include/asm/jump_label.h:27 [inline] RIP: 0010:static_key_false include/linux/jump_label.h:207 [inline] RIP: 0010:native_write_msr arch/x86/include/asm/msr.h:147 [inline] RIP: 0010:wrmsr arch/x86/include/asm/msr.h:254 [inline] RIP: 0010:native_apic_msr_write+0x35/0x50 arch/x86/include/asm/apic.h:206 Code: 74 2a 83 ff 30 74 25 eb 10 81 ff d0 00 00 00 74 1b 81 ff e0 00 00 00 74 13 c1 ef 04 81 c7 00 08 00 00 89 f9 89 f0 31 d2 0f 30 <66> 90 c3 89 f6 31 d2 e9 1f 15 2a 03 66 2e 0f 1f 84 00 00 00 00 00 RSP: 0018:ffffc90000007568 EFLAGS: 00000046 RAX: 0000000000000057 RBX: ffffffff8cd8ca30 RCX: 0000000000000838 RDX: 0000000000000000 RSI: 0000000000000057 RDI: 0000000000000838 RBP: 0000000000000057 R08: ffffffff817cf3dd R09: fffffbfff1d33f2e R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880b8e271c0 R13: dffffc0000000000 R14: 0000000000000057 R15: dffffc0000000000 FS: 00007f9402c166c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005555822d45c8 CR3: 000000007e709000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000082 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 Call Trace: apic_write arch/x86/include/asm/apic.h:394 [inline] lapic_next_event+0x5b/0x70 arch/x86/kernel/apic/apic.c:478 clockevents_program_event+0x1c5/0x310 kernel/time/clockevents.c:334 hrtimer_interrupt+0x546/0x980 kernel/time/hrtimer.c:1828 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline] __sysvec_apic_timer_interrupt+0x156/0x580 arch/x86/kernel/apic/apic.c:1112 sysvec_apic_timer_interrupt+0x3e/0xb0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653 RIP: 0010:page_ext_get+0x1c8/0x2a0 mm/page_ext.c:159 Code: 00 00 00 e8 4a d8 9d ff 44 89 fb 83 e3 01 31 ff 48 89 de e8 1a dc 9d ff 4d 85 ff 74 1c 48 85 db 75 17 4c 0f af 25 68 a5 56 0b <4d> 01 e7 74 11 e8 1e d8 9d ff e9 9d 00 00 00 e8 14 d8 9d ff eb 05 RSP: 0018:ffffc900000077c0 EFLAGS: 00000206 RAX: 0000000000000100 RBX: 0000000000000000 RCX: ffff888076365940 RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000080 R08: ffffffff81ecd706 R09: fffffbfff223ba45 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000a54e00 R13: 0000000000000003 R14: ffffffff81ecd56c R15: ffff888019700000 __reset_page_owner+0x32/0x1a0 mm/page_owner.c:144 reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1444 [inline] free_pcp_prepare mm/page_alloc.c:1494 [inline] free_unref_page_prepare+0xf63/0x1120 mm/page_alloc.c:3369 free_unref_page+0x33/0x3e0 mm/page_alloc.c:3464 __skb_frag_unref include/linux/skbuff.h:3436 [inline] skb_release_data+0x37f/0x7a0 net/core/skbuff.c:785 skb_release_all net/core/skbuff.c:856 [inline] __kfree_skb+0x4c/0x60 net/core/skbuff.c:870 tcp_write_queue_purge+0x132/0x2f0 net/ipv4/tcp.c:3099 tcp_done_with_error+0x3d/0xc0 net/ipv4/tcp_input.c:4366 tcp_write_err net/ipv4/tcp_timer.c:70 [inline] tcp_write_timeout net/ipv4/tcp_timer.c:273 [inline] tcp_retransmit_timer+0x12ca/0x2800 net/ipv4/tcp_timer.c:547 tcp_write_timer+0x12e/0x280 net/ipv4/tcp_timer.c:676 call_timer_fn+0x1ad/0x6b0 kernel/time/timer.c:1504 expire_timers kernel/time/timer.c:1549 [inline] __run_timers+0x67c/0x890 kernel/time/timer.c:1820 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1833 handle_softirqs+0x2ee/0xa40 kernel/softirq.c:571 __do_softirq kernel/softirq.c:605 [inline] invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x157/0x240 kernel/softirq.c:654 irq_exit_rcu+0x5/0x20 kernel/softirq.c:666 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653 RIP: 0010:preempt_schedule_irq+0xf2/0x1c0 kernel/sched/core.c:6870 Code: 89 f5 49 c1 ed 03 eb 0d 48 f7 03 08 00 00 00 0f 84 97 00 00 00 bf 01 00 00 00 e8 e9 22 af f6 e8 14 1f e2 f6 fb bf 01 00 00 00 79 b4 ff ff 43 80 7c 3d 00 00 74 08 4c 89 f7 e8 d9 de 32 f7 48 RSP: 0018:ffffc9000af576c0 EFLAGS: 00000282 RAX: f789a6620e0a7500 RBX: ffff888076365940 RCX: ffffffff97334103 RDX: dffffc0000000000 RSI: ffffffff8b0c0340 RDI: 0000000000000001 RBP: ffffc9000af57770 R08: dffffc0000000000 R09: ffffed100ec6cb29 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff920015eaed8 R13: 1ffff920015eaedc R14: ffffc9000af576e0 R15: dffffc0000000000 irqentry_exit+0x53/0x80 kernel/entry/common.c:439 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653 RIP: 0010:stack_trace_consume_entry+0xed/0x270 kernel/stacktrace.c:93 Code: 00 00 00 00 00 fc ff df 48 8b 1b 45 8d 70 01 41 0f b6 04 17 84 c0 0f 85 2d 01 00 00 45 89 31 4a 8d 1c c3 48 89 d8 48 c1 e8 03 <80> 3c 10 00 74 1a 4d 89 cf 48 89 df 49 89 d6 49 89 f5 e8 ac c4 69 RSP: 0018:ffffc9000af57830 EFLAGS: 00000a02 RAX: 1ffff920015eaf49 RBX: ffffc9000af57a48 RCX: ffffffff8fdb3000 RDX: dffffc0000000000 RSI: ffffffff8891eb16 RDI: ffffc9000af5796c RBP: ffffc9000af57968 R08: 0000000000000009 R09: ffffc9000af57970 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff920015eaf2d R13: 1ffff920015eaf2d R14: 000000000000000a R15: 1ffff920015eaf2e arch_stack_walk+0x101/0x140 arch/x86/kernel/stacktrace.c:27 stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 __kasan_slab_alloc+0x65/0x70 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x52/0x3a0 mm/slab.h:737 slab_alloc_node mm/slub.c:3398 [inline] slab_alloc mm/slub.c:3406 [inline] __kmem_cache_alloc_lru mm/slub.c:3413 [inline] kmem_cache_alloc+0x10c/0x2d0 mm/slub.c:3422 kmem_cache_zalloc include/linux/slab.h:683 [inline] lsm_inode_alloc security/security.c:596 [inline] security_inode_alloc+0x24/0x110 security/security.c:1040 inode_init_always+0x943/0xc70 fs/inode.c:232 alloc_inode fs/inode.c:268 [inline] new_inode_pseudo+0x94/0x1d0 fs/inode.c:1055 sock_alloc net/socket.c:631 [inline] __sock_create+0x11f/0x910 net/socket.c:1514 sock_create net/socket.c:1601 [inline] __sys_socket_create net/socket.c:1638 [inline] __sys_socket+0x136/0x3a0 net/socket.c:1666 __do_sys_socket net/socket.c:1679 [inline] __se_sys_socket net/socket.c:1677 [inline] __x64_sys_socket+0x76/0x80 net/socket.c:1677 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f9401d7dff9 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:00007f9402c16038 EFLAGS: 00000246 ORIG_RAX: 0000000000000029 RAX: ffffffffffffffda RBX: 00007f9401f35f80 RCX: 00007f9401d7dff9 RDX: 0000000000000000 RSI: 0000000000000002 RDI: 000000000000000a RBP: 00007f9401df0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007f9401f35f80 R15: 00007ffd002e7248 CPU: 1 PID: 9448 Comm: syz.4.11041 Not tainted 6.1.112-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:__read_once_word_nocheck+0x3/0x10 include/asm-generic/rwonce.h:67 Code: c1 0f 8c dc fc ff ff 48 89 df e8 e8 51 a5 00 48 ba 00 00 00 00 00 fc ff df e9 c5 fc ff ff 66 0f 1f 84 00 00 00 00 00 48 8b 07 cc cc cc cc cc cc cc cc cc cc cc cc 31 c0 81 ff 03 00 00 40 0f RSP: 0018:ffffc900001e03d8 EFLAGS: 00000283 RAX: ffffffff815440f7 RBX: ffffc900001e1000 RCX: 1ffff9200003c098 RDX: 1ffffffff1e2b7aa RSI: 0000000000000000 RDI: ffffc900001e0f38 RBP: 1ffff9200003c09a R08: 0000000000000001 R09: ffffc900001e05b0 R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc900001e04c0 R13: ffffc900001e0f38 R14: ffffc900001d9000 R15: 1ffff9200003c099 FS: 00007fb63fedc6c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fce0a0faf98 CR3: 000000001d798000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 Call Trace: deref_stack_reg arch/x86/kernel/unwind_orc.c:360 [inline] unwind_next_frame+0xd5d/0x2220 arch/x86/kernel/unwind_orc.c:539 arch_stack_walk+0x10d/0x140 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4b/0x70 mm/kasan/common.c:52 kasan_save_free_info+0x27/0x40 mm/kasan/generic.c:516 ____kasan_slab_free+0xd6/0x120 mm/kasan/common.c:236 kasan_slab_free include/linux/kasan.h:177 [inline] slab_free_hook mm/slub.c:1724 [inline] slab_free_freelist_hook mm/slub.c:1750 [inline] slab_free mm/slub.c:3661 [inline] __kmem_cache_free+0x25c/0x3c0 mm/slub.c:3674 skb_free_head net/core/skbuff.c:762 [inline] skb_release_data+0x5de/0x7a0 net/core/skbuff.c:791 skb_release_all net/core/skbuff.c:856 [inline] __kfree_skb+0x4c/0x60 net/core/skbuff.c:870 tcp_write_queue_purge+0x132/0x2f0 net/ipv4/tcp.c:3099 tcp_done_with_error+0x3d/0xc0 net/ipv4/tcp_input.c:4366 tcp_write_err net/ipv4/tcp_timer.c:70 [inline] tcp_write_timeout net/ipv4/tcp_timer.c:273 [inline] tcp_retransmit_timer+0x12ca/0x2800 net/ipv4/tcp_timer.c:547 tcp_write_timer+0x12e/0x280 net/ipv4/tcp_timer.c:676 call_timer_fn+0x1ad/0x6b0 kernel/time/timer.c:1504 expire_timers kernel/time/timer.c:1549 [inline] __run_timers+0x67c/0x890 kernel/time/timer.c:1820 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1833 handle_softirqs+0x2ee/0xa40 kernel/softirq.c:571 __do_softirq kernel/softirq.c:605 [inline] invoke_softirq kernel/softirq.c:445 [inline] __irq_exit_rcu+0x157/0x240 kernel/softirq.c:654 irq_exit_rcu+0x5/0x20 kernel/softirq.c:666 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1106 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653 RIP: 0010:check_kcov_mode kernel/kcov.c:182 [inline] RIP: 0010:write_comp_data kernel/kcov.c:245 [inline] RIP: 0010:__sanitizer_cov_trace_switch+0x64/0xe0 kernel/kcov.c:349 Code: c5 38 0b 10 8b 4c 8b 4c 24 20 65 4c 8b 1d 54 bb 77 7e 31 d2 eb 08 48 ff c2 49 39 d2 74 71 4c 8b 74 d6 10 65 8b 05 44 bb 77 7e <25> 00 01 ff 00 74 11 3d 00 01 00 00 75 de 41 83 bb 1c 16 00 00 00 RSP: 0018:ffffc9000ad2ee30 EFLAGS: 00000202 RAX: 0000000080000000 RBX: 0000000000000002 RCX: 000000000000008b RDX: 0000000000000007 RSI: ffffffff8d3a0910 RDI: 0000000000000002 RBP: 0000000000000001 R08: 0000000000000005 R09: ffffffff81a17317 R10: 000000000000000b R11: ffff888028008000 R12: 0000000000000030 R13: ffff8880320032d0 R14: 0000000000000009 R15: dffffc0000000000 is_branch64_taken kernel/bpf/verifier.c:9819 [inline] is_branch_taken+0x1a7/0xed0 kernel/bpf/verifier.c:9919 check_cond_jmp_op+0x29e/0x2000 kernel/bpf/verifier.c:10429 do_check kernel/bpf/verifier.c:12749 [inline] do_check_common+0x7770/0xca90 kernel/bpf/verifier.c:14953 do_check_main kernel/bpf/verifier.c:15016 [inline] bpf_check+0x65a2/0x16140 kernel/bpf/verifier.c:15593 bpf_prog_load+0x12df/0x1bb0 kernel/bpf/syscall.c:2646 __sys_bpf+0x382/0x6c0 kernel/bpf/syscall.c:5020 __do_sys_bpf kernel/bpf/syscall.c:5124 [inline] __se_sys_bpf kernel/bpf/syscall.c:5122 [inline] __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:5122 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7fb63f17dff9 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:00007fb63fedc038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00007fb63f335f80 RCX: 00007fb63f17dff9 RDX: 0000000000000048 RSI: 00000000200054c0 RDI: 0000000000000005 RBP: 00007fb63f1f0296 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fb63f335f80 R15: 00007fffeaa71648