Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3570168ybg; Mon, 28 Oct 2019 15:08:51 -0700 (PDT) X-Received: by 2002:a50:b536:: with SMTP id y51mr22216575edd.271.1572300501852; Mon, 28 Oct 2019 15:08:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqyvCT9rVIgu+UXueJbKeE1xWPmH0o3VVxOsiJJ11I+CXeJszQ5j4++a3/GZuxHiOqpYgG2P X-Received: by 2002:a50:b536:: with SMTP id y51mr22216430edd.271.1572300500936; Mon, 28 Oct 2019 15:08:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572300500; cv=none; d=google.com; s=arc-20160816; b=Ab4ieYwTbn6qRiwFZ2v73mWOOpueVKJSLFEjtyvNVX7on/1CWKPR2G1g5AVKFkov3c WX21UFxY5JR488v2qqsoaOx+P959mp+e7tq1pKrhWSI6LF9nLAGageKNj+Gh2a2TaTm5 Ll1DVyio7j/7KSoWYVaXBK/BA8caWDGLAOYGKfL1Gd7iVkRFBKIkcQUr3dFKF6we6Wkl a7/zzh1PJrIFSasgOtkbv83TCa8w4MYeBzU7BRMIJnbnY5qpF7RG+goNx4RBC+6E50ri bDt2MLjr0fDTPMZGoJu0O5df8WJ/TyEbArUNAtKjElQgYkrjVz8dYH+Qnjb6HzGUcT7+ uHOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:from:subject:message-id:date :mime-version; bh=bmHQZULhVT/ity23PwxxYsAfoKEIMgz2aD/aW3UZN3A=; b=s1xyIhh9ksltZ7jjP1ZzwNaHH1eLQq8Q5XGaC0QiGFz/4mFBQ0beWr+aJ6ppDlfB0F zvC2pIyN4+pXxr6yiQC3DH7Rzv/yTPMH9dAIZpsml/lAtYAEMGIKxV42Rvfb/IPcMQ0/ gpY8g0UPQVjFKPOjH39PpgISvg2bY1DIP8LW2hNRen5KpA2IC1vzoH6Dz1F0pEru8bOi PjsRpDQls3CXHLrt9627cx9MX6R0B5JUvqjTSmZTs87i7E0CI0m8yHD2eAdnPCpCv1Mq nuiXnSDbuoIy1C57slS+phkYMlGVKE3nqNRLMy+MCV+D6ZjhSW0aYkG4465q6r957El/ NTiw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f8si8435968edf.428.2019.10.28.15.07.57; Mon, 28 Oct 2019 15:08:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731385AbfJ1TmK (ORCPT + 99 others); Mon, 28 Oct 2019 15:42:10 -0400 Received: from mail-il1-f200.google.com ([209.85.166.200]:52395 "EHLO mail-il1-f200.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731350AbfJ1TmJ (ORCPT ); Mon, 28 Oct 2019 15:42:09 -0400 Received: by mail-il1-f200.google.com with SMTP id t23so10659908ila.19 for ; Mon, 28 Oct 2019 12:42:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=bmHQZULhVT/ity23PwxxYsAfoKEIMgz2aD/aW3UZN3A=; b=a6uL/8kWEWa62B3LbpnF2XL2k7IEnIVs7URQfmIxbVPwp0zMJmsNWEY3SV6k6rQy3h XBevDXJCfDTZ+zG6Q4n4uOGYTm/6SRSS30M0/xzC4507Kw4IwpZEgDFGXy05h5Rri3Jb hnujBRAW99YEIgK05GZWKIOsbdAzYPie4R11dM+5EKLwk1frl2tumqskIAJDxTahwG6d GWbNRwqFyJpq6gLiGn+1Mqfy+nBDoeo9iEw95SmtPGkSfphv7aL6W6l222JhHwhk2C6G 2EqCetLUBj4MjmjZ8s3Ob5+BdpHZq9RTRyR8vZO1lsVb5Y2CoK0LuWigG0VPTe7GPRhX UyoQ== X-Gm-Message-State: APjAAAUMPFcC0zIYpiotT3cCNhBNO/7X0B+QPbndeKtrzV8F9HQ1bdp5 I+aAB6pAnfcfq3/VuE5eP7FGr/2kzqe/OW91upOvLRU5HLU9 MIME-Version: 1.0 X-Received: by 2002:a05:6638:1f1:: with SMTP id t17mr18831455jaq.130.1572291728662; Mon, 28 Oct 2019 12:42:08 -0700 (PDT) Date: Mon, 28 Oct 2019 12:42:08 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000f86a4f0595fdb152@google.com> Subject: INFO: task hung in io_wq_destroy From: syzbot To: andriy.shevchenko@linux.intel.com, axboe@kernel.dk, davem@davemloft.net, f.fainelli@gmail.com, gregkh@linuxfoundation.org, idosch@mellanox.com, kimbrownkd@gmail.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, petrm@mellanox.com, syzkaller-bugs@googlegroups.com, tglx@linutronix.de, viro@zeniv.linux.org.uk, wanghai26@huawei.com, yuehaibing@huawei.com Content-Type: text/plain; charset="UTF-8"; format=flowed; delsp=yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following crash on: HEAD commit: 139c2d13 Add linux-next specific files for 20191025 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=137a3e97600000 kernel config: https://syzkaller.appspot.com/x/.config?x=28fd7a693df38d29 dashboard link: https://syzkaller.appspot.com/bug?extid=0f1cc17f85154f400465 compiler: gcc (GCC) 9.0.0 20181231 (experimental) syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15415bdf600000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=101fa6e4e00000 The bug was bisected to: commit 3f982fff29b4ad339b36e9cf43422d1039f9917a Author: Jens Axboe Date: Thu Oct 24 17:35:03 2019 +0000 Merge branch 'for-5.5/drivers' into for-next bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=17f7e44ce00000 final crash: https://syzkaller.appspot.com/x/report.txt?x=140fe44ce00000 console output: https://syzkaller.appspot.com/x/log.txt?x=100fe44ce00000 IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+0f1cc17f85154f400465@syzkaller.appspotmail.com Fixes: 3f982fff29b4 ("Merge branch 'for-5.5/drivers' into for-next") INFO: task syz-executor696:18072 blocked for more than 143 seconds. Not tainted 5.4.0-rc4-next-20191025 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor696 D28160 18072 9609 0x00004004 Call Trace: context_switch kernel/sched/core.c:3385 [inline] __schedule+0x94a/0x1e70 kernel/sched/core.c:4070 schedule+0xdc/0x2b0 kernel/sched/core.c:4144 schedule_timeout+0x717/0xc50 kernel/time/timer.c:1871 do_wait_for_common kernel/sched/completion.c:83 [inline] __wait_for_common kernel/sched/completion.c:104 [inline] wait_for_common kernel/sched/completion.c:115 [inline] wait_for_completion+0x29c/0x440 kernel/sched/completion.c:136 io_wq_destroy+0x247/0x470 fs/io-wq.c:784 io_finish_async+0x102/0x180 fs/io_uring.c:2890 io_ring_ctx_free fs/io_uring.c:3615 [inline] io_ring_ctx_wait_and_kill+0x249/0x710 fs/io_uring.c:3683 io_uring_release+0x42/0x50 fs/io_uring.c:3691 __fput+0x2ff/0x890 fs/file_table.c:280 ____fput+0x16/0x20 fs/file_table.c:313 task_work_run+0x145/0x1c0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop+0x316/0x380 arch/x86/entry/common.c:163 prepare_exit_to_usermode arch/x86/entry/common.c:194 [inline] syscall_return_slowpath arch/x86/entry/common.c:274 [inline] do_syscall_64+0x65f/0x760 arch/x86/entry/common.c:300 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4019d0 Code: 01 f0 ff ff 0f 83 20 0c 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 83 3d fd 2c 2d 00 00 75 14 b8 03 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 f4 0b 00 00 c3 48 83 ec 08 e8 5a 01 00 00 RSP: 002b:00007ffdcb9bf4b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00000000004019d0 RDX: 0000000000401970 RSI: 0000000020000080 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000004 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000670 R13: 0000000000402ae0 R14: 0000000000000000 R15: 0000000000000000 Showing all locks held in the system: 1 lock held by khungtaskd/1078: #0: ffffffff88faba80 (rcu_read_lock){....}, at: debug_show_all_locks+0x5f/0x279 kernel/locking/lockdep.c:5336 1 lock held by rsyslogd/9148: #0: ffff888099aa8660 (&f->f_pos_lock){+.+.}, at: __fdget_pos+0xee/0x110 fs/file.c:801 2 locks held by getty/9238: #0: ffff88809a77f090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340 #1: ffffc90005f472e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x220/0x1bf0 drivers/tty/n_tty.c:2156 2 locks held by getty/9239: #0: ffff8880a7bc7090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340 #1: ffffc90005f4f2e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x220/0x1bf0 drivers/tty/n_tty.c:2156 2 locks held by getty/9240: #0: ffff8880a83e7090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340 #1: ffffc90005f3d2e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x220/0x1bf0 drivers/tty/n_tty.c:2156 2 locks held by getty/9241: #0: ffff88808e706090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340 #1: ffffc90005f292e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x220/0x1bf0 drivers/tty/n_tty.c:2156 2 locks held by getty/9242: #0: ffff8880a7b75090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340 #1: ffffc90005f312e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x220/0x1bf0 drivers/tty/n_tty.c:2156 2 locks held by getty/9243: #0: ffff8880a130f090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340 #1: ffffc90005f532e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x220/0x1bf0 drivers/tty/n_tty.c:2156 2 locks held by getty/9244: #0: ffff88809b09e090 (&tty->ldisc_sem){++++}, at: ldsem_down_read+0x33/0x40 drivers/tty/tty_ldsem.c:340 #1: ffffc90005f212e0 (&ldata->atomic_read_lock){+.+.}, at: n_tty_read+0x220/0x1bf0 drivers/tty/n_tty.c:2156 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 1078 Comm: khungtaskd Not tainted 5.4.0-rc4-next-20191025 #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+0x172/0x1f0 lib/dump_stack.c:113 nmi_cpu_backtrace.cold+0x70/0xb2 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0x23b/0x28b lib/nmi_backtrace.c:62 arch_trigger_cpumask_backtrace+0x14/0x20 arch/x86/kernel/apic/hw_nmi.c:38 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:269 [inline] watchdog+0xc8f/0x1350 kernel/hung_task.c:353 kthread+0x361/0x430 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 --- This bug 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 syzkaller@googlegroups.com. syzbot will keep track of this bug report. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. For information about bisection process see: https://goo.gl/tpsmEJ#bisection syzbot can test patches for this bug, for details see: https://goo.gl/tpsmEJ#testing-patches