Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4509583rwr; Sun, 30 Apr 2023 08:44:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7M4rrrtnvE0FO5KltEbyzt11sGc/z5pYXnj9r+KUZWpv7r+Eywx3igSqf8LlM4z3Hw9+Gj X-Received: by 2002:a05:6a20:7f90:b0:ee:786b:d6f8 with SMTP id d16-20020a056a207f9000b000ee786bd6f8mr14295185pzj.57.1682869479183; Sun, 30 Apr 2023 08:44:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682869479; cv=none; d=google.com; s=arc-20160816; b=maROE5kCbWicV6/mMsgE2olZ0ZZaR9WGYZDptMD0mJ1KlWw9raGtErWMMR3DRAMaKm +uqkb2EKBQeXRYZuCri63wlvL+RthpRJtgUsEaZUWPafXyVVP2bmmJP/sr0QVoE7MPYd uZj7nom+Wd7jucq0ISgktNL3QzuSHxm6fQh8GsqzQPpv9PxM7rXIu9WSat3g3vJrHe39 yMOWPSDcwVKQWvp6fsgrmcFz53H58BJ2WBuJvBQG+ea3gnh5SE4DMIH9zBwyvfjFFPIt 2WbFXBBaopuZ+i3u2mJetOY8/2L1HKM+K2/XERHUmj1M2dIz/yVoRnjGKqIf90MNRHuQ PE7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=YC9ba268K0vxehl5iucExDq+7LgLn+6XHes3k47ez5I=; b=qROYeMBIoshMup3JY5JdY94eYw6czSJq+bV84jnR3p/s3IDpfNPv3qsBeD0IjNKr7a 9m88UX4eS7bdizm6aoBgXzzkfuS44FsHV8gjyKlPnW1E3jptktTd92UZ/NHxcOhwZzVw ga7tdJN20Ss3ymvckxEn3A0iCsAZdUXppG9NQKt+V0hExtfKC6Gb3Xykrb+3IYFpA4cN dGH5bK4z7Na5+DxkAp5MuP67oHzptuuibxOtwk297FzKDVM3YYDb0XVJ9OjoUdKan+34 sk4Mkg4pfUU3vHtkD0SkwrbEhvGkwvrO7k1czhqHCU6nKj8+6niqjTe4rmodmksmRTkq OVPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mit.edu header.s=outgoing header.b=UFiaQquX; 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 y184-20020a638ac1000000b005139bc2e38dsi26910443pgd.507.2023.04.30.08.44.18; Sun, 30 Apr 2023 08:44:39 -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=UFiaQquX; 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 S229704AbjD3PnX (ORCPT + 99 others); Sun, 30 Apr 2023 11:43:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbjD3PnX (ORCPT ); Sun, 30 Apr 2023 11:43:23 -0400 Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD93019BF for ; Sun, 30 Apr 2023 08:43:21 -0700 (PDT) Received: from cwcc.thunk.org (pool-173-48-120-46.bstnma.fios.verizon.net [173.48.120.46]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 33UFhG9l021719 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sun, 30 Apr 2023 11:43:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mit.edu; s=outgoing; t=1682869397; bh=YC9ba268K0vxehl5iucExDq+7LgLn+6XHes3k47ez5I=; h=From:To:Cc:Subject:Date; b=UFiaQquXoUyXFpAj+qHc9RpNrxaxHv+Tj9R0h8NODDu/Wwv5PCRHAo4DVjYi7fkfx rPiZwdOgf1P4dfg4NFTjixj/cpuUQxb3tsI4QX66jBVYG7Umamu6II22Uhr/xgrT5v zzUqgwRzXXxAtW9IW9Oz6d6r1hygEns3C3lzLhBWb+0H+WkIMZ1+hc2yXWIXRh4VCB I4Lm5xndFiIijMnVIKE1CtRYmFBpRdLXOHhbeEU8i0cbUTWEwMIor9lBj3yD4z9Pbd 7RM0X5/qYAZdfU90uAFtQEPtMvxsnkbdb9FSQ7dXvwuDJ2GS4MrMZaLrjDSab/7SqK h01+8hqhgF1fA== Received: by cwcc.thunk.org (Postfix, from userid 15806) id 5F54C15C02E2; Sun, 30 Apr 2023 11:43:16 -0400 (EDT) From: "Theodore Ts'o" To: Ext4 Developers List Cc: syzbot+e2efa3efc15a1c9e95c3@syzkaller.appspotmail.com, "Theodore Ts'o" Subject: [PATCH 0/2] ext4: fix syzbot report: kernel BUG in ext4_get_group_info Date: Sun, 30 Apr 2023 11:43:09 -0400 Message-Id: <20230430154311.579720-1-tytso@mit.edu> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 These two patches address this syzbot report[1]. See also the discussion here[2]. [1] https://syzkaller.appspot.com/bug?id=69b28112e098b070f639efb356393af3ffec4220 [2] https://lore.kernel.org/r/ZE3YkAiGVLXMbHmb@mit.edu Theodore Ts'o (2): ext4: allow ext4_get_group_info() to fail ext4: remove a BUG_ON in ext4_mb_release_group_pa() fs/ext4/balloc.c | 19 +++++++++++- fs/ext4/ext4.h | 15 ++------- fs/ext4/ialloc.c | 12 +++++--- fs/ext4/mballoc.c | 78 +++++++++++++++++++++++++++++++++++++++-------- fs/ext4/super.c | 2 ++ 5 files changed, 96 insertions(+), 30 deletions(-) -- 2.31.0