[GIT PULL] erofs fixes for 6.1-rc6

Gao Xiang
2022-11-15T14:26:04Z

Hi Linus,

Could you consider these three fixes for 6.1-rc6?

Most patches randomly fix error paths or corner cases in fscache mode
reported recently. And the rest one fixes an invalid access relating
to fragments on crafted images. Details are shown as below.

I should submit earlier for -rc5 but actually delay a bit since one
commit message got minor updated. All commits have been in linux-next
and no merge conflicts.

Thanks,
Gao Xiang

The following changes since commit f0c4d9fc9cc9462659728d168387191387e903cc:

Linux 6.1-rc4 (2022-11-06 15:07:11 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git tags/erofs-for-6.1-rc6-fixes

for you to fetch changes up to 37020bbb71d911431e16c2c940b97cf86ae4f2f6:

erofs: fix missing xas_retry() in fscache mode (2022-11-14 23:48:38 +0800)

----------------------------------------------------------------
Changes since last update:

- Fix packed_inode invalid access when reading fragments on crafted
images;

- Add a missing erofs_put_metabuf() in an error path in fscache mode;

- Fix incorrect `count' for unmapped extents in fscache mode;

- Fix use-after-free of fsid and domain_id string when remounting;

- Fix missing xas_retry() in fscache mode.

----------------------------------------------------------------
Jingbo Xu (4):
erofs: put metabuf in error path in fscache mode
erofs: get correct count for unmapped range in fscache mode
erofs: fix use-after-free of fsid and domain_id string
erofs: fix missing xas_retry() in fscache mode

Yue Hu (1):
erofs: fix general protection fault when reading fragment

fs/erofs/fscache.c | 35 +++++++++++++++++++++--------------
fs/erofs/internal.h | 6 ++++--
fs/erofs/super.c | 39 ++++++++++++++++++++++-----------------
fs/erofs/sysfs.c | 8 ++++----
fs/erofs/zdata.c | 3 +++
5 files changed, 54 insertions(+), 37 deletions(-)