[PATCH] erofs-utils: lib: fix truncated uncompressed files

2024-08-08 Thread Gao Xiang
Some uncompressed files which are more than 4GiB can be truncated incorrectly. Fixes: 358177730598 ("erofs-utils: optimize write_uncompressed_file_from_fd()") Signed-off-by: Gao Xiang --- (sigh, I need to fix this issue right now as erofs-utils 1.8.1. and I will add a large file test for this al

[ANNOUNCE] erofs-utils: release 1.8

2024-08-08 Thread Gao Xiang
Hi folks, A new version erofs-utils 1.8 is available at: git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git tags/v1.8 It mainly includes the following changes: - (mkfs.erofs) support multi-threaded compression (Yifan Zhao); - support Intel IAA hardware accelerator with Int

Re: [PATCH] erofs-utils: lib: fix global-buffer-overflow due to invalid device

2024-08-08 Thread Sandeep Dhavale via Linux-erofs
On Thu, Aug 8, 2024 at 10:45 AM Gao Xiang wrote: > > Hi Sandeep, > > On Thu, Aug 08, 2024 at 10:15:31AM -0700, Sandeep Dhavale via Linux-erofs > wrote: > > On Thu, Aug 8, 2024 at 9:04 AM Gao Xiang > > wrote: > > > > > > Fuzzer generates an image with crafted chunks of some invalid device. > > >

Re: [PATCH] erofs-utils: lib: fix global-buffer-overflow due to invalid device

2024-08-08 Thread Gao Xiang
Hi Sandeep, On Thu, Aug 08, 2024 at 10:15:31AM -0700, Sandeep Dhavale via Linux-erofs wrote: > On Thu, Aug 8, 2024 at 9:04 AM Gao Xiang wrote: > > > > Fuzzer generates an image with crafted chunks of some invalid device. > > Also refine the printed message of EOD. > > > > Closes: > > https://git

Re: [PATCH] erofs-utils: lib: fix global-buffer-overflow due to invalid device

2024-08-08 Thread Sandeep Dhavale via Linux-erofs
On Thu, Aug 8, 2024 at 9:04 AM Gao Xiang wrote: > > Fuzzer generates an image with crafted chunks of some invalid device. > Also refine the printed message of EOD. > > Closes: > https://github.com/erofs/erofsnightly/actions/runs/10172576269/job/28135408276 > Closes: https://github.com/erofs/erofs

[PATCH] erofs-utils: lib: fix global-buffer-overflow due to invalid device

2024-08-08 Thread Gao Xiang
Fuzzer generates an image with crafted chunks of some invalid device. Also refine the printed message of EOD. Closes: https://github.com/erofs/erofsnightly/actions/runs/10172576269/job/28135408276 Closes: https://github.com/erofs/erofs-utils/issues/11 Signed-off-by: Gao Xiang --- lib/io.c | 7 +

[PATCH] erofs-utils: mkfs: add `--mkfs-time` option

2024-08-08 Thread Gao Xiang
Some users need a fixed build time in the superblock for reproducible builds rather than a fixed timestamp everywhere. Signed-off-by: Gao Xiang --- include/erofs/config.h | 1 + man/mkfs.erofs.1 | 14 -- mkfs/main.c| 18 -- 3 files changed, 29 inser