acrn-kernel/arch/powerpc/lib
Naveen N Rao abd26515d4 powerpc/lib: Validate size for vector operations
[ Upstream commit 8f9abaa6d7de0a70fc68acaedce290c1f96e2e59 ]

Some of the fp/vmx code in sstep.c assume a certain maximum size for the
instructions being emulated. The size of those operations however is
determined separately in analyse_instr().

Add a check to validate the assumption on the maximum size of the
operations, so as to prevent any unintended kernel stack corruption.

Signed-off-by: Naveen N Rao <naveen@kernel.org>
Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Build-tested-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231123071705.397625-1-naveen@kernel.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-02-05 20:12:47 +00:00
..
Makefile
alloc.c
checksum_32.S
checksum_64.S
checksum_wrappers.c
code-patching.c
copy_32.S
copy_mc_64.S
copypage_64.S
copypage_power7.S
copyuser_64.S
copyuser_power7.S
crtsavres.S
div64.S
error-inject.c
feature-fixups-test.S
feature-fixups.c
hweight_64.S
ldstfp.S
locks.c
mem_64.S
memcmp_32.S
memcmp_64.S
memcpy_64.S
memcpy_power7.S
pmem.c
quad.S
restart_table.c
rheap.c
sstep.c powerpc/lib: Validate size for vector operations 2024-02-05 20:12:47 +00:00
string.S
string_32.S
string_64.S
strlen_32.S
test-code-patching.c
test_emulate_step.c
test_emulate_step_exec_instr.S
vmx-helper.c
xor_vmx.c
xor_vmx.h
xor_vmx_glue.c