rcu: INFO: rcu_preempt detected stalls on CPUs/tasks: (detected by 1, t=10502 jiffies, g=60577, q=82) rcu: All QSes seen, last rcu_preempt kthread activity 10502 (4295008402-4294997900), jiffies_till_next_fqs=1, root ->qsmask 0x0 rcu: rcu_preempt kthread starved for 10502 jiffies! g60577 f0x2 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:28720 pid: 14 ppid: 2 flags:0x00004000 Call Trace: context_switch kernel/sched/core.c:4986 [inline] __schedule+0xab2/0x4d90 kernel/sched/core.c:6296 schedule+0xd2/0x260 kernel/sched/core.c:6369 schedule_timeout+0x14a/0x2a0 kernel/time/timer.c:1881 rcu_gp_fqs_loop+0x186/0x810 kernel/rcu/tree.c:1971 rcu_gp_kthread+0x1de/0x320 kernel/rcu/tree.c:2144 kthread+0x405/0x4f0 kernel/kthread.c:345 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: 3655 Comm: udevd Not tainted 5.16.0-rc5-next-20211220-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:advance_sched+0x520/0x9a0 net/sched/sch_taprio.c:739 Code: c6 25 2b 6e 87 48 c7 c7 60 25 b8 8b e8 19 be ee f9 b8 01 00 00 00 48 83 c4 38 5b 5d 41 5c 41 5d 41 5e 41 5f c3 e8 f0 ea 09 fa <48> 8d 55 10 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 RSP: 0018:ffffc90000007dd0 EFLAGS: 00000046 RAX: 0000000000010002 RBX: ffff888077bfd340 RCX: 0000000000000000 RDX: ffff88801c84d7c0 RSI: ffffffff876e2b60 RDI: 0000000000000003 RBP: ffff88807fa5df80 R08: 1790834faf21069f R09: 0000000000000003 R10: ffffffff876e2861 R11: 0000000000000000 R12: ffff88801ea26e80 R13: ffff88801ea26380 R14: 1790834faf21069f R15: 1790834faf21069f FS: 00007f2a08c26840(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555555fdf888 CR3: 0000000029a4c000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000009800 DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: __run_hrtimer kernel/time/hrtimer.c:1685 [inline] __hrtimer_run_queues+0x609/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:lock_release+0x3f1/0x720 kernel/locking/lockdep.c:5647 Code: 7e 83 f8 01 0f 85 8d 01 00 00 9c 58 f6 c4 02 0f 85 78 01 00 00 48 f7 04 24 00 02 00 00 74 01 fb 48 b8 00 00 00 00 00 fc ff df <48> 01 c5 48 c7 45 00 00 00 00 00 c7 45 08 00 00 00 00 48 8b 84 24 RSP: 0018:ffffc900028ef900 EFLAGS: 00000206 RAX: dffffc0000000000 RBX: f8e20fe5f3ac6ee6 RCX: ffffc900028ef950 RDX: 1ffff11003909c43 RSI: 0000000000000001 RDI: 0000000000000000 RBP: 1ffff9200051df22 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000002 R13: 0000000000000003 R14: ffff88801c84e220 R15: ffff88801c84d7c0 local_lock_release include/linux/local_lock_internal.h:38 [inline] folio_add_lru+0x36f/0x6a0 mm/swap.c:470 shmem_getpage_gfp+0x6c2/0x23a0 mm/shmem.c:1921 shmem_getpage mm/shmem.c:150 [inline] shmem_write_begin+0xff/0x1e0 mm/shmem.c:2451 generic_perform_write+0x205/0x510 mm/filemap.c:3809 __generic_file_write_iter+0x1c7/0x510 mm/filemap.c:3936 generic_file_write_iter+0xd7/0x220 mm/filemap.c:3968 call_write_iter include/linux/fs.h:2079 [inline] new_sync_write+0x431/0x660 fs/read_write.c:503 vfs_write+0x7cd/0xae0 fs/read_write.c:590 ksys_write+0x12d/0x250 fs/read_write.c:643 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:0x7f2a08d7d9a3 Code: 8b 15 d9 f4 0c 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 64 8b 04 25 18 00 00 00 85 c0 75 14 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 55 c3 0f 1f 40 00 48 83 ec 28 48 89 54 24 18 RSP: 002b:00007fff1999cc98 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000012 RCX: 00007f2a08d7d9a3 RDX: 0000000000000012 RSI: 00007f2a09959300 RDI: 0000000000000009 RBP: 00007f2a09959300 R08: 0000000000000000 R09: 00007fff1999cc30 R10: 0000000001a6643d R11: 0000000000000246 R12: 0000000000000012 R13: 00007f2a0989e3e0 R14: 0000000000000012 R15: 00007f2a08e49780 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 25 2b 6e 87 48 and $0x48876e2b,%eax 5: c7 c7 60 25 b8 8b mov $0x8bb82560,%edi b: e8 19 be ee f9 callq 0xf9eebe29 10: b8 01 00 00 00 mov $0x1,%eax 15: 48 83 c4 38 add $0x38,%rsp 19: 5b pop %rbx 1a: 5d pop %rbp 1b: 41 5c pop %r12 1d: 41 5d pop %r13 1f: 41 5e pop %r14 21: 41 5f pop %r15 23: c3 retq 24: e8 f0 ea 09 fa callq 0xfa09eb19 * 29: 48 8d 55 10 lea 0x10(%rbp),%rdx <-- trapping instruction 2d: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 34: fc ff df 37: 48 c1 ea 03 shr $0x3,%rdx 3b: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1)