[GIT PULL] f2fs fix for 6.2-rc3

From: Jaegeuk Kim
Date: Wed Jan 04 2023 - 13:39:50 EST


Hi Linus,

Could you please consider this pull request?

Thanks,

The following changes since commit 69b41ac87e4a664de78a395ff97166f0b2943210:

Merge tag 'for-6.2-rc2-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux (2023-01-02 11:06:18 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git tags/f2fs-fix-6.2-rc3

for you to fetch changes up to df9d44b645b83fffccfb4e28c1f93376585fdec8:

f2fs: let's avoid panic if extent_tree is not created (2023-01-03 08:59:06 -0800)

----------------------------------------------------------------
f2fs-fix-6.2-rc3

This series fixes the below three bugs introduced in 6.2-rc1.

- fix a null pointer dereference in f2fs_issue_flush, which occurs by the
combination of mount/remount options.

- fix a bug in per-block age-based extent_cache newly introduced in 6.2-rc1,
which reported a wrong age information in extent_cache.

- fix a kernel panic if extent_tree was not created, which was caught by a
wrong BUG_ON.

----------------------------------------------------------------
Chao Yu (1):
f2fs: fix to avoid NULL pointer dereference in f2fs_issue_flush()

Jaegeuk Kim (4):
f2fs: initialize extent_cache parameter
f2fs: don't mix to use union values in extent_info
f2fs: should use a temp extent_info for lookup
f2fs: let's avoid panic if extent_tree is not created

fs/f2fs/data.c | 2 +-
fs/f2fs/extent_cache.c | 34 ++++++++++++++++++----------------
fs/f2fs/file.c | 2 +-
fs/f2fs/segment.c | 13 +++++--------
4 files changed, 25 insertions(+), 26 deletions(-)