Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp472644rwl; Wed, 4 Jan 2023 23:19:48 -0800 (PST) X-Google-Smtp-Source: AMrXdXtughobJd7U45asCh7ADOt0yeLXZ/v0IwsF2NWgDF7Unr3E3Ku443LQUtktsByBzMJlUTP3 X-Received: by 2002:a17:906:b150:b0:7c1:9b07:32cd with SMTP id bt16-20020a170906b15000b007c19b0732cdmr39123890ejb.39.1672903188245; Wed, 04 Jan 2023 23:19:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672903188; cv=none; d=google.com; s=arc-20160816; b=ki7TFniFkQBZ6hyj05R2+tyMUnDBWiLQoV/9uvF5bE43WaqpaI/WYMw8yd8b80tyma A1eMSMqa6PX4aq7MsPITgURTf6KigkWbnG01uhaoegtzcZu+5wAgWRikldlEIhXK6dsl eidzGh6KwFwlfLaxFiEM5nrV3/68f9njmsmx51f63IimVPqRDKXyKjPqB6F03hJIAZiz QmzDflK1L0iB/+gS8BiUqWS4DCjTQT0/gNBjJvsm2Gl0On2bVd1HkvfYQQpChDkeNqMx 5QIT0uu/07B681gjKbB5hgU2unfXUhuSP1WmHHlYfuYeDSZZAvlPndmeDWQFvE16IBET 5f9Q== 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=uC4czAvX/s7HrT2OmrPS/q9iIm+HYQKqy3RqTSBQTbw=; b=lCXEaIHxJG41Tg4sCpajDGwciQXcsimPSQHsQrBpRz7i77BpZix3QOkYNaeX1mT5ix sjDNhUuMaUSZQ6M5CBo/19GmUqWAcv3xGNdfJIy101O1iDeSUzD8Mu+Fdf3ASLl3ffnv 3oU9yYaDXZ56Nc6gNbxDam9ZNfGtmcbi4XqzFjDF5Eut9r9D46YSn29dOoGs8v18y28x nqV6QTQBwnxlLGr0SH6R0+xZUBJGIEZeNapDLqUT2HFBVX0MmQwuYRmT/9NVx4eV1Q5O m/2agdeyDdMwBk+eLHpNmykitolvd/nfr3uCjfrO80iwaReEXatr2FtI2LRohcgI6Z9B 6F1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ssUm73cg; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dt6-20020a170907728600b007b790c183e0si31201766ejc.290.2023.01.04.23.19.24; Wed, 04 Jan 2023 23:19:48 -0800 (PST) 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=pass header.i=@kernel.org header.s=k20201202 header.b=ssUm73cg; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229519AbjAEHRL (ORCPT + 99 others); Thu, 5 Jan 2023 02:17:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229530AbjAEHRJ (ORCPT ); Thu, 5 Jan 2023 02:17:09 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C19842003; Wed, 4 Jan 2023 23:17:08 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 211D86187F; Thu, 5 Jan 2023 07:17:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D9FDC433EF; Thu, 5 Jan 2023 07:17:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672903027; bh=uqC5T7gHkPgSmHQyWRnqVzA6IK7878G62q9D9DJhf3w=; h=From:To:Cc:Subject:Date:From; b=ssUm73cgM5aNNNtvl8PRoWpnw0yHHMTSNNNES+iSR9MwWXCwfaVL/GywPtvPV51Fh F7gCjBSV7Q3qCDXJu9wFSZdKdecGTf4iJHRfd/13RcIsIg40h+PiVsWA/EuxUdMtZW 7/wwQR4CwFOg1k9AeFeGo29MwOuVq+RBsUawIDNEnuRQkK8OfUDznbuR51Kf7xfliq DNE3/c019FOGC85HSFUEAdnWOCiMRUMvbDtTpWBhdlVEuwMXL1GY/85rj12fh5Ojrz W4+Nrsx/aEqM0CvAE8KfGnR9iT8BOTh1/S0rNf6yF91fimCeMXHn9Pa82//RBfWbb9 Q2bdqDfVYq7Rw== From: Eric Biggers To: stable@vger.kernel.org Cc: linux-ext4@vger.kernel.org Subject: [PATCH 5.15 00/10] ext4 fast-commit fixes for 5.15-stable Date: Wed, 4 Jan 2023 23:13:49 -0800 Message-Id: <20230105071359.257952-1-ebiggers@kernel.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 This series backports 6 commits with 'Cc stable' that had failed to be applied, and 4 related commits that made the backports much easier. Please apply this series to 5.15-stable. I verified that this series does not cause any regressions with 'gce-xfstests -c ext4/fast_commit -g auto'. There is one test failure both before and after (ext4/050). Eric Biggers (5): ext4: disable fast-commit of encrypted dir operations ext4: don't set up encryption key during jbd2 transaction ext4: add missing validation of fast-commit record lengths ext4: fix unaligned memory access in ext4_fc_reserve_space() ext4: fix off-by-one errors in fast-commit block filling Jan Kara (1): ext4: use ext4_debug() instead of jbd_debug() Ritesh Harjani (1): ext4: remove unused enum EXT4_FC_COMMIT_FAILED Ye Bin (3): ext4: introduce EXT4_FC_TAG_BASE_LEN helper ext4: factor out ext4_fc_get_tl() ext4: fix potential out of bound read in ext4_fc_replay_scan() fs/ext4/balloc.c | 2 +- fs/ext4/ext4.h | 4 +- fs/ext4/ext4_jbd2.c | 3 +- fs/ext4/fast_commit.c | 284 +++++++++++++++++++++--------------- fs/ext4/fast_commit.h | 7 +- fs/ext4/indirect.c | 4 +- fs/ext4/inode.c | 2 +- fs/ext4/namei.c | 44 +++--- fs/ext4/orphan.c | 24 +-- fs/ext4/super.c | 2 +- include/trace/events/ext4.h | 7 +- 11 files changed, 222 insertions(+), 161 deletions(-) -- 2.39.0