summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorChi Zhiling <chizhiling@kylinos.cn>2026-10-04 18:19:30 +0800
committerNamjae Jeon <linkinjeon@kernel.org>2026-10-21 08:28:30 +0900
commitb70ab407503706289163dd59f1ac3e942bacc37d (patch)
tree64d569af658a4b3a21cd679aad10f65e3e6cf5f8 /scripts/Makefile.thinlto
parent1306c1e6b0fe0a2b82eefda90987284854622c82 (diff)
downloadlinux-b70ab407503706289163dd59f1ac3e942bacc37d.tar.gz
linux-b70ab407503706289163dd59f1ac3e942bacc37d.zip
exfat: advance valid_size to EOF for append writes
For an append write, the write position is recalculated by generic_write_checks(). Therefore, the write position must be obtained after generic_write_checks() returns. Using the original write position to advance valid_size may cause the valid_size update to be skipped, potentially exposing stale data. Also move the truncate_pagecache() check below the recalculated position, so that pos is never read before it is assigned. Fixes: 11a347fb6cef ("exfat: change to get file size from DataLength") Cc: stable@vger.kernel.org Signed-off-by: Chi Zhiling <chizhiling@kylinos.cn> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions