diff options
| author | Baolin Liu <liubaolin@kylinos.cn> | 2026-08-21 13:32:36 +0800 |
|---|---|---|
| committer | Namjae Jeon <linkinjeon@kernel.org> | 2026-08-26 20:15:51 +0900 |
| commit | cf06dcd572845723821b54a608fc2da995c3c8e2 (patch) | |
| tree | f19a47611535c4dd13df82f014fee5696068bb5c /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | ba1b61ddaa764f31b14abe1d547049682cc5824e (diff) | |
ntfs: fix kmap_local leak in write_mft_record_nolock() error paths
write_mft_record_nolock() maps the MFT record folio with
kmap_local_folio(), but the pre_write_mst_fixup() and
bio_add_folio() failure paths jump to the error label without
unmapping it. kmap_local mappings are stack-ordered per task, so
leaking one corrupts the nesting for any outer mapping.
Unmap the folio on those error paths too.
Fixes: 115380f9a2f9 ("ntfs: update mft 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/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
