From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5A274138AE9 for ; Thu, 28 Dec 2017 16:23:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3F22BE090A; Thu, 28 Dec 2017 16:23:14 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0CA2DE090A for ; Thu, 28 Dec 2017 16:23:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CB56233E4AD for ; Thu, 28 Dec 2017 16:23:12 +0000 (UTC) Received: by oystercatcher.gentoo.org (Postfix, from userid 2272) id 9B70DAFB9; Thu, 28 Dec 2017 16:23:11 +0000 (UTC) From: "Sergei Trofimovich (slyfox)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, slyfox@gentoo.org Subject: [gentoo-commits] gentoo commit in src/patchsets/gentoo-headers/4.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-do-not-build-relocs-tool-when-installing-headers.patch 00_all_0007-netlink-drop-int-cast-on-length-arg-in-NLMSG_OK.patch 00_all_0008-uapi-fix-System-V-buf-header-includes.patch X-VCS-Repository: gentoo X-VCS-Files: 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-do-not-build-relocs-tool-when-installing-headers.patch 00_all_0007-netlink-drop-int-cast-on-length-arg-in-NLMSG_OK.patch 00_all_0008-uapi-fix-System-V-buf-header-includes.patch X-VCS-Directories: src/patchsets/gentoo-headers/4.14 X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Message-Id: <20171228162311.9B70DAFB9@oystercatcher.gentoo.org> Date: Thu, 28 Dec 2017 16:23:11 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 5dd7725d-0308-48ee-ba1d-c8f362f8ba09 X-Archives-Hash: a8167b6d5311e4f3cb5780ec0f267ef3 slyfox 17/12/28 16:23:11 Added: 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-do-not-build-relocs-tool-when-installing-headers.patch 00_all_0007-netlink-drop-int-cast-on-length-arg-in-NLMSG_OK.patch 00_all_0008-uapi-fix-System-V-buf-header-includes.patch Log: 4.14: new base patchset for gentoo-headers Revision Changes Path 1.1 src/patchsets/gentoo-headers/4.14/00_all_0001-linux-stat.h-remove-__GLIBC__-checks.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/4.14/00_all_0001-linux-stat.h-remove-__GLIBC__-checks.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/4.14/00_all_0001-linux-stat.h-remove-__GLIBC__-checks.patch?rev=1.1&content-type=text/plain Index: 00_all_0001-linux-stat.h-remove-__GLIBC__-checks.patch =================================================================== >From f495b0039472488f9171b2407f72c1b09db113ae Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 29 Dec 2008 06:52:59 -0500 Subject: [PATCH] linux/stat.h: remove __GLIBC__ checks Only check __KERNEL__ so we don't assume the C library is glibc. Signed-off-by: Mike Frysinger --- include/uapi/linux/stat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/stat.h b/include/uapi/linux/stat.h index 7fec7e36d921..256ad24c64a8 100644 --- a/include/uapi/linux/stat.h +++ b/include/uapi/linux/stat.h @@ -2,7 +2,7 @@ #define _UAPI_LINUX_STAT_H -#if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2) +#if defined(__KERNEL__) #define S_IFMT 00170000 #define S_IFSOCK 0140000 -- 2.11.1 1.1 src/patchsets/gentoo-headers/4.14/00_all_0002-netfilter-pull-in-limits.h.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/4.14/00_all_0002-netfilter-pull-in-limits.h.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/4.14/00_all_0002-netfilter-pull-in-limits.h.patch?rev=1.1&content-type=text/plain Index: 00_all_0002-netfilter-pull-in-limits.h.patch =================================================================== >From 96c4838cd56a312321d6f4964bdd069b0014f219 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 9 May 2009 17:30:35 -0400 Subject: [PATCH] netfilter: pull in limits.h A few netfilter sub-headers use INT_MAX which is in limits.h. URL: http://bugs.gentoo.org/246160 Signed-off-by: Mike Frysinger --- include/uapi/linux/netfilter.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/netfilter.h b/include/uapi/linux/netfilter.h index 7550e9176a54..443554f678a3 100644 --- a/include/uapi/linux/netfilter.h +++ b/include/uapi/linux/netfilter.h @@ -6,6 +6,7 @@ #include #include #include +#include /* Responses from hook functions. */ #define NF_DROP 0 -- 2.11.1 1.1 src/patchsets/gentoo-headers/4.14/00_all_0003-convert-PAGE_SIZE-usage.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/4.14/00_all_0003-convert-PAGE_SIZE-usage.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/4.14/00_all_0003-convert-PAGE_SIZE-usage.patch?rev=1.1&content-type=text/plain Index: 00_all_0003-convert-PAGE_SIZE-usage.patch =================================================================== >From 526be191ee08800aebf550d02c864f09f02b882e Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 13 Feb 2010 03:09:23 -0500 Subject: [PATCH] convert PAGE_SIZE usage The size of a page may change at runtime or based on kernel settings, so a static value at compile time doesn't work. More importantly, no one exports PAGE_SIZE to user space anymore. URL: http://bugs.gentoo.org/301431 Signed-off-by: Mike Frysinger --- include/uapi/linux/binfmts.h | 3 ++- include/uapi/linux/resource.h | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/binfmts.h b/include/uapi/linux/binfmts.h index 4eb5972867c0..516bfcf62f64 100644 --- a/include/uapi/linux/binfmts.h +++ b/include/uapi/linux/binfmts.h @@ -1,6 +1,7 @@ #ifndef _UAPI_LINUX_BINFMTS_H #define _UAPI_LINUX_BINFMTS_H +#include #include struct pt_regs; @@ -11,7 +12,7 @@ struct pt_regs; * prevent the kernel from being unduly impacted by misaddressed pointers. * MAX_ARG_STRINGS is chosen to fit in a signed 32-bit integer. */ -#define MAX_ARG_STRLEN (PAGE_SIZE * 32) +#define MAX_ARG_STRLEN (sysconf(_SC_PAGESIZE) * 32) #define MAX_ARG_STRINGS 0x7FFFFFFF /* sizeof(linux_binprm->buf) */ diff --git a/include/uapi/linux/resource.h b/include/uapi/linux/resource.h index 36fb3b5fb181..58efd0799cd7 100644 --- a/include/uapi/linux/resource.h +++ b/include/uapi/linux/resource.h @@ -68,7 +68,8 @@ struct rlimit64 { * GPG2 wants 64kB of mlocked memory, to make sure pass phrases * and other sensitive information are never written to disk. */ -#define MLOCK_LIMIT ((PAGE_SIZE > 64*1024) ? PAGE_SIZE : 64*1024) +/* No one currently defines PAGE_SIZE bigger than 64kB */ +#define MLOCK_LIMIT (64 * 1024) /* * Due to binary compatibility, the actual resource numbers -- 2.11.1 1.1 src/patchsets/gentoo-headers/4.14/00_all_0004-asm-generic-fcntl.h-namespace-kernel-file-structs.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/4.14/00_all_0004-asm-generic-fcntl.h-namespace-kernel-file-structs.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/4.14/00_all_0004-asm-generic-fcntl.h-namespace-kernel-file-structs.patch?rev=1.1&content-type=text/plain Index: 00_all_0004-asm-generic-fcntl.h-namespace-kernel-file-structs.patch =================================================================== >From 558a2df28dcca207482df654453ddb603bddd6ba Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 29 Dec 2008 07:39:14 -0500 Subject: [PATCH] asm-generic/fcntl.h: namespace kernel file structs No one should be using these structs, but just in case they are, keep them available in the __kernel_ namespace. Otherwise, trying to include something like: #include #include leads to horrible failure. URL: http://bugs.gentoo.org/244470 URL: http://bugs.gentoo.org/388633 Signed-off-by: Mike Frysinger --- include/uapi/asm-generic/fcntl.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/uapi/asm-generic/fcntl.h b/include/uapi/asm-generic/fcntl.h index e063effe0cc1..a98769e712ce 100644 --- a/include/uapi/asm-generic/fcntl.h +++ b/include/uapi/asm-generic/fcntl.h @@ -152,7 +152,7 @@ #define F_OWNER_PID 1 #define F_OWNER_PGRP 2 -struct f_owner_ex { +struct __kernel_f_owner_ex { int type; __kernel_pid_t pid; }; @@ -192,7 +192,7 @@ struct f_owner_ex { #define __ARCH_FLOCK_PAD #endif -struct flock { +struct __kernel_flock { short l_type; short l_whence; __kernel_off_t l_start; @@ -207,7 +207,7 @@ struct flock { #define __ARCH_FLOCK64_PAD #endif -struct flock64 { +struct __kernel_flock64 { short l_type; short l_whence; __kernel_loff_t l_start; -- 2.11.1 1.1 src/patchsets/gentoo-headers/4.14/00_all_0005-unifdef-drop-unused-errno.h-include.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/4.14/00_all_0005-unifdef-drop-unused-errno.h-include.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/4.14/00_all_0005-unifdef-drop-unused-errno.h-include.patch?rev=1.1&content-type=text/plain Index: 00_all_0005-unifdef-drop-unused-errno.h-include.patch =================================================================== >From 84d4d4f04c75a35c964d419a6cbda5f9a3f4c10e Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 6 Dec 2011 17:22:42 -0500 Subject: [PATCH] unifdef: drop unused errno.h include This is the only header on my system that ends up requiring kernel headers, so if the kernel headers aren't available, we end up being unable to install kernel headers :). Since this file doesn't actually use anything from errno.h, drop the include so it at least makes us a bit more robust on glibc. Signed-off-by: Mike Frysinger --- scripts/unifdef.c | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/unifdef.c b/scripts/unifdef.c index 7493c0ee51cc..c5dfae538b08 100644 --- a/scripts/unifdef.c +++ b/scripts/unifdef.c @@ -48,7 +48,6 @@ #include #include -#include #include #include #include -- 2.11.1 1.1 src/patchsets/gentoo-headers/4.14/00_all_0006-x86-do-not-build-relocs-tool-when-installing-headers.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/4.14/00_all_0006-x86-do-not-build-relocs-tool-when-installing-headers.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/4.14/00_all_0006-x86-do-not-build-relocs-tool-when-installing-headers.patch?rev=1.1&content-type=text/plain Index: 00_all_0006-x86-do-not-build-relocs-tool-when-installing-headers.patch =================================================================== >From eb087143ecac798ce473824dd51b3da0973943b8 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 15 Nov 2014 03:37:38 -0500 Subject: [PATCH] x86: do not build relocs tool when installing headers This isn't needed to install headers, so don't bother building it. Otherwise we run into a chicken/egg issue where we need the kernel headers in order to install the kernel headers. It's also a waste of time. Signed-off-by: Mike Frysinger --- arch/x86/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/Makefile b/arch/x86/Makefile index 2d449337a360..a41878a7f714 100644 --- a/arch/x86/Makefile +++ b/arch/x86/Makefile @@ -182,8 +182,10 @@ KBUILD_CFLAGS += -fno-asynchronous-unwind-tables KBUILD_CFLAGS += $(mflags-y) KBUILD_AFLAGS += $(mflags-y) +ifneq ($(filter-out headers_install,$(MAKECMDGOALS)),) archscripts: scripts_basic $(Q)$(MAKE) $(build)=arch/x86/tools relocs +endif ### # Syscall table generation -- 2.11.1 1.1 src/patchsets/gentoo-headers/4.14/00_all_0007-netlink-drop-int-cast-on-length-arg-in-NLMSG_OK.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/4.14/00_all_0007-netlink-drop-int-cast-on-length-arg-in-NLMSG_OK.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/4.14/00_all_0007-netlink-drop-int-cast-on-length-arg-in-NLMSG_OK.patch?rev=1.1&content-type=text/plain Index: 00_all_0007-netlink-drop-int-cast-on-length-arg-in-NLMSG_OK.patch =================================================================== >From c407e4630f1522c1c2cf9723faa4d4140675856c Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 5 Mar 2015 00:26:58 -0500 Subject: [PATCH] netlink: drop (int) cast on length arg in NLMSG_OK The NLMSG_OK macro compares three things: - the len arg from the user - a size_t: sizeof(struct nlmsghdr) - an int: sizeof(struct nlmsghdr) casted - an u32: the nlmsghdr->nlmsg_len member When building with -Wsign-compare, this macro triggers a signed compare warning. This is because it compares len to an int, and then compares it to a u32. If len is signed, we get a warning due to the last test. If len is unsigned, we get a warning due to the first test. Like in strace: socketutils.c:145:8: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] Lets drop the int cast on the first sizeof. This way, once the user casts len to an unsigned value, everything shakes out correctly. Signed-off-by: Mike Frysinger --- include/uapi/linux/netlink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/linux/netlink.h b/include/uapi/linux/netlink.h index 0dba4e4ed2be..56b79fbd84dc 100644 --- a/include/uapi/linux/netlink.h +++ b/include/uapi/linux/netlink.h @@ -85,7 +85,7 @@ struct nlmsghdr { #define NLMSG_DATA(nlh) ((void*)(((char*)nlh) + NLMSG_LENGTH(0))) #define NLMSG_NEXT(nlh,len) ((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \ (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len))) -#define NLMSG_OK(nlh,len) ((len) >= (int)sizeof(struct nlmsghdr) && \ +#define NLMSG_OK(nlh,len) ((len) >= sizeof(struct nlmsghdr) && \ (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \ (nlh)->nlmsg_len <= (len)) #define NLMSG_PAYLOAD(nlh,len) ((nlh)->nlmsg_len - NLMSG_SPACE((len))) -- 2.11.1 1.1 src/patchsets/gentoo-headers/4.14/00_all_0008-uapi-fix-System-V-buf-header-includes.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/4.14/00_all_0008-uapi-fix-System-V-buf-header-includes.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/4.14/00_all_0008-uapi-fix-System-V-buf-header-includes.patch?rev=1.1&content-type=text/plain Index: 00_all_0008-uapi-fix-System-V-buf-header-includes.patch =================================================================== >From a1842c2ea8add14ed357ba2c9ff7c15331f32179 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 2 Nov 2015 13:30:12 -0500 Subject: [PATCH] uapi: fix System V buf header includes These headers rely on kernel types but don't include the other headers that define them. So when you try to include them directly, you often hit build failures due to unknown types. Signed-off-by: Mike Frysinger --- include/uapi/asm-generic/ipcbuf.h | 2 ++ include/uapi/asm-generic/msgbuf.h | 3 +++ include/uapi/asm-generic/sembuf.h | 2 ++ include/uapi/asm-generic/shmbuf.h | 2 ++ 4 files changed, 9 insertions(+) diff --git a/include/uapi/asm-generic/ipcbuf.h b/include/uapi/asm-generic/ipcbuf.h index 3dbcc1e771c0..c37b32ab1304 100644 --- a/include/uapi/asm-generic/ipcbuf.h +++ b/include/uapi/asm-generic/ipcbuf.h @@ -1,6 +1,8 @@ #ifndef __ASM_GENERIC_IPCBUF_H #define __ASM_GENERIC_IPCBUF_H +#include + /* * The generic ipc64_perm structure: * Note extra padding because this structure is passed back and forth diff --git a/include/uapi/asm-generic/msgbuf.h b/include/uapi/asm-generic/msgbuf.h index f55ecc43c60f..473dcdc305a1 100644 --- a/include/uapi/asm-generic/msgbuf.h +++ b/include/uapi/asm-generic/msgbuf.h @@ -1,7 +1,10 @@ #ifndef __ASM_GENERIC_MSGBUF_H #define __ASM_GENERIC_MSGBUF_H +#include #include +#include + /* * generic msqid64_ds structure. * diff --git a/include/uapi/asm-generic/sembuf.h b/include/uapi/asm-generic/sembuf.h index 4cb2c13e5090..f57240f7e6a2 100644 --- a/include/uapi/asm-generic/sembuf.h +++ b/include/uapi/asm-generic/sembuf.h @@ -1,7 +1,9 @@ #ifndef __ASM_GENERIC_SEMBUF_H #define __ASM_GENERIC_SEMBUF_H +#include #include +#include /* * The semid64_ds structure for x86 architecture. diff --git a/include/uapi/asm-generic/shmbuf.h b/include/uapi/asm-generic/shmbuf.h index 7e9fb2f0853b..f9e28e413c3c 100644 --- a/include/uapi/asm-generic/shmbuf.h +++ b/include/uapi/asm-generic/shmbuf.h @@ -1,7 +1,9 @@ #ifndef __ASM_GENERIC_SHMBUF_H #define __ASM_GENERIC_SHMBUF_H +#include #include +#include /* * The shmid64_ds structure for x86 architecture. -- 2.11.1