Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp502091iog; Wed, 15 Jun 2022 06:43:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwizP3vKBjrtvDxlju0Xswhel55g3fGoyVYnM4+Ul4lkSMckS3dGqOwcl3VaY5din+wQxay X-Received: by 2002:a63:483:0:b0:3fc:9128:60a5 with SMTP id 125-20020a630483000000b003fc912860a5mr9277648pge.606.1655300594495; Wed, 15 Jun 2022 06:43:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655300594; cv=none; d=google.com; s=arc-20160816; b=GsQG5Q9WB6y14DLzlluOScM8kL3eV1GDFrPdGoMRyaVVrhnRDupu3HUlYlf87iksw7 hSf7w4zs9lGeRBqwxuoGSh7Rc6hiOeL0+t4lXBHWIkthQ8dxLClOn7fp/onRRKOvOmcm u3qWyS1X365gpZK0/stH0hIzQXoVZvbBMnJ2aP4KUErIAQudv1pU6nRUVDRaJ30RnVpr 2Y6oSZE/Nb7qyNCSTfKmASIbeS8VgfoH/SZMXai3Ae+uT8Yrdg+lA3/n5vXNsruwDKai Z7RRNc2lr3UQAjNkaDCWSxxhRBnc1aQBnh4vVjSgV2/VD6Rkp+f159Bcw26i1RCZ6ujp TZzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=xJedgpz9v/f2dVJxlO0WICFWUw5ZXL6IFbVzXzW2Q0I=; b=pB6ix60utHoOazW2f0N3tqHG8GnPYC2tkYMEh60iyUruaZr6XdMieCsdkvOZD3F8Ej YQVnbUCirzH/8OoCGeMLoW/nOoseSr2DMRw9HFL2wD4tUwgM3GF6l1XZ7Fd2ufhZHIM3 nrmoTfFk5iVg0ZLhX5NZfLblEYlsjtRJ8i8c1Koe/QHLo6sjJbFlDvtobpUOLktV/z5E 7nWMDxGjJDD6EkNwOZsEV1WCfjLcF5RyAReirvSxLkI9Msq6H+AaXYGzdRdeaPi4m25r Qe0VMoXggM19p3ZlluxL+J87dNqErIxqRwZ0xtWiK6yGv4bN6UsdJUP8bslw2cei9zRf vaKg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s185-20020a632cc2000000b00408a86a843csi5703159pgs.531.2022.06.15.06.43.00; Wed, 15 Jun 2022 06:43:14 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349561AbiFONV4 (ORCPT + 99 others); Wed, 15 Jun 2022 09:21:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231524AbiFONVw (ORCPT ); Wed, 15 Jun 2022 09:21:52 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A43F3B02F; Wed, 15 Jun 2022 06:21:52 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id A075B68AA6; Wed, 15 Jun 2022 15:21:47 +0200 (CEST) Date: Wed, 15 Jun 2022 15:21:47 +0200 From: Christoph Hellwig To: Qu Wenruo Cc: Christoph Hellwig , 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 Subject: Re: [syzbot] KASAN: use-after-free Read in copy_page_from_iter_atomic (2) Message-ID: <20220615132147.GA18252@lst.de> References: <0000000000003ce9d105e0db53c8@google.com> <00000000000085068105e112a117@google.com> <20220613193912.GI20633@twin.jikos.cz> <20220614071757.GA1207@lst.de> <2cc67037-cf90-cca2-1655-46b92b43eba8@gmx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2cc67037-cf90-cca2-1655-46b92b43eba8@gmx.com> User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,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 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 into > 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?