+9
−3
+1
−1
+13
−2
Loading
mainline inclusion from mainline-v5.15-rc1 commit 91803392 category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/I9L9NO CVE: CVE-2024-27034 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=91803392c732c43b5cf440e885ea89be7f5fecef -------------------------------- During f2fs_write_checkpoint(), once we failed in f2fs_flush_nat_entries() or do_checkpoint(), metadata of filesystem such as prefree bitmap, nat/sit version bitmap won't be recovered, it may cause f2fs image to be inconsistent, let's just set CP error flag to avoid further updates until we figure out a scheme to rollback all metadatas in such condition. Reported-by:Yangtao Li <frank.li@vivo.com> Signed-off-by:
Yangtao Li <frank.li@vivo.com> Signed-off-by:
Chao Yu <chao@kernel.org> Signed-off-by:
Jaegeuk Kim <jaegeuk@kernel.org> Signed-off-by:
Yifan Qiao <qiaoyifan4@huawei.com>