INFO: task hung in lock_sock_nested (2)

9 views
Skip to first unread message

syzbot

unread,
Dec 9, 2021, 12:14:24 PM12/9/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=17aae791b00000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=f93cd7f69df1108717af
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

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

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

INFO: task syz-executor.2:25643 blocked for more than 140 seconds.
Not tainted 4.19.211-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor.2 D28800 25643 25634 0x00000000
Call Trace:
context_switch kernel/sched/core.c:2828 [inline]
__schedule+0x887/0x2040 kernel/sched/core.c:3517
schedule+0x8d/0x1b0 kernel/sched/core.c:3561
__lock_sock+0x13d/0x260 net/core/sock.c:2338
lock_sock_nested+0xf1/0x110 net/core/sock.c:2886
lock_sock include/net/sock.h:1512 [inline]
ax25_recvmsg+0xbb/0x810 net/ax25/af_ax25.c:1629
sock_recvmsg_nosec net/socket.c:859 [inline]
sock_recvmsg net/socket.c:866 [inline]
sock_recvmsg+0xca/0x110 net/socket.c:862
___sys_recvmsg+0x255/0x570 net/socket.c:2389
IPVS: ftp: loaded support on port[0] = 21
IPVS: ftp: loaded support on port[0] = 21
__sys_recvmsg net/socket.c:2438 [inline]
__do_sys_recvmsg net/socket.c:2448 [inline]
__se_sys_recvmsg net/socket.c:2445 [inline]
__x64_sys_recvmsg+0x12f/0x220 net/socket.c:2445
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fb97ddd9af9
Code: Bad RIP value.
RSP: 002b:00007fb97cd4f188 EFLAGS: 00000246 ORIG_RAX: 000000000000002f
RAX: ffffffffffffffda RBX: 00007fb97deecf60 RCX: 00007fb97ddd9af9
RDX: 0000000000000000 RSI: 0000000020001940 RDI: 0000000000000006
RBP: 00007fb97de33ff7 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fffe6c20d0f R14: 00007fb97cd4f300 R15: 0000000000022000

