[SRU][jammy:gcp][PATCH 1/1] UBUNTU: SAUCE (no-up): x64/mm: Fix incorrect argument to notify_page_enc_status_changed()
John Cabaj
john.cabaj at canonical.com
Mon Feb 5 17:00:52 UTC 2024
BugLink: https://bugs.launchpad.net/bugs/2052451
27ba8c7 modified notify_page_enc_status_changed(), when it should not have.
Revert this portion of the change to correct the incorrect arguments.
Signed-off-by: John Cabaj <john.cabaj at canonical.com>
---
arch/x86/mm/mem_encrypt_amd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/mm/mem_encrypt_amd.c b/arch/x86/mm/mem_encrypt_amd.c
index ff51890ce49f..468d15c05f28 100644
--- a/arch/x86/mm/mem_encrypt_amd.c
+++ b/arch/x86/mm/mem_encrypt_amd.c
@@ -315,7 +315,7 @@ void notify_range_enc_status_changed(unsigned long vaddr, unsigned long size, bo
psize = page_level_size(level);
pmask = page_level_mask(level);
- notify_page_enc_status_changed(pfn, size, enc);
+ notify_page_enc_status_changed(pfn, psize >> PAGE_SHIFT, enc);
vaddr = (vaddr & pmask) + psize;
}
--
2.34.1
More information about the kernel-team
mailing list