Re: [PATCH] powerpc/lib: Validate size for vector operations

2023-12-07 Thread Michael Ellerman
On Thu, 23 Nov 2023 12:47:05 +0530, Naveen N Rao wrote: > 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

[PATCH] powerpc/lib: Validate size for vector operations

2023-11-22 Thread Naveen N Rao
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