x86: assorted array_index_nospec() insertions
authorJan Beulich <jbeulich@suse.com>
Fri, 14 Sep 2018 11:05:52 +0000 (13:05 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 14 Sep 2018 11:05:52 +0000 (13:05 +0200)
commit0719a5ff7ee0fc5d71c3e0ac96a53ed854a1b0a8
tree155d0b48bf2dd344429fc418bb1fe920e725e777
parent03fd74515401f74d3a749bed78feee4f14fb1f4d
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>
master commit: 3f2002614af51dfd507168a1696658bac91155ce
master date: 2018-09-03 17:50:10 +0200
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