]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
Xen/x86: also check kernel mapping in set_foreign_p2m_mapping()
authorJan Beulich <jbeulich@suse.com>
Mon, 15 Feb 2021 07:50:08 +0000 (08:50 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 24 Mar 2021 10:14:36 +0000 (11:14 +0100)
commitfe4857a6310967bbfa34d5ba17b83ebceeee0d12
treed6ce0f9142830421f78ff3795c3704990bfc42f2
parent9c1b404938a516cc24a0fb2dbb627dda09ea651b
Xen/x86: also check kernel mapping in set_foreign_p2m_mapping()

BugLink: https://bugs.launchpad.net/bugs/1918168
commit b512e1b077e5ccdbd6e225b15d934ab12453b70a upstream.

We should not set up further state if either mapping failed; paying
attention to just the user mapping's status isn't enough.

Also use GNTST_okay instead of implying its value (zero).

This is part of XSA-361.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Cc: stable@vger.kernel.org
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
arch/x86/xen/p2m.c