Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp953867imm; Fri, 8 Jun 2018 07:48:14 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKui4LwyY9B8E2nowz1Z0COETRJT1HqKpCW40NN6DiYeGEM8wsVO0IIDEEvAuVdBKlIQmXw X-Received: by 2002:a63:2b15:: with SMTP id r21-v6mr5589057pgr.269.1528469294397; Fri, 08 Jun 2018 07:48:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528469294; cv=none; d=google.com; s=arc-20160816; b=QNXyZwW9aw3HkuVRlOU5brHMEMDyQfcsUyBH5hOv5LkFTYlLftsvLLnboxlQ+nLKb7 t0Qygu+TGfwo5pvCZJQ/WnDBF+h7jcM4vXQH94oRnsoJG/kWc2Aez4rczx6u1bGmPVBD naLDBpXTsrlzdQIBOHX/pcj91It4ThiJ1fQzQkYZGisYtbXSrSpYz8yO6aKSr9TFzd/Z SPiyp371ivqZxCD585ZqO9ZHdY8ioyByONFBYw2HjDqXXAnfPyUpjKL1WETpSBoxkYVk XBSzh0cVfibLlvakF/EV4FrF3+HjONLQnQHIS2iqAt8mCo7SESbgTl43OltxTj9jOjBz p7RA== 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 :arc-authentication-results; bh=Hm/d9Esy1Gf0Mbti+zzOq9pHP3CuBwAAvmjAV/c1OCw=; b=LAIeHUivSHD5LevhRg8nMyO5eNgdxQNw567AYSgEm7zB6PzTQkCca510RLuDVi7vlg LYwAlsoe+1aUcoOv5QSAs7097HnQn6J2KZwMXXjJqOuFmcp7Os+Erw3MMBpUTGUdb+1z qaMto0P9LJTMYxah22iw41doLXwbuqwC3LUfkRefSf/sB2XllsWaUbTiQtZeZF3XTYeO EK6bl61jpZz6QQw1Ci/+rxB9nSZrGW8BRgy1dvXhY8T3WG0o6Mv9I4GY5WAqyS2S4y5W ETDzQc8GDwMnGKh9PPyUYUl4sL3dam6h3K6mBbMjfbr/c77+l0nz/pqONZalUUSb0y3j UR0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=UAVqjcFU; 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 z16-v6si32180589pfj.337.2018.06.08.07.48.00; Fri, 08 Jun 2018 07:48:14 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=UAVqjcFU; 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 S1752872AbeFHOpx (ORCPT + 99 others); Fri, 8 Jun 2018 10:45:53 -0400 Received: from mail-pl0-f65.google.com ([209.85.160.65]:45306 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752810AbeFHOpu (ORCPT ); Fri, 8 Jun 2018 10:45:50 -0400 Received: by mail-pl0-f65.google.com with SMTP id c23-v6so8443455plz.12 for ; Fri, 08 Jun 2018 07:45:50 -0700 (PDT) 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=Hm/d9Esy1Gf0Mbti+zzOq9pHP3CuBwAAvmjAV/c1OCw=; b=UAVqjcFUO9MZHC40HxtxlYcfx4Ix2X8e7kIKxYZoBi4ep+EDUghaEGB0OCP6BzpN4o fNAdlhrbKtB820+6kJqfq/VlbKgPnQ5LCqWaobTENwFJRiFYIttFtX6l67un/w9JzNCF W38Ad5EFfM67egdigY0crnM967VqWwRFmhOG5QbcCCOMZp4GTp3m6mfHo9X+zgMSW+QV rCozi8gHxXimmIQmE+drX+3Df3QOmPZPmM9RDUmLcAz9MdTmmCmB/QCMCg+mijBa1UNF Q65/xtPKZ2nMLC7VtgMpRhLhGIbvDIoxMkK58tMg2aseUAihVgN34TOxOgD49LD3Hmz7 3EHQ== 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=Hm/d9Esy1Gf0Mbti+zzOq9pHP3CuBwAAvmjAV/c1OCw=; b=HIu6IPty3eGLAa8iv5b+rjxf+xioLc3D0Hu9oiep6KRdXX4uoOjG032O1sq/ZA0E2E RcuL4XNKTNg8IRZRi3MrGHul9sdc9laYPVAWe6QLnhRvh079eeVJSrvT1aAIWpkO+VC0 s0RbBHS1YM4KbquQ2wnYyXEXKPEPV7Pi2CHkBulbFUNqlnROmbOVglNq7TD2uYdHwJiQ lyZ58vqF4+uwZI6SlPDVxiNin/H1GnRNtARGz7bk1/p347I+TFdeY+n1leAScu2/B3h6 a6hzJoUkISbVNRe/as6iJBuuOEjlv1HyMxYVbMIbpFNd0CyZJg5PiWqU8qet5VpBt16C 2UBQ== X-Gm-Message-State: APt69E1ld6wxBNDL6DgrvN/okdtG7mZYzjH9VOP8XJCZ8jASXPAVwEGb ggKRhN27xajDKSrl4zSyBcbsuh0M83UOZtvtosUoPg== X-Received: by 2002:a17:902:5a4c:: with SMTP id f12-v6mr6935916plm.85.1528469150162; Fri, 08 Jun 2018 07:45:50 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a17:90a:d42:0:0:0:0 with HTTP; Fri, 8 Jun 2018 07:45:29 -0700 (PDT) In-Reply-To: <201806080231.w582VIRn021009@www262.sakura.ne.jp> References: <95865cab-e12f-d45b-b6e3-465b624862ba@i-love.sakura.ne.jp> <201806080231.w582VIRn021009@www262.sakura.ne.jp> From: Dmitry Vyukov Date: Fri, 8 Jun 2018 16:45:29 +0200 Message-ID: Subject: Re: general protection fault in wb_workfn (2) To: Tetsuo Handa Cc: Jens Axboe , Jan Kara , syzbot , syzkaller-bugs , linux-fsdevel , LKML , Al Viro , Tejun Heo , Dave Chinner , linux-block@vger.kernel.org, Linus Torvalds 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 Fri, Jun 8, 2018 at 4:31 AM, Tetsuo Handa wrote: > Dmitry Vyukov wrote: >> On Tue, Jun 5, 2018 at 3:45 PM, Tetsuo Handa >> wrote: >> > Dmitry, can you assign VM resources for a git tree for this bug? This bug wants to fight >> > against https://github.com/google/syzkaller/blob/master/docs/syzbot.md#no-custom-patches ... >> >> Hi Tetsuo, >> >> Most of the reasons for not doing it still stand. A syzkaller instance >> will produce not just this bug, it will produce hundreds of different >> bugs. Then the question is: what to do with these bugs? Report all to >> mailing lists? > > Is it possible to add linux-next.git tree as a target for fuzzing? If yes, > we can try debug patches easily, in addition to find bugs earlier than now. syzbot tested linux-next and mmotm initially, but they were removed at the request of kernel developers. See: https://groups.google.com/d/msg/syzkaller/0H0LHW_ayR8/dsK5qGB_AQAJ and: https://groups.google.com/d/msg/syzkaller-bugs/FeAgni6Atlk/U0JGoR0AAwAJ Indeed, linux-next produces around 50 assorted one-off unexplainable bug reports. >> I think the solution here is just to run syzkaller instance locally. >> It's just a program anybody can run it on any kernel with any custom >> patches. Moreover for local instance it's also possible to limit set >> of tested syscalls to increase probability of hitting this bug and at >> the same time filter out most of other bugs. > > If this bug is reproducible with VM resources individual developer can afford... > > Since my Linux development environment is VMware guests on a Windows PC, I can't > run VM instance which needs KVM acceleration. Also, due to security policy, I can't > utilize external VM resources available on the Internet, as well as I can't use ssh > and git protocols. Speak of this bug, even with a lot of VM instances, syzbot can > reproduce this bug only once or twice per a day. Thus, the question for me boils > down to, whether I can reproduce this bug using one VMware guest instance with 4GB > of memory. Effectively, I don't have access to environments for running syzkaller > instance... Well, I don't know what to say, it does require some resources. >> Do we have any idea about the guilty subsystem? You mentioned >> bdi_unregister, why? What would be the set of syscalls to concentrate >> on? >> I will do a custom run when I get around to it, if nobody else beats me to it. > > Because bdi_unregister() does "bdi->dev = NULL;" which wb_workfn() is hitting > NULL pointer dereference. Right, wb_workfn is not a generic function, it's fs-specific function. Trying to reproduce this locally now.