Skip to content

ext4: Fix overflows in ext4 code

Jan Kara linux-ext4 1 version Applied

Status from this message: I've applied these four patches to the ext4 tree, thanks!!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 9 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4ext4: Fix data offset overflow on 32-bit archs in ext4_inline_data_fiemap()fs/ext4/inline.c+1 -10 replies
2/4ext4: Fix overflows in SEEK_HOLE, SEEK_DATA implementationsfs/ext4/file.c+7 -71 reply
3/4ext4: Fix data offset overflow in ext4_xattr_fiemap() on 32-bit archsfs/ext4/extents.c+2 -20 replies
4/4ext4: Fix overflow when counting used blocks on 32-bit architecturesfs/ext4/inode.c+2 -21 reply

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchZheng Liu
SeriesR-b
1/4
2/4R-b
3/4
4/4

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/4] ext4: Fix overflows in ext4 code

Hello,

while working on my patchset, I stumbled over an overflow bug which
made me do a quick audit of shifts in ext4 code. I've found a couple of places which use << and which can overflow (usually on 32-bit architecture only but at least SEEK_HOLE / SEEK_DATA bugs are real even for 64-bit architectures). Patches in this series fix the issues I've found. Likely this is also stable material so Ted, you might want to add [email protected] to CC when merging the patches.

Honza