diff options
| author | Baolin Liu <liubaolin@kylinos.cn> | 2026-08-21 13:32:30 +0800 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-08-26 19:56:33 +0900 |
| commit | 3d3de2aee17d1431694aa085039479b5679e5ad4 (patch) | |
| tree | b30bc1039d1a5f582e7b3135215a046f30996557 /tools/perf/scripts/python | |
| parent | 45c13f3f9e3bb15fd89ff2864c6f627a3b4b4229 (diff) | |
ntfs: return DT_UNKNOWN on inode lookup failure in readdir
ntfs_reparse_tag_dt_types() returns PTR_ERR(vi) when ntfs_iget()
fails, but its return type is unsigned int and the caller passes
the value straight to dir_emit() as d_type. A stale or corrupt MFT
reference in a directory index thus makes readdir report a garbage
d_type value to userspace.
Return DT_UNKNOWN on lookup failure instead.
Fixes: fc053f05ca28 ("ntfs: add reparse and ea operations")
Signed-off-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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
