diff options
| author | Zhan Xusheng <zhanxusheng@xiaomi.com> | 2026-10-12 14:20:40 +0800 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-10-12 20:57:39 +0900 |
| commit | 926f0dc5b79d2acb463bf1a3f46107c0b3372ecd (patch) | |
| tree | bf2ade06511d8dfceda1f91d69ba16f1f46e8271 /include/uapi/linux | |
| parent | 9a9353ae046789bc7d04beb31d1e68ea68f1640d (diff) | |
| download | linux-next-926f0dc5b79d2acb463bf1a3f46107c0b3372ecd.tar.gz linux-next-926f0dc5b79d2acb463bf1a3f46107c0b3372ecd.zip | |
ntfs: reject direct I/O reads of encrypted files
ntfs_file_read_iter() refuses direct I/O for compressed and WOF
compressed attributes but lets encrypted ones reach iomap_dio_rw().
ntfs_read_iomap_begin_non_resident() has no NInoEncrypted() test, so it
reports IOMAP_MAPPED for the attribute's real clusters and the raw
on-disk ciphertext is copied to the caller. Buffered reads are refused
by ntfs_read_folio(), but direct I/O never calls it.
Fixes: 9c87959601e8 ("ntfs: update file operations")
Signed-off-by: Zhan Xusheng <zhanxusheng@xiaomi.com>
Reviewed-by: Baolin Liu <liubaolin@kylinos.cn>
Reviewed-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions
