diff options
author | Bibo Mao <maobibo@loongson.cn> | 2025-06-27 18:27:44 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-07-06 11:04:11 +0200 |
commit | a3293b4078ee93174f70f36d3ab7618554ce6ab6 (patch) | |
tree | 82971052a072646faa5bdc88c303122c1da89959 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 2cc84c4b0d70d42e291862ecc848890d18e1004a (diff) |
LoongArch: KVM: Check validity of "num_cpu" from user space
commit cc8d5b209e09d3b52bca1ffe00045876842d96ae upstream.
The maximum supported cpu number is EIOINTC_ROUTE_MAX_VCPUS about
irqchip EIOINTC, here add validation about cpu number to avoid array
pointer overflow.
Cc: stable@vger.kernel.org
Fixes: 1ad7efa552fd ("LoongArch: KVM: Add EIOINTC user mode read and write functions")
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions