Skip to content

e2fsprogs: Fix various cases of undefined behavior

Sami Liedes linux-ext4 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 8 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 8 patches the cover letter announces are in this archive.

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/8] e2fsprogs: Fix various cases of undefined behavior

This set of patches fixes a number of issues causing undefined behavior. These were caught by running the test suite after compiling e2fsprogs with the Clang compiler and -fsanitize=undefined.

Sami Liedes (8):
lib/blkid/list.h: Fix undefined behavior in list_entry() macro lib/ext2fs/rbtree.h: Fix container_of() undefined behavior e2fsck/pass1.c: Fix undefined behavior in check_blocks() lib/ext2fs/block.c: Fix undefined behavior in block_iterate_tind() e2fsck/revoke.c: Fix undefined behavior in hash() lib/ext2fs/kernel-list.h: Fix undefined behavior in list_entry()
macro
lib/ext2fs/qcow2.h: Fix #defined 1<<63 values to be unsigned. e2fsck/jfs_user.h: Fix b_data alignment in struct buffer_head

 e2fsck/jfs_user.h        |    2 +-
 e2fsck/pass1.c           |    2 +-
 e2fsck/revoke.c          |    2 +-
 lib/blkid/list.h         |    5 +++--
 lib/ext2fs/block.c       |    2 +-
 lib/ext2fs/kernel-list.h |    6 ++++--
 lib/ext2fs/qcow2.h       |    4 ++--
 lib/ext2fs/rbtree.h      |    2 ++
 misc/e2image.c           |    2 +-
 9 files changed, 16 insertions(+), 11 deletions(-)
Signature · 1 line
1.7.10.4