]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fs/ntfs3: reject SEEK_DATA and SEEK_HOLE past EOF early
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Fri, 22 May 2026 13:14:39 +0000 (15:14 +0200)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Tue, 2 Jun 2026 15:02:36 +0000 (17:02 +0200)
commita82fbf481513a9546c06c4120571f75555c04581
treed4b53a076d19a4e4c85df63c56de349ca6fe7146
parentecbb433f9a8e3297f298226c15fada69b3748d3e
fs/ntfs3: reject SEEK_DATA and SEEK_HOLE past EOF early

Handle non-data/hole seeks through generic_file_llseek_size() and return
-ENXIO immediately when SEEK_DATA or SEEK_HOLE is requested at or past
EOF. Handle compressed files in such cases properly as well.

Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/file.c
fs/ntfs3/frecord.c