Browse code

kernels: Update to version 4.19.6 and enable EFI support in linux-aws

Remove 0055-net-ipv4-defensive-cipso-option-parsing.patch from
linux-aws, since it got merged in linux-stable 4.19.2.

Enable EFI in linux-aws config in order to support kernel signing.

Change-Id: I27b866bdeec59711000b00549c69f8023924a79e
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/6242
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Alexey Makhalov <amakhalov@vmware.com>

Srivatsa S. Bhat (VMware) authored on 2018/12/05 08:17:19
Showing 9 changed files
... ...
@@ -1,6 +1,6 @@
1 1
 Summary:	Linux API header files
2 2
 Name:		linux-api-headers
3
-Version:	4.19.1
3
+Version:	4.19.6
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=5ece7a7149eeef06bba906eeabbc2f29a8ac3952
11
+%define sha1 linux=d96fd72968960268b2203a3b4aff9497cd3abc61
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
+*   Mon Dec 10 2018 Srivatsa S. Bhat (VMware) <srivatsa@csail.mit.edu> 4.19.6-1
29
+-   Update to version 4.19.6
28 30
 *   Mon Nov 05 2018 Srivatsa S. Bhat (VMware) <srivatsa@csail.mit.edu> 4.19.1-1
29 31
 -   Update to version 4.19.1
30 32
 *   Thu Sep 20 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 4.18.9-1
... ...
@@ -22,7 +22,7 @@ Signed-off-by: Srivatsa S. Bhat (VMware) <srivatsa@csail.mit.edu>
22 22
  2 files changed, 19 insertions(+)
23 23
 
24 24
 diff --git a/drivers/xen/manage.c b/drivers/xen/manage.c
25
-index 1c9750fefa64..1720225eecb6 100644
25
+index 609fca8..2676b52 100644
26 26
 --- a/drivers/xen/manage.c
27 27
 +++ b/drivers/xen/manage.c
28 28
 @@ -50,6 +50,21 @@ enum suspend_modes {
... ...
@@ -48,10 +48,10 @@ index 1c9750fefa64..1720225eecb6 100644
48 48
  	int cancelled;
49 49
  };
50 50
 diff --git a/include/xen/xen-ops.h b/include/xen/xen-ops.h
51
-index a95e65ec83c3..2e4b476b516c 100644
51
+index f6e798d..2aa94d8 100644
52 52
 --- a/include/xen/xen-ops.h
53 53
 +++ b/include/xen/xen-ops.h
54
-@@ -38,6 +38,10 @@ u64 xen_steal_clock(int cpu);
54
+@@ -39,6 +39,10 @@ u64 xen_steal_clock(int cpu);
55 55
  
56 56
  int xen_setup_shutdown_event(void);
57 57
  
... ...
@@ -61,7 +61,6 @@ index a95e65ec83c3..2e4b476b516c 100644
61 61
 +
62 62
  extern unsigned long *xen_contiguous_bitmap;
63 63
  
64
- #ifdef CONFIG_XEN_PV
64
+ #if defined(CONFIG_XEN_PV) || defined(CONFIG_ARM) || defined(CONFIG_ARM64)
65 65
 -- 
66
-2.14.4
67
-
66
+2.7.4
... ...
@@ -23,10 +23,10 @@ Signed-off-by: Srivatsa S. Bhat (VMware) <srivatsa@csail.mit.edu>
23 23
  3 files changed, 56 insertions(+)
24 24
 
25 25
 diff --git a/arch/x86/xen/enlighten_hvm.c b/arch/x86/xen/enlighten_hvm.c
26
-index 8afb6dd311f1..c78b3e8fb2e5 100644
26
+index d24ad16..4196a65 100644
27 27
 --- a/arch/x86/xen/enlighten_hvm.c
28 28
 +++ b/arch/x86/xen/enlighten_hvm.c
29
-@@ -201,6 +201,7 @@ static void __init xen_hvm_guest_init(void)
29
+@@ -202,6 +202,7 @@ static void __init xen_hvm_guest_init(void)
30 30
  	if (xen_feature(XENFEAT_hvm_callback_vector))
31 31
  		xen_have_vector_callback = 1;
32 32
  
... ...
@@ -35,7 +35,7 @@ index 8afb6dd311f1..c78b3e8fb2e5 100644
35 35
  	WARN_ON(xen_cpuhp_setup(xen_cpu_up_prepare_hvm, xen_cpu_dead_hvm));
36 36
  	xen_unplug_emulated_devices();
37 37
 diff --git a/arch/x86/xen/suspend.c b/arch/x86/xen/suspend.c
