rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: rcu: 0-...!: (1 ticks this GP) idle=337/1/0x4000000000000000 softirq=160440/160440 fqs=0 rcu: Tasks blocked on level-0 rcu_node (CPUs 0-1): P21764/1:b..l (detected by 1, t=10502 jiffies, g=288105, q=33) Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 2547 Comm: syz-executor.0 Not tainted 5.16.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:debug_spin_unlock kernel/locking/spinlock_debug.c:101 [inline] RIP: 0010:do_raw_spin_unlock+0xad/0x230 kernel/locking/spinlock_debug.c:140 Code: 00 00 4c 8d 6d 10 48 b8 00 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03 80 3c 02 00 0f 85 65 01 00 00 65 48 8b 04 25 40 70 02 00 <48> 39 45 10 0f 85 d6 00 00 00 4c 8d 65 08 48 b8 00 00 00 00 00 fc RSP: 0018:ffffc90000007d20 EFLAGS: 00000046 RAX: ffff88801a678000 RBX: 0000000000000016 RCX: ffffffff815d3560 RDX: 1ffffffff20e8436 RSI: 0000000000000004 RDI: ffffffff907421a0 RBP: ffffffff907421a0 R08: 0000000000000000 R09: ffffffff907421a3 R10: fffffbfff20e8434 R11: 0000000000000000 R12: dffffc0000000000 R13: ffffffff907421b0 R14: 1ffff92000000fad R15: ffff88801c650b40 FS: 00007f43d12c5700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000000 CR3: 000000001d7e6000 CR4: 0000000000350ef0 Call Trace: __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:150 [inline] _raw_spin_unlock_irqrestore+0x1e/0x70 kernel/locking/spinlock.c:194 debug_object_deactivate lib/debugobjects.c:757 [inline] debug_object_deactivate+0x264/0x300 lib/debugobjects.c:723 debug_hrtimer_deactivate kernel/time/hrtimer.c:425 [inline] debug_deactivate kernel/time/hrtimer.c:481 [inline] __run_hrtimer kernel/time/hrtimer.c:1653 [inline] __hrtimer_run_queues+0x3f8/0xe50 kernel/time/hrtimer.c:1749 hrtimer_interrupt+0x31c/0x790 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1086 [inline] __sysvec_apic_timer_interrupt+0x146/0x530 arch/x86/kernel/apic/apic.c:1103 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1097 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638 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 90 15 f8 48 89 ef e8 32 07 16 f8 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 23 cf 08 f8 65 8b 05 fc 41 bb 76 85 c0 74 0a 5b 5d c3 e8 80 c1 RSP: 0018:ffffc900049dfc98 EFLAGS: 00000206 RAX: 0000000000000002 RBX: 0000000000000200 RCX: 1ffffffff1feea76 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001 RBP: ffff8880b9c2a400 R08: 0000000000000001 R09: ffffffff8ff74a07 R10: 0000000000000001 R11: 0000000000000000 R12: fafe4bd694fb1ab6 R13: 0000000000000000 R14: 000001c7b64cffd5 R15: dffffc0000000000 clock_was_set+0x56d/0x790 kernel/time/hrtimer.c:970 do_settimeofday64 kernel/time/timekeeping.c:1327 [inline] do_settimeofday64+0x3e2/0x5c0 kernel/time/timekeeping.c:1293 do_sys_settimeofday64 kernel/time/time.c:195 [inline] do_sys_settimeofday64+0x1de/0x260 kernel/time/time.c:169 __do_sys_clock_settime kernel/time/posix-timers.c:1079 [inline] __se_sys_clock_settime kernel/time/posix-timers.c:1067 [inline] __x64_sys_clock_settime+0x1a1/0x280 kernel/time/posix-timers.c:1067 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+0x44/0xae RIP: 0033:0x7f43d294fe99 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f43d12c5168 EFLAGS: 00000246 ORIG_RAX: 00000000000000e3 RAX: ffffffffffffffda RBX: 00007f43d2a62f60 RCX: 00007f43d294fe99 RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000000 RBP: 00007f43d29aa031 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffc869fdef R14: 00007f43d12c5300 R15: 0000000000022000 task:kworker/u4:4 state:R running task stack:26248 pid:21764 ppid: 2 flags:0x00004000 Workqueue: bat_events batadv_nc_worker Call Trace: context_switch kernel/sched/core.c:4972 [inline] __schedule+0xa9a/0x4940 kernel/sched/core.c:6253 preempt_schedule_notrace+0x5b/0xd0 kernel/sched/core.c:6498 preempt_schedule_notrace_thunk+0x16/0x18 arch/x86/entry/thunk_64.S:36 trace_lock_acquire include/trace/events/lock.h:13 [inline] lock_acquire+0x42a/0x510 kernel/locking/lockdep.c:5608 rcu_lock_acquire include/linux/rcupdate.h:268 [inline] rcu_read_lock include/linux/rcupdate.h:688 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:412 [inline] batadv_nc_worker+0x12d/0xfa0 net/batman-adv/network-coding.c:723 process_one_work+0x9b2/0x1690 kernel/workqueue.c:2298 worker_thread+0x658/0x11f0 kernel/workqueue.c:2445 kthread+0x405/0x4f0 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 rcu: rcu_preempt kthread timer wakeup didn't happen for 10501 jiffies! g288105 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 rcu: Possible timer handling issue on cpu=0 timer-softirq=108618 rcu: rcu_preempt kthread starved for 10502 jiffies! g288105 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->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:I stack:28456 pid: 14 ppid: 2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:4972 [inline] __schedule+0xa9a/0x4940 kernel/sched/core.c:6253 schedule+0xd2/0x260 kernel/sched/core.c:6326 schedule_timeout+0x14a/0x2a0 kernel/time/timer.c:1881 rcu_gp_fqs_loop+0x186/0x810 kernel/rcu/tree.c:1955 rcu_gp_kthread+0x1de/0x320 kernel/rcu/tree.c:2128 kthread+0x405/0x4f0 kernel/kthread.c:327 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: 2547 Comm: syz-executor.0 Not tainted 5.16.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:arch_atomic_read arch/x86/include/asm/atomic.h:29 [inline] RIP: 0010:atomic_read include/linux/atomic/atomic-instrumented.h:28 [inline] RIP: 0010:queued_spin_is_locked include/asm-generic/qspinlock.h:28 [inline] RIP: 0010:debug_spin_unlock kernel/locking/spinlock_debug.c:100 [inline] RIP: 0010:do_raw_spin_unlock+0x65/0x230 kernel/locking/spinlock_debug.c:140 Code: ad de 0f 85 74 01 00 00 be 04 00 00 00 48 89 ef e8 10 3a 61 00 48 89 ea 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 0f b6 14 02 <48> 89 e8 83 e0 07 83 c0 03 38 d0 7c 08 84 d2 0f 85 6b 01 00 00 8b RSP: 0018:ffffc90000007e08 EFLAGS: 00000012 RAX: dffffc0000000000 RBX: 0000000000000046 RCX: ffffffff815d3560 RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffff8880b9c2a400 RBP: ffff8880b9c2a400 R08: 0000000000000000 R09: ffff8880b9c2a403 R10: ffffed1017385480 R11: 0000000000000000 R12: 179f0a4daf3e149b R13: ffff8880b9c2a500 R14: ffff8880b9c2a400 R15: ffffffff875efc10 FS: 00007f43d12c5700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000000 CR3: 000000001d7e6000 CR4: 0000000000350ef0 Call Trace: __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:150 [inline] _raw_spin_unlock_irqrestore+0x1e/0x70 kernel/locking/spinlock.c:194 __run_hrtimer kernel/time/hrtimer.c:1681 [inline] __hrtimer_run_queues+0x51a/0xe50 kernel/time/hrtimer.c:1749 hrtimer_interrupt+0x31c/0x790 kernel/time/hrtimer.c:1811 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1086 [inline] __sysvec_apic_timer_interrupt+0x146/0x530 arch/x86/kernel/apic/apic.c:1103 sysvec_apic_timer_interrupt+0x8e/0xc0 arch/x86/kernel/apic/apic.c:1097 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:638 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 90 15 f8 48 89 ef e8 32 07 16 f8 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 23 cf 08 f8 65 8b 05 fc 41 bb 76 85 c0 74 0a 5b 5d c3 e8 80 c1 RSP: 0018:ffffc900049dfc98 EFLAGS: 00000206 RAX: 0000000000000002 RBX: 0000000000000200 RCX: 1ffffffff1feea76 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001 RBP: ffff8880b9c2a400 R08: 0000000000000001 R09: ffffffff8ff74a07 R10: 0000000000000001 R11: 0000000000000000 R12: fafe4bd694fb1ab6 R13: 0000000000000000 R14: 000001c7b64cffd5 R15: dffffc0000000000 clock_was_set+0x56d/0x790 kernel/time/hrtimer.c:970 do_settimeofday64 kernel/time/timekeeping.c:1327 [inline] do_settimeofday64+0x3e2/0x5c0 kernel/time/timekeeping.c:1293 do_sys_settimeofday64 kernel/time/time.c:195 [inline] do_sys_settimeofday64+0x1de/0x260 kernel/time/time.c:169 __do_sys_clock_settime kernel/time/posix-timers.c:1079 [inline] __se_sys_clock_settime kernel/time/posix-timers.c:1067 [inline] __x64_sys_clock_settime+0x1a1/0x280 kernel/time/posix-timers.c:1067 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+0x44/0xae RIP: 0033:0x7f43d294fe99 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f43d12c5168 EFLAGS: 00000246 ORIG_RAX: 00000000000000e3 RAX: ffffffffffffffda RBX: 00007f43d2a62f60 RCX: 00007f43d294fe99 RDX: 0000000000000000 RSI: 0000000020000180 RDI: 0000000000000000 RBP: 00007f43d29aa031 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fffc869fdef R14: 00007f43d12c5300 R15: 0000000000022000 ---------------- Code disassembly (best guess): 0: 00 00 add %al,(%rax) 2: 4c 8d 6d 10 lea 0x10(%rbp),%r13 6: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax d: fc ff df 10: 4c 89 ea mov %r13,%rdx 13: 48 c1 ea 03 shr $0x3,%rdx 17: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) 1b: 0f 85 65 01 00 00 jne 0x186 21: 65 48 8b 04 25 40 70 mov %gs:0x27040,%rax 28: 02 00 * 2a: 48 39 45 10 cmp %rax,0x10(%rbp) <-- trapping instruction 2e: 0f 85 d6 00 00 00 jne 0x10a 34: 4c 8d 65 08 lea 0x8(%rbp),%r12 38: 48 rex.W 39: b8 00 00 00 00 mov $0x0,%eax 3e: 00 fc add %bh,%ah