diff options
| author | Namjae Jeon <linkinjeon@kernel.org> | 2026-06-15 21:07:19 +0900 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-08-19 18:16:36 +0900 |
| commit | 6e03fbd5f772ad24ea64f7632e4d0d73184787ca (patch) | |
| tree | 18857c6f4a85889c738a00a54fa687c36020abcb /tools/perf/scripts/python/stackcollapse.py | |
| parent | f6ce4cbcc53cf258ae0c8f77106f2eab40a1e412 (diff) | |
ntfs: fix kmap_local_page() usage in compress
Several compressed I/O paths discard the address returned by
kmap_local_page() and later access or unmap the page using page_address().
This is invalid for highmem pages, and local mappings must also be unmapped
using the address returned by kmap_local_page().
Map each destination page in ntfs_decompress() only while producing the
current sub-block. Use memcpy_from_page(), memcpy_to_page(), and
memzero_page() for the other page accesses. Remove unnecessary local
mappings from ntfs_write_cb(), where pages are accessed through the vmap()
mapping.
Fixes: 495e90fa3348 ("ntfs: update attrib operations")
Reported-by: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
