syzbot


INFO: task hung in lock_sock_nested

Status: closed as invalid on 2019/03/08 00:11
First crash: 2477d, last: 2114d
Similar bugs (15)
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 1737d 1750d 15/28 fixed on 2020/04/15 17:19
upstream INFO: task hung in lock_sock_nested net C 2593 1754d 2554d 0/28 closed as dup on 2017/12/23 20:15
android-44 INFO: task hung in lock_sock_nested (2) 4 1837d 1932d 0/2 auto-closed as invalid on 2020/03/27 01:37
linux-4.19 INFO: task hung in lock_sock_nested (3) 6 684d 898d 0/1 upstream: reported on 2022/06/23 22:52
upstream INFO: task hung in lock_sock_nested (3) net C done 5 1526d 1527d 15/28 fixed on 2020/11/16 12:12
android-49 INFO: task hung in lock_sock_nested (2) 2 1915d 2034d 0/3 auto-closed as invalid on 2020/01/08 15:18
linux-4.14 INFO: task hung in lock_sock_nested 1 1857d 1857d 0/1 auto-closed as invalid on 2020/03/06 15:38
linux-4.14 INFO: task hung in lock_sock_nested (2) 1 1595d 1595d 0/1 auto-closed as invalid on 2020/11/24 03:07
android-44 INFO: task hung in lock_sock_nested C 82 2475d 2477d 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 396d 1210d 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 1420d 1467d 19/28 fixed on 2021/03/10 01:48
android-414 INFO: task hung in lock_sock_nested 65 1881d 2066d 0/1 auto-closed as invalid on 2020/02/12 04:11
linux-4.19 INFO: task hung in lock_sock_nested (2) 1 1094d 1094d 0/1 auto-closed as invalid on 2022/04/08 17:15
linux-5.15 INFO: task hung in lock_sock_nested 1 117d 117d 0/3 auto-obsoleted due to no activity on 2024/11/21 04:55
linux-4.19 INFO: task hung in lock_sock_nested 1 1674d 1674d 0/1 auto-closed as invalid on 2020/09/05 19:53

Sample crash report:
random: crng init done
INFO: task syzkaller684233:3852 blocked for more than 120 seconds.
      Not tainted 4.9.84-ga9d0273 #44
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syzkaller684233 D28224  3852   3850 0x00000000
 ffff8801d711c800 0000000000000000 ffff8801d8abb480 ffff8801d9b73000
 ffff8801db321b98 ffff8801d50a7a70 ffffffff838a438b ffff8801d711c800
 ffffffff8114529a 00fffc0000000000 ffff8801db322468 ffff8801db322490
Call Trace:
 [<ffffffff838a592f>] schedule+0x7f/0x1b0 kernel/sched/core.c:3550
 [<ffffffff82ee4eac>] __lock_sock+0x13c/0x260 net/core/sock.c:2035
 [<ffffffff82ee50c6>] lock_sock_nested+0xf6/0x120 net/core/sock.c:2505
 [<ffffffff83528616>] lock_sock include/net/sock.h:1404 [inline]
 [<ffffffff83528616>] ipv6_getorigdst+0x136/0x610 net/ipv6/netfilter/nf_conntrack_l3proto_ipv6.c:238
 [<ffffffff830a301a>] nf_sockopt net/netfilter/nf_sockopt.c:103 [inline]
 [<ffffffff830a301a>] nf_getsockopt+0x6a/0xc0 net/netfilter/nf_sockopt.c:121
 [<ffffffff8347934e>] ipv6_getsockopt+0x1ce/0x250 net/ipv6/ipv6_sockglue.c:1347
 [<ffffffff8322f202>] tcp_getsockopt+0x82/0xd0 net/ipv4/tcp.c:3103
 [<ffffffff82edee85>] sock_common_getsockopt+0x95/0xd0 net/core/sock.c:2665
 [<ffffffff82edc48a>] SYSC_getsockopt net/socket.c:1803 [inline]
 [<ffffffff82edc48a>] SyS_getsockopt+0x14a/0x230 net/socket.c:1785
 [<ffffffff81006504>] do_syscall_64+0x1a4/0x490 arch/x86/entry/common.c:282
 [<ffffffff838b53fd>] entry_SYSCALL_64_after_swapgs+0x47/0xc5

Showing all locks held in the system:
2 locks held by khungtaskd/514:
 #0:  (rcu_read_lock){......}, at: [<ffffffff813730a5>] check_hung_uninterruptible_tasks kernel/hung_task.c:168 [inline]
 #0:  (rcu_read_lock){......}, at: [<ffffffff813730a5>] watchdog+0x125/0xa70 kernel/hung_task.c:239
 #1:  (tasklist_lock){.+.+..}, at: [<ffffffff81238190>] debug_show_all_locks+0x70/0x280 kernel/locking/lockdep.c:4336
