rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 0-...!: (1 GPs behind) idle=869c/1/0x4000000000000000 softirq=99404/99405 fqs=0 rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P18620/1:b..l P5068/1:b..l rcu: (detected by 1, t=10502 jiffies, g=152969, q=64 ncpus=2) Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 29188 Comm: syz-executor.4 Not tainted 6.6.0-rc2-syzkaller-00414-g8a511e7efc5a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 RIP: 0010:lock_acquire+0x21/0x520 kernel/locking/lockdep.c:5721 Code: 1f 84 00 00 00 00 00 66 90 f3 0f 1e fa 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4 e0 48 81 ec 20 01 00 00 4c 89 4c 24 28 <4c> 89 44 24 38 48 89 4c 24 30 89 54 24 1c 41 89 f6 48 89 7c 24 20 RSP: 0018:ffffc90000007b60 EFLAGS: 00000086 RAX: 0000000000010001 RBX: 1ffff92000000f9c RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffff8880b982b858 RBP: ffffc90000007ca8 R08: 0000000000000001 R09: 0000000000000000 R10: dffffc0000000000 R11: fffffbfff1d34f26 R12: ffff8880b982b840 R13: 1ffff92000000f98 R14: ffffc90000007ce0 R15: dffffc0000000000 FS: 00007fec8afdd6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020283030 CR3: 0000000028244000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __raw_spin_lock_irq include/linux/spinlock_api_smp.h:119 [inline] _raw_spin_lock_irq+0xd3/0x120 kernel/locking/spinlock.c:170 __run_hrtimer kernel/time/hrtimer.c:1692 [inline] __hrtimer_run_queues+0x66c/0xd10 kernel/time/hrtimer.c:1752 hrtimer_interrupt+0x396/0x980 kernel/time/hrtimer.c:1814 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1063 [inline] __sysvec_apic_timer_interrupt+0x104/0x390 arch/x86/kernel/apic/apic.c:1080 sysvec_apic_timer_interrupt+0x90/0xb0 arch/x86/kernel/apic/apic.c:1074 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 RIP: 0010:__sanitizer_cov_trace_pc+0x0/0x60 kernel/kcov.c:203 Code: 00 00 00 00 00 0f 1f 44 00 00 f3 0f 1e fa 53 48 89 fb e8 13 00 00 00 48 8b 3d f4 70 0c 0d 48 89 de 5b e9 13 96 59 00 0f 1f 00 0f 1e fa 48 8b 04 24 65 48 8b 0d 40 ae 75 7e 65 8b 15 41 ae 75 RSP: 0018:ffffc9001450f8a0 EFLAGS: 00000246 RAX: 0000000000000002 RBX: ffffc9001450fb60 RCX: 0000000000040000 RDX: ffff88804f431dc0 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: ffffffff843d228b R09: ffffc9001450fd30 R10: ffffc9001450fd70 R11: fffff520028a1fb0 R12: 0000000000000000 R13: ffffc9001450fc00 R14: 0000000000000000 R15: 0000000000000000 __import_iovec+0x329/0x950 lib/iov_iter.c:1481 import_iovec+0xea/0x120 lib/iov_iter.c:1532 copy_msghdr_from_user+0x52b/0x680 net/socket.c:2478 recvmsg_copy_msghdr net/socket.c:2726 [inline] ___sys_recvmsg net/socket.c:2798 [inline] do_recvmmsg+0x40f/0xae0 net/socket.c:2896 __sys_recvmmsg net/socket.c:2975 [inline] __do_sys_recvmmsg net/socket.c:2998 [inline] __se_sys_recvmmsg net/socket.c:2991 [inline] __x64_sys_recvmmsg+0x199/0x240 net/socket.c:2991 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fec8c47cae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fec8afdd0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000012b RAX: ffffffffffffffda RBX: 00007fec8c59c050 RCX: 00007fec8c47cae9 RDX: 0000000000010106 RSI: 00000000200000c0 RDI: 0000000000000003 RBP: 00007fec8c4c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007fec8c59c050 R15: 00007ffc1933e668 task:syz-executor.0 state:R running task stack:19592 pid:5068 ppid:5057 flags:0x00004002 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0x196c/0x4af0 kernel/sched/core.c:6695 preempt_schedule_irq+0xfb/0x1b0 kernel/sched/core.c:7007 irqentry_exit+0x57/0x80 kernel/entry/common.c:432 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 RIP: 0010:lock_acquire+0x25a/0x520 kernel/locking/lockdep.c:5757 Code: 2b 00 74 08 4c 89 f7 e8 f4 8a 7b 00 f6 44 24 61 02 0f 85 84 01 00 00 41 f7 c7 00 02 00 00 74 01 fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 44 25 00 00 00 00 00 43 c7 44 25 09 00 00 00 00 43 c7 44 25 RSP: 0018:ffffc900043af5a0 EFLAGS: 00000206 RAX: 0000000000000001 RBX: 1ffff92000875ec0 RCX: ffffffff816d0807 RDX: 0000000000000000 RSI: ffffffff8b0ab5a0 RDI: ffffffff8b599aa0 RBP: ffffc900043af700 R08: dffffc0000000000 R09: 1ffffffff20df670 R10: dffffc0000000000 R11: fffffbfff20df671 R12: 1ffff92000875ebc R13: dffffc0000000000 R14: ffffc900043af600 R15: 0000000000000246 rcu_lock_acquire include/linux/rcupdate.h:303 [inline] rcu_read_lock include/linux/rcupdate.h:749 [inline] __d_lookup+0xac/0x7a0 fs/dcache.c:2480 lookup_fast+0x74/0x490 fs/namei.c:1651 walk_component fs/namei.c:1997 [inline] link_path_walk+0x5f8/0xe70 fs/namei.c:2328 path_openat+0x249/0x3180 fs/namei.c:3792 do_filp_open+0x234/0x490 fs/namei.c:3823 do_sys_openat2+0x13e/0x1d0 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+0x247/0x290 fs/open.c:1448 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fa09e67b6e0 RSP: 002b:00007ffd10457730 EFLAGS: 00000293 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fa09e67b6e0 RDX: 0000000000000002 RSI: 00007ffd10457870 RDI: 00000000ffffff9c RBP: 00007ffd10457870 R08: 0000000000000000 R09: 00007ffd104574f7 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000032 R13: 000000000023eccb R14: 000000000023ec9e R15: 0000000000000001 task:kworker/u4:11 state:R running task stack:23960 pid:18620 ppid:2 flags:0x00004000 Workqueue: bat_events batadv_nc_worker Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0x196c/0x4af0 kernel/sched/core.c:6695 preempt_schedule_irq+0xfb/0x1b0 kernel/sched/core.c:7007 irqentry_exit+0x57/0x80 kernel/entry/common.c:432 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:645 RIP: 0010:lock_acquire+0x25a/0x520 kernel/locking/lockdep.c:5757 Code: 2b 00 74 08 4c 89 f7 e8 f4 8a 7b 00 f6 44 24 61 02 0f 85 84 01 00 00 41 f7 c7 00 02 00 00 74 01 fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 44 25 00 00 00 00 00 43 c7 44 25 09 00 00 00 00 43 c7 44 25 RSP: 0018:ffffc9000db8fa20 EFLAGS: 00000206 RAX: 0000000000000001 RBX: 1ffff92001b71f50 RCX: ffffffff816d0807 RDX: 0000000000000000 RSI: ffffffff8b0ab5a0 RDI: ffffffff8b599aa0 RBP: ffffc9000db8fb80 R08: dffffc0000000000 R09: 1ffffffff20df670 R10: dffffc0000000000 R11: fffffbfff20df671 R12: 1ffff92001b71f4c R13: dffffc0000000000 R14: ffffc9000db8fa80 R15: 0000000000000246 rcu_lock_acquire include/linux/rcupdate.h:303 [inline] rcu_read_lock include/linux/rcupdate.h:749 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:408 [inline] batadv_nc_worker+0xec/0x610 net/batman-adv/network-coding.c:719 process_one_work kernel/workqueue.c:2630 [inline] process_scheduled_works+0x90f/0x1400 kernel/workqueue.c:2703 worker_thread+0xa5f/0xff0 kernel/workqueue.c:2784 kthread+0x2d3/0x370 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 rcu: rcu_preempt kthread starved for 10502 jiffies! g152969 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:26504 pid:17 ppid:2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:5382 [inline] __schedule+0x196c/0x4af0 kernel/sched/core.c:6695 schedule+0xc3/0x180 kernel/sched/core.c:6771 schedule_timeout+0x1bd/0x300 kernel/time/timer.c:2167 rcu_gp_fqs_loop+0x2c6/0x1010 kernel/rcu/tree.c:1613 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:1812 kthread+0x2d3/0x370 kernel/kthread.c:388 ret_from_fork+0x48/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: CPU: 1 PID: 17180 Comm: kworker/u4:4 Not tainted 6.6.0-rc2-syzkaller-00414-g8a511e7efc5a #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 Workqueue: events_unbound toggle_allocation_gate RIP: 0010:csd_lock_wait kernel/smp.c:300 [inline] RIP: 0010:smp_call_function_many_cond+0x180a/0x2890 kernel/smp.c:844 Code: 89 e6 83 e6 01 31 ff e8 34 59 0b 00 41 83 e4 01 49 bc 00 00 00 00 00 fc ff df 75 07 e8 6f 55 0b 00 eb 38 f3 90 42 0f b6 04 23 <84> c0 75 11 41 f7 45 00 01 00 00 00 74 1e e8 53 55 0b 00 eb e4 44 RSP: 0018:ffffc900031df720 EFLAGS: 00000293 RAX: 0000000000000000 RBX: 1ffff110173087b9 RCX: ffff88806a493b80 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc900031df920 R08: ffffffff8182b4ec R09: 1ffffffff20df670 R10: dffffc0000000000 R11: fffffbfff20df671 R12: dffffc0000000000 R13: ffff8880b9843dc8 R14: ffff8880b993d440 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1dcad98000 CR3: 000000000d130000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: on_each_cpu_cond_mask+0x3f/0x80 kernel/smp.c:1012 on_each_cpu include/linux/smp.h:71 [inline] text_poke_sync arch/x86/kernel/alternative.c:1993 [inline] text_poke_bp_batch+0x350/0xb20 arch/x86/kernel/alternative.c:2203 text_poke_flush arch/x86/kernel/alternative.c:2394 [inline] text_poke_finish+0x30/0x50 arch/x86/kernel/alternative.c:2401 arch_jump_label_transform_apply+0x1c/0x30 arch/x86/kernel/jump_label.c:146 static_key_enable_cpuslocked+0x132/0x250 kernel/jump_label.c:205 static_key_enable+0x1a/0x20 kernel/jump_label.c:218 toggle_allocation_gate+0xb5/0x250 mm/kfence/core.c:830 process_one_work kernel/workqueue.c:2630 [inline] process_scheduled_works+0x90f/0x1400 kernel/workqueue.c:2703 worker_thread+0xa5f/0xff0 kernel/workqueue.c:2784 kthread+0x2d3/0x370 kernel/kthread.c:388 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304