syzbot


INFO: task hung

Status: closed as invalid on 2017/08/02 08:40
First crash: 2464d, last: 2453d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-49 INFO: task hung (2) C 52750 2291d 1835d 0/3 public: reported C repro on 2019/04/12 00:00
upstream INFO: task hung C 13878 2398d 2463d 3/26 fixed on 2017/09/26 01:38
upstream INFO: task hung (2) fs 13786 2332d 2398d 0/26 closed as invalid on 2017/12/04 13:21

Sample crash report:
unregister_netdevice: waiting for lo to become free. Usage count = 2
INFO: task syz-executor2:9344 blocked for more than 120 seconds.
      Not tainted 4.9.40-ged32335 #11
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
syz-executor2   D28496  9344   3444 0x00000004
 ffff8801d5f69780 ffff8801d55bcfc0 ffff8801c6534fc0 ffff8801d0b18000
 ffff8801db321498 ffff8801c82079f8 ffffffff8388f2bb 0000000000000000
 0000000000000007 00ff8801d5f69780 ffff8801db321db0 ffff8801db321dd8
Call Trace:
 [<ffffffff83890872>] schedule+0x92/0x1b0 kernel/sched/core.c:3624
 [<ffffffff838911e3>] schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:3657
 [<ffffffff838967f2>] __mutex_lock_common kernel/locking/mutex.c:582 [inline]
 [<ffffffff838967f2>] mutex_lock_nested+0x312/0x870 kernel/locking/mutex.c:621
 [<ffffffff82f0bba5>] copy_net_ns+0x155/0x280 net/core/net_namespace.c:387
 [<ffffffff8119e31f>] create_new_namespaces+0x37f/0x730 kernel/nsproxy.c:106
 [<ffffffff8119e961>] copy_namespaces+0x291/0x320 kernel/nsproxy.c:164
 [<ffffffff8112b809>] copy_process.part.50+0x1c99/0x5d40 kernel/fork.c:1658
 [<ffffffff8112fd40>] copy_process kernel/fork.c:1482 [inline]
 [<ffffffff8112fd40>] _do_fork+0x1c0/0xd70 kernel/fork.c:1940
 [<ffffffff811309c7>] SYSC_clone kernel/fork.c:2050 [inline]
 [<ffffffff811309c7>] SyS_clone+0x37/0x50 kernel/fork.c:2044
 [<ffffffff81006527>] do_syscall_64+0x197/0x490 arch/x86/entry/common.c:280
 [<ffffffff838a078d>] entry_SYSCALL64_slow_path+0x25/0x25

Showing all locks held in the system:
2 locks held by khungtaskd/514:
 #0:  (rcu_read_lock){......}, at: [<ffffffff8136d275>] check_hung_uninterruptible_tasks kernel/hung_task.c:168 [inline]
 #0:  (rcu_read_lock){......}, at: [<ffffffff8136d275>] watchdog+0x125/0xa70 kernel/hung_task.c:239
 #1:  (tasklist_lock){.+.+..}, at: [<ffffffff81233524>] debug_show_all_locks+0x74/0x290 kernel/locking/lockdep.c:4329
1 lock held by rsyslogd/3120:
 #0:  (&f->f_pos_lock){+.+.+.}, at: [<ffffffff815cc97f>] __fdget_pos+0x9f/0xc0 fs/file.c:781
2 locks held by getty/3208:
 #0:  (&tty->ldisc_sem){++++++}, at: [<ffffffff8389e8c2>] ldsem_down_read+0x32/0x40 drivers/tty/tty_ldsem.c:367
 #1:  (&ldata->atomic_read_lock){+.+.+.}, at: [<ffffffff81fff0f4>] n_tty_read+0x1f4/0x16c0 drivers/tty/n_tty.c:2133
3 locks held by kworker/u4:9/7719:
 #0:  ("%s""netns"){.+.+.+}, at: [<ffffffff81189e29>] __write_once_size include/linux/compiler.h:272 [inline]
 #0:  ("%s""netns"){.+.+.+}, at: [<ffffffff81189e29>] atomic64_set arch/x86/include/asm/atomic64_64.h:33 [inline]
 #0:  ("%s""netns"){.+.+.+}, at: [<ffffffff81189e29>] atomic_long_set include/asm-generic/atomic-long.h:56 [inline]
 #0:  ("%s""netns"){.+.+.+}, at: [<ffffffff81189e29>] set_work_data kernel/workqueue.c:615 [inline]
 #0:  ("%s""netns"){.+.+.+}, at: [<ffffffff81189e29>] set_work_pool_and_clear_pending kernel/workqueue.c:642 [inline]
 #0:  ("%s""netns"){.+.+.+}, at: [<ffffffff81189e29>] process_one_work+0x6a9/0x15f0 kernel/workqueue.c:2089
 #1:  (net_cleanup_work){+.+.+.}, at: [<ffffffff81189e5b>] process_one_work+0x6db/0x15f0 kernel/workqueue.c:2093
 #2:  (net_mutex){+.+.+.}, at: [<ffffffff82f0b57f>] cleanup_net+0x13f/0x610 net/core/net_namespace.c:420
