]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
x86/entry: Don't call error_entry() for XENPV
authorLai Jiangshan <jiangshan.ljs@antgroup.com>
Tue, 3 May 2022 03:21:06 +0000 (11:21 +0800)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Tue, 19 Jul 2022 19:13:23 +0000 (16:13 -0300)
commitdf63caa1b62ce9af9b6659c3f2c0376909f15325
treed76c7a05f77e8b672ca0f4984f917200b8cee33e
parent7f0f2134725521066a72ba73778266298da405d6
x86/entry: Don't call error_entry() for XENPV

commit 64cbd0acb58203fb769ed2f4eab526d43e243847 upstream.

XENPV guests enter already on the task stack and they can't fault for
native_iret() nor native_load_gs_index() since they use their own pvop
for IRET and load_gs_index(). A CR3 switch is not needed either.

So there is no reason to call error_entry() in XENPV.

  [ bp: Massage commit message. ]

Signed-off-by: Lai Jiangshan <jiangshan.ljs@antgroup.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/20220503032107.680190-6-jiangshanlai@gmail.com
CVE-2022-29900
CVE-2022-29901
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
arch/x86/entry/entry_64.S