diff options
| author | Bibo Mao <[email protected]> | 2025-06-27 10:27:44 +0000 |
|---|---|---|
| committer | Huacai Chen <[email protected]> | 2025-06-27 10:27:44 +0000 |
| commit | cc8d5b209e09d3b52bca1ffe00045876842d96ae (patch) | |
| tree | 21eef6f0ed202be0cc1e7380fd9c3cb86e461f53 /lib/crypto/mpi/mpi-pow.c | |
| parent | LoongArch: KVM: Check interrupt route from physical CPU (diff) | |
| download | kernel-cc8d5b209e09d3b52bca1ffe00045876842d96ae.tar.gz kernel-cc8d5b209e09d3b52bca1ffe00045876842d96ae.zip | |
LoongArch: KVM: Check validity of "num_cpu" from user space
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: [email protected]
Fixes: 1ad7efa552fd ("LoongArch: KVM: Add EIOINTC user mode read and write functions")
Signed-off-by: Bibo Mao <[email protected]>
Signed-off-by: Huacai Chen <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-pow.c')
0 files changed, 0 insertions, 0 deletions
