syzbot


INFO: task hung in lock_sock_nested (2)

Status: auto-closed as invalid on 2022/04/08 17:15
Reported-by: syzbot+f93cd7f69df1108717af@syzkaller.appspotmail.com
First crash: 916d, last: 916d
Similar bugs (14)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in lock_sock_nested (2) net C done 418 1559d 1572d 15/28 fixed on 2020/04/15 17:19
upstream INFO: task hung in lock_sock_nested net C 2593 1576d 2376d 0/28 closed as dup on 2017/12/23 20:15
android-44 INFO: task hung in lock_sock_nested (2) 4 1659d 1754d 0/2 auto-closed as invalid on 2020/03/27 01:37
linux-4.19 INFO: task hung in lock_sock_nested (3) 6 505d 720d 0/1 upstream: reported on 2022/06/23 22:52
upstream INFO: task hung in lock_sock_nested (3) net C done 5 1348d 1349d 15/28 fixed on 2020/11/16 12:12
android-49 INFO: task hung in lock_sock_nested (2) 2 1737d 1856d 0/3 auto-closed as invalid on 2020/01/08 15:18
linux-4.14 INFO: task hung in lock_sock_nested 1 1679d 1679d 0/1 auto-closed as invalid on 2020/03/06 15:38
linux-4.14 INFO: task hung in lock_sock_nested (2) 1 1417d 1417d 0/1 auto-closed as invalid on 2020/11/24 03:07
android-44 INFO: task hung in lock_sock_nested C 82 2296d 2298d 0/2 closed as invalid on 2019/03/08 00:11
upstream INFO: task can't die in __lock_sock bluetooth C done error 1067 218d 1032d 0/28 auto-obsoleted due to no activity on 2024/01/16 13:36
upstream INFO: task hung in lock_sock_nested (4) mptcp C done 6 1242d 1289d 19/28 fixed on 2021/03/10 01:48
android-49 INFO: task hung in lock_sock_nested C 101 1936d 2298d 0/3 closed as invalid on 2019/03/08 00:11
android-414 INFO: task hung in lock_sock_nested 65 1703d 1888d 0/1 auto-closed as invalid on 2020/02/12 04:11
linux-4.19 INFO: task hung in lock_sock_nested 1 1496d 1496d 0/1 auto-closed as invalid on 2020/09/05 19:53

Sample crash report:
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

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/12/09 17:14 linux-4.19.y 3f8a27f9e27b b54aa474 .config console log report info ci2-linux-4-19 INFO: task hung in lock_sock_nested
* Struck through repros no longer work on HEAD.