syzbot


INFO: task hung in lock_sock_nested

Status: closed as dup on 2017/12/23 20:15
Reported-by: syzbot+b09be8359497f2f986abf4f2db0e26de6ab1a00e@syzkaller.appspotmail.com
First crash: 1766d, last: 956d
Duplicate of (1):
Title Repro Cause bisect Fix bisect Count Last Reported
INFO: task hung in aead_recvmsg C done 11991 982d 1756d
similar bugs (14):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in lock_sock_nested (2) C done 418 939d 952d 17/24 fixed on 2020/04/15 17:19
android-44 INFO: task hung in lock_sock_nested (2) 4 1039d 1134d 0/2 auto-closed as invalid on 2020/03/27 01:37
linux-4.19 INFO: task hung in lock_sock_nested (3) 3 19d 100d 0/1 upstream: reported on 2022/06/23 22:52
upstream INFO: task hung in lock_sock_nested (3) C done 5 728d 729d 17/24 fixed on 2020/11/16 12:12
android-49 INFO: task hung in lock_sock_nested (2) 2 1117d 1236d 0/3 auto-closed as invalid on 2020/01/08 15:18
linux-4.14 INFO: task hung in lock_sock_nested 1 1059d 1059d 0/1 auto-closed as invalid on 2020/03/06 15:38
linux-4.14 INFO: task hung in lock_sock_nested (2) 1 797d 797d 0/1 auto-closed as invalid on 2020/11/24 03:07
android-44 INFO: task hung in lock_sock_nested C 82 1676d 1678d 0/2 closed as invalid on 2019/03/08 00:11
upstream INFO: task can't die in __lock_sock C done 941 5h43m 412d 0/24 upstream: reported C repro on 2021/08/15 16:47
upstream INFO: task hung in lock_sock_nested (4) C done 6 622d 669d 21/24 fixed on 2021/03/10 01:48
android-49 INFO: task hung in lock_sock_nested C 101 1316d 1678d 0/3 closed as invalid on 2019/03/08 00:11
android-414 INFO: task hung in lock_sock_nested 65 1083d 1268d 0/1 auto-closed as invalid on 2020/02/12 04:11
linux-4.19 INFO: task hung in lock_sock_nested (2) 1 296d 296d 0/1 auto-closed as invalid on 2022/04/08 17:15
linux-4.19 INFO: task hung in lock_sock_nested 1 876d 876d 0/1 auto-closed as invalid on 2020/09/05 19:53

Sample crash report:
INFO: task syz-executor013:8221 blocked for more than 143 seconds.
      Not tainted 5.4.0-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor013 D27496  8221   8219 0x00004000
Call Trace:
 context_switch kernel/sched/core.c:3385 [inline]
 __schedule+0x837/0xc50 kernel/sched/core.c:4081
 schedule+0x181/0x210 kernel/sched/core.c:4155
 __lock_sock+0x164/0x2b0 net/core/sock.c:2413
 lock_sock_nested+0x7c/0x120 net/core/sock.c:2938
 virtio_transport_release+0x5e/0xd40 net/vmw_vsock/virtio_transport_common.c:822
 vsock_assign_transport+0x19e/0x3b0 net/vmw_vsock/af_vsock.c:437
 vsock_stream_connect+0x46d/0xb50 net/vmw_vsock/af_vsock.c:1268
 __sys_connect_file+0x279/0x2f0 net/socket.c:1847
 __sys_connect net/socket.c:1860 [inline]
 __do_sys_connect net/socket.c:1871 [inline]
 __se_sys_connect net/socket.c:1868 [inline]
 __x64_sys_connect+0xa2/0xf0 net/socket.c:1868
 do_syscall_64+0xf7/0x1c0 arch/x86/entry/common.c:294
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4401b9
Code: Bad RIP value.
RSP: 002b:00007fff1f12a168 EFLAGS: 00000246 ORIG_RAX: 000000000000002a
RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 00000000004401b9
RDX: 0000000000000010 RSI: 00000000200000c0 RDI: 0000000000000003
RBP: 00000000006ca018 R08: 00000000004002c8 R09: 00000000004002c8
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a40
R13: 0000000000401ad0 R14: 0000000000000000 R15: 0000000000000000

Showing all locks held in the system:
1 lock held by khungtaskd/1099:
 #0: ffffffff890d4bc0 (rcu_read_lock){....}, at: rcu_lock_acquire+0x4/0x30 include/linux/rcupdate.h:207
2 locks held by rsyslogd/8108:
 #0: ffff88809bbf6120 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0x243/0x2e0 fs/file.c:801
 #1: ffff8880aeb36f98 (&rq->lock){-.-.}, at: __fs_reclaim_acquire+0x4/0x30 mm/page_alloc.c:4083
2 locks held by getty/8198:
 #0: ffff888095e65090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:272
 #1: ffffc90005f3d2e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x221/0x1b00 drivers/tty/n_tty.c:2156
2 locks held by getty/8199:
 #0: ffff8880a7aaa090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:272
 #1: ffffc90005f552e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x221/0x1b00 drivers/tty/n_tty.c:2156
