commit: cb4c478d72b227b7a0dd768caa6cc72f14a72846 Author: Mike Pagano <mpagano <AT> gentoo <DOT> org> AuthorDate: Sat Aug 18 18:12:20 2018 +0000 Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org> CommitDate: Sat Aug 18 18:12:20 2018 +0000 URL: https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=cb4c478d
Linux patch 4.14.65 0000_README | 4 ++++ 1064_linux-4.14.65.patch | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/0000_README b/0000_README index 614d36d..1cd1371 100644 --- a/0000_README +++ b/0000_README @@ -299,6 +299,10 @@ Patch: 1063_linux-4.14.64.patch From: http://www.kernel.org Desc: Linux 4.14.64 +Patch: 1064_linux-4.14.65.patch +From: http://www.kernel.org +Desc: Linux 4.14.65 + Patch: 1500_XATTR_USER_PREFIX.patch From: https://bugs.gentoo.org/show_bug.cgi?id=470644 Desc: Support for namespace user.pax.* on tmpfs. diff --git a/1064_linux-4.14.65.patch b/1064_linux-4.14.65.patch new file mode 100644 index 0000000..305f291 --- /dev/null +++ b/1064_linux-4.14.65.patch @@ -0,0 +1,37 @@ +diff --git a/Makefile b/Makefile +index 025156791e90..7995690ff1aa 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,7 +1,7 @@ + # SPDX-License-Identifier: GPL-2.0 + VERSION = 4 + PATCHLEVEL = 14 +-SUBLEVEL = 64 ++SUBLEVEL = 65 + EXTRAVERSION = + NAME = Petit Gorille + +diff --git a/arch/x86/include/asm/pgtable-invert.h b/arch/x86/include/asm/pgtable-invert.h +index 44b1203ece12..a0c1525f1b6f 100644 +--- a/arch/x86/include/asm/pgtable-invert.h ++++ b/arch/x86/include/asm/pgtable-invert.h +@@ -4,9 +4,18 @@ + + #ifndef __ASSEMBLY__ + ++/* ++ * A clear pte value is special, and doesn't get inverted. ++ * ++ * Note that even users that only pass a pgprot_t (rather ++ * than a full pte) won't trigger the special zero case, ++ * because even PAGE_NONE has _PAGE_PROTNONE | _PAGE_ACCESSED ++ * set. So the all zero case really is limited to just the ++ * cleared page table entry case. ++ */ + static inline bool __pte_needs_invert(u64 val) + { +- return !(val & _PAGE_PRESENT); ++ return val && !(val & _PAGE_PRESENT); + } + + /* Get a mask to xor with the page table entry to get the correct pfn. */