1 |
commit: c454c8e0eb0227d2072fa08ee63ffa3b83f24be4 |
2 |
Author: Mike Pagano <mpagano <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 19 15:27:07 2018 +0000 |
4 |
Commit: Mike Pagano <mpagano <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 21 15:00:58 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=c454c8e0 |
7 |
|
8 |
Linux patch 4.4.142 |
9 |
|
10 |
Signed-off-by: Mike Pagano <mpagano <AT> gentoo.org> |
11 |
|
12 |
0000_README | 4 + |
13 |
1141_linux-4.4.142.patch | 186 +++++++++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 190 insertions(+) |
15 |
|
16 |
diff --git a/0000_README b/0000_README |
17 |
index c1babcb..3d85018 100644 |
18 |
--- a/0000_README |
19 |
+++ b/0000_README |
20 |
@@ -607,6 +607,10 @@ Patch: 1140_linux-4.4.141.patch |
21 |
From: http://www.kernel.org |
22 |
Desc: Linux 4.4.141 |
23 |
|
24 |
+Patch: 1141_linux-4.4.142.patch |
25 |
+From: http://www.kernel.org |
26 |
+Desc: Linux 4.4.142 |
27 |
+ |
28 |
Patch: 1500_XATTR_USER_PREFIX.patch |
29 |
From: https://bugs.gentoo.org/show_bug.cgi?id=470644 |
30 |
Desc: Support for namespace user.pax.* on tmpfs. |
31 |
|
32 |
diff --git a/1141_linux-4.4.142.patch b/1141_linux-4.4.142.patch |
33 |
new file mode 100644 |
34 |
index 0000000..dc7dd1e |
35 |
--- /dev/null |
36 |
+++ b/1141_linux-4.4.142.patch |
37 |
@@ -0,0 +1,186 @@ |
38 |
+diff --git a/Makefile b/Makefile |
39 |
+index 3fc39e41dbde..75d6176c8786 100644 |
40 |
+--- a/Makefile |
41 |
++++ b/Makefile |
42 |
+@@ -1,6 +1,6 @@ |
43 |
+ VERSION = 4 |
44 |
+ PATCHLEVEL = 4 |
45 |
+-SUBLEVEL = 141 |
46 |
++SUBLEVEL = 142 |
47 |
+ EXTRAVERSION = |
48 |
+ NAME = Blurry Fish Butt |
49 |
+ |
50 |
+diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c |
51 |
+index 814276d0eed1..736e2843139b 100644 |
52 |
+--- a/arch/x86/kernel/cpu/common.c |
53 |
++++ b/arch/x86/kernel/cpu/common.c |
54 |
+@@ -686,13 +686,14 @@ void get_cpu_cap(struct cpuinfo_x86 *c) |
55 |
+ c->x86_capability[CPUID_1_EDX] = edx; |
56 |
+ } |
57 |
+ |
58 |
++ /* Thermal and Power Management Leaf: level 0x00000006 (eax) */ |
59 |
++ if (c->cpuid_level >= 0x00000006) |
60 |
++ c->x86_capability[CPUID_6_EAX] = cpuid_eax(0x00000006); |
61 |
++ |
62 |
+ /* Additional Intel-defined flags: level 0x00000007 */ |
63 |
+ if (c->cpuid_level >= 0x00000007) { |
64 |
+ cpuid_count(0x00000007, 0, &eax, &ebx, &ecx, &edx); |
65 |
+- |
66 |
+ c->x86_capability[CPUID_7_0_EBX] = ebx; |
67 |
+- |
68 |
+- c->x86_capability[CPUID_6_EAX] = cpuid_eax(0x00000006); |
69 |
+ c->x86_capability[CPUID_7_ECX] = ecx; |
70 |
+ } |
71 |
+ |
72 |
+diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include |
73 |
+index 1db6d73c8dd2..31a981d6229d 100644 |
74 |
+--- a/scripts/Kbuild.include |
75 |
++++ b/scripts/Kbuild.include |
76 |
+@@ -7,6 +7,7 @@ quote := " |
77 |
+ squote := ' |
78 |
+ empty := |
79 |
+ space := $(empty) $(empty) |
80 |
++pound := \# |
81 |
+ |
82 |
+ ### |
83 |
+ # Name of target with a '.' as filename prefix. foo/bar.o => foo/.bar.o |
84 |
+@@ -236,11 +237,11 @@ endif |
85 |
+ |
86 |
+ # Replace >$< with >$$< to preserve $ when reloading the .cmd file |
87 |
+ # (needed for make) |
88 |
+-# Replace >#< with >\#< to avoid starting a comment in the .cmd file |
89 |
++# Replace >#< with >$(pound)< to avoid starting a comment in the .cmd file |
90 |
+ # (needed for make) |
91 |
+ # Replace >'< with >'\''< to be able to enclose the whole string in '...' |
92 |
+ # (needed for the shell) |
93 |
+-make-cmd = $(call escsq,$(subst \#,\\\#,$(subst $$,$$$$,$(cmd_$(1))))) |
94 |
++make-cmd = $(call escsq,$(subst $(pound),$$(pound),$(subst $$,$$$$,$(cmd_$(1))))) |
95 |
+ |
96 |
+ # Find any prerequisites that is newer than target or that does not exist. |
97 |
+ # PHONY targets skipped in both cases. |
98 |
+diff --git a/tools/arch/x86/include/asm/unistd_32.h b/tools/arch/x86/include/asm/unistd_32.h |
99 |
+new file mode 100644 |
100 |
+index 000000000000..cf33ab09273d |
101 |
+--- /dev/null |
102 |
++++ b/tools/arch/x86/include/asm/unistd_32.h |
103 |
+@@ -0,0 +1,9 @@ |
104 |
++#ifndef __NR_perf_event_open |
105 |
++# define __NR_perf_event_open 336 |
106 |
++#endif |
107 |
++#ifndef __NR_futex |
108 |
++# define __NR_futex 240 |
109 |
++#endif |
110 |
++#ifndef __NR_gettid |
111 |
++# define __NR_gettid 224 |
112 |
++#endif |
113 |
+diff --git a/tools/arch/x86/include/asm/unistd_64.h b/tools/arch/x86/include/asm/unistd_64.h |
114 |
+new file mode 100644 |
115 |
+index 000000000000..2c9835695b56 |
116 |
+--- /dev/null |
117 |
++++ b/tools/arch/x86/include/asm/unistd_64.h |
118 |
+@@ -0,0 +1,9 @@ |
119 |
++#ifndef __NR_perf_event_open |
120 |
++# define __NR_perf_event_open 298 |
121 |
++#endif |
122 |
++#ifndef __NR_futex |
123 |
++# define __NR_futex 202 |
124 |
++#endif |
125 |
++#ifndef __NR_gettid |
126 |
++# define __NR_gettid 186 |
127 |
++#endif |
128 |
+diff --git a/tools/build/Build.include b/tools/build/Build.include |
129 |
+index 1c570528baf7..0340d8a51dab 100644 |
130 |
+--- a/tools/build/Build.include |
131 |
++++ b/tools/build/Build.include |
132 |
+@@ -12,6 +12,7 @@ |
133 |
+ # Convenient variables |
134 |
+ comma := , |
135 |
+ squote := ' |
136 |
++pound := \# |
137 |
+ |
138 |
+ ### |
139 |
+ # Name of target with a '.' as filename prefix. foo/bar.o => foo/.bar.o |
140 |
+@@ -43,11 +44,11 @@ echo-cmd = $(if $($(quiet)cmd_$(1)),\ |
141 |
+ ### |
142 |
+ # Replace >$< with >$$< to preserve $ when reloading the .cmd file |
143 |
+ # (needed for make) |
144 |
+-# Replace >#< with >\#< to avoid starting a comment in the .cmd file |
145 |
++# Replace >#< with >$(pound)< to avoid starting a comment in the .cmd file |
146 |
+ # (needed for make) |
147 |
+ # Replace >'< with >'\''< to be able to enclose the whole string in '...' |
148 |
+ # (needed for the shell) |
149 |
+-make-cmd = $(call escsq,$(subst \#,\\\#,$(subst $$,$$$$,$(cmd_$(1))))) |
150 |
++make-cmd = $(call escsq,$(subst $(pound),$$(pound),$(subst $$,$$$$,$(cmd_$(1))))) |
151 |
+ |
152 |
+ ### |
153 |
+ # Find any prerequisites that is newer than target or that does not exist. |
154 |
+diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile |
155 |
+index de89ec574361..b92c952b01ef 100644 |
156 |
+--- a/tools/perf/config/Makefile |
157 |
++++ b/tools/perf/config/Makefile |
158 |
+@@ -200,6 +200,7 @@ CFLAGS += -I$(src-perf)/arch/$(ARCH)/include |
159 |
+ CFLAGS += -I$(srctree)/tools/include/ |
160 |
+ CFLAGS += -I$(srctree)/arch/$(ARCH)/include/uapi |
161 |
+ CFLAGS += -I$(srctree)/arch/$(ARCH)/include |
162 |
++CFLAGS += -I$(srctree)/tools/arch/$(ARCH)/include |
163 |
+ CFLAGS += -I$(srctree)/include/uapi |
164 |
+ CFLAGS += -I$(srctree)/include |
165 |
+ |
166 |
+diff --git a/tools/perf/perf-sys.h b/tools/perf/perf-sys.h |
167 |
+index 83a25cef82fd..5cee8a3d0455 100644 |
168 |
+--- a/tools/perf/perf-sys.h |
169 |
++++ b/tools/perf/perf-sys.h |
170 |
+@@ -11,29 +11,11 @@ |
171 |
+ #if defined(__i386__) |
172 |
+ #define cpu_relax() asm volatile("rep; nop" ::: "memory"); |
173 |
+ #define CPUINFO_PROC {"model name"} |
174 |
+-#ifndef __NR_perf_event_open |
175 |
+-# define __NR_perf_event_open 336 |
176 |
+-#endif |
177 |
+-#ifndef __NR_futex |
178 |
+-# define __NR_futex 240 |
179 |
+-#endif |
180 |
+-#ifndef __NR_gettid |
181 |
+-# define __NR_gettid 224 |
182 |
+-#endif |
183 |
+ #endif |
184 |
+ |
185 |
+ #if defined(__x86_64__) |
186 |
+ #define cpu_relax() asm volatile("rep; nop" ::: "memory"); |
187 |
+ #define CPUINFO_PROC {"model name"} |
188 |
+-#ifndef __NR_perf_event_open |
189 |
+-# define __NR_perf_event_open 298 |
190 |
+-#endif |
191 |
+-#ifndef __NR_futex |
192 |
+-# define __NR_futex 202 |
193 |
+-#endif |
194 |
+-#ifndef __NR_gettid |
195 |
+-# define __NR_gettid 186 |
196 |
+-#endif |
197 |
+ #endif |
198 |
+ |
199 |
+ #ifdef __powerpc__ |
200 |
+diff --git a/tools/perf/util/include/asm/unistd_32.h b/tools/perf/util/include/asm/unistd_32.h |
201 |
+deleted file mode 100644 |
202 |
+index 8b137891791f..000000000000 |
203 |
+--- a/tools/perf/util/include/asm/unistd_32.h |
204 |
++++ /dev/null |
205 |
+@@ -1 +0,0 @@ |
206 |
+- |
207 |
+diff --git a/tools/perf/util/include/asm/unistd_64.h b/tools/perf/util/include/asm/unistd_64.h |
208 |
+deleted file mode 100644 |
209 |
+index 8b137891791f..000000000000 |
210 |
+--- a/tools/perf/util/include/asm/unistd_64.h |
211 |
++++ /dev/null |
212 |
+@@ -1 +0,0 @@ |
213 |
+- |
214 |
+diff --git a/tools/scripts/Makefile.include b/tools/scripts/Makefile.include |
215 |
+index 19edc1a7a232..7ea4438b801d 100644 |
216 |
+--- a/tools/scripts/Makefile.include |
217 |
++++ b/tools/scripts/Makefile.include |
218 |
+@@ -92,3 +92,5 @@ ifneq ($(silent),1) |
219 |
+ QUIET_INSTALL = @printf ' INSTALL %s\n' $1; |
220 |
+ endif |
221 |
+ endif |
222 |
++ |
223 |
++pound := \# |