summaryrefslogtreecommitdiff
path: root/arch/arm/lib/testclearbit.S
diff options
context:
space:
mode:
authorJuergen Gross <jgross@suse.com>2023-03-06 15:32:59 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-07-19 17:21:02 +0300
commit6b54f5c68474edc241434ab50bae4a08ce45f835 (patch)
tree36b45f084ae519ffcfdbf04aff057873ac4d903e /arch/arm/lib/testclearbit.S
parent3745f628c3288a6e77851de5ed408bf99a05e5db (diff)
downloadlinux-6b54f5c68474edc241434ab50bae4a08ce45f835.tar.xz
x86/mm: Fix __swp_entry_to_pte() for Xen PV guests
[ Upstream commit 0f88130e8a6fd185b0aeb5d8e286083735f2585a ] Normally __swp_entry_to_pte() is never called with a value translating to a valid PTE. The only known exception is pte_swap_tests(), resulting in a WARN splat in Xen PV guests, as __pte_to_swp_entry() did translate the PFN of the valid PTE to a guest local PFN, while __swp_entry_to_pte() doesn't do the opposite translation. Fix that by using __pte() in __swp_entry_to_pte() instead of open coding the native variant of it. For correctness do the similar conversion for __swp_entry_to_pmd(). Fixes: 05289402d717 ("mm/debug_vm_pgtable: add tests validating arch helpers for core MM features") Signed-off-by: Juergen Gross <jgross@suse.com> Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de> Link: https://lore.kernel.org/r/20230306123259.12461-1-jgross@suse.com Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/arm/lib/testclearbit.S')
0 files changed, 0 insertions, 0 deletions