Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in src/patchsets/gentoo-headers/3.14: 00_all_0001-linux-stat.h-remove-__GLIBC__-checks.patch 00_all_0002-netfilter-pull-in-limits.h.patch 00_all_0003-convert-PAGE_SIZE-usage.patch 00_all_0004-asm-generic-fcntl.h-namespace-kernel-file-structs.patch 00_all_0005-unifdef-drop-unused-errno.h-include.patch 00_all_0006-x86-make-statfs-64-bit-for-x86_64-kernels.patch 00_all_0007-uapi-netfilter_arp-use-__u8-instead-of-u_int8_t.patch
Date: Tue, 01 Apr 2014 06:25:26
Message-Id: 20140401062522.66FF92005E@flycatcher.gentoo.org
1 vapier 14/04/01 06:25:22
2
3 Added:
4 00_all_0001-linux-stat.h-remove-__GLIBC__-checks.patch
5 00_all_0002-netfilter-pull-in-limits.h.patch
6 00_all_0003-convert-PAGE_SIZE-usage.patch
7 00_all_0004-asm-generic-fcntl.h-namespace-kernel-file-structs.patch
8 00_all_0005-unifdef-drop-unused-errno.h-include.patch
9 00_all_0006-x86-make-statfs-64-bit-for-x86_64-kernels.patch
10 00_all_0007-uapi-netfilter_arp-use-__u8-instead-of-u_int8_t.patch
11 Log:
12 initial 3.14 patchset based on last 3.13 patchset
13
14 Revision Changes Path
15 1.1 src/patchsets/gentoo-headers/3.14/00_all_0001-linux-stat.h-remove-__GLIBC__-checks.patch
16
17 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.14/00_all_0001-linux-stat.h-remove-__GLIBC__-checks.patch?rev=1.1&view=markup
18 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.14/00_all_0001-linux-stat.h-remove-__GLIBC__-checks.patch?rev=1.1&content-type=text/plain
19
20 Index: 00_all_0001-linux-stat.h-remove-__GLIBC__-checks.patch
21 ===================================================================
22 From cfd54bf87287a21efc42660c19172ba3051c208f Mon Sep 17 00:00:00 2001
23 From: Mike Frysinger <vapier@g.o>
24 Date: Mon, 29 Dec 2008 06:52:59 -0500
25 Subject: [PATCH] linux/stat.h: remove __GLIBC__ checks
26
27 Only check __KERNEL__ so we don't assume the C library is glibc.
28
29 Signed-off-by: Mike Frysinger <vapier@g.o>
30 ---
31 include/uapi/linux/stat.h | 2 +-
32 1 file changed, 1 insertion(+), 1 deletion(-)
33
34 diff --git a/include/uapi/linux/stat.h b/include/uapi/linux/stat.h
35 index 7fec7e3..256ad24 100644
36 --- a/include/uapi/linux/stat.h
37 +++ b/include/uapi/linux/stat.h
38 @@ -2,7 +2,7 @@
39 #define _UAPI_LINUX_STAT_H
40
41
42 -#if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2)
43 +#if defined(__KERNEL__)
44
45 #define S_IFMT 00170000
46 #define S_IFSOCK 0140000
47 --
48 1.9.1
49
50
51
52
53 1.1 src/patchsets/gentoo-headers/3.14/00_all_0002-netfilter-pull-in-limits.h.patch
54
55 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.14/00_all_0002-netfilter-pull-in-limits.h.patch?rev=1.1&view=markup
56 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.14/00_all_0002-netfilter-pull-in-limits.h.patch?rev=1.1&content-type=text/plain
57
58 Index: 00_all_0002-netfilter-pull-in-limits.h.patch
59 ===================================================================
60 From 75087be810cc9142bf9407ededfa90f47c4d3d79 Mon Sep 17 00:00:00 2001
61 From: Mike Frysinger <vapier@g.o>
62 Date: Sat, 9 May 2009 17:30:35 -0400
63 Subject: [PATCH] netfilter: pull in limits.h
64
65 A few netfilter sub-headers use INT_MAX which is in limits.h.
66
67 URL: http://bugs.gentoo.org/246160
68 Signed-off-by: Mike Frysinger <vapier@g.o>
69 ---
70 include/uapi/linux/netfilter.h | 1 +
71 1 file changed, 1 insertion(+)
72
73 diff --git a/include/uapi/linux/netfilter.h b/include/uapi/linux/netfilter.h
74 index ef1b1f8..dda752c 100644
75 --- a/include/uapi/linux/netfilter.h
76 +++ b/include/uapi/linux/netfilter.h
77 @@ -4,6 +4,7 @@
78 #include <linux/types.h>
79 #include <linux/compiler.h>
80 #include <linux/sysctl.h>
81 +#include <limits.h>
82
83
84 /* Responses from hook functions. */
85 --
86 1.9.1
87
88
89
90
91 1.1 src/patchsets/gentoo-headers/3.14/00_all_0003-convert-PAGE_SIZE-usage.patch
92
93 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.14/00_all_0003-convert-PAGE_SIZE-usage.patch?rev=1.1&view=markup
94 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.14/00_all_0003-convert-PAGE_SIZE-usage.patch?rev=1.1&content-type=text/plain
95
96 Index: 00_all_0003-convert-PAGE_SIZE-usage.patch
97 ===================================================================
98 From 9a9ee6721293e70da1e42162a64f1f1e96e823b8 Mon Sep 17 00:00:00 2001
99 From: Mike Frysinger <vapier@g.o>
100 Date: Sat, 13 Feb 2010 03:09:23 -0500
101 Subject: [PATCH] convert PAGE_SIZE usage
102
103 The size of a page may change at runtime or based on kernel settings, so
104 a static value at compile time doesn't work. More importantly, no one
105 exports PAGE_SIZE to user space anymore.
106
107 URL: http://bugs.gentoo.org/301431
108 Signed-off-by: Mike Frysinger <vapier@g.o>
109 ---
110 include/uapi/linux/binfmts.h | 3 ++-
111 include/uapi/linux/resource.h | 3 ++-
112 2 files changed, 4 insertions(+), 2 deletions(-)
113
114 diff --git a/include/uapi/linux/binfmts.h b/include/uapi/linux/binfmts.h
115 index 4eb5972..516bfcf 100644
116 --- a/include/uapi/linux/binfmts.h
117 +++ b/include/uapi/linux/binfmts.h
118 @@ -1,6 +1,7 @@
119 #ifndef _UAPI_LINUX_BINFMTS_H
120 #define _UAPI_LINUX_BINFMTS_H
121
122 +#include <unistd.h>
123 #include <linux/capability.h>
124
125 struct pt_regs;
126 @@ -11,7 +12,7 @@ struct pt_regs;
127 * prevent the kernel from being unduly impacted by misaddressed pointers.
128 * MAX_ARG_STRINGS is chosen to fit in a signed 32-bit integer.
129 */
130 -#define MAX_ARG_STRLEN (PAGE_SIZE * 32)
131 +#define MAX_ARG_STRLEN (sysconf(_SC_PAGESIZE) * 32)
132 #define MAX_ARG_STRINGS 0x7FFFFFFF
133
134 /* sizeof(linux_binprm->buf) */
135 diff --git a/include/uapi/linux/resource.h b/include/uapi/linux/resource.h
136 index 36fb3b5..58efd07 100644
137 --- a/include/uapi/linux/resource.h
138 +++ b/include/uapi/linux/resource.h
139 @@ -68,7 +68,8 @@ struct rlimit64 {
140 * GPG2 wants 64kB of mlocked memory, to make sure pass phrases
141 * and other sensitive information are never written to disk.
142 */
143 -#define MLOCK_LIMIT ((PAGE_SIZE > 64*1024) ? PAGE_SIZE : 64*1024)
144 +/* No one currently defines PAGE_SIZE bigger than 64kB */
145 +#define MLOCK_LIMIT (64 * 1024)
146
147 /*
148 * Due to binary compatibility, the actual resource numbers
149 --
150 1.9.1
151
152
153
154
155 1.1 src/patchsets/gentoo-headers/3.14/00_all_0004-asm-generic-fcntl.h-namespace-kernel-file-structs.patch
156
157 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.14/00_all_0004-asm-generic-fcntl.h-namespace-kernel-file-structs.patch?rev=1.1&view=markup
158 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.14/00_all_0004-asm-generic-fcntl.h-namespace-kernel-file-structs.patch?rev=1.1&content-type=text/plain
159
160 Index: 00_all_0004-asm-generic-fcntl.h-namespace-kernel-file-structs.patch
161 ===================================================================
162 From e11c154abf93e64e896329d501b8bc56e3d02e3e Mon Sep 17 00:00:00 2001
163 From: Mike Frysinger <vapier@g.o>
164 Date: Mon, 29 Dec 2008 07:39:14 -0500
165 Subject: [PATCH] asm-generic/fcntl.h: namespace kernel file structs
166
167 No one should be using these structs, but just in case they are,
168 keep them available in the __kernel_ namespace.
169
170 Otherwise, trying to include something like:
171 #include <fcntl.h>
172 #include <linux/inotify.h>
173 leads to horrible failure.
174
175 URL: http://bugs.gentoo.org/244470
176 URL: http://bugs.gentoo.org/388633
177 Signed-off-by: Mike Frysinger <vapier@g.o>
178 ---
179 include/uapi/asm-generic/fcntl.h | 6 +++---
180 1 file changed, 3 insertions(+), 3 deletions(-)
181
182 diff --git a/include/uapi/asm-generic/fcntl.h b/include/uapi/asm-generic/fcntl.h
183 index 95e46c8..92c2df2 100644
184 --- a/include/uapi/asm-generic/fcntl.h
185 +++ b/include/uapi/asm-generic/fcntl.h
186 @@ -136,7 +136,7 @@
187 #define F_OWNER_PID 1
188 #define F_OWNER_PGRP 2
189
190 -struct f_owner_ex {
191 +struct __kernel_f_owner_ex {
192 int type;
193 __kernel_pid_t pid;
194 };
195 @@ -176,7 +176,7 @@ struct f_owner_ex {
196 #define __ARCH_FLOCK_PAD
197 #endif
198
199 -struct flock {
200 +struct __kernel_flock {
201 short l_type;
202 short l_whence;
203 __kernel_off_t l_start;
204 @@ -193,7 +193,7 @@ struct flock {
205 #define __ARCH_FLOCK64_PAD
206 #endif
207
208 -struct flock64 {
209 +struct __kernel_flock64 {
210 short l_type;
211 short l_whence;
212 __kernel_loff_t l_start;
213 --
214 1.9.1
215
216
217
218
219 1.1 src/patchsets/gentoo-headers/3.14/00_all_0005-unifdef-drop-unused-errno.h-include.patch
220
221 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.14/00_all_0005-unifdef-drop-unused-errno.h-include.patch?rev=1.1&view=markup
222 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.14/00_all_0005-unifdef-drop-unused-errno.h-include.patch?rev=1.1&content-type=text/plain
223
224 Index: 00_all_0005-unifdef-drop-unused-errno.h-include.patch
225 ===================================================================
226 From aaa2e3efed53fc07a5448536df24a9cf75af20bd Mon Sep 17 00:00:00 2001
227 From: Mike Frysinger <vapier@g.o>
228 Date: Tue, 6 Dec 2011 17:22:42 -0500
229 Subject: [PATCH] unifdef: drop unused errno.h include
230
231 This is the only header on my system that ends up requiring kernel
232 headers, so if the kernel headers aren't available, we end up being
233 unable to install kernel headers :).
234
235 Since this file doesn't actually use anything from errno.h, drop
236 the include so it at least makes us a bit more robust on glibc.
237
238 Signed-off-by: Mike Frysinger <vapier@g.o>
239 ---
240 scripts/unifdef.c | 1 -
241 1 file changed, 1 deletion(-)
242
243 diff --git a/scripts/unifdef.c b/scripts/unifdef.c
244 index 7493c0e..c5dfae5 100644
245 --- a/scripts/unifdef.c
246 +++ b/scripts/unifdef.c
247 @@ -48,7 +48,6 @@
248
249 #include <ctype.h>
250 #include <err.h>
251 -#include <errno.h>
252 #include <stdarg.h>
253 #include <stdbool.h>
254 #include <stdio.h>
255 --
256 1.9.1
257
258
259
260
261 1.1 src/patchsets/gentoo-headers/3.14/00_all_0006-x86-make-statfs-64-bit-for-x86_64-kernels.patch
262
263 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.14/00_all_0006-x86-make-statfs-64-bit-for-x86_64-kernels.patch?rev=1.1&view=markup
264 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.14/00_all_0006-x86-make-statfs-64-bit-for-x86_64-kernels.patch?rev=1.1&content-type=text/plain
265
266 Index: 00_all_0006-x86-make-statfs-64-bit-for-x86_64-kernels.patch
267 ===================================================================
268 From 3ebcdbcd6348b5b3e6398a55ed0ebab2cf2b2d6e Mon Sep 17 00:00:00 2001
269 From: Mike Frysinger <vapier@g.o>
270 Date: Mon, 25 Mar 2013 16:38:47 -0400
271 Subject: [PATCH] x86: make statfs 64-bit for x86_64 kernels
272
273 When including these headers in the x32 ABI, the structs get declared
274 with 32bit sizes which is incorrect. The stat.h change has been merged
275 now, but statfs.h is still missing.
276
277 Signed-off-by: Mike Frysinger <vapier@g.o>
278 ---
279 arch/x86/include/uapi/asm/statfs.h | 5 +++++
280 1 file changed, 5 insertions(+)
281
282 diff --git a/arch/x86/include/uapi/asm/statfs.h b/arch/x86/include/uapi/asm/statfs.h
283 index 2d0adbf..3cb5744 100644
284 --- a/arch/x86/include/uapi/asm/statfs.h
285 +++ b/arch/x86/include/uapi/asm/statfs.h
286 @@ -8,5 +8,10 @@
287 */
288 #define ARCH_PACK_COMPAT_STATFS64 __attribute__((packed,aligned(4)))
289
290 +/* For x86-64, both the 64bit and x32 ABIs have 64bit fields. */
291 +#ifdef __x86_64__
292 +#define __statfs_word __u64
293 +#endif
294 +
295 #include <asm-generic/statfs.h>
296 #endif /* _ASM_X86_STATFS_H */
297 --
298 1.9.1
299
300
301
302
303 1.1 src/patchsets/gentoo-headers/3.14/00_all_0007-uapi-netfilter_arp-use-__u8-instead-of-u_int8_t.patch
304
305 file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.14/00_all_0007-uapi-netfilter_arp-use-__u8-instead-of-u_int8_t.patch?rev=1.1&view=markup
306 plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.14/00_all_0007-uapi-netfilter_arp-use-__u8-instead-of-u_int8_t.patch?rev=1.1&content-type=text/plain
307
308 Index: 00_all_0007-uapi-netfilter_arp-use-__u8-instead-of-u_int8_t.patch
309 ===================================================================
310 From 220f71d95d3b4b14f7af01dc6a6d57ce96b1cc8f Mon Sep 17 00:00:00 2001
311 From: Mike Frysinger <vapier@g.o>
312 Date: Tue, 21 Jan 2014 21:39:24 -0500
313 Subject: [PATCH] uapi: netfilter_arp: use __u8 instead of u_int8_t
314
315 Similarly, the u_int8_t type is non-standard and not defined. Change
316 it to use __u8 like the rest of the netfilter headers.
317
318 Signed-off-by: Mike Frysinger <vapier@g.o>
319 ---
320 include/uapi/linux/netfilter_arp/arpt_mangle.h | 2 +-
321 1 file changed, 1 insertion(+), 1 deletion(-)
322
323 diff --git a/include/uapi/linux/netfilter_arp/arpt_mangle.h b/include/uapi/linux/netfilter_arp/arpt_mangle.h
324 index 250f502..8c2b16a 100644
325 --- a/include/uapi/linux/netfilter_arp/arpt_mangle.h
326 +++ b/include/uapi/linux/netfilter_arp/arpt_mangle.h
327 @@ -13,7 +13,7 @@ struct arpt_mangle
328 union {
329 struct in_addr tgt_ip;
330 } u_t;
331 - u_int8_t flags;
332 + __u8 flags;
333 int target;
334 };
335
336 --
337 1.9.1