summaryrefslogtreecommitdiff
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorNaveen N Rao <naveen@kernel.org>2023-11-23 12:47:05 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-02-23 08:42:02 +0100
commitbeee482cc4c9a6b1dcffb2e190b4fd8782258678 (patch)
tree824747e43fbe877160a5a8d578865816831b2eac /lib/debugobjects.c
parent24a58abcfff3ea80b5ce410648ecca5c07f35b0c (diff)
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>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions