Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6577307rwr; Tue, 9 May 2023 18:00:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6JPkNe0pKdzKh8CQeKUDsqPIlrHbL2f4gJAXgBIP/TW3HHmIRCCiiaoyjdF9QoYH5SM52Q X-Received: by 2002:a17:902:dace:b0:1ac:7e95:74be with SMTP id q14-20020a170902dace00b001ac7e9574bemr10399887plx.28.1683680447732; Tue, 09 May 2023 18:00:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683680447; cv=none; d=google.com; s=arc-20160816; b=SQ14CsyP0JaroANUZ/+pFmo8DEll/+n40KDRLHOwE8lJBU6x0HH0yH/yAD14dXewAO FOhlNR/khNktM4/mu0T2PoXalp12werOoAk9oRz8mG+DpY7Ybt8kcYLZq3U/0w5JucIs pAnrnBgPHOgUDXUvuTAzCKxqpfqcF6Zxf21LDEpeZkP42a8paHayQLwT5MGuE4vpntRg G57UAKOH8iRn9qoFK0J9f785AYiQGhwy9JpbE8/6pp3cvIayOBpVhMFwKziaQfwI0/so 93FwQdcOlW+EkHFP1iAK614HunO9BIaBqV87n5eDAoWDHgU4N1bP9KpAvmejIMpmKQ5p 6yeg== 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; bh=+XNNATCTVkyahss1M+8eO8RfK8ISbaRGdPkQr3NJSfU=; b=Z6T9bRFMQa7/8IiMbQrNnaXcZa0+Hl1bcOu0lksGiBZZC8475qM3zx8gd8vq1GejHa BSRVecbU/PKWSPZ0q5gaKgAc9KIlAG7j8k80YQG4Elju21eFeQLI/rV8C8Nm68XGqkD9 8q60S7p5LxlZbtOpEYoYvGYePlaYqkc2Vtr2svHZJgRe5K8CB5OGQKGVvmCcTdi0UHX7 NvBOzzJ8pUP9MCMs+iE9/y8VJQlecuZUpphu0gmLC/MoGaSHSZihQNvNU6XqOWelYh6m w7CbzFBTj+jlkwf8ZN+Bv4XEgxtstMAnG1kjadskqXdb0X8UBI6pJ9ystvGkN/ah3jiB 8Otg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mit.edu header.s=outgoing header.b=FbH0bBn6; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mit.edu Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jd12-20020a170903260c00b001a9770780cfsi2591041plb.364.2023.05.09.18.00.33; Tue, 09 May 2023 18:00:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-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=fail header.i=@mit.edu header.s=outgoing header.b=FbH0bBn6; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mit.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229595AbjEJAWZ (ORCPT + 99 others); Tue, 9 May 2023 20:22:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229536AbjEJAWY (ORCPT ); Tue, 9 May 2023 20:22:24 -0400 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B00492D4F for ; Tue, 9 May 2023 17:22:21 -0700 (PDT) Received: from letrec.thunk.org (vancouverconventioncentre.com [72.28.92.216] (may be forged)) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 34A0MClT017982 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 9 May 2023 20:22:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=outgoing; t=1683678135; bh=+XNNATCTVkyahss1M+8eO8RfK8ISbaRGdPkQr3NJSfU=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=FbH0bBn6u6ivg77ztxLVzpsbXRsMgMMBOdrDU5wYOx9E6vxOBjOdml+hlYc9Gdzyq ONXCeieNfXdrSSZa9pXiTrp+XAyDLmI5O2jb0yJZuO7F41mVFBZVfJA1dSYojIwCh4 OvBtE2CokJTiHllNL/WrTRHbl0etB2YW5Uc2sVhl6pqDssU4tkWwwCXvDFEC6+VIAe 6T/Gfzglt3vJ+5KYuMUg1UbC73N0WM0/tyOTLQyljkI+hVxbvqoX+UN2YI8+tnB1OW C5TrRjcmBaHtSKBx/mT8FI306lt4/oAFNnOYAaKry66W+BMo065J4oe8EjKfoQdIn/ aFmKAm4+U7w6w== Received: by letrec.thunk.org (Postfix, from userid 15806) id 5C0E18C03D6; Tue, 9 May 2023 20:22:11 -0400 (EDT) Date: Tue, 9 May 2023 20:22:11 -0400 From: "Theodore Ts'o" To: Jan Kara Cc: Ext4 Developers List , syzbot+e2efa3efc15a1c9e95c3@syzkaller.appspotmail.com Subject: Re: [PATCH 1/2] ext4: allow ext4_get_group_info() to fail Message-ID: References: <20230430154311.579720-1-tytso@mit.edu> <20230430154311.579720-2-tytso@mit.edu> <20230507181816.tsnqhzgajftcbsz5@quack3> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230507181816.tsnqhzgajftcbsz5@quack3> X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAY_BE_FORGED,RCVD_IN_DNSWL_MED,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-ext4@vger.kernel.org On Sun, May 07, 2023 at 08:18:16PM +0200, Jan Kara wrote: > The patch looks good except for one small problem already found by Julia: > > > @@ -2578,7 +2595,7 @@ void ext4_mb_prefetch_fini(struct super_block *sb, ext4_group_t group, > > gdp = ext4_get_group_desc(sb, group, NULL); > > grp = ext4_get_group_info(sb, group); > > > > - if (EXT4_MB_GRP_NEED_INIT(grp) && > > + if (grp && grp && EXT4_MB_GRP_NEED_INIT(grp) && > ^^^ one of these should be gdp. > > With this fixed feel free to add: > > Reviewed-by: Jan Kara Thanks for the review, fixed in my tree. - Ted