1 |
commit: 8419170d5f52350038c0ad6d7cbb785e53702288 |
2 |
Author: Mike Pagano <mpagano <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 18 18:13:21 2018 +0000 |
4 |
Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 18 18:13:21 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=8419170d |
7 |
|
8 |
Linux patch 4.18.3 |
9 |
|
10 |
0000_README | 4 ++++ |
11 |
1002_linux-4.18.3.patch | 37 +++++++++++++++++++++++++++++++++++++ |
12 |
2 files changed, 41 insertions(+) |
13 |
|
14 |
diff --git a/0000_README b/0000_README |
15 |
index f72e2ad..c313d8e 100644 |
16 |
--- a/0000_README |
17 |
+++ b/0000_README |
18 |
@@ -51,6 +51,10 @@ Patch: 1001_linux-4.18.2.patch |
19 |
From: http://www.kernel.org |
20 |
Desc: Linux 4.18.2 |
21 |
|
22 |
+Patch: 1002_linux-4.18.3.patch |
23 |
+From: http://www.kernel.org |
24 |
+Desc: Linux 4.18.3 |
25 |
+ |
26 |
Patch: 1500_XATTR_USER_PREFIX.patch |
27 |
From: https://bugs.gentoo.org/show_bug.cgi?id=470644 |
28 |
Desc: Support for namespace user.pax.* on tmpfs. |
29 |
|
30 |
diff --git a/1002_linux-4.18.3.patch b/1002_linux-4.18.3.patch |
31 |
new file mode 100644 |
32 |
index 0000000..62abf0a |
33 |
--- /dev/null |
34 |
+++ b/1002_linux-4.18.3.patch |
35 |
@@ -0,0 +1,37 @@ |
36 |
+diff --git a/Makefile b/Makefile |
37 |
+index fd409a0fd4e1..e2bd815f24eb 100644 |
38 |
+--- a/Makefile |
39 |
++++ b/Makefile |
40 |
+@@ -1,7 +1,7 @@ |
41 |
+ # SPDX-License-Identifier: GPL-2.0 |
42 |
+ VERSION = 4 |
43 |
+ PATCHLEVEL = 18 |
44 |
+-SUBLEVEL = 2 |
45 |
++SUBLEVEL = 3 |
46 |
+ EXTRAVERSION = |
47 |
+ NAME = Merciless Moray |
48 |
+ |
49 |
+diff --git a/arch/x86/include/asm/pgtable-invert.h b/arch/x86/include/asm/pgtable-invert.h |
50 |
+index 44b1203ece12..a0c1525f1b6f 100644 |
51 |
+--- a/arch/x86/include/asm/pgtable-invert.h |
52 |
++++ b/arch/x86/include/asm/pgtable-invert.h |
53 |
+@@ -4,9 +4,18 @@ |
54 |
+ |
55 |
+ #ifndef __ASSEMBLY__ |
56 |
+ |
57 |
++/* |
58 |
++ * A clear pte value is special, and doesn't get inverted. |
59 |
++ * |
60 |
++ * Note that even users that only pass a pgprot_t (rather |
61 |
++ * than a full pte) won't trigger the special zero case, |
62 |
++ * because even PAGE_NONE has _PAGE_PROTNONE | _PAGE_ACCESSED |
63 |
++ * set. So the all zero case really is limited to just the |
64 |
++ * cleared page table entry case. |
65 |
++ */ |
66 |
+ static inline bool __pte_needs_invert(u64 val) |
67 |
+ { |
68 |
+- return !(val & _PAGE_PRESENT); |
69 |
++ return val && !(val & _PAGE_PRESENT); |
70 |
+ } |
71 |
+ |
72 |
+ /* Get a mask to xor with the page table entry to get the correct pfn. */ |