summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorZhu Jun <zhujun2@cmss.chinamobile.com>2026-11-20 14:19:12 +0800
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>2026-11-25 07:26:50 +0900
commita33ffa8462808547aef24ca557451411d4ce2efc (patch)
treeaec44890d1d53a03b27fb66822bee5ce8bf436cb /tools/perf/scripts/python/bin
parent51934668ca98f1b23c51ce4edea3c61018da342c (diff)
tools/bootconfig: Reject short reads of configuration data
load_xbc_fd() places the terminator at the requested size even when read() returns less. Its initrd caller then computes a checksum over bytes that were never read, while the plain file callers can parse a partial configuration. Reject a short read and release the allocated buffer on both read failure paths. Link: https://lore.kernel.org/all/20261120061912.98156-1-zhujun2@cmss.chinamobile.com/ Fixes: 950313ebf79c ("tools: bootconfig: Add bootconfig command") Cc: stable@vger.kernel.org Signed-off-by: Zhu Jun <zhujun2@cmss.chinamobile.com> Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions