rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 0-...!: (1 GPs behind) idle=6794/1/0x4000000000000000 softirq=30725/30726 fqs=0 rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P5160/1:b..l rcu: (detected by 1, t=10502 jiffies, g=39337, q=18 ncpus=2) Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 8268 Comm: syz-executor.4 Not tainted 6.2.0-syzkaller-09238-gd2980d8d8265 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:151 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x2f/0x70 kernel/locking/spinlock.c:194 Code: 48 89 fd 48 83 c7 18 53 48 89 f3 48 8b 74 24 10 e8 76 ef 4d f7 48 89 ef e8 ae 60 4e 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 e8 7f 35 40 f7 65 8b 05 a0 RSP: 0018:ffffc90000007e10 EFLAGS: 00000046 RAX: 0000000000000046 RBX: 0000000000000000 RCX: ffffffff81668bc4 RDX: dffffc0000000000 RSI: 0000000000000004 RDI: ffff8880b982b800 RBP: ffff8880b982b800 R08: 0000000000000000 R09: ffff8880b982b803 R10: ffffed1017305700 R11: 0000000000000000 R12: ffffffff88447a50 R13: ffff8880b982b900 R14: ffff8880b982b800 R15: ffff888033745340 FS: 0000555556649400(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2c22d000 CR3: 000000007c728000 CR4: 0000000000350ef0 Call Trace: __run_hrtimer kernel/time/hrtimer.c:1681 [inline] __hrtimer_run_queues+0x578/0x1010 kernel/time/hrtimer.c:1749 hrtimer_interrupt+0x320/0x7b0 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1096 [inline] __sysvec_apic_timer_interrupt+0x180/0x660 arch/x86/kernel/apic/apic.c:1113 sysvec_apic_timer_interrupt+0x92/0xc0 arch/x86/kernel/apic/apic.c:1107 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:649 RIP: 0010:finish_task_switch.isra.0+0x2bf/0xc80 kernel/sched/core.c:5183 Code: 8b 3a 4c 89 e7 48 c7 02 00 00 00 00 ff d1 4d 85 ff 75 bf 4c 89 e7 e8 10 f8 ff ff e8 7b 73 32 00 fb 65 48 8b 1c 25 80 b8 03 00 <48> 8d bb 50 15 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 RSP: 0018:ffffc90004bdfa88 EFLAGS: 00000202 RAX: 000000000037768f RBX: ffff88801e740000 RCX: 1ffffffff1cef1f1 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc90004bdfad0 R08: 0000000000000001 R09: 0000000000000001 R10: fffffbfff1cef7fa R11: 0000000000000000 R12: ffff8880b983c280 R13: ffff88807d7557c0 R14: 0000000000000000 R15: ffff8880b983ccb8 context_switch kernel/sched/core.c:5307 [inline] __schedule+0xcd6/0x5b20 kernel/sched/core.c:6622 schedule+0xde/0x1a0 kernel/sched/core.c:6698 do_nanosleep+0x154/0x4f0 kernel/time/hrtimer.c:2044 hrtimer_nanosleep+0x19b/0x430 kernel/time/hrtimer.c:2097 common_nsleep+0xa6/0xd0 kernel/time/posix-timers.c:1236 __do_sys_clock_nanosleep kernel/time/posix-timers.c:1277 [inline] __se_sys_clock_nanosleep kernel/time/posix-timers.c:1254 [inline] __x64_sys_clock_nanosleep+0x32e/0x480 kernel/time/posix-timers.c:1254 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fcb346b0e21 Code: 24 0c 89 3c 24 48 89 4c 24 18 e8 aa e7 ff ff 4c 8b 54 24 18 48 8b 54 24 10 41 89 c0 8b 74 24 0c 8b 3c 24 b8 e6 00 00 00 0f 05 <44> 89 c7 48 89 04 24 e8 e3 e7 ff ff 48 8b 04 24 eb 97 66 2e 0f 1f RSP: 002b:00007ffd99640f10 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6 RAX: ffffffffffffffda RBX: 000000000000021e RCX: 00007fcb346b0e21 RDX: 00007ffd99640f50 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 00007ffd99640fdc R08: 0000000000000000 R09: 00007ffd997d2080 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000032 R13: 00000000000a673d R14: 000000000000000c R15: 00007ffd99641040 task:syz-fuzzer state:R running task stack:24952 pid:5160 ppid:5061 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5304 [inline] __schedule+0xcce/0x5b20 kernel/sched/core.c:6622 preempt_schedule_common+0x45/0xb0 kernel/sched/core.c:6791 preempt_schedule_thunk+0x1a/0x20 arch/x86/entry/thunk_64.S:34 __local_bh_enable_ip+0x10d/0x130 kernel/softirq.c:403 local_bh_enable include/linux/bottom_half.h:33 [inline] rcu_read_unlock_bh include/linux/rcupdate.h:843 [inline] ip_finish_output2+0x7dc/0x22e0 net/ipv4/ip_output.c:229 __ip_finish_output net/ipv4/ip_output.c:306 [inline] __ip_finish_output+0x396/0x650 net/ipv4/ip_output.c:288 ip_finish_output+0x31/0x280 net/ipv4/ip_output.c:316 NF_HOOK_COND include/linux/netfilter.h:291 [inline] ip_output+0x1a3/0x320 net/ipv4/ip_output.c:430 dst_output include/net/dst.h:444 [inline] ip_local_out net/ipv4/ip_output.c:126 [inline] __ip_queue_xmit+0x8e2/0x1c60 net/ipv4/ip_output.c:532 __tcp_transmit_skb+0x1967/0x3820 net/ipv4/tcp_output.c:1399 tcp_transmit_skb net/ipv4/tcp_output.c:1417 [inline] tcp_write_xmit+0x1025/0x6160 net/ipv4/tcp_output.c:2693 __tcp_push_pending_frames+0xae/0x390 net/ipv4/tcp_output.c:2877 tcp_push+0x49d/0x720 net/ipv4/tcp.c:730 tcp_sendmsg_locked+0x1fef/0x2950 net/ipv4/tcp.c:1456 tcp_sendmsg+0x2f/0x50 net/ipv4/tcp.c:1484 inet_sendmsg+0x9d/0xe0 net/ipv4/af_inet.c:825 sock_sendmsg_nosec net/socket.c:722 [inline] sock_sendmsg+0xde/0x190 net/socket.c:745 sock_write_iter+0x295/0x3d0 net/socket.c:1136 call_write_iter include/linux/fs.h:1851 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x9ed/0xe10 fs/read_write.c:584 ksys_write+0x1ec/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x4adffb RSP: 002b:000000c00b7e53c0 EFLAGS: 00000206 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 000000c000042800 RCX: 00000000004adffb RDX: 00000000000000f0 RSI: 000000c00000a200 RDI: 0000000000000003 RBP: 000000c00b7e5410 R08: 0000000000000001 R09: 000000c000734f80 R10: 00000000000000f0 R11: 0000000000000206 R12: 000000c00b7e54a0 R13: 0000000000000000 R14: 000000c007da8b60 R15: 000000000000007f rcu: rcu_preempt kthread starved for 10502 jiffies! g39337 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:28168 pid:16 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5304 [inline] __schedule+0xcce/0x5b20 kernel/sched/core.c:6622 schedule+0xde/0x1a0 kernel/sched/core.c:6698 schedule_timeout+0x14e/0x2b0 kernel/time/timer.c:2167 rcu_gp_fqs_loop+0x190/0x910 kernel/rcu/tree.c:1608 rcu_gp_kthread+0x23a/0x360 kernel/rcu/tree.c:1807 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 rcu: Stack dump where RCU GP kthread last ran: CPU: 1 PID: 12187 Comm: syz-executor.1 Not tainted 6.2.0-syzkaller-09238-gd2980d8d8265 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023 RIP: 0010:csd_lock_wait kernel/smp.c:413 [inline] RIP: 0010:smp_call_function_many_cond+0x444/0x10a0 kernel/smp.c:987 Code: 00 45 85 e4 74 48 48 8b 04 24 49 89 c5 83 e0 07 49 c1 ed 03 49 89 c4 4d 01 fd 41 83 c4 03 e8 13 3d 0b 00 f3 90 41 0f b6 45 00 <41> 38 c4 7c 08 84 c0 0f 85 4e 0a 00 00 8b 43 08 31 ff 83 e0 01 41 RSP: 0018:ffffc90003edfb98 EFLAGS: 00000246 RAX: 0000000000000000 RBX: ffff8880b9844e60 RCX: ffffc9000a771000 RDX: 0000000000040000 RSI: ffffffff81798b2d RDI: 0000000000000005 RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000003 R13: ffffed10173089cd R14: 0000000000000001 R15: dffffc0000000000 FS: 00007f6aca59c700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6aca59c718 CR3: 0000000020069000 CR4: 0000000000350ee0 Call Trace: clock_was_set+0x615/0x880 kernel/time/hrtimer.c:974 do_settimeofday64 kernel/time/timekeeping.c:1345 [inline] do_settimeofday64+0x3c4/0x5d0 kernel/time/timekeeping.c:1312 do_sys_settimeofday64 kernel/time/time.c:195 [inline] do_sys_settimeofday64+0x1e2/0x270 kernel/time/time.c:169 __do_sys_clock_settime kernel/time/posix-timers.c:1088 [inline] __se_sys_clock_settime kernel/time/posix-timers.c:1076 [inline] __x64_sys_clock_settime+0x1a5/0x280 kernel/time/posix-timers.c:1076 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f6ac988c0f9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f6aca59c168 EFLAGS: 00000246 ORIG_RAX: 00000000000000e3 RAX: ffffffffffffffda RBX: 00007f6ac99ac050 RCX: 00007f6ac988c0f9 RDX: 0000000000000000 RSI: 0000000020000040 RDI: 0000000000000000 RBP: 00007f6ac98e7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffea87753ef R14: 00007f6aca59c300 R15: 0000000000022000