Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp762910pxb; Fri, 22 Apr 2022 10:36:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbZlV+644nCS4yOGD619lH+3j7tb4sBPLuo9ApkDTucb3OBDXwxrjUgLd/C/0WmK8adsdd X-Received: by 2002:a17:902:ba93:b0:157:1905:f4bc with SMTP id k19-20020a170902ba9300b001571905f4bcmr5434359pls.83.1650649013714; Fri, 22 Apr 2022 10:36:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650649013; cv=none; d=google.com; s=arc-20160816; b=k4SJLQxdHT29Kd8wZUjA9cU95pW2BEhwbpAxyHZ3PQpkPor+zAlnzQDfRlHxtI8fxg EOXT1RBi3EFuWCNVJXHTPWdL583tzWu005ieVxOyjsOhdWDcfa5rtizyGGRPImltad/r lJGKnAXMBXek1uxX5UZgp1NWZUZeT3iRnACivYeXkH11Qd9/GVwPZD2Kvykp8vllhI0U liLPHgKFjvBQDno4XYEahQVdrxQyKE/XH5VDuBkGcEtiHTQZN4cROAzXEyHdgXwkUYLK mnGUoJ0D0M/i0ezkw3BzfvGv7M9ypxUwGGBuwX0N7P7rPobEeIaWd6m1ysNN9u+oZGKq iFuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=p3mKrvxIbu8LibPS3UuSRgaTh+XcU6Jc9U1SK1ytPZc=; b=FvV8UgbdKrgwnke8xPABFEUWIePODhr2+/ti6PZQwKBQWFdlXR0EPEtaQXa81n77rS ZM3Fzqa0tDfXzNbcIwQX5ZZGUaeULR0QTOQmsH7Dktmc3B+YXoZmrc2PEtZm64VAe/PJ O9oZm1ZqSDysaUQ5p1UHRm5VjpIgUQW5hIM1pWbOG9XqyKsoidxiu67sjAY676A9EtNw +KN4o2NoJCxsMfpUWlSw75+RUaEj++DHM7iybViRBlN1meVlzFnpmGpFGE4SOBHBAB/W 5iRFV8yFhXN2KakoKG/WK/dgco6TqT6j/QTHLsyh68Lf3S3dY5FpxKOLaPm5TnjL72um shoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=SLFbyZ99; dkim=neutral (no key) header.i=@suse.cz header.b=CgtjQrmN; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p17-20020a170902e75100b001568acea039si9216751plf.554.2022.04.22.10.36.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 10:36:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=SLFbyZ99; dkim=neutral (no key) header.i=@suse.cz header.b=CgtjQrmN; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id ED79DDB2DD; Fri, 22 Apr 2022 10:26:52 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378443AbiDTMTS (ORCPT + 99 others); Wed, 20 Apr 2022 08:19:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242236AbiDTMTR (ORCPT ); Wed, 20 Apr 2022 08:19:17 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06E1C25284; Wed, 20 Apr 2022 05:16:32 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id BA26B210F4; Wed, 20 Apr 2022 12:16:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1650456990; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=p3mKrvxIbu8LibPS3UuSRgaTh+XcU6Jc9U1SK1ytPZc=; b=SLFbyZ99CoJObP0g9Ep1Sb+iQfkJPZqg86vwl9d9S4I/5KojvITG614cB8v6fOyvWfNQt9 noUBDSRHFuAH6Q2NkohZOrgNMvsetwDim+9oM3mmYvklNBxW+4JQMiDiiNMt2+oGnIc1x4 pFz34r0DAtyUbBg8Q3XCqN3AO+0+kDY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1650456990; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=p3mKrvxIbu8LibPS3UuSRgaTh+XcU6Jc9U1SK1ytPZc=; b=CgtjQrmNT0B7okUm5pzcriN+HzEImF38XfsVF88gKCn1//J7f2ktgzDuSJtCSnND2mfJ1y vFU/+LMWf1nxxeBw== Received: from quack3.suse.cz (unknown [10.100.224.230]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 88C2D2C145; Wed, 20 Apr 2022 12:16:30 +0000 (UTC) Received: by quack3.suse.cz (Postfix, from userid 1000) id 723EEA061E; Wed, 20 Apr 2022 14:16:26 +0200 (CEST) Date: Wed, 20 Apr 2022 14:16:26 +0200 From: Jan Kara To: Phi Nguyen Cc: syzbot , adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, linux-kernel@vger.kernel.org, tytso@mit.edu Subject: Re: [syzbot] kernel BUG in ext4_es_cache_extent Message-ID: <20220420121626.edhvfibz4n3trnvg@quack3.lan> References: <0000000000003d898d05d759c00a@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=no 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-ext4@vger.kernel.org On Mon 14-02-22 02:03:37, Phi Nguyen wrote: > The non-journal mounted fs is corrupted, syzbot was able to mount it because > a [fast commit] patch exclude its inodes from verification process. > > #syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master This patch seems to have fallen through the cracks. Phi, care to submit it properly with your Signed-off-by etc? Honza > diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c > index 01c9e4f743ba..385f4ae71573 100644 > --- a/fs/ext4/inode.c > +++ b/fs/ext4/inode.c > @@ -4912,7 +4912,7 @@ struct inode *__ext4_iget(struct super_block *sb, unsigned long ino, > goto bad_inode; > } else if (!ext4_has_inline_data(inode)) { > /* validate the block references in the inode */ > - if (!(EXT4_SB(sb)->s_mount_state & EXT4_FC_REPLAY) && > + if (!(journal && EXT4_SB(sb)->s_mount_state & EXT4_FC_REPLAY) && > (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || > (S_ISLNK(inode->i_mode) && > !ext4_inode_is_fast_symlink(inode)))) { -- Jan Kara SUSE Labs, CR