summaryrefslogtreecommitdiff
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorChao Yu <chao@kernel.org>2026-08-24 21:17:29 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2026-08-25 02:04:36 +0000
commitce366bfa821ec81dd45bde547ee31e659306cc61 (patch)
tree30b3e1f096c421acccb9de7c4793702c6b5991fc /scripts/const_structs.checkpatch
parent3b2c5d35cf4398edf47c4a3ad076838654a30015 (diff)
downloadlinux-ce366bfa821ec81dd45bde547ee31e659306cc61.tar.gz
linux-ce366bfa821ec81dd45bde547ee31e659306cc61.zip
f2fs: fix to avoid potential deadloop in f2fs_fsync_node_pages()
There is potential deadloop in race condition: Thread A Thread B - fsync - f2fs_do_sync_file - f2fs_fsync_node_pages - last_fsync_dnode - folio_get(last_folio) - 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 - is_node_folio alwasy return false - atomic && !marked is always true, then goto retry Cc: stable@kernel.org Fixes: 608514deba38 ("f2fs: set fsync mark only for the last dnode") Signed-off-by: Chao Yu <chao@kernel.org> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions