syzbot


INFO: task hung in unix_dgram_sendmsg

Status: upstream: reported C repro on 2024/02/28 06:17
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+56c091ecfbe476ffec86@syzkaller.appspotmail.com
First crash: 112d, last: 105d
Bug presence (2)
Date Name Commit Repro Result
2024/02/29 linux-5.15.y (ToT) 458ce51d0356 C [report] INFO: task hung in unix_dgram_sendmsg
2024/02/29 upstream (ToT) 805d849d7c3c C Didn't crash
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 INFO: task hung in unix_dgram_sendmsg origin:lts-only C inconclusive 27 105d 124d 0/3 upstream: reported C repro on 2024/02/16 20:24
upstream INFO: task hung in unix_dgram_sendmsg net C done 36 112d 131d 26/27 fixed on 2024/03/25 11:41
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2024/03/20 22:22 1h46m fix candidate upstream job log (0)

Sample crash report:
INFO: task dhcpcd:3173 blocked for more than 143 seconds.
      Not tainted 5.15.150-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:dhcpcd          state:D stack:23544 pid: 3173 ppid:     1 flags:0x00004202
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5030 [inline]
 __schedule+0x12c4/0x45b0 kernel/sched/core.c:6376
 schedule+0x11b/0x1f0 kernel/sched/core.c:6459
 wait_for_unix_gc+0x14e/0x210 net/unix/garbage.c:201
 unix_dgram_sendmsg+0x143/0x2090 net/unix/af_unix.c:1771
 sock_sendmsg_nosec net/socket.c:704 [inline]
 __sock_sendmsg net/socket.c:716 [inline]
 sock_write_iter+0x39b/0x530 net/socket.c:1079
 call_write_iter include/linux/fs.h:2148 [inline]
 new_sync_write fs/read_write.c:507 [inline]
 vfs_write+0xacf/0xe50 fs/read_write.c:594
 ksys_write+0x1a2/0x2c0 fs/read_write.c:647
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f793282ebf2
RSP: 002b:00007ffd78f6a608 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000556dea139390 RCX: 00007f793282ebf2
RDX: 0000000000000047 RSI: 00007ffd78f6a620 RDI: 0000000000000005
RBP: 00007ffd78f6a620 R08: 0000000000000008 R09: 0000000000000036
R10: 0000000000000000 R11: 0000000000000246 R12: 0000556de9c5cefc
R13: 00007ffd78f6aa50 R14: 0000556dea16b6c0 R15: 0000000000000001
 </TASK>
INFO: task syz-executor569:9529 blocked for more than 143 seconds.
      Not tainted 5.15.150-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor569 state:D stack:27000 pid: 9529 ppid:  3516 flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5030 [inline]
 __schedule+0x12c4/0x45b0 kernel/sched/core.c:6376
 schedule+0x11b/0x1f0 kernel/sched/core.c:6459
 wait_for_unix_gc+0x14e/0x210 net/unix/garbage.c:201
 unix_stream_sendmsg+0xc3/0x1070 net/unix/af_unix.c:2035
 sock_sendmsg_nosec net/socket.c:704 [inline]
 __sock_sendmsg net/socket.c:716 [inline]
 ____sys_sendmsg+0x59e/0x8f0 net/socket.c:2431
 ___sys_sendmsg+0x252/0x2e0 net/socket.c:2485
 __sys_sendmsg net/socket.c:2514 [inline]
 __do_sys_sendmsg net/socket.c:2523 [inline]
 __se_sys_sendmsg+0x19a/0x260 net/socket.c:2521
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fe0afb22af9
RSP: 002b:00007fffc2ef0588 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fe0afb22af9
RDX: 0000000000048005 RSI: 0000000020000680 RDI: 0000000000000003
RBP: 00000000000259a0 R08: 0000000000000006 R09: 0000000000000006
R10: 0000000000000006 R11: 0000000000000246 R12: 00007fffc2ef059c
R13: 431bde82d7b634db R14: 0000000000000001 R15: 0000000000000001
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/27:
 #0: ffffffff8c91f720 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
1 lock held by dhcpcd/3174:
2 locks held by getty/3260:
 #0: ffff88814b723098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252
 #1: ffffc90002bab2e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6af/0x1db0 drivers/tty/n_tty.c:2158

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

NMI backtrace for cpu 1
CPU: 1 PID: 27 Comm: khungtaskd Not tainted 5.15.150-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/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+0x46a/0x4a0 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x181/0x2a0 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline]
 watchdog+0xe72/0xeb0 kernel/hung_task.c:295
 kthread+0x3f6/0x4f0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 3174 Comm: dhcpcd Not tainted 5.15.150-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
