Skip to content

Fix various bugs found via a fuzzing campaign

Theodore Ts'o linux-ext4 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7e2fsck: sanity check the journal inode numbere2fsck/journal.c+8 -11 reply
2/7e2fsck: fix potential out-of-bounds read in inc_ea_inode_refs()e2fsck/pass1.c+8 -51 reply
3/7libext2fs: add check for too-short directory blockslib/ext2fs/dir_iterate.c+4 -01 reply
4/7e2fsck: check for xattr value size integer wraparounde2fsck/pass1.c lib/ext2fs/ext2_ext_attr.h+14 -21 reply
5/7e2fsck: avoid out-of-bounds write for very deep extent treese2fsck/extents.c e2fsck/pass1.c+11 -21 reply
6/7libext2fs: check for cyclic loops in the extent treelib/ext2fs/ext2_err.et.in lib/ext2fs/extent.c+12 -21 reply
7/7libext2fs: check for invalid blocks in ext2fs_punch_blocks()lib/ext2fs/alloc_stats.c lib/ext2fs/punch.c+6 -11 reply

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchLukas Czerner
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] Fix various bugs found via a fuzzing campaign

Theodore Ts'o (7):
e2fsck: sanity check the journal inode number
e2fsck: fix potential out-of-bounds read in inc_ea_inode_refs()
libext2fs: add check for too-short directory blocks
e2fsck: check for xattr value size integer wraparound
e2fsck: avoid out-of-bounds write for very deep extent trees
libext2fs: check for cyclic loops in the extent tree
libext2fs: check for invalid blocks in ext2fs_punch_blocks()

 e2fsck/extents.c           | 10 +++++++++-
 e2fsck/journal.c           |  9 ++++++++-
 e2fsck/pass1.c             | 21 +++++++++++++--------
 lib/ext2fs/alloc_stats.c   |  3 ++-
 lib/ext2fs/dir_iterate.c   |  4 ++++
 lib/ext2fs/ext2_err.et.in  |  3 +++
 lib/ext2fs/ext2_ext_attr.h | 11 +++++++++++
 lib/ext2fs/extent.c        | 11 +++++++++--
 lib/ext2fs/punch.c         |  4 ++++
 9 files changed, 63 insertions(+), 13 deletions(-)
Signature · 1 line
2.31.0