summaryrefslogtreecommitdiff
path: root/rust/kernel/ioctl.rs
diff options
context:
space:
mode:
authorRadim Krčmář <rkrcmar@ventanamicro.com>2025-08-05 12:44:21 +0200
committerAnup Patel <anup@brainfault.org>2025-08-25 10:26:20 +0530
commit799766208f09f95677a9ab111b93872d414fbad7 (patch)
tree8e90fcf0e0d6686d6a5507a865cfcef8178e93c1 /rust/kernel/ioctl.rs
parente61a12a4baf06a4c71e15f522bb5c4345c2ba198 (diff)
RISC-V: KVM: fix stack overrun when loading vlenb
The userspace load can put up to 2048 bits into an xlen bit stack buffer. We want only xlen bits, so check the size beforehand. Fixes: 2fa290372dfe ("RISC-V: KVM: add 'vlenb' Vector CSR") Cc: stable@vger.kernel.org Signed-off-by: Radim Krčmář <rkrcmar@ventanamicro.com> Reviewed-by: Nutty Liu <liujingqi@lanxincomputing.com> Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com> Link: https://lore.kernel.org/r/20250805104418.196023-4-rkrcmar@ventanamicro.com Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'rust/kernel/ioctl.rs')
0 files changed, 0 insertions, 0 deletions