38
-index 3e3a58ea669e..5e542b7e5802 100644
38
+index 1d83152..784c448 100644
39 39
 --- a/arch/x86/xen/suspend.c
40 40
 +++ b/arch/x86/xen/suspend.c
41 41
 @@ -2,17 +2,22 @@
... ...
@@ -61,7 +61,7 @@ index 3e3a58ea669e..5e542b7e5802 100644
61 61
  
62 62
  #include "xen-ops.h"
63 63
  #include "mmu.h"
64
-@@ -78,3 +83,51 @@ void xen_arch_suspend(void)
64
+@@ -82,3 +87,51 @@ void xen_arch_suspend(void)
65 65
  
66 66
  	on_each_cpu(xen_vcpu_notify_suspend, NULL, 1);
67 67
  }
... ...
@@ -114,10 +114,10 @@ index 3e3a58ea669e..5e542b7e5802 100644
114 114
 +		register_syscore_ops(&xen_hvm_syscore_ops);
115 115
 +}
116 116
 diff --git a/include/xen/xen-ops.h b/include/xen/xen-ops.h
117
-index 2e4b476b516c..90c2b41eb4f3 100644
117
+index 2aa94d8..77f65e5 100644
118 118
 --- a/include/xen/xen-ops.h
119 119
 +++ b/include/xen/xen-ops.h
120
-@@ -42,6 +42,8 @@ bool xen_suspend_mode_is_xen_suspend(void);
120
+@@ -43,6 +43,8 @@ bool xen_suspend_mode_is_xen_suspend(void);
121 121
  bool xen_suspend_mode_is_pm_suspend(void);
122 122
  bool xen_suspend_mode_is_pm_hibernation(void);
123 123
  
... ...
@@ -125,7 +125,7 @@ index 2e4b476b516c..90c2b41eb4f3 100644
125 125
 +
126 126
  extern unsigned long *xen_contiguous_bitmap;
127 127
  
128
- #ifdef CONFIG_XEN_PV
128
+ #if defined(CONFIG_XEN_PV) || defined(CONFIG_ARM) || defined(CONFIG_ARM64)
129 129
 -- 
130
-2.14.4
130
+2.7.4
131 131
 
