Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp884006iog; Wed, 15 Jun 2022 14:44:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u088O1+BoevagklM3dWkAMNV6vBvPO+SCeC+66Sugf9zoBtFfx/zO1gYX8x0Zia6NM7rvu X-Received: by 2002:a05:6402:1449:b0:42d:d250:e504 with SMTP id d9-20020a056402144900b0042dd250e504mr2315591edx.213.1655329497394; Wed, 15 Jun 2022 14:44:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655329497; cv=none; d=google.com; s=arc-20160816; b=JCKMDDOKynZP2Ygt+iGI7lY00ILrcxanyftBLGDIl3uhPdv7gGCG8i1Z+XJ94SQ/MD e0gmp/n4SIYomxDLIPA0uVVqncP6DyA8ZBe5ZHSmwT2WmBctjiG0UkRT7A62ZOY7c5lF qCSLdtGRhrLOEZkqYSIjU/6vVj9vXPlodAsKgCeAuh7m+1i454KZVVoM3vlUpLHzROST KhyXNODEsMj0cK3N4XLSNQ4DyXRBaZlzPvcOvyV4OeO7Ha5LRPtf2Rj+HEfKHqlaezCE mf4XlPtL90vmEh4//z9QbRic5/YSGRjGQhJem/+W38oShFjC+a00+bw0tu5qMLb13qp0 g3zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=sewS1k19E5zNFt7guGx8ADD0uovsZroqX/MykOeNoAw=; b=WX3zAzBRjV/Mi0H6EAZQ5YmDFuRaIXJSDz6cqOMXWAMqDvJU4u5hZzkCq4JIHVK5jf L7b2bBpUkcEzm/Nv5zu4cASnH9ti1DBgKwAS8o2/rRWtTQDbVOCzTyF6zdoK+kAgcI5b IFO2tz+vsZcLKX8iFzQvR1vvx1q3ss8FwudlqDcXkhEKklOPsuehCYCNQhB4y4xkI/sv skJuMLMr5fEdNQ9eC+TRE++BTWSF6aVmhG5WMWuzg1ob12KBiZQ7hTu5+zroRzY3hp7K cG7eJH8RAMPQIZCTnfIjymI5cehNJR+HfXh8T/JLMd0NSI9NIGljnCVj1LmVLvcvNB4w zXCQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=ZaY29LgS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kz3-20020a17090777c300b006f8ee02afbbsi13625762ejc.513.2022.06.15.14.44.32; Wed, 15 Jun 2022 14:44:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=ZaY29LgS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349663AbiFOV1n (ORCPT + 99 others); Wed, 15 Jun 2022 17:27:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349710AbiFOV1l (ORCPT ); Wed, 15 Jun 2022 17:27:41 -0400 Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65BFC167C7; Wed, 15 Jun 2022 14:27:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1655328434; bh=sewS1k19E5zNFt7guGx8ADD0uovsZroqX/MykOeNoAw=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=ZaY29LgSeKsC0VKC0SfEO8gCT/mbD6Qy/5eG//rKUlfwQK32wCZyAB8p4+MeiczAs wEnfd+sTmcT94yqzlRVJePYywnp5EvPECoxAhy5pRe56snX/8JFtBBgpCsKSUAfHNV jL/7QpKzQmAvk0RCH/rLb4FqlMv8n1jXIqjxFB38= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from [0.0.0.0] ([149.28.201.231]) by mail.gmx.net (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MsHru-1nhIVP2ZLu-00tnF1; Wed, 15 Jun 2022 23:27:14 +0200 Message-ID: <00bbda63-dc00-05c0-4244-343352591d98@gmx.com> Date: Thu, 16 Jun 2022 05:27:04 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [syzbot] KASAN: use-after-free Read in copy_page_from_iter_atomic (2) Content-Language: en-US To: Christoph Hellwig Cc: dsterba@suse.cz, syzbot , akpm@linux-foundation.org, clm@fb.com, dsterba@suse.com, josef@toxicpanda.com, linux-btrfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, syzkaller-bugs@googlegroups.com, willy@infradead.org References: <0000000000003ce9d105e0db53c8@google.com> <00000000000085068105e112a117@google.com> <20220613193912.GI20633@twin.jikos.cz> <20220614071757.GA1207@lst.de> <2cc67037-cf90-cca2-1655-46b92b43eba8@gmx.com> <20220615132147.GA18252@lst.de> From: Qu Wenruo In-Reply-To: <20220615132147.GA18252@lst.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:GzvWUv7j+dS6fGBh0O76pQHRuv0QctvPBDKfUco4+Y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yJEjpMmjMQMv30Vq/4BM6ZqJty8OHCs7dnwqBo1RxgcaDcglFBAy6r Wwsy3UqRjM3N3/IsstSmsF1f112zJKzsOYGBVU4n+YxJgSKiRC7yDB2VPVt3e6jdeK3Y8m5gg qq53Pz/u7c4wKhvf5ASPAnB2ygA748E+2SLwxVHmnm0UFKhZJCJA+GnZsL21qOCyZ6N0bei8M QRln+yhh05sPLbVNlsPEmewJAHICI57FsNDrKog79AJsQEEtviKYHZqb1O8GsrBevAn4KBoZi Xr+vzv/l0huLKyq0FCz7buQROHIxWvDxZDm22i6sWCwe/AwVl79didzmQ== X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022/6/15 21:21, Christoph Hellwig wrote: > On Tue, Jun 14, 2022 at 04:50:22PM +0800, Qu Wenruo wrote: >> The same way as data? >> >> map-logical to find the location of a mirror, write 4 bytes of zero int= o >> the location, then call it a day. >> >> Although for metadata, you may want to choose a metadata that would >> definitely get read. >> Thus tree root is a good candidate. > > And how do I find out the logic address of the tree root? For tree root, "btrfs ins dump-super | grep '^root\s'. For other tree blocks, "btrfs ins dump-tree " then with other other keywords to grab. Thanks, Qu