syzbot


INFO: rcu detected stall in pipe_write (3)

Status: auto-obsoleted due to no activity on 2024/09/11 11:25
Subsystems: mm
[Documentation on labels]
First crash: 428d, last: 398d
Similar bugs (3)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in pipe_write (2) mm cgroups 1 1 2016d 2016d 0/29 closed as invalid on 2020/01/09 08:13
upstream INFO: rcu detected stall in pipe_write kernel 1 1 2052d 2052d 0/29 closed as invalid on 2019/12/04 14:04
linux-6.1 INFO: rcu detected stall in pipe_write 1 1 395d 395d 0/3 auto-obsoleted due to no activity on 2024/09/24 01:17

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P7460/1:b..l
rcu: 	(detected by 0, t=10502 jiffies, g=34025, q=626 ncpus=2)
task:syz-executor.0  state:R  running task     stack:27024 pid:7460  tgid:7454  ppid:6586   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5408 [inline]
 __schedule+0x1796/0x49d0 kernel/sched/core.c:6745
 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:7067
 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:lock_release+0x630/0x9f0 kernel/locking/lockdep.c:5778
Code: 3c 3b 00 74 08 4c 89 f7 e8 5d 10 86 00 f6 84 24 91 00 00 00 02 75 77 41 f7 c5 00 02 00 00 74 01 fb 48 c7 44 24 60 0e 36 e0 45 <4b> c7 04 27 00 00 00 00 4b c7 44 27 08 00 00 00 00 65 48 8b 04 25
RSP: 0018:ffffc900020af420 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 1ffff92000415e96 RCX: ffffc900020af403
RDX: 0000000000000001 RSI: ffffffff8bcacd00 RDI: ffffffff8c1f20c0
RBP: ffffc900020af560 R08: ffffffff8fac21af R09: 1ffffffff1f58435
R10: dffffc0000000000 R11: fffffbfff1f58436 R12: 1ffff92000415e90
R13: 0000000000000246 R14: ffffc900020af4b0 R15: dffffc0000000000
 rcu_lock_release include/linux/rcupdate.h:339 [inline]
 rcu_read_unlock include/linux/rcupdate.h:812 [inline]
 page_ext_put+0xa3/0xc0 mm/page_ext.c:546
 __set_page_owner+0x3f0/0x800 mm/page_owner.c:328
 set_page_owner include/linux/page_owner.h:32 [inline]
 post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1468
 prep_new_page mm/page_alloc.c:1476 [inline]
 get_page_from_freelist+0x2e43/0x2f00 mm/page_alloc.c:3420
 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4678
 alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2265
 pipe_write+0x657/0x1a40 fs/pipe.c:513
 new_sync_write fs/read_write.c:497 [inline]
 vfs_write+0xa72/0xc90 fs/read_write.c:590
 ksys_write+0x1a0/0x2c0 fs/read_write.c:643
 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:0x7f8682e7cea9
RSP: 002b:00007f8683c9c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f8682fb4120 RCX: 00007f8682e7cea9
RDX: 00000000ffffff14 RSI: 0000000020000240 RDI: 0000000000000007
RBP: 00007f8682eebff4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f8682fb4120 R15: 00007ffffd9df638
 </TASK>
rcu: rcu_preempt kthread starved for 10495 jiffies! g34025 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:26128 pid:17    tgid:17    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5408 [inline]
 __schedule+0x1796/0x49d0 kernel/sched/core.c:6745
 __schedule_loop kernel/sched/core.c:6822 [inline]
 schedule+0x14b/0x320 kernel/sched/core.c:6837
 schedule_timeout+0x1be/0x310 kernel/time/timer.c:2581
 rcu_gp_fqs_loop+0x2df/0x1330 kernel/rcu/tree.c:2000
 rcu_gp_kthread+0xa7/0x3b0 kernel/rcu/tree.c:2202
 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:
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 7457 Comm: syz-executor.3 Not tainted 6.10.0-rc3-syzkaller-00022-gcea2a26553ac #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
RIP: 0010:x64_sys_call+0x0/0x2650 arch/x86/entry/syscall_64.c:28
Code: 2e 7e 03 7f 48 8d a0 58 ff ff ff e8 aa 13 59 00 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 <66> 0f 1f 00 81 fe e6 00 00 00 7e 71 81 fe 5a 01 00 00 0f 8f d3 00
RSP: 0018:ffffc90003d37f08 EFLAGS: 00000206
RAX: b04af7cd93a79a00 RBX: ffffc90003d37f10 RCX: ffffffff9476c603
RDX: 0000000000000000 RSI: 00000000000000ca RDI: ffffc90003d37f58
RBP: ffffc90003d37f48 R08: ffffffff8fac21af R09: 1ffffffff1f58435
R10: dffffc0000000000 R11: fffffbfff1f58436 R12: ffff88801fe9bc00
R13: 0000000000000000 R14: ffffc90003d37f58 R15: 00000000000000ca
FS:  00007f083ae4f6c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffffe8 CR3: 000000002c6e2000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 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:0x7f083a07cea9
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:00007f083ae4f178 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: ffffffffffffffda RBX: 00007f083a1b3f88 RCX: 00007f083a07cea9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007f083a1b3f88
RBP: 00007f083a1b3f80 R08: 00007f083ae4f6c0 R09: 00007f083ae4f6c0
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f083a1b3f8c
R13: 000000000000000b R14: 00007ffc2cddc5e0 R15: 00007ffc2cddc6c8
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/13 11:20 upstream cea2a26553ac 2aa5052f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in pipe_write
2024/05/14 03:40 linux-next 6ba6c795dc73 fdb4c10c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: rcu detected stall in pipe_write
* Struck through repros no longer work on HEAD.