x86emul: avoid speculative out of bounds accesses
Quoted 5 lines · Jan Beulich
There are a few array accesses here the indexes of which are (at least indirectly) driven by the guest. Use
array_access_nospec()to bound such accesses. In the {,_}decode_gpr() cases replace existing guarding constructs.
Quoted 8 lines
To deal with an otherwise occurring #include cycle, drop the inclusion of
asm/x86_emulate.hfromasm/processor.h. This include had been introduced for obtaining the structcpuid_leafdeclaration, which has since moved into the x86 helper library.This is part of the speculative hardening effort.
Signed-off-by Jan Beulich <[email protected]>
Release-acked-by Juergen Gross <[email protected]>
Juergen
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel