From: Ma Wupeng mawupeng1@huawei.com
backport "x86/mm/pat: fix VM_PAT handling in COW mappings" to fix CVE-2024-35877
David Hildenbrand (1): x86/mm/pat: fix VM_PAT handling in COW mappings
arch/x86/mm/pat/memtype.c | 50 ++++++++++++++++++++++++++++----------- mm/memory.c | 4 ++++ 2 files changed, 40 insertions(+), 14 deletions(-)