mirror of
https://github.com/torvalds/linux.git
synced 2026-09-14 16:10:02 +02:00
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> |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| Makefile | ||
| page_owner_filter.c | ||
| page_owner_sort.c | ||
| page-types.c | ||
| show_page_info.py | ||
| slabinfo-gnuplot.sh | ||
| slabinfo.c | ||
| thp_swap_allocator_test.c | ||
| thpmaps | ||