[v5.15] INFO: task hung in unix_dgram_sendmsg

0 views
Skip to first unread message

syzbot

unread,
Feb 28, 2024, 1:17:21 AMFeb 28
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 458ce51d0356 Linux 5.15.149
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=10c2ce26180000
kernel config: https://syzkaller.appspot.com/x/.config?x=8c016b4e71f1c777
dashboard link: https://syzkaller.appspot.com/bug?extid=56c091ecfbe476ffec86
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/c84f9ea3bbab/disk-458ce51d.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/70bdbf46c57d/vmlinux-458ce51d.xz
kernel image: https://storage.googleapis.com/syzbot-assets/73fc8d1364f3/bzImage-458ce51d.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+56c091...@syzkaller.appspotmail.com

INFO: task klogd:2954 blocked for more than 143 seconds.
Not tainted 5.15.149-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:klogd state:D stack:24256 pid: 2954 ppid: 1 flags:0x00004002
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]
__sys_sendto+0x564/0x720 net/socket.c:2058
__do_sys_sendto net/socket.c:2070 [inline]
__se_sys_sendto net/socket.c:2066 [inline]
__x64_sys_sendto+0xda/0xf0 net/socket.c:2066
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:0x7f6fe42fb9b5
RSP: 002b:00007ffde64269a8 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f6fe42fb9b5
RDX: 0000000000000106 RSI: 00005555d7bc8a40 RDI: 0000000000000003
RBP: 00005555d7bc0910 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000004000 R11: 0000000000000246 R12: 0000000000000013
R13: 00007f6fe4489212 R14: 00007ffde6426aa8 R15: 0000000000000000
</TASK>
INFO: task udevd:16454 blocked for more than 143 seconds.
Not tainted 5.15.149-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:udevd state:D stack:22176 pid:16454 ppid: 2965 flags:0x00004002
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:2146 [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:0x7feb2f5b7bf2
RSP: 002b:00007ffc02bb6bb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007feb2f5b7bf2
RDX: 0000000000000000 RSI: 00007ffc02bb6c0f RDI: 000000000000000a
RBP: 00007ffc02bb6c0f R08: 0000000000000001 R09: 0000000000000000
R10: 000000000000010f R11: 0000000000000246 R12: 000000000000000a
R13: 00007feb2f48cae0 R14: 0000000000000000 R15: 000055c1f5052910
</TASK>
INFO: task udevd:16495 blocked for more than 144 seconds.
Not tainted 5.15.149-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:udevd state:D stack:25024 pid:16495 ppid: 2965 flags:0x00004002
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:2146 [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:0x7feb2f5b7bf2
RSP: 002b:00007ffc02bb6bb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007feb2f5b7bf2
RDX: 0000000000000000 RSI: 00007ffc02bb6c0f RDI: 000000000000000a
RBP: 00007ffc02bb6c0f R08: 0000000000000001 R09: 0000000000000000
R10: 000000000000010f R11: 0000000000000246 R12: 000000000000000a
R13: 00007feb2f48cae0 R14: 0000000000000000 R15: 000055c1f5052910
</TASK>
INFO: task udevd:20295 blocked for more than 144 seconds.
Not tainted 5.15.149-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:udevd state:D stack:26624 pid:20295 ppid: 2965 flags:0x00004002
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:2146 [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:0x7feb2f5b7bf2
RSP: 002b:00007ffc02bb6bb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007feb2f5b7bf2
RDX: 0000000000000000 RSI: 00007ffc02bb6c0f RDI: 000000000000000a
RBP: 00007ffc02bb6c0f R08: 0000000000000001 R09: c32eb3c50a47997d
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000000a
R13: 00007feb2f48cae0 R14: 0000000000000000 R15: 000055c1f5052910
</TASK>
INFO: task udevd:20306 blocked for more than 144 seconds.
Not tainted 5.15.149-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:udevd state:D stack:26328 pid:20306 ppid: 2965 flags:0x00004002
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:2146 [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:0x7feb2f5b7bf2
RSP: 002b:00007ffc02bb6bb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007feb2f5b7bf2
RDX: 0000000000000000 RSI: 00007ffc02bb6c0f RDI: 000000000000000a
RBP: 00007ffc02bb6c0f R08: 0000000000000001 R09: 0000000000000000
R10: 000000000000010f R11: 0000000000000246 R12: 000000000000000a
R13: 00007feb2f48cae0 R14: 0000000000000000 R15: 000055c1f5052910
</TASK>
INFO: task syz-executor.3:25632 blocked for more than 145 seconds.
Not tainted 5.15.149-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.3 state:D stack:25880 pid:25632 ppid: 3547 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:0x7f9ffc39eda9
RSP: 002b:00007f9ffa91f0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f9ffc4ccf80 RCX: 00007f9ffc39eda9
RDX: 0000000000000000 RSI: 0000000020000600 RDI: 0000000000000003
RBP: 00007f9ffc3eb47a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f9ffc4ccf80 R15: 00007ffd38b23e78
</TASK>
INFO: task syz-executor.2:25639 blocked for more than 145 seconds.
Not tainted 5.15.149-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2 state:D stack:27712 pid:25639 ppid: 3553 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:0x7fa1dbc4ada9
RSP: 002b:00007fa1da1cb0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fa1dbd78f80 RCX: 00007fa1dbc4ada9
RDX: 0000000000000000 RSI: 0000000020001800 RDI: 0000000000000004
RBP: 00007fa1dbc9747a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007fa1dbd78f80 R15: 00007fffea7b0568
</TASK>
INFO: task syz-executor.4:25647 blocked for more than 146 seconds.
Not tainted 5.15.149-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4 state:D stack:27712 pid:25647 ppid: 3535 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_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]
____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:0x7fb5c87dcda9
RSP: 002b:00007fb5c6d5d0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fb5c890af80 RCX: 00007fb5c87dcda9
RDX: 0000000000040015 RSI: 0000000020000080 RDI: 0000000000000003
RBP: 00007fb5c882947a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007fb5c890af80 R15: 00007fff837ca548
</TASK>
INFO: task syz-executor.1:25653 blocked for more than 146 seconds.
Not tainted 5.15.149-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.1 state:D stack:27712 pid:25653 ppid: 3543 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:0x7f92708bdda9
RSP: 002b:00007f926ee3e0c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f92709ebf80 RCX: 00007f92708bdda9
RDX: 0000000000000000 RSI: 0000000020001800 RDI: 0000000000000004
RBP: 00007f927090a47a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f92709ebf80 R15: 00007fff97cf0018
</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
2 locks held by getty/3264:
#0: ffff88814ab83098 (&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
2 locks held by kworker/u4:6/3672:
1 lock held by syz-executor.0/17964:

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

NMI backtrace for cpu 1
CPU: 1 PID: 27 Comm: khungtaskd Not tainted 5.15.149-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: 1135 Comm: kworker/u4:3 Not tainted 5.15.149-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
Workqueue: phy19 ieee80211_iface_work
RIP: 0010:_compound_head include/linux/page-flags.h:198 [inline]
RIP: 0010:virt_to_head_page include/linux/mm.h:902 [inline]
RIP: 0010:kfree+0x7b/0x270 mm/slub.c:4554
Code: 00 48 83 fb 11 0f 82 18 01 00 00 48 bd 00 00 00 00 00 ea ff ff 48 89 df e8 52 1e 70 ff 48 c1 e8 0c 48 c1 e0 06 4c 8b 7c 28 08 <41> f6 c7 01 0f 85 19 01 00 00 48 01 c5 49 89 ef 49 8b 47 08 4c 89
RSP: 0018:ffffc9000468fad0 EFLAGS: 00000206
RAX: 0000000002327e00 RBX: ffff88808c9f8800 RCX: ffff88801d290000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffea0000000000 R08: ffffffff81396ec8 R09: fffffbfff1bc7746
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff11012a63c5f R14: ffffffff882d2f7a R15: dead000000000100
FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555555b73938 CR3: 000000007737a000 CR4: 00000000003506f0
Call Trace:
<NMI>
</NMI>
<TASK>
skb_free_head net/core/skbuff.c:655 [inline]
skb_release_data+0x73a/0x8a0 net/core/skbuff.c:677
skb_release_all net/core/skbuff.c:742 [inline]
__kfree_skb net/core/skbuff.c:756 [inline]
kfree_skb_reason+0xb3/0x170 net/core/skbuff.c:776
kfree_skb include/linux/skbuff.h:1123 [inline]
ieee80211_iface_work+0x251/0xcc0 net/mac80211/iface.c:1497
process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
kthread+0x3f6/0x4f0 kernel/kthread.c:319
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
</TASK>


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Feb 29, 2024, 2:20:27 PMFeb 29
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 458ce51d0356 Linux 5.15.149
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=145106ac180000
kernel config: https://syzkaller.appspot.com/x/.config?x=8c016b4e71f1c777
dashboard link: https://syzkaller.appspot.com/bug?extid=56c091ecfbe476ffec86
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1483b526180000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10b490ca180000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/61a90584fcdd/disk-458ce51d.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/e4a28325d975/vmlinux-458ce51d.xz
kernel image: https://storage.googleapis.com/syzbot-assets/2aa16396023c/bzImage-458ce51d.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+56c091...@syzkaller.appspotmail.com

INFO: task dhcpcd:3173 blocked for more than 143 seconds.
Not tainted 5.15.149-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:2146 [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:0x7fc5e5c02bf2
RSP: 002b:00007ffc386dc8b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000562ca6f7bcf0 RCX: 00007fc5e5c02bf2
RDX: 0000000000000047 RSI: 00007ffc386dc8d0 RDI: 0000000000000005
RBP: 00007ffc386dc8d0 R08: 0000000000000008 R09: 0000000000000036
R10: 0000000000000000 R11: 0000000000000246 R12: 0000562ca65c9efc
R13: 00007ffc386dcd00 R14: 0000562ca700f380 R15: 0000000000000001
</TASK>
INFO: task syz-executor127:6884 blocked for more than 143 seconds.
Not tainted 5.15.149-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor127 state:D stack:26624 pid: 6884 ppid: 3515 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:0x7fdc175b7bb9
RSP: 002b:00007ffcd95edba8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fdc175b7bb9
RDX: 000000000400c8c1 RSI: 0000000020000180 RDI: 0000000000000003
RBP: 000000000002559f R08: 0000000000000006 R09: 0000000000000006
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffcd95edbbc
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: ffff88802495e098 (&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.149-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.149-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
RIP: 0010:preempt_count arch/x86/include/asm/preempt.h:27 [inline]
RIP: 0010:check_kcov_mode kernel/kcov.c:163 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0xc/0x60 kernel/kcov.c:197
Code: 89 fb e8 17 00 00 00 48 8b 3d 88 86 63 0c 48 89 de 5b e9 87 e1 48 00 cc cc cc cc cc cc cc 48 8b 04 24 65 48 8b 0d d4 39 82 7e <65> 8b 15 d5 39 82 7e f7 c2 00 01 ff 00 74 11 f7 c2 00 01 00 00 74
RSP: 0018:ffffc90003157af8 EFLAGS: 00000246
RAX: ffffffff88f53310 RBX: ffff888079906770 RCX: ffff88807e1d3b80
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000000
RBP: ffffc90003157c70 R08: ffffffff882d0af3 R09: ffffed100377dbd4
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1100f320cee
R13: ffffc90003157b60 R14: 0000000000000000 R15: ffffffff8dad5720
FS: 00007fc5e5b38740(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc5e5ce4580 CR3: 000000001b837000 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:0x7fc5e5c030a8
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:00007ffc386bcbe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007fc5e5c030a8
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 000000000000000c
RBP: 00007ffc386dcf98 R08: 0000000000000007 R09: 4043a00b2877dbd7
R10: 0000000000004000 R11: 0000000000000246 R12: 0000562ca6f9ae60
R13: 00007ffc386ccdd8 R14: 0000000000000148 R15: 0000000000000004
</TASK>
INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 1.059 msecs


---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
Reply all
Reply to author
Forward
0 new messages