1 lock held by syz-executor2/9344:
 #0:  (net_mutex){+.+.+.}, at: [<ffffffff82f0bba5>] copy_net_ns+0x155/0x280 net/core/net_namespace.c:387

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

NMI backtrace for cpu 1
CPU: 1 PID: 514 Comm: khungtaskd Not tainted 4.9.40-ged32335 #11
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
 ffff8801d899fd00 ffffffff81d8d829 0000000000000000 0000000000000001
 0000000000000001 0000000000000001 ffffffff810bd010 ffff8801d899fd38
 ffffffff81d9893d 0000000000000001 0000000000000000 ffff8801d5f69b18
Call Trace:
 [<ffffffff81d8d829>] __dump_stack lib/dump_stack.c:15 [inline]
 [<ffffffff81d8d829>] dump_stack+0xc1/0x128 lib/dump_stack.c:51
 [<ffffffff81d9893d>] nmi_cpu_backtrace+0xfd/0x120 lib/nmi_backtrace.c:99
 [<ffffffff81d98a77>] nmi_trigger_cpumask_backtrace+0x117/0x190 lib/nmi_backtrace.c:60
 [<ffffffff810bd104>] arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:37
 [<ffffffff8136d840>] trigger_all_cpu_backtrace include/linux/nmi.h:58 [inline]
 [<ffffffff8136d840>] check_hung_task kernel/hung_task.c:125 [inline]
 [<ffffffff8136d840>] check_hung_uninterruptible_tasks kernel/hung_task.c:182 [inline]
 [<ffffffff8136d840>] watchdog+0x6f0/0xa70 kernel/hung_task.c:239
 [<ffffffff8119ad8d>] kthread+0x26d/0x300 kernel/kthread.c:211
 [<ffffffff838a096a>] ret_from_fork+0x2a/0x40 arch/x86/entry/entry_64.S:433
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0 skipped: idling at pc 0xffffffff8389f336

Crashes (5242):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2017/08/02 00:49 https://android.googlesource.com/kernel/common android-4.9 ed323354ecec f5040a63 .config console log report ci-android-49-kasan-gce
2017/08/01 07:20 https://android.googlesource.com/kernel/common android-4.9 ed323354ecec f5040a63 .config console log report ci-android-49-kasan-gce
2017/07/31 22:09 https://android.googlesource.com/kernel/common android-4.9 ed323354ecec f5040a63 .config console log report ci-android-49-kasan-gce
2017/07/31 20:25 https://android.googlesource.com/kernel/common android-4.9 ed323354ecec f5040a63 .config console log report ci-android-49-kasan-gce
2017/07/31 02:59 https://android.googlesource.com/kernel/common android-4.9 ed323354ecec f5040a63 .config console log report ci-android-49-kasan-gce
2017/07/30 17:11 https://android.googlesource.com/kernel/common android-4.9 ed323354ecec f5040a63 .config console log report ci-android-49-kasan-gce
2017/07/30 16:41 https://android.googlesource.com/kernel/common android-4.9 ed323354ecec f5040a63 .config console log report ci-android-49-kasan-gce
2017/07/30 14:38 https://android.googlesource.com/kernel/common android-4.9 ed323354ecec f5040a63 .config console log report ci-android-49-kasan-gce
2017/07/30 13:14 https://android.googlesource.com/kernel/common android-4.9 ed323354ecec f5040a63 .config console log report ci-android-49-kasan-gce
2017/07/29 13:18 https://android.googlesource.com/kernel/common android-4.9 ed323354ecec f5040a63 .config console log report ci-android-49-kasan-gce
2017/07/29 05:50 https://android.googlesource.com/kernel/common android-4.9 ed323354ecec 078d5f87 .config console log report ci-android-49-kasan-gce
2017/07/29 02:00 https://android.googlesource.com/kernel/common android-4.9 ed323354ecec 078d5f87 .config console log report ci-android-49-kasan-gce
2017/07/29 00:12 https://android.googlesource.com/kernel/common android-4.9 ed323354ecec 078d5f87 .config console log report ci-android-49-kasan-gce
2017/07/28 22:45 https://android.googlesource.com/kernel/common android-4.9 ed323354ecec 078d5f87 .config console log report ci-android-49-kasan-gce
2017/07/28 07:18 https://android.googlesource.com/kernel/common android-4.9 a1e4c795e1b6 b0d23a5c .config console log report ci-android-49-kasan-gce
2017/07/27 17:47 https://android.googlesource.com/kernel/common android-4.9 913d980e07d8 b0d23a5c .config console log report ci-android-49-kasan-gce
2017/07/27 12:58 https://android.googlesource.com/kernel/common android-4.9 913d980e07d8 b0d23a5c .config console log report ci-android-49-kasan-gce
2017/07/26 07:37 https://android.googlesource.com/kernel/common android-4.9 72a0c9f5b54a b0d23a5c .config console log report ci-android-49-kasan-gce
2017/07/24 22:00 https://android.googlesource.com/kernel/common android-4.9 f44842e559d2 b59a95bc .config console log report ci-android-49-kasan-gce
2017/07/24 19:10 https://android.googlesource.com/kernel/common android-4.9 f44842e559d2 b59a95bc .config console log report ci-android-49-kasan-gce
* Struck through repros no longer work on HEAD.