[PATCH] ext4fs: Fix: Read outside partition error
Tom Rini
trini at konsulko.com
Fri May 23 21:08:10 CEST 2025
On Thu, 22 May 2025 22:02:01 -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/master, thanks!
[1/1] ext4fs: Fix: Read outside partition error
commit: df2ed552f0b05591090369a7fe7ddc92439dea5c
--
Tom
More information about the U-Boot
mailing list