syzbot


INFO: rcu detected stall in pipe_release

Status: auto-obsoleted due to no activity on 2024/09/15 08:11
Reported-by: syzbot+9b107a584e9af1c7df00@syzkaller.appspotmail.com
First crash: 189d, last: 189d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in pipe_release mm cgroups 27 1836d 1838d 0/28 closed as invalid on 2019/12/04 14:14
upstream INFO: rcu detected stall in pipe_release (2) kernel 8 1801d 1801d 0/28 closed as dup on 2020/01/08 06:14

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P3727/1:b..l
	(detected by 1, t=10503 jiffies, g=6713, q=11 ncpus=2)
task:syz-executor.2  state:R  running task     stack:25832 pid:3727  ppid:3570   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5245 [inline]
 __schedule+0x142d/0x4550 kernel/sched/core.c:6558
 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6870
 irqentry_exit+0x53/0x80 kernel/entry/common.c:439
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653
RIP: 0010:lock_acquire+0x26f/0x5a0 kernel/locking/lockdep.c:5666
Code: 2b 00 74 08 4c 89 f7 e8 7f a9 77 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:ffffc90004a07980 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 1ffff92000940f3c RCX: 1ffff92000940edc
RDX: dffffc0000000000 RSI: ffffffff8aec1340 RDI: ffffffff8b3d45e0
RBP: ffffc90004a07ad0 R08: dffffc0000000000 R09: fffffbfff2093845
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000940f38
R13: dffffc0000000000 R14: ffffc90004a079e0 R15: 0000000000000246
 rcu_lock_acquire include/linux/rcupdate.h:350 [inline]
 rcu_read_lock include/linux/rcupdate.h:791 [inline]
 percpu_ref_get_many+0x36/0x140 include/linux/percpu-refcount.h:202
 percpu_ref_get include/linux/percpu-refcount.h:222 [inline]
 css_get include/linux/cgroup.h:327 [inline]
 uncharge_folio+0x1f8/0x6b0 mm/memcontrol.c:7066
 __mem_cgroup_uncharge+0x9d/0x100 mm/memcontrol.c:7098
 mem_cgroup_uncharge include/linux/memcontrol.h:691 [inline]
 __folio_put_small mm/swap.c:104 [inline]
 __folio_put+0xef/0x210 mm/swap.c:128
 pipe_buf_release include/linux/pipe_fs_i.h:199 [inline]
 free_pipe_info+0x20d/0x380 fs/pipe.c:849
 put_pipe_info fs/pipe.c:716 [inline]
 pipe_release+0x24a/0x320 fs/pipe.c:739
 __fput+0x3b7/0x890 fs/file_table.c:320
 task_work_run+0x246/0x300 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0xde/0x100 kernel/entry/common.c:177
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210
 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline]
 syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:303
 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:87
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fca7767be5a
RSP: 002b:00007ffec9487070 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000005 RCX: 00007fca7767be5a
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000004
RBP: 00007fca777b5980 R08: 0000001b32f20000 R09: 0000000000000010
R10: 0000000000000093 R11: 0000000000000293 R12: 000000000001068f
R13: 00007fca777b405c R14: 0000000000000032 R15: 00007fca777b5980
 </TASK>
