kernel_samsung_a53x/arch/powerpc/lib
Naveen N Rao a202eb0605 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-11-18 12:13:08 +01:00
..
alloc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
checksum_32.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
checksum_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
checksum_wrappers.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
code-patching.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
copy_32.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
copy_mc_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
copypage_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
copypage_power7.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
copyuser_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
copyuser_power7.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
crtsavres.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
div64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
error-inject.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
feature-fixups-test.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
feature-fixups.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hweight_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
inst.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ldstfp.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
locks.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile powerpc: add crtsavres.o to always-y instead of extra-y 2024-11-18 12:12:19 +01:00
mem_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
memcmp_32.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
memcmp_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
memcpy_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
memcpy_power7.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pmem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
quad.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rheap.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sstep.c powerpc/lib: Validate size for vector operations 2024-11-18 12:13:08 +01:00
string.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
string_32.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
string_64.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
strlen_32.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
test_code-patching.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
test_emulate_step.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
test_emulate_step_exec_instr.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmx-helper.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xor_vmx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xor_vmx.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xor_vmx_glue.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00