Skip to content

ext4 fast-commit fixes for 5.15-stable

Eric Biggers linux-ext4 stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10ext4: remove unused enum EXT4_FC_COMMIT_FAILEDfs/ext4/fast_commit.h+0 -10 replies
2/10ext4: use ext4_debug() instead of jbd_debug()fs/ext4/balloc.c fs/ext4/ext4_jbd2.c fs/ext4/fast_commit.c +4 more+40 -410 replies
3/10ext4: introduce EXT4_FC_TAG_BASE_LEN helperfs/ext4/fast_commit.c fs/ext4/fast_commit.h+31 -260 replies
4/10ext4: factor out ext4_fc_get_tl()fs/ext4/fast_commit.c+25 -210 replies
5/10ext4: fix potential out of bound read in ext4_fc_replay_scan()fs/ext4/fast_commit.c+36 -20 replies
6/10ext4: disable fast-commit of encrypted dir operationsfs/ext4/fast_commit.c fs/ext4/fast_commit.h include/trace/events/ext4.h+31 -180 replies
7/10ext4: don't set up encryption key during jbd2 transactionfs/ext4/ext4.h fs/ext4/fast_commit.c fs/ext4/namei.c+27 -230 replies
8/10ext4: add missing validation of fast-commit record lengthsfs/ext4/fast_commit.c fs/ext4/fast_commit.h+20 -200 replies
9/10ext4: fix unaligned memory access in ext4_fc_reserve_space()fs/ext4/fast_commit.c+21 -180 replies
10/10ext4: fix off-by-one errors in fast-commit block fillingfs/ext4/fast_commit.c+33 -330 replies

Reviews trailers per patch

2 of 10 patches have a Reviewed-by or Acked-by.

PatchJan KaraHarshad ShirwadkarLukas Czerner
1/10R-b R-b
2/10R-b
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 5.15 00/10] ext4 fast-commit fixes for 5.15-stable

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(-)
Signature · 1 line
2.39.0