Skip to contentSkip to conversation

x86emul: avoid speculative out of bounds accesses

PATCH Juergen Gross 1 participant 1 message Feb 7, 2019 3 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
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.h from asm/processor.h. This include had been introduced for obtaining the struct cpuid_leaf declaration, which has since moved into the x86 helper library.

This is part of the speculative hardening effort.

Juergen

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel