Re: [PATCH v3] spapr: Fail CAS if option vector table cannot be parsed

2020-01-18 Thread David Gibson
On Fri, Jan 17, 2020 at 10:15:52AM +0100, Greg Kurz wrote: > Most of the option vector helpers have assertions to check their > arguments aren't null. The guest can provide an arbitrary address > for the CAS structure that would result in such null arguments. > Fail CAS with H_PARAMETER and print a

[PATCH v3] spapr: Fail CAS if option vector table cannot be parsed

2020-01-17 Thread Greg Kurz
Most of the option vector helpers have assertions to check their arguments aren't null. The guest can provide an arbitrary address for the CAS structure that would result in such null arguments. Fail CAS with H_PARAMETER and print a warning instead of aborting QEMU. Signed-off-by: Greg Kurz Revie