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/20220222033118.20540-1-hsiangkao@linux.alibaba.com Fixes: ab92184 ("erofs: add on-disk compressed tail-packing inline support") Reviewed-by: Yue Hu <huyue2@yulong.com> Reviewed-by: Chao Yu <chao@kernel.org> Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
1 parent cfb9244 commit 22ba5e9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)