[PATCH] ext4fs: Fix: Read outside partition error (take 2)

Tom Rini trini at konsulko.com
Fri Jun 13 00:15:24 CEST 2025


On Wed, 28 May 2025 12:48:39 -0700, Tony Dinh wrote:

> Use lbaint_t for blknr to avoid overflow in ext4fs_read_file().
> 
> Background:
> 
> blknr (block number) used in ext4fs_read_file() could be increased to a
> very large value and causes a wrap around at 32 bit signed integer max,
> thus becomes negative. This results in an out-of-normal range for sector
> number (during the assignment delayed_start = blknr) where delayed_start
> sector is typed uint64 lbaint_t. This causes the "Read outside partition"
> error.
> 
> [...]

Applied to u-boot/next, thanks!

[1/1] ext4fs: Fix: Read outside partition error (take 2)
      commit: 53cc4332b3b37218a7cdab8bdb953da57eec2668
-- 
Tom




More information about the U-Boot mailing list