2 locks held by getty/8200:
 #0: ffff8880946a5090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:272
 #1: ffffc90005f412e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x221/0x1b00 drivers/tty/n_tty.c:2156
2 locks held by getty/8201:
 #0: ffff8880964bb090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:272
 #1: ffffc90005f452e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x221/0x1b00 drivers/tty/n_tty.c:2156
2 locks held by getty/8202:
 #0: ffff8880912b0090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:272
 #1: ffffc90005f512e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x221/0x1b00 drivers/tty/n_tty.c:2156
2 locks held by getty/8203:
 #0: ffff8880963fc090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:272
 #1: ffffc90005f312e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x221/0x1b00 drivers/tty/n_tty.c:2156
2 locks held by getty/8204:
 #0: ffff8880a0b58090 (&tty->ldisc_sem){++++}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:272
 #1: ffffc90005f252e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x221/0x1b00 drivers/tty/n_tty.c:2156
1 lock held by syz-executor013/8221:
 #0: ffff8880a38668d0 (sk_lock-AF_VSOCK){+.+.}, at: lock_sock include/net/sock.h:1526 [inline]
 #0: ffff8880a38668d0 (sk_lock-AF_VSOCK){+.+.}, at: vsock_stream_connect+0x110/0xb50 net/vmw_vsock/af_vsock.c:1238

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

NMI backtrace for cpu 0
CPU: 0 PID: 1099 Comm: khungtaskd Not tainted 5.4.0-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+0x1fb/0x318 lib/dump_stack.c:118
 nmi_cpu_backtrace+0xaf/0x1a0 lib/nmi_backtrace.c:101
 nmi_trigger_cpumask_backtrace+0x174/0x290 lib/nmi_backtrace.c:62
 arch_trigger_cpumask_backtrace+0x10/0x20 arch/x86/kernel/apic/hw_nmi.c:38
 trigger_all_cpu_backtrace+0x17/0x20 include/linux/nmi.h:146
 check_hung_uninterruptible_tasks kernel/hung_task.c:205 [inline]
 watchdog+0xd49/0xd60 kernel/hung_task.c:289
 kthread+0x332/0x350 kernel/kthread.c:255
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1 skipped: idling at native_safe_halt+0xe/0x10 arch/x86/include/asm/irqflags.h:60