132 132
deleted file mode 100644
... ...
@@ -1,62 +0,0 @@
1
-From 15541c4d514bb189c3e4dbad9bd9f3b957d7c4d0 Mon Sep 17 00:00:00 2001
2
-From: Frank van der Linden <fllinden@amazon.com>
3
-Date: Fri, 31 Aug 2018 18:34:53 +0000
4
-Subject: net/ipv4: defensive cipso option parsing
5
-
6
-commit 40413955ee265a5e42f710940ec78f5450d49149 fixed a possible
7
-infinite loop in the IP option parsing of CIPSO. The fix assumes
8
-that ip_option_compile filtered out all zero length options and
9
-that no other one-byte options beside IPOPT_END and IPOPT_NOOP
10
-exist.
11
-While this assumption currently holds true, add explicit checks
12
-for zero length and invalid length options to be safe for the
13
-future. Even though ip_options_compile should have validated the
14
-options, the introduction of new one-byte options can still
15
-confuse this code without the additional checks.
16
-
17
-Signed-off-by: Stefan Nuernberger <snu@amazon.com>
18
-Signed-off-by: Srivatsa S. Bhat (VMware) <srivatsa@csail.mit.edu>
19
- net/ipv4/cipso_ipv4.c | 10 ++++++++--
20
- 1 file changed, 8 insertions(+), 2 deletions(-)
21
-
22
-diff --git a/net/ipv4/cipso_ipv4.c b/net/ipv4/cipso_ipv4.c
23
-index 82178cc69c96..f291b57b8474 100644
24
-+++ b/net/ipv4/cipso_ipv4.c
25
-@@ -1512,7 +1512,7 @@ static int cipso_v4_parsetag_loc(const struct cipso_v4_doi *doi_def,
26
-  *
27
-  * Description:
28
-  * Parse the packet's IP header looking for a CIPSO option.  Returns a pointer
29
-- * to the start of the CIPSO option on success, NULL if one if not found.
30
-+ * to the start of the CIPSO option on success, NULL if one is not found.
31
-  *
32
-  */
33
- unsigned char *cipso_v4_optptr(const struct sk_buff *skb)
34
-@@ -1522,9 +1522,11 @@ unsigned char *cipso_v4_optptr(const struct sk_buff *skb)
35
- 	int optlen;
36
- 	int taglen;
37
- 
38
--	for (optlen = iph->ihl*4 - sizeof(struct iphdr); optlen > 0; ) {
39
-+	for (optlen = iph->ihl*4 - sizeof(struct iphdr); optlen > 1; ) {
40
- 		switch (optptr[0]) {
41
- 		case IPOPT_CIPSO:
42
-+			if (!optptr[1] || optptr[1] > optlen)
43
-+				return NULL;
44
- 			return optptr;
45
- 		case IPOPT_END:
46
- 			return NULL;
47
-@@ -1534,6 +1536,10 @@ unsigned char *cipso_v4_optptr(const struct sk_buff *skb)
48
- 		default:
49
- 			taglen = optptr[1];
50
- 		}
51
-+
52
-+		if (!taglen || taglen > optlen)
53
-+			break;
54
-+
55
- 		optlen -= taglen;
56
- 		optptr += taglen;
57
- 	}
58
-2.14.4
59
-
... ...
@@ -1,6 +1,6 @@
1 1
 #
2 2
 # Automatically generated file; DO NOT EDIT.
3
-# Linux/x86 4.19.1 Kernel Configuration
3
+# Linux/x86 4.19.6 Kernel Configuration
4 4
 #
5 5
 
6 6
 #
... ...
@@ -397,7 +397,9 @@ CONFIG_X86_SMAP=y
397 397
 CONFIG_X86_INTEL_UMIP=y
398 398
 # CONFIG_X86_INTEL_MPX is not set
399 399
 CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS=y
400
-# CONFIG_EFI is not set
400
+CONFIG_EFI=y
401
+CONFIG_EFI_STUB=y
402
+# CONFIG_EFI_MIXED is not set
401 403
 CONFIG_SECCOMP=y
402 404
 # CONFIG_HZ_100 is not set
403 405
 CONFIG_HZ_250=y
... ...
@@ -484,6 +486,7 @@ CONFIG_ACPI_HOTPLUG_IOAPIC=y
484 484
 CONFIG_ACPI_SBS=m
485 485
 # CONFIG_ACPI_HED is not set
486 486
 # CONFIG_ACPI_CUSTOM_METHOD is not set
487
+# CONFIG_ACPI_BGRT is not set
487 488
 # CONFIG_ACPI_REDUCED_HARDWARE_ONLY is not set
488 489
 # CONFIG_ACPI_NFIT is not set
489 490
 CONFIG_HAVE_ACPI_APEI=y
... ...
@@ -641,6 +644,19 @@ CONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK=y
641 641
 # CONFIG_ISCSI_IBFT_FIND is not set
642 642
 # CONFIG_FW_CFG_SYSFS is not set
643 643
 # CONFIG_GOOGLE_FIRMWARE is not set
644
+
645
+#
646
+# EFI (Extensible Firmware Interface) Support
647
+#
648
+# CONFIG_EFI_VARS is not set
649
+CONFIG_EFI_ESRT=y
650
+# CONFIG_EFI_RUNTIME_MAP is not set
651
+# CONFIG_EFI_FAKE_MEMMAP is not set
652
+CONFIG_EFI_RUNTIME_WRAPPERS=y
653
+# CONFIG_EFI_CAPSULE_LOADER is not set
654
+# CONFIG_EFI_TEST is not set
655
+# CONFIG_APPLE_PROPERTIES is not set
656
+# CONFIG_RESET_ATTACK_MITIGATION is not set
644 657
 CONFIG_UEFI_CPER=y
645 658
 CONFIG_UEFI_CPER_X86=y
646 659
 
... ...
@@ -2971,6 +2987,7 @@ CONFIG_FB_CIRRUS=m
2971 2971
 # CONFIG_FB_VGA16 is not set
2972 2972
 # CONFIG_FB_UVESA is not set
2973 2973
 CONFIG_FB_VESA=y
2974
+# CONFIG_FB_EFI is not set
2974 2975
 # CONFIG_FB_N411 is not set
2975 2976
 # CONFIG_FB_HGA is not set
2976 2977
 # CONFIG_FB_OPENCORES is not set
... ...
@@ -3525,6 +3542,7 @@ CONFIG_XEN_PRIVCMD=m
3525 3525
 # CONFIG_XEN_ACPI_PROCESSOR is not set
3526 3526
 # CONFIG_XEN_MCE_LOG is not set
3527 3527
 CONFIG_XEN_HAVE_PVMMU=y
3528
+CONFIG_XEN_EFI=y
3528 3529
 CONFIG_XEN_AUTO_XLATE=y
3529 3530
 CONFIG_XEN_ACPI=y
3530 3531
 # CONFIG_XEN_SYMS is not set
... ...
@@ -3846,6 +3864,7 @@ CONFIG_HUGETLB_PAGE=y
3846 3846
 CONFIG_MEMFD_CREATE=y
3847 3847
 CONFIG_ARCH_HAS_GIGANTIC_PAGE=y
3848 3848
 CONFIG_CONFIGFS_FS=m
3849
+CONFIG_EFIVAR_FS=m
3849 3850
 CONFIG_MISC_FILESYSTEMS=y
3850 3851
 # CONFIG_ORANGEFS_FS is not set
3851 3852
 # CONFIG_ADFS_FS is not set
... ...
@@ -4216,7 +4235,6 @@ CONFIG_CRYPTO_SERPENT_SSE2_X86_64=m
4216 4216
 CONFIG_CRYPTO_SERPENT_AVX_X86_64=m
4217 4217
 CONFIG_CRYPTO_SERPENT_AVX2_X86_64=m
4218 4218
 # CONFIG_CRYPTO_SM4 is not set
4219
-# CONFIG_CRYPTO_SPECK is not set
4220 4219
 CONFIG_CRYPTO_TEA=m
4221 4220
 CONFIG_CRYPTO_TWOFISH=m
4222 4221
 CONFIG_CRYPTO_TWOFISH_COMMON=m
... ...
@@ -4360,7 +4378,7 @@ CONFIG_CLZ_TAB=y
4360 4360
 CONFIG_IRQ_POLL=y
4361 4361
 CONFIG_MPILIB=y
4362 4362
 CONFIG_OID_REGISTRY=y
4363
-CONFIG_UCS2_STRING=m
4363
+CONFIG_UCS2_STRING=y
4364 4364
 CONFIG_FONT_SUPPORT=y
4365 4365
 # CONFIG_FONTS is not set
4366 4366
 CONFIG_FONT_8x8=y
... ...
@@ -4566,8 +4584,10 @@ CONFIG_TRACE_IRQFLAGS_SUPPORT=y
4566 4566
 # CONFIG_X86_VERBOSE_BOOTUP is not set
4567 4567
 CONFIG_EARLY_PRINTK=y
4568 4568
 # CONFIG_EARLY_PRINTK_DBGP is not set
4569
+# CONFIG_EARLY_PRINTK_EFI is not set
4569 4570
 # CONFIG_EARLY_PRINTK_USB_XDBC is not set
4570 4571
 # CONFIG_X86_PTDUMP is not set
4572
+# CONFIG_EFI_PGT_DUMP is not set
4571 4573
 # CONFIG_DEBUG_WX is not set
4572 4574
 CONFIG_DOUBLEFAULT=y
4573 4575
 # CONFIG_DEBUG_TLBFLUSH is not set
... ...
@@ -1,15 +1,15 @@
1 1
 %global security_hardening none
2 2
 Summary:        Kernel
3 3
 Name:           linux-aws
4
-Version:        4.19.1
5
-Release:        3%{?kat_build:.%kat_build}%{?dist}
4
+Version:        4.19.6
5
+Release:        1%{?kat_build:.%kat_build}%{?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=5ece7a7149eeef06bba906eeabbc2f29a8ac3952
12
+%define sha1 linux=d96fd72968960268b2203a3b4aff9497cd3abc61
13 13
 Source1:	config-aws
14 14
 Source2:	initramfs.trigger
15 15
 # common
... ...
@@ -62,7 +62,6 @@ Patch123: 0027-xen-blkfront-add-persistent_grants-parameter.patch
62 62
 Patch125: 0029-Revert-xen-dont-fiddle-with-event-channel-masking-in.patch
63 63
 Patch131: 0035-xen-blkfront-Fixed-blkfront_restore-to-remove-a-call.patch
64 64
 Patch133: 0037-x86-tsc-avoid-system-instability-in-hibernation.patch
65
-Patch151: 0055-net-ipv4-defensive-cipso-option-parsing.patch
66 65
 Patch152: 0056-Amazon-ENA-driver-Update-to-version-1.6.0.patch
67 66
 
68 67
 %if 0%{?kat_build:1}
... ...
@@ -179,7 +178,6 @@ This package contains the 'perf' performance analysis tools for Linux kernel.
179 179
 %patch125 -p1
180 180
 %patch131 -p1
181 181
 %patch133 -p1
182
-%patch151 -p1
183 182
 %patch152 -p1
184 183
 
185 184
 %if 0%{?kat_build:1}
... ...
@@ -358,6 +356,9 @@ ln -sf %{name}-%{uname_r}.cfg /boot/photon.cfg
358 358
 %{_libdir}/perf/include/bpf/*
359 359
 
360 360
 %changelog
361
+*   Mon Dec 10 2018 Srivatsa S. Bhat (VMware) <srivatsa@csail.mit.edu> 4.19.6-1
362
+-   Update to version 4.19.6
363
+-   Enable EFI in config-aws to support kernel signing.
361 364
 *   Mon Dec 10 2018 Srivatsa S. Bhat (VMware) <srivatsa@csail.mit.edu> 4.19.1-3
362 365
 -   Set nvme io_timeout to maximum in kernel cmdline.
363 366
 *   Wed Nov 14 2018 Ajay Kaher <akaher@vmware.com> 4.19.1-2
... ...
@@ -1,15 +1,15 @@
1 1
 %global security_hardening none
2 2
 Summary:        Kernel
3 3
 Name:           linux-esx
4
-Version:        4.19.1
5
-Release:        3%{?dist}
4
+Version:        4.19.6
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=5ece7a7149eeef06bba906eeabbc2f29a8ac3952
12
+%define sha1 linux=d96fd72968960268b2203a3b4aff9497cd3abc61
13 13
 Source1:        config-esx
14 14
 Source2:        initramfs.trigger
15 15
 # common
... ...
@@ -186,6 +186,8 @@ ln -sf linux-%{uname_r}.cfg /boot/photon.cfg
186 186
 /usr/src/linux-headers-%{uname_r}
187 187
 
188 188
 %changelog
189
+*   Mon Dec 10 2018 Srivatsa S. Bhat (VMware) <srivatsa@csail.mit.edu> 4.19.6-1
190
+-   Update to version 4.19.6
189 191
 *   Thu Nov 29 2018 Alexey Makhalov <amakhalov@vmware.com> 4.19.1-3
190 192
 -   Fix BAR4 is zero issue for IDE devices
191 193
 *   Thu Nov 15 2018 Ajay Kaher <akaher@vmware.com> 4.19.1-2
... ...
@@ -1,15 +1,15 @@
1 1
 %global security_hardening none
2 2
 Summary:        Kernel
3 3
 Name:           linux-secure
4
-Version:        4.19.1
5
-Release:        2%{?kat_build:.%kat_build}%{?dist}
4
+Version:        4.19.6
5
+Release:        1%{?kat_build:.%kat_build}%{?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=5ece7a7149eeef06bba906eeabbc2f29a8ac3952
12
+%define sha1 linux=d96fd72968960268b2203a3b4aff9497cd3abc61
13 13
 Source1:        config-secure
14 14
 Source2:        initramfs.trigger
15 15
 # common
... ...
@@ -234,6 +234,8 @@ ln -sf linux-%{uname_r}.cfg /boot/photon.cfg
234 234
 /usr/src/linux-headers-%{uname_r}
235 235
 
236 236
 %changelog
237
+*   Mon Dec 10 2018 Srivatsa S. Bhat (VMware) <srivatsa@csail.mit.edu> 4.19.6-1
238
+-   Update to version 4.19.6
237 239
 *   Thu Nov 15 2018 Ajay Kaher <akaher@vmware.com> 4.19.1-2
238 240
 -   Adding BuildArch
239 241
 *   Thu Nov 08 2018 Him Kalyan Bordoloi <bordoloih@vmware.com> 4.19.1-1
... ...
@@ -1,15 +1,15 @@
1 1
 %global security_hardening none
2 2
 Summary:        Kernel
3 3
 Name:           linux
4
-Version:        4.19.1
5
-Release:        3%{?kat_build:.%kat_build}%{?dist}
4
+Version:        4.19.6
5
+Release:        1%{?kat_build:.%kat_build}%{?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=5ece7a7149eeef06bba906eeabbc2f29a8ac3952
12
+%define sha1 linux=d96fd72968960268b2203a3b4aff9497cd3abc61
13 13
 Source1:	config
14 14
 Source2:	initramfs.trigger
15 15
 %define ena_version 1.6.0
... ...
@@ -372,6 +372,8 @@ ln -sf %{name}-%{uname_r}.cfg /boot/photon.cfg
372 372
 %endif
373 373
 
374 374
 %changelog
375
+*   Mon Dec 10 2018 Srivatsa S. Bhat (VMware) <srivatsa@csail.mit.edu> 4.19.6-1
376
+-   Update to version 4.19.6
375 377
 *   Fri Dec 07 2018 Alexey Makhalov <amakhalov@vmware.com> 4.19.1-3
376 378
 -   .config: added qmi wwan module
377 379
 *   Mon Nov 12 2018 Ajay Kaher <akaher@vmware.com> 4.19.1-2