Skip to content

Commit 22ba5e9

Browse files
committed
erofs: fix ztailpacking on > 4GiB filesystems
z_idataoff here is an absolute physical offset, so it should use erofs_off_t (64 bits at least). Otherwise, it'll get trimmed and cause the decompresion failure. Link: https://lore.kernel.org/r/[email protected] Fixes: ab92184 ("erofs: add on-disk compressed tail-packing inline support") Reviewed-by: Yue Hu <[email protected]> Reviewed-by: Chao Yu <[email protected]> Signed-off-by: Gao Xiang <[email protected]>
1 parent cfb9244 commit 22ba5e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/erofs/internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ struct erofs_inode {
325325
unsigned char z_algorithmtype[2];
326326
unsigned char z_logical_clusterbits;
327327
unsigned long z_tailextent_headlcn;
328-
unsigned int z_idataoff;
328+
erofs_off_t z_idataoff;
329329
unsigned short z_idata_size;
330330
};
331331
#endif /* CONFIG_EROFS_FS_ZIP */

0 commit comments

Comments
 (0)