Browse code

kernels: version update to 4.4.81

Change-Id: Id00e876468619e31889807288495c9359601e073
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3479
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>

Alexey Makhalov authored on 2017/08/11 05:39:33
Showing 5 changed files
... ...
@@ -1,6 +1,6 @@
1 1
 Summary:	Linux API header files
2 2
 Name:		linux-api-headers
3
-Version:	4.4.74
3
+Version:	4.4.81
4 4
 Release:	1%{?dist}
5 5
 License:	GPLv2
6 6
 URL:		http://www.kernel.org/
... ...
@@ -8,7 +8,7 @@ Group:		System Environment/Kernel
8 8
 Vendor:		VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:    	http://www.kernel.org/pub/linux/kernel/v4.x/linux-%{version}.tar.xz
11
-%define sha1 linux=80b338e4442f57563dceb71be4acc1f5a5c234a0
11
+%define sha1 linux=b13679a3a9fc9f38c67bdbe321b426e3f19373ad
12 12
 BuildArch:	noarch
13 13
 %description
14 14
 The Linux API Headers expose the kernel's API for use by Glibc.
... ...
@@ -25,6 +25,8 @@ find /%{buildroot}%{_includedir} \( -name .install -o -name ..install.cmd \) -de
25 25
 %defattr(-,root,root)
