Skip to content

ext4 fast-commit fixes

Eric Biggers linux-ext4 linux-fscrypt stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7ext4: disable fast-commit of encrypted dir operationsfs/ext4/fast_commit.c fs/ext4/fast_commit.h include/trace/events/ext4.h+31 -180 replies
2/7ext4: don't set up encryption key during jbd2 transactionfs/ext4/ext4.h fs/ext4/fast_commit.c fs/ext4/namei.c+27 -230 replies
3/7ext4: fix leaking uninitialized memory in fast-commit journalfs/ext4/fast_commit.c+5 -00 replies
4/7ext4: add missing validation of fast-commit record lengthsfs/ext4/fast_commit.c fs/ext4/fast_commit.h+20 -200 replies
5/7ext4: fix unaligned memory access in ext4_fc_reserve_space()fs/ext4/fast_commit.c+21 -180 replies
6/7ext4: fix off-by-one errors in fast-commit block fillingfs/ext4/fast_commit.c+33 -330 replies
7/7ext4: simplify fast-commit CRC calculationfs/ext4/fast_commit.c+16 -380 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] ext4 fast-commit fixes

From: Eric Biggers <[email protected]

This series fixes several bugs in the fast-commit feature.

Patch 6 may be the most controversial patch of this series, since it would make old kernels unable to replay fast-commit journals created by new kernels. I'd appreciate any thoughts on whether that's okay. I can drop that patch if needed.

I've tested that this series doesn't introduce any regressions with 'gce-xfstests -c ext4/fast_commit -g auto'. Note that ext4/039, ext4/053, and generic/475 fail both before and after.

Eric Biggers (7):
ext4: disable fast-commit of encrypted dir operations
ext4: don't set up encryption key during jbd2 transaction
ext4: fix leaking uninitialized memory in fast-commit journal
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
ext4: simplify fast-commit CRC calculation

 fs/ext4/ext4.h              |   4 +-
 fs/ext4/fast_commit.c       | 203 ++++++++++++++++++------------------
 fs/ext4/fast_commit.h       |   3 +-
 fs/ext4/namei.c             |  44 ++++----
 include/trace/events/ext4.h |   7 +-
 5 files changed, 132 insertions(+), 129 deletions(-)

base-commit: 089d1c31224e6b266ece3ee555a3ea2c9acbe5c2

Signature · 1 line
2.38.1