syzbot


INFO: task hung in pipe_release

Status: auto-obsoleted due to no activity on 2025/02/03 06:35
Reported-by: syzbot+b9ff7a71a6695ab61305@syzkaller.appspotmail.com
First crash: 219d, last: 160d
Similar bugs (13)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-414 INFO: task hung in pipe_release 1 2078d 2078d 0/1 auto-closed as invalid on 2019/11/24 16:38
upstream INFO: task hung in pipe_release (5) fs 160 92d 202d 0/28 auto-obsoleted due to no activity on 2025/02/21 02:48
upstream INFO: task hung in pipe_release (2) ext4 syz done 3 1675d 1706d 15/28 fixed on 2020/09/25 01:17
android-49 INFO: task hung in pipe_release (2) 1 2041d 2041d 0/3 auto-closed as invalid on 2019/12/30 22:08
upstream INFO: task hung in pipe_release (4) fs C done 51 632d 632d 23/28 fixed on 2023/10/12 12:48
android-49 INFO: task hung in pipe_release 2 2271d 2182d 0/3 auto-closed as invalid on 2019/07/14 20:38
upstream INFO: task hung in pipe_release (3) fs 4 1235d 1349d 0/28 closed as invalid on 2022/02/07 19:19
upstream INFO: task hung in pipe_release fs 2 2168d 2332d 0/28 auto-closed as invalid on 2019/10/25 10:11
linux-4.19 INFO: task hung in pipe_release 1 1471d 1471d 0/1 auto-closed as invalid on 2021/07/23 11:59
linux-5.15 INFO: task hung in pipe_release 2 167d 229d 0/3 auto-obsoleted due to no activity on 2025/01/27 06:00
linux-5.15 INFO: task hung in pipe_release (2) 1 9d01h 9d01h 0/3 upstream: reported on 2025/03/26 20:01
upstream INFO: task hung in pipe_release (6) bcachefs syz done 5 9d22h 36d 0/28 upstream: reported syz repro on 2025/02/27 19:55
upstream INFO: task can't die in pipe_release (2) fs 1 1527d 1523d 0/28 auto-closed as invalid on 2021/03/29 10:10

Sample crash report:
INFO: task syz.4.160:4772 blocked for more than 143 seconds.
      Not tainted 6.1.114-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz.4.160       state:D stack:25832 pid:4772  ppid:4245   flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5241 [inline]
 __schedule+0x143f/0x4570 kernel/sched/core.c:6558
 schedule+0xbf/0x180 kernel/sched/core.c:6634
 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6693
 __mutex_lock_common kernel/locking/mutex.c:679 [inline]
 __mutex_lock+0x6b9/0xd80 kernel/locking/mutex.c:747
 __pipe_lock fs/pipe.c:103 [inline]
 pipe_release+0x4d/0x320 fs/pipe.c:724
 __fput+0x3f6/0x8d0 fs/file_table.c:320
 task_work_run+0x246/0x300 kernel/task_work.c:203
 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:0x7f1c1fb7e719
RSP: 002b:00007ffcdc28bce8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 00007f1c1fd37a80 RCX: 00007f1c1fb7e719
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 00007f1c1fd37a80 R08: 0000000000000006 R09: 00007ffcdc28bfdf
R10: 00000000005fc998 R11: 0000000000000246 R12: 0000000000013280
R13: 00007ffcdc28bdf0 R14: 0000000000000032 R15: ffffffffffffffff
 </TASK>

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
 #0: ffffffff8d32b1d0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xe30 kernel/rcu/tasks.h:517
1 lock held by rcu_tasks_trace/13:
 #0: ffffffff8d32b9d0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x29/0xe30 kernel/rcu/tasks.h:517
1 lock held by khungtaskd/27:
 #0: ffffffff8d32b000 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:350 [inline]
 #0: ffffffff8d32b000 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:791 [inline]
 #0: ffffffff8d32b000 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x51/0x290 kernel/locking/lockdep.c:6510
2 locks held by udevd/3621:
2 locks held by getty/4003:
 #0: ffff88814d868098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244
 #1: ffffc900032462f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6a7/0x1db0 drivers/tty/n_tty.c:2198
1 lock held by syz.4.160/4772:
 #0: ffff88805bdf7c68 (&pipe->mutex/1){+.+.}-{3:3}, at: __pipe_lock fs/pipe.c:103 [inline]
 #0: ffff88805bdf7c68 (&pipe->mutex/1){+.+.}-{3:3}, at: pipe_release+0x4d/0x320 fs/pipe.c:724
