Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2065760imu; Tue, 6 Nov 2018 08:33:55 -0800 (PST) X-Google-Smtp-Source: AJdET5cmmrfuV6Dcv4pxXmcdYX6e5tG/UIYZ9XR6o8r5ZXDh2yw8rJoNlfx2xWsIV2bSbKgg4bJM X-Received: by 2002:a63:2c0e:: with SMTP id s14mr5570117pgs.132.1541522034976; Tue, 06 Nov 2018 08:33:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541522034; cv=none; d=google.com; s=arc-20160816; b=t/bVwkjerIYhcK7ju3Yax4b11Z+ptXP4APsHP8heyRXJ7Kia9Hk4zNCq2jxfDKqfs+ 9SLWSWJjNVCIeZxCmM2JvOaj8MSdUGmIpu/Tcw96yHV1hOyw2XM7KG5nxW26uH5TxM1z 1213D3ksjKsXrdql2sHeVohCvQuoOfLKX6YQEePamPRsnDWM4AlTaS0JYmfXByXXcLl6 MEWH+m9HS1IoCGpPAL4L08Fy4IaiHF7PeVH4w6NS3YlgTEC3VO3J9rUBEpEEsyXIrU/t BmYzAcjozTvjLMcEPft0ZkaYkLowvcAVWEOXLwj1+NWWEp5Sx6nh1IugcxKyHjznAj3j m+tA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature; bh=T8H4MQ6/Kj94BJWrsGKrfoTtHY8YNEd5V2bJ3Nrt7EU=; b=QDgpmV7nPhdVYoml2gajm4SQjD3+zRUuJkXI0BnLo3xGdSCjV8igbo2QtAIeCjBEMz 90V2diD4Q7k8+1rMZuIFk4lVyAMGFz+tDCMzk+uzj+gjMO5mm1b0aZiMHM7DDwprBP05 0iuH3M703lQOlt1KDE7yttptCG1RJeGh/9l0kSK5tbwc4kwU71hisGvexwXrZ2KmYywd SHbJcqLR3cRwcTQ0ZnkAL8naQUtfEvPUroYj16c4POPfVBtJDRSeeIdO63l82NJzLfyy d4DOC29X9S/Qqq87CdCo+sg2T9ux5ODK87mdUIjdD8Lk70gPgNPpciZ2kDZbbpd3FB34 bb/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=QD3UiXEv; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w13-v6si45829811pgj.229.2018.11.06.08.33.37; Tue, 06 Nov 2018 08:33:54 -0800 (PST) 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; dkim=pass header.i=@google.com header.s=20161025 header.b=QD3UiXEv; 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=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389255AbeKGB7L (ORCPT + 99 others); Tue, 6 Nov 2018 20:59:11 -0500 Received: from mail-io1-f66.google.com ([209.85.166.66]:40738 "EHLO mail-io1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388925AbeKGB7K (ORCPT ); Tue, 6 Nov 2018 20:59:10 -0500 Received: by mail-io1-f66.google.com with SMTP id a23-v6so9689638iod.7 for ; Tue, 06 Nov 2018 08:33:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=T8H4MQ6/Kj94BJWrsGKrfoTtHY8YNEd5V2bJ3Nrt7EU=; b=QD3UiXEvcc4ksRQ1BWjStAQ9sHv77Rk/9dz6WJU26Ok9YCkyIodRNZwM3Tm4Ln2z9N Ir7O5sD2uJP4vDXeA8CYGsETGLtN2NtYq+H6N3VSUgMnNWQ9grNKlI6RHZxcRoJBmsxG lDrr8FL91v49zwdmk7jcEeKRfdodT0i4y6CmIBrdlo0qi9/d2pkI2MtnUdBwgeJCnJD8 tbjT4XCpemLy/HjM4iU7Isi1QjYAmDNt7KFQnub3ZZGdTTnkB1ykhBWX3XQ03XRymUVS WHEPbED2bjRKlQwDa/iMnxhQGsBUlMPYF9roxwo/flJ9sgZsh4xMmRqP5i4J+9d/l+to 4Saw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=T8H4MQ6/Kj94BJWrsGKrfoTtHY8YNEd5V2bJ3Nrt7EU=; b=IBd7lBQ7qGbcIOoOcAbZ1crTwuKzaPgwK53494+CzCNxIhrrJ3UAxldKu7LH1wQl9L ZLhdH1Q2UMJDdpBfQlNcD9xA7jKxNIp/kEIBdPpr3AJ2clPA2b7D81pEaZP6zZvA7c6l 0ZZUqJ1YsYd2UfMEOis+M2prTbgzMmckLVTNAGExf8eX/Qa+b7Yi9xq/RucPiAvIGWXF axG3AJ5H/ruu5moMkxYTaXqhPTzLZV7aJUsDWKGY1sJs8xvLnGEDouFrUx2QTrUQlpqf A/9lxLk2nqo+knR0hdTm/qDuebWqr+hSnibFLloGgdIuZI8WS2TeUxp4IcrQIFaCMIKz HSfw== X-Gm-Message-State: AGRZ1gJ+DF/Q/rvvSJ9t1JRKboOQtwEwAv47JTzkbJSlyZast/AaIkCC ewS7glv6m1Zrh3isz+ltWMukdNweRrh0ubYlYp4nKUODDhLIAw== X-Received: by 2002:a6b:9383:: with SMTP id v125-v6mr18917509iod.282.1541521988733; Tue, 06 Nov 2018 08:33:08 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a02:b01b:0:0:0:0:0 with HTTP; Tue, 6 Nov 2018 08:32:48 -0800 (PST) In-Reply-To: References: <000000000000c25cca0579982a05@google.com> From: Dmitry Vyukov Date: Tue, 6 Nov 2018 08:32:48 -0800 Message-ID: Subject: Re: INFO: task hung in fuse_sb_destroy To: Miklos Szeredi Cc: syzbot , linux-fsdevel , LKML , syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 5, 2018 at 4:03 AM, Miklos Szeredi wrote: > On Mon, Nov 5, 2018 at 11:40 AM, Miklos Szeredi wrote: >> On Thu, Nov 1, 2018 at 12:05 PM, Dmitry Vyukov wrote: >>> On Thu, Nov 1, 2018 at 11:49 AM, syzbot >>> wrote: >>>> Hello, >>>> >>>> syzbot found the following crash on: >>>> >>>> HEAD commit: 59fc453b21f7 Merge branch 'akpm' (patches from Andrew) >>>> git tree: upstream >>>> console output: https://syzkaller.appspot.com/x/log.txt?x=15fb2447400000 >>>> kernel config: https://syzkaller.appspot.com/x/.config?x=ea045471e4c756e8 >>>> dashboard link: https://syzkaller.appspot.com/bug?extid=6339eda9cb4ebbc4c37b >>>> compiler: gcc (GCC) 8.0.1 20180413 (experimental) >>>> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=178a105d400000 >>>> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16651133400000 >>> >>> >>> I can easily reproduce this. >> >> I can't reproduce on my meager dual core notebook. >> >>> >>> The repro gives me a task hanged at: >>> >>> # cat /proc/7563/task/*/stack >>> [<0>] fuse_wait_aborted+0x20b/0x320 >>> [<0>] fuse_sb_destroy+0xe2/0x1d0 >>> [<0>] fuse_kill_sb_anon+0x15/0x20 >>> [<0>] deactivate_locked_super+0x97/0x100 >>> [<0>] deactivate_super+0x2bb/0x320 >>> [<0>] cleanup_mnt+0xbf/0x160 >>> [<0>] __cleanup_mnt+0x16/0x20 >>> [<0>] task_work_run+0x1e8/0x2a0 >>> [<0>] exit_to_usermode_loop+0x318/0x380 >>> [<0>] do_syscall_64+0x6be/0x820 >>> [<0>] entry_SYSCALL_64_after_hwframe+0x49/0xbe >>> [<0>] 0xffffffffffffffff >>> >>> I double checked that writing to /sys/fs/fuse/connections/44/abort did >>> not help (the only entry in fuse/connections). Wrote multiple times, >>> and tried to kill the task, nothing helps. >> >> What's the output of >> >> cat /sys/fs/fuse/connections/NN/waiting >> >> ? > > I think I found the culprit. Does the attached patch fix it? Hi Miklos, I am travelling for next weeks, but you can ask syzbot to test any patches: https://github.com/google/syzkaller/blob/master/docs/syzbot.md#testing-patches