]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/speculation/mds: Fix verw usage to use memory operand
authorKanth Ghatraju <kanth.ghatraju@oracle.com>
Thu, 16 May 2019 19:54:40 +0000 (15:54 -0400)
committerBrian Maly <brian.maly@oracle.com>
Tue, 21 May 2019 19:24:59 +0000 (15:24 -0400)
commit5eb925dab2cabc73f291520d8f391115f38b08b4
tree29e65982124131f8e085954bb1a3ac016b2065cc
parentbbae5db07b75a8d45ce5de767018d45b33c8a8f5
x86/speculation/mds: Fix verw usage to use memory operand

verw instruction needs to be called with a memory operand instead
of the register operand to correctly flush the buffers affected by
MDS. The buffer overwriting occurs regards less of permission check
as well as the null selector.

Orabug: 29791036
CVE: CVE-2018-12127
CVE: CVE-2018-12130

Signed-off-by: Kanth Ghatraju <kanth.ghatraju@oracle.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
arch/x86/include/asm/nospec-branch.h