Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'powerpc-5.0-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux

Pull powerpc fix from Michael Ellerman:
"Just one fix, for pgd/pud_present() which were broken on big endian
since v4.20, leading to possible data corruption.

Thanks to: Aneesh Kumar K.V., Erhard F., Jan Kara"

* tag 'powerpc-5.0-5' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux:
powerpc/64s: Fix possible corruption on big endian due to pgd/pud_present()

+2 -2
+2 -2
arch/powerpc/include/asm/book3s/64/pgtable.h
··· 904 904 905 905 static inline int pud_present(pud_t pud) 906 906 { 907 - return (pud_raw(pud) & cpu_to_be64(_PAGE_PRESENT)); 907 + return !!(pud_raw(pud) & cpu_to_be64(_PAGE_PRESENT)); 908 908 } 909 909 910 910 extern struct page *pud_page(pud_t pud); ··· 951 951 952 952 static inline int pgd_present(pgd_t pgd) 953 953 { 954 - return (pgd_raw(pgd) & cpu_to_be64(_PAGE_PRESENT)); 954 + return !!(pgd_raw(pgd) & cpu_to_be64(_PAGE_PRESENT)); 955 955 } 956 956 957 957 static inline pte_t pgd_pte(pgd_t pgd)