hulk inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IAFONL CVE: NA
--------------------------------
The commit 5daea808f6d4 ("mm: memory: add orig_pmd to struct vm_fault") replaced the pte_t orig_pte to a union in struct vm_fault, which not actually affect the KABI. Use KABI_REPLACE to fix it.
Fixes: 5daea808f6d4 ("mm: memory: add orig_pmd to struct vm_fault") Signed-off-by: Nanyong Sun sunnanyong@huawei.com --- include/linux/mm.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/linux/mm.h b/include/linux/mm.h index de5dd997522b..627f997bc547 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -579,12 +579,13 @@ struct vm_fault { pud_t *pud; /* Pointer to pud entry matching * the 'address' */ + KABI_REPLACE(pte_t orig_pte, union { pte_t orig_pte; /* Value of PTE at the time of fault */ pmd_t orig_pmd; /* Value of PMD at the time of fault, * used by PMD fault only. */ - }; + })
struct page *cow_page; /* Page handler may use for COW fault */ struct page *page; /* ->fault handlers should return a