1 lock held by syz.4.160/4773:
 #0: ffff88805bdf7c68 (&pipe->mutex/1){+.+.}-{3:3}, at: splice_file_to_pipe+0x2a/0x3d0 fs/splice.c:1038

=============================================

NMI backtrace for cpu 1
CPU: 1 PID: 27 Comm: khungtaskd Not tainted 6.1.114-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
 nmi_cpu_backtrace+0x4e1/0x560 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x1ae/0x3f0 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline]
 watchdog+0xf88/0xfd0 kernel/hung_task.c:377
 kthread+0x28d/0x320 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 4246 Comm: syz-executor Not tainted 6.1.114-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:validate_chain+0xb8/0x5950 kernel/locking/lockdep.c:3781
Code: f2 f2 f2 f2 f2 00 00 00 4a 89 44 21 17 48 b8 f2 f2 f2 f2 f2 00 f3 f3 4a 89 44 21 23 48 89 8c 24 a0 00 00 00 42 c6 44 21 2b f3 <48> 89 b4 24 b0 00 00 00 4c 8d 6e 20 4c 89 e8 48 c1 e8 03 48 89 44
RSP: 0018:ffffc9000406f6e0 EFLAGS: 00000806
RAX: f3f300f2f2f2f2f2 RBX: ffffffff90bba260 RCX: 1ffff9200080defc
RDX: 0000000000000000 RSI: ffff88802ead6448 RDI: ffff88802ead5940
RBP: ffffc9000406f990 R08: dffffc0000000000 R09: fffffbfff224604d
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff88802ead5940 R14: be43c46b22ef7dd3 R15: 1ffff11005d5ac8d
FS:  0000555592284500(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0c6e735f88 CR3: 000000005e4a6000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 __lock_acquire+0x125b/0x1f80 kernel/locking/lockdep.c:5049
 lock_acquire+0x1f8/0x5a0 kernel/locking/lockdep.c:5662
 rcu_lock_acquire include/linux/rcupdate.h:350 [inline]
 rcu_read_lock include/linux/rcupdate.h:791 [inline]
 __lock_task_sighand+0x45/0x2d0 kernel/signal.c:1393
 lock_task_sighand include/linux/sched/signal.h:745 [inline]
 do_send_sig_info kernel/signal.c:1299 [inline]
 group_send_sig_info+0x26c/0x300 kernel/signal.c:1448
 bpf_send_signal_common+0x2d8/0x420 kernel/trace/bpf_trace.c:882
 ____bpf_send_signal kernel/trace/bpf_trace.c:887 [inline]
 bpf_send_signal+0x15/0x20 kernel/trace/bpf_trace.c:885
 bpf_prog_73f54869a150006e+0x3d/0x41
 bpf_dispatcher_nop_func include/linux/bpf.h:989 [inline]
 __bpf_prog_run include/linux/filter.h:603 [inline]
 bpf_prog_run include/linux/filter.h:610 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:2273 [inline]
 bpf_trace_run2+0x1fd/0x410 kernel/trace/bpf_trace.c:2312
 __bpf_trace_sys_enter+0x60/0x70 include/trace/events/syscalls.h:18
 trace_sys_enter include/trace/events/syscalls.h:18 [inline]
 syscall_trace_enter kernel/entry/common.c:81 [inline]
 __syscall_enter_from_user_work kernel/entry/common.c:100 [inline]
 syscall_enter_from_user_mode+0x206/0x230 kernel/entry/common.c:118
 do_syscall_64+0x1e/0xb0 arch/x86/entry/common.c:77
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fbc5291a099
Code: 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 90 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 c7 c0 0f 00 00 00 0f 05 <0f> 1f 80 00 00 00 00 48 81 ec 48 01 00 00 49 89 d0 64 48 8b 04 25
RSP: 002b:00007ffe9b196500 EFLAGS: 00000206 ORIG_RAX: 000000000000000f
RAX: ffffffffffffffda RBX: 00007fbc529f11cc RCX: 00007fbc5291a099
RDX: 00007ffe9b196500 RSI: 00007ffe9b196630 RDI: 0000000000000011
RBP: 00007ffe9b196b70 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000206 R12: 00007ffe9b197bf0
R13: 00007fbc529f11cc R14: 0000000000012a9b R15: 00007ffe9b197c30
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/26 06:34 linux-6.1.y 7ec6f9fa3d97 65e8686b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in pipe_release
2024/08/28 18:21 linux-6.1.y ee5e09825b81 ef3de9e8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: task hung in pipe_release
* Struck through repros no longer work on HEAD.