Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1181695iog; Tue, 14 Jun 2022 00:25:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzyzL0yi/YNvQd7OR5fg2S51jhxHj9r8r6VkwY4oxODqoYhXve0zytoxjaRaaUzZfBLrc6z X-Received: by 2002:a17:907:1c8f:b0:6e8:f898:63bb with SMTP id nb15-20020a1709071c8f00b006e8f89863bbmr3074441ejc.721.1655191513359; Tue, 14 Jun 2022 00:25:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655191513; cv=none; d=google.com; s=arc-20160816; b=R6FFOOdwIVZAzdk9/DLnEz07FPfVoukJZEt1Fv2qMC5zzyCfgXatlrjhkhBULFrYCa T9HIfMdJCdW6oBhTRlEMiAeZMsv88ig99xb9t5IYMDPvshLPR5//qY0JzmOF3+d5IheY 6iAq7tmZo2rjNhXDXqS2l3x1gypPbnR6gfZ26AOGhaaseFmanMPMOHgoyIuNBoSsquCD +0tZqbX1KwGUQxdP3sTG+vq5V9xAiTouqpJa3XI6lxPWdYnjO/mCznhhM6tHXzG0DC0Y tBW4rc7YM3padQkIFl4QeJOZybSRb8cUgHQul2IuRo3KZHHMtkcEpCztojs8UWr0F6yz njWg== 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:to:from:date; bh=h88NdAbI1DP0/kE6eEd1caDjfzw+hBfjognh0PEioxg=; b=ETlNUgbGPDDptFuOuXX8F66uoK6j41rRQ5RtvKRdQXCldfrUpYbzSMG58vGcT1HrM4 N5DVzq0ciS5paxtxL9abc6AtTyLY+hLxZvY6kFW0eA5kFUFdodSE6xkEiRmitys4XKtv 2uIuFXGwVZqQYd4FWulVN8+ikeoutVHC75DTZH4+DXmAm+qoyzSYzhze6Mx5yrnSUDC9 MA/fJJ6oSSW3K24eqSuwDqDJxQ1IKlt3VXcBZT5m83zIS7524nd/vnpT6YcN9MFr8Iyc HMiWZFqGNfIJhm3jh1ChG9pcZ7AwWfOjbrQvgt+X8+5oeLfmcnCFIfmKdruy1DvWBpkm ajKQ== 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 r2-20020aa7da02000000b00434ee6f2c8fsi5769829eds.63.2022.06.14.00.24.48; Tue, 14 Jun 2022 00:25:13 -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 S231326AbiFNHTb (ORCPT + 99 others); Tue, 14 Jun 2022 03:19:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353786AbiFNHSO (ORCPT ); Tue, 14 Jun 2022 03:18:14 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B34353CFE8; Tue, 14 Jun 2022 00:18:02 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 3BCCF68AA6; Tue, 14 Jun 2022 09:17:58 +0200 (CEST) Date: Tue, 14 Jun 2022 09:17:57 +0200 From: Christoph Hellwig To: dsterba@suse.cz, syzbot , akpm@linux-foundation.org, clm@fb.com, dsterba@suse.com, hch@lst.de, 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: <20220614071757.GA1207@lst.de> References: <0000000000003ce9d105e0db53c8@google.com> <00000000000085068105e112a117@google.com> <20220613193912.GI20633@twin.jikos.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220613193912.GI20633@twin.jikos.cz> 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 Mon, Jun 13, 2022 at 09:39:12PM +0200, David Sterba wrote: > On Fri, Jun 10, 2022 at 12:10:19AM -0700, syzbot wrote: > > syzbot has bisected this issue to: > > > > commit 4cd4aed63125ccd4efc35162627827491c2a7be7 > > Author: Christoph Hellwig > > Date: Fri May 27 08:43:20 2022 +0000 > > > > btrfs: fold repair_io_failure into btrfs_repair_eb_io_failure > > Josef also reported a crash and found a bug in the patch, now added as > fixup that'll be in for-next: The patch looks correct to me. Two things to note here: - I hadn't realized you had queued up the series. I've actually started to merge some of my bio work with the bio split at submission time work from Qu and after a few iterations I think I would do the repair code a bit differently based on that. Can you just drop the series for now? - I find it interesting that syzbot hits btrfs metadata repair. xfstests seems to have no coverage and I could not come up with a good idea how to properly test it. Does anyone have a good idea on how to intentially corrupt metadata in a deterministic way?