syzbot


INFO: rcu detected stall in kswapd (3)

Status: upstream: reported C repro on 2024/10/06 20:29
Subsystems: mm fs usb
[Documentation on labels]
Reported-by: syzbot+bcc7fa5044343fc35941@syzkaller.appspotmail.com
First crash: 49d, last: 34d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [mm?] [usb?] INFO: rcu detected stall in kswapd (3) 0 (1) 2024/10/06 20:29
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in kswapd kernel 1 2208d 2207d 0/28 auto-closed as invalid on 2019/05/04 06:35
android-49 INFO: rcu detected stall in kswapd C 10 1855d 2047d 0/3 public: reported C repro on 2019/04/14 08:51
upstream INFO: rcu detected stall in kswapd (2) mm kernfs 3 118d 138d 0/28 auto-obsoleted due to no activity on 2024/09/24 04:36
Last patch testing requests (1)
Created Duration User Patch Repo Result
2024/10/16 20:26 17m retest repro upstream report log

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-0): P76/1:b..l
rcu: 	(detected by 0, t=10502 jiffies, g=21325, q=180 ncpus=1)
task:kswapd0         state:R  running task     stack:21424 pid:76    tgid:76    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5315 [inline]
 __schedule+0x1895/0x4b30 kernel/sched/core.c:6675
 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:6997
 irqentry_exit+0x5e/0x90 kernel/entry/common.c:354
 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702
RIP: 0010:lru_gen_shrink_node mm/vmscan.c:4957 [inline]
RIP: 0010:shrink_node+0x36c0/0x3de0 mm/vmscan.c:5937
Code: 49 8d 9c 24 c8 f9 ff ff 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 74 08 48 89 df e8 03 6e 26 00 4c 8b 2b <49> 8d 84 24 10 fa ff ff 48 89 44 24 38 4c 89 ef e8 fb 88 fe ff 84
RSP: 0018:ffffc90000e477a0 EFLAGS: 00000246
RAX: 1ffff11002624000 RBX: ffff888013120000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000002
RBP: ffffc90000e47a50 R08: ffffffff81d81eb7 R09: 1ffffffff2858b00
R10: dffffc0000000000 R11: fffffbfff2858b01 R12: ffff888013120638
R13: ffff88804fab4000 R14: 0000000000000002 R15: 0000000000000000
 kswapd_shrink_node mm/vmscan.c:6765 [inline]
 balance_pgdat mm/vmscan.c:6957 [inline]
 kswapd+0x1ca3/0x3700 mm/vmscan.c:7226
 kthread+0x2f0/0x390 kernel/kthread.c:389
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
rcu: rcu_preempt kthread timer wakeup didn't happen for 10499 jiffies! g21325 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=0 timer-softirq=12782
rcu: rcu_preempt kthread starved for 10500 jiffies! g21325 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:26352 pid:17    tgid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5315 [inline]
 __schedule+0x1895/0x4b30 kernel/sched/core.c:6675
 __schedule_loop kernel/sched/core.c:6752 [inline]
 schedule+0x14b/0x320 kernel/sched/core.c:6767
 schedule_timeout+0x1be/0x310 kernel/time/timer.c:2615
 rcu_gp_fqs_loop+0x2df/0x1330 kernel/rcu/tree.c:2045
 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:2247
 kthread+0x2f0/0x390 kernel/kthread.c:389
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
CPU: 0 UID: 0 PID: 5313 Comm: syz-executor407 Not tainted 6.12.0-rc1-syzkaller-00031-ge32cde8d2bd7 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:xas_store+0xf9/0x1890 lib/xarray.c:847
Code: 83 e6 03 31 ff e8 07 6e d4 f5 48 89 d8 48 83 e0 03 74 1d e8 19 69 d4 f5 48 8b 44 24 60 48 83 c4 78 5b 41 5c 41 5d 41 5e 41 5f <5d> c3 cc cc cc cc 48 89 df 48 85 db 48 89 5c 24 10 0f 84 af 00 00
RSP: 0018:ffffc9000b4e78f0 EFLAGS: 00000282
RAX: 0000000000000000 RBX: 1ffff9200169cf27 RCX: ffff88803c872440
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: 1ffff9200169cf27 R08: ffffffff8bc07289 R09: 0000000000000000
R10: ffffc9000b4e7940 R11: fffff5200169cf2b R12: dffffc0000000000
R13: 1ffff9200169cf20 R14: ffffc9000b4e7920 R15: ffffc9000b4e7938
FS:  00007f32942b66c0(0000) GS:ffff88801fc00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f329436f363 CR3: 000000001e2ca000 CR4: 0000000000352ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 __xa_erase+0x135/0x220 lib/xarray.c:1511
 sock_devmem_dontneed+0x37b/0x740 net/core/sock.c:1089
 sk_setsockopt+0x73c/0x33b0 net/core/sock.c:1280
 do_sock_setsockopt+0x2fb/0x720 net/socket.c:2325
 __sys_setsockopt+0x1a2/0x250 net/socket.c:2352
 __do_sys_setsockopt net/socket.c:2361 [inline]
 __se_sys_setsockopt net/socket.c:2358 [inline]
 __x64_sys_setsockopt+0xb5/0xd0 net/socket.c:2358
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f329430cf69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 c1 1f 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:00007f32942b6238 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007f32943941a8 RCX: 00007f329430cf69
RDX: 0000000000000050 RSI: 0000000000000001 RDI: 0000000000000003
RBP: 00007f32943941a0 R08: 0000000000000010 R09: 00007f32942b66c0
R10: 0000000020000000 R11: 0000000000000246 R12: 00007f32943941ac
R13: 0000000000000016 R14: 00007ffc9990f2c0 R15: 00007ffc9990f3a8
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/02 20:19 upstream e32cde8d2bd7 83a2f15f .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root INFO: rcu detected stall in kswapd
2024/10/17 07:07 upstream c964ced77262 666f77ed .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce INFO: rcu detected stall in kswapd
* Struck through repros no longer work on HEAD.