]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86/entry: RESTORE_IBRS needs to be done under kernel CR3
authorAnkur Arora <ankur.a.arora@oracle.com>
Mon, 5 Feb 2018 03:35:07 +0000 (22:35 -0500)
committerJack Vogel <jack.vogel@oracle.com>
Wed, 7 Feb 2018 17:42:29 +0000 (09:42 -0800)
commita74acdc246f3cf9d6583b23c6f1f25b3a8c8b512
tree8724cdd7fca5768caf6b1b41deed525379f6e9a5
parent3f29cff5a83634db64beb484311420d87fc953f5
x86/entry: RESTORE_IBRS needs to be done under kernel CR3

RESTORE_IBRS_CLOBBER executes after we have already switched
to the USER_CR3. This blows up because RESTORE_IBRS_CLOBBER
looks at a kernel variable (use_ibrs).

Orabug: 27501734

Signed-off-by: Ankur Arora <ankur.a.arora@oracle.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
(cherry picked from commit a2b15d7844fc60bc3ebb5f1703cd2fe39256db35)
arch/x86/kernel/entry_64.S