From 930c3373a22804fbf2764b78bc89d8ccf8e47961 Mon Sep 17 00:00:00 2001 From: Jeremy Cline Date: Tue, 5 Jun 2018 11:49:39 -0400 Subject: Linux v4.16.14 --- kernel.spec | 8 +++--- sources | 2 +- ...--Lenovo-X1-Carbon-5-should-use-SMBUS-RMI.patch | 29 ---------------------- 3 files changed, 5 insertions(+), 34 deletions(-) delete mode 100644 v3-2-2-Input-synaptics---Lenovo-X1-Carbon-5-should-use-SMBUS-RMI.patch diff --git a/kernel.spec b/kernel.spec index c92d407ef..852b68473 100644 --- a/kernel.spec +++ b/kernel.spec @@ -54,7 +54,7 @@ Summary: The Linux kernel %if 0%{?released_kernel} # Do we have a -stable update to apply? -%define stable_update 13 +%define stable_update 14 # Set rpm version accordingly %if 0%{?stable_update} %define stablerev %{stable_update} @@ -644,9 +644,6 @@ Patch501: Fix-for-module-sig-verification.patch # rhbz 1431375 Patch502: input-rmi4-remove-the-need-for-artifical-IRQ.patch -# rhbz 1509461 -Patch503: v3-2-2-Input-synaptics---Lenovo-X1-Carbon-5-should-use-SMBUS-RMI.patch - # In v4.17 # rhbz 1549316 Patch504: ipmi-fixes.patch @@ -1921,6 +1918,9 @@ fi # # %changelog +* Tue Jun 05 2018 Jeremy Cline - 4.16.14-300 +- Linux v4.16.14 + * Mon Jun 04 2018 Jeremy Cline - Drop SanDisk SD7UB3Q*G1001 NOLPM quirk (rhbz 1583207) diff --git a/sources b/sources index 34471a85c..0a7004ae1 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (linux-4.16.tar.xz) = ab47849314b177d0eec9dbf261f33972b0d89fb92fb0650130ffa7abc2f36c0fab2d06317dc1683c51a472a9a631573a9b1e7258d6281a2ee189897827f14662 -SHA512 (patch-4.16.13.xz) = f136eadbaff335b5c9cd45a9265b4ce4409c141372bc7af378c5a6bbb50330bf16d75ef29294f2b876961292c4c2606980e3d169b98e5b413d6c1b13f5eed37e +SHA512 (patch-4.16.14.xz) = 5141b66352e6560058ab857e00ba72c84796e135d30cae6398de8e7cf9dfcf266fb581008d2209b0dc20d7dbbcd4e65296557acd3c806fb057dfb55850cd3975 diff --git a/v3-2-2-Input-synaptics---Lenovo-X1-Carbon-5-should-use-SMBUS-RMI.patch b/v3-2-2-Input-synaptics---Lenovo-X1-Carbon-5-should-use-SMBUS-RMI.patch deleted file mode 100644 index a37b15ec7..000000000 --- a/v3-2-2-Input-synaptics---Lenovo-X1-Carbon-5-should-use-SMBUS-RMI.patch +++ /dev/null @@ -1,29 +0,0 @@ -From patchwork Sun Nov 5 17:09:51 2017 -Content-Type: text/plain; charset="utf-8" -MIME-Version: 1.0 -Content-Transfer-Encoding: 7bit -Subject: [v3,2/2] Input: synaptics - Lenovo X1 Carbon 5 should use SMBUS/RMI -From: Yiannis Marangos -X-Patchwork-Id: 10042387 -Message-Id: <20171105170951.20261-3-yiannis.marangos@gmail.com> -To: linux-input@vger.kernel.org, dmitry.torokhov@gmail.com -Cc: Yiannis Marangos -Date: Sun, 5 Nov 2017 19:09:51 +0200 - -Signed-off-by: Yiannis Marangos ---- - drivers/input/mouse/synaptics.c | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c -index ee5466a374bf..b3c683a84d3f 100644 ---- a/drivers/input/mouse/synaptics.c -+++ b/drivers/input/mouse/synaptics.c -@@ -172,6 +172,7 @@ static const char * const smbus_pnp_ids[] = { - "LEN0048", /* X1 Carbon 3 */ - "LEN0046", /* X250 */ - "LEN004a", /* W541 */ -+ "LEN0073", /* X1 Carbon 5 */ - "LEN200f", /* T450s */ - NULL - }; -- cgit From 659cba17dc6ad120c1b4909de6ee2fc3469eccaf Mon Sep 17 00:00:00 2001 From: Jeremy Cline Date: Tue, 5 Jun 2018 15:32:50 -0400 Subject: Enable CONFIG_SCSI_DH* for s390x (rhbz 1586189) --- configs/fedora/generic/s390x/CONFIG_SCSI_DH | 1 - kernel-s390x-debug.config | 2 +- kernel-s390x.config | 2 +- kernel.spec | 3 +++ 4 files changed, 5 insertions(+), 3 deletions(-) delete mode 100644 configs/fedora/generic/s390x/CONFIG_SCSI_DH diff --git a/configs/fedora/generic/s390x/CONFIG_SCSI_DH b/configs/fedora/generic/s390x/CONFIG_SCSI_DH deleted file mode 100644 index e5b8a74ea..000000000 --- a/configs/fedora/generic/s390x/CONFIG_SCSI_DH +++ /dev/null @@ -1 +0,0 @@ -# CONFIG_SCSI_DH is not set diff --git a/kernel-s390x-debug.config b/kernel-s390x-debug.config index b32e97398..d789f7b13 100644 --- a/kernel-s390x-debug.config +++ b/kernel-s390x-debug.config @@ -4134,8 +4134,8 @@ CONFIG_SCSI_DEBUG=m CONFIG_SCSI_DH_ALUA=m CONFIG_SCSI_DH_EMC=m CONFIG_SCSI_DH_HP_SW=m -# CONFIG_SCSI_DH is not set CONFIG_SCSI_DH_RDAC=m +CONFIG_SCSI_DH=y # CONFIG_SCSI_DMX3191D is not set # CONFIG_SCSI_DPT_I2O is not set # CONFIG_SCSI_EATA is not set diff --git a/kernel-s390x.config b/kernel-s390x.config index 4113c9edd..e1a83b33b 100644 --- a/kernel-s390x.config +++ b/kernel-s390x.config @@ -4110,8 +4110,8 @@ CONFIG_SCSI_DEBUG=m CONFIG_SCSI_DH_ALUA=m CONFIG_SCSI_DH_EMC=m CONFIG_SCSI_DH_HP_SW=m -# CONFIG_SCSI_DH is not set CONFIG_SCSI_DH_RDAC=m +CONFIG_SCSI_DH=y # CONFIG_SCSI_DMX3191D is not set # CONFIG_SCSI_DPT_I2O is not set # CONFIG_SCSI_EATA is not set diff --git a/kernel.spec b/kernel.spec index 852b68473..a4e0f98c7 100644 --- a/kernel.spec +++ b/kernel.spec @@ -1918,6 +1918,9 @@ fi # # %changelog +* Tue Jun 05 2018 Jeremy Cline +- Enable CONFIG_SCSI_DH on s390x (rhbz 1586189) + * Tue Jun 05 2018 Jeremy Cline - 4.16.14-300 - Linux v4.16.14 -- cgit From 088f35853be6303ddf60d321ef5f4ef44fd636cf Mon Sep 17 00:00:00 2001 From: "Justin M. Forbes" Date: Mon, 11 Jun 2018 16:15:37 -0500 Subject: Fix CVE-2018-10853 (rhbz 1589890 1589892) --- kernel.spec | 6 ++++ kvm-x86-Check-CPL-in-segmented_write_std.patch | 43 ++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 kvm-x86-Check-CPL-in-segmented_write_std.patch diff --git a/kernel.spec b/kernel.spec index a4e0f98c7..455b46d9d 100644 --- a/kernel.spec +++ b/kernel.spec @@ -668,6 +668,9 @@ Patch513: ext4-correctly-handle-a-zero-length-xattr-with-a-non.patch # https://www.spinics.net/lists/kernel/msg2818652.html applies cleanly to 4.17 Patch514: libata-Drop-SanDisk-SD7UB3Q-G1001-NOLPM-quirk.patch +# CVE-2018-10853 rhbz 1589890 1589892 +Patch515: kvm-x86-Check-CPL-in-segmented_write_std.patch + # END OF PATCH DEFINITIONS %endif @@ -1918,6 +1921,9 @@ fi # # %changelog +* Mon Jun 11 2018 Justin M. Forbes +- Fix CVE-2018-10853 (rhbz 1589890 1589892) + * Tue Jun 05 2018 Jeremy Cline - Enable CONFIG_SCSI_DH on s390x (rhbz 1586189) diff --git a/kvm-x86-Check-CPL-in-segmented_write_std.patch b/kvm-x86-Check-CPL-in-segmented_write_std.patch new file mode 100644 index 000000000..a0447d31c --- /dev/null +++ b/kvm-x86-Check-CPL-in-segmented_write_std.patch @@ -0,0 +1,43 @@ +From patchwork Tue Jun 5 20:04:16 2018 +Content-Type: text/plain; charset="utf-8" +MIME-Version: 1.0 +Content-Transfer-Encoding: 7bit +Subject: kvm: x86: Check CPL in segmented_write_std +From: Bandan Das +X-Patchwork-Id: 10449159 +Message-Id: +To: kvm@vger.kernel.org +Cc: Paolo Bonzini , + Radim =?utf-8?B?S3LEjW3DocWZ?= , + Andy Lutomirski +Date: Tue, 05 Jun 2018 16:04:16 -0400 + +Certain instructions such as sgdt/sidt call segmented_write_std that +doesn't propagate access correctly. As such, during userspace induced +exception, the guest can incorrectly assume that the exception +happened in the kernel and panic. The emulated write function +segmented_write does seem to check access correctly. + +Reported-by: Andy Lutomirski +Signed-off-by: Bandan Das +--- + arch/x86/kvm/x86.c | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c +index 71e7cda6d014..871265f6a35f 100644 +--- a/arch/x86/kvm/x86.c ++++ b/arch/x86/kvm/x86.c +@@ -4824,10 +4824,11 @@ int kvm_write_guest_virt_system(struct x86_emulate_ctxt *ctxt, + struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); + void *data = val; + int r = X86EMUL_CONTINUE; ++ u32 access = (kvm_x86_ops->get_cpl(vcpu) == 3) ? PFERR_USER_MASK : 0; + + while (bytes) { + gpa_t gpa = vcpu->arch.walk_mmu->gva_to_gpa(vcpu, addr, +- PFERR_WRITE_MASK, ++ access | PFERR_WRITE_MASK, + exception); + unsigned offset = addr & (PAGE_SIZE-1); + unsigned towrite = min(bytes, (unsigned)PAGE_SIZE - offset); -- cgit From 349bbc61260442098603827e4d08bc91205204e1 Mon Sep 17 00:00:00 2001 From: Jeremy Cline Date: Mon, 11 Jun 2018 19:59:27 -0400 Subject: Fix for the keyboard backlight on Dell XPS 13 9370 --- kernel.spec | 6 ++ ...6-dell-laptop-Fix-keyboard-backlight-time.patch | 76 ++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 platform-x86-dell-laptop-Fix-keyboard-backlight-time.patch diff --git a/kernel.spec b/kernel.spec index 455b46d9d..fe13294e2 100644 --- a/kernel.spec +++ b/kernel.spec @@ -671,6 +671,9 @@ Patch514: libata-Drop-SanDisk-SD7UB3Q-G1001-NOLPM-quirk.patch # CVE-2018-10853 rhbz 1589890 1589892 Patch515: kvm-x86-Check-CPL-in-segmented_write_std.patch +# https://www.spinics.net/lists/platform-driver-x86/msg15719.html +Patch516: platform-x86-dell-laptop-Fix-keyboard-backlight-time.patch + # END OF PATCH DEFINITIONS %endif @@ -1921,6 +1924,9 @@ fi # # %changelog +* Mon Jun 11 2018 Jeremy Cline +- Fix for the keyboard backlight on Dell XPS 13 9370 + * Mon Jun 11 2018 Justin M. Forbes - Fix CVE-2018-10853 (rhbz 1589890 1589892) diff --git a/platform-x86-dell-laptop-Fix-keyboard-backlight-time.patch b/platform-x86-dell-laptop-Fix-keyboard-backlight-time.patch new file mode 100644 index 000000000..dd6928b04 --- /dev/null +++ b/platform-x86-dell-laptop-Fix-keyboard-backlight-time.patch @@ -0,0 +1,76 @@ +From e6a7379fcb5702da681d7da8e9d9a2a26cc6fa85 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Timur=20Krist=C3=B3f?= +Date: Fri, 1 Jun 2018 12:32:56 +0200 +Subject: [PATCH] platform/x86: dell-laptop: Fix keyboard backlight timeout on + XPS 13 9370 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +The XPS 13 9370 doesn't expose the necessary KBD_LED_AC_TOKEN in +the BIOS, so the driver thinks it cannot adjust the AC keyboard +backlight timeout. This patch adds a quirk to fix this until +Dell adds the missing token to the BIOS. + +For further discussion, see: +https://github.com/dell/libsmbios/issues/48 + +Signed-off-by: Timur Kristóf +Signed-off-by: Andy Shevchenko +Signed-off-by: Jeremy Cline +--- + drivers/platform/x86/dell-laptop.c | 17 ++++++++++++++++- + 1 file changed, 16 insertions(+), 1 deletion(-) + +diff --git a/drivers/platform/x86/dell-laptop.c b/drivers/platform/x86/dell-laptop.c +index c52c6723374b..f1fa8612db40 100644 +--- a/drivers/platform/x86/dell-laptop.c ++++ b/drivers/platform/x86/dell-laptop.c +@@ -38,6 +38,7 @@ + struct quirk_entry { + bool touchpad_led; + bool kbd_led_levels_off_1; ++ bool kbd_missing_ac_tag; + + bool needs_kbd_timeouts; + /* +@@ -68,6 +69,10 @@ static struct quirk_entry quirk_dell_xps13_9333 = { + .kbd_timeouts = { 0, 5, 15, 60, 5 * 60, 15 * 60, -1 }, + }; + ++static struct quirk_entry quirk_dell_xps13_9370 = { ++ .kbd_missing_ac_tag = true, ++}; ++ + static struct quirk_entry quirk_dell_latitude_e6410 = { + .kbd_led_levels_off_1 = true, + }; +@@ -291,6 +296,15 @@ static const struct dmi_system_id dell_quirks[] __initconst = { + }, + .driver_data = &quirk_dell_xps13_9333, + }, ++ { ++ .callback = dmi_matched, ++ .ident = "Dell XPS 13 9370", ++ .matches = { ++ DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."), ++ DMI_MATCH(DMI_PRODUCT_NAME, "XPS 13 9370"), ++ }, ++ .driver_data = &quirk_dell_xps13_9370, ++ }, + { + .callback = dmi_matched, + .ident = "Dell Latitude E6410", +@@ -1401,7 +1415,8 @@ static inline int kbd_init_info(void) + * timeout value which is shared for both battery and AC power + * settings. So do not try to set AC values on old models. + */ +- if (dell_smbios_find_token(KBD_LED_AC_TOKEN)) ++ if ((quirks && quirks->kbd_missing_ac_tag) || ++ dell_smbios_find_token(KBD_LED_AC_TOKEN)) + kbd_timeout_ac_supported = true; + + kbd_get_state(&state); +-- +2.17.1 + -- cgit From 985188b4469c9b8d0bc6056e2fb4248f9d4ef0bd Mon Sep 17 00:00:00 2001 From: Jeremy Cline Date: Mon, 11 Jun 2018 20:02:29 -0400 Subject: Linux v4.16.15 --- kernel.spec | 5 +++-- sources | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/kernel.spec b/kernel.spec index fe13294e2..8f7ae872e 100644 --- a/kernel.spec +++ b/kernel.spec @@ -54,7 +54,7 @@ Summary: The Linux kernel %if 0%{?released_kernel} # Do we have a -stable update to apply? -%define stable_update 14 +%define stable_update 15 # Set rpm version accordingly %if 0%{?stable_update} %define stablerev %{stable_update} @@ -1924,8 +1924,9 @@ fi # # %changelog -* Mon Jun 11 2018 Jeremy Cline +* Mon Jun 11 2018 Jeremy Cline - 4.16.15-300 - Fix for the keyboard backlight on Dell XPS 13 9370 +- Linux v4.16.15 * Mon Jun 11 2018 Justin M. Forbes - Fix CVE-2018-10853 (rhbz 1589890 1589892) diff --git a/sources b/sources index 0a7004ae1..c2dd22c09 100644 --- a/sources +++ b/sources @@ -1,2 +1,2 @@ SHA512 (linux-4.16.tar.xz) = ab47849314b177d0eec9dbf261f33972b0d89fb92fb0650130ffa7abc2f36c0fab2d06317dc1683c51a472a9a631573a9b1e7258d6281a2ee189897827f14662 -SHA512 (patch-4.16.14.xz) = 5141b66352e6560058ab857e00ba72c84796e135d30cae6398de8e7cf9dfcf266fb581008d2209b0dc20d7dbbcd4e65296557acd3c806fb057dfb55850cd3975 +SHA512 (patch-4.16.15.xz) = 496a8a85758b4bae9b3082c45d7e9c8a87bd10a8a2ffbb086f96b83e0ed2e3449ebe8bdd50d138219a55c96a93dd87c9d4802dc0962112e8e78115de77d3c363 -- cgit