diff options
| author | Chi Zhiling <chizhiling@kylinos.cn> | 2026-10-04 18:19:30 +0800 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-10-21 08:28:30 +0900 |
| commit | b70ab407503706289163dd59f1ac3e942bacc37d (patch) | |
| tree | 64d569af658a4b3a21cd679aad10f65e3e6cf5f8 /scripts/Makefile.thinlto | |
| parent | 1306c1e6b0fe0a2b82eefda90987284854622c82 (diff) | |
| download | linux-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
