]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite573eef712af104c8e3a73c4ac344075d01c443d
treefc718e68e8ffacb704a6b6c4636d18c9b8888e4c
parentf9cd8e124bf669aeea2383cd3379e3e16e75ceea
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: 37a300fae7b6 ("erofs: add on-disk compressed tail-packing inline support")
Fixes: 473c62a4c28c ("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