Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp855950imu; Tue, 20 Nov 2018 08:00:37 -0800 (PST) X-Google-Smtp-Source: AFSGD/UHEXwQaKjQ68gLPPGZ/gYOr/M2o6RSTOPJFOrWIluUPfQ83eCgZJdds+Dct9iFxOFpGMuG X-Received: by 2002:a63:88c7:: with SMTP id l190mr2373499pgd.110.1542729637073; Tue, 20 Nov 2018 08:00:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542729637; cv=none; d=google.com; s=arc-20160816; b=q0o9ZNGP2pOL2mH5gi2LONij03TX98rQhamMKYOjo9xi+Qg5BXwAEFRMRypc5DAhUG zUFQsU0Hrz3GiyfJjrApCuZgqwZJi0sLdns/sW2kAJgFUJpvWQ+qeRnldSRPg93efRvs 8XPgY9fSBnrtRI0Xmpnu0/BToNyGtGeE3EwcHcJW4dtvD36drMfj3nmWVZGT1XhF84ez fiT/VIlg2LnpSSBfwRCqoyc/xu/HbIwcD1KJrMRFjzLcvArlLFh+MAeRTIZ3RnDa1ioo jHffm+8PNidEISSg0HxZe49ryTqM3TrltVPn/f5Jzzqqf83TfWDyVZCwU+VYH2uIPitw kp0w== 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=L/LJKDb9qV1jIIWGz4LuixjhEUZ2sxe7NOqkJbx6PBg=; b=v5kFDUZT1rHCSKno9/Se+VPbwuBNOUP/tmHAPhDcuGPb0Mn1ePivLDaQie/ZOVJHhF Hnfh25NSU9gFaBrrnzrPtVVf8R9jFrHxrlaHMr6Iuj20q5MBhZ1Fte8ekAclbFx3ufTW BemnWEC17hgwEDoD8FQGQt2irEAdmXzSAP0E73MAlFB3maZ8V5goQGYp4JrMIbDra2hZ I40IHnCn5e1pBgsy9/Vo9/UAaOmj50+gYyFZ8NIKTB4cL6BOy+OTiuylcO97tKN5PEK/ /kshQ0BhKg6cer0CGxR7Qho28ChffOWK8O5B4VnJnG1dmtdzsMmMHWVXXGQEExLuz5BC hreg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=hIInteTa; 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 u9si43203423pgu.570.2018.11.20.08.00.20; Tue, 20 Nov 2018 08:00:37 -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=hIInteTa; 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 S1727574AbeKTXwa (ORCPT + 99 others); Tue, 20 Nov 2018 18:52:30 -0500 Received: from mail-it1-f194.google.com ([209.85.166.194]:35741 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725843AbeKTXw3 (ORCPT ); Tue, 20 Nov 2018 18:52:29 -0500 Received: by mail-it1-f194.google.com with SMTP id v11so3453854itj.0 for ; Tue, 20 Nov 2018 05:23:21 -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=L/LJKDb9qV1jIIWGz4LuixjhEUZ2sxe7NOqkJbx6PBg=; b=hIInteTaCMZJk5WLIa8KABCK/nWUf3iSRGXl1ktYDwta8BSYbHLXICFZ8uqSm0Hpuw ReBCJiuMHIhwi+AhOy7syqidRg5+VZJP//spln7lNEHVRrmWiChmC13gA6uM0/HcJVRc FUmcOYO3pElKoVX3ZBgx2LxVVEIjzzHCZ7FOX+pjV0anXSQAVoYkcqFJPAHrPX1mX6CG eziaIPMxgPNIm2970Gd/jN8PxwhYqn9xXuwmYyiPSMikCF8JCeh0037kEBqoL6YXPjoZ 7WSD+Byh/uYWpTXBtlNiTArLE1cWSe1BcApsfy1JN4soe5E4c/j6u1VTrFa1m01E8Jse fDlw== 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=L/LJKDb9qV1jIIWGz4LuixjhEUZ2sxe7NOqkJbx6PBg=; b=lUImzSsLk+4MCl8tTfhP815K8iLmL4Lf5p9iXSK0GAlYCcKIVuyakb3RG/uxegrzkO 5gwYR2CJZ0lf0QXPHkrY4yy2wXf2Y/X5Qv8LOpjdyCXVg6kkBInbhIHKSADL3FFlVu9E xBmJGDUof3f5wTwqNk8Xot83FplUwu5In764c7W+i6RrX4qhnywqNuQA9GfKuHEIazxt Lt9ETLvcpcyD6a/OV4boqs19/7rr5FvWu3DOAEQPHtUi7vmTmCUh1gB49WVX1yS6b6OJ xxuHeKxvFIik6W+EK5ayxgyWBh2ZTN+7Unydr7WeW55kZxGitdGh1vWRCjjB/mfpqH9S 9quw== X-Gm-Message-State: AGRZ1gI4umTKtH+ub8vWUC3udRLnBqh6LLdrkbPaNLgIyWkkylCQ+PgE NTy1DnJYBw/H/wjpm50zTZJsccnEgvVW6JGbpAwZDA== X-Received: by 2002:a05:660c:f94:: with SMTP id x20mr1869575itl.144.1542720201161; Tue, 20 Nov 2018 05:23:21 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a02:b003:0:0:0:0:0 with HTTP; Tue, 20 Nov 2018 05:23:00 -0800 (PST) In-Reply-To: References: <000000000000222b58057a7d9f39@google.com> <9d9ad7f2781bf15af4bd6ccc9feee35c7cd17979.camel@kernel.org> <87bm6svhhl.fsf@notabene.neil.brown.name> <87bm6pewnm.fsf@notabene.neil.brown.name> <20181117140356.GA29895@fieldses.org> From: Dmitry Vyukov Date: Tue, 20 Nov 2018 14:23:00 +0100 Message-ID: Subject: Re: KASAN: use-after-free Read in locks_delete_block To: Jeff Layton Cc: Bruce Fields , NeilBrown , syzbot , linux-fsdevel , LKML , syzkaller-bugs , Al Viro 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 Tue, Nov 20, 2018 at 12:08 PM, Jeff Layton wrote: > On Tue, 2018-11-20 at 07:57 +0100, Dmitry Vyukov wrote: >> On Sat, Nov 17, 2018 at 3:03 PM, Bruce Fields wrote: >> > On Sat, Nov 17, 2018 at 08:33:27AM -0500, Jeff Layton wrote: >> > > Thanks for the explanation, Dmitry. I've added the tag to the patch in >> > > my tree. It should show up in linux-next soon. >> > > >> > > I still find it a little misleading to say that syzbot reported a bug >> > > when it actually found a bug inside an earlier version of the patch, but >> > > I'll just learn to get over it. >> > >> > The usual tag for someone that found a bug in an earlier version of a >> > patch would be Reviewed-by:. Is there any reason we can't use that >> > here? The "syzbot+..." email should be enough on its own, I can't see a >> > reason why their scripts would need to require a particular tag. Or >> > maybe we could use Tested-by:, or some other tag made up for this case? >> > >> > I do worry that someone who sees "Reported-by:..." might for example >> > mistakenly assume that it would help to backport that patch if they see >> > a similar-looking oops. >> >> I see. It may also be picked by scripts that detects patches that need >> to be backported to stable because of the "Reported-by: syzbot" tag. >> This is somewhat unfortunate. >> >> There is no problem parsing another tag on syzbot side. Does Tested-by >> look good to you? If it found a bug in the patch and then it was >> fixed, Tested-by looks reasonable. And we also detect >> Reported-and-tested-by already because that's what syzbot suggests >> after it tested a proposed fix for a bug. >> >> I am somewhat concerned how to spread this information across all >> kernel developers. There is effectively no way to do this. We can't >> expect people to read docs, they generally don't. I guess I just >> document this at "See https://goo.gl/tpsmEJ for more information" and >> then we can point other people there if/when this concern pops up >> again. > > Tested-by sounds like it might be a reasonable fit. I'll change the > patch in my tree to read that way. Turns out this already works (we did not check exact tag, just search for the right email with a hash). So I added a test for Tested-by tag and extended the docs: https://github.com/google/syzkaller/commit/9aca6b5240809308d9078a0a0f0707512c5b0220