]> git.baikalelectronics.ru Git - 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)
committerJuergen Gross <jgross@suse.com>
Mon, 15 Feb 2021 07:50:08 +0000 (08:50 +0100)
commit873490a8975704cc6ea12267145a4757b38b7a49
tree3400354ce158db8092efaffa987542d9d72403a4
parente3d779eb006230a8f1dd04e5326d1ea81e4da7f8
Xen/x86: also check kernel mapping in set_foreign_p2m_mapping()

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>
arch/x86/xen/p2m.c