summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorHongling Zeng <zenghongling@kylinos.cn>2026-08-20 16:14:10 +0800
committerNamjae Jeon <linkinjeon@kernel.org>2026-08-20 20:05:48 +0900
commit9969d58a9b0417393d033b24c670d57b686cabbf (patch)
tree1feb7880b90101016980b3dca5fc3b7365d5b68a /tools/perf/scripts/python/bin/stackcollapse-record
parent81684340963da2e898eabb8c1e274433d9375bc6 (diff)
ntfs: fix resource leak in ntfs_new_attr_flags
When handling resident attributes that don't need sparse/compressed changes, ntfs_new_attr_flags() returns 0 directly at line 678 without calling unmap_mft_record() or ntfs_attr_put_search_ctx(). This leaks the MFT record mapping and attribute search context. An unprivileged user can cause a denial of service by repeatedly calling setxattr(2) with system.ntfs_attrib on files with resident attributes, eventually exhausting kernel memory. Fix by replacing the direct return with goto err_out to ensure proper cleanup of resources via the existing cleanup code. Fixes: e791930240a5 ("ntfs: fix resident conversion in ntfs_new_attr_flags") Cc: stable@vger.kernel.org Signed-off-by: Hongling Zeng <zenghongling@kylinos.cn> 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