Showing all locks held in the system:
5 locks held by kworker/0:0/5:
#0: 0000000092fb6040 ((wq_completion)"usb_hub_wq"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124
#1: 00000000ce864a2a ((work_completion)(&hub->events)){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128
#2: 00000000a5401cd9 (&dev->mutex){....}, at: device_lock include/linux/device.h:1174 [inline]
#2: 00000000a5401cd9 (&dev->mutex){....}, at: hub_event+0x11e/0x44a0 drivers/usb/core/hub.c:5387
#3: 00000000d3a7c0f6 (&port_dev->status_lock){+.+.}, at: usb_lock_port drivers/usb/core/hub.c:2983 [inline]
#3: 00000000d3a7c0f6 (&port_dev->status_lock){+.+.}, at: hub_port_connect drivers/usb/core/hub.c:5069 [inline]
#3: 00000000d3a7c0f6 (&port_dev->status_lock){+.+.}, at: hub_port_connect_change drivers/usb/core/hub.c:5253 [inline]
#3: 00000000d3a7c0f6 (&port_dev->status_lock){+.+.}, at: port_event drivers/usb/core/hub.c:5361 [inline]
#3: 00000000d3a7c0f6 (&port_dev->status_lock){+.+.}, at: hub_event+0x1cb8/0x44a0 drivers/usb/core/hub.c:5441
#4: 00000000f01c5412 (hcd->address0_mutex){+.+.}, at: hub_port_init+0x1b9/0x3120 drivers/usb/core/hub.c:4578
4 locks held by kworker/u4:0/7:
5 locks held by kworker/1:0/19:
#0: 0000000092fb6040 ((wq_completion)"usb_hub_wq"){+.+.}, at: process_one_work+0x767/0x1570 kernel/workqueue.c:2124
#1: 0000000005c99c08 ((work_completion)(&hub->events)){+.+.}, at: process_one_work+0x79c/0x1570 kernel/workqueue.c:2128
#2: 00000000930382da (&dev->mutex){....}, at: device_lock include/linux/device.h:1174 [inline]
#2: 00000000930382da (&dev->mutex){....}, at: hub_event+0x11e/0x44a0 drivers/usb/core/hub.c:5387
#3: 00000000d08b42c4 (&port_dev->status_lock){+.+.}, at: usb_lock_port drivers/usb/core/hub.c:2983 [inline]
#3: 00000000d08b42c4 (&port_dev->status_lock){+.+.}, at: hub_port_connect drivers/usb/core/hub.c:5069 [inline]
#3: 00000000d08b42c4 (&port_dev->status_lock){+.+.}, at: hub_port_connect_change drivers/usb/core/hub.c:5253 [inline]
#3: 00000000d08b42c4 (&port_dev->status_lock){+.+.}, at: port_event drivers/usb/core/hub.c:5361 [inline]
#3: 00000000d08b42c4 (&port_dev->status_lock){+.+.}, at: hub_event+0x1cb8/0x44a0 drivers/usb/core/hub.c:5441
#4: 00000000ee39d607 (hcd->address0_mutex){+.+.}, at: hub_port_init+0x1b9/0x3120 drivers/usb/core/hub.c:4578
3 locks held by kworker/u4:1/23:
1 lock held by khungtaskd/1570:
#0: 00000000eb3d3bf2 (rcu_read_lock){....}, at: debug_show_all_locks+0x53/0x265 kernel/locking/lockdep.c:4441
3 locks held by systemd-udevd/4696:
#0: 00000000cf105d65 (&rq->lock){-.-.}, at: rq_lock kernel/sched/sched.h:1826 [inline]
#0: 00000000cf105d65 (&rq->lock){-.-.}, at: __schedule+0x1f9/0x2040 kernel/sched/core.c:3455
#1: 00000000eb3d3bf2 (rcu_read_lock){....}, at: trace_sched_stat_runtime include/trace/events/sched.h:428 [inline]
#1: 00000000eb3d3bf2 (rcu_read_lock){....}, at: update_curr+0x2c3/0x870 kernel/sched/fair.c:857
#2: 00000000d0763c4c (kn->count#24){++++}, at: kernfs_seq_start+0x75/0x260 fs/kernfs/file.c:113
1 lock held by in:imklog/7822:
#0: 0000000084cb1f74 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x26f/0x310 fs/file.c:767
1 lock held by syz-executor.2/12639:
#0: 000000001f76632e (&rq->lock){-.-.}, at: rq_lock kernel/sched/sched.h:1826 [inline]
#0: 000000001f76632e (&rq->lock){-.-.}, at: __schedule+0x1f9/0x2040 kernel/sched/core.c:3455
1 lock held by syz-executor.2/24176:
#0: 00000000d7a28ee1 (sk_lock-AF_AX25){+.+.}, at: lock_sock include/net/sock.h:1512 [inline]
#0: 00000000d7a28ee1 (sk_lock-AF_AX25){+.+.}, at: ax25_recvmsg+0xbb/0x810 net/ax25/af_ax25.c:1629
1 lock held by syz-executor.2/24278:
#0: 00000000be91ad1e (sk_lock-AF_AX25){+.+.}, at: lock_sock include/net/sock.h:1512 [inline]
#0: 00000000be91ad1e (sk_lock-AF_AX25){+.+.}, at: ax25_recvmsg+0xbb/0x810 net/ax25/af_ax25.c:1629
1 lock held by syz-executor.2/25278:
#0: 00000000e5e3a48a (sk_lock-AF_AX25){+.+.}, at: lock_sock include/net/sock.h:1512 [inline]
#0: 00000000e5e3a48a (sk_lock-AF_AX25){+.+.}, at: ax25_recvmsg+0xbb/0x810 net/ax25/af_ax25.c:1629
1 lock held by syz-executor.2/25518:
#0: 00000000a233cccd (sk_lock-AF_AX25){+.+.}, at: lock_sock include/net/sock.h:1512 [inline]
#0: 00000000a233cccd (sk_lock-AF_AX25){+.+.}, at: ax25_recvmsg+0xbb/0x810 net/ax25/af_ax25.c:1629
1 lock held by syz-executor.2/25634:
#0: 000000009064fdc2 (sk_lock-AF_AX25){+.+.}, at: lock_sock include/net/sock.h:1512 [inline]
#0: 000000009064fdc2 (sk_lock-AF_AX25){+.+.}, at: ax25_recvmsg+0xbb/0x810 net/ax25/af_ax25.c:1629
1 lock held by syz-executor.2/25810:
#0: 000000004fb8adc0 (sk_lock-AF_AX25){+.+.}, at: lock_sock include/net/sock.h:1512 [inline]
#0: 000000004fb8adc0 (sk_lock-AF_AX25){+.+.}, at: ax25_recvmsg+0xbb/0x810 net/ax25/af_ax25.c:1629
1 lock held by syz-executor.2/26647:
#0: 000000003a4c8ab8 (sk_lock-AF_AX25){+.+.}, at: lock_sock include/net/sock.h:1512 [inline]
#0: 000000003a4c8ab8 (sk_lock-AF_AX25){+.+.}, at: ax25_recvmsg+0xbb/0x810 net/ax25/af_ax25.c:1629
1 lock held by syz-executor.2/26689:
#0: 00000000291afa3c (sk_lock-AF_AX25){+.+.}, at: lock_sock include/net/sock.h:1512 [inline]
#0: 00000000291afa3c (sk_lock-AF_AX25){+.+.}, at: ax25_recvmsg+0xbb/0x810 net/ax25/af_ax25.c:1629
1 lock held by syz-executor.2/26742:
#0: 0000000018c759da (sk_lock-AF_AX25){+.+.}, at: lock_sock include/net/sock.h:1512 [inline]
#0: 0000000018c759da (sk_lock-AF_AX25){+.+.}, at: ax25_recvmsg+0xbb/0x810 net/ax25/af_ax25.c:1629
1 lock held by syz-executor.2/26902:
#0: 00000000db15f1b7 (sk_lock-AF_AX25){+.+.}, at: lock_sock include/net/sock.h:1512 [inline]
#0: 00000000db15f1b7 (sk_lock-AF_AX25){+.+.}, at: ax25_recvmsg+0xbb/0x810 net/ax25/af_ax25.c:1629
1 lock held by syz-executor.2/27096:
#0: 00000000d7d8b892 (sk_lock-AF_AX25){+.+.}, at: lock_sock include/net/sock.h:1512 [inline]
#0: 00000000d7d8b892 (sk_lock-AF_AX25){+.+.}, at: ax25_recvmsg+0xbb/0x810 net/ax25/af_ax25.c:1629
1 lock held by syz-executor.2/27870:
#0: 000000002fed8e3d (sk_lock-AF_AX25){+.+.}, at: lock_sock include/net/sock.h:1512 [inline]
#0: 000000002fed8e3d (sk_lock-AF_AX25){+.+.}, at: ax25_recvmsg+0xbb/0x810 net/ax25/af_ax25.c:1629
1 lock held by syz-executor.2/28143:
#0: 0000000059da503b (sk_lock-AF_AX25){+.+.}, at: lock_sock include/net/sock.h:1512 [inline]
#0: 0000000059da503b (sk_lock-AF_AX25){+.+.}, at: ax25_recvmsg+0xbb/0x810 net/ax25/af_ax25.c:1629
1 lock held by syz-executor.2/30931:
#0: 000000000814bb42 (sk_lock-AF_AX25){+.+.}, at: lock_sock include/net/sock.h:1512 [inline]
#0: 000000000814bb42 (sk_lock-AF_AX25){+.+.}, at: ax25_recvmsg+0xbb/0x810 net/ax25/af_ax25.c:1629
1 lock held by syz-executor.2/31021:
#0: 0000000060a46c38 (sk_lock-AF_AX25){+.+.}, at: lock_sock include/net/sock.h:1512 [inline]
#0: 0000000060a46c38 (sk_lock-AF_AX25){+.+.}, at: ax25_recvmsg+0xbb/0x810 net/ax25/af_ax25.c:1629
1 lock held by syz-executor.2/31155:
#0: 000000007481f219 (sk_lock-AF_AX25){+.+.}, at: lock_sock include/net/sock.h:1512 [inline]
#0: 000000007481f219 (sk_lock-AF_AX25){+.+.}, at: ax25_recvmsg+0xbb/0x810 net/ax25/af_ax25.c:1629
1 lock held by syz-executor.2/31164:
#0: 00000000f0693b5a (sk_lock-AF_AX25){+.+.}, at: lock_sock include/net/sock.h:1512 [inline]
#0: 00000000f0693b5a (sk_lock-AF_AX25){+.+.}, at: ax25_recvmsg+0xbb/0x810 net/ax25/af_ax25.c:1629
2 locks held by syz-executor.2/2668:

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

