[GIT PULL] erofs fixes for 6.0-rc5

Gao Xiang
2022-09-06T16:39:36Z

Hi Linus,

Could you consider these three fixes for 6.0-rc5?

One patch fixes error paths in fscache backend. Another fixes a
use-after-free on UP platforms whose path is now dropped directly.
The rest addresses potential wrong pcluster sizes for later non-4K
lclusters. It should have no effect on the existing fs images but
the fix is small and straight-forward so that it'd be better to be
fixed from now on.

All commits have been in linux-next and no merge conflicts.

Thanks,
Gao Xiang

The following changes since commit 568035b01cfb107af8d2e4bd2fb9aea22cf5b868:

Linux 6.0-rc1 (2022-08-14 15:50:18 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git tags/erofs-for-6.0-rc5-fixes

for you to fetch changes up to 2f44013e39984c127c6efedf70e6b5f4e9dcf315:

erofs: fix pcluster use-after-free on UP platforms (2022-09-05 23:23:30 +0800)

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

- Fix return codes in erofs_fscache_{meta_,}read_folio error paths;

- Fix potential wrong pcluster sizes for later non-4K lclusters;

- Fix in-memory pcluster use-after-free on UP platforms.

----------------------------------------------------------------
Gao Xiang (1):
erofs: fix pcluster use-after-free on UP platforms

Sun Ke (1):
erofs: fix error return code in erofs_fscache_{meta_,}read_folio

Yue Hu (1):
erofs: avoid the potentially wrong m_plen for big pcluster

fs/erofs/fscache.c | 8 ++++++--
fs/erofs/internal.h | 29 -----------------------------
fs/erofs/zmap.c | 16 ++++++++--------
3 files changed, 14 insertions(+), 39 deletions(-)