diff options
| author | Wenjie Qi <qwjhust@gmail.com> | 2026-06-10 17:37:35 +0300 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2026-06-22 22:52:37 +0300 |
| commit | 242d30bfc0a84b8b5de0a88821b53c9ad7fd31c4 (patch) | |
| tree | babf1718964e4d15cd04272d2342125d70acd536 /scripts/Makefile.thinlto | |
| parent | 90e02a8e1b6863c41876473f844c8e24b06d55f7 (diff) | |
| download | linux-242d30bfc0a84b8b5de0a88821b53c9ad7fd31c4.tar.xz | |
f2fs: reject setattr size changes on large folio files
F2FS large folios are only enabled for immutable non-compressed files.
Writable open and writable mmap reject such mappings, but truncate(2)
through f2fs_setattr() misses the same guard.
If FS_IMMUTABLE_FL is cleared while the inode is still cached, the mapping
can keep large-folio support and ATTR_SIZE can change i_size. Reject size
changes in that state.
Cc: stable@kernel.org
Fixes: 05e65c14ea59 ("f2fs: support large folio for immutable non-compressed case")
Signed-off-by: Wenjie Qi <qiwenjie@xiaomi.com>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