rcu: rcu_preempt kthread starved for 10537 jiffies! g6713 f0x0 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:27032 pid:16    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5245 [inline]
 __schedule+0x142d/0x4550 kernel/sched/core.c:6558
 schedule+0xbf/0x180 kernel/sched/core.c:6634
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1965
 rcu_gp_fqs_loop+0x2d2/0x1150 kernel/rcu/tree.c:1706
 rcu_gp_kthread+0xa3/0x3b0 kernel/rcu/tree.c:1905
 kthread+0x28d/0x320 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>
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: 3735 Comm: syz-executor.3 Not tainted 6.1.92-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
RIP: 0010:try_to_wake_up+0x77/0x12e0 kernel/sched/core.c:4080
Code: 8e 8c 48 c7 44 24 50 d0 ec 5e 81 4c 8d 64 24 40 49 c1 ec 03 48 b8 f1 f1 f1 f1 00 00 f2 f2 49 89 04 0c 66 41 c7 44 0c 0a f2 f2 <66> 41 c7 44 0c 0e f3 f3 bf 01 00 00 00 e8 f7 64 ff ff 65 48 8b 05
RSP: 0018:ffffc90000007bc0 EFLAGS: 00000802
RAX: f2f20000f1f1f1f1 RBX: ffff8880268f1dc0 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff8880268f1dc0
RBP: ffffc90000007cd8 R08: dffffc0000000000 R09: ffffed1004d1e3b9
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000000f80
R13: 0000000000000001 R14: 0000000000000001 R15: 0000000000000400
FS:  0000555556f3f480(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f32be6d3f00 CR3: 0000000074288000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 signal_wake_up_state kernel/signal.c:780 [inline]
 signal_wake_up include/linux/sched/signal.h:457 [inline]
 complete_signal+0x796/0xbd0 kernel/signal.c:1074
 __send_signal_locked+0xb1a/0xdc0 kernel/signal.c:1194
 do_send_sig_info kernel/signal.c:1300 [inline]
 group_send_sig_info+0x28a/0x300 kernel/signal.c:1448
 do_bpf_send_signal+0x81/0x150 kernel/trace/bpf_trace.c:839
 irq_work_single+0xd5/0x230 kernel/irq_work.c:211
 irq_work_run_list kernel/irq_work.c:242 [inline]
 irq_work_run+0x187/0x350 kernel/irq_work.c:251
 __sysvec_irq_work+0xbb/0x360 arch/x86/kernel/irq_work.c:22
 sysvec_irq_work+0x89/0xb0 arch/x86/kernel/irq_work.c:17
 </IRQ>
 <TASK>
 asm_sysvec_irq_work+0x16/0x20 arch/x86/include/asm/idtentry.h:679
RIP: 0010:finish_task_switch+0x1d3/0x810 kernel/sched/core.c:5124
Code: 37 0b 00 48 83 c4 08 4c 89 f7 e8 98 30 00 00 0f 1f 44 00 00 4c 89 f7 e8 7b 20 36 09 e8 36 26 32 00 fb 49 8d bc 24 f8 15 00 00 <48> 89 f8 48 c1 e8 03 49 bd 00 00 00 00 00 fc ff df 42 0f b6 04 28
RSP: 0018:ffffc90004797868 EFLAGS: 00000286
RAX: 6483103ab4b62000 RBX: ffff8880268f1df4 RCX: ffffffff91c94103
RDX: dffffc0000000000 RSI: ffffffff8aec01c0 RDI: ffff8880219bb3b8
RBP: ffffc900047978b0 R08: dffffc0000000000 R09: ffffed1017307541
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880219b9dc0
R13: 1ffff110173076eb R14: ffff8880b983aa00 R15: ffff8880b983b758
 context_switch kernel/sched/core.c:5248 [inline]
 __schedule+0x1435/0x4550 kernel/sched/core.c:6558
 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6870
 irqentry_exit+0x53/0x80 kernel/entry/common.c:439
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653
RIP: 0010:kasan_check_range+0x1/0x290 mm/kasan/generic.c:188
Code: 01 c6 48 89 c7 e8 8f b9 a9 08 31 c0 c3 0f 0b b8 ea ff ff ff c3 0f 0b b8 ea ff ff ff c3 cc cc cc cc cc cc cc cc cc cc cc cc 55 <41> 57 41 56 53 b0 01 48 85 f6 0f 84 9a 01 00 00 48 89 fd 48 01 f5
RSP: 0018:ffffc90004797c08 EFLAGS: 00000246
RAX: 0000000000000001 RBX: 1ffff110043373b8 RCX: ffffffff8a938926
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff8880219b9dc0
RBP: ffffc90004797d30 R08: dffffc0000000000 R09: ffffed1017307541
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880219b9dc0
R13: ffffc90004797dc0 R14: ffff8880219bb038 R15: dffffc0000000000
 instrument_atomic_read include/linux/instrumented.h:72 [inline]
 _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
 test_ti_thread_flag include/linux/thread_info.h:118 [inline]
 need_resched include/linux/sched.h:2231 [inline]
 schedule+0xd6/0x180 kernel/sched/core.c:6636
 do_nanosleep+0x192/0x5f0 kernel/time/hrtimer.c:2045
 hrtimer_nanosleep+0x24d/0x490 kernel/time/hrtimer.c:2098
 __do_sys_clock_nanosleep kernel/time/posix-timers.c:1308 [inline]
 __se_sys_clock_nanosleep+0x323/0x3b0 kernel/time/posix-timers.c:1285
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f32bd8a8375
Code: 24 0c 89 3c 24 48 89 4c 24 18 e8 f6 b9 ff ff 4c 8b 54 24 18 48 8b 54 24 10 41 89 c0 8b 74 24 0c 8b 3c 24 b8 e6 00 00 00 0f 05 <44> 89 c7 48 89 04 24 e8 4f ba ff ff 48 8b 04 24 48 83 c4 28 f7 d8
RSP: 002b:00007ffe16db28f0 EFLAGS: 00000293 ORIG_RAX: 00000000000000e6
RAX: ffffffffffffffda RBX: 00007f32bd9b3f80 RCX: 00007f32bd8a8375
RDX: 00007ffe16db2930 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007f32bd9b5980 R08: 0000000000000000 R09: 0000000000000010
R10: 0000000000000000 R11: 0000000000000293 R12: 00000000000107e4
R13: 00007f32bd9b405c R14: 0000000000000032 R15: 00007f32bd9b5980
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/07 08:10 linux-6.1.y 88690811da69 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in pipe_release
* Struck through repros no longer work on HEAD.