summaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorYichong Chen <chenyichong@uniontech.com>2026-06-29 09:43:16 +0800
committerAndrew Morton <akpm@linux-foundation.org>2026-07-30 19:40:50 -0700
commit3ef8e3fdc8bafa05c872425851c8e2e1f5da443d (patch)
tree371e2170a9be83b87329ebf628a8739d1ddaf8bf /scripts/objdiff
parentc88c52baa80c61810f39ecd61490859881a6f1af (diff)
tools/mm/page_owner_sort: bound pattern output copies
search_pattern() copies a regex capture into caller-provided buffers without knowing their sizes. Several callers pass fixed-size buffers, including FIELD_BUFF and TASK_COMM_LEN. Pass the destination size to search_pattern(), reject captures that do not fit before copying them, and terminate the output string inside search_pattern(). Link: https://lore.kernel.org/20260629014316.130307-4-chenyichong@uniontech.com Signed-off-by: Yichong Chen <chenyichong@uniontech.com> Cc: Vishal Moola <vishal.moola@gmail.com> Cc: Ye Liu <ye.liu@linux.dev> Cc: Zhen Ni <zhen.ni@easystack.cn> Cc: Zi Yan <ziy@nvidia.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions