x86: assorted array_index_nospec() insertions
authorJan Beulich <jbeulich@suse.com>
Mon, 3 Sep 2018 15:50:10 +0000 (17:50 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 3 Sep 2018 15:50:10 +0000 (17:50 +0200)
commit3f2002614af51dfd507168a1696658bac91155ce
treeec86bf79e67045784f79a66b5f9a77ed42ee1248
parent16bbf8e7b39b50457bb2f6547f166bd54d50e4cd
x86: assorted array_index_nospec() insertions

Don't chance having Spectre v1 (including BCBS) gadgets. In some of the
cases the insertions are more of precautionary nature rather than there
provably being a gadget, but I think we should err on the safe (secure)
side here.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Razvan Cojocaru <rcojocaru@bitdefender.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/dm.c
xen/arch/x86/hvm/hypercall.c
xen/arch/x86/mm/mem_access.c
xen/arch/x86/pv/hypercall.c