Re: Linux kernel: powerpc: KVM guest to host memory corruption

2021-07-26 Thread Michael Ellerman
Michael Ellerman writes: > The Linux kernel for powerpc since v3.10 has a bug which allows a malicious > KVM guest to > corrupt host memory. > > In the handling of the H_RTAS hypercall, args.rets is made to point into the > args.args > buffer which is located on the stack: > > args.rets =

Linux kernel: powerpc: KVM guest to host memory corruption

2021-07-26 Thread Michael Ellerman
The Linux kernel for powerpc since v3.10 has a bug which allows a malicious KVM guest to corrupt host memory. In the handling of the H_RTAS hypercall, args.rets is made to point into the args.args buffer which is located on the stack: args.rets = &args.args[be32_to_cpu(args.nargs)]; Ho