26 26
 %{_includedir}/*
27 27
 %changelog
28
+*   Fri Aug 11 2017 Alexey Makhalov <amakhalov@vmware.com> 4.4.81-1
29
+-   Version update
28 30
 *   Wed Jun 28 2017 Alexey Makhalov <amakhalov@vmware.com> 4.4.74-1
29 31
 -   Update version
30 32
 *   Wed Jun 7 2017 Alexey Makhalov <amakhalov@vmware.com> 4.4.71-1
31 33
deleted file mode 100644
... ...
@@ -1,51 +0,0 @@
1
-From 6399f1fae4ec29fab5ec76070435555e256ca3a6 Mon Sep 17 00:00:00 2001
2
-From: Sabrina Dubroca <sd@queasysnail.net>
3
-Date: Wed, 19 Jul 2017 22:28:55 +0200
4
-Subject: [PATCH] ipv6: avoid overflow of offset in ip6_find_1stfragopt
5
-
6
-In some cases, offset can overflow and can cause an infinite loop in
7
-ip6_find_1stfragopt(). Make it unsigned int to prevent the overflow, and
8
-cap it at IPV6_MAXPLEN, since packets larger than that should be invalid.
9
-
10
-This problem has been here since before the beginning of git history.
11
-
12
-Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
13
-Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
14
-Signed-off-by: David S. Miller <davem@davemloft.net>
15
- net/ipv6/output_core.c | 8 ++++++--
16
- 1 file changed, 6 insertions(+), 2 deletions(-)
17
-
18
-diff --git a/net/ipv6/output_core.c b/net/ipv6/output_core.c
19
-index e9065b8d3af85..abb2c307fbe83 100644
20
-+++ b/net/ipv6/output_core.c
21
-@@ -78,7 +78,7 @@ EXPORT_SYMBOL(ipv6_select_ident);
22
- 
23
- int ip6_find_1stfragopt(struct sk_buff *skb, u8 **nexthdr)
24
- {
25
--	u16 offset = sizeof(struct ipv6hdr);
26
-+	unsigned int offset = sizeof(struct ipv6hdr);
27
- 	unsigned int packet_len = skb_tail_pointer(skb) -
28
- 		skb_network_header(skb);
29
- 	int found_rhdr = 0;
30
-@@ -86,6 +86,7 @@ int ip6_find_1stfragopt(struct sk_buff *skb, u8 **nexthdr)
31
- 
32
- 	while (offset <= packet_len) {
33
- 		struct ipv6_opt_hdr *exthdr;
34
-+		unsigned int len;
35
- 
36
- 		switch (**nexthdr) {
37
- 
38
-@@ -111,7 +112,10 @@ int ip6_find_1stfragopt(struct sk_buff *skb, u8 **nexthdr)
39
- 
40
- 		exthdr = (struct ipv6_opt_hdr *)(skb_network_header(skb) +
41
- 						 offset);
42
--		offset += ipv6_optlen(exthdr);
43
-+		len = ipv6_optlen(exthdr);
44
-+		if (len + offset >= IPV6_MAXPLEN)
45
-+			return -EINVAL;
46
-+		offset += len;
47
- 		*nexthdr = &exthdr->nexthdr;
48
- 	}
49
- 
... ...
@@ -1,15 +1,15 @@
1 1
 %global security_hardening none
2 2
 Summary:       Kernel
3 3
 Name:          linux-esx
4
-Version:       4.4.79
5
-Release:       2%{?dist}
4
+Version:       4.4.81
5
+Release:       1%{?dist}
6 6
 License:       GPLv2
7 7
 URL:           http://www.kernel.org/
8 8
 Group:         System Environment/Kernel
9 9
 Vendor:        VMware, Inc.
10 10
 Distribution:  Photon
11 11
 Source0:       http://www.kernel.org/pub/linux/kernel/v4.x/linux-%{version}.tar.xz
12
-%define sha1 linux=5b249aa3410b464515178df8f9a1ff0e3ba3f67e
12
+%define sha1 linux=b13679a3a9fc9f38c67bdbe321b426e3f19373ad
13 13
 Source1:       config-esx
14 14
 Patch0:        double-tcp_mem-limits.patch
15 15
 Patch1:        linux-4.4-sysctl-sched_weighted_cpuload_uses_rla.patch
... ...
@@ -35,8 +35,6 @@ Patch20:       vmci-1.1.4.0-use-32bit-atomics-for-queue-headers.patch
35 35
 Patch21:       vmci-1.1.5.0-doorbell-create-and-destroy-fixes.patch
36 36
 Patch22:       net-9p-vsock.patch
37 37
 Patch23:       p9fs_dir_readdir-offset-support.patch
38
-# Fix CVE-2017-7542
39
-Patch24:        ipv6-avoid-overflow-of-offset-in-ip6_find_1stfragopt.patch
40 38
 
41 39
 BuildRequires: bc
42 40
 BuildRequires: kbd
... ...
@@ -97,7 +95,6 @@ The Linux package contains the Linux kernel doc files
97 97
 %patch21 -p1
98 98
 %patch22 -p1
99 99
 %patch23 -p1
100
-%patch24 -p1
101 100
 
102 101
 %build
103 102
 # patch vmw_balloon driver
... ...
@@ -186,6 +183,8 @@ ln -sf linux-%{uname_r}.cfg /boot/photon.cfg
186 186
 /usr/src/linux-headers-%{uname_r}
187 187
 
188 188
 %changelog
189
+*   Fri Aug 11 2017 Alexey Makhalov <amakhalov@vmware.com> 4.4.81-1
190
+-   Version update
189 191
 *   Tue Aug 08 2017 Alexey Makhalov <amakhalov@vmware.com> 4.4.79-2
190 192
 -   [bugfix] Do not fallback to syscall from VDSO on clock_gettime(MONOTONIC)
191 193
 -   Fix CVE-2017-7542
... ...
@@ -1,15 +1,15 @@
1 1
 %global security_hardening none
2 2
 Summary:        Kernel
3 3
 Name:           linux
4
-Version:    	4.4.79
5
-Release:    	2%{?dist}
4
+Version:    	4.4.81
5
+Release:    	1%{?dist}
6 6
 License:    	GPLv2
7 7
 URL:        	http://www.kernel.org/
8 8
 Group:        	System Environment/Kernel
9 9
 Vendor:         VMware, Inc.
10 10
 Distribution: 	Photon
11 11
 Source0:    	http://www.kernel.org/pub/linux/kernel/v4.x/%{name}-%{version}.tar.xz
12
-%define sha1 linux=5b249aa3410b464515178df8f9a1ff0e3ba3f67e
12
+%define sha1 linux=b13679a3a9fc9f38c67bdbe321b426e3f19373ad
13 13
 Source1:	config
14 14
 %define ena_version 1.1.3
15 15
 Source2:    	https://github.com/amzn/amzn-drivers/archive/ena_linux_1.1.3.tar.gz
... ...
@@ -38,8 +38,6 @@ Patch17:        0001-Revert-crypto-testmgr-Disable-fips-allowed-for-authe.patch
38 38
 Patch18:        0002-allow-also-ecb-cipher_null.patch
39 39
 # Fix CVE-2017-10911
40 40
 Patch19:        xen-blkback-dont-leak-stack-data-via-response-ring.patch
41
-# Fix CVE-2017-7542
42
-Patch20:        ipv6-avoid-overflow-of-offset-in-ip6_find_1stfragopt.patch
43 41
 
44 42
 BuildRequires:  bc
45 43
 BuildRequires:  kbd
... ...
@@ -130,7 +128,6 @@ This package contains the 'perf' performance analysis tools for Linux kernel.
130 130
 %patch17 -p1
131 131
 %patch18 -p1
132 132
 %patch19 -p1
133
-%patch20 -p1
134 133
 
135 134
 %build
136 135
 make mrproper
... ...
@@ -283,6 +280,8 @@ ln -sf %{name}-%{uname_r}.cfg /boot/photon.cfg
283 283
 /usr/share/perf-core
284 284
 
285 285
 %changelog
286
+*   Fri Aug 11 2017 Alexey Makhalov <amakhalov@vmware.com> 4.4.81-1
287
+-   Version update
286 288
 *   Tue Aug 08 2017 Alexey Makhalov <amakhalov@vmware.com> 4.4.79-2
287 289
 -   Fix CVE-2017-10911, CVE-2017-7542
288 290
 -   [bugfix] Added ccm,gcm,ghash,zlib,lzo crypto modules to avoid
289 291
new file mode 100755
... ...
@@ -0,0 +1,18 @@
0
+#! /bin/sh
1
+
2
+specs="linux-api-headers/linux-api-headers.spec linux/linux.spec linux/linux-esx.spec"
3
+
4
+tarball_url=`curl -s https://www.kernel.org  | grep -Eo 'https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.4.[0-9]*.tar.xz'`
5
+tarball=$(basename $tarball_url)
6
+version=`echo $tarball | sed 's/linux-//; s/.tar.xz//'`
7
+echo latest linux version: $version
8
+test -f stage/SOURCES/$tarball && echo up to date && exit 0
9
+$(cd stage/SOURCES && wget $tarball_url)
10
+sha1=`sha1sum stage/SOURCES/$tarball | awk '{print $1}'`
11
+changelog_entry=$(echo "`date +"%a %b %d %Y"` `git config user.name` <`git config user.email`> $version-1")
12
+for spec in $specs; do
13
+	sed -i '/^Version:/ s/4.4.[0-9]*/'$version'/' SPECS/$spec
14
+	sed -i '/^Release:/ s/[0-9]*%/1%/' SPECS/$spec
15
+	sed -i '/^%define sha1 linux/ s/=[0-9a-f]*$/='$sha1'/' SPECS/$spec
16
+	sed -i '/^%changelog/a*   '"$changelog_entry"'\n-   Version update' SPECS/$spec
17
+done