rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 1-...!: (0 ticks this GP) idle=e9dc/1/0x4000000000000000 softirq=20136/20136 fqs=0 (detected by 0, t=10506 jiffies, g=25333, q=257 ncpus=2) Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 3652 Comm: syz-executor.2 Not tainted 6.1.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:hlock_class kernel/locking/lockdep.c:227 [inline] RIP: 0010:mark_lock.part.0+0xf6/0x1910 kernel/locking/lockdep.c:4612 Code: 66 81 e2 ff 1f 44 0f b7 f2 be 08 00 00 00 4c 89 f0 48 c1 e8 06 48 8d 3c c5 40 29 93 90 e8 02 c5 69 00 4c 0f a3 35 1a e8 33 0f <0f> 83 cd 00 00 00 4b 8d 04 76 48 c1 e0 06 48 05 60 2d 93 90 48 8d RSP: 0018:ffffc900001e0918 EFLAGS: 00000047 RAX: 0000000000000001 RBX: 1ffff9200003c12a RCX: ffffffff815f411e RDX: fffffbfff2126529 RSI: 0000000000000008 RDI: ffffffff90932940 RBP: 0000000000000001 R08: 0000000000000000 R09: ffffffff90932947 R10: fffffbfff2126528 R11: 0000000000000000 R12: ffff88807b4b6260 R13: 0000000000000000 R14: 0000000000000000 R15: ffff88807b4b6280 FS: 0000555556d39400(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3dd47811b8 CR3: 0000000034152000 CR4: 0000000000350ee0 Call Trace: mark_lock kernel/locking/lockdep.c:4598 [inline] mark_usage kernel/locking/lockdep.c:4526 [inline] __lock_acquire+0x14a2/0x56d0 kernel/locking/lockdep.c:5009 lock_acquire kernel/locking/lockdep.c:5668 [inline] lock_acquire+0x1df/0x630 kernel/locking/lockdep.c:5633 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x39/0x50 kernel/locking/spinlock.c:162 debug_object_activate+0x12e/0x3e0 lib/debugobjects.c:658 debug_hrtimer_activate kernel/time/hrtimer.c:420 [inline] debug_activate kernel/time/hrtimer.c:475 [inline] enqueue_hrtimer+0x2b/0x470 kernel/time/hrtimer.c:1084 __run_hrtimer kernel/time/hrtimer.c:1702 [inline] __hrtimer_run_queues+0xc12/0xfb0 kernel/time/hrtimer.c:1749 hrtimer_interrupt+0x31c/0x790 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1096 [inline] __sysvec_apic_timer_interrupt+0x17c/0x640 arch/x86/kernel/apic/apic.c:1113 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1107 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x38/0x70 kernel/locking/spinlock.c:194 Code: 74 24 10 e8 ea 97 cd f7 48 89 ef e8 32 04 ce f7 81 e3 00 02 00 00 75 25 9c 58 f6 c4 02 75 2d 48 85 db 74 01 fb bf 01 00 00 00 63 99 c0 f7 65 8b 05 8c 46 70 76 85 c0 74 0a 5b 5d c3 e8 e0 fa RSP: 0018:ffffc9000444fa98 EFLAGS: 00000206 RAX: 0000000000000006 RBX: 0000000000000200 RCX: 1ffffffff212c7de RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000001 RBP: ffff8880b9b40940 R08: 0000000000000001 R09: ffffffff909329c7 R10: 0000000000000001 R11: ffffea00005b25c0 R12: 0000000000000000 R13: 0000000000016c97 R14: ffff8880b9b40940 R15: 0000000000000000 spin_unlock_irqrestore include/linux/spinlock.h:405 [inline] free_unref_page+0x2e9/0x4d0 mm/page_alloc.c:3507 __vunmap+0x85d/0xd30 mm/vmalloc.c:2713 __vfree+0x3c/0xd0 mm/vmalloc.c:2761 vfree+0x5a/0x90 mm/vmalloc.c:2792 copy_entries_to_user net/ipv4/netfilter/ip_tables.c:868 [inline] get_entries net/ipv4/netfilter/ip_tables.c:1024 [inline] do_ipt_get_ctl+0x7fe/0x9d0 net/ipv4/netfilter/ip_tables.c:1663 nf_getsockopt+0x72/0xd0 net/netfilter/nf_sockopt.c:116 ip_getsockopt+0x185/0x1e0 net/ipv4/ip_sockglue.c:1796 tcp_getsockopt+0x95/0xf0 net/ipv4/tcp.c:4402 __sys_getsockopt+0x216/0x690 net/socket.c:2296 __do_sys_getsockopt net/socket.c:2311 [inline] __se_sys_getsockopt net/socket.c:2308 [inline] __x64_sys_getsockopt+0xba/0x150 net/socket.c:2308 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f3dd468cc5a Code: 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 37 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffee275e308 EFLAGS: 00000202 ORIG_RAX: 0000000000000037 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3dd468cc5a RDX: 0000000000000041 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 00007ffee275e330 R08: 00007ffee275e32c R09: ffffffffff000000 R10: 00007ffee275e390 R11: 0000000000000202 R12: 00007ffee275e390 R13: 0000000000000003 R14: 00007ffee275e32c R15: 00007f3dd4786160 rcu: rcu_preempt kthread timer wakeup didn't happen for 10505 jiffies! g25333 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 rcu: Possible timer handling issue on cpu=1 timer-softirq=23354 rcu: rcu_preempt kthread starved for 10506 jiffies! g25333 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->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:I stack:28424 pid:16 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5191 [inline] __schedule+0xae9/0x53f0 kernel/sched/core.c:6503 schedule+0xda/0x1b0 kernel/sched/core.c:6579 schedule_timeout+0x14a/0x2a0 kernel/time/timer.c:1935 rcu_gp_fqs_loop+0x190/0x910 kernel/rcu/tree.c:1660 rcu_gp_kthread+0x236/0x360 kernel/rcu/tree.c:1859 kthread+0x2e4/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 rcu: Stack dump where RCU GP kthread last ran: Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 3652 Comm: syz-executor.2 Not tainted 6.1.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 RIP: 0010:timerqueue_add+0x1c6/0x330 lib/timerqueue.c:41 Code: 5f 37 f8 45 84 f6 0f 85 a5 00 00 00 e8 f3 62 37 f8 48 8b 34 24 48 89 ef e8 27 96 ff ff e8 e2 62 37 f8 44 89 f0 48 83 c4 08 5b <5d> 41 5c 41 5d 41 5e 41 5f c3 e8 cb 62 37 f8 48 89 ea 48 b8 00 00 RSP: 0018:ffffc900001e0db8 EFLAGS: 00000092 RAX: 0000000000000001 RBX: ffff8880b9b2a680 RCX: 0000000000000000 RDX: ffff88807b4b57c0 RSI: ffffffff8945499e RDI: ffff888034ee9340 RBP: ffff888034ee9340 R08: 0000000000000006 R09: ffff888034ee9340 R10: ffff888034ee9340 R11: 0000000000000000 R12: ffff8880b9b2a580 R13: 0000000000000001 R14: 0000000000000001 R15: ffff888034ee9340 FS: 0000555556d39400(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f3dd47811b8 CR3: 0000000034152000 CR4: 0000000000350ee0 Call Trace: enqueue_hrtimer+0x1aa/0x470 kernel/time/hrtimer.c:1091 __run_hrtimer kernel/time/hrtimer.c:1702 [inline] __hrtimer_run_queues+0xc12/0xfb0 kernel/time/hrtimer.c:1749 hrtimer_interrupt+0x31c/0x790 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1096 [inline] __sysvec_apic_timer_interrupt+0x17c/0x640 arch/x86/kernel/apic/apic.c:1113 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1107 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x38/0x70 kernel/locking/spinlock.c:194 Code: 74 24 10 e8 ea 97 cd f7 48 89 ef e8 32 04 ce f7 81 e3 00 02 00 00 75 25 9c 58 f6 c4 02 75 2d 48 85 db 74 01 fb bf 01 00 00 00 63 99 c0 f7 65 8b 05 8c 46 70 76 85 c0 74 0a 5b 5d c3 e8 e0 fa RSP: 0018:ffffc9000444fa98 EFLAGS: 00000206 RAX: 0000000000000006 RBX: 0000000000000200 RCX: 1ffffffff212c7de RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000001 RBP: ffff8880b9b40940 R08: 0000000000000001 R09: ffffffff909329c7 R10: 0000000000000001 R11: ffffea00005b25c0 R12: 0000000000000000 R13: 0000000000016c97 R14: ffff8880b9b40940 R15: 0000000000000000 spin_unlock_irqrestore include/linux/spinlock.h:405 [inline] free_unref_page+0x2e9/0x4d0 mm/page_alloc.c:3507 __vunmap+0x85d/0xd30 mm/vmalloc.c:2713 __vfree+0x3c/0xd0 mm/vmalloc.c:2761 vfree+0x5a/0x90 mm/vmalloc.c:2792 copy_entries_to_user net/ipv4/netfilter/ip_tables.c:868 [inline] get_entries net/ipv4/netfilter/ip_tables.c:1024 [inline] do_ipt_get_ctl+0x7fe/0x9d0 net/ipv4/netfilter/ip_tables.c:1663 nf_getsockopt+0x72/0xd0 net/netfilter/nf_sockopt.c:116 ip_getsockopt+0x185/0x1e0 net/ipv4/ip_sockglue.c:1796 tcp_getsockopt+0x95/0xf0 net/ipv4/tcp.c:4402 __sys_getsockopt+0x216/0x690 net/socket.c:2296 __do_sys_getsockopt net/socket.c:2311 [inline] __se_sys_getsockopt net/socket.c:2308 [inline] __x64_sys_getsockopt+0xba/0x150 net/socket.c:2308 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f3dd468cc5a Code: 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 37 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffee275e308 EFLAGS: 00000202 ORIG_RAX: 0000000000000037 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f3dd468cc5a RDX: 0000000000000041 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 00007ffee275e330 R08: 00007ffee275e32c R09: ffffffffff000000 R10: 00007ffee275e390 R11: 0000000000000202 R12: 00007ffee275e390 R13: 0000000000000003 R14: 00007ffee275e32c R15: 00007f3dd4786160