[GIT PULL] erofs fixes for 7.1-rc1

From: Gao Xiang

Date: Tue Apr 21 2026 - 14:13:06 EST


Hi Linus,

Could you consider these three fixes as the following
updates for 7.1-rc1?

They are all small random fixes, but we tend to address them
right now given our priority on crafted images, for example.

Thanks,
Gao Xiang

The following changes since commit a5242d37c83abe86df95c6941e2ace9f9055ffcb:

erofs: error out obviously illegal extents in advance (2026-04-10 16:53:39 +0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git tags/erofs-for-7.1-rc1-fixes

for you to fetch changes up to 2d8c7edcb661812249469f4a5b62e9339118846f:

erofs: unify lcn as u64 for 32-bit platforms (2026-04-21 16:56:08 +0800)

----------------------------------------------------------------
Changes since the last update:

- Fix dirent nameoff handling to avoid out-of-bound reads
out of crafted images

- Fix two type truncation issues on 32-bit platforms

----------------------------------------------------------------
Gao Xiang (3):
erofs: fix the out-of-bounds nameoff handling for trailing dirents
erofs: fix offset truncation when shifting pgoff on 32-bit platforms
erofs: unify lcn as u64 for 32-bit platforms

fs/erofs/data.c | 2 +-
fs/erofs/dir.c | 28 +++++++++++++++-------------
fs/erofs/zdata.c | 2 +-
fs/erofs/zmap.c | 19 +++++++++----------
4 files changed, 26 insertions(+), 25 deletions(-)