NMI backtrace for cpu 0
CPU: 0 PID: 1570 Comm: khungtaskd Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
nmi_cpu_backtrace.cold+0x63/0xa2 lib/nmi_backtrace.c:101
nmi_trigger_cpumask_backtrace+0x1a6/0x1f0 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:203 [inline]
watchdog+0x991/0xe60 kernel/hung_task.c:287
kthread+0x33f/0x460 kernel/kthread.c:259
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 12639 Comm: syz-executor.2 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__sanitizer_cov_trace_const_cmp4+0x0/0x20 kernel/kcov.c:188
Code: 66 2e 0f 1f 84 00 00 00 00 00 48 8b 0c 24 0f b7 d6 0f b7 f7 bf 03 00 00 00 e9 ec fe ff ff 66 66 2e 0f 1f 84 00 00 00 00 00 90 <48> 8b 0c 24 89 f2 89 fe bf 05 00 00 00 e9 ce fe ff ff 66 66 2e 0f
RSP: 0018:ffff8880a581faf8 EFLAGS: 00000246
RAX: ffff88809fa9c500 RBX: 0000000000000000 RCX: ffffffff81386e24
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff8880a581fd04 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: ffff8880964da300 R15: 0000000040000000
FS: 0000555556f23400(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f69d8cc8000 CR3: 00000000a7d45000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
wait_task_continued kernel/exit.c:1279 [inline]
wait_consider_task+0xd39/0x3910 kernel/exit.c:1425
do_wait_thread kernel/exit.c:1442 [inline]
do_wait+0x429/0x9c0 kernel/exit.c:1513
kernel_wait4+0x14c/0x260 kernel/exit.c:1655
__do_sys_wait4 kernel/exit.c:1667 [inline]
__se_sys_wait4+0x149/0x160 kernel/exit.c:1663
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fb97ddd7f97
Code: 89 7c 24 10 48 89 4c 24 18 e8 35 50 02 00 4c 8b 54 24 18 8b 54 24 14 41 89 c0 48 8b 74 24 08 8b 7c 24 10 b8 3d 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 31 44 89 c7 89 44 24 10 e8 65 50 02 00 8b 44
RSP: 002b:00007fffe6c20f30 EFLAGS: 00000293 ORIG_RAX: 000000000000003d
RAX: ffffffffffffffda RBX: 0000000000000dc7 RCX: 00007fb97ddd7f97
RDX: 0000000040000001 RSI: 00007fffe6c20fbc RDI: 00000000ffffffff
RBP: 00007fffe6c20fbc R08: 0000000000000000 R09: 000000bd14d23157
R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000032
R13: 00000000000b2ed7 R14: 0000000000000009 R15: 00007fffe6c21020
----------------
Code disassembly (best guess):
0: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1)
7: 00 00 00
a: 48 8b 0c 24 mov (%rsp),%rcx
e: 0f b7 d6 movzwl %si,%edx
11: 0f b7 f7 movzwl %di,%esi
14: bf 03 00 00 00 mov $0x3,%edi
19: e9 ec fe ff ff jmpq 0xffffff0a
1e: 66 66 2e 0f 1f 84 00 data16 nopw %cs:0x0(%rax,%rax,1)
25: 00 00 00 00
29: 90 nop
* 2a: 48 8b 0c 24 mov (%rsp),%rcx <-- trapping instruction
2e: 89 f2 mov %esi,%edx
30: 89 fe mov %edi,%esi
32: bf 05 00 00 00 mov $0x5,%edi
37: e9 ce fe ff ff jmpq 0xffffff0a
3c: 66 data16
3d: 66 data16
3e: 2e cs
3f: 0f .byte 0xf


---
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.

syzbot

unread,
Apr 8, 2022, 1:15:17 PM4/8/22
to syzkaller...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages