Re: [f2fs-dev] [PATCH] f2fs: fix to avoid folio->mapping dereference in is_{meta, node}_folio()

From: patchwork-bot+f2fs

Date: Mon Sep 14 2026 - 12:56:53 EST


Hello:

This patch was applied to jaegeuk/f2fs.git (dev)
by Jaegeuk Kim <jaegeuk@xxxxxxxxxx>:

On Thu, 10 Sep 2026 02:20:26 +0000 you wrote:
> From: Chao Yu <chao@xxxxxxxxxx>
>
> Otherwise, it may cause NULL pointer dereference in race condition:
>
> Thread A Thread B
> - f2fs_setattr
> - f2fs_truncate
> - f2fs_truncate_blocks
> - f2fs_do_truncate_blocks
> - f2fs_truncate_inode_blocks
> - truncate_dnode
> - truncate_node
> - invalidate_mapping_pages
> - folio->mapping = NULL
> - folio_lock
> - is_node_folio
> - F2FS_F_SB(folio): dereference on folio->mapping
>
> [...]

Here is the summary with links:
- [f2fs-dev] f2fs: fix to avoid folio->mapping dereference in is_{meta, node}_folio()
https://git.kernel.org/jaegeuk/f2fs/c/b5a71253c5c7

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html