syzbot


INFO: rcu detected stall in sys_pipe2

Status: auto-closed as invalid on 2022/01/17 19:05
Subsystems: fs
[Documentation on labels]
First crash: 1125d, last: 1125d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_pipe2 (2) mm 38 1d22h 7d11h 0/28 upstream: reported on 2024/11/10 15:52

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-...!: (0 ticks this GP) idle=5b7/1/0x4000000000000000 softirq=205910/205910 fqs=0 
	(detected by 1, t=10502 jiffies, g=360441, q=65)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 1 Comm: systemd Not tainted 5.15.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:should_restart_cycle net/sched/sch_taprio.c:661 [inline]
RIP: 0010:advance_sched+0x316/0x930 net/sched/sch_taprio.c:734
Code: 08 4c 89 f7 e8 eb 85 8c f9 49 8b 2e 48 8b 44 24 10 4c 8d 60 28 4c 89 e0 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 <74> 08 4c 89 e7 e8 c0 85 8c f9 49 8b 1c 24 48 89 ef 48 89 de e8 31
RSP: 0018:ffffc90000007c80 EFLAGS: 00000046
RAX: 1ffff11009390545 RBX: 173b43f2ae7687e5 RCX: dffffc0000000000
RDX: ffff888140158000 RSI: 0000000000000000 RDI: 173b43f2ae7687e5
RBP: 173b43f2ae7687e5 R08: ffffffff88427226 R09: 0000000000000003
R10: fffff52000000f81 R11: 0000000000000004 R12: ffff888049c82a28
R13: ffff888049c82a10 R14: ffff88804a630c10 R15: 1ffff110094c6180
FS:  00007f51f633d500(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005560929bcd20 CR3: 0000000026a16000 CR4: 00000000003506f0
Call Trace:
 <IRQ>
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x50b/0xa60 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x3b3/0x1040 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1086 [inline]
 __sysvec_apic_timer_interrupt+0xf9/0x270 arch/x86/kernel/apic/apic.c:1103
 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1097
 </IRQ>
 asm_sysvec_apic_timer_interrupt+0x12/0x20
RIP: 0010:stack_depot_save+0x14c/0x490 lib/stackdepot.c:281
Code: c8 31 c7 c1 c0 0e 29 c7 41 31 ff c1 c7 18 41 29 ff 48 8b 05 fe e8 95 0c 44 89 fd 81 e5 ff ff 0f 00 48 89 44 24 10 4c 8b 2c e8 <44> 89 f3 eb 13 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 4d 8b
RSP: 0018:ffffc90000c67910 EFLAGS: 00000202
RAX: ffff88823b000000 RBX: 00000000433ee591 RCX: 000000002316188c
RDX: 0000000000000cc0 RSI: ffffc90000c679d4 RDI: 00000000c7dbe75d
RBP: 00000000000a54f2 R08: 0000000000000001 R09: ffffffff8a000dd0
R10: ffffffff8a200000 R11: ffffffff8a2007a3 R12: ffffc90000c67980
R13: ffff88807d826da0 R14: 000000000000000b R15: 0000000051fa54f2
 kasan_save_stack mm/kasan/common.c:40 [inline]
 kasan_set_track mm/kasan/common.c:46 [inline]
 set_alloc_info mm/kasan/common.c:434 [inline]
 __kasan_slab_alloc+0xc9/0xe0 mm/kasan/common.c:467
 kasan_slab_alloc include/linux/kasan.h:254 [inline]
 slab_post_alloc_hook mm/slab.h:519 [inline]
 slab_alloc_node mm/slub.c:3213 [inline]
 slab_alloc mm/slub.c:3221 [inline]
 kmem_cache_alloc+0x1c3/0x300 mm/slub.c:3226
 __d_alloc+0x2a/0x700 fs/dcache.c:1744
 d_alloc_pseudo+0x19/0x70 fs/dcache.c:1873
 alloc_file_pseudo+0x13f/0x300 fs/file_table.c:225
 create_pipe_files+0x315/0x6e0 fs/pipe.c:925
 __do_pipe_flags+0x46/0x200 fs/pipe.c:958
 do_pipe2+0xd0/0x300 fs/pipe.c:1006
 __do_sys_pipe2 fs/pipe.c:1024 [inline]
 __se_sys_pipe2 fs/pipe.c:1022 [inline]
 __x64_sys_pipe2+0x56/0x60 fs/pipe.c:1022
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f51f4907047
Code: 73 01 c3 48 8b 0d 51 ce 2b 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 25 01 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 21 ce 2b 00 f7 d8 64 89 01 48
RSP: 002b:00007ffcae027778 EFLAGS: 00000286 ORIG_RAX: 0000000000000125
RAX: ffffffffffffffda RBX: 0000556092ab1ec0 RCX: 00007f51f4907047
RDX: 00000000ffffffff RSI: 0000000000080800 RDI: 000055609297bdf0
RBP: 0000556092ac2a00 R08: 4973401f4ae95ac3 R09: 0000000000000003
R10: 8aca3ba0e2666aac R11: 0000000000000286 R12: 0000556091fe5100
R13: 0000556092ac2a00 R14: 0000000000000000 R15: 000055609297b9a0
rcu: rcu_preempt kthread starved for 10502 jiffies! g360441 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:26544 pid:   14 ppid:     2 flags:0x00004000
Call Trace:
 context_switch kernel/sched/core.c:4940 [inline]
 __schedule+0xb72/0x1460 kernel/sched/core.c:6287
 schedule+0x14b/0x210 kernel/sched/core.c:6366
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1881
 rcu_gp_fqs_loop+0x1fd/0x770 kernel/rcu/tree.c:1957
 rcu_gp_kthread+0xa5/0x350 kernel/rcu/tree.c:2130
 kthread+0x453/0x480 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30
rcu: Stack dump where RCU GP kthread last ran:
NMI backtrace for cpu 1
CPU: 1 PID: 25310 Comm: syz-executor.0 Not tainted 5.15.0-rc6-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1dc/0x2d8 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x45f/0x490 lib/nmi_backtrace.c:105
 nmi_trigger_cpumask_backtrace+0x16a/0x280 lib/nmi_backtrace.c:62
 trigger_single_cpu_backtrace include/linux/nmi.h:164 [inline]
 rcu_check_gp_kthread_starvation+0x1ff/0x270 kernel/rcu/tree_stall.h:481
 print_other_cpu_stall kernel/rcu/tree_stall.h:586 [inline]
 check_cpu_stall kernel/rcu/tree_stall.h:729 [inline]
 rcu_pending kernel/rcu/tree.c:3880 [inline]
 rcu_sched_clock_irq+0x23d5/0x2bc0 kernel/rcu/tree.c:2599
 update_process_times+0x197/0x200 kernel/time/timer.c:1785
 tick_sched_handle kernel/time/tick-sched.c:226 [inline]
 tick_sched_timer+0x27d/0x420 kernel/time/tick-sched.c:1421
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x4cb/0xa60 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x3b3/0x1040 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1086 [inline]
 __sysvec_apic_timer_interrupt+0xf9/0x270 arch/x86/kernel/apic/apic.c:1103
 sysvec_apic_timer_interrupt+0x8c/0xb0 arch/x86/kernel/apic/apic.c:1097
 </IRQ>
 asm_sysvec_apic_timer_interrupt+0x12/0x20
RIP: 0010:check_kcov_mode kernel/kcov.c:174 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x33/0x60 kernel/kcov.c:197
Code: c0 ef 01 00 65 8b 15 14 66 7e 7e f7 c2 00 01 ff 00 74 11 f7 c2 00 01 00 00 74 35 83 b9 64 15 00 00 00 74 2c 8b 91 40 15 00 00 <83> fa 02 75 21 48 8b 91 48 15 00 00 48 8b 32 48 8d 7e 01 8b 89 44
RSP: 0018:ffffc90003bcfb38 EFLAGS: 00000246
RAX: ffffffff8177ee2a RBX: 1ffff11017387305 RCX: ffff88809e729c80
RDX: 0000000000000002 RSI: 000000000003ffff RDI: 0000000000040000
RBP: ffffc90003bcfc70 R08: ffffffff8177edf2 R09: ffffffff84365c30
R10: 0000000000000009 R11: ffff88809e729c80 R12: 0000000000000000
R13: ffff8880b9c39828 R14: ffff8880b9d325c0 R15: dffffc0000000000
 csd_lock_wait kernel/smp.c:440 [inline]
 smp_call_function_many_cond+0xbca/0xda0 kernel/smp.c:969
 clock_was_set+0x86e/0x940 kernel/time/hrtimer.c:974
 do_settimeofday64+0x618/0x7a0 kernel/time/timekeeping.c:1327
 __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+0x23d/0x280 kernel/time/posix-timers.c:1067
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f0f65e05a39
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:00007f0f6337b188 EFLAGS: 00000246 ORIG_RAX: 00000000000000e3
RAX: ffffffffffffffda RBX: 00007f0f65f08f60 RCX: 00007f0f65e05a39
RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000000
RBP: 00007f0f65e5fc5f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe9311933f R14: 00007f0f6337b300 R15: 0000000000022000
----------------
Code disassembly (best guess):
   0:	08 4c 89 f7          	or     %cl,-0x9(%rcx,%rcx,4)
   4:	e8 eb 85 8c f9       	callq  0xf98c85f4
   9:	49 8b 2e             	mov    (%r14),%rbp
   c:	48 8b 44 24 10       	mov    0x10(%rsp),%rax
  11:	4c 8d 60 28          	lea    0x28(%rax),%r12
  15:	4c 89 e0             	mov    %r12,%rax
  18:	48 c1 e8 03          	shr    $0x3,%rax
  1c:	48 b9 00 00 00 00 00 	movabs $0xdffffc0000000000,%rcx
  23:	fc ff df
  26:	80 3c 08 00          	cmpb   $0x0,(%rax,%rcx,1)
* 2a:	74 08                	je     0x34 <-- trapping instruction
  2c:	4c 89 e7             	mov    %r12,%rdi
  2f:	e8 c0 85 8c f9       	callq  0xf98c85f4
  34:	49 8b 1c 24          	mov    (%r12),%rbx
  38:	48 89 ef             	mov    %rbp,%rdi
  3b:	48 89 de             	mov    %rbx,%rsi
  3e:	e8                   	.byte 0xe8
  3f:	31                   	.byte 0x31

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/10/19 18:58 upstream d9abdee5fd5a 466b7db1 .config console log report info ci-upstream-kasan-gce-smack-root INFO: rcu detected stall in sys_pipe2
* Struck through repros no longer work on HEAD.