Re: [PATCH v3] erofs-utils: fix battach on full buffer blocks

2021-02-22 Thread Li GuiFu via Linux-erofs
On 2021/2/15 0:00, Gao Xiang via Linux-erofs wrote: > From: Hu Weiwen > > When the subsequent erofs_battach() is called on an buffer block of > which (bb->buffers.off % EROFS_BLKSIZ == 0), `tail_blkaddr' won't be > updated correctly. This bug can be reproduced by: > > mkdir bug-repo > head -c

[PATCH v3] erofs-utils: fix battach on full buffer blocks

2021-02-14 Thread Gao Xiang via Linux-erofs
From: Hu Weiwen When the subsequent erofs_battach() is called on an buffer block of which (bb->buffers.off % EROFS_BLKSIZ == 0), `tail_blkaddr' won't be updated correctly. This bug can be reproduced by: mkdir bug-repo head -c 4032 /dev/urandom > bug-repo/1 head -c 4095 /dev/urandom > bug-repo/2