erofs: fix illegal unmapped accesses in z_erofs_fill_inode_lazy()
authorYue Hu <huyue2@coolpad.com>
Wed, 5 Oct 2022 01:35:28 +0000 (09:35 +0800)
committerGao Xiang <hsiangkao@linux.alibaba.com>
Sun, 16 Oct 2022 22:55:48 +0000 (06:55 +0800)
commit664609e49f1c84fc97987b2bf64544e586b8849c
treefc718e68e8ffacb704a6b6c4636d18c9b8888e4c
parent9abf2313adc1ca1b6180c508c25f22f9395cc780
erofs: fix illegal unmapped accesses in z_erofs_fill_inode_lazy()

Note that we are still accessing 'h_idata_size' and 'h_fragmentoff'
after calling erofs_put_metabuf(), that is not correct. Fix it.

Fixes: ab92184ff8f1 ("erofs: add on-disk compressed tail-packing inline support")
Fixes: b15b2e307c3a ("erofs: support on-disk compressed fragments data")
Signed-off-by: Yue Hu <huyue2@coolpad.com>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Link: https://lore.kernel.org/r/20221005013528.62977-1-zbestahu@163.com
Signed-off-by: Gao Xiang <hsiangkao@linux.alibaba.com>
fs/erofs/zmap.c