2 locks held by getty/3776:
 #0:  (&tty->ldisc_sem){++++++}, at: [<ffffffff838b3602>] ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:367
 #1:  (&ldata->atomic_read_lock){+.+.+.}, at: [<ffffffff8200ab14>] n_tty_read+0x1f4/0x16c0 drivers/tty/n_tty.c:2133
1 lock held by syzkaller684233/3852:
 #0:  (sk_lock-AF_INET6){+.+...}, at: [<ffffffff83479333>] lock_sock include/net/sock.h:1404 [inline]
 #0:  (sk_lock-AF_INET6){+.+...}, at: [<ffffffff83479333>] ipv6_getsockopt+0x1b3/0x250 net/ipv6/ipv6_sockglue.c:1346

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

NMI backtrace for cpu 1
CPU: 1 PID: 514 Comm: khungtaskd Not tainted 4.9.84-ga9d0273 #44
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
 ffff8801d86b7d00 ffffffff81d956b9 0000000000000000 0000000000000001
 0000000000000001 0000000000000001 ffffffff810bb190 ffff8801d86b7d38
 ffffffff81da07dd 0000000000000001 0000000000000000 ffff8801d711cc18
Call Trace:
 [<ffffffff81d956b9>] __dump_stack lib/dump_stack.c:15 [inline]
 [<ffffffff81d956b9>] dump_stack+0xc1/0x128 lib/dump_stack.c:51
 [<ffffffff81da07dd>] nmi_cpu_backtrace+0xfd/0x120 lib/nmi_backtrace.c:99
 [<ffffffff81da0917>] nmi_trigger_cpumask_backtrace+0x117/0x190 lib/nmi_backtrace.c:60
 [<ffffffff810bb284>] arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:37
 [<ffffffff81373670>] trigger_all_cpu_backtrace include/linux/nmi.h:58 [inline]
 [<ffffffff81373670>] check_hung_task kernel/hung_task.c:125 [inline]
 [<ffffffff81373670>] check_hung_uninterruptible_tasks kernel/hung_task.c:182 [inline]
 [<ffffffff81373670>] watchdog+0x6f0/0xa70 kernel/hung_task.c:239
 [<ffffffff8119a7bd>] kthread+0x26d/0x300 kernel/kthread.c:211
 [<ffffffff838b558c>] ret_from_fork+0x5c/0x70 arch/x86/entry/entry_64.S:361
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0 skipped: idling at pc 0xffffffff838b4076