RIP: 0010:get_current arch/x86/include/asm/current.h:15 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x4/0x60 kernel/kcov.c:196
Code: 00 00 00 0f 1f 00 53 48 89 fb e8 17 00 00 00 48 8b 3d d8 58 63 0c 48 89 de 5b e9 57 e5 48 00 cc cc cc cc cc cc cc 48 8b 04 24 <65> 48 8b 0d 24 3a 82 7e 65 8b 15 25 3a 82 7e f7 c2 00 01 ff 00 74
RSP: 0018:ffffc900030b7af8 EFLAGS: 00000246
RAX: ffffffff88f3cb90 RBX: ffff888015dc0770 RCX: ffff888014fc5940
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000000
RBP: ffffc900030b7c70 R08: ffffffff882d1a83 R09: ffffed100ee8d4bc
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff11002bb80ee
R13: ffffc900030b7b60 R14: 0000000000000000 R15: ffffffff8dad3360
FS:  00007f7932764740(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7932910580 CR3: 0000000078f43000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 unix_gc+0x10e0/0x13b0 net/unix/garbage.c:320
 unix_release_sock+0x91c/0xaa0 net/unix/af_unix.c:607
 unix_release+0x88/0xc0 net/unix/af_unix.c:950
 __sock_release net/socket.c:649 [inline]
 sock_close+0xcd/0x230 net/socket.c:1336
 __fput+0x3bf/0x890 fs/file_table.c:280
 task_work_run+0x129/0x1a0 kernel/task_work.c:164
 tracehook_notify_resume include/linux/tracehook.h:189 [inline]
 exit_to_user_mode_loop+0x106/0x130 kernel/entry/common.c:175
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:208
 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
 syscall_exit_to_user_mode+0x5d/0x250 kernel/entry/common.c:301
 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f793282f0a8
Code: 48 8b 05 83 9d 0d 00 64 c7 00 16 00 00 00 83 c8 ff 48 83 c4 20 5b c3 64 8b 04 25 18 00 00 00 85 c0 75 20 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 76 5b 48 8b 15 51 9d 0d 00 f7 d8 64 89 02 48 83
RSP: 002b:00007ffd78f4a938 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007f793282f0a8
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000012
RBP: 00007ffd78f6ace8 R08: 0000000000000007 R09: 96de5c597f875448
R10: 0000000000004000 R11: 0000000000000246 R12: 0000556dea159ca0
R13: 00007ffd78f5ab28 R14: 0000000000000148 R15: 0000000000000004
 </TASK>
INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 1.098 msecs

Crashes (24):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/03/06 02:09 linux-5.15.y 80efc6265290 f39a7eed .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: task hung in unix_dgram_sendmsg
2024/03/06 00:02 linux-5.15.y 80efc6265290 f39a7eed .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: task hung in unix_dgram_sendmsg
2024/03/03 05:54 linux-5.15.y 80efc6265290 25905f5d .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: task hung in unix_dgram_sendmsg
2024/03/03 03:18 linux-5.15.y 80efc6265290 25905f5d .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: task hung in unix_dgram_sendmsg
2024/03/03 01:13 linux-5.15.y 80efc6265290 25905f5d .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: task hung in unix_dgram_sendmsg
2024/03/02 22:05 linux-5.15.y 80efc6265290 25905f5d .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: task hung in unix_dgram_sendmsg
2024/03/01 02:19 linux-5.15.y 458ce51d0356 352ab904 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: task hung in unix_dgram_sendmsg
2024/03/01 00:12 linux-5.15.y 458ce51d0356 352ab904 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in unix_dgram_sendmsg
2024/02/29 23:25 linux-5.15.y 458ce51d0356 352ab904 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: task hung in unix_dgram_sendmsg
2024/02/29 21:33 linux-5.15.y 458ce51d0356 352ab904 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: task hung in unix_dgram_sendmsg
2024/02/29 19:19 linux-5.15.y 458ce51d0356 352ab904 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: task hung in unix_dgram_sendmsg
2024/02/29 19:20 linux-5.15.y 458ce51d0356 352ab904 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in unix_dgram_sendmsg
2024/03/02 19:39 linux-5.15.y 80efc6265290 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: task hung in unix_dgram_sendmsg
2024/03/02 18:57 linux-5.15.y 80efc6265290 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in unix_dgram_sendmsg
2024/03/02 18:56 linux-5.15.y 80efc6265290 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: task hung in unix_dgram_sendmsg
2024/03/02 18:46 linux-5.15.y 80efc6265290 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in unix_dgram_sendmsg
2024/02/29 16:04 linux-5.15.y 458ce51d0356 352ab904 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in unix_dgram_sendmsg
2024/02/29 15:55 linux-5.15.y 458ce51d0356 352ab904 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: task hung in unix_dgram_sendmsg
2024/02/28 21:52 linux-5.15.y 458ce51d0356 55d6f11d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: task hung in unix_dgram_sendmsg
2024/02/28 06:16 linux-5.15.y 458ce51d0356 d367cbe5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: task hung in unix_dgram_sendmsg
2024/03/05 19:40 linux-5.15.y 80efc6265290 f39a7eed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in unix_dgram_sendmsg
2024/03/02 19:04 linux-5.15.y 80efc6265290 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in unix_dgram_sendmsg
2024/03/02 18:57 linux-5.15.y 80efc6265290 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in unix_dgram_sendmsg
2024/02/29 16:04 linux-5.15.y 458ce51d0356 352ab904 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 INFO: task hung in unix_dgram_sendmsg
* Struck through repros no longer work on HEAD.