Skip to content

fs: fs_devread should log error when read outside partition

Tony Dinh u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1fs: fs_devread should log error when read outside partitionfs/fs_internal.c+1 -11 reply

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/1] fs: fs_devread should log error when read outside partition

Currently there is a bug in u-boot Ext4 filesystem driver that causes a "read outside partition" error. This bug only shows when the HDD is greater than 2TB in capacity (i.e. driver using uint64 lbaint_t). But all users will see is u-boot silently failed to read the HDD file system directory.

For example, ext4ls command will return with an empty directory list, and without any indication that the command has failed.

This was tested with the Synology DS116 (Armada 385) board, and a 4TB Seagate HDD. Linux kernel 6.14.6 Ext4 driver handles the same 4TB HDD correctly.

Tony Dinh (1):
fs: fs_devread should log error when read outside partition

 fs/fs_internal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 4 lines
2.39.5

base-commit: 126a88d49bcae04bbfc0d6723097cd6341355ade
branch: master