diff options
| author | Pengpeng Hou <pengpeng@iscas.ac.cn> | 2026-04-05 08:42:00 +0800 |
|---|---|---|
| committer | Juergen Gross <jgross@suse.com> | 2026-04-10 10:45:42 +0200 |
| commit | f45ab27774aadeee28f093a9f074892e9bebb586 (patch) | |
| tree | 1e7768304f5d9e427d7039b5565b330fd6b56ead /tools/perf/scripts/python/stackcollapse.py | |
| parent | 591cd656a1bf5ea94a222af5ef2ee76df029c1d2 (diff) | |
ARM: xen: validate hypervisor compatible before parsing its version
fdt_find_hyper_node() reads the raw compatible property and then derives
hyper_node.version from a prefix match before later printing it with %s.
Flat DT properties are external boot input, and this path does not prove
that the first compatible entry is NUL-terminated within the returned
property length.
Keep the existing flat-DT lookup path, but verify that the first
compatible entry terminates within the returned property length before
deriving the version suffix from it.
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Juergen Gross <jgross@suse.com>
Message-ID: <20260405094005.5-arm-xen-v2-pengpeng@iscas.ac.cn>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