Crashes (101):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/02/26 22:53 https://android.googlesource.com/kernel/common android-4.9 a9d027374a35 b370d4a7 .config console log report syz C ci-android-49-kasan-gce
2018/12/01 05:15 https://android.googlesource.com/kernel/common android-4.9 4dcb0afde6f4 d8988561 .config console log report ci-android-49-kasan-gce-root
2018/09/22 17:53 https://android.googlesource.com/kernel/common android-4.9 1c57ba4f543b 37079712 .config console log report ci-android-49-kasan-gce
2018/09/21 17:10 https://android.googlesource.com/kernel/common android-4.9 1c57ba4f543b 37079712 .config console log report ci-android-49-kasan-gce
2018/09/20 19:49 https://android.googlesource.com/kernel/common android-4.9 1c57ba4f543b 6cee973c .config console log report ci-android-49-kasan-gce
2018/09/10 16:31 https://android.googlesource.com/kernel/common android-4.9 a8c1ea6c63ed f167cb6b .config console log report ci-android-49-kasan-gce
2018/09/06 08:10 https://android.googlesource.com/kernel/common android-4.9 dcae9fa1319b 873745f2 .config console log report ci-android-49-kasan-gce
2018/02/28 13:49 https://android.googlesource.com/kernel/common android-4.9 e7f51a5b0be6 05b5a32c .config console log report ci-android-49-kasan-gce
2018/02/28 08:17 https://android.googlesource.com/kernel/common android-4.9 e7f51a5b0be6 05b5a32c .config console log report ci-android-49-kasan-gce
2018/02/28 05:13 https://android.googlesource.com/kernel/common android-4.9 e7f51a5b0be6 05b5a32c .config console log report ci-android-49-kasan-gce
2018/02/27 20:48 https://android.googlesource.com/kernel/common android-4.9 e7f51a5b0be6 05b5a32c .config console log report ci-android-49-kasan-gce
2018/02/27 17:07 https://android.googlesource.com/kernel/common android-4.9 e7f51a5b0be6 05b5a32c .config console log report ci-android-49-kasan-gce
2018/02/27 14:13 https://android.googlesource.com/kernel/common android-4.9 e7f51a5b0be6 05b5a32c .config console log report ci-android-49-kasan-gce
2018/02/27 11:50 https://android.googlesource.com/kernel/common android-4.9 e7f51a5b0be6 05b5a32c .config console log report ci-android-49-kasan-gce
2018/02/27 09:46 https://android.googlesource.com/kernel/common android-4.9 e7f51a5b0be6 6d41d29e .config console log report ci-android-49-kasan-gce
2018/02/27 05:16 https://android.googlesource.com/kernel/common android-4.9 e7f51a5b0be6 b370d4a7 .config console log report ci-android-49-kasan-gce
2018/02/27 02:01 https://android.googlesource.com/kernel/common android-4.9 e7f51a5b0be6 b370d4a7 .config console log report ci-android-49-kasan-gce
2018/02/26 23:48 https://android.googlesource.com/kernel/common android-4.9 a9d027374a35 b370d4a7 .config console log report ci-android-49-kasan-gce
2018/02/26 23:42 https://android.googlesource.com/kernel/common android-4.9 a9d027374a35 b370d4a7 .config console log report ci-android-49-kasan-gce
2018/02/26 20:37 https://android.googlesource.com/kernel/common android-4.9 a9d027374a35 b370d4a7 .config console log report ci-android-49-kasan-gce
2018/02/26 16:33 https://android.googlesource.com/kernel/common android-4.9 a9d027374a35 9fe8aa42 .config console log report ci-android-49-kasan-gce
2018/02/26 14:41 https://android.googlesource.com/kernel/common android-4.9 a9d027374a35 9fe8aa42 .config console log report ci-android-49-kasan-gce
2018/02/26 14:35 https://android.googlesource.com/kernel/common android-4.9 a9d027374a35 9fe8aa42 .config console log report ci-android-49-kasan-gce
2018/02/26 14:30 https://android.googlesource.com/kernel/common android-4.9 a9d027374a35 9fe8aa42 .config console log report ci-android-49-kasan-gce
2018/02/26 13:28 https://android.googlesource.com/kernel/common android-4.9 a9d027374a35 9fe8aa42 .config console log report ci-android-49-kasan-gce
2018/02/26 12:20 https://android.googlesource.com/kernel/common android-4.9 a9d027374a35 9fe8aa42 .config console log report ci-android-49-kasan-gce
2018/02/26 11:40 https://android.googlesource.com/kernel/common android-4.9 a9d027374a35 9fe8aa42 .config console log report ci-android-49-kasan-gce
2018/02/26 10:17 https://android.googlesource.com/kernel/common android-4.9 a9d027374a35 9fe8aa42 .config console log report ci-android-49-kasan-gce
2018/02/26 09:08 https://android.googlesource.com/kernel/common android-4.9 a9d027374a35 9fe8aa42 .config console log report ci-android-49-kasan-gce
2019/02/23 12:39 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 18107ce0 .config console log report ci-android-49-kasan-gce-386
2019/02/19 20:23 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 4df543c9 .config console log report ci-android-49-kasan-gce-386
2019/02/06 13:34 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 d25487bc .config console log report ci-android-49-kasan-gce-386
2019/01/17 18:42 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 769e75ed .config console log report ci-android-49-kasan-gce-386
2019/01/16 15:40 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 d538790b .config console log report ci-android-49-kasan-gce-386
2018/12/06 02:45 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 764b42c4 .config console log report ci-android-49-kasan-gce-386
2018/12/05 04:50 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 f162ad97 .config console log report ci-android-49-kasan-gce-386
2018/10/27 10:01 https://android.googlesource.com/kernel/common android-4.9 4ba3f69128be a8292de9 .config console log report ci-android-49-kasan-gce-386
2018/02/28 11:20 https://android.googlesource.com/kernel/common android-4.9 e7f51a5b0be6 05b5a32c .config console log report ci-android-49-kasan-gce-386
2018/02/27 18:38 https://android.googlesource.com/kernel/common android-4.9 e7f51a5b0be6 05b5a32c .config console log report ci-android-49-kasan-gce-386
2018/02/27 08:25 https://android.googlesource.com/kernel/common android-4.9 e7f51a5b0be6 b370d4a7 .config console log report ci-android-49-kasan-gce-386
2018/02/26 23:12 https://android.googlesource.com/kernel/common android-4.9 a9d027374a35 b370d4a7 .config console log report ci-android-49-kasan-gce-386
2018/02/26 14:38 https://android.googlesource.com/kernel/common android-4.9 a9d027374a35 9fe8aa42 .config console log report ci-android-49-kasan-gce-386
2018/02/26 14:30 https://android.googlesource.com/kernel/common android-4.9 a9d027374a35 9fe8aa42 .config console log report ci-android-49-kasan-gce-386
2018/02/26 09:35 https://android.googlesource.com/kernel/common android-4.9 a9d027374a35 9fe8aa42 .config console log report ci-android-49-kasan-gce-386
2018/02/26 09:32 https://android.googlesource.com/kernel/common android-4.9 a9d027374a35 9fe8aa42 .config console log report ci-android-49-kasan-gce-386
* Struck through repros no longer work on HEAD.