]> 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)
commit837d771704977b4ea534c074525fd8ef87a82344
treefc718e68e8ffacb704a6b6c4636d18c9b8888e4c
parent6358759813eb1920a7e9bc57799a80a94f6c66b8
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: 01ece651ef0c ("erofs: add on-disk compressed tail-packing inline support")
Fixes: 04432b1548f1 ("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