Crashes (2593):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2019/12/01 04:37 upstream 32ef9553635a a76bf83f .config log report syz C
ci-upstream-kasan-gce-root 2019/11/30 15:29 upstream 81b6b96475ac 3a75be00 .config log report syz C
ci-upstream-kasan-gce 2019/11/30 07:36 upstream 81b6b96475ac 3a75be00 .config log report syz C
ci-upstream-kasan-gce-selinux-root 2019/11/27 03:43 upstream be2eca94d144 1048481f .config log report syz C
ci-upstream-kasan-gce-root 2019/11/27 02:38 upstream be2eca94d144 1048481f .config log report syz C
ci-upstream-kasan-gce 2019/11/27 00:44 upstream be2eca94d144 1048481f .config log report syz C
ci-upstream-kasan-gce-selinux-root 2018/11/19 22:11 upstream 9ff01193a20d adf636a8 .config log report syz C
ci-upstream-kasan-gce-386 2019/11/30 18:57 upstream 81b6b96475ac 3a75be00 .config log report syz C
ci-upstream-kasan-gce-386 2019/11/27 02:30 upstream be2eca94d144 1048481f .config log report syz C
ci-upstream-kasan-gce-386 2018/02/06 02:59 upstream 2deb41b24532 a1bc9d40 .config log report syz C
ci-upstream-net-kasan-gce 2019/11/30 06:48 net-next 81b6b96475ac 3a75be00 .config log report syz C
ci-upstream-net-kasan-gce 2019/11/26 22:05 net-next 622dc5ad8052 1048481f .config log report syz C
ci-upstream-kasan-gce 2020/02/18 08:46 upstream 11a48a5a18c6 1ce142dc .config log report
ci-upstream-kasan-gce-root 2020/02/18 07:34 upstream 11a48a5a18c6 1ce142dc .config log report
ci-upstream-kasan-gce-smack-root 2020/02/18 04:42 upstream 11a48a5a18c6 1ce142dc .config log report
ci-upstream-kasan-gce-root 2020/02/18 03:26 upstream 11a48a5a18c6 1ce142dc .config log report
ci-upstream-kasan-gce 2020/02/18 01:41 upstream 11a48a5a18c6 1ce142dc .config log report
ci-upstream-kasan-gce-selinux-root 2020/02/17 21:34 upstream 11a48a5a18c6 2b411596 .config log report
ci-upstream-kasan-gce-selinux-root 2020/02/17 18:34 upstream 11a48a5a18c6 2b411596 .config log report
ci-upstream-kasan-gce-root 2020/02/17 07:46 upstream 11a48a5a18c6 1f448cd6 .config log report
ci-upstream-kasan-gce 2020/02/17 01:22 upstream 11a48a5a18c6 1f448cd6 .config log report
ci-upstream-kasan-gce-smack-root 2020/02/16 23:33 upstream 11a48a5a18c6 1f448cd6 .config log report
ci-upstream-kasan-gce 2020/02/15 17:07 upstream 2019fc96af22 5d7b90f1 .config log report
ci-upstream-kasan-gce-smack-root 2020/02/15 15:51 upstream 2019fc96af22 5d7b90f1 .config log report
ci-upstream-kasan-gce-selinux-root 2020/02/15 13:07 upstream 2019fc96af22 5d7b90f1 .config log report
ci-upstream-kasan-gce-smack-root 2020/02/14 21:16 upstream b19e8c684703 5d7b90f1 .config log report
ci-upstream-kasan-gce 2020/02/14 19:52 upstream b19e8c684703 5d7b90f1 .config log report
ci-upstream-kasan-gce-root 2020/02/13 12:58 upstream f2850dd5ee01 84f4fc8a .config log report
ci-upstream-kasan-gce-smack-root 2020/02/13 08:18 upstream f2850dd5ee01 84f4fc8a .config log report
ci-upstream-kasan-gce-root 2020/02/13 00:21 upstream f2850dd5ee01 84f4fc8a .config log report
ci-upstream-kasan-gce 2020/02/12 19:02 upstream 359c92c02bfa 84f4fc8a .config log report
ci-upstream-kasan-gce-root 2020/02/12 08:13 upstream 359c92c02bfa a75b198c .config log report
ci-upstream-kasan-gce 2020/02/12 06:30 upstream 359c92c02bfa a75b198c .config log report
ci-upstream-kasan-gce-386 2020/02/17 23:44 upstream 11a48a5a18c6 2b411596 .config log report
ci-upstream-kasan-gce-386 2020/02/14 14:20 upstream b19e8c684703 5d7b90f1 .config log report
ci-upstream-net-this-kasan-gce 2020/02/16 15:50 net 2019fc96af22 cf914200 .config log report
ci-upstream-net-this-kasan-gce 2020/02/15 05:06 net a1fa83bdab78 5d7b90f1 .config log report
ci-upstream-net-kasan-gce 2020/02/18 02:19 net-next 725d23b59cd1 1ce142dc .config log report
ci-upstream-net-kasan-gce 2020/02/17 05:20 net-next 2019fc96af22 1f448cd6 .config log report
ci-upstream-net-kasan-gce 2020/02/17 03:34 net-next 2019fc96af22 1f448cd6 .config log report
ci-upstream-net-kasan-gce 2020/02/17 03:28 net-next 2019fc96af22 1f448cd6 .config log report
ci-upstream-net-kasan-gce 2020/02/16 08:44 net-next 2019fc96af22 5d7b90f1 .config log report
ci-upstream-net-kasan-gce 2020/02/16 04:26 net-next 2019fc96af22 5d7b90f1 .config log report
ci-upstream-net-kasan-gce 2020/02/15 22:39 net-next 2019fc96af22 5d7b90f1 .config log report
ci-upstream-net-kasan-gce 2020/02/15 20:08 net-next 2019fc96af22 5d7b90f1 .config log report
ci-upstream-net-kasan-gce 2020/02/15 18:13 net-next 2019fc96af22 5d7b90f1 .config log report
ci-upstream-net-kasan-gce 2020/02/15 14:25 net-next 2019fc96af22 5d7b90f1 .config log report
ci-upstream-net-kasan-gce 2020/02/15 11:02 net-next 2019fc96af22 5d7b90f1 .config log report
ci-upstream-net-kasan-gce 2020/02/15 09:16 net-next 2019fc96af22 5d7b90f1 .config log report
ci-upstream-net-kasan-gce 2020/02/15 07:39 net-next 2019fc96af22 5d7b90f1 .config log report
ci-upstream-net-kasan-gce 2020/02/14 02:38 net-next fdfa3a6778b1 c5ed587f .config log report
ci-upstream-net-kasan-gce 2020/02/13 20:55 net-next fdfa3a6778b1 c5ed587f .config log report
ci-upstream-net-kasan-gce 2020/02/13 14:46 net-next fdfa3a6778b1 84f4fc8a .config log report
ci-upstream-net-kasan-gce 2020/02/13 05:34 net-next fdfa3a6778b1 84f4fc8a .config log report
ci-upstream-net-kasan-gce 2020/02/13 02:59 net-next fdfa3a6778b1 84f4fc8a .config log report
ci-upstream-net-kasan-gce 2020/02/13 01:33 net-next fdfa3a6778b1 84f4fc8a .config log report
ci-upstream-net-kasan-gce 2020/02/12 17:22 net-next fdfa3a6778b1 84f4fc8a .config log report
ci-upstream-net-kasan-gce 2020/02/12 13:11 net-next fdfa3a6778b1 a75b198c .config log report
ci-upstream-linux-next-kasan-gce-root 2020/02/16 06:22 linux-next 9f01828e9e16 5d7b90f1 .config log report
ci-upstream-linux-next-kasan-gce-root 2020/02/15 03:02 linux-next 9f01828e9e16 5d7b90f1 .config log report
* Struck through repros no longer work on HEAD.