[gentoo-commits] proj/linux-patches:4.14 commit in: /

2019-01-16 Thread Mike Pagano
commit: e1faa06af3c08517d7d8167fcf1bb83efad3a450
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Jan 16 23:30:18 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Jan 16 23:30:18 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=e1faa06a

proj/linux-patches: Linux patch 4.14.94

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1093_linux-4.14.94.patch | 1074 ++
 2 files changed, 1078 insertions(+)

diff --git a/_README b/_README
index 6f66609..41aba45 100644
--- a/_README
+++ b/_README
@@ -415,6 +415,10 @@ Patch:  1092_4.14.93.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.93
 
+Patch:  1093_4.14.94.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.94
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1093_linux-4.14.94.patch b/1093_linux-4.14.94.patch
new file mode 100644
index 000..48ff9f4
--- /dev/null
+++ b/1093_linux-4.14.94.patch
@@ -0,0 +1,1074 @@
+diff --git a/Makefile b/Makefile
+index a521e4cbd66f..e9a138dd964a 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 93
++SUBLEVEL = 94
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
+index 523308d030d2..72fac8646e9b 100644
+--- a/arch/x86/include/asm/kvm_host.h
 b/arch/x86/include/asm/kvm_host.h
+@@ -539,7 +539,20 @@ struct kvm_vcpu_arch {
+   struct kvm_mmu_memory_cache mmu_page_cache;
+   struct kvm_mmu_memory_cache mmu_page_header_cache;
+ 
++  /*
++   * QEMU userspace and the guest each have their own FPU state.
++   * In vcpu_run, we switch between the user and guest FPU contexts.
++   * While running a VCPU, the VCPU thread will have the guest FPU
++   * context.
++   *
++   * Note that while the PKRU state lives inside the fpu registers,
++   * it is switched out separately at VMENTER and VMEXIT time. The
++   * "guest_fpu" state here contains the guest FPU context, with the
++   * host PRKU bits.
++   */
++  struct fpu user_fpu;
+   struct fpu guest_fpu;
++
+   u64 xcr0;
+   u64 guest_supported_xcr0;
+   u32 guest_xstate_size;
+diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c
+index 98b24d668b08..004e60470a77 100644
+--- a/arch/x86/kernel/cpu/bugs.c
 b/arch/x86/kernel/cpu/bugs.c
+@@ -212,7 +212,7 @@ static enum spectre_v2_mitigation spectre_v2_enabled 
__ro_after_init =
+ static enum spectre_v2_user_mitigation spectre_v2_user __ro_after_init =
+   SPECTRE_V2_USER_NONE;
+ 
+-#ifdef RETPOLINE
++#ifdef CONFIG_RETPOLINE
+ static bool spectre_v2_bad_module;
+ 
+ bool retpoline_module_ok(bool has_retpoline)
+diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
+index ac431fa778aa..130be2efafbe 100644
+--- a/arch/x86/kvm/x86.c
 b/arch/x86/kvm/x86.c
+@@ -3020,7 +3020,6 @@ void kvm_arch_vcpu_put(struct kvm_vcpu *vcpu)
+   srcu_read_unlock(>kvm->srcu, idx);
+   pagefault_enable();
+   kvm_x86_ops->vcpu_put(vcpu);
+-  kvm_put_guest_fpu(vcpu);
+   vcpu->arch.last_host_tsc = rdtsc();
+   /*
+* If userspace has set any breakpoints or watchpoints, dr6 is restored
+@@ -5377,13 +5376,10 @@ static void emulator_halt(struct x86_emulate_ctxt 
*ctxt)
+ 
+ static void emulator_get_fpu(struct x86_emulate_ctxt *ctxt)
+ {
+-  preempt_disable();
+-  kvm_load_guest_fpu(emul_to_vcpu(ctxt));
+ }
+ 
+ static void emulator_put_fpu(struct x86_emulate_ctxt *ctxt)
+ {
+-  preempt_enable();
+ }
+ 
+ static int emulator_intercept(struct x86_emulate_ctxt *ctxt,
+@@ -7083,7 +7079,6 @@ static int vcpu_enter_guest(struct kvm_vcpu *vcpu)
+   preempt_disable();
+ 
+   kvm_x86_ops->prepare_guest_switch(vcpu);
+-  kvm_load_guest_fpu(vcpu);
+ 
+   /*
+* Disable IRQs before setting IN_GUEST_MODE.  Posted interrupt
+@@ -7428,12 +7423,14 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, 
struct kvm_run *kvm_run)
+   }
+   }
+ 
++  kvm_load_guest_fpu(vcpu);
++
+   if (unlikely(vcpu->arch.complete_userspace_io)) {
+   int (*cui)(struct kvm_vcpu *) = 
vcpu->arch.complete_userspace_io;
+   vcpu->arch.complete_userspace_io = NULL;
+   r = cui(vcpu);
+   if (r <= 0)
+-  goto out;
++  goto out_fpu;
+   } else
+   WARN_ON(vcpu->arch.pio.count || vcpu->mmio_needed);
+ 
+@@ -7442,6 +7439,8 @@ int kvm_arch_vcpu_ioctl_run(struct kvm_vcpu *vcpu, 
struct kvm_run *kvm_run)
+   else
+   r = vcpu_run(vcpu);
+ 
++out_fpu:
++  kvm_put_guest_fpu(vcpu);
+ out:
+   kvm_put_guest_fpu(vcpu);
+   post_kvm_run_save(vcpu);
+@@ -7865,32 +7864,25 @@ static 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2019-01-13 Thread Mike Pagano
commit: ef1269908b6b202fc1ae1eea5f49b0e3994d79c8
Author: Mike Pagano  gentoo  org>
AuthorDate: Sun Jan 13 19:27:29 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sun Jan 13 19:27:29 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=ef126990

proj/linux-patches: Linux patch 4.14.93

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1092_linux-4.14.93.patch | 3993 ++
 2 files changed, 3997 insertions(+)

diff --git a/_README b/_README
index 45efed8..6f66609 100644
--- a/_README
+++ b/_README
@@ -411,6 +411,10 @@ Patch:  1091_4.14.92.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.92
 
+Patch:  1092_4.14.93.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.93
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1092_linux-4.14.93.patch b/1092_linux-4.14.93.patch
new file mode 100644
index 000..23543fc
--- /dev/null
+++ b/1092_linux-4.14.93.patch
@@ -0,0 +1,3993 @@
+diff --git a/Makefile b/Makefile
+index be4d1f25cb29..a521e4cbd66f 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 92
++SUBLEVEL = 93
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+@@ -479,18 +479,18 @@ endif
+ 
+ ifeq ($(cc-name),clang)
+ ifneq ($(CROSS_COMPILE),)
+-CLANG_TARGET  := --target=$(notdir $(CROSS_COMPILE:%-=%))
++CLANG_FLAGS   := --target=$(notdir $(CROSS_COMPILE:%-=%))
+ GCC_TOOLCHAIN_DIR := $(dir $(shell which $(LD)))
+-CLANG_PREFIX  := --prefix=$(GCC_TOOLCHAIN_DIR)
++CLANG_FLAGS   += --prefix=$(GCC_TOOLCHAIN_DIR)
+ GCC_TOOLCHAIN := $(realpath $(GCC_TOOLCHAIN_DIR)/..)
+ endif
+ ifneq ($(GCC_TOOLCHAIN),)
+-CLANG_GCC_TC  := --gcc-toolchain=$(GCC_TOOLCHAIN)
++CLANG_FLAGS   += --gcc-toolchain=$(GCC_TOOLCHAIN)
+ endif
+-KBUILD_CFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC) $(CLANG_PREFIX)
+-KBUILD_AFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC) $(CLANG_PREFIX)
+-KBUILD_CFLAGS += $(call cc-option, -no-integrated-as)
+-KBUILD_AFLAGS += $(call cc-option, -no-integrated-as)
++CLANG_FLAGS   += -no-integrated-as
++KBUILD_CFLAGS += $(CLANG_FLAGS)
++KBUILD_AFLAGS += $(CLANG_FLAGS)
++export CLANG_FLAGS
+ endif
+ 
+ RETPOLINE_CFLAGS_GCC := -mindirect-branch=thunk-extern 
-mindirect-branch-register
+@@ -954,11 +954,6 @@ ifdef CONFIG_STACK_VALIDATION
+   ifeq ($(has_libelf),1)
+ objtool_target := tools/objtool FORCE
+   else
+-ifdef CONFIG_UNWINDER_ORC
+-  $(error "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please 
install libelf-dev, libelf-devel or elfutils-libelf-devel")
+-else
+-  $(warning "Cannot use CONFIG_STACK_VALIDATION=y, please install 
libelf-dev, libelf-devel or elfutils-libelf-devel")
+-endif
+ SKIP_STACK_VALIDATION := 1
+ export SKIP_STACK_VALIDATION
+   endif
+@@ -1102,6 +1097,14 @@ uapi-asm-generic:
+ 
+ PHONY += prepare-objtool
+ prepare-objtool: $(objtool_target)
++ifeq ($(SKIP_STACK_VALIDATION),1)
++ifdef CONFIG_UNWINDER_ORC
++  @echo "error: Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, 
please install libelf-dev, libelf-devel or elfutils-libelf-devel" >&2
++  @false
++else
++  @echo "warning: Cannot use CONFIG_STACK_VALIDATION=y, please install 
libelf-dev, libelf-devel or elfutils-libelf-devel" >&2
++endif
++endif
+ 
+ # Check for CONFIG flags that require compiler support. Abort the build
+ # after .config has been processed, but before the kernel build starts.
+diff --git a/arch/arm/boot/dts/imx7d-nitrogen7.dts 
b/arch/arm/boot/dts/imx7d-nitrogen7.dts
+index e7998308861f..f8caea16bc2d 100644
+--- a/arch/arm/boot/dts/imx7d-nitrogen7.dts
 b/arch/arm/boot/dts/imx7d-nitrogen7.dts
+@@ -117,13 +117,17 @@
+   compatible = "regulator-fixed";
+   regulator-min-microvolt = <330>;
+   regulator-max-microvolt = <330>;
+-  clocks = < IMX7D_CLKO2_ROOT_DIV>;
+-  clock-names = "slow";
+   regulator-name = "reg_wlan";
+   startup-delay-us = <7>;
+   gpio = < 21 GPIO_ACTIVE_HIGH>;
+   enable-active-high;
+   };
++
++  usdhc2_pwrseq: usdhc2_pwrseq {
++  compatible = "mmc-pwrseq-simple";
++  clocks = < IMX7D_CLKO2_ROOT_DIV>;
++  clock-names = "ext_clock";
++  };
+ };
+ 
+  {
+@@ -430,6 +434,7 @@
+   bus-width = <4>;
+   non-removable;
+   vmmc-supply = <_wlan>;
++  mmc-pwrseq = <_pwrseq>;
+   cap-power-off-card;
+   keep-power-in-suspend;
+   status = "okay";
+diff --git a/arch/arm/mach-imx/cpuidle-imx6sx.c 
b/arch/arm/mach-imx/cpuidle-imx6sx.c
+index c5a5c3a70ab1..edb888ac5ad3 100644
+--- a/arch/arm/mach-imx/cpuidle-imx6sx.c
 b/arch/arm/mach-imx/cpuidle-imx6sx.c
+@@ -108,7 +108,7 @@ int __init imx6sx_cpuidle_init(void)
+* except 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2019-01-09 Thread Mike Pagano
commit: 09e0ccd61a70727124b10a20414fe21fb527ac53
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Jan  9 17:53:23 2019 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Jan  9 17:53:23 2019 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=09e0ccd6

proj/linux-patches: Linux patch 4.14.92

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |6 +-
 1091_linux-4.14.92.patch | 3420 ++
 2 files changed, 3425 insertions(+), 1 deletion(-)

diff --git a/_README b/_README
index ca6677a..45efed8 100644
--- a/_README
+++ b/_README
@@ -403,10 +403,14 @@ Patch:  1089_4.14.90.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.90
 
-Patch:  1090.14.91.patch
+Patch:  1090_4.14.91.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.91
 
+Patch:  1091_4.14.92.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.92
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1091_linux-4.14.92.patch b/1091_linux-4.14.92.patch
new file mode 100644
index 000..46658a1
--- /dev/null
+++ b/1091_linux-4.14.92.patch
@@ -0,0 +1,3420 @@
+diff --git a/Documentation/admin-guide/kernel-parameters.txt 
b/Documentation/admin-guide/kernel-parameters.txt
+index 5f3d58142600..7d8b17ce8804 100644
+--- a/Documentation/admin-guide/kernel-parameters.txt
 b/Documentation/admin-guide/kernel-parameters.txt
+@@ -1965,6 +1965,9 @@
+   off
+   Disables hypervisor mitigations and doesn't
+   emit any warnings.
++  It also drops the swap size and available
++  RAM limit restriction on both hypervisor and
++  bare metal.
+ 
+   Default is 'flush'.
+ 
+diff --git a/Documentation/admin-guide/l1tf.rst 
b/Documentation/admin-guide/l1tf.rst
+index bae52b845de0..9f5924f81f89 100644
+--- a/Documentation/admin-guide/l1tf.rst
 b/Documentation/admin-guide/l1tf.rst
+@@ -405,6 +405,9 @@ time with the option "l1tf=". The valid arguments for this 
option are:
+ 
+   off Disables hypervisor mitigations and doesn't emit any
+   warnings.
++  It also drops the swap size and available RAM limit restrictions
++  on both hypervisor and bare metal.
++
+     =
+ 
+ The default is 'flush'. For details about L1D flushing see :ref:`l1d_flush`.
+@@ -576,7 +579,8 @@ Default mitigations
+   The kernel default mitigations for vulnerable processors are:
+ 
+   - PTE inversion to protect against malicious user space. This is done
+-unconditionally and cannot be controlled.
++unconditionally and cannot be controlled. The swap storage is limited
++to ~16TB.
+ 
+   - L1D conditional flushing on VMENTER when EPT is enabled for
+ a guest.
+diff --git a/Makefile b/Makefile
+index a6fb3b158a19..be4d1f25cb29 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 91
++SUBLEVEL = 92
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arm64/include/asm/kvm_arm.h 
b/arch/arm64/include/asm/kvm_arm.h
+index 555d463c0eaa..73cc4309fe01 100644
+--- a/arch/arm64/include/asm/kvm_arm.h
 b/arch/arm64/include/asm/kvm_arm.h
+@@ -99,7 +99,7 @@
+TCR_EL2_ORGN0_MASK | TCR_EL2_IRGN0_MASK | 
TCR_EL2_T0SZ_MASK)
+ 
+ /* VTCR_EL2 Registers bits */
+-#define VTCR_EL2_RES1 (1 << 31)
++#define VTCR_EL2_RES1 (1U << 31)
+ #define VTCR_EL2_HD   (1 << 22)
+ #define VTCR_EL2_HA   (1 << 21)
+ #define VTCR_EL2_PS_MASK  TCR_EL2_PS_MASK
+diff --git a/arch/mips/boot/compressed/calc_vmlinuz_load_addr.c 
b/arch/mips/boot/compressed/calc_vmlinuz_load_addr.c
+index 37fe58c19a90..542c3ede9722 100644
+--- a/arch/mips/boot/compressed/calc_vmlinuz_load_addr.c
 b/arch/mips/boot/compressed/calc_vmlinuz_load_addr.c
+@@ -13,6 +13,7 @@
+ #include 
+ #include 
+ #include 
++#include "../../../../include/linux/sizes.h"
+ 
+ int main(int argc, char *argv[])
+ {
+@@ -45,11 +46,11 @@ int main(int argc, char *argv[])
+   vmlinuz_load_addr = vmlinux_load_addr + vmlinux_size;
+ 
+   /*
+-   * Align with 16 bytes: "greater than that used for any standard data
+-   * types by a MIPS compiler." -- See MIPS Run Linux (Second Edition).
++   * Align with 64KB: KEXEC needs load sections to be aligned to 
PAGE_SIZE,
++   * which may be as large as 64KB depending on the kernel configuration.
+*/
+ 
+-  vmlinuz_load_addr += (16 - vmlinux_size % 16);
++  vmlinuz_load_addr += (SZ_64K - vmlinux_size % SZ_64K);
+ 
+   printf("0x%llx\n", vmlinuz_load_addr);
+ 
+diff --git 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-12-29 Thread Mike Pagano
commit: 75171c575a52c5ce5c3d232b54f6ed2ad1d36c4b
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Dec 29 22:47:25 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Dec 29 22:47:25 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=75171c57

proj/linux-patches: Select PID_NS to support FEATURES=pid-sandbox

For portage: >=sys-apps/portage-2.3.53
See bug #673896

Signed-off-by: Mike Pagano  gentoo.org>

 4567_distro-Gentoo-Kconfig.patch | 8 +---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/4567_distro-Gentoo-Kconfig.patch b/4567_distro-Gentoo-Kconfig.patch
index b8a..bc50e38 100644
--- a/4567_distro-Gentoo-Kconfig.patch
+++ b/4567_distro-Gentoo-Kconfig.patch
@@ -7,9 +7,9 @@
 +source "distro/Kconfig"
 +
  source "arch/$SRCARCH/Kconfig"
 /dev/null  2017-03-02 01:55:04.096566155 -0500
-+++ b/distro/Kconfig   2017-03-02 11:12:05.049448255 -0500
-@@ -0,0 +1,145 @@
+--- /dev/null  2018-12-29 10:35:01.760002288 -0500
 b/distro/Kconfig   2018-12-29 17:46:08.801227847 -0500
+@@ -0,0 +1,147 @@
 +menu "Gentoo Linux"
 +
 +config GENTOO_LINUX
@@ -64,6 +64,7 @@
 +  select NAMESPACES
 +  select IPC_NS
 +  select NET_NS
++  select PID_NS
 +  select SYSVIPC
 +
 +  help
@@ -73,6 +74,7 @@
 +  CGROUPS (required for FEATURES=cgroup)
 +  IPC_NS  (required for FEATURES=ipc-sandbox)
 +  NET_NS  (required for FEATURES=network-sandbox)
++  PID_NS  (required for FEATURES=pid-sandbox)
 +  SYSVIPC (required by IPC_NS)
 +   
 +



[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-12-29 Thread Mike Pagano
commit: e17f9236d0c06738492d9c80accbb911c2558360
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Dec 29 18:53:52 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Dec 29 18:53:52 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=e17f9236

proj/linux-patches: Linux patch 4.14.91

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1090_linux-4.14.91.patch | 1437 ++
 2 files changed, 1441 insertions(+)

diff --git a/_README b/_README
index dc7f560..ca6677a 100644
--- a/_README
+++ b/_README
@@ -403,6 +403,10 @@ Patch:  1089_4.14.90.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.90
 
+Patch:  1090.14.91.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.91
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1090_linux-4.14.91.patch b/1090_linux-4.14.91.patch
new file mode 100644
index 000..90250d3
--- /dev/null
+++ b/1090_linux-4.14.91.patch
@@ -0,0 +1,1437 @@
+diff --git a/Makefile b/Makefile
+index 280c7193e246..a6fb3b158a19 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 90
++SUBLEVEL = 91
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/x86/include/asm/msr-index.h 
b/arch/x86/include/asm/msr-index.h
+index 62c62d3eb0ff..fed3636dce9a 100644
+--- a/arch/x86/include/asm/msr-index.h
 b/arch/x86/include/asm/msr-index.h
+@@ -372,6 +372,7 @@
+ #define MSR_F15H_NB_PERF_CTR  0xc0010241
+ #define MSR_F15H_PTSC 0xc0010280
+ #define MSR_F15H_IC_CFG   0xc0011021
++#define MSR_F15H_EX_CFG   0xc001102c
+ 
+ /* Fam 10h MSRs */
+ #define MSR_FAM10H_MMIO_CONF_BASE 0xc0010058
+diff --git a/arch/x86/kernel/cpu/mtrr/if.c b/arch/x86/kernel/cpu/mtrr/if.c
+index 558444b23923..c2987daa6a6b 100644
+--- a/arch/x86/kernel/cpu/mtrr/if.c
 b/arch/x86/kernel/cpu/mtrr/if.c
+@@ -173,6 +173,8 @@ mtrr_ioctl(struct file *file, unsigned int cmd, unsigned 
long __arg)
+   struct mtrr_gentry gentry;
+   void __user *arg = (void __user *) __arg;
+ 
++  memset(, 0, sizeof(gentry));
++
+   switch (cmd) {
+   case MTRRIOC_ADD_ENTRY:
+   case MTRRIOC_SET_ENTRY:
+diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
+index 4353580b659a..8eec37d37c3d 100644
+--- a/arch/x86/kvm/vmx.c
 b/arch/x86/kvm/vmx.c
+@@ -10447,6 +10447,8 @@ static void nested_get_vmcs12_pages(struct kvm_vcpu 
*vcpu,
+   kunmap(vmx->nested.pi_desc_page);
+   kvm_release_page_dirty(vmx->nested.pi_desc_page);
+   vmx->nested.pi_desc_page = NULL;
++  vmx->nested.pi_desc = NULL;
++  vmcs_write64(POSTED_INTR_DESC_ADDR, -1ull);
+   }
+   page = kvm_vcpu_gpa_to_page(vcpu, 
vmcs12->posted_intr_desc_addr);
+   if (is_error_page(page))
+diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
+index f24329659bea..ac431fa778aa 100644
+--- a/arch/x86/kvm/x86.c
 b/arch/x86/kvm/x86.c
+@@ -2227,6 +2227,7 @@ int kvm_set_msr_common(struct kvm_vcpu *vcpu, struct 
msr_data *msr_info)
+   case MSR_AMD64_PATCH_LOADER:
+   case MSR_AMD64_BU_CFG2:
+   case MSR_AMD64_DC_CFG:
++  case MSR_F15H_EX_CFG:
+   break;
+ 
+   case MSR_IA32_UCODE_REV:
+@@ -2508,6 +2509,7 @@ int kvm_get_msr_common(struct kvm_vcpu *vcpu, struct 
msr_data *msr_info)
+   case MSR_AMD64_BU_CFG2:
+   case MSR_IA32_PERF_CTL:
+   case MSR_AMD64_DC_CFG:
++  case MSR_F15H_EX_CFG:
+   msr_info->data = 0;
+   break;
+   case MSR_K7_EVNTSEL0 ... MSR_K7_EVNTSEL3:
+diff --git a/block/blk-lib.c b/block/blk-lib.c
+index 2bc544ce3d2e..0bdc77888dc5 100644
+--- a/block/blk-lib.c
 b/block/blk-lib.c
+@@ -59,10 +59,18 @@ int __blkdev_issue_discard(struct block_device *bdev, 
sector_t sector,
+   unsigned int req_sects;
+   sector_t end_sect, tmp;
+ 
+-  /* Make sure bi_size doesn't overflow */
+-  req_sects = min_t(sector_t, nr_sects, UINT_MAX >> 9);
++  /*
++   * Issue in chunks of the user defined max discard setting,
++   * ensuring that bi_size doesn't overflow
++   */
++  req_sects = min_t(sector_t, nr_sects,
++  q->limits.max_discard_sectors);
++  if (!req_sects)
++  goto fail;
++  if (req_sects > UINT_MAX >> 9)
++  req_sects = UINT_MAX >> 9;
+ 
+-  /**
++  /*
+* If splitting a request, and the next starting sector would be
+* misaligned, stop the discard at the previous aligned sector.
+

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-12-21 Thread Mike Pagano
commit: 1e235dfa67bf6924c75d560b809b40f93a3460c5
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Dec 21 14:46:02 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Fri Dec 21 14:46:02 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=1e235dfa

linux-patches: Linux patch 4.14.90

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1089_linux-4.14.90.patch | 2839 ++
 2 files changed, 2843 insertions(+)

diff --git a/_README b/_README
index 1e80ac5..dc7f560 100644
--- a/_README
+++ b/_README
@@ -399,6 +399,10 @@ Patch:  1088_4.14.89.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.89
 
+Patch:  1089_4.14.90.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.90
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1089_linux-4.14.90.patch b/1089_linux-4.14.90.patch
new file mode 100644
index 000..f62945f
--- /dev/null
+++ b/1089_linux-4.14.90.patch
@@ -0,0 +1,2839 @@
+diff --git a/Makefile b/Makefile
+index b83477be8d0c..280c7193e246 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 89
++SUBLEVEL = 90
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arc/include/asm/io.h b/arch/arc/include/asm/io.h
+index c22b181e8206..2f39d9b3886e 100644
+--- a/arch/arc/include/asm/io.h
 b/arch/arc/include/asm/io.h
+@@ -12,6 +12,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #ifdef CONFIG_ISA_ARCV2
+ #include 
+@@ -94,6 +95,42 @@ static inline u32 __raw_readl(const volatile void __iomem 
*addr)
+   return w;
+ }
+ 
++/*
++ * {read,write}s{b,w,l}() repeatedly access the same IO address in
++ * native endianness in 8-, 16-, 32-bit chunks {into,from} memory,
++ * @count times
++ */
++#define __raw_readsx(t,f) \
++static inline void __raw_reads##f(const volatile void __iomem *addr,  \
++void *ptr, unsigned int count)\
++{ \
++  bool is_aligned = ((unsigned long)ptr % ((t) / 8)) == 0;\
++  u##t *buf = ptr;\
++  \
++  if (!count) \
++  return; \
++  \
++  /* Some ARC CPU's don't support unaligned accesses */   \
++  if (is_aligned) {   \
++  do {\
++  u##t x = __raw_read##f(addr);   \
++  *buf++ = x; \
++  } while (--count);  \
++  } else {\
++  do {\
++  u##t x = __raw_read##f(addr);   \
++  put_unaligned(x, buf++);\
++  } while (--count);  \
++  }   \
++}
++
++#define __raw_readsb __raw_readsb
++__raw_readsx(8, b)
++#define __raw_readsw __raw_readsw
++__raw_readsx(16, w)
++#define __raw_readsl __raw_readsl
++__raw_readsx(32, l)
++
+ #define __raw_writeb __raw_writeb
+ static inline void __raw_writeb(u8 b, volatile void __iomem *addr)
+ {
+@@ -126,6 +163,35 @@ static inline void __raw_writel(u32 w, volatile void 
__iomem *addr)
+ 
+ }
+ 
++#define __raw_writesx(t,f)\
++static inline void __raw_writes##f(volatile void __iomem *addr,   \
++ const void *ptr, unsigned int count) \
++{ \
++  bool is_aligned = ((unsigned long)ptr % ((t) / 8)) == 0;\
++  const u##t *buf = ptr;  \
++  \
++  if (!count) \
++  return; \
++  \
++  /* Some ARC CPU's don't support unaligned accesses */   \
++  if (is_aligned) {   \
++  do {\
++  __raw_write##f(*buf++, addr);   \
++  

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-12-17 Thread Mike Pagano
commit: 7da405c97751536cd52f43a2352274ade231a87d
Author: Mike Pagano  gentoo  org>
AuthorDate: Mon Dec 17 11:40:32 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Mon Dec 17 11:40:32 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=7da405c9

proj/linux-patches: Linux patch 4.14.89

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1088_linux-4.14.89.patch | 3343 ++
 2 files changed, 3347 insertions(+)

diff --git a/_README b/_README
index cd0b9dc..1e80ac5 100644
--- a/_README
+++ b/_README
@@ -395,6 +395,10 @@ Patch:  1087_4.14.88.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.88
 
+Patch:  1088_4.14.89.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.89
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1088_linux-4.14.89.patch b/1088_linux-4.14.89.patch
new file mode 100644
index 000..ecfddf0
--- /dev/null
+++ b/1088_linux-4.14.89.patch
@@ -0,0 +1,3343 @@
+diff --git a/Makefile b/Makefile
+index 3fdee40861a1..b83477be8d0c 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 88
++SUBLEVEL = 89
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arm/boot/dts/logicpd-som-lv.dtsi 
b/arch/arm/boot/dts/logicpd-som-lv.dtsi
+index c335b923753a..a7883676f675 100644
+--- a/arch/arm/boot/dts/logicpd-som-lv.dtsi
 b/arch/arm/boot/dts/logicpd-som-lv.dtsi
+@@ -123,7 +123,7 @@
+ };
+ 
+  {
+-  interrupts-extended = < 94 _pmx_core2 0x46>;
++  interrupts-extended = < 94 _pmx_core 0x136>;
+   pinctrl-0 = <_pins _gpio>;
+   pinctrl-names = "default";
+   vmmc-supply = <_vmmc>;
+diff --git a/arch/arm/boot/dts/sama5d2.dtsi b/arch/arm/boot/dts/sama5d2.dtsi
+index b1a26b42d190..a8e4b89097d9 100644
+--- a/arch/arm/boot/dts/sama5d2.dtsi
 b/arch/arm/boot/dts/sama5d2.dtsi
+@@ -308,7 +308,7 @@
+ 0x1 0x0 0x6000 0x1000
+ 0x2 0x0 0x7000 0x1000
+ 0x3 0x0 0x8000 0x1000>;
+-  clocks = <>;
++  clocks = <>;
+   status = "disabled";
+ 
+   nand_controller: nand-controller {
+diff --git a/arch/arm/mach-omap1/board-ams-delta.c 
b/arch/arm/mach-omap1/board-ams-delta.c
+index 6cbc69c92913..4174fa86bfb1 100644
+--- a/arch/arm/mach-omap1/board-ams-delta.c
 b/arch/arm/mach-omap1/board-ams-delta.c
+@@ -512,6 +512,9 @@ static void modem_pm(struct uart_port *port, unsigned int 
state, unsigned old)
+   struct modem_private_data *priv = port->private_data;
+   int ret;
+ 
++  if (!priv)
++  return;
++
+   if (IS_ERR(priv->regulator))
+   return;
+ 
+diff --git a/arch/arm/mach-omap2/prm44xx.c b/arch/arm/mach-omap2/prm44xx.c
+index 1c0c1663f078..5affa9f5300b 100644
+--- a/arch/arm/mach-omap2/prm44xx.c
 b/arch/arm/mach-omap2/prm44xx.c
+@@ -344,7 +344,7 @@ static void omap44xx_prm_reconfigure_io_chain(void)
+  * to occur, WAKEUPENABLE bits must be set in the pad mux registers, and
+  * omap44xx_prm_reconfigure_io_chain() must be called.  No return value.
+  */
+-static void __init omap44xx_prm_enable_io_wakeup(void)
++static void omap44xx_prm_enable_io_wakeup(void)
+ {
+   s32 inst = omap4_prmst_get_prm_dev_inst();
+ 
+diff --git a/arch/s390/kernel/perf_cpum_cf.c b/arch/s390/kernel/perf_cpum_cf.c
+index 61e91fee8467..edf6a61f0a64 100644
+--- a/arch/s390/kernel/perf_cpum_cf.c
 b/arch/s390/kernel/perf_cpum_cf.c
+@@ -349,6 +349,8 @@ static int __hw_perf_event_init(struct perf_event *event)
+   break;
+ 
+   case PERF_TYPE_HARDWARE:
++  if (is_sampling_event(event))   /* No sampling support */
++  return -ENOENT;
+   ev = attr->config;
+   /* Count user space (problem-state) only */
+   if (!attr->exclude_user && attr->exclude_kernel) {
+diff --git a/arch/x86/kvm/lapic.c b/arch/x86/kvm/lapic.c
+index 13dfb55b84db..f7c34184342a 100644
+--- a/arch/x86/kvm/lapic.c
 b/arch/x86/kvm/lapic.c
+@@ -55,7 +55,7 @@
+ #define PRIo64 "o"
+ 
+ /* #define apic_debug(fmt,arg...) printk(KERN_WARNING fmt,##arg) */
+-#define apic_debug(fmt, arg...)
++#define apic_debug(fmt, arg...) do {} while (0)
+ 
+ /* 14 is the version for Xeon and Pentium 8.4.8*/
+ #define APIC_VERSION  (0x14UL | ((KVM_APIC_LVT_NUM - 1) << 
16))
+diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
+index ec588cf4fe95..4353580b659a 100644
+--- a/arch/x86/kvm/vmx.c
 b/arch/x86/kvm/vmx.c
+@@ -1089,7 +1089,7 @@ static void vmx_set_nmi_mask(struct kvm_vcpu *vcpu, bool 
masked);
+ static bool nested_vmx_is_page_fault_vmexit(struct vmcs12 *vmcs12,
+  

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-12-13 Thread Mike Pagano
commit: edceebae5b074eeabc237ce5ebc7c0b97dece0f0
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Dec 13 11:37:43 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu Dec 13 11:37:43 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=edceebae

proj/linux-patches: Linux patch 4.14.88

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1087_linux-4.14.88.patch | 2403 ++
 2 files changed, 2407 insertions(+)

diff --git a/_README b/_README
index b64e7d4..cd0b9dc 100644
--- a/_README
+++ b/_README
@@ -391,6 +391,10 @@ Patch:  1086_4.14.87.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.87
 
+Patch:  1087_4.14.88.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.88
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1087_linux-4.14.88.patch b/1087_linux-4.14.88.patch
new file mode 100644
index 000..4c1347a
--- /dev/null
+++ b/1087_linux-4.14.88.patch
@@ -0,0 +1,2403 @@
+diff --git a/Makefile b/Makefile
+index 322484348f3e..3fdee40861a1 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 87
++SUBLEVEL = 88
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arm/probes/kprobes/opt-arm.c 
b/arch/arm/probes/kprobes/opt-arm.c
+index b2aa9b32bff2..2c118a6ab358 100644
+--- a/arch/arm/probes/kprobes/opt-arm.c
 b/arch/arm/probes/kprobes/opt-arm.c
+@@ -247,7 +247,7 @@ int arch_prepare_optimized_kprobe(struct optimized_kprobe 
*op, struct kprobe *or
+   }
+ 
+   /* Copy arch-dep-instance from template. */
+-  memcpy(code, _template_entry,
++  memcpy(code, (unsigned char *)optprobe_template_entry,
+   TMPL_END_IDX * sizeof(kprobe_opcode_t));
+ 
+   /* Adjust buffer according to instruction. */
+diff --git a/drivers/dma/cppi41.c b/drivers/dma/cppi41.c
+index f7e965f63274..ddd4a3932127 100644
+--- a/drivers/dma/cppi41.c
 b/drivers/dma/cppi41.c
+@@ -723,8 +723,22 @@ static int cppi41_stop_chan(struct dma_chan *chan)
+ 
+   desc_phys = lower_32_bits(c->desc_phys);
+   desc_num = (desc_phys - cdd->descs_phys) / sizeof(struct cppi41_desc);
+-  if (!cdd->chan_busy[desc_num])
++  if (!cdd->chan_busy[desc_num]) {
++  struct cppi41_channel *cc, *_ct;
++
++  /*
++   * channels might still be in the pendling list if
++   * cppi41_dma_issue_pending() is called after
++   * cppi41_runtime_suspend() is called
++   */
++  list_for_each_entry_safe(cc, _ct, >pending, node) {
++  if (cc != c)
++  continue;
++  list_del(>node);
++  break;
++  }
+   return 0;
++  }
+ 
+   ret = cppi41_tear_down_chan(c);
+   if (ret)
+diff --git a/drivers/dma/dw/core.c b/drivers/dma/dw/core.c
+index f43e6dafe446..0f389e008ce6 100644
+--- a/drivers/dma/dw/core.c
 b/drivers/dma/dw/core.c
+@@ -1064,12 +1064,12 @@ static void dwc_issue_pending(struct dma_chan *chan)
+ /*
+  * Program FIFO size of channels.
+  *
+- * By default full FIFO (1024 bytes) is assigned to channel 0. Here we
++ * By default full FIFO (512 bytes) is assigned to channel 0. Here we
+  * slice FIFO on equal parts between channels.
+  */
+ static void idma32_fifo_partition(struct dw_dma *dw)
+ {
+-  u64 value = IDMA32C_FP_PSIZE_CH0(128) | IDMA32C_FP_PSIZE_CH1(128) |
++  u64 value = IDMA32C_FP_PSIZE_CH0(64) | IDMA32C_FP_PSIZE_CH1(64) |
+   IDMA32C_FP_UPDATE;
+   u64 fifo_partition = 0;
+ 
+@@ -1082,7 +1082,7 @@ static void idma32_fifo_partition(struct dw_dma *dw)
+   /* Fill FIFO_PARTITION high bits (Channels 2..3, 6..7) */
+   fifo_partition |= value << 32;
+ 
+-  /* Program FIFO Partition registers - 128 bytes for each channel */
++  /* Program FIFO Partition registers - 64 bytes per channel */
+   idma32_writeq(dw, FIFO_PARTITION1, fifo_partition);
+   idma32_writeq(dw, FIFO_PARTITION0, fifo_partition);
+ }
+diff --git a/drivers/gpio/gpio-mockup.c b/drivers/gpio/gpio-mockup.c
+index 9532d86a82f7..d99c8d8da9a0 100644
+--- a/drivers/gpio/gpio-mockup.c
 b/drivers/gpio/gpio-mockup.c
+@@ -35,8 +35,8 @@
+ #define GPIO_MOCKUP_MAX_RANGES(GPIO_MOCKUP_MAX_GC * 2)
+ 
+ enum {
+-  GPIO_MOCKUP_DIR_OUT = 0,
+-  GPIO_MOCKUP_DIR_IN = 1,
++  GPIO_MOCKUP_DIR_IN = 0,
++  GPIO_MOCKUP_DIR_OUT = 1,
+ };
+ 
+ /*
+@@ -112,7 +112,7 @@ static int gpio_mockup_get_direction(struct gpio_chip *gc, 
unsigned int offset)
+ {
+   struct gpio_mockup_chip *chip = gpiochip_get_data(gc);
+ 
+-  return chip->lines[offset].dir;
++  return !chip->lines[offset].dir;
+ }
+ 
+ static int gpio_mockup_name_lines(struct 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-12-08 Thread Mike Pagano
commit: 5829d907f1f0a3ef05e7a0339159b485cc84bb50
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Dec  8 13:20:38 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Dec  8 13:20:38 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=5829d907

proj/linux-patches: Linux patch 4.14.87

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1086_linux-4.14.87.patch | 2334 ++
 2 files changed, 2338 insertions(+)

diff --git a/_README b/_README
index b0b15a3..b64e7d4 100644
--- a/_README
+++ b/_README
@@ -387,6 +387,10 @@ Patch:  1085_4.14.86.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.86
 
+Patch:  1086_4.14.87.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.87
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1086_linux-4.14.87.patch b/1086_linux-4.14.87.patch
new file mode 100644
index 000..89e0a61
--- /dev/null
+++ b/1086_linux-4.14.87.patch
@@ -0,0 +1,2334 @@
+diff --git a/Makefile b/Makefile
+index 572bd98d2344..322484348f3e 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 86
++SUBLEVEL = 87
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+@@ -803,6 +803,9 @@ KBUILD_CFLAGS += $(call 
cc-option,-Wdeclaration-after-statement,)
+ # disable pointer signed / unsigned warnings in gcc 4.0
+ KBUILD_CFLAGS += $(call cc-disable-warning, pointer-sign)
+ 
++# disable stringop warnings in gcc 8+
++KBUILD_CFLAGS += $(call cc-disable-warning, stringop-truncation)
++
+ # disable invalid "can't wrap" optimizations for signed / pointers
+ KBUILD_CFLAGS += $(call cc-option,-fno-strict-overflow)
+ 
+diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig
+index 8ff066090680..9d06c9478a0d 100644
+--- a/arch/arc/Kconfig
 b/arch/arc/Kconfig
+@@ -109,7 +109,7 @@ endmenu
+ 
+ choice
+   prompt "ARC Instruction Set"
+-  default ISA_ARCOMPACT
++  default ISA_ARCV2
+ 
+ config ISA_ARCOMPACT
+   bool "ARCompact ISA"
+diff --git a/arch/arc/Makefile b/arch/arc/Makefile
+index 7c6c97782022..2917f56f0ea4 100644
+--- a/arch/arc/Makefile
 b/arch/arc/Makefile
+@@ -6,7 +6,7 @@
+ # published by the Free Software Foundation.
+ #
+ 
+-KBUILD_DEFCONFIG := nsim_700_defconfig
++KBUILD_DEFCONFIG := nsim_hs_defconfig
+ 
+ cflags-y  += -fno-common -pipe -fno-builtin -mmedium-calls -D__linux__
+ cflags-$(CONFIG_ISA_ARCOMPACT)+= -mA7
+diff --git a/arch/arc/configs/axs101_defconfig 
b/arch/arc/configs/axs101_defconfig
+index ece78630d711..5d5ba2104ba7 100644
+--- a/arch/arc/configs/axs101_defconfig
 b/arch/arc/configs/axs101_defconfig
+@@ -15,6 +15,7 @@ CONFIG_PERF_EVENTS=y
+ # CONFIG_VM_EVENT_COUNTERS is not set
+ # CONFIG_SLUB_DEBUG is not set
+ # CONFIG_COMPAT_BRK is not set
++CONFIG_ISA_ARCOMPACT=y
+ CONFIG_MODULES=y
+ CONFIG_MODULE_FORCE_LOAD=y
+ CONFIG_MODULE_UNLOAD=y
+@@ -98,6 +99,7 @@ CONFIG_VFAT_FS=y
+ CONFIG_NTFS_FS=y
+ CONFIG_TMPFS=y
+ CONFIG_NFS_FS=y
++CONFIG_NFS_V3_ACL=y
+ CONFIG_NLS_CODEPAGE_437=y
+ CONFIG_NLS_ISO8859_1=y
+ # CONFIG_ENABLE_WARN_DEPRECATED is not set
+diff --git a/arch/arc/configs/axs103_defconfig 
b/arch/arc/configs/axs103_defconfig
+index 240c9251a7d4..0874db2d48a8 100644
+--- a/arch/arc/configs/axs103_defconfig
 b/arch/arc/configs/axs103_defconfig
+@@ -97,6 +97,7 @@ CONFIG_VFAT_FS=y
+ CONFIG_NTFS_FS=y
+ CONFIG_TMPFS=y
+ CONFIG_NFS_FS=y
++CONFIG_NFS_V3_ACL=y
+ CONFIG_NLS_CODEPAGE_437=y
+ CONFIG_NLS_ISO8859_1=y
+ # CONFIG_ENABLE_WARN_DEPRECATED is not set
+diff --git a/arch/arc/configs/axs103_smp_defconfig 
b/arch/arc/configs/axs103_smp_defconfig
+index af54b96abee0..cf5df0e1cb08 100644
+--- a/arch/arc/configs/axs103_smp_defconfig
 b/arch/arc/configs/axs103_smp_defconfig
+@@ -100,6 +100,7 @@ CONFIG_VFAT_FS=y
+ CONFIG_NTFS_FS=y
+ CONFIG_TMPFS=y
+ CONFIG_NFS_FS=y
++CONFIG_NFS_V3_ACL=y
+ CONFIG_NLS_CODEPAGE_437=y
+ CONFIG_NLS_ISO8859_1=y
+ # CONFIG_ENABLE_WARN_DEPRECATED is not set
+diff --git a/arch/arc/configs/hsdk_defconfig b/arch/arc/configs/hsdk_defconfig
+index 762b1fcd93dc..083560e9e571 100644
+--- a/arch/arc/configs/hsdk_defconfig
 b/arch/arc/configs/hsdk_defconfig
+@@ -66,6 +66,7 @@ CONFIG_EXT3_FS=y
+ CONFIG_VFAT_FS=y
+ CONFIG_TMPFS=y
+ CONFIG_NFS_FS=y
++CONFIG_NFS_V3_ACL=y
+ CONFIG_NLS_CODEPAGE_437=y
+ CONFIG_NLS_ISO8859_1=y
+ # CONFIG_ENABLE_WARN_DEPRECATED is not set
+diff --git a/arch/arc/configs/nps_defconfig b/arch/arc/configs/nps_defconfig
+index 7c9c706ae7f6..9121c6ba15d0 100644
+--- a/arch/arc/configs/nps_defconfig
 b/arch/arc/configs/nps_defconfig
+@@ -15,6 +15,7 @@ CONFIG_SYSCTL_SYSCALL=y
+ CONFIG_EMBEDDED=y
+ CONFIG_PERF_EVENTS=y
+ # CONFIG_COMPAT_BRK is not set
++CONFIG_ISA_ARCOMPACT=y
+ CONFIG_KPROBES=y
+ CONFIG_MODULES=y
+ CONFIG_MODULE_FORCE_LOAD=y
+@@ -74,6 +75,7 @@ CONFIG_PROC_KCORE=y
+ 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-12-01 Thread Mike Pagano
commit: 42ae3826b066f3d7b311438ce2d51b3a2f1ee42c
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Dec  1 17:25:28 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Dec  1 17:25:28 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=42ae3826

proj/linux-patches: Update existing patch for 4.14.85

Patch updated:
1510_fs-enable-link-security-restrictions-by-default.patch

Signed-off-by: Mike Pagano  gentoo.org>

 ...able-link-security-restrictions-by-default.patch | 21 ++---
 1 file changed, 6 insertions(+), 15 deletions(-)

diff --git a/1510_fs-enable-link-security-restrictions-by-default.patch 
b/1510_fs-enable-link-security-restrictions-by-default.patch
index 639fb3c..8bfb36c 100644
--- a/1510_fs-enable-link-security-restrictions-by-default.patch
+++ b/1510_fs-enable-link-security-restrictions-by-default.patch
@@ -1,22 +1,13 @@
-From: Ben Hutchings 
-Subject: fs: Enable link security restrictions by default
-Date: Fri, 02 Nov 2012 05:32:06 +
-Bug-Debian: https://bugs.debian.org/609455
-Forwarded: not-needed
-
-This reverts commit 561ec64ae67ef25cac8d72bb9c4bfc955edfd415
-('VFS: don't do protected {sym,hard}links by default').
-
 a/fs/namei.c
-+++ b/fs/namei.c
-@@ -651,8 +651,8 @@ static inline void put_link(struct namei
-   path_put(link);
+--- a/fs/namei.c   2018-12-01 11:30:07.672594412 -0500
 b/fs/namei.c   2018-12-01 11:30:58.772816410 -0500
+@@ -902,8 +902,8 @@ static inline void put_link(struct namei
+   path_put(>link);
  }
  
 -int sysctl_protected_symlinks __read_mostly = 0;
 -int sysctl_protected_hardlinks __read_mostly = 0;
 +int sysctl_protected_symlinks __read_mostly = 1;
 +int sysctl_protected_hardlinks __read_mostly = 1;
+ int sysctl_protected_fifos __read_mostly;
+ int sysctl_protected_regular __read_mostly;
  
- /**
-  * may_follow_link - Check symlink following for unsafe situations



[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-27 Thread Mike Pagano
commit: 0a7b3b377ca2adb363bd764b113e1f4a3ee75165
Author: Mike Pagano  gentoo  org>
AuthorDate: Tue Nov 27 16:17:33 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Tue Nov 27 16:17:33 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=0a7b3b37

proj/linux-patches: Linux patch 4.14.84

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1083_linux-4.14.84.patch | 2271 ++
 2 files changed, 2275 insertions(+)

diff --git a/_README b/_README
index 37903b0..b8625f0 100644
--- a/_README
+++ b/_README
@@ -375,6 +375,10 @@ Patch:  1082-4.14.83.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.83
 
+Patch:  1083-4.14.84.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.84
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1083_linux-4.14.84.patch b/1083_linux-4.14.84.patch
new file mode 100644
index 000..bc3fcf5
--- /dev/null
+++ b/1083_linux-4.14.84.patch
@@ -0,0 +1,2271 @@
+diff --git a/Documentation/admin-guide/kernel-parameters.txt 
b/Documentation/admin-guide/kernel-parameters.txt
+index 9841bad6f271..99a08722124d 100644
+--- a/Documentation/admin-guide/kernel-parameters.txt
 b/Documentation/admin-guide/kernel-parameters.txt
+@@ -1011,7 +1011,7 @@
+   earlyprintk=serial[,0x...[,baudrate]]
+   earlyprintk=ttySn[,baudrate]
+   earlyprintk=dbgp[debugController#]
+-  earlyprintk=pciserial,bus:device.function[,baudrate]
++  
earlyprintk=pciserial[,force],bus:device.function[,baudrate]
+   earlyprintk=xdbc[xhciController#]
+ 
+   earlyprintk is useful when the kernel crashes before
+@@ -1043,6 +1043,10 @@
+ 
+   The sclp output can only be used on s390.
+ 
++  The optional "force" to "pciserial" enables use of a
++  PCI device even when its classcode is not of the
++  UART class.
++
+   edac_report=[HW,EDAC] Control how to report EDAC event
+   Format: {"on" | "off" | "force"}
+   on: enable EDAC to report H/W event. May be overridden
+diff --git a/Documentation/x86/x86_64/mm.txt b/Documentation/x86/x86_64/mm.txt
+index ea91cb61a602..43f066cde67d 100644
+--- a/Documentation/x86/x86_64/mm.txt
 b/Documentation/x86/x86_64/mm.txt
+@@ -4,8 +4,9 @@ Virtual memory map with 4 level page tables:
+  - 7fff (=47 bits) user space, different per mm
+ hole caused by [47:63] sign extension
+ 8000 - 87ff (=43 bits) guard hole, reserved for 
hypervisor
+-8800 - c7ff (=64 TB) direct mapping of all phys. 
memory
+-c800 - c8ff (=40 bits) hole
++8800 - 887f (=39 bits) LDT remap for PTI
++8880 - c87f (=64 TB) direct mapping of all phys. 
memory
++c880 - c8ff (=39 bits) hole
+ c900 - e8ff (=45 bits) vmalloc/ioremap space
+ e900 - e9ff (=40 bits) hole
+ ea00 - eaff (=40 bits) virtual memory map (1TB)
+@@ -30,8 +31,9 @@ Virtual memory map with 5 level page tables:
+  - 00ff (=56 bits) user space, different per mm
+ hole caused by [56:63] sign extension
+ ff00 - ff0f (=52 bits) guard hole, reserved for 
hypervisor
+-ff10 - ff8f (=55 bits) direct mapping of all phys. 
memory
+-ff90 - ff9f (=52 bits) LDT remap for PTI
++ff10 - ff10 (=48 bits) LDT remap for PTI
++ff11 - ff90 (=55 bits) direct mapping of all phys. 
memory
++ff91 - ff9f (=3840 TB) hole
+ ffa0 - ffd1 (=54 bits) vmalloc/ioremap space (12800 
TB)
+ ffd2 - ffd3 (=49 bits) hole
+ ffd4 - ffd5 (=49 bits) virtual memory map (512TB)
+diff --git a/Makefile b/Makefile
+index 0f42814095a4..874d72a3e6a7 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 83
++SUBLEVEL = 84
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arm64/include/asm/percpu.h b/arch/arm64/include/asm/percpu.h
+index 43393208229e..d79eaa816f29 100644
+--- a/arch/arm64/include/asm/percpu.h
 b/arch/arm64/include/asm/percpu.h
+@@ -93,6 +93,7 @@ static inline unsigned long __percpu_##op(void *ptr, 
\
+   : [val] "Ir" (val));\
+   break;  \
+   default:  

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-23 Thread Mike Pagano
commit: 33be69262c3b8c3d5fc660ec3b651347f602e575
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Nov 23 12:43:43 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Fri Nov 23 12:43:43 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=33be6926

proj/linux-patches: Linux patch 4.14.83

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |   4 +
 1082_linux-4.14.83.patch | 667 +++
 2 files changed, 671 insertions(+)

diff --git a/_README b/_README
index b8ff7e8..37903b0 100644
--- a/_README
+++ b/_README
@@ -371,6 +371,10 @@ Patch:  1081-4.14.82.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.82
 
+Patch:  1082-4.14.83.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.83
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1082_linux-4.14.83.patch b/1082_linux-4.14.83.patch
new file mode 100644
index 000..466e5dd
--- /dev/null
+++ b/1082_linux-4.14.83.patch
@@ -0,0 +1,667 @@
+diff --git a/Makefile b/Makefile
+index cac5323bc95d..0f42814095a4 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 82
++SUBLEVEL = 83
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arm/boot/dts/r8a7791.dtsi b/arch/arm/boot/dts/r8a7791.dtsi
+index f1d1a9772153..0aceb3736e5c 100644
+--- a/arch/arm/boot/dts/r8a7791.dtsi
 b/arch/arm/boot/dts/r8a7791.dtsi
+@@ -91,7 +91,7 @@
+ 
+   trips {
+   cpu-crit {
+-  temperature = <115000>;
++  temperature = <95000>;
+   hysteresis  = <0>;
+   type= "critical";
+   };
+diff --git a/arch/arm/boot/dts/r8a7793.dtsi b/arch/arm/boot/dts/r8a7793.dtsi
+index 497716b6fbe2..fd12564aabc3 100644
+--- a/arch/arm/boot/dts/r8a7793.dtsi
 b/arch/arm/boot/dts/r8a7793.dtsi
+@@ -88,7 +88,7 @@
+ 
+   trips {
+   cpu-crit {
+-  temperature = <115000>;
++  temperature = <95000>;
+   hysteresis  = <0>;
+   type= "critical";
+   };
+diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c
+index aa6e7f75bccc..e92aedd93806 100644
+--- a/arch/x86/kernel/cpu/bugs.c
 b/arch/x86/kernel/cpu/bugs.c
+@@ -34,10 +34,12 @@ static void __init spectre_v2_select_mitigation(void);
+ static void __init ssb_select_mitigation(void);
+ static void __init l1tf_select_mitigation(void);
+ 
+-/* The base value of the SPEC_CTRL MSR that always has to be preserved. */
+-u64 x86_spec_ctrl_base;
++/*
++ * Our boot-time value of the SPEC_CTRL MSR. We read it once so that any
++ * writes to SPEC_CTRL contain whatever reserved bits have been set.
++ */
++u64 __ro_after_init x86_spec_ctrl_base;
+ EXPORT_SYMBOL_GPL(x86_spec_ctrl_base);
+-static DEFINE_MUTEX(spec_ctrl_mutex);
+ 
+ /*
+  * The vendor and possibly platform specific bits which can be modified in
+@@ -321,46 +323,6 @@ static enum spectre_v2_mitigation_cmd __init 
spectre_v2_parse_cmdline(void)
+   return cmd;
+ }
+ 
+-static bool stibp_needed(void)
+-{
+-  if (spectre_v2_enabled == SPECTRE_V2_NONE)
+-  return false;
+-
+-  if (!boot_cpu_has(X86_FEATURE_STIBP))
+-  return false;
+-
+-  return true;
+-}
+-
+-static void update_stibp_msr(void *info)
+-{
+-  wrmsrl(MSR_IA32_SPEC_CTRL, x86_spec_ctrl_base);
+-}
+-
+-void arch_smt_update(void)
+-{
+-  u64 mask;
+-
+-  if (!stibp_needed())
+-  return;
+-
+-  mutex_lock(_ctrl_mutex);
+-  mask = x86_spec_ctrl_base;
+-  if (cpu_smt_control == CPU_SMT_ENABLED)
+-  mask |= SPEC_CTRL_STIBP;
+-  else
+-  mask &= ~SPEC_CTRL_STIBP;
+-
+-  if (mask != x86_spec_ctrl_base) {
+-  pr_info("Spectre v2 cross-process SMT mitigation: %s STIBP\n",
+-  cpu_smt_control == CPU_SMT_ENABLED ?
+-  "Enabling" : "Disabling");
+-  x86_spec_ctrl_base = mask;
+-  on_each_cpu(update_stibp_msr, NULL, 1);
+-  }
+-  mutex_unlock(_ctrl_mutex);
+-}
+-
+ static void __init spectre_v2_select_mitigation(void)
+ {
+   enum spectre_v2_mitigation_cmd cmd = spectre_v2_parse_cmdline();
+@@ -460,9 +422,6 @@ specv2_set_mode:
+   setup_force_cpu_cap(X86_FEATURE_USE_IBRS_FW);
+   pr_info("Enabling Restricted Speculation for firmware calls\n");
+   }
+-
+-  /* Enable STIBP if appropriate */
+-  

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-21 Thread Mike Pagano
commit: 6458720a655972433c367328b0cb918faebe
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Nov 21 12:26:45 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 21 12:26:45 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=6458

proj/linux-patches: Linux patch 4.14.82

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1081_linux-4.14.82.patch | 3276 ++
 2 files changed, 3280 insertions(+)

diff --git a/_README b/_README
index 70ae288..b8ff7e8 100644
--- a/_README
+++ b/_README
@@ -367,6 +367,10 @@ Patch:  1080-4.14.81.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.81
 
+Patch:  1081-4.14.82.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.82
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1081_linux-4.14.82.patch b/1081_linux-4.14.82.patch
new file mode 100644
index 000..d95f88b
--- /dev/null
+++ b/1081_linux-4.14.82.patch
@@ -0,0 +1,3276 @@
+diff --git a/Makefile b/Makefile
+index 2fe1424d61d2..cac5323bc95d 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 81
++SUBLEVEL = 82
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/alpha/include/asm/termios.h 
b/arch/alpha/include/asm/termios.h
+index 6a8c53dec57e..b7c77bb1bfd2 100644
+--- a/arch/alpha/include/asm/termios.h
 b/arch/alpha/include/asm/termios.h
+@@ -73,9 +73,15 @@
+ })
+ 
+ #define user_termios_to_kernel_termios(k, u) \
+-  copy_from_user(k, u, sizeof(struct termios))
++  copy_from_user(k, u, sizeof(struct termios2))
+ 
+ #define kernel_termios_to_user_termios(u, k) \
++  copy_to_user(u, k, sizeof(struct termios2))
++
++#define user_termios_to_kernel_termios_1(k, u) \
++  copy_from_user(k, u, sizeof(struct termios))
++
++#define kernel_termios_to_user_termios_1(u, k) \
+   copy_to_user(u, k, sizeof(struct termios))
+ 
+ #endif/* _ALPHA_TERMIOS_H */
+diff --git a/arch/alpha/include/uapi/asm/ioctls.h 
b/arch/alpha/include/uapi/asm/ioctls.h
+index 3729d92d3fa8..dc8c20ac7191 100644
+--- a/arch/alpha/include/uapi/asm/ioctls.h
 b/arch/alpha/include/uapi/asm/ioctls.h
+@@ -32,6 +32,11 @@
+ #define TCXONC_IO('t', 30)
+ #define TCFLSH_IO('t', 31)
+ 
++#define TCGETS2   _IOR('T', 42, struct termios2)
++#define TCSETS2   _IOW('T', 43, struct termios2)
++#define TCSETSW2  _IOW('T', 44, struct termios2)
++#define TCSETSF2  _IOW('T', 45, struct termios2)
++
+ #define TIOCSWINSZ_IOW('t', 103, struct winsize)
+ #define TIOCGWINSZ_IOR('t', 104, struct winsize)
+ #define   TIOCSTART   _IO('t', 110)   /* start output, like 
^Q */
+diff --git a/arch/alpha/include/uapi/asm/termbits.h 
b/arch/alpha/include/uapi/asm/termbits.h
+index 05e0398a83a6..53b3ecff2f50 100644
+--- a/arch/alpha/include/uapi/asm/termbits.h
 b/arch/alpha/include/uapi/asm/termbits.h
+@@ -26,6 +26,19 @@ struct termios {
+   speed_t c_ospeed;   /* output speed */
+ };
+ 
++/* Alpha has identical termios and termios2 */
++
++struct termios2 {
++  tcflag_t c_iflag;   /* input mode flags */
++  tcflag_t c_oflag;   /* output mode flags */
++  tcflag_t c_cflag;   /* control mode flags */
++  tcflag_t c_lflag;   /* local mode flags */
++  cc_t c_cc[NCCS];/* control characters */
++  cc_t c_line;/* line discipline (== c_cc[19]) */
++  speed_t c_ispeed;   /* input speed */
++  speed_t c_ospeed;   /* output speed */
++};
++
+ /* Alpha has matching termios and ktermios */
+ 
+ struct ktermios {
+@@ -148,6 +161,7 @@ struct ktermios {
+ #define B300  00034
+ #define B350  00035
+ #define B400  00036
++#define BOTHER00037
+ 
+ #define CSIZE 1400
+ #define   CS5 
+@@ -165,6 +179,9 @@ struct ktermios {
+ #define CMSPAR  0100  /* mark or space (stick) parity 
*/
+ #define CRTSCTS 0200  /* flow control */
+ 
++#define CIBAUD0760
++#define IBSHIFT   16
++
+ /* c_lflag bits */
+ #define ISIG  0x0080
+ #define ICANON0x0100
+diff --git a/arch/arm/configs/imx_v6_v7_defconfig 
b/arch/arm/configs/imx_v6_v7_defconfig
+index 32acac9ab81a..9c795ceedd5b 100644
+--- a/arch/arm/configs/imx_v6_v7_defconfig
 b/arch/arm/configs/imx_v6_v7_defconfig
+@@ -383,6 +383,7 @@ CONFIG_ZISOFS=y
+ CONFIG_UDF_FS=m
+ CONFIG_MSDOS_FS=m
+ CONFIG_VFAT_FS=y
++CONFIG_TMPFS_POSIX_ACL=y
+ CONFIG_JFFS2_FS=y
+ CONFIG_UBIFS_FS=y
+ CONFIG_NFS_FS=y
+diff --git a/arch/arm/mm/proc-v7.S b/arch/arm/mm/proc-v7.S
+index 12468d9378d8..d8d90cf65b39 100644
+--- a/arch/arm/mm/proc-v7.S
 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-14 Thread Mike Pagano
commit: 9b7255e698c2352b7aec0c360fd67210dcff664e
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Oct 10 11:17:55 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 14 14:00:41 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=9b7255e6

Linux patch 4.14.75

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1074_linux-4.14.75.patch | 3396 ++
 2 files changed, 3400 insertions(+)

diff --git a/_README b/_README
index db32f2e..0684007 100644
--- a/_README
+++ b/_README
@@ -339,6 +339,10 @@ Patch:  1073_linux-4.14.74.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.74
 
+Patch:  1074_linux-4.14.75.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.75
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1074_linux-4.14.75.patch b/1074_linux-4.14.75.patch
new file mode 100644
index 000..a13dbf4
--- /dev/null
+++ b/1074_linux-4.14.75.patch
@@ -0,0 +1,3396 @@
+diff --git a/Makefile b/Makefile
+index cc0e65a8d7bf..7fc373c011c0 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 74
++SUBLEVEL = 75
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arc/include/asm/atomic.h b/arch/arc/include/asm/atomic.h
+index 11859287c52a..c98b59ac0612 100644
+--- a/arch/arc/include/asm/atomic.h
 b/arch/arc/include/asm/atomic.h
+@@ -84,7 +84,7 @@ static inline int atomic_fetch_##op(int i, atomic_t *v)  
\
+   "1: llock   %[orig], [%[ctr]]   \n" \
+   "   " #asm_op " %[val], %[orig], %[i]   \n" \
+   "   scond   %[val], [%[ctr]]\n" \
+-  "   \n" \
++  "   bnz 1b  \n" \
+   : [val] "="   (val),  \
+ [orig] "=" (orig)   \
+   : [ctr] "r" (>counter),  \
+diff --git a/arch/arm64/include/asm/jump_label.h 
b/arch/arm64/include/asm/jump_label.h
+index 1b5e0e843c3a..7e2b3e360086 100644
+--- a/arch/arm64/include/asm/jump_label.h
 b/arch/arm64/include/asm/jump_label.h
+@@ -28,7 +28,7 @@
+ 
+ static __always_inline bool arch_static_branch(struct static_key *key, bool 
branch)
+ {
+-  asm goto("1: nop\n\t"
++  asm_volatile_goto("1: nop\n\t"
+".pushsection __jump_table,  \"aw\"\n\t"
+".align 3\n\t"
+".quad 1b, %l[l_yes], %c0\n\t"
+@@ -42,7 +42,7 @@ l_yes:
+ 
+ static __always_inline bool arch_static_branch_jump(struct static_key *key, 
bool branch)
+ {
+-  asm goto("1: b %l[l_yes]\n\t"
++  asm_volatile_goto("1: b %l[l_yes]\n\t"
+".pushsection __jump_table,  \"aw\"\n\t"
+".align 3\n\t"
+".quad 1b, %l[l_yes], %c0\n\t"
+diff --git a/arch/hexagon/include/asm/bitops.h 
b/arch/hexagon/include/asm/bitops.h
+index 5e4a59b3ec1b..2691a1857d20 100644
+--- a/arch/hexagon/include/asm/bitops.h
 b/arch/hexagon/include/asm/bitops.h
+@@ -211,7 +211,7 @@ static inline long ffz(int x)
+  * This is defined the same way as ffs.
+  * Note fls(0) = 0, fls(1) = 1, fls(0x8000) = 32.
+  */
+-static inline long fls(int x)
++static inline int fls(int x)
+ {
+   int r;
+ 
+@@ -232,7 +232,7 @@ static inline long fls(int x)
+  * the libc and compiler builtin ffs routines, therefore
+  * differs in spirit from the above ffz (man ffs).
+  */
+-static inline long ffs(int x)
++static inline int ffs(int x)
+ {
+   int r;
+ 
+diff --git a/arch/hexagon/kernel/dma.c b/arch/hexagon/kernel/dma.c
+index 546792d176a4..564651bded42 100644
+--- a/arch/hexagon/kernel/dma.c
 b/arch/hexagon/kernel/dma.c
+@@ -59,7 +59,7 @@ static void *hexagon_dma_alloc_coherent(struct device *dev, 
size_t size,
+   panic("Can't create %s() memory pool!", __func__);
+   else
+   gen_pool_add(coherent_pool,
+-  pfn_to_virt(max_low_pfn),
++  (unsigned long)pfn_to_virt(max_low_pfn),
+   hexagon_coherent_pool_size, -1);
+   }
+ 
+diff --git a/arch/powerpc/kvm/book3s_64_mmu_hv.c 
b/arch/powerpc/kvm/book3s_64_mmu_hv.c
+index df9b53f40b1e..7ac7e21b137e 100644
+--- a/arch/powerpc/kvm/book3s_64_mmu_hv.c
 b/arch/powerpc/kvm/book3s_64_mmu_hv.c
+@@ -355,7 +355,7 @@ static int kvmppc_mmu_book3s_64_hv_xlate(struct kvm_vcpu 
*vcpu, gva_t eaddr,
+   unsigned long pp, key;
+   unsigned long v, orig_v, gr;
+   __be64 *hptep;
+-  int index;
++  long int index;
+   int virtmode = vcpu->arch.shregs.msr & (data ? 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-14 Thread Mike Pagano
commit: 272e46e83879ef24d9ebd68ff3fd74cac370cc46
Author: Mike Pagano  gentoo  org>
AuthorDate: Sun Nov 11 01:18:51 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 14 14:00:41 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=272e46e8

net: sched: Remove TCA_OPTIONS from policy

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |  4 
 1800_TCA-OPTIONS-sched-fix.patch | 35 +++
 2 files changed, 39 insertions(+)

diff --git a/_README b/_README
index 9993aba..28ef8f2 100644
--- a/_README
+++ b/_README
@@ -375,6 +375,10 @@ Patch:  1700_ia64_fix_ptrace.patch
 From:   https://patchwork.kernel.org/patch/10198159/
 Desc:   ia64: fix ptrace(PTRACE_GETREGS) (unbreaks strace, gdb).
 
+Patch:  1800_TCA-OPTIONS-sched-fix.patch
+From:   https://git.kernel.org
+Desc:   net: sched: Remove TCA_OPTIONS from policy
+
 Patch: 2100_bcache-data-corruption-fix-for-bi-partno.patch
 From:   
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=62530ed8b1d07a45dec94d46e521c0c6c2d476e6
 Desc:   bio: ensure __bio_clone_fast copies bi_partno. 

diff --git a/1800_TCA-OPTIONS-sched-fix.patch b/1800_TCA-OPTIONS-sched-fix.patch
new file mode 100644
index 000..f960fac
--- /dev/null
+++ b/1800_TCA-OPTIONS-sched-fix.patch
@@ -0,0 +1,35 @@
+From e72bde6b66299602087c8c2350d36a525e75d06e Mon Sep 17 00:00:00 2001
+From: David Ahern 
+Date: Wed, 24 Oct 2018 08:32:49 -0700
+Subject: net: sched: Remove TCA_OPTIONS from policy
+
+Marco reported an error with hfsc:
+root@Calimero:~# tc qdisc add dev eth0 root handle 1:0 hfsc default 1
+Error: Attribute failed policy validation.
+
+Apparently a few implementations pass TCA_OPTIONS as a binary instead
+of nested attribute, so drop TCA_OPTIONS from the policy.
+
+Fixes: 8b4c3cdd9dd8 ("net: sched: Add policy validation for tc attributes")
+Reported-by: Marco Berizzi 
+Signed-off-by: David Ahern 
+Signed-off-by: David S. Miller 
+---
+ net/sched/sch_api.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c
+index 022bca98bde6..ca3b0f46de53 100644
+--- a/net/sched/sch_api.c
 b/net/sched/sch_api.c
+@@ -1320,7 +1320,6 @@ check_loop_fn(struct Qdisc *q, unsigned long cl, struct 
qdisc_walker *w)
+ 
+ const struct nla_policy rtm_tca_policy[TCA_MAX + 1] = {
+   [TCA_KIND]  = { .type = NLA_STRING },
+-  [TCA_OPTIONS]   = { .type = NLA_NESTED },
+   [TCA_RATE]  = { .type = NLA_BINARY,
+   .len = sizeof(struct tc_estimator) },
+   [TCA_STAB]  = { .type = NLA_NESTED },
+-- 
+cgit 1.2-0.3.lf.el7
+



[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-14 Thread Mike Pagano
commit: b19bda65ee159e75f5c050312fcc8f3972da9cc7
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Sep 15 10:11:50 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 14 14:00:41 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=b19bda65

Linux patch 4.14.70

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1069_linux-4.14.70.patch | 3428 ++
 2 files changed, 3432 insertions(+)

diff --git a/_README b/_README
index 2a8e1bb..2e98e70 100644
--- a/_README
+++ b/_README
@@ -319,6 +319,10 @@ Patch:  1068_linux-4.14.69.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.69
 
+Patch:  1069_linux-4.14.70.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.70
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1069_linux-4.14.70.patch b/1069_linux-4.14.70.patch
new file mode 100644
index 000..8091deb
--- /dev/null
+++ b/1069_linux-4.14.70.patch
@@ -0,0 +1,3428 @@
+diff --git a/Makefile b/Makefile
+index 3ecda1d2e23a..aa458afa7fa2 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 69
++SUBLEVEL = 70
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arm/configs/imx_v6_v7_defconfig 
b/arch/arm/configs/imx_v6_v7_defconfig
+index 21ac9f02407e..32acac9ab81a 100644
+--- a/arch/arm/configs/imx_v6_v7_defconfig
 b/arch/arm/configs/imx_v6_v7_defconfig
+@@ -289,7 +289,6 @@ CONFIG_USB_STORAGE=y
+ CONFIG_USB_CHIPIDEA=y
+ CONFIG_USB_CHIPIDEA_UDC=y
+ CONFIG_USB_CHIPIDEA_HOST=y
+-CONFIG_USB_CHIPIDEA_ULPI=y
+ CONFIG_USB_SERIAL=m
+ CONFIG_USB_SERIAL_GENERIC=y
+ CONFIG_USB_SERIAL_FTDI_SIO=m
+@@ -326,7 +325,6 @@ CONFIG_USB_GADGETFS=m
+ CONFIG_USB_FUNCTIONFS=m
+ CONFIG_USB_MASS_STORAGE=m
+ CONFIG_USB_G_SERIAL=m
+-CONFIG_USB_ULPI_BUS=y
+ CONFIG_MMC=y
+ CONFIG_MMC_SDHCI=y
+ CONFIG_MMC_SDHCI_PLTFM=y
+diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
+index a4065966881a..57f0bc4cd9b8 100644
+--- a/arch/arm/mach-rockchip/Kconfig
 b/arch/arm/mach-rockchip/Kconfig
+@@ -18,6 +18,7 @@ config ARCH_ROCKCHIP
+   select ARM_GLOBAL_TIMER
+   select CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK
+   select ZONE_DMA if ARM_LPAE
++  select PM
+   help
+ Support for Rockchip's Cortex-A9 Single-to-Quad-Core-SoCs
+ containing the RK2928, RK30xx and RK31xx series.
+diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
+index 6b54ee8c1262..456d21542250 100644
+--- a/arch/arm64/Kconfig.platforms
 b/arch/arm64/Kconfig.platforms
+@@ -148,6 +148,7 @@ config ARCH_ROCKCHIP
+   select GPIOLIB
+   select PINCTRL
+   select PINCTRL_ROCKCHIP
++  select PM
+   select ROCKCHIP_TIMER
+   help
+ This enables support for the ARMv8 based Rockchip chipsets,
+diff --git a/arch/arm64/include/asm/cache.h b/arch/arm64/include/asm/cache.h
+index ea9bb4e0e9bb..e40f8a2df545 100644
+--- a/arch/arm64/include/asm/cache.h
 b/arch/arm64/include/asm/cache.h
+@@ -20,9 +20,14 @@
+ 
+ #define CTR_L1IP_SHIFT14
+ #define CTR_L1IP_MASK 3
++#define CTR_DMINLINE_SHIFT16
++#define CTR_IMINLINE_SHIFT0
+ #define CTR_CWG_SHIFT 24
+ #define CTR_CWG_MASK  15
+ 
++#define CTR_CACHE_MINLINE_MASK\
++  (0xf << CTR_DMINLINE_SHIFT | 0xf << CTR_IMINLINE_SHIFT)
++
+ #define CTR_L1IP(ctr) (((ctr) >> CTR_L1IP_SHIFT) & CTR_L1IP_MASK)
+ 
+ #define ICACHE_POLICY_VPIPT   0
+diff --git a/arch/arm64/include/asm/cpucaps.h 
b/arch/arm64/include/asm/cpucaps.h
+index 76c0d23ca161..7d6425d426ac 100644
+--- a/arch/arm64/include/asm/cpucaps.h
 b/arch/arm64/include/asm/cpucaps.h
+@@ -44,7 +44,8 @@
+ #define ARM64_HARDEN_BRANCH_PREDICTOR 24
+ #define ARM64_HARDEN_BP_POST_GUEST_EXIT   25
+ #define ARM64_SSBD26
++#define ARM64_MISMATCHED_CACHE_TYPE   27
+ 
+-#define ARM64_NCAPS   27
++#define ARM64_NCAPS   28
+ 
+ #endif /* __ASM_CPUCAPS_H */
+diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c
+index eccdb28b4a39..3d6d7fae45de 100644
+--- a/arch/arm64/kernel/cpu_errata.c
 b/arch/arm64/kernel/cpu_errata.c
+@@ -16,6 +16,8 @@
+  * along with this program.  If not, see .
+  */
+ 
++#include 
++#include 
+ #include 
+ #include 
+ #include 
+@@ -45,12 +47,18 @@ is_kryo_midr(const struct arm64_cpu_capabilities *entry, 
int scope)
+ }
+ 
+ static bool
+-has_mismatched_cache_line_size(const struct arm64_cpu_capabilities *entry,
+-  int scope)
++has_mismatched_cache_type(const struct arm64_cpu_capabilities *entry,
++int scope)
+ {
++  u64 mask = CTR_CACHE_MINLINE_MASK;
++

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-14 Thread Mike Pagano
commit: 0bf72262e810064df8ab8134561866268dc70d42
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Oct 13 16:33:25 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 14 14:00:41 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=0bf72262

Linux patch 4.14.76

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1075_linux-4.14.76.patch | 1999 ++
 2 files changed, 2003 insertions(+)

diff --git a/_README b/_README
index 0684007..7d1d7b6 100644
--- a/_README
+++ b/_README
@@ -343,6 +343,10 @@ Patch:  1074_linux-4.14.75.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.75
 
+Patch:  1075_linux-4.14.76.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.76
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1075_linux-4.14.76.patch b/1075_linux-4.14.76.patch
new file mode 100644
index 000..1029509
--- /dev/null
+++ b/1075_linux-4.14.76.patch
@@ -0,0 +1,1999 @@
+diff --git a/Makefile b/Makefile
+index 7fc373c011c0..332dd011b3b9 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 75
++SUBLEVEL = 76
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arc/kernel/process.c b/arch/arc/kernel/process.c
+index 4674541eba3f..8ce6e7235915 100644
+--- a/arch/arc/kernel/process.c
 b/arch/arc/kernel/process.c
+@@ -241,6 +241,26 @@ int copy_thread(unsigned long clone_flags,
+   task_thread_info(current)->thr_ptr;
+   }
+ 
++
++  /*
++   * setup usermode thread pointer #1:
++   * when child is picked by scheduler, __switch_to() uses @c_callee to
++   * populate usermode callee regs: this works (despite being in a kernel
++   * function) since special return path for child @ret_from_fork()
++   * ensures those regs are not clobbered all the way to RTIE to usermode
++   */
++  c_callee->r25 = task_thread_info(p)->thr_ptr;
++
++#ifdef CONFIG_ARC_CURR_IN_REG
++  /*
++   * setup usermode thread pointer #2:
++   * however for this special use of r25 in kernel, __switch_to() sets
++   * r25 for kernel needs and only in the final return path is usermode
++   * r25 setup, from pt_regs->user_r25. So set that up as well
++   */
++  c_regs->user_r25 = c_callee->r25;
++#endif
++
+   return 0;
+ }
+ 
+diff --git a/arch/powerpc/include/asm/setup.h 
b/arch/powerpc/include/asm/setup.h
+index bbcdf929be54..a5e919e34c42 100644
+--- a/arch/powerpc/include/asm/setup.h
 b/arch/powerpc/include/asm/setup.h
+@@ -9,6 +9,7 @@ extern void ppc_printk_progress(char *s, unsigned short hex);
+ 
+ extern unsigned int rtas_data;
+ extern unsigned long long memory_limit;
++extern bool init_mem_is_free;
+ extern unsigned long klimit;
+ extern void *zalloc_maybe_bootmem(size_t size, gfp_t mask);
+ 
+diff --git a/arch/powerpc/lib/code-patching.c 
b/arch/powerpc/lib/code-patching.c
+index 096d4e4d31e6..882c750dc519 100644
+--- a/arch/powerpc/lib/code-patching.c
 b/arch/powerpc/lib/code-patching.c
+@@ -22,20 +22,28 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+-static int __patch_instruction(unsigned int *addr, unsigned int instr)
++static int __patch_instruction(unsigned int *exec_addr, unsigned int instr,
++ unsigned int *patch_addr)
+ {
+   int err;
+ 
+-  __put_user_size(instr, addr, 4, err);
++  __put_user_size(instr, patch_addr, 4, err);
+   if (err)
+   return err;
+ 
+-  asm ("dcbst 0, %0; sync; icbi 0,%0; sync; isync" :: "r" (addr));
++  asm ("dcbst 0, %0; sync; icbi 0,%1; sync; isync" :: "r" (patch_addr),
++  "r" (exec_addr));
+ 
+   return 0;
+ }
+ 
++static int raw_patch_instruction(unsigned int *addr, unsigned int instr)
++{
++  return __patch_instruction(addr, instr, addr);
++}
++
+ #ifdef CONFIG_STRICT_KERNEL_RWX
+ static DEFINE_PER_CPU(struct vm_struct *, text_poke_area);
+ 
+@@ -135,10 +143,10 @@ static inline int unmap_patch_area(unsigned long addr)
+   return 0;
+ }
+ 
+-int patch_instruction(unsigned int *addr, unsigned int instr)
++static int do_patch_instruction(unsigned int *addr, unsigned int instr)
+ {
+   int err;
+-  unsigned int *dest = NULL;
++  unsigned int *patch_addr = NULL;
+   unsigned long flags;
+   unsigned long text_poke_addr;
+   unsigned long kaddr = (unsigned long)addr;
+@@ -149,7 +157,7 @@ int patch_instruction(unsigned int *addr, unsigned int 
instr)
+* to allow patching. We just do the plain old patching
+*/
+   if (!this_cpu_read(*PTRRELOC(_poke_area)))
+-  return __patch_instruction(addr, instr);
++  return raw_patch_instruction(addr, instr);
+ 
+   

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-14 Thread Mike Pagano
commit: eedc648b507d860a378fca7dcd0cb8f7b111eeda
Author: Mike Pagano  gentoo  org>
AuthorDate: Sun Sep  9 23:28:47 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 14 14:00:41 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=eedc648b

Linux patch 4.14.69

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1068_linux-4.14.69.patch | 3362 ++
 2 files changed, 3366 insertions(+)

diff --git a/_README b/_README
index 4fd9ed9..2a8e1bb 100644
--- a/_README
+++ b/_README
@@ -315,6 +315,10 @@ Patch:  1067_linux-4.14.68.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.68
 
+Patch:  1068_linux-4.14.69.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.69
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1068_linux-4.14.69.patch b/1068_linux-4.14.69.patch
new file mode 100644
index 000..461b50e
--- /dev/null
+++ b/1068_linux-4.14.69.patch
@@ -0,0 +1,3362 @@
+diff --git a/Makefile b/Makefile
+index 3da579058926..3ecda1d2e23a 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 68
++SUBLEVEL = 69
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/alpha/kernel/osf_sys.c b/arch/alpha/kernel/osf_sys.c
+index a48976dc9bcd..918c3938ef66 100644
+--- a/arch/alpha/kernel/osf_sys.c
 b/arch/alpha/kernel/osf_sys.c
+@@ -530,24 +530,19 @@ SYSCALL_DEFINE4(osf_mount, unsigned long, typenr, const 
char __user *, path,
+ SYSCALL_DEFINE1(osf_utsname, char __user *, name)
+ {
+   int error;
++  char tmp[5 * 32];
+ 
+   down_read(_sem);
+-  error = -EFAULT;
+-  if (copy_to_user(name + 0, utsname()->sysname, 32))
+-  goto out;
+-  if (copy_to_user(name + 32, utsname()->nodename, 32))
+-  goto out;
+-  if (copy_to_user(name + 64, utsname()->release, 32))
+-  goto out;
+-  if (copy_to_user(name + 96, utsname()->version, 32))
+-  goto out;
+-  if (copy_to_user(name + 128, utsname()->machine, 32))
+-  goto out;
++  memcpy(tmp + 0 * 32, utsname()->sysname, 32);
++  memcpy(tmp + 1 * 32, utsname()->nodename, 32);
++  memcpy(tmp + 2 * 32, utsname()->release, 32);
++  memcpy(tmp + 3 * 32, utsname()->version, 32);
++  memcpy(tmp + 4 * 32, utsname()->machine, 32);
++  up_read(_sem);
+ 
+-  error = 0;
+- out:
+-  up_read(_sem);  
+-  return error;
++  if (copy_to_user(name, tmp, sizeof(tmp)))
++  return -EFAULT;
++  return 0;
+ }
+ 
+ SYSCALL_DEFINE0(getpagesize)
+@@ -567,18 +562,21 @@ SYSCALL_DEFINE2(osf_getdomainname, char __user *, name, 
int, namelen)
+ {
+   int len, err = 0;
+   char *kname;
++  char tmp[32];
+ 
+-  if (namelen > 32)
++  if (namelen < 0 || namelen > 32)
+   namelen = 32;
+ 
+   down_read(_sem);
+   kname = utsname()->domainname;
+   len = strnlen(kname, namelen);
+-  if (copy_to_user(name, kname, min(len + 1, namelen)))
+-  err = -EFAULT;
++  len = min(len + 1, namelen);
++  memcpy(tmp, kname, len);
+   up_read(_sem);
+ 
+-  return err;
++  if (copy_to_user(name, tmp, len))
++  return -EFAULT;
++  return 0;
+ }
+ 
+ /*
+@@ -739,13 +737,14 @@ SYSCALL_DEFINE3(osf_sysinfo, int, command, char __user 
*, buf, long, count)
+   };
+   unsigned long offset;
+   const char *res;
+-  long len, err = -EINVAL;
++  long len;
++  char tmp[__NEW_UTS_LEN + 1];
+ 
+   offset = command-1;
+   if (offset >= ARRAY_SIZE(sysinfo_table)) {
+   /* Digital UNIX has a few unpublished interfaces here */
+   printk("sysinfo(%d)", command);
+-  goto out;
++  return -EINVAL;
+   }
+ 
+   down_read(_sem);
+@@ -753,13 +752,11 @@ SYSCALL_DEFINE3(osf_sysinfo, int, command, char __user 
*, buf, long, count)
+   len = strlen(res)+1;
+   if ((unsigned long)len > (unsigned long)count)
+   len = count;
+-  if (copy_to_user(buf, res, len))
+-  err = -EFAULT;
+-  else
+-  err = 0;
++  memcpy(tmp, res, len);
+   up_read(_sem);
+- out:
+-  return err;
++  if (copy_to_user(buf, tmp, len))
++  return -EFAULT;
++  return 0;
+ }
+ 
+ SYSCALL_DEFINE5(osf_getsysinfo, unsigned long, op, void __user *, buffer,
+diff --git a/arch/arm/boot/dts/tegra30-cardhu.dtsi 
b/arch/arm/boot/dts/tegra30-cardhu.dtsi
+index 92a9740c533f..3b1db7b9ec50 100644
+--- a/arch/arm/boot/dts/tegra30-cardhu.dtsi
 b/arch/arm/boot/dts/tegra30-cardhu.dtsi
+@@ -206,6 +206,7 @@
+   #address-cells = <1>;
+   #size-cells = <0>;
+   reg = <0x70>;
++   

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-14 Thread Mike Pagano
commit: 968ab2b8ede2eb0f3eddf61c457ab6a1ffbab6ae
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Nov 10 21:31:26 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 14 14:00:41 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=968ab2b8

Linux patch 4.14.80

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1079_linux-4.14.80.patch | 1098 ++
 2 files changed, 1102 insertions(+)

diff --git a/_README b/_README
index 319ee36..9993aba 100644
--- a/_README
+++ b/_README
@@ -359,6 +359,10 @@ Patch:  1078_linux-4.14.79.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.79
 
+Patch:  1079_linux-4.14.80.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.80
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1079_linux-4.14.80.patch b/1079_linux-4.14.80.patch
new file mode 100644
index 000..009344b
--- /dev/null
+++ b/1079_linux-4.14.80.patch
@@ -0,0 +1,1098 @@
+diff --git a/Makefile b/Makefile
+index 57a007bf1181..f4cad5e03561 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 79
++SUBLEVEL = 80
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi
+index 2780e68a853b..914f59166a99 100644
+--- a/arch/arm/boot/dts/tegra20.dtsi
 b/arch/arm/boot/dts/tegra20.dtsi
+@@ -706,7 +706,7 @@
+   phy_type = "ulpi";
+   clocks = <_car TEGRA20_CLK_USB2>,
+<_car TEGRA20_CLK_PLL_U>,
+-   <_car TEGRA20_CLK_PLL_P_OUT4>;
++   <_car TEGRA20_CLK_CDEV2>;
+   clock-names = "reg", "pll_u", "ulpi-link";
+   resets = <_car 58>, <_car 22>;
+   reset-names = "usb", "utmi-pads";
+diff --git a/arch/x86/include/asm/fpu/internal.h 
b/arch/x86/include/asm/fpu/internal.h
+index a38bf5a1e37a..69dcdf195b61 100644
+--- a/arch/x86/include/asm/fpu/internal.h
 b/arch/x86/include/asm/fpu/internal.h
+@@ -528,7 +528,7 @@ static inline void fpregs_activate(struct fpu *fpu)
+ static inline void
+ switch_fpu_prepare(struct fpu *old_fpu, int cpu)
+ {
+-  if (old_fpu->initialized) {
++  if (static_cpu_has(X86_FEATURE_FPU) && old_fpu->initialized) {
+   if (!copy_fpregs_to_fpstate(old_fpu))
+   old_fpu->last_cpu = -1;
+   else
+diff --git a/arch/x86/include/asm/percpu.h b/arch/x86/include/asm/percpu.h
+index ba3c523aaf16..12aa2bb6bac4 100644
+--- a/arch/x86/include/asm/percpu.h
 b/arch/x86/include/asm/percpu.h
+@@ -185,22 +185,22 @@ do { 
\
+   typeof(var) pfo_ret__;  \
+   switch (sizeof(var)) {  \
+   case 1: \
+-  asm(op "b "__percpu_arg(1)",%0" \
++  asm volatile(op "b "__percpu_arg(1)",%0"\
+   : "=q" (pfo_ret__)  \
+   : "m" (var));   \
+   break;  \
+   case 2: \
+-  asm(op "w "__percpu_arg(1)",%0" \
++  asm volatile(op "w "__percpu_arg(1)",%0"\
+   : "=r" (pfo_ret__)  \
+   : "m" (var));   \
+   break;  \
+   case 4: \
+-  asm(op "l "__percpu_arg(1)",%0" \
++  asm volatile(op "l "__percpu_arg(1)",%0"\
+   : "=r" (pfo_ret__)  \
+   : "m" (var));   \
+   break;  \
+   case 8: \
+-  asm(op "q "__percpu_arg(1)",%0" \
++  asm volatile(op "q "__percpu_arg(1)",%0"\
+   : "=r" (pfo_ret__)  \
+   : "m" (var));   \
+   break;  \
+diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
+index dcb00acb6583..4bc12447a50f 100644
+--- a/arch/x86/kernel/setup.c
 b/arch/x86/kernel/setup.c
+@@ -1287,7 +1287,7 @@ void __init setup_arch(char **cmdline_p)
+   kvm_guest_init();
+ 
+   e820__reserve_resources();
+-  e820__register_nosave_regions(max_low_pfn);
++  e820__register_nosave_regions(max_pfn);
+ 
+   x86_init.resources.reserve_resources();
+ 
+diff --git a/arch/x86/kernel/time.c b/arch/x86/kernel/time.c
+index 49a5c394f3ed..ab0176ae985b 100644
+--- a/arch/x86/kernel/time.c

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-14 Thread Mike Pagano
commit: 2b43e27fc0295f52ffed3cf2450eefbc993c2da6
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Oct 20 12:40:43 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 14 14:00:41 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=2b43e27f

Linux patch 4.14.78

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1077_linux-4.14.78.patch | 2020 ++
 2 files changed, 2024 insertions(+)

diff --git a/_README b/_README
index 832ddd2..509ffd2 100644
--- a/_README
+++ b/_README
@@ -351,6 +351,10 @@ Patch:  1076_linux-4.14.77.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.77
 
+Patch:  1077_linux-4.14.78.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.78
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1077_linux-4.14.78.patch b/1077_linux-4.14.78.patch
new file mode 100644
index 000..e0b842e
--- /dev/null
+++ b/1077_linux-4.14.78.patch
@@ -0,0 +1,2020 @@
+diff --git a/Makefile b/Makefile
+index 16d1a18496fb..89574ee68d6b 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 77
++SUBLEVEL = 78
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arc/Makefile b/arch/arc/Makefile
+index 6c1b20dd76ad..7c6c97782022 100644
+--- a/arch/arc/Makefile
 b/arch/arc/Makefile
+@@ -6,34 +6,12 @@
+ # published by the Free Software Foundation.
+ #
+ 
+-ifeq ($(CROSS_COMPILE),)
+-ifndef CONFIG_CPU_BIG_ENDIAN
+-CROSS_COMPILE := arc-linux-
+-else
+-CROSS_COMPILE := arceb-linux-
+-endif
+-endif
+-
+ KBUILD_DEFCONFIG := nsim_700_defconfig
+ 
+ cflags-y  += -fno-common -pipe -fno-builtin -mmedium-calls -D__linux__
+ cflags-$(CONFIG_ISA_ARCOMPACT)+= -mA7
+ cflags-$(CONFIG_ISA_ARCV2)+= -mcpu=archs
+ 
+-is_700 = $(shell $(CC) -dM -E - < /dev/null | grep -q "ARC700" && echo 1 || 
echo 0)
+-
+-ifdef CONFIG_ISA_ARCOMPACT
+-ifeq ($(is_700), 0)
+-$(error Toolchain not configured for ARCompact builds)
+-endif
+-endif
+-
+-ifdef CONFIG_ISA_ARCV2
+-ifeq ($(is_700), 1)
+-$(error Toolchain not configured for ARCv2 builds)
+-endif
+-endif
+-
+ ifdef CONFIG_ARC_CURR_IN_REG
+ # For a global register defintion, make sure it gets passed to every file
+ # We had a customer reported bug where some code built in kernel was NOT using
+@@ -87,7 +65,7 @@ ldflags-$(CONFIG_CPU_BIG_ENDIAN) += -EB
+ # --build-id w/o "-marclinux". Default arc-elf32-ld is OK
+ ldflags-$(upto_gcc44) += -marclinux
+ 
+-LIBGCC:= $(shell $(CC) $(cflags-y) --print-libgcc-file-name)
++LIBGCC= $(shell $(CC) $(cflags-y) --print-libgcc-file-name)
+ 
+ # Modules with short calls might break for calls into builtin-kernel
+ KBUILD_CFLAGS_MODULE  += -mlong-calls -mno-millicode
+diff --git a/arch/powerpc/include/asm/code-patching.h 
b/arch/powerpc/include/asm/code-patching.h
+index 2c895e8d07f7..812535f40124 100644
+--- a/arch/powerpc/include/asm/code-patching.h
 b/arch/powerpc/include/asm/code-patching.h
+@@ -31,6 +31,7 @@ unsigned int create_cond_branch(const unsigned int *addr,
+   unsigned long target, int flags);
+ int patch_branch(unsigned int *addr, unsigned long target, int flags);
+ int patch_instruction(unsigned int *addr, unsigned int instr);
++int raw_patch_instruction(unsigned int *addr, unsigned int instr);
+ 
+ int instr_is_relative_branch(unsigned int instr);
+ int instr_is_relative_link_branch(unsigned int instr);
+diff --git a/arch/powerpc/kernel/tm.S b/arch/powerpc/kernel/tm.S
+index 1da12f521cb7..b735b727ed2b 100644
+--- a/arch/powerpc/kernel/tm.S
 b/arch/powerpc/kernel/tm.S
+@@ -167,13 +167,27 @@ _GLOBAL(tm_reclaim)
+   std r1, PACATMSCRATCH(r13)
+   ld  r1, PACAR1(r13)
+ 
+-  /* Store the PPR in r11 and reset to decent value */
+   std r11, GPR11(r1)  /* Temporary stash */
+ 
++  /*
++   * Move the saved user r1 to the kernel stack in case PACATMSCRATCH is
++   * clobbered by an exception once we turn on MSR_RI below.
++   */
++  ld  r11, PACATMSCRATCH(r13)
++  std r11, GPR1(r1)
++
++  /*
++   * Store r13 away so we can free up the scratch SPR for the SLB fault
++   * handler (needed once we start accessing the thread_struct).
++   */
++  GET_SCRATCH0(r11)
++  std r11, GPR13(r1)
++
+   /* Reset MSR RI so we can take SLB faults again */
+   li  r11, MSR_RI
+   mtmsrd  r11, 1
+ 
++  /* Store the PPR in r11 and reset to decent value */
+   mfspr   r11, SPRN_PPR
+   HMT_MEDIUM
+ 
+@@ -198,11 +212,11 @@ _GLOBAL(tm_reclaim)
+   SAVE_GPR(8, r7) /* user r8 */
+   SAVE_GPR(9, r7) /* user r9 */
+   SAVE_GPR(10, r7)

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-14 Thread Mike Pagano
commit: bc2bb2bb4940666dba6e151c6ee5058d4d19ebd6
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Nov 14 13:32:48 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 14 14:00:41 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=bc2bb2bb

proj/linux-patches: Removal of redundant patch

1800_TCA-OPTIONS-sched-fix.patch

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |  4 
 1800_TCA-OPTIONS-sched-fix.patch | 35 ---
 2 files changed, 39 deletions(-)

diff --git a/_README b/_README
index fd76211..70ae288 100644
--- a/_README
+++ b/_README
@@ -379,10 +379,6 @@ Patch:  1700_ia64_fix_ptrace.patch
 From:   https://patchwork.kernel.org/patch/10198159/
 Desc:   ia64: fix ptrace(PTRACE_GETREGS) (unbreaks strace, gdb).
 
-Patch:  1800_TCA-OPTIONS-sched-fix.patch
-From:   https://git.kernel.org
-Desc:   net: sched: Remove TCA_OPTIONS from policy
-
 Patch: 2100_bcache-data-corruption-fix-for-bi-partno.patch
 From:   
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=62530ed8b1d07a45dec94d46e521c0c6c2d476e6
 Desc:   bio: ensure __bio_clone_fast copies bi_partno. 

diff --git a/1800_TCA-OPTIONS-sched-fix.patch b/1800_TCA-OPTIONS-sched-fix.patch
deleted file mode 100644
index f960fac..000
--- a/1800_TCA-OPTIONS-sched-fix.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-From e72bde6b66299602087c8c2350d36a525e75d06e Mon Sep 17 00:00:00 2001
-From: David Ahern 
-Date: Wed, 24 Oct 2018 08:32:49 -0700
-Subject: net: sched: Remove TCA_OPTIONS from policy
-
-Marco reported an error with hfsc:
-root@Calimero:~# tc qdisc add dev eth0 root handle 1:0 hfsc default 1
-Error: Attribute failed policy validation.
-
-Apparently a few implementations pass TCA_OPTIONS as a binary instead
-of nested attribute, so drop TCA_OPTIONS from the policy.
-
-Fixes: 8b4c3cdd9dd8 ("net: sched: Add policy validation for tc attributes")
-Reported-by: Marco Berizzi 
-Signed-off-by: David Ahern 
-Signed-off-by: David S. Miller 

- net/sched/sch_api.c | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c
-index 022bca98bde6..ca3b0f46de53 100644
 a/net/sched/sch_api.c
-+++ b/net/sched/sch_api.c
-@@ -1320,7 +1320,6 @@ check_loop_fn(struct Qdisc *q, unsigned long cl, struct 
qdisc_walker *w)
- 
- const struct nla_policy rtm_tca_policy[TCA_MAX + 1] = {
-   [TCA_KIND]  = { .type = NLA_STRING },
--  [TCA_OPTIONS]   = { .type = NLA_NESTED },
-   [TCA_RATE]  = { .type = NLA_BINARY,
-   .len = sizeof(struct tc_estimator) },
-   [TCA_STAB]  = { .type = NLA_NESTED },
--- 
-cgit 1.2-0.3.lf.el7
-



[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-14 Thread Mike Pagano
commit: d75e9d1e5bcb71ad47e945bd030cdc8fa07719ed
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Aug  9 10:54:46 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 14 14:00:40 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=d75e9d1e

Linux patch 4.14.62

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |   4 +
 1061_linux-4.14.62.patch | 797 +++
 2 files changed, 801 insertions(+)

diff --git a/_README b/_README
index 64029e1..b530931 100644
--- a/_README
+++ b/_README
@@ -287,6 +287,10 @@ Patch:  1060_linux-4.14.61.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.61
 
+Patch:  1061_linux-4.14.62.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.62
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1061_linux-4.14.62.patch b/1061_linux-4.14.62.patch
new file mode 100644
index 000..a1d7ceb
--- /dev/null
+++ b/1061_linux-4.14.62.patch
@@ -0,0 +1,797 @@
+diff --git a/Makefile b/Makefile
+index 4bd65eabd298..d407ecfdee0b 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 61
++SUBLEVEL = 62
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c
+index f96830ffd9f1..75c6b98585ba 100644
+--- a/drivers/i2c/busses/i2c-imx.c
 b/drivers/i2c/busses/i2c-imx.c
+@@ -376,6 +376,7 @@ static int i2c_imx_dma_xfer(struct imx_i2c_struct *i2c_imx,
+   goto err_desc;
+   }
+ 
++  reinit_completion(>cmd_complete);
+   txdesc->callback = i2c_imx_dma_callback;
+   txdesc->callback_param = i2c_imx;
+   if (dma_submit_error(dmaengine_submit(txdesc))) {
+@@ -619,7 +620,6 @@ static int i2c_imx_dma_write(struct imx_i2c_struct 
*i2c_imx,
+* The first byte must be transmitted by the CPU.
+*/
+   imx_i2c_write_reg(msgs->addr << 1, i2c_imx, IMX_I2C_I2DR);
+-  reinit_completion(_imx->dma->cmd_complete);
+   time_left = wait_for_completion_timeout(
+   _imx->dma->cmd_complete,
+   msecs_to_jiffies(DMA_TIMEOUT));
+@@ -678,7 +678,6 @@ static int i2c_imx_dma_read(struct imx_i2c_struct *i2c_imx,
+   if (result)
+   return result;
+ 
+-  reinit_completion(_imx->dma->cmd_complete);
+   time_left = wait_for_completion_timeout(
+   _imx->dma->cmd_complete,
+   msecs_to_jiffies(DMA_TIMEOUT));
+diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c
+index f0b06b14e782..16249b0953ff 100644
+--- a/drivers/idle/intel_idle.c
 b/drivers/idle/intel_idle.c
+@@ -1061,7 +1061,7 @@ static const struct idle_cpu idle_cpu_dnv = {
+ };
+ 
+ #define ICPU(model, cpu) \
+-  { X86_VENDOR_INTEL, 6, model, X86_FEATURE_MWAIT, (unsigned long) }
++  { X86_VENDOR_INTEL, 6, model, X86_FEATURE_ANY, (unsigned long) }
+ 
+ static const struct x86_cpu_id intel_idle_ids[] __initconst = {
+   ICPU(INTEL_FAM6_NEHALEM_EP, idle_cpu_nehalem),
+@@ -1125,6 +1125,11 @@ static int __init intel_idle_probe(void)
+   return -ENODEV;
+   }
+ 
++  if (!boot_cpu_has(X86_FEATURE_MWAIT)) {
++  pr_debug("Please enable MWAIT in BIOS SETUP\n");
++  return -ENODEV;
++  }
++
+   if (boot_cpu_data.cpuid_level < CPUID_MWAIT_LEAF)
+   return -ENODEV;
+ 
+diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
+index f5643d107cc6..a67d03716510 100644
+--- a/drivers/nvme/host/pci.c
 b/drivers/nvme/host/pci.c
+@@ -77,7 +77,7 @@ static void nvme_dev_disable(struct nvme_dev *dev, bool 
shutdown);
+  * Represents an NVM Express device.  Each nvme_dev is a PCI function.
+  */
+ struct nvme_dev {
+-  struct nvme_queue **queues;
++  struct nvme_queue *queues;
+   struct blk_mq_tag_set tagset;
+   struct blk_mq_tag_set admin_tagset;
+   u32 __iomem *dbs;
+@@ -348,7 +348,7 @@ static int nvme_admin_init_hctx(struct blk_mq_hw_ctx 
*hctx, void *data,
+   unsigned int hctx_idx)
+ {
+   struct nvme_dev *dev = data;
+-  struct nvme_queue *nvmeq = dev->queues[0];
++  struct nvme_queue *nvmeq = >queues[0];
+ 
+   WARN_ON(hctx_idx != 0);
+   WARN_ON(dev->admin_tagset.tags[0] != hctx->tags);
+@@ -370,7 +370,7 @@ static int nvme_init_hctx(struct blk_mq_hw_ctx *hctx, void 
*data,
+ unsigned int hctx_idx)
+ {
+   struct nvme_dev *dev = data;
+-  struct nvme_queue *nvmeq = dev->queues[hctx_idx + 1];
++  struct nvme_queue *nvmeq = >queues[hctx_idx + 1];
+ 
+   if (!nvmeq->tags)
+   nvmeq->tags = >tagset.tags[hctx_idx];
+@@ -386,7 +386,7 @@ static int nvme_init_request(struct blk_mq_tag_set 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-14 Thread Mike Pagano
commit: f3c48c03f0cf6fd581e5cebf27298b18a4f4e60d
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Aug 18 18:12:20 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 14 14:00:41 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=f3c48c03

Linux patch 4.14.65

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |  4 
 1064_linux-4.14.65.patch | 37 +
 2 files changed, 41 insertions(+)

diff --git a/_README b/_README
index 614d36d..1cd1371 100644
--- a/_README
+++ b/_README
@@ -299,6 +299,10 @@ Patch:  1063_linux-4.14.64.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.64
 
+Patch:  1064_linux-4.14.65.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.65
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1064_linux-4.14.65.patch b/1064_linux-4.14.65.patch
new file mode 100644
index 000..305f291
--- /dev/null
+++ b/1064_linux-4.14.65.patch
@@ -0,0 +1,37 @@
+diff --git a/Makefile b/Makefile
+index 025156791e90..7995690ff1aa 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 64
++SUBLEVEL = 65
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/x86/include/asm/pgtable-invert.h 
b/arch/x86/include/asm/pgtable-invert.h
+index 44b1203ece12..a0c1525f1b6f 100644
+--- a/arch/x86/include/asm/pgtable-invert.h
 b/arch/x86/include/asm/pgtable-invert.h
+@@ -4,9 +4,18 @@
+ 
+ #ifndef __ASSEMBLY__
+ 
++/*
++ * A clear pte value is special, and doesn't get inverted.
++ *
++ * Note that even users that only pass a pgprot_t (rather
++ * than a full pte) won't trigger the special zero case,
++ * because even PAGE_NONE has _PAGE_PROTNONE | _PAGE_ACCESSED
++ * set. So the all zero case really is limited to just the
++ * cleared page table entry case.
++ */
+ static inline bool __pte_needs_invert(u64 val)
+ {
+-  return !(val & _PAGE_PRESENT);
++  return val && !(val & _PAGE_PRESENT);
+ }
+ 
+ /* Get a mask to xor with the page table entry to get the correct pfn. */



[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-14 Thread Mike Pagano
commit: 1e3f6cf180365878de9a9381e77b78f2831d8af0
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Sep 29 13:35:19 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 14 14:00:41 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=1e3f6cf1

Linux patch 4.14.73

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1072_linux-4.14.73.patch | 1830 ++
 2 files changed, 1834 insertions(+)

diff --git a/_README b/_README
index ce833af..08015af 100644
--- a/_README
+++ b/_README
@@ -331,6 +331,10 @@ Patch:  1071_linux-4.14.72.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.72
 
+Patch:  1072_linux-4.14.73.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.73
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1072_linux-4.14.73.patch b/1072_linux-4.14.73.patch
new file mode 100644
index 000..9020dd3
--- /dev/null
+++ b/1072_linux-4.14.73.patch
@@ -0,0 +1,1830 @@
+diff --git a/Makefile b/Makefile
+index 734722bda173..89f30ca964b6 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 72
++SUBLEVEL = 73
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/x86/xen/pmu.c b/arch/x86/xen/pmu.c
+index 7d00d4ad44d4..95997e6c0696 100644
+--- a/arch/x86/xen/pmu.c
 b/arch/x86/xen/pmu.c
+@@ -478,7 +478,7 @@ static void xen_convert_regs(const struct xen_pmu_regs 
*xen_regs,
+ irqreturn_t xen_pmu_irq_handler(int irq, void *dev_id)
+ {
+   int err, ret = IRQ_NONE;
+-  struct pt_regs regs;
++  struct pt_regs regs = {0};
+   const struct xen_pmu_data *xenpmu_data = get_xenpmu_data();
+   uint8_t xenpmu_flags = get_xenpmu_flags();
+ 
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
+index fd435a96481c..e8d9479615c9 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
 b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
+@@ -715,12 +715,14 @@ static int amdgpu_cgs_get_firmware_info(struct 
cgs_device *cgs_device,
+   break;
+   case CHIP_POLARIS10:
+   if (type == CGS_UCODE_ID_SMU) {
+-  if ((adev->pdev->device == 0x67df) &&
+-  ((adev->pdev->revision == 0xe0) ||
+-   (adev->pdev->revision == 0xe3) ||
+-   (adev->pdev->revision == 0xe4) ||
+-   (adev->pdev->revision == 0xe5) ||
+-   (adev->pdev->revision == 0xe7) ||
++  if (((adev->pdev->device == 0x67df) &&
++   ((adev->pdev->revision == 0xe0) ||
++(adev->pdev->revision == 0xe3) ||
++(adev->pdev->revision == 0xe4) ||
++(adev->pdev->revision == 0xe5) ||
++(adev->pdev->revision == 0xe7) ||
++(adev->pdev->revision == 0xef))) 
||
++  ((adev->pdev->device == 0x6fdf) &&
+(adev->pdev->revision == 0xef))) {
+   info->is_kicker = true;
+   strcpy(fw_name, 
"amdgpu/polaris10_k_smc.bin");
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
+index 0f16986ec5bc..4dd68d821353 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
 b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
+@@ -500,6 +500,7 @@ static const struct pci_device_id pciidlist[] = {
+   {0x1002, 0x67CA, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS10},
+   {0x1002, 0x67CC, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS10},
+   {0x1002, 0x67CF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS10},
++  {0x1002, 0x6FDF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS10},
+   /* Polaris12 */
+   {0x1002, 0x6980, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS12},
+   {0x1002, 0x6981, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS12},
+diff --git a/drivers/gpu/drm/nouveau/nouveau_connector.c 
b/drivers/gpu/drm/nouveau/nouveau_connector.c
+index 430830d63a33..2c6d19683688 100644
+--- a/drivers/gpu/drm/nouveau/nouveau_connector.c
 b/drivers/gpu/drm/nouveau/nouveau_connector.c
+@@ -570,12 +570,16 @@ nouveau_connector_detect(struct drm_connector 
*connector, bool force)
+   nv_connector->edid = NULL;
+   }
+ 
+-  /* Outputs are only polled while runtime active, so acquiring a
+-   * 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-14 Thread Mike Pagano
commit: 52e0b7c17c14c06a06a13b600f7d31cc34db657c
Author: Mike Pagano  gentoo  org>
AuthorDate: Tue Aug  7 18:11:17 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 14 14:00:40 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=52e0b7c1

Linux patch 4.14.61

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |   4 +
 1060_linux-4.14.61.patch | 909 +++
 2 files changed, 913 insertions(+)

diff --git a/_README b/_README
index 685cb5d..64029e1 100644
--- a/_README
+++ b/_README
@@ -283,6 +283,10 @@ Patch:  1059_linux-4.14.60.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.60
 
+Patch:  1060_linux-4.14.61.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.61
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1060_linux-4.14.61.patch b/1060_linux-4.14.61.patch
new file mode 100644
index 000..d7a4083
--- /dev/null
+++ b/1060_linux-4.14.61.patch
@@ -0,0 +1,909 @@
+diff --git a/Makefile b/Makefile
+index 5b48ec630990..4bd65eabd298 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 60
++SUBLEVEL = 61
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/x86/entry/entry_64.S b/arch/x86/entry/entry_64.S
+index f7bfa701219b..0fae7096ae23 100644
+--- a/arch/x86/entry/entry_64.S
 b/arch/x86/entry/entry_64.S
+@@ -933,7 +933,7 @@ ENTRY(\sym)
+ 
+   call\do_sym
+ 
+-  jmp error_exit  /* %ebx: no swapgs flag */
++  jmp error_exit
+   .endif
+ END(\sym)
+ .endm
+@@ -1166,7 +1166,6 @@ END(paranoid_exit)
+ 
+ /*
+  * Save all registers in pt_regs, and switch GS if needed.
+- * Return: EBX=0: came from user mode; EBX=1: otherwise
+  */
+ ENTRY(error_entry)
+   UNWIND_HINT_FUNC
+@@ -1213,7 +1212,6 @@ ENTRY(error_entry)
+* for these here too.
+*/
+ .Lerror_kernelspace:
+-  incl%ebx
+   leaqnative_irq_return_iret(%rip), %rcx
+   cmpq%rcx, RIP+8(%rsp)
+   je  .Lerror_bad_iret
+@@ -1247,28 +1245,20 @@ ENTRY(error_entry)
+ 
+   /*
+* Pretend that the exception came from user mode: set up pt_regs
+-   * as if we faulted immediately after IRET and clear EBX so that
+-   * error_exit knows that we will be returning to user mode.
++   * as if we faulted immediately after IRET.
+*/
+   mov %rsp, %rdi
+   callfixup_bad_iret
+   mov %rax, %rsp
+-  decl%ebx
+   jmp .Lerror_entry_from_usermode_after_swapgs
+ END(error_entry)
+ 
+-
+-/*
+- * On entry, EBX is a "return to kernel mode" flag:
+- *   1: already in kernel mode, don't need SWAPGS
+- *   0: user gsbase is loaded, we need SWAPGS and standard preparation for 
return to usermode
+- */
+ ENTRY(error_exit)
+   UNWIND_HINT_REGS
+   DISABLE_INTERRUPTS(CLBR_ANY)
+   TRACE_IRQS_OFF
+-  testl   %ebx, %ebx
+-  jnz retint_kernel
++  testb   $3, CS(%rsp)
++  jz  retint_kernel
+   jmp retint_user
+ END(error_exit)
+ 
+diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c
+index ebdcc368a2d3..f48a51335538 100644
+--- a/arch/x86/kernel/apic/apic.c
 b/arch/x86/kernel/apic/apic.c
+@@ -580,6 +580,9 @@ static u32 skx_deadline_rev(void)
+   case 0x04: return 0x0214;
+   }
+ 
++  if (boot_cpu_data.x86_stepping > 4)
++  return 0;
++
+   return ~0U;
+ }
+ 
+diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
+index 90747865205d..8d000fde1414 100644
+--- a/arch/x86/kvm/vmx.c
 b/arch/x86/kvm/vmx.c
+@@ -7354,6 +7354,8 @@ static int enter_vmx_operation(struct kvm_vcpu *vcpu)
+HRTIMER_MODE_REL_PINNED);
+   vmx->nested.preemption_timer.function = vmx_preemption_timer_fn;
+ 
++  vmx->nested.vpid02 = allocate_vpid();
++
+   vmx->nested.vmxon = true;
+   return 0;
+ 
+@@ -9802,10 +9804,8 @@ static struct kvm_vcpu *vmx_create_vcpu(struct kvm 
*kvm, unsigned int id)
+   goto free_vmcs;
+   }
+ 
+-  if (nested) {
++  if (nested)
+   nested_vmx_setup_ctls_msrs(vmx);
+-  vmx->nested.vpid02 = allocate_vpid();
+-  }
+ 
+   vmx->nested.posted_intr_nv = -1;
+   vmx->nested.current_vmptr = -1ull;
+@@ -9822,7 +9822,6 @@ static struct kvm_vcpu *vmx_create_vcpu(struct kvm *kvm, 
unsigned int id)
+   return >vcpu;
+ 
+ free_vmcs:
+-  free_vpid(vmx->nested.vpid02);
+   free_loaded_vmcs(vmx->loaded_vmcs);
+ free_msrs:
+   kfree(vmx->guest_msrs);
+diff --git a/drivers/crypto/padlock-aes.c b/drivers/crypto/padlock-aes.c
+index c939f18f70cc..7685f557dcc0 100644
+--- a/drivers/crypto/padlock-aes.c
 b/drivers/crypto/padlock-aes.c
+@@ -266,6 +266,8 @@ static inline void 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-14 Thread Mike Pagano
commit: db8975bdd31badd12aef9ca8a8829987f6606264
Author: Alice Ferrazzi  gentoo  org>
AuthorDate: Wed Aug 22 10:01:43 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 14 14:00:41 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=db8975bd

linux kernel 4.14.65

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |   4 +
 1065_linux-4.14.66.patch | 683 +++
 2 files changed, 687 insertions(+)

diff --git a/_README b/_README
index 1cd1371..352e3ec 100644
--- a/_README
+++ b/_README
@@ -303,6 +303,10 @@ Patch:  1064_linux-4.14.65.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.65
 
+Patch:  1065_linux-4.14.66.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.66
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1065_linux-4.14.66.patch b/1065_linux-4.14.66.patch
new file mode 100644
index 000..149a83c
--- /dev/null
+++ b/1065_linux-4.14.66.patch
@@ -0,0 +1,683 @@
+diff --git a/Makefile b/Makefile
+index 7995690ff1aa..e69d0d091742 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 65
++SUBLEVEL = 66
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c
+index 2ef0ad6a33d6..7a0af16f86f2 100644
+--- a/drivers/acpi/sleep.c
 b/drivers/acpi/sleep.c
+@@ -338,6 +338,14 @@ static const struct dmi_system_id acpisleep_dmi_table[] 
__initconst = {
+   DMI_MATCH(DMI_PRODUCT_NAME, "K54HR"),
+   },
+   },
++  {
++  .callback = init_nvs_save_s3,
++  .ident = "Asus 1025C",
++  .matches = {
++  DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
++  DMI_MATCH(DMI_PRODUCT_NAME, "1025C"),
++  },
++  },
+   /*
+* https://bugzilla.kernel.org/show_bug.cgi?id=189431
+* Lenovo G50-45 is a platform later than 2012, but needs nvs memory
+diff --git a/drivers/isdn/i4l/isdn_common.c b/drivers/isdn/i4l/isdn_common.c
+index 38a5bb764c7b..598724ffde4e 100644
+--- a/drivers/isdn/i4l/isdn_common.c
 b/drivers/isdn/i4l/isdn_common.c
+@@ -1640,13 +1640,7 @@ isdn_ioctl(struct file *file, uint cmd, ulong arg)
+   } else
+   return -EINVAL;
+   case IIOCDBGVAR:
+-  if (arg) {
+-  if (copy_to_user(argp, , sizeof(ulong)))
+-  return -EFAULT;
+-  return 0;
+-  } else
+-  return -EINVAL;
+-  break;
++  return -EINVAL;
+   default:
+   if ((cmd & IIOCDRVCTL) == IIOCDRVCTL)
+   cmd = ((cmd >> _IOC_NRSHIFT) & _IOC_NRMASK) & 
ISDN_DRVIOCTL_MASK;
+diff --git a/drivers/misc/sram.c b/drivers/misc/sram.c
+index fc0415771c00..4dd0d868ff88 100644
+--- a/drivers/misc/sram.c
 b/drivers/misc/sram.c
+@@ -407,13 +407,20 @@ static int sram_probe(struct platform_device *pdev)
+   if (init_func) {
+   ret = init_func();
+   if (ret)
+-  return ret;
++  goto err_disable_clk;
+   }
+ 
+   dev_dbg(sram->dev, "SRAM pool: %zu KiB @ 0x%p\n",
+   gen_pool_size(sram->pool) / 1024, sram->virt_base);
+ 
+   return 0;
++
++err_disable_clk:
++  if (sram->clk)
++  clk_disable_unprepare(sram->clk);
++  sram_free_partitions(sram);
++
++  return ret;
+ }
+ 
+ static int sram_remove(struct platform_device *pdev)
+diff --git a/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 
b/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c
+index 36fddb199160..f4b3554b0b67 100644
+--- a/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c
 b/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c
+@@ -752,7 +752,7 @@ static int hw_atl_b0_hw_packet_filter_set(struct aq_hw_s 
*self,
+ 
+   rpfl2promiscuous_mode_en_set(self, IS_FILTER_ENABLED(IFF_PROMISC));
+   rpfl2multicast_flr_en_set(self,
+-IS_FILTER_ENABLED(IFF_MULTICAST), 0);
++IS_FILTER_ENABLED(IFF_ALLMULTI), 0);
+ 
+   rpfl2_accept_all_mc_packets_set(self,
+   IS_FILTER_ENABLED(IFF_ALLMULTI));
+diff --git a/drivers/tty/serial/8250/8250_dw.c 
b/drivers/tty/serial/8250/8250_dw.c
+index 3015789265dd..27c5b2b46b8d 100644
+--- a/drivers/tty/serial/8250/8250_dw.c
 b/drivers/tty/serial/8250/8250_dw.c
+@@ -260,7 +260,7 @@ static void dw8250_set_termios(struct uart_port *p, struct 
ktermios *termios,
+   long rate;
+   int ret;
+ 
+-  if (IS_ERR(d->clk) || !old)
++

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-14 Thread Mike Pagano
commit: cb4c5e0bf3cef02493f2b06f9ebed74c059b50be
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Aug 17 19:26:38 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 14 14:00:40 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=cb4c5e0b

Linux patch 4.14.64

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1063_linux-4.14.64.patch | 1527 ++
 2 files changed, 1531 insertions(+)

diff --git a/_README b/_README
index ada5b82..41f1d75 100644
--- a/_README
+++ b/_README
@@ -295,6 +295,10 @@ Patch:  1062_linux-4.14.63.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.63
 
+Patch:  1063_linux-4.14.64.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.64
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1063_linux-4.14.64.patch b/1063_linux-4.14.64.patch
new file mode 100644
index 000..b4a1f5f
--- /dev/null
+++ b/1063_linux-4.14.64.patch
@@ -0,0 +1,1527 @@
+diff --git a/Documentation/process/changes.rst 
b/Documentation/process/changes.rst
+index 560beaef5a7c..73fcdcd52b87 100644
+--- a/Documentation/process/changes.rst
 b/Documentation/process/changes.rst
+@@ -33,7 +33,7 @@ GNU C  3.2  gcc --version
+ GNU make   3.81 make --version
+ binutils   2.20 ld -v
+ util-linux 2.10ofdformat --version
+-module-init-tools  0.9.10   depmod -V
++kmod   13   depmod -V
+ e2fsprogs  1.41.4   e2fsck -V
+ jfsutils   1.1.3fsck.jfs -V
+ reiserfsprogs  3.6.3reiserfsck -V
+@@ -141,12 +141,6 @@ is not build with ``CONFIG_KALLSYMS`` and you have no way 
to rebuild and
+ reproduce the Oops with that option, then you can still decode that Oops
+ with ksymoops.
+ 
+-Module-Init-Tools
+--
+-
+-A new module loader is now in the kernel that requires ``module-init-tools``
+-to use.  It is backward compatible with the 2.4.x series kernels.
+-
+ Mkinitrd
+ 
+ 
+@@ -346,16 +340,17 @@ Util-linux
+ 
+ - 
+ 
++Kmod
++
++
++- 
++- 
++
+ Ksymoops
+ 
+ 
+ - 
+ 
+-Module-Init-Tools
+--
+-
+-- 
+-
+ Mkinitrd
+ 
+ 
+diff --git a/Makefile b/Makefile
+index f3bb9428b3dc..025156791e90 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 63
++SUBLEVEL = 64
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c
+index f6b877d2726d..6ac0d32d60a5 100644
+--- a/arch/arm64/mm/mmu.c
 b/arch/arm64/mm/mmu.c
+@@ -938,12 +938,12 @@ int pmd_clear_huge(pmd_t *pmd)
+   return 1;
+ }
+ 
+-int pud_free_pmd_page(pud_t *pud)
++int pud_free_pmd_page(pud_t *pud, unsigned long addr)
+ {
+   return pud_none(*pud);
+ }
+ 
+-int pmd_free_pte_page(pmd_t *pmd)
++int pmd_free_pte_page(pmd_t *pmd, unsigned long addr)
+ {
+   return pmd_none(*pmd);
+ }
+diff --git a/arch/x86/crypto/sha256-mb/sha256_mb_mgr_flush_avx2.S 
b/arch/x86/crypto/sha256-mb/sha256_mb_mgr_flush_avx2.S
+index 16c4ccb1f154..d2364c55bbde 100644
+--- a/arch/x86/crypto/sha256-mb/sha256_mb_mgr_flush_avx2.S
 b/arch/x86/crypto/sha256-mb/sha256_mb_mgr_flush_avx2.S
+@@ -265,7 +265,7 @@ ENTRY(sha256_mb_mgr_get_comp_job_avx2)
+   vpinsrd $1, _args_digest+1*32(state, idx, 4), %xmm0, %xmm0
+   vpinsrd $2, _args_digest+2*32(state, idx, 4), %xmm0, %xmm0
+   vpinsrd $3, _args_digest+3*32(state, idx, 4), %xmm0, %xmm0
+-  vmovd   _args_digest(state , idx, 4) , %xmm0
++  vmovd   _args_digest+4*32(state, idx, 4), %xmm1
+   vpinsrd $1, _args_digest+5*32(state, idx, 4), %xmm1, %xmm1
+   vpinsrd $2, _args_digest+6*32(state, idx, 4), %xmm1, %xmm1
+   vpinsrd $3, _args_digest+7*32(state, idx, 4), %xmm1, %xmm1
+diff --git a/arch/x86/include/asm/i8259.h b/arch/x86/include/asm/i8259.h
+index 5cdcdbd4d892..89789e8c80f6 100644
+--- a/arch/x86/include/asm/i8259.h
 b/arch/x86/include/asm/i8259.h
+@@ -3,6 +3,7 @@
+ #define _ASM_X86_I8259_H
+ 
+ #include 
++#include 
+ 
+ extern unsigned int cached_irq_mask;
+ 
+diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c
+index edfc64a8a154..d07addb99b71 100644
+--- a/arch/x86/kernel/cpu/bugs.c
 b/arch/x86/kernel/cpu/bugs.c
+@@ -648,10 +648,9 @@ void x86_spec_ctrl_setup_ap(void)
+ enum l1tf_mitigations l1tf_mitigation __ro_after_init = L1TF_MITIGATION_FLUSH;
+ #if 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-14 Thread Mike Pagano
commit: d2f4d4eeef02e3e2b6f4bd53586658a5d1e29a90
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Aug 17 19:36:32 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 14 14:00:41 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=d2f4d4ee

Removal of redundant patch:

x86/l1tf: Fix build error seen if CONFIG_KVM_INTEL is disabled

Signed-off-by: Mike Pagano  gentoo.org>

 _README|  4 ---
 1705_x86-l1tf-config-kvm-build-error-fix.patch | 40 --
 2 files changed, 44 deletions(-)

diff --git a/_README b/_README
index 41f1d75..614d36d 100644
--- a/_README
+++ b/_README
@@ -311,10 +311,6 @@ Patch:  1700_ia64_fix_ptrace.patch
 From:   https://patchwork.kernel.org/patch/10198159/
 Desc:   ia64: fix ptrace(PTRACE_GETREGS) (unbreaks strace, gdb).
 
-Patch:  1705_x86-l1tf-config-kvm-build-error-fix.patch
-From:   http://www.kernel.org
-Desc:   x86/l1tf: Fix build error seen if CONFIG_KVM_INTEL is disabled
-
 Patch: 2100_bcache-data-corruption-fix-for-bi-partno.patch
 From:   
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=62530ed8b1d07a45dec94d46e521c0c6c2d476e6
 Desc:   bio: ensure __bio_clone_fast copies bi_partno. 

diff --git a/1705_x86-l1tf-config-kvm-build-error-fix.patch 
b/1705_x86-l1tf-config-kvm-build-error-fix.patch
deleted file mode 100644
index 88c2ec6..000
--- a/1705_x86-l1tf-config-kvm-build-error-fix.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-From 1eb46908b35dfbac0ec1848d4b1e39667e0187e9 Mon Sep 17 00:00:00 2001
-From: Guenter Roeck 
-Date: Wed, 15 Aug 2018 08:38:33 -0700
-Subject: x86/l1tf: Fix build error seen if CONFIG_KVM_INTEL is disabled
-
-From: Guenter Roeck 
-
-commit 1eb46908b35dfbac0ec1848d4b1e39667e0187e9 upstream.
-
-allmodconfig+CONFIG_INTEL_KVM=n results in the following build error.
-
-  ERROR: "l1tf_vmx_mitigation" [arch/x86/kvm/kvm.ko] undefined!
-
-Fixes: 5b76a3cff011 ("KVM: VMX: Tell the nested hypervisor to skip L1D flush 
on vmentry")
-Reported-by: Meelis Roos 
-Cc: Meelis Roos 
-Cc: Paolo Bonzini 
-Cc: Thomas Gleixner 
-Signed-off-by: Guenter Roeck 
-Signed-off-by: Linus Torvalds 
-Signed-off-by: Greg Kroah-Hartman 
-

- arch/x86/kernel/cpu/bugs.c |3 +--
- 1 file changed, 1 insertion(+), 2 deletions(-)
-
 a/arch/x86/kernel/cpu/bugs.c
-+++ b/arch/x86/kernel/cpu/bugs.c
-@@ -648,10 +648,9 @@ void x86_spec_ctrl_setup_ap(void)
- enum l1tf_mitigations l1tf_mitigation __ro_after_init = L1TF_MITIGATION_FLUSH;
- #if IS_ENABLED(CONFIG_KVM_INTEL)
- EXPORT_SYMBOL_GPL(l1tf_mitigation);
--
-+#endif
- enum vmx_l1d_flush_state l1tf_vmx_mitigation = VMENTER_L1D_FLUSH_AUTO;
- EXPORT_SYMBOL_GPL(l1tf_vmx_mitigation);
--#endif
- 
- static void __init l1tf_select_mitigation(void)
- {



[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-14 Thread Mike Pagano
commit: 9845f466bfc697135ba8b342957f0ee02e3896bc
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Aug 16 11:49:25 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 14 14:00:40 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=9845f466

x86/l1tf: Fix build error seen if CONFIG_KVM_INTEL is disabled

Signed-off-by: Mike Pagano  gentoo.org>

 _README|  4 +++
 1705_x86-l1tf-config-kvm-build-error-fix.patch | 40 ++
 2 files changed, 44 insertions(+)

diff --git a/_README b/_README
index 4c5f97e..ada5b82 100644
--- a/_README
+++ b/_README
@@ -307,6 +307,10 @@ Patch:  1700_ia64_fix_ptrace.patch
 From:   https://patchwork.kernel.org/patch/10198159/
 Desc:   ia64: fix ptrace(PTRACE_GETREGS) (unbreaks strace, gdb).
 
+Patch:  1705_x86-l1tf-config-kvm-build-error-fix.patch
+From:   http://www.kernel.org
+Desc:   x86/l1tf: Fix build error seen if CONFIG_KVM_INTEL is disabled
+
 Patch: 2100_bcache-data-corruption-fix-for-bi-partno.patch
 From:   
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=62530ed8b1d07a45dec94d46e521c0c6c2d476e6
 Desc:   bio: ensure __bio_clone_fast copies bi_partno. 

diff --git a/1705_x86-l1tf-config-kvm-build-error-fix.patch 
b/1705_x86-l1tf-config-kvm-build-error-fix.patch
new file mode 100644
index 000..88c2ec6
--- /dev/null
+++ b/1705_x86-l1tf-config-kvm-build-error-fix.patch
@@ -0,0 +1,40 @@
+From 1eb46908b35dfbac0ec1848d4b1e39667e0187e9 Mon Sep 17 00:00:00 2001
+From: Guenter Roeck 
+Date: Wed, 15 Aug 2018 08:38:33 -0700
+Subject: x86/l1tf: Fix build error seen if CONFIG_KVM_INTEL is disabled
+
+From: Guenter Roeck 
+
+commit 1eb46908b35dfbac0ec1848d4b1e39667e0187e9 upstream.
+
+allmodconfig+CONFIG_INTEL_KVM=n results in the following build error.
+
+  ERROR: "l1tf_vmx_mitigation" [arch/x86/kvm/kvm.ko] undefined!
+
+Fixes: 5b76a3cff011 ("KVM: VMX: Tell the nested hypervisor to skip L1D flush 
on vmentry")
+Reported-by: Meelis Roos 
+Cc: Meelis Roos 
+Cc: Paolo Bonzini 
+Cc: Thomas Gleixner 
+Signed-off-by: Guenter Roeck 
+Signed-off-by: Linus Torvalds 
+Signed-off-by: Greg Kroah-Hartman 
+
+---
+ arch/x86/kernel/cpu/bugs.c |3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+--- a/arch/x86/kernel/cpu/bugs.c
 b/arch/x86/kernel/cpu/bugs.c
+@@ -648,10 +648,9 @@ void x86_spec_ctrl_setup_ap(void)
+ enum l1tf_mitigations l1tf_mitigation __ro_after_init = L1TF_MITIGATION_FLUSH;
+ #if IS_ENABLED(CONFIG_KVM_INTEL)
+ EXPORT_SYMBOL_GPL(l1tf_mitigation);
+-
++#endif
+ enum vmx_l1d_flush_state l1tf_vmx_mitigation = VMENTER_L1D_FLUSH_AUTO;
+ EXPORT_SYMBOL_GPL(l1tf_vmx_mitigation);
+-#endif
+ 
+ static void __init l1tf_select_mitigation(void)
+ {



[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-14 Thread Mike Pagano
commit: 664b05bb185d10b744ccc3f79862976fe0304113
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Aug 18 18:12:20 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 14 13:48:40 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=664b05bb

Linux patch 4.14.65

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |  4 
 1064_linux-4.14.65.patch | 37 +
 2 files changed, 41 insertions(+)

diff --git a/_README b/_README
index 614d36d..1cd1371 100644
--- a/_README
+++ b/_README
@@ -299,6 +299,10 @@ Patch:  1063_linux-4.14.64.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.64
 
+Patch:  1064_linux-4.14.65.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.65
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1064_linux-4.14.65.patch b/1064_linux-4.14.65.patch
new file mode 100644
index 000..305f291
--- /dev/null
+++ b/1064_linux-4.14.65.patch
@@ -0,0 +1,37 @@
+diff --git a/Makefile b/Makefile
+index 025156791e90..7995690ff1aa 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 64
++SUBLEVEL = 65
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/x86/include/asm/pgtable-invert.h 
b/arch/x86/include/asm/pgtable-invert.h
+index 44b1203ece12..a0c1525f1b6f 100644
+--- a/arch/x86/include/asm/pgtable-invert.h
 b/arch/x86/include/asm/pgtable-invert.h
+@@ -4,9 +4,18 @@
+ 
+ #ifndef __ASSEMBLY__
+ 
++/*
++ * A clear pte value is special, and doesn't get inverted.
++ *
++ * Note that even users that only pass a pgprot_t (rather
++ * than a full pte) won't trigger the special zero case,
++ * because even PAGE_NONE has _PAGE_PROTNONE | _PAGE_ACCESSED
++ * set. So the all zero case really is limited to just the
++ * cleared page table entry case.
++ */
+ static inline bool __pte_needs_invert(u64 val)
+ {
+-  return !(val & _PAGE_PRESENT);
++  return val && !(val & _PAGE_PRESENT);
+ }
+ 
+ /* Get a mask to xor with the page table entry to get the correct pfn. */



[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-14 Thread Mike Pagano
commit: b1454561e71977eb17e200bab2dadf507034f40a
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Oct 13 16:33:25 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 14 13:48:41 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=b1454561

Linux patch 4.14.76

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1075_linux-4.14.76.patch | 1999 ++
 2 files changed, 2003 insertions(+)

diff --git a/_README b/_README
index 0684007..7d1d7b6 100644
--- a/_README
+++ b/_README
@@ -343,6 +343,10 @@ Patch:  1074_linux-4.14.75.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.75
 
+Patch:  1075_linux-4.14.76.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.76
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1075_linux-4.14.76.patch b/1075_linux-4.14.76.patch
new file mode 100644
index 000..1029509
--- /dev/null
+++ b/1075_linux-4.14.76.patch
@@ -0,0 +1,1999 @@
+diff --git a/Makefile b/Makefile
+index 7fc373c011c0..332dd011b3b9 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 75
++SUBLEVEL = 76
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arc/kernel/process.c b/arch/arc/kernel/process.c
+index 4674541eba3f..8ce6e7235915 100644
+--- a/arch/arc/kernel/process.c
 b/arch/arc/kernel/process.c
+@@ -241,6 +241,26 @@ int copy_thread(unsigned long clone_flags,
+   task_thread_info(current)->thr_ptr;
+   }
+ 
++
++  /*
++   * setup usermode thread pointer #1:
++   * when child is picked by scheduler, __switch_to() uses @c_callee to
++   * populate usermode callee regs: this works (despite being in a kernel
++   * function) since special return path for child @ret_from_fork()
++   * ensures those regs are not clobbered all the way to RTIE to usermode
++   */
++  c_callee->r25 = task_thread_info(p)->thr_ptr;
++
++#ifdef CONFIG_ARC_CURR_IN_REG
++  /*
++   * setup usermode thread pointer #2:
++   * however for this special use of r25 in kernel, __switch_to() sets
++   * r25 for kernel needs and only in the final return path is usermode
++   * r25 setup, from pt_regs->user_r25. So set that up as well
++   */
++  c_regs->user_r25 = c_callee->r25;
++#endif
++
+   return 0;
+ }
+ 
+diff --git a/arch/powerpc/include/asm/setup.h 
b/arch/powerpc/include/asm/setup.h
+index bbcdf929be54..a5e919e34c42 100644
+--- a/arch/powerpc/include/asm/setup.h
 b/arch/powerpc/include/asm/setup.h
+@@ -9,6 +9,7 @@ extern void ppc_printk_progress(char *s, unsigned short hex);
+ 
+ extern unsigned int rtas_data;
+ extern unsigned long long memory_limit;
++extern bool init_mem_is_free;
+ extern unsigned long klimit;
+ extern void *zalloc_maybe_bootmem(size_t size, gfp_t mask);
+ 
+diff --git a/arch/powerpc/lib/code-patching.c 
b/arch/powerpc/lib/code-patching.c
+index 096d4e4d31e6..882c750dc519 100644
+--- a/arch/powerpc/lib/code-patching.c
 b/arch/powerpc/lib/code-patching.c
+@@ -22,20 +22,28 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+-static int __patch_instruction(unsigned int *addr, unsigned int instr)
++static int __patch_instruction(unsigned int *exec_addr, unsigned int instr,
++ unsigned int *patch_addr)
+ {
+   int err;
+ 
+-  __put_user_size(instr, addr, 4, err);
++  __put_user_size(instr, patch_addr, 4, err);
+   if (err)
+   return err;
+ 
+-  asm ("dcbst 0, %0; sync; icbi 0,%0; sync; isync" :: "r" (addr));
++  asm ("dcbst 0, %0; sync; icbi 0,%1; sync; isync" :: "r" (patch_addr),
++  "r" (exec_addr));
+ 
+   return 0;
+ }
+ 
++static int raw_patch_instruction(unsigned int *addr, unsigned int instr)
++{
++  return __patch_instruction(addr, instr, addr);
++}
++
+ #ifdef CONFIG_STRICT_KERNEL_RWX
+ static DEFINE_PER_CPU(struct vm_struct *, text_poke_area);
+ 
+@@ -135,10 +143,10 @@ static inline int unmap_patch_area(unsigned long addr)
+   return 0;
+ }
+ 
+-int patch_instruction(unsigned int *addr, unsigned int instr)
++static int do_patch_instruction(unsigned int *addr, unsigned int instr)
+ {
+   int err;
+-  unsigned int *dest = NULL;
++  unsigned int *patch_addr = NULL;
+   unsigned long flags;
+   unsigned long text_poke_addr;
+   unsigned long kaddr = (unsigned long)addr;
+@@ -149,7 +157,7 @@ int patch_instruction(unsigned int *addr, unsigned int 
instr)
+* to allow patching. We just do the plain old patching
+*/
+   if (!this_cpu_read(*PTRRELOC(_poke_area)))
+-  return __patch_instruction(addr, instr);
++  return raw_patch_instruction(addr, instr);
+ 
+   

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-14 Thread Mike Pagano
commit: a35a7c914e2a6e57dbf926c6e28e992a5c76a79c
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Sep 15 10:11:50 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 14 13:48:40 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=a35a7c91

Linux patch 4.14.70

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1069_linux-4.14.70.patch | 3428 ++
 2 files changed, 3432 insertions(+)

diff --git a/_README b/_README
index 2a8e1bb..2e98e70 100644
--- a/_README
+++ b/_README
@@ -319,6 +319,10 @@ Patch:  1068_linux-4.14.69.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.69
 
+Patch:  1069_linux-4.14.70.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.70
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1069_linux-4.14.70.patch b/1069_linux-4.14.70.patch
new file mode 100644
index 000..8091deb
--- /dev/null
+++ b/1069_linux-4.14.70.patch
@@ -0,0 +1,3428 @@
+diff --git a/Makefile b/Makefile
+index 3ecda1d2e23a..aa458afa7fa2 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 69
++SUBLEVEL = 70
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arm/configs/imx_v6_v7_defconfig 
b/arch/arm/configs/imx_v6_v7_defconfig
+index 21ac9f02407e..32acac9ab81a 100644
+--- a/arch/arm/configs/imx_v6_v7_defconfig
 b/arch/arm/configs/imx_v6_v7_defconfig
+@@ -289,7 +289,6 @@ CONFIG_USB_STORAGE=y
+ CONFIG_USB_CHIPIDEA=y
+ CONFIG_USB_CHIPIDEA_UDC=y
+ CONFIG_USB_CHIPIDEA_HOST=y
+-CONFIG_USB_CHIPIDEA_ULPI=y
+ CONFIG_USB_SERIAL=m
+ CONFIG_USB_SERIAL_GENERIC=y
+ CONFIG_USB_SERIAL_FTDI_SIO=m
+@@ -326,7 +325,6 @@ CONFIG_USB_GADGETFS=m
+ CONFIG_USB_FUNCTIONFS=m
+ CONFIG_USB_MASS_STORAGE=m
+ CONFIG_USB_G_SERIAL=m
+-CONFIG_USB_ULPI_BUS=y
+ CONFIG_MMC=y
+ CONFIG_MMC_SDHCI=y
+ CONFIG_MMC_SDHCI_PLTFM=y
+diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
+index a4065966881a..57f0bc4cd9b8 100644
+--- a/arch/arm/mach-rockchip/Kconfig
 b/arch/arm/mach-rockchip/Kconfig
+@@ -18,6 +18,7 @@ config ARCH_ROCKCHIP
+   select ARM_GLOBAL_TIMER
+   select CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK
+   select ZONE_DMA if ARM_LPAE
++  select PM
+   help
+ Support for Rockchip's Cortex-A9 Single-to-Quad-Core-SoCs
+ containing the RK2928, RK30xx and RK31xx series.
+diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
+index 6b54ee8c1262..456d21542250 100644
+--- a/arch/arm64/Kconfig.platforms
 b/arch/arm64/Kconfig.platforms
+@@ -148,6 +148,7 @@ config ARCH_ROCKCHIP
+   select GPIOLIB
+   select PINCTRL
+   select PINCTRL_ROCKCHIP
++  select PM
+   select ROCKCHIP_TIMER
+   help
+ This enables support for the ARMv8 based Rockchip chipsets,
+diff --git a/arch/arm64/include/asm/cache.h b/arch/arm64/include/asm/cache.h
+index ea9bb4e0e9bb..e40f8a2df545 100644
+--- a/arch/arm64/include/asm/cache.h
 b/arch/arm64/include/asm/cache.h
+@@ -20,9 +20,14 @@
+ 
+ #define CTR_L1IP_SHIFT14
+ #define CTR_L1IP_MASK 3
++#define CTR_DMINLINE_SHIFT16
++#define CTR_IMINLINE_SHIFT0
+ #define CTR_CWG_SHIFT 24
+ #define CTR_CWG_MASK  15
+ 
++#define CTR_CACHE_MINLINE_MASK\
++  (0xf << CTR_DMINLINE_SHIFT | 0xf << CTR_IMINLINE_SHIFT)
++
+ #define CTR_L1IP(ctr) (((ctr) >> CTR_L1IP_SHIFT) & CTR_L1IP_MASK)
+ 
+ #define ICACHE_POLICY_VPIPT   0
+diff --git a/arch/arm64/include/asm/cpucaps.h 
b/arch/arm64/include/asm/cpucaps.h
+index 76c0d23ca161..7d6425d426ac 100644
+--- a/arch/arm64/include/asm/cpucaps.h
 b/arch/arm64/include/asm/cpucaps.h
+@@ -44,7 +44,8 @@
+ #define ARM64_HARDEN_BRANCH_PREDICTOR 24
+ #define ARM64_HARDEN_BP_POST_GUEST_EXIT   25
+ #define ARM64_SSBD26
++#define ARM64_MISMATCHED_CACHE_TYPE   27
+ 
+-#define ARM64_NCAPS   27
++#define ARM64_NCAPS   28
+ 
+ #endif /* __ASM_CPUCAPS_H */
+diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c
+index eccdb28b4a39..3d6d7fae45de 100644
+--- a/arch/arm64/kernel/cpu_errata.c
 b/arch/arm64/kernel/cpu_errata.c
+@@ -16,6 +16,8 @@
+  * along with this program.  If not, see .
+  */
+ 
++#include 
++#include 
+ #include 
+ #include 
+ #include 
+@@ -45,12 +47,18 @@ is_kryo_midr(const struct arm64_cpu_capabilities *entry, 
int scope)
+ }
+ 
+ static bool
+-has_mismatched_cache_line_size(const struct arm64_cpu_capabilities *entry,
+-  int scope)
++has_mismatched_cache_type(const struct arm64_cpu_capabilities *entry,
++int scope)
+ {
++  u64 mask = CTR_CACHE_MINLINE_MASK;
++

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-14 Thread Mike Pagano
commit: 9c4b862841e34eef549b8cd8bbeb705f9d77ec29
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Aug  9 10:54:46 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 14 13:48:40 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=9c4b8628

Linux patch 4.14.62

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |   4 +
 1061_linux-4.14.62.patch | 797 +++
 2 files changed, 801 insertions(+)

diff --git a/_README b/_README
index 64029e1..b530931 100644
--- a/_README
+++ b/_README
@@ -287,6 +287,10 @@ Patch:  1060_linux-4.14.61.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.61
 
+Patch:  1061_linux-4.14.62.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.62
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1061_linux-4.14.62.patch b/1061_linux-4.14.62.patch
new file mode 100644
index 000..a1d7ceb
--- /dev/null
+++ b/1061_linux-4.14.62.patch
@@ -0,0 +1,797 @@
+diff --git a/Makefile b/Makefile
+index 4bd65eabd298..d407ecfdee0b 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 61
++SUBLEVEL = 62
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c
+index f96830ffd9f1..75c6b98585ba 100644
+--- a/drivers/i2c/busses/i2c-imx.c
 b/drivers/i2c/busses/i2c-imx.c
+@@ -376,6 +376,7 @@ static int i2c_imx_dma_xfer(struct imx_i2c_struct *i2c_imx,
+   goto err_desc;
+   }
+ 
++  reinit_completion(>cmd_complete);
+   txdesc->callback = i2c_imx_dma_callback;
+   txdesc->callback_param = i2c_imx;
+   if (dma_submit_error(dmaengine_submit(txdesc))) {
+@@ -619,7 +620,6 @@ static int i2c_imx_dma_write(struct imx_i2c_struct 
*i2c_imx,
+* The first byte must be transmitted by the CPU.
+*/
+   imx_i2c_write_reg(msgs->addr << 1, i2c_imx, IMX_I2C_I2DR);
+-  reinit_completion(_imx->dma->cmd_complete);
+   time_left = wait_for_completion_timeout(
+   _imx->dma->cmd_complete,
+   msecs_to_jiffies(DMA_TIMEOUT));
+@@ -678,7 +678,6 @@ static int i2c_imx_dma_read(struct imx_i2c_struct *i2c_imx,
+   if (result)
+   return result;
+ 
+-  reinit_completion(_imx->dma->cmd_complete);
+   time_left = wait_for_completion_timeout(
+   _imx->dma->cmd_complete,
+   msecs_to_jiffies(DMA_TIMEOUT));
+diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c
+index f0b06b14e782..16249b0953ff 100644
+--- a/drivers/idle/intel_idle.c
 b/drivers/idle/intel_idle.c
+@@ -1061,7 +1061,7 @@ static const struct idle_cpu idle_cpu_dnv = {
+ };
+ 
+ #define ICPU(model, cpu) \
+-  { X86_VENDOR_INTEL, 6, model, X86_FEATURE_MWAIT, (unsigned long) }
++  { X86_VENDOR_INTEL, 6, model, X86_FEATURE_ANY, (unsigned long) }
+ 
+ static const struct x86_cpu_id intel_idle_ids[] __initconst = {
+   ICPU(INTEL_FAM6_NEHALEM_EP, idle_cpu_nehalem),
+@@ -1125,6 +1125,11 @@ static int __init intel_idle_probe(void)
+   return -ENODEV;
+   }
+ 
++  if (!boot_cpu_has(X86_FEATURE_MWAIT)) {
++  pr_debug("Please enable MWAIT in BIOS SETUP\n");
++  return -ENODEV;
++  }
++
+   if (boot_cpu_data.cpuid_level < CPUID_MWAIT_LEAF)
+   return -ENODEV;
+ 
+diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
+index f5643d107cc6..a67d03716510 100644
+--- a/drivers/nvme/host/pci.c
 b/drivers/nvme/host/pci.c
+@@ -77,7 +77,7 @@ static void nvme_dev_disable(struct nvme_dev *dev, bool 
shutdown);
+  * Represents an NVM Express device.  Each nvme_dev is a PCI function.
+  */
+ struct nvme_dev {
+-  struct nvme_queue **queues;
++  struct nvme_queue *queues;
+   struct blk_mq_tag_set tagset;
+   struct blk_mq_tag_set admin_tagset;
+   u32 __iomem *dbs;
+@@ -348,7 +348,7 @@ static int nvme_admin_init_hctx(struct blk_mq_hw_ctx 
*hctx, void *data,
+   unsigned int hctx_idx)
+ {
+   struct nvme_dev *dev = data;
+-  struct nvme_queue *nvmeq = dev->queues[0];
++  struct nvme_queue *nvmeq = >queues[0];
+ 
+   WARN_ON(hctx_idx != 0);
+   WARN_ON(dev->admin_tagset.tags[0] != hctx->tags);
+@@ -370,7 +370,7 @@ static int nvme_init_hctx(struct blk_mq_hw_ctx *hctx, void 
*data,
+ unsigned int hctx_idx)
+ {
+   struct nvme_dev *dev = data;
+-  struct nvme_queue *nvmeq = dev->queues[hctx_idx + 1];
++  struct nvme_queue *nvmeq = >queues[hctx_idx + 1];
+ 
+   if (!nvmeq->tags)
+   nvmeq->tags = >tagset.tags[hctx_idx];
+@@ -386,7 +386,7 @@ static int nvme_init_request(struct blk_mq_tag_set 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-14 Thread Mike Pagano
commit: cae3effb5baa67fbb6295b13c6770abae3f638c5
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Sep 29 13:35:19 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 14 13:48:41 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=cae3effb

Linux patch 4.14.73

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1072_linux-4.14.73.patch | 1830 ++
 2 files changed, 1834 insertions(+)

diff --git a/_README b/_README
index ce833af..08015af 100644
--- a/_README
+++ b/_README
@@ -331,6 +331,10 @@ Patch:  1071_linux-4.14.72.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.72
 
+Patch:  1072_linux-4.14.73.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.73
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1072_linux-4.14.73.patch b/1072_linux-4.14.73.patch
new file mode 100644
index 000..9020dd3
--- /dev/null
+++ b/1072_linux-4.14.73.patch
@@ -0,0 +1,1830 @@
+diff --git a/Makefile b/Makefile
+index 734722bda173..89f30ca964b6 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 72
++SUBLEVEL = 73
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/x86/xen/pmu.c b/arch/x86/xen/pmu.c
+index 7d00d4ad44d4..95997e6c0696 100644
+--- a/arch/x86/xen/pmu.c
 b/arch/x86/xen/pmu.c
+@@ -478,7 +478,7 @@ static void xen_convert_regs(const struct xen_pmu_regs 
*xen_regs,
+ irqreturn_t xen_pmu_irq_handler(int irq, void *dev_id)
+ {
+   int err, ret = IRQ_NONE;
+-  struct pt_regs regs;
++  struct pt_regs regs = {0};
+   const struct xen_pmu_data *xenpmu_data = get_xenpmu_data();
+   uint8_t xenpmu_flags = get_xenpmu_flags();
+ 
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
+index fd435a96481c..e8d9479615c9 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
 b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
+@@ -715,12 +715,14 @@ static int amdgpu_cgs_get_firmware_info(struct 
cgs_device *cgs_device,
+   break;
+   case CHIP_POLARIS10:
+   if (type == CGS_UCODE_ID_SMU) {
+-  if ((adev->pdev->device == 0x67df) &&
+-  ((adev->pdev->revision == 0xe0) ||
+-   (adev->pdev->revision == 0xe3) ||
+-   (adev->pdev->revision == 0xe4) ||
+-   (adev->pdev->revision == 0xe5) ||
+-   (adev->pdev->revision == 0xe7) ||
++  if (((adev->pdev->device == 0x67df) &&
++   ((adev->pdev->revision == 0xe0) ||
++(adev->pdev->revision == 0xe3) ||
++(adev->pdev->revision == 0xe4) ||
++(adev->pdev->revision == 0xe5) ||
++(adev->pdev->revision == 0xe7) ||
++(adev->pdev->revision == 0xef))) 
||
++  ((adev->pdev->device == 0x6fdf) &&
+(adev->pdev->revision == 0xef))) {
+   info->is_kicker = true;
+   strcpy(fw_name, 
"amdgpu/polaris10_k_smc.bin");
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
+index 0f16986ec5bc..4dd68d821353 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
 b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
+@@ -500,6 +500,7 @@ static const struct pci_device_id pciidlist[] = {
+   {0x1002, 0x67CA, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS10},
+   {0x1002, 0x67CC, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS10},
+   {0x1002, 0x67CF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS10},
++  {0x1002, 0x6FDF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS10},
+   /* Polaris12 */
+   {0x1002, 0x6980, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS12},
+   {0x1002, 0x6981, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS12},
+diff --git a/drivers/gpu/drm/nouveau/nouveau_connector.c 
b/drivers/gpu/drm/nouveau/nouveau_connector.c
+index 430830d63a33..2c6d19683688 100644
+--- a/drivers/gpu/drm/nouveau/nouveau_connector.c
 b/drivers/gpu/drm/nouveau/nouveau_connector.c
+@@ -570,12 +570,16 @@ nouveau_connector_detect(struct drm_connector 
*connector, bool force)
+   nv_connector->edid = NULL;
+   }
+ 
+-  /* Outputs are only polled while runtime active, so acquiring a
+-   * 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-14 Thread Mike Pagano
commit: eeadc15f988c9a553ea0ce6882d66d6b0e44aa66
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Oct 20 12:40:43 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 14 13:48:41 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=eeadc15f

Linux patch 4.14.78

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1077_linux-4.14.78.patch | 2020 ++
 2 files changed, 2024 insertions(+)

diff --git a/_README b/_README
index 832ddd2..509ffd2 100644
--- a/_README
+++ b/_README
@@ -351,6 +351,10 @@ Patch:  1076_linux-4.14.77.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.77
 
+Patch:  1077_linux-4.14.78.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.78
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1077_linux-4.14.78.patch b/1077_linux-4.14.78.patch
new file mode 100644
index 000..e0b842e
--- /dev/null
+++ b/1077_linux-4.14.78.patch
@@ -0,0 +1,2020 @@
+diff --git a/Makefile b/Makefile
+index 16d1a18496fb..89574ee68d6b 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 77
++SUBLEVEL = 78
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arc/Makefile b/arch/arc/Makefile
+index 6c1b20dd76ad..7c6c97782022 100644
+--- a/arch/arc/Makefile
 b/arch/arc/Makefile
+@@ -6,34 +6,12 @@
+ # published by the Free Software Foundation.
+ #
+ 
+-ifeq ($(CROSS_COMPILE),)
+-ifndef CONFIG_CPU_BIG_ENDIAN
+-CROSS_COMPILE := arc-linux-
+-else
+-CROSS_COMPILE := arceb-linux-
+-endif
+-endif
+-
+ KBUILD_DEFCONFIG := nsim_700_defconfig
+ 
+ cflags-y  += -fno-common -pipe -fno-builtin -mmedium-calls -D__linux__
+ cflags-$(CONFIG_ISA_ARCOMPACT)+= -mA7
+ cflags-$(CONFIG_ISA_ARCV2)+= -mcpu=archs
+ 
+-is_700 = $(shell $(CC) -dM -E - < /dev/null | grep -q "ARC700" && echo 1 || 
echo 0)
+-
+-ifdef CONFIG_ISA_ARCOMPACT
+-ifeq ($(is_700), 0)
+-$(error Toolchain not configured for ARCompact builds)
+-endif
+-endif
+-
+-ifdef CONFIG_ISA_ARCV2
+-ifeq ($(is_700), 1)
+-$(error Toolchain not configured for ARCv2 builds)
+-endif
+-endif
+-
+ ifdef CONFIG_ARC_CURR_IN_REG
+ # For a global register defintion, make sure it gets passed to every file
+ # We had a customer reported bug where some code built in kernel was NOT using
+@@ -87,7 +65,7 @@ ldflags-$(CONFIG_CPU_BIG_ENDIAN) += -EB
+ # --build-id w/o "-marclinux". Default arc-elf32-ld is OK
+ ldflags-$(upto_gcc44) += -marclinux
+ 
+-LIBGCC:= $(shell $(CC) $(cflags-y) --print-libgcc-file-name)
++LIBGCC= $(shell $(CC) $(cflags-y) --print-libgcc-file-name)
+ 
+ # Modules with short calls might break for calls into builtin-kernel
+ KBUILD_CFLAGS_MODULE  += -mlong-calls -mno-millicode
+diff --git a/arch/powerpc/include/asm/code-patching.h 
b/arch/powerpc/include/asm/code-patching.h
+index 2c895e8d07f7..812535f40124 100644
+--- a/arch/powerpc/include/asm/code-patching.h
 b/arch/powerpc/include/asm/code-patching.h
+@@ -31,6 +31,7 @@ unsigned int create_cond_branch(const unsigned int *addr,
+   unsigned long target, int flags);
+ int patch_branch(unsigned int *addr, unsigned long target, int flags);
+ int patch_instruction(unsigned int *addr, unsigned int instr);
++int raw_patch_instruction(unsigned int *addr, unsigned int instr);
+ 
+ int instr_is_relative_branch(unsigned int instr);
+ int instr_is_relative_link_branch(unsigned int instr);
+diff --git a/arch/powerpc/kernel/tm.S b/arch/powerpc/kernel/tm.S
+index 1da12f521cb7..b735b727ed2b 100644
+--- a/arch/powerpc/kernel/tm.S
 b/arch/powerpc/kernel/tm.S
+@@ -167,13 +167,27 @@ _GLOBAL(tm_reclaim)
+   std r1, PACATMSCRATCH(r13)
+   ld  r1, PACAR1(r13)
+ 
+-  /* Store the PPR in r11 and reset to decent value */
+   std r11, GPR11(r1)  /* Temporary stash */
+ 
++  /*
++   * Move the saved user r1 to the kernel stack in case PACATMSCRATCH is
++   * clobbered by an exception once we turn on MSR_RI below.
++   */
++  ld  r11, PACATMSCRATCH(r13)
++  std r11, GPR1(r1)
++
++  /*
++   * Store r13 away so we can free up the scratch SPR for the SLB fault
++   * handler (needed once we start accessing the thread_struct).
++   */
++  GET_SCRATCH0(r11)
++  std r11, GPR13(r1)
++
+   /* Reset MSR RI so we can take SLB faults again */
+   li  r11, MSR_RI
+   mtmsrd  r11, 1
+ 
++  /* Store the PPR in r11 and reset to decent value */
+   mfspr   r11, SPRN_PPR
+   HMT_MEDIUM
+ 
+@@ -198,11 +212,11 @@ _GLOBAL(tm_reclaim)
+   SAVE_GPR(8, r7) /* user r8 */
+   SAVE_GPR(9, r7) /* user r9 */
+   SAVE_GPR(10, r7)

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-14 Thread Mike Pagano
commit: adb76b8081290db2b70c187ef730f20c9032c9c7
Author: Mike Pagano  gentoo  org>
AuthorDate: Sun Nov 11 01:18:51 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 14 13:48:41 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=adb76b80

net: sched: Remove TCA_OPTIONS from policy

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |  4 
 1800_TCA-OPTIONS-sched-fix.patch | 35 +++
 2 files changed, 39 insertions(+)

diff --git a/_README b/_README
index 9993aba..28ef8f2 100644
--- a/_README
+++ b/_README
@@ -375,6 +375,10 @@ Patch:  1700_ia64_fix_ptrace.patch
 From:   https://patchwork.kernel.org/patch/10198159/
 Desc:   ia64: fix ptrace(PTRACE_GETREGS) (unbreaks strace, gdb).
 
+Patch:  1800_TCA-OPTIONS-sched-fix.patch
+From:   https://git.kernel.org
+Desc:   net: sched: Remove TCA_OPTIONS from policy
+
 Patch: 2100_bcache-data-corruption-fix-for-bi-partno.patch
 From:   
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=62530ed8b1d07a45dec94d46e521c0c6c2d476e6
 Desc:   bio: ensure __bio_clone_fast copies bi_partno. 

diff --git a/1800_TCA-OPTIONS-sched-fix.patch b/1800_TCA-OPTIONS-sched-fix.patch
new file mode 100644
index 000..f960fac
--- /dev/null
+++ b/1800_TCA-OPTIONS-sched-fix.patch
@@ -0,0 +1,35 @@
+From e72bde6b66299602087c8c2350d36a525e75d06e Mon Sep 17 00:00:00 2001
+From: David Ahern 
+Date: Wed, 24 Oct 2018 08:32:49 -0700
+Subject: net: sched: Remove TCA_OPTIONS from policy
+
+Marco reported an error with hfsc:
+root@Calimero:~# tc qdisc add dev eth0 root handle 1:0 hfsc default 1
+Error: Attribute failed policy validation.
+
+Apparently a few implementations pass TCA_OPTIONS as a binary instead
+of nested attribute, so drop TCA_OPTIONS from the policy.
+
+Fixes: 8b4c3cdd9dd8 ("net: sched: Add policy validation for tc attributes")
+Reported-by: Marco Berizzi 
+Signed-off-by: David Ahern 
+Signed-off-by: David S. Miller 
+---
+ net/sched/sch_api.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c
+index 022bca98bde6..ca3b0f46de53 100644
+--- a/net/sched/sch_api.c
 b/net/sched/sch_api.c
+@@ -1320,7 +1320,6 @@ check_loop_fn(struct Qdisc *q, unsigned long cl, struct 
qdisc_walker *w)
+ 
+ const struct nla_policy rtm_tca_policy[TCA_MAX + 1] = {
+   [TCA_KIND]  = { .type = NLA_STRING },
+-  [TCA_OPTIONS]   = { .type = NLA_NESTED },
+   [TCA_RATE]  = { .type = NLA_BINARY,
+   .len = sizeof(struct tc_estimator) },
+   [TCA_STAB]  = { .type = NLA_NESTED },
+-- 
+cgit 1.2-0.3.lf.el7
+



[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-14 Thread Mike Pagano
commit: 4b0a9d86cb58c544e1a8041233cb07037208711d
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Nov 14 13:32:48 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 14 13:48:41 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=4b0a9d86

proj/linux-patches: Removal of redundant patch

1800_TCA-OPTIONS-sched-fix.patch

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |  4 
 1800_TCA-OPTIONS-sched-fix.patch | 35 ---
 2 files changed, 39 deletions(-)

diff --git a/_README b/_README
index fd76211..70ae288 100644
--- a/_README
+++ b/_README
@@ -379,10 +379,6 @@ Patch:  1700_ia64_fix_ptrace.patch
 From:   https://patchwork.kernel.org/patch/10198159/
 Desc:   ia64: fix ptrace(PTRACE_GETREGS) (unbreaks strace, gdb).
 
-Patch:  1800_TCA-OPTIONS-sched-fix.patch
-From:   https://git.kernel.org
-Desc:   net: sched: Remove TCA_OPTIONS from policy
-
 Patch: 2100_bcache-data-corruption-fix-for-bi-partno.patch
 From:   
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=62530ed8b1d07a45dec94d46e521c0c6c2d476e6
 Desc:   bio: ensure __bio_clone_fast copies bi_partno. 

diff --git a/1800_TCA-OPTIONS-sched-fix.patch b/1800_TCA-OPTIONS-sched-fix.patch
deleted file mode 100644
index f960fac..000
--- a/1800_TCA-OPTIONS-sched-fix.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-From e72bde6b66299602087c8c2350d36a525e75d06e Mon Sep 17 00:00:00 2001
-From: David Ahern 
-Date: Wed, 24 Oct 2018 08:32:49 -0700
-Subject: net: sched: Remove TCA_OPTIONS from policy
-
-Marco reported an error with hfsc:
-root@Calimero:~# tc qdisc add dev eth0 root handle 1:0 hfsc default 1
-Error: Attribute failed policy validation.
-
-Apparently a few implementations pass TCA_OPTIONS as a binary instead
-of nested attribute, so drop TCA_OPTIONS from the policy.
-
-Fixes: 8b4c3cdd9dd8 ("net: sched: Add policy validation for tc attributes")
-Reported-by: Marco Berizzi 
-Signed-off-by: David Ahern 
-Signed-off-by: David S. Miller 

- net/sched/sch_api.c | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c
-index 022bca98bde6..ca3b0f46de53 100644
 a/net/sched/sch_api.c
-+++ b/net/sched/sch_api.c
-@@ -1320,7 +1320,6 @@ check_loop_fn(struct Qdisc *q, unsigned long cl, struct 
qdisc_walker *w)
- 
- const struct nla_policy rtm_tca_policy[TCA_MAX + 1] = {
-   [TCA_KIND]  = { .type = NLA_STRING },
--  [TCA_OPTIONS]   = { .type = NLA_NESTED },
-   [TCA_RATE]  = { .type = NLA_BINARY,
-   .len = sizeof(struct tc_estimator) },
-   [TCA_STAB]  = { .type = NLA_NESTED },
--- 
-cgit 1.2-0.3.lf.el7
-



[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-14 Thread Mike Pagano
commit: 69436507150422f0a74f0fe0e6e7b586a4163f82
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Nov 10 21:31:26 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 14 13:48:41 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=69436507

Linux patch 4.14.80

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1079_linux-4.14.80.patch | 1098 ++
 2 files changed, 1102 insertions(+)

diff --git a/_README b/_README
index 319ee36..9993aba 100644
--- a/_README
+++ b/_README
@@ -359,6 +359,10 @@ Patch:  1078_linux-4.14.79.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.79
 
+Patch:  1079_linux-4.14.80.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.80
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1079_linux-4.14.80.patch b/1079_linux-4.14.80.patch
new file mode 100644
index 000..009344b
--- /dev/null
+++ b/1079_linux-4.14.80.patch
@@ -0,0 +1,1098 @@
+diff --git a/Makefile b/Makefile
+index 57a007bf1181..f4cad5e03561 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 79
++SUBLEVEL = 80
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi
+index 2780e68a853b..914f59166a99 100644
+--- a/arch/arm/boot/dts/tegra20.dtsi
 b/arch/arm/boot/dts/tegra20.dtsi
+@@ -706,7 +706,7 @@
+   phy_type = "ulpi";
+   clocks = <_car TEGRA20_CLK_USB2>,
+<_car TEGRA20_CLK_PLL_U>,
+-   <_car TEGRA20_CLK_PLL_P_OUT4>;
++   <_car TEGRA20_CLK_CDEV2>;
+   clock-names = "reg", "pll_u", "ulpi-link";
+   resets = <_car 58>, <_car 22>;
+   reset-names = "usb", "utmi-pads";
+diff --git a/arch/x86/include/asm/fpu/internal.h 
b/arch/x86/include/asm/fpu/internal.h
+index a38bf5a1e37a..69dcdf195b61 100644
+--- a/arch/x86/include/asm/fpu/internal.h
 b/arch/x86/include/asm/fpu/internal.h
+@@ -528,7 +528,7 @@ static inline void fpregs_activate(struct fpu *fpu)
+ static inline void
+ switch_fpu_prepare(struct fpu *old_fpu, int cpu)
+ {
+-  if (old_fpu->initialized) {
++  if (static_cpu_has(X86_FEATURE_FPU) && old_fpu->initialized) {
+   if (!copy_fpregs_to_fpstate(old_fpu))
+   old_fpu->last_cpu = -1;
+   else
+diff --git a/arch/x86/include/asm/percpu.h b/arch/x86/include/asm/percpu.h
+index ba3c523aaf16..12aa2bb6bac4 100644
+--- a/arch/x86/include/asm/percpu.h
 b/arch/x86/include/asm/percpu.h
+@@ -185,22 +185,22 @@ do { 
\
+   typeof(var) pfo_ret__;  \
+   switch (sizeof(var)) {  \
+   case 1: \
+-  asm(op "b "__percpu_arg(1)",%0" \
++  asm volatile(op "b "__percpu_arg(1)",%0"\
+   : "=q" (pfo_ret__)  \
+   : "m" (var));   \
+   break;  \
+   case 2: \
+-  asm(op "w "__percpu_arg(1)",%0" \
++  asm volatile(op "w "__percpu_arg(1)",%0"\
+   : "=r" (pfo_ret__)  \
+   : "m" (var));   \
+   break;  \
+   case 4: \
+-  asm(op "l "__percpu_arg(1)",%0" \
++  asm volatile(op "l "__percpu_arg(1)",%0"\
+   : "=r" (pfo_ret__)  \
+   : "m" (var));   \
+   break;  \
+   case 8: \
+-  asm(op "q "__percpu_arg(1)",%0" \
++  asm volatile(op "q "__percpu_arg(1)",%0"\
+   : "=r" (pfo_ret__)  \
+   : "m" (var));   \
+   break;  \
+diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
+index dcb00acb6583..4bc12447a50f 100644
+--- a/arch/x86/kernel/setup.c
 b/arch/x86/kernel/setup.c
+@@ -1287,7 +1287,7 @@ void __init setup_arch(char **cmdline_p)
+   kvm_guest_init();
+ 
+   e820__reserve_resources();
+-  e820__register_nosave_regions(max_low_pfn);
++  e820__register_nosave_regions(max_pfn);
+ 
+   x86_init.resources.reserve_resources();
+ 
+diff --git a/arch/x86/kernel/time.c b/arch/x86/kernel/time.c
+index 49a5c394f3ed..ab0176ae985b 100644
+--- a/arch/x86/kernel/time.c

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-14 Thread Mike Pagano
commit: 864b0cb648fcf28b15f8c9bf290ae1eb754ec224
Author: Alice Ferrazzi  gentoo  org>
AuthorDate: Wed Aug 22 10:01:43 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 14 13:48:40 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=864b0cb6

linux kernel 4.14.65

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |   4 +
 1065_linux-4.14.66.patch | 683 +++
 2 files changed, 687 insertions(+)

diff --git a/_README b/_README
index 1cd1371..352e3ec 100644
--- a/_README
+++ b/_README
@@ -303,6 +303,10 @@ Patch:  1064_linux-4.14.65.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.65
 
+Patch:  1065_linux-4.14.66.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.66
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1065_linux-4.14.66.patch b/1065_linux-4.14.66.patch
new file mode 100644
index 000..149a83c
--- /dev/null
+++ b/1065_linux-4.14.66.patch
@@ -0,0 +1,683 @@
+diff --git a/Makefile b/Makefile
+index 7995690ff1aa..e69d0d091742 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 65
++SUBLEVEL = 66
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c
+index 2ef0ad6a33d6..7a0af16f86f2 100644
+--- a/drivers/acpi/sleep.c
 b/drivers/acpi/sleep.c
+@@ -338,6 +338,14 @@ static const struct dmi_system_id acpisleep_dmi_table[] 
__initconst = {
+   DMI_MATCH(DMI_PRODUCT_NAME, "K54HR"),
+   },
+   },
++  {
++  .callback = init_nvs_save_s3,
++  .ident = "Asus 1025C",
++  .matches = {
++  DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
++  DMI_MATCH(DMI_PRODUCT_NAME, "1025C"),
++  },
++  },
+   /*
+* https://bugzilla.kernel.org/show_bug.cgi?id=189431
+* Lenovo G50-45 is a platform later than 2012, but needs nvs memory
+diff --git a/drivers/isdn/i4l/isdn_common.c b/drivers/isdn/i4l/isdn_common.c
+index 38a5bb764c7b..598724ffde4e 100644
+--- a/drivers/isdn/i4l/isdn_common.c
 b/drivers/isdn/i4l/isdn_common.c
+@@ -1640,13 +1640,7 @@ isdn_ioctl(struct file *file, uint cmd, ulong arg)
+   } else
+   return -EINVAL;
+   case IIOCDBGVAR:
+-  if (arg) {
+-  if (copy_to_user(argp, , sizeof(ulong)))
+-  return -EFAULT;
+-  return 0;
+-  } else
+-  return -EINVAL;
+-  break;
++  return -EINVAL;
+   default:
+   if ((cmd & IIOCDRVCTL) == IIOCDRVCTL)
+   cmd = ((cmd >> _IOC_NRSHIFT) & _IOC_NRMASK) & 
ISDN_DRVIOCTL_MASK;
+diff --git a/drivers/misc/sram.c b/drivers/misc/sram.c
+index fc0415771c00..4dd0d868ff88 100644
+--- a/drivers/misc/sram.c
 b/drivers/misc/sram.c
+@@ -407,13 +407,20 @@ static int sram_probe(struct platform_device *pdev)
+   if (init_func) {
+   ret = init_func();
+   if (ret)
+-  return ret;
++  goto err_disable_clk;
+   }
+ 
+   dev_dbg(sram->dev, "SRAM pool: %zu KiB @ 0x%p\n",
+   gen_pool_size(sram->pool) / 1024, sram->virt_base);
+ 
+   return 0;
++
++err_disable_clk:
++  if (sram->clk)
++  clk_disable_unprepare(sram->clk);
++  sram_free_partitions(sram);
++
++  return ret;
+ }
+ 
+ static int sram_remove(struct platform_device *pdev)
+diff --git a/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 
b/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c
+index 36fddb199160..f4b3554b0b67 100644
+--- a/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c
 b/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c
+@@ -752,7 +752,7 @@ static int hw_atl_b0_hw_packet_filter_set(struct aq_hw_s 
*self,
+ 
+   rpfl2promiscuous_mode_en_set(self, IS_FILTER_ENABLED(IFF_PROMISC));
+   rpfl2multicast_flr_en_set(self,
+-IS_FILTER_ENABLED(IFF_MULTICAST), 0);
++IS_FILTER_ENABLED(IFF_ALLMULTI), 0);
+ 
+   rpfl2_accept_all_mc_packets_set(self,
+   IS_FILTER_ENABLED(IFF_ALLMULTI));
+diff --git a/drivers/tty/serial/8250/8250_dw.c 
b/drivers/tty/serial/8250/8250_dw.c
+index 3015789265dd..27c5b2b46b8d 100644
+--- a/drivers/tty/serial/8250/8250_dw.c
 b/drivers/tty/serial/8250/8250_dw.c
+@@ -260,7 +260,7 @@ static void dw8250_set_termios(struct uart_port *p, struct 
ktermios *termios,
+   long rate;
+   int ret;
+ 
+-  if (IS_ERR(d->clk) || !old)
++

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-14 Thread Mike Pagano
commit: 5daaa2d96ad75e2c90ebbac27e9f183713cc887e
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Aug 17 19:26:38 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 14 13:48:40 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=5daaa2d9

Linux patch 4.14.64

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1063_linux-4.14.64.patch | 1527 ++
 2 files changed, 1531 insertions(+)

diff --git a/_README b/_README
index ada5b82..41f1d75 100644
--- a/_README
+++ b/_README
@@ -295,6 +295,10 @@ Patch:  1062_linux-4.14.63.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.63
 
+Patch:  1063_linux-4.14.64.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.64
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1063_linux-4.14.64.patch b/1063_linux-4.14.64.patch
new file mode 100644
index 000..b4a1f5f
--- /dev/null
+++ b/1063_linux-4.14.64.patch
@@ -0,0 +1,1527 @@
+diff --git a/Documentation/process/changes.rst 
b/Documentation/process/changes.rst
+index 560beaef5a7c..73fcdcd52b87 100644
+--- a/Documentation/process/changes.rst
 b/Documentation/process/changes.rst
+@@ -33,7 +33,7 @@ GNU C  3.2  gcc --version
+ GNU make   3.81 make --version
+ binutils   2.20 ld -v
+ util-linux 2.10ofdformat --version
+-module-init-tools  0.9.10   depmod -V
++kmod   13   depmod -V
+ e2fsprogs  1.41.4   e2fsck -V
+ jfsutils   1.1.3fsck.jfs -V
+ reiserfsprogs  3.6.3reiserfsck -V
+@@ -141,12 +141,6 @@ is not build with ``CONFIG_KALLSYMS`` and you have no way 
to rebuild and
+ reproduce the Oops with that option, then you can still decode that Oops
+ with ksymoops.
+ 
+-Module-Init-Tools
+--
+-
+-A new module loader is now in the kernel that requires ``module-init-tools``
+-to use.  It is backward compatible with the 2.4.x series kernels.
+-
+ Mkinitrd
+ 
+ 
+@@ -346,16 +340,17 @@ Util-linux
+ 
+ - 
+ 
++Kmod
++
++
++- 
++- 
++
+ Ksymoops
+ 
+ 
+ - 
+ 
+-Module-Init-Tools
+--
+-
+-- 
+-
+ Mkinitrd
+ 
+ 
+diff --git a/Makefile b/Makefile
+index f3bb9428b3dc..025156791e90 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 63
++SUBLEVEL = 64
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c
+index f6b877d2726d..6ac0d32d60a5 100644
+--- a/arch/arm64/mm/mmu.c
 b/arch/arm64/mm/mmu.c
+@@ -938,12 +938,12 @@ int pmd_clear_huge(pmd_t *pmd)
+   return 1;
+ }
+ 
+-int pud_free_pmd_page(pud_t *pud)
++int pud_free_pmd_page(pud_t *pud, unsigned long addr)
+ {
+   return pud_none(*pud);
+ }
+ 
+-int pmd_free_pte_page(pmd_t *pmd)
++int pmd_free_pte_page(pmd_t *pmd, unsigned long addr)
+ {
+   return pmd_none(*pmd);
+ }
+diff --git a/arch/x86/crypto/sha256-mb/sha256_mb_mgr_flush_avx2.S 
b/arch/x86/crypto/sha256-mb/sha256_mb_mgr_flush_avx2.S
+index 16c4ccb1f154..d2364c55bbde 100644
+--- a/arch/x86/crypto/sha256-mb/sha256_mb_mgr_flush_avx2.S
 b/arch/x86/crypto/sha256-mb/sha256_mb_mgr_flush_avx2.S
+@@ -265,7 +265,7 @@ ENTRY(sha256_mb_mgr_get_comp_job_avx2)
+   vpinsrd $1, _args_digest+1*32(state, idx, 4), %xmm0, %xmm0
+   vpinsrd $2, _args_digest+2*32(state, idx, 4), %xmm0, %xmm0
+   vpinsrd $3, _args_digest+3*32(state, idx, 4), %xmm0, %xmm0
+-  vmovd   _args_digest(state , idx, 4) , %xmm0
++  vmovd   _args_digest+4*32(state, idx, 4), %xmm1
+   vpinsrd $1, _args_digest+5*32(state, idx, 4), %xmm1, %xmm1
+   vpinsrd $2, _args_digest+6*32(state, idx, 4), %xmm1, %xmm1
+   vpinsrd $3, _args_digest+7*32(state, idx, 4), %xmm1, %xmm1
+diff --git a/arch/x86/include/asm/i8259.h b/arch/x86/include/asm/i8259.h
+index 5cdcdbd4d892..89789e8c80f6 100644
+--- a/arch/x86/include/asm/i8259.h
 b/arch/x86/include/asm/i8259.h
+@@ -3,6 +3,7 @@
+ #define _ASM_X86_I8259_H
+ 
+ #include 
++#include 
+ 
+ extern unsigned int cached_irq_mask;
+ 
+diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c
+index edfc64a8a154..d07addb99b71 100644
+--- a/arch/x86/kernel/cpu/bugs.c
 b/arch/x86/kernel/cpu/bugs.c
+@@ -648,10 +648,9 @@ void x86_spec_ctrl_setup_ap(void)
+ enum l1tf_mitigations l1tf_mitigation __ro_after_init = L1TF_MITIGATION_FLUSH;
+ #if 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-14 Thread Mike Pagano
commit: d7a67b2c96728ac08af63068f1ce610c160375a8
Author: Mike Pagano  gentoo  org>
AuthorDate: Sun Sep  9 23:28:47 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 14 13:48:40 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=d7a67b2c

Linux patch 4.14.69

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1068_linux-4.14.69.patch | 3362 ++
 2 files changed, 3366 insertions(+)

diff --git a/_README b/_README
index 4fd9ed9..2a8e1bb 100644
--- a/_README
+++ b/_README
@@ -315,6 +315,10 @@ Patch:  1067_linux-4.14.68.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.68
 
+Patch:  1068_linux-4.14.69.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.69
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1068_linux-4.14.69.patch b/1068_linux-4.14.69.patch
new file mode 100644
index 000..461b50e
--- /dev/null
+++ b/1068_linux-4.14.69.patch
@@ -0,0 +1,3362 @@
+diff --git a/Makefile b/Makefile
+index 3da579058926..3ecda1d2e23a 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 68
++SUBLEVEL = 69
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/alpha/kernel/osf_sys.c b/arch/alpha/kernel/osf_sys.c
+index a48976dc9bcd..918c3938ef66 100644
+--- a/arch/alpha/kernel/osf_sys.c
 b/arch/alpha/kernel/osf_sys.c
+@@ -530,24 +530,19 @@ SYSCALL_DEFINE4(osf_mount, unsigned long, typenr, const 
char __user *, path,
+ SYSCALL_DEFINE1(osf_utsname, char __user *, name)
+ {
+   int error;
++  char tmp[5 * 32];
+ 
+   down_read(_sem);
+-  error = -EFAULT;
+-  if (copy_to_user(name + 0, utsname()->sysname, 32))
+-  goto out;
+-  if (copy_to_user(name + 32, utsname()->nodename, 32))
+-  goto out;
+-  if (copy_to_user(name + 64, utsname()->release, 32))
+-  goto out;
+-  if (copy_to_user(name + 96, utsname()->version, 32))
+-  goto out;
+-  if (copy_to_user(name + 128, utsname()->machine, 32))
+-  goto out;
++  memcpy(tmp + 0 * 32, utsname()->sysname, 32);
++  memcpy(tmp + 1 * 32, utsname()->nodename, 32);
++  memcpy(tmp + 2 * 32, utsname()->release, 32);
++  memcpy(tmp + 3 * 32, utsname()->version, 32);
++  memcpy(tmp + 4 * 32, utsname()->machine, 32);
++  up_read(_sem);
+ 
+-  error = 0;
+- out:
+-  up_read(_sem);  
+-  return error;
++  if (copy_to_user(name, tmp, sizeof(tmp)))
++  return -EFAULT;
++  return 0;
+ }
+ 
+ SYSCALL_DEFINE0(getpagesize)
+@@ -567,18 +562,21 @@ SYSCALL_DEFINE2(osf_getdomainname, char __user *, name, 
int, namelen)
+ {
+   int len, err = 0;
+   char *kname;
++  char tmp[32];
+ 
+-  if (namelen > 32)
++  if (namelen < 0 || namelen > 32)
+   namelen = 32;
+ 
+   down_read(_sem);
+   kname = utsname()->domainname;
+   len = strnlen(kname, namelen);
+-  if (copy_to_user(name, kname, min(len + 1, namelen)))
+-  err = -EFAULT;
++  len = min(len + 1, namelen);
++  memcpy(tmp, kname, len);
+   up_read(_sem);
+ 
+-  return err;
++  if (copy_to_user(name, tmp, len))
++  return -EFAULT;
++  return 0;
+ }
+ 
+ /*
+@@ -739,13 +737,14 @@ SYSCALL_DEFINE3(osf_sysinfo, int, command, char __user 
*, buf, long, count)
+   };
+   unsigned long offset;
+   const char *res;
+-  long len, err = -EINVAL;
++  long len;
++  char tmp[__NEW_UTS_LEN + 1];
+ 
+   offset = command-1;
+   if (offset >= ARRAY_SIZE(sysinfo_table)) {
+   /* Digital UNIX has a few unpublished interfaces here */
+   printk("sysinfo(%d)", command);
+-  goto out;
++  return -EINVAL;
+   }
+ 
+   down_read(_sem);
+@@ -753,13 +752,11 @@ SYSCALL_DEFINE3(osf_sysinfo, int, command, char __user 
*, buf, long, count)
+   len = strlen(res)+1;
+   if ((unsigned long)len > (unsigned long)count)
+   len = count;
+-  if (copy_to_user(buf, res, len))
+-  err = -EFAULT;
+-  else
+-  err = 0;
++  memcpy(tmp, res, len);
+   up_read(_sem);
+- out:
+-  return err;
++  if (copy_to_user(buf, tmp, len))
++  return -EFAULT;
++  return 0;
+ }
+ 
+ SYSCALL_DEFINE5(osf_getsysinfo, unsigned long, op, void __user *, buffer,
+diff --git a/arch/arm/boot/dts/tegra30-cardhu.dtsi 
b/arch/arm/boot/dts/tegra30-cardhu.dtsi
+index 92a9740c533f..3b1db7b9ec50 100644
+--- a/arch/arm/boot/dts/tegra30-cardhu.dtsi
 b/arch/arm/boot/dts/tegra30-cardhu.dtsi
+@@ -206,6 +206,7 @@
+   #address-cells = <1>;
+   #size-cells = <0>;
+   reg = <0x70>;
++   

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-14 Thread Mike Pagano
commit: 360a0d86a529599f70200ef16fcdccf520e11d76
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Oct 10 11:17:55 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 14 13:48:41 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=360a0d86

Linux patch 4.14.75

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1074_linux-4.14.75.patch | 3396 ++
 2 files changed, 3400 insertions(+)

diff --git a/_README b/_README
index db32f2e..0684007 100644
--- a/_README
+++ b/_README
@@ -339,6 +339,10 @@ Patch:  1073_linux-4.14.74.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.74
 
+Patch:  1074_linux-4.14.75.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.75
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1074_linux-4.14.75.patch b/1074_linux-4.14.75.patch
new file mode 100644
index 000..a13dbf4
--- /dev/null
+++ b/1074_linux-4.14.75.patch
@@ -0,0 +1,3396 @@
+diff --git a/Makefile b/Makefile
+index cc0e65a8d7bf..7fc373c011c0 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 74
++SUBLEVEL = 75
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arc/include/asm/atomic.h b/arch/arc/include/asm/atomic.h
+index 11859287c52a..c98b59ac0612 100644
+--- a/arch/arc/include/asm/atomic.h
 b/arch/arc/include/asm/atomic.h
+@@ -84,7 +84,7 @@ static inline int atomic_fetch_##op(int i, atomic_t *v)  
\
+   "1: llock   %[orig], [%[ctr]]   \n" \
+   "   " #asm_op " %[val], %[orig], %[i]   \n" \
+   "   scond   %[val], [%[ctr]]\n" \
+-  "   \n" \
++  "   bnz 1b  \n" \
+   : [val] "="   (val),  \
+ [orig] "=" (orig)   \
+   : [ctr] "r" (>counter),  \
+diff --git a/arch/arm64/include/asm/jump_label.h 
b/arch/arm64/include/asm/jump_label.h
+index 1b5e0e843c3a..7e2b3e360086 100644
+--- a/arch/arm64/include/asm/jump_label.h
 b/arch/arm64/include/asm/jump_label.h
+@@ -28,7 +28,7 @@
+ 
+ static __always_inline bool arch_static_branch(struct static_key *key, bool 
branch)
+ {
+-  asm goto("1: nop\n\t"
++  asm_volatile_goto("1: nop\n\t"
+".pushsection __jump_table,  \"aw\"\n\t"
+".align 3\n\t"
+".quad 1b, %l[l_yes], %c0\n\t"
+@@ -42,7 +42,7 @@ l_yes:
+ 
+ static __always_inline bool arch_static_branch_jump(struct static_key *key, 
bool branch)
+ {
+-  asm goto("1: b %l[l_yes]\n\t"
++  asm_volatile_goto("1: b %l[l_yes]\n\t"
+".pushsection __jump_table,  \"aw\"\n\t"
+".align 3\n\t"
+".quad 1b, %l[l_yes], %c0\n\t"
+diff --git a/arch/hexagon/include/asm/bitops.h 
b/arch/hexagon/include/asm/bitops.h
+index 5e4a59b3ec1b..2691a1857d20 100644
+--- a/arch/hexagon/include/asm/bitops.h
 b/arch/hexagon/include/asm/bitops.h
+@@ -211,7 +211,7 @@ static inline long ffz(int x)
+  * This is defined the same way as ffs.
+  * Note fls(0) = 0, fls(1) = 1, fls(0x8000) = 32.
+  */
+-static inline long fls(int x)
++static inline int fls(int x)
+ {
+   int r;
+ 
+@@ -232,7 +232,7 @@ static inline long fls(int x)
+  * the libc and compiler builtin ffs routines, therefore
+  * differs in spirit from the above ffz (man ffs).
+  */
+-static inline long ffs(int x)
++static inline int ffs(int x)
+ {
+   int r;
+ 
+diff --git a/arch/hexagon/kernel/dma.c b/arch/hexagon/kernel/dma.c
+index 546792d176a4..564651bded42 100644
+--- a/arch/hexagon/kernel/dma.c
 b/arch/hexagon/kernel/dma.c
+@@ -59,7 +59,7 @@ static void *hexagon_dma_alloc_coherent(struct device *dev, 
size_t size,
+   panic("Can't create %s() memory pool!", __func__);
+   else
+   gen_pool_add(coherent_pool,
+-  pfn_to_virt(max_low_pfn),
++  (unsigned long)pfn_to_virt(max_low_pfn),
+   hexagon_coherent_pool_size, -1);
+   }
+ 
+diff --git a/arch/powerpc/kvm/book3s_64_mmu_hv.c 
b/arch/powerpc/kvm/book3s_64_mmu_hv.c
+index df9b53f40b1e..7ac7e21b137e 100644
+--- a/arch/powerpc/kvm/book3s_64_mmu_hv.c
 b/arch/powerpc/kvm/book3s_64_mmu_hv.c
+@@ -355,7 +355,7 @@ static int kvmppc_mmu_book3s_64_hv_xlate(struct kvm_vcpu 
*vcpu, gva_t eaddr,
+   unsigned long pp, key;
+   unsigned long v, orig_v, gr;
+   __be64 *hptep;
+-  int index;
++  long int index;
+   int virtmode = vcpu->arch.shregs.msr & (data ? 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-14 Thread Mike Pagano
commit: 5a0a86cfcc9e572249c81e50435857ca033ce266
Author: Mike Pagano  gentoo  org>
AuthorDate: Tue Aug  7 18:11:17 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 14 13:48:40 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=5a0a86cf

Linux patch 4.14.61

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |   4 +
 1060_linux-4.14.61.patch | 909 +++
 2 files changed, 913 insertions(+)

diff --git a/_README b/_README
index 685cb5d..64029e1 100644
--- a/_README
+++ b/_README
@@ -283,6 +283,10 @@ Patch:  1059_linux-4.14.60.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.60
 
+Patch:  1060_linux-4.14.61.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.61
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1060_linux-4.14.61.patch b/1060_linux-4.14.61.patch
new file mode 100644
index 000..d7a4083
--- /dev/null
+++ b/1060_linux-4.14.61.patch
@@ -0,0 +1,909 @@
+diff --git a/Makefile b/Makefile
+index 5b48ec630990..4bd65eabd298 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 60
++SUBLEVEL = 61
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/x86/entry/entry_64.S b/arch/x86/entry/entry_64.S
+index f7bfa701219b..0fae7096ae23 100644
+--- a/arch/x86/entry/entry_64.S
 b/arch/x86/entry/entry_64.S
+@@ -933,7 +933,7 @@ ENTRY(\sym)
+ 
+   call\do_sym
+ 
+-  jmp error_exit  /* %ebx: no swapgs flag */
++  jmp error_exit
+   .endif
+ END(\sym)
+ .endm
+@@ -1166,7 +1166,6 @@ END(paranoid_exit)
+ 
+ /*
+  * Save all registers in pt_regs, and switch GS if needed.
+- * Return: EBX=0: came from user mode; EBX=1: otherwise
+  */
+ ENTRY(error_entry)
+   UNWIND_HINT_FUNC
+@@ -1213,7 +1212,6 @@ ENTRY(error_entry)
+* for these here too.
+*/
+ .Lerror_kernelspace:
+-  incl%ebx
+   leaqnative_irq_return_iret(%rip), %rcx
+   cmpq%rcx, RIP+8(%rsp)
+   je  .Lerror_bad_iret
+@@ -1247,28 +1245,20 @@ ENTRY(error_entry)
+ 
+   /*
+* Pretend that the exception came from user mode: set up pt_regs
+-   * as if we faulted immediately after IRET and clear EBX so that
+-   * error_exit knows that we will be returning to user mode.
++   * as if we faulted immediately after IRET.
+*/
+   mov %rsp, %rdi
+   callfixup_bad_iret
+   mov %rax, %rsp
+-  decl%ebx
+   jmp .Lerror_entry_from_usermode_after_swapgs
+ END(error_entry)
+ 
+-
+-/*
+- * On entry, EBX is a "return to kernel mode" flag:
+- *   1: already in kernel mode, don't need SWAPGS
+- *   0: user gsbase is loaded, we need SWAPGS and standard preparation for 
return to usermode
+- */
+ ENTRY(error_exit)
+   UNWIND_HINT_REGS
+   DISABLE_INTERRUPTS(CLBR_ANY)
+   TRACE_IRQS_OFF
+-  testl   %ebx, %ebx
+-  jnz retint_kernel
++  testb   $3, CS(%rsp)
++  jz  retint_kernel
+   jmp retint_user
+ END(error_exit)
+ 
+diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c
+index ebdcc368a2d3..f48a51335538 100644
+--- a/arch/x86/kernel/apic/apic.c
 b/arch/x86/kernel/apic/apic.c
+@@ -580,6 +580,9 @@ static u32 skx_deadline_rev(void)
+   case 0x04: return 0x0214;
+   }
+ 
++  if (boot_cpu_data.x86_stepping > 4)
++  return 0;
++
+   return ~0U;
+ }
+ 
+diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
+index 90747865205d..8d000fde1414 100644
+--- a/arch/x86/kvm/vmx.c
 b/arch/x86/kvm/vmx.c
+@@ -7354,6 +7354,8 @@ static int enter_vmx_operation(struct kvm_vcpu *vcpu)
+HRTIMER_MODE_REL_PINNED);
+   vmx->nested.preemption_timer.function = vmx_preemption_timer_fn;
+ 
++  vmx->nested.vpid02 = allocate_vpid();
++
+   vmx->nested.vmxon = true;
+   return 0;
+ 
+@@ -9802,10 +9804,8 @@ static struct kvm_vcpu *vmx_create_vcpu(struct kvm 
*kvm, unsigned int id)
+   goto free_vmcs;
+   }
+ 
+-  if (nested) {
++  if (nested)
+   nested_vmx_setup_ctls_msrs(vmx);
+-  vmx->nested.vpid02 = allocate_vpid();
+-  }
+ 
+   vmx->nested.posted_intr_nv = -1;
+   vmx->nested.current_vmptr = -1ull;
+@@ -9822,7 +9822,6 @@ static struct kvm_vcpu *vmx_create_vcpu(struct kvm *kvm, 
unsigned int id)
+   return >vcpu;
+ 
+ free_vmcs:
+-  free_vpid(vmx->nested.vpid02);
+   free_loaded_vmcs(vmx->loaded_vmcs);
+ free_msrs:
+   kfree(vmx->guest_msrs);
+diff --git a/drivers/crypto/padlock-aes.c b/drivers/crypto/padlock-aes.c
+index c939f18f70cc..7685f557dcc0 100644
+--- a/drivers/crypto/padlock-aes.c
 b/drivers/crypto/padlock-aes.c
+@@ -266,6 +266,8 @@ static inline void 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-14 Thread Mike Pagano
commit: 275d3587edc6eab2b42c0d2496dfe3f329e850ad
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Aug 16 11:49:25 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 14 13:48:40 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=275d3587

x86/l1tf: Fix build error seen if CONFIG_KVM_INTEL is disabled

Signed-off-by: Mike Pagano  gentoo.org>

 _README|  4 +++
 1705_x86-l1tf-config-kvm-build-error-fix.patch | 40 ++
 2 files changed, 44 insertions(+)

diff --git a/_README b/_README
index 4c5f97e..ada5b82 100644
--- a/_README
+++ b/_README
@@ -307,6 +307,10 @@ Patch:  1700_ia64_fix_ptrace.patch
 From:   https://patchwork.kernel.org/patch/10198159/
 Desc:   ia64: fix ptrace(PTRACE_GETREGS) (unbreaks strace, gdb).
 
+Patch:  1705_x86-l1tf-config-kvm-build-error-fix.patch
+From:   http://www.kernel.org
+Desc:   x86/l1tf: Fix build error seen if CONFIG_KVM_INTEL is disabled
+
 Patch: 2100_bcache-data-corruption-fix-for-bi-partno.patch
 From:   
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=62530ed8b1d07a45dec94d46e521c0c6c2d476e6
 Desc:   bio: ensure __bio_clone_fast copies bi_partno. 

diff --git a/1705_x86-l1tf-config-kvm-build-error-fix.patch 
b/1705_x86-l1tf-config-kvm-build-error-fix.patch
new file mode 100644
index 000..88c2ec6
--- /dev/null
+++ b/1705_x86-l1tf-config-kvm-build-error-fix.patch
@@ -0,0 +1,40 @@
+From 1eb46908b35dfbac0ec1848d4b1e39667e0187e9 Mon Sep 17 00:00:00 2001
+From: Guenter Roeck 
+Date: Wed, 15 Aug 2018 08:38:33 -0700
+Subject: x86/l1tf: Fix build error seen if CONFIG_KVM_INTEL is disabled
+
+From: Guenter Roeck 
+
+commit 1eb46908b35dfbac0ec1848d4b1e39667e0187e9 upstream.
+
+allmodconfig+CONFIG_INTEL_KVM=n results in the following build error.
+
+  ERROR: "l1tf_vmx_mitigation" [arch/x86/kvm/kvm.ko] undefined!
+
+Fixes: 5b76a3cff011 ("KVM: VMX: Tell the nested hypervisor to skip L1D flush 
on vmentry")
+Reported-by: Meelis Roos 
+Cc: Meelis Roos 
+Cc: Paolo Bonzini 
+Cc: Thomas Gleixner 
+Signed-off-by: Guenter Roeck 
+Signed-off-by: Linus Torvalds 
+Signed-off-by: Greg Kroah-Hartman 
+
+---
+ arch/x86/kernel/cpu/bugs.c |3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+--- a/arch/x86/kernel/cpu/bugs.c
 b/arch/x86/kernel/cpu/bugs.c
+@@ -648,10 +648,9 @@ void x86_spec_ctrl_setup_ap(void)
+ enum l1tf_mitigations l1tf_mitigation __ro_after_init = L1TF_MITIGATION_FLUSH;
+ #if IS_ENABLED(CONFIG_KVM_INTEL)
+ EXPORT_SYMBOL_GPL(l1tf_mitigation);
+-
++#endif
+ enum vmx_l1d_flush_state l1tf_vmx_mitigation = VMENTER_L1D_FLUSH_AUTO;
+ EXPORT_SYMBOL_GPL(l1tf_vmx_mitigation);
+-#endif
+ 
+ static void __init l1tf_select_mitigation(void)
+ {



[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-14 Thread Mike Pagano
commit: 9a8b7324400b0c4bd189e664afc783f00fb78809
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Aug 17 19:36:32 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 14 13:48:40 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=9a8b7324

Removal of redundant patch:

x86/l1tf: Fix build error seen if CONFIG_KVM_INTEL is disabled

Signed-off-by: Mike Pagano  gentoo.org>

 _README|  4 ---
 1705_x86-l1tf-config-kvm-build-error-fix.patch | 40 --
 2 files changed, 44 deletions(-)

diff --git a/_README b/_README
index 41f1d75..614d36d 100644
--- a/_README
+++ b/_README
@@ -311,10 +311,6 @@ Patch:  1700_ia64_fix_ptrace.patch
 From:   https://patchwork.kernel.org/patch/10198159/
 Desc:   ia64: fix ptrace(PTRACE_GETREGS) (unbreaks strace, gdb).
 
-Patch:  1705_x86-l1tf-config-kvm-build-error-fix.patch
-From:   http://www.kernel.org
-Desc:   x86/l1tf: Fix build error seen if CONFIG_KVM_INTEL is disabled
-
 Patch: 2100_bcache-data-corruption-fix-for-bi-partno.patch
 From:   
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=62530ed8b1d07a45dec94d46e521c0c6c2d476e6
 Desc:   bio: ensure __bio_clone_fast copies bi_partno. 

diff --git a/1705_x86-l1tf-config-kvm-build-error-fix.patch 
b/1705_x86-l1tf-config-kvm-build-error-fix.patch
deleted file mode 100644
index 88c2ec6..000
--- a/1705_x86-l1tf-config-kvm-build-error-fix.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-From 1eb46908b35dfbac0ec1848d4b1e39667e0187e9 Mon Sep 17 00:00:00 2001
-From: Guenter Roeck 
-Date: Wed, 15 Aug 2018 08:38:33 -0700
-Subject: x86/l1tf: Fix build error seen if CONFIG_KVM_INTEL is disabled
-
-From: Guenter Roeck 
-
-commit 1eb46908b35dfbac0ec1848d4b1e39667e0187e9 upstream.
-
-allmodconfig+CONFIG_INTEL_KVM=n results in the following build error.
-
-  ERROR: "l1tf_vmx_mitigation" [arch/x86/kvm/kvm.ko] undefined!
-
-Fixes: 5b76a3cff011 ("KVM: VMX: Tell the nested hypervisor to skip L1D flush 
on vmentry")
-Reported-by: Meelis Roos 
-Cc: Meelis Roos 
-Cc: Paolo Bonzini 
-Cc: Thomas Gleixner 
-Signed-off-by: Guenter Roeck 
-Signed-off-by: Linus Torvalds 
-Signed-off-by: Greg Kroah-Hartman 
-

- arch/x86/kernel/cpu/bugs.c |3 +--
- 1 file changed, 1 insertion(+), 2 deletions(-)
-
 a/arch/x86/kernel/cpu/bugs.c
-+++ b/arch/x86/kernel/cpu/bugs.c
-@@ -648,10 +648,9 @@ void x86_spec_ctrl_setup_ap(void)
- enum l1tf_mitigations l1tf_mitigation __ro_after_init = L1TF_MITIGATION_FLUSH;
- #if IS_ENABLED(CONFIG_KVM_INTEL)
- EXPORT_SYMBOL_GPL(l1tf_mitigation);
--
-+#endif
- enum vmx_l1d_flush_state l1tf_vmx_mitigation = VMENTER_L1D_FLUSH_AUTO;
- EXPORT_SYMBOL_GPL(l1tf_vmx_mitigation);
--#endif
- 
- static void __init l1tf_select_mitigation(void)
- {



[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-14 Thread Mike Pagano
commit: 74327f5c6aa2d35f97bdf93afced411a37c9a640
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Nov 14 13:32:48 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Nov 14 13:32:48 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=74327f5c

proj/linux-patches: Removal of redundant patch

1800_TCA-OPTIONS-sched-fix.patch

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |  4 
 1800_TCA-OPTIONS-sched-fix.patch | 35 ---
 2 files changed, 39 deletions(-)

diff --git a/_README b/_README
index fd76211..70ae288 100644
--- a/_README
+++ b/_README
@@ -379,10 +379,6 @@ Patch:  1700_ia64_fix_ptrace.patch
 From:   https://patchwork.kernel.org/patch/10198159/
 Desc:   ia64: fix ptrace(PTRACE_GETREGS) (unbreaks strace, gdb).
 
-Patch:  1800_TCA-OPTIONS-sched-fix.patch
-From:   https://git.kernel.org
-Desc:   net: sched: Remove TCA_OPTIONS from policy
-
 Patch: 2100_bcache-data-corruption-fix-for-bi-partno.patch
 From:   
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=62530ed8b1d07a45dec94d46e521c0c6c2d476e6
 Desc:   bio: ensure __bio_clone_fast copies bi_partno. 

diff --git a/1800_TCA-OPTIONS-sched-fix.patch b/1800_TCA-OPTIONS-sched-fix.patch
deleted file mode 100644
index f960fac..000
--- a/1800_TCA-OPTIONS-sched-fix.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-From e72bde6b66299602087c8c2350d36a525e75d06e Mon Sep 17 00:00:00 2001
-From: David Ahern 
-Date: Wed, 24 Oct 2018 08:32:49 -0700
-Subject: net: sched: Remove TCA_OPTIONS from policy
-
-Marco reported an error with hfsc:
-root@Calimero:~# tc qdisc add dev eth0 root handle 1:0 hfsc default 1
-Error: Attribute failed policy validation.
-
-Apparently a few implementations pass TCA_OPTIONS as a binary instead
-of nested attribute, so drop TCA_OPTIONS from the policy.
-
-Fixes: 8b4c3cdd9dd8 ("net: sched: Add policy validation for tc attributes")
-Reported-by: Marco Berizzi 
-Signed-off-by: David Ahern 
-Signed-off-by: David S. Miller 

- net/sched/sch_api.c | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c
-index 022bca98bde6..ca3b0f46de53 100644
 a/net/sched/sch_api.c
-+++ b/net/sched/sch_api.c
-@@ -1320,7 +1320,6 @@ check_loop_fn(struct Qdisc *q, unsigned long cl, struct 
qdisc_walker *w)
- 
- const struct nla_policy rtm_tca_policy[TCA_MAX + 1] = {
-   [TCA_KIND]  = { .type = NLA_STRING },
--  [TCA_OPTIONS]   = { .type = NLA_NESTED },
-   [TCA_RATE]  = { .type = NLA_BINARY,
-   .len = sizeof(struct tc_estimator) },
-   [TCA_STAB]  = { .type = NLA_NESTED },
--- 
-cgit 1.2-0.3.lf.el7
-



[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-10 Thread Mike Pagano
commit: 94d964b804d59f085940e75cde09ce404772ba32
Author: Mike Pagano  gentoo  org>
AuthorDate: Sun Nov 11 01:18:51 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sun Nov 11 01:18:51 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=94d964b8

net: sched: Remove TCA_OPTIONS from policy

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |  4 
 1800_TCA-OPTIONS-sched-fix.patch | 35 +++
 2 files changed, 39 insertions(+)

diff --git a/_README b/_README
index 9993aba..28ef8f2 100644
--- a/_README
+++ b/_README
@@ -375,6 +375,10 @@ Patch:  1700_ia64_fix_ptrace.patch
 From:   https://patchwork.kernel.org/patch/10198159/
 Desc:   ia64: fix ptrace(PTRACE_GETREGS) (unbreaks strace, gdb).
 
+Patch:  1800_TCA-OPTIONS-sched-fix.patch
+From:   https://git.kernel.org
+Desc:   net: sched: Remove TCA_OPTIONS from policy
+
 Patch: 2100_bcache-data-corruption-fix-for-bi-partno.patch
 From:   
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=62530ed8b1d07a45dec94d46e521c0c6c2d476e6
 Desc:   bio: ensure __bio_clone_fast copies bi_partno. 

diff --git a/1800_TCA-OPTIONS-sched-fix.patch b/1800_TCA-OPTIONS-sched-fix.patch
new file mode 100644
index 000..f960fac
--- /dev/null
+++ b/1800_TCA-OPTIONS-sched-fix.patch
@@ -0,0 +1,35 @@
+From e72bde6b66299602087c8c2350d36a525e75d06e Mon Sep 17 00:00:00 2001
+From: David Ahern 
+Date: Wed, 24 Oct 2018 08:32:49 -0700
+Subject: net: sched: Remove TCA_OPTIONS from policy
+
+Marco reported an error with hfsc:
+root@Calimero:~# tc qdisc add dev eth0 root handle 1:0 hfsc default 1
+Error: Attribute failed policy validation.
+
+Apparently a few implementations pass TCA_OPTIONS as a binary instead
+of nested attribute, so drop TCA_OPTIONS from the policy.
+
+Fixes: 8b4c3cdd9dd8 ("net: sched: Add policy validation for tc attributes")
+Reported-by: Marco Berizzi 
+Signed-off-by: David Ahern 
+Signed-off-by: David S. Miller 
+---
+ net/sched/sch_api.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c
+index 022bca98bde6..ca3b0f46de53 100644
+--- a/net/sched/sch_api.c
 b/net/sched/sch_api.c
+@@ -1320,7 +1320,6 @@ check_loop_fn(struct Qdisc *q, unsigned long cl, struct 
qdisc_walker *w)
+ 
+ const struct nla_policy rtm_tca_policy[TCA_MAX + 1] = {
+   [TCA_KIND]  = { .type = NLA_STRING },
+-  [TCA_OPTIONS]   = { .type = NLA_NESTED },
+   [TCA_RATE]  = { .type = NLA_BINARY,
+   .len = sizeof(struct tc_estimator) },
+   [TCA_STAB]  = { .type = NLA_NESTED },
+-- 
+cgit 1.2-0.3.lf.el7
+



[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-11-10 Thread Mike Pagano
commit: 32540b3852037bdc110d07113fea18e6e2c4270a
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Nov 10 21:31:26 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Nov 10 21:31:26 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=32540b38

Linux patch 4.14.80

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1079_linux-4.14.80.patch | 1098 ++
 2 files changed, 1102 insertions(+)

diff --git a/_README b/_README
index 319ee36..9993aba 100644
--- a/_README
+++ b/_README
@@ -359,6 +359,10 @@ Patch:  1078_linux-4.14.79.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.79
 
+Patch:  1079_linux-4.14.80.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.80
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1079_linux-4.14.80.patch b/1079_linux-4.14.80.patch
new file mode 100644
index 000..009344b
--- /dev/null
+++ b/1079_linux-4.14.80.patch
@@ -0,0 +1,1098 @@
+diff --git a/Makefile b/Makefile
+index 57a007bf1181..f4cad5e03561 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 79
++SUBLEVEL = 80
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arm/boot/dts/tegra20.dtsi b/arch/arm/boot/dts/tegra20.dtsi
+index 2780e68a853b..914f59166a99 100644
+--- a/arch/arm/boot/dts/tegra20.dtsi
 b/arch/arm/boot/dts/tegra20.dtsi
+@@ -706,7 +706,7 @@
+   phy_type = "ulpi";
+   clocks = <_car TEGRA20_CLK_USB2>,
+<_car TEGRA20_CLK_PLL_U>,
+-   <_car TEGRA20_CLK_PLL_P_OUT4>;
++   <_car TEGRA20_CLK_CDEV2>;
+   clock-names = "reg", "pll_u", "ulpi-link";
+   resets = <_car 58>, <_car 22>;
+   reset-names = "usb", "utmi-pads";
+diff --git a/arch/x86/include/asm/fpu/internal.h 
b/arch/x86/include/asm/fpu/internal.h
+index a38bf5a1e37a..69dcdf195b61 100644
+--- a/arch/x86/include/asm/fpu/internal.h
 b/arch/x86/include/asm/fpu/internal.h
+@@ -528,7 +528,7 @@ static inline void fpregs_activate(struct fpu *fpu)
+ static inline void
+ switch_fpu_prepare(struct fpu *old_fpu, int cpu)
+ {
+-  if (old_fpu->initialized) {
++  if (static_cpu_has(X86_FEATURE_FPU) && old_fpu->initialized) {
+   if (!copy_fpregs_to_fpstate(old_fpu))
+   old_fpu->last_cpu = -1;
+   else
+diff --git a/arch/x86/include/asm/percpu.h b/arch/x86/include/asm/percpu.h
+index ba3c523aaf16..12aa2bb6bac4 100644
+--- a/arch/x86/include/asm/percpu.h
 b/arch/x86/include/asm/percpu.h
+@@ -185,22 +185,22 @@ do { 
\
+   typeof(var) pfo_ret__;  \
+   switch (sizeof(var)) {  \
+   case 1: \
+-  asm(op "b "__percpu_arg(1)",%0" \
++  asm volatile(op "b "__percpu_arg(1)",%0"\
+   : "=q" (pfo_ret__)  \
+   : "m" (var));   \
+   break;  \
+   case 2: \
+-  asm(op "w "__percpu_arg(1)",%0" \
++  asm volatile(op "w "__percpu_arg(1)",%0"\
+   : "=r" (pfo_ret__)  \
+   : "m" (var));   \
+   break;  \
+   case 4: \
+-  asm(op "l "__percpu_arg(1)",%0" \
++  asm volatile(op "l "__percpu_arg(1)",%0"\
+   : "=r" (pfo_ret__)  \
+   : "m" (var));   \
+   break;  \
+   case 8: \
+-  asm(op "q "__percpu_arg(1)",%0" \
++  asm volatile(op "q "__percpu_arg(1)",%0"\
+   : "=r" (pfo_ret__)  \
+   : "m" (var));   \
+   break;  \
+diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
+index dcb00acb6583..4bc12447a50f 100644
+--- a/arch/x86/kernel/setup.c
 b/arch/x86/kernel/setup.c
+@@ -1287,7 +1287,7 @@ void __init setup_arch(char **cmdline_p)
+   kvm_guest_init();
+ 
+   e820__reserve_resources();
+-  e820__register_nosave_regions(max_low_pfn);
++  e820__register_nosave_regions(max_pfn);
+ 
+   x86_init.resources.reserve_resources();
+ 
+diff --git a/arch/x86/kernel/time.c b/arch/x86/kernel/time.c
+index 49a5c394f3ed..ab0176ae985b 100644
+--- a/arch/x86/kernel/time.c

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-10-20 Thread Mike Pagano
commit: 7442a49df93a1e8c4c0ec5bba450f596ee90a95b
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Oct 20 12:40:43 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Oct 20 12:40:43 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=7442a49d

Linux patch 4.14.78

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1077_linux-4.14.78.patch | 2020 ++
 2 files changed, 2024 insertions(+)

diff --git a/_README b/_README
index 832ddd2..509ffd2 100644
--- a/_README
+++ b/_README
@@ -351,6 +351,10 @@ Patch:  1076_linux-4.14.77.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.77
 
+Patch:  1077_linux-4.14.78.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.78
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1077_linux-4.14.78.patch b/1077_linux-4.14.78.patch
new file mode 100644
index 000..e0b842e
--- /dev/null
+++ b/1077_linux-4.14.78.patch
@@ -0,0 +1,2020 @@
+diff --git a/Makefile b/Makefile
+index 16d1a18496fb..89574ee68d6b 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 77
++SUBLEVEL = 78
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arc/Makefile b/arch/arc/Makefile
+index 6c1b20dd76ad..7c6c97782022 100644
+--- a/arch/arc/Makefile
 b/arch/arc/Makefile
+@@ -6,34 +6,12 @@
+ # published by the Free Software Foundation.
+ #
+ 
+-ifeq ($(CROSS_COMPILE),)
+-ifndef CONFIG_CPU_BIG_ENDIAN
+-CROSS_COMPILE := arc-linux-
+-else
+-CROSS_COMPILE := arceb-linux-
+-endif
+-endif
+-
+ KBUILD_DEFCONFIG := nsim_700_defconfig
+ 
+ cflags-y  += -fno-common -pipe -fno-builtin -mmedium-calls -D__linux__
+ cflags-$(CONFIG_ISA_ARCOMPACT)+= -mA7
+ cflags-$(CONFIG_ISA_ARCV2)+= -mcpu=archs
+ 
+-is_700 = $(shell $(CC) -dM -E - < /dev/null | grep -q "ARC700" && echo 1 || 
echo 0)
+-
+-ifdef CONFIG_ISA_ARCOMPACT
+-ifeq ($(is_700), 0)
+-$(error Toolchain not configured for ARCompact builds)
+-endif
+-endif
+-
+-ifdef CONFIG_ISA_ARCV2
+-ifeq ($(is_700), 1)
+-$(error Toolchain not configured for ARCv2 builds)
+-endif
+-endif
+-
+ ifdef CONFIG_ARC_CURR_IN_REG
+ # For a global register defintion, make sure it gets passed to every file
+ # We had a customer reported bug where some code built in kernel was NOT using
+@@ -87,7 +65,7 @@ ldflags-$(CONFIG_CPU_BIG_ENDIAN) += -EB
+ # --build-id w/o "-marclinux". Default arc-elf32-ld is OK
+ ldflags-$(upto_gcc44) += -marclinux
+ 
+-LIBGCC:= $(shell $(CC) $(cflags-y) --print-libgcc-file-name)
++LIBGCC= $(shell $(CC) $(cflags-y) --print-libgcc-file-name)
+ 
+ # Modules with short calls might break for calls into builtin-kernel
+ KBUILD_CFLAGS_MODULE  += -mlong-calls -mno-millicode
+diff --git a/arch/powerpc/include/asm/code-patching.h 
b/arch/powerpc/include/asm/code-patching.h
+index 2c895e8d07f7..812535f40124 100644
+--- a/arch/powerpc/include/asm/code-patching.h
 b/arch/powerpc/include/asm/code-patching.h
+@@ -31,6 +31,7 @@ unsigned int create_cond_branch(const unsigned int *addr,
+   unsigned long target, int flags);
+ int patch_branch(unsigned int *addr, unsigned long target, int flags);
+ int patch_instruction(unsigned int *addr, unsigned int instr);
++int raw_patch_instruction(unsigned int *addr, unsigned int instr);
+ 
+ int instr_is_relative_branch(unsigned int instr);
+ int instr_is_relative_link_branch(unsigned int instr);
+diff --git a/arch/powerpc/kernel/tm.S b/arch/powerpc/kernel/tm.S
+index 1da12f521cb7..b735b727ed2b 100644
+--- a/arch/powerpc/kernel/tm.S
 b/arch/powerpc/kernel/tm.S
+@@ -167,13 +167,27 @@ _GLOBAL(tm_reclaim)
+   std r1, PACATMSCRATCH(r13)
+   ld  r1, PACAR1(r13)
+ 
+-  /* Store the PPR in r11 and reset to decent value */
+   std r11, GPR11(r1)  /* Temporary stash */
+ 
++  /*
++   * Move the saved user r1 to the kernel stack in case PACATMSCRATCH is
++   * clobbered by an exception once we turn on MSR_RI below.
++   */
++  ld  r11, PACATMSCRATCH(r13)
++  std r11, GPR1(r1)
++
++  /*
++   * Store r13 away so we can free up the scratch SPR for the SLB fault
++   * handler (needed once we start accessing the thread_struct).
++   */
++  GET_SCRATCH0(r11)
++  std r11, GPR13(r1)
++
+   /* Reset MSR RI so we can take SLB faults again */
+   li  r11, MSR_RI
+   mtmsrd  r11, 1
+ 
++  /* Store the PPR in r11 and reset to decent value */
+   mfspr   r11, SPRN_PPR
+   HMT_MEDIUM
+ 
+@@ -198,11 +212,11 @@ _GLOBAL(tm_reclaim)
+   SAVE_GPR(8, r7) /* user r8 */
+   SAVE_GPR(9, r7) /* user r9 */
+   SAVE_GPR(10, r7)

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-10-13 Thread Mike Pagano
commit: d36e3eab84e3ad0fec67bcd7e2a3dc9730cabcb8
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Oct 13 16:33:25 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Oct 13 16:33:25 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=d36e3eab

Linux patch 4.14.76

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1075_linux-4.14.76.patch | 1999 ++
 2 files changed, 2003 insertions(+)

diff --git a/_README b/_README
index 0684007..7d1d7b6 100644
--- a/_README
+++ b/_README
@@ -343,6 +343,10 @@ Patch:  1074_linux-4.14.75.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.75
 
+Patch:  1075_linux-4.14.76.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.76
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1075_linux-4.14.76.patch b/1075_linux-4.14.76.patch
new file mode 100644
index 000..1029509
--- /dev/null
+++ b/1075_linux-4.14.76.patch
@@ -0,0 +1,1999 @@
+diff --git a/Makefile b/Makefile
+index 7fc373c011c0..332dd011b3b9 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 75
++SUBLEVEL = 76
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arc/kernel/process.c b/arch/arc/kernel/process.c
+index 4674541eba3f..8ce6e7235915 100644
+--- a/arch/arc/kernel/process.c
 b/arch/arc/kernel/process.c
+@@ -241,6 +241,26 @@ int copy_thread(unsigned long clone_flags,
+   task_thread_info(current)->thr_ptr;
+   }
+ 
++
++  /*
++   * setup usermode thread pointer #1:
++   * when child is picked by scheduler, __switch_to() uses @c_callee to
++   * populate usermode callee regs: this works (despite being in a kernel
++   * function) since special return path for child @ret_from_fork()
++   * ensures those regs are not clobbered all the way to RTIE to usermode
++   */
++  c_callee->r25 = task_thread_info(p)->thr_ptr;
++
++#ifdef CONFIG_ARC_CURR_IN_REG
++  /*
++   * setup usermode thread pointer #2:
++   * however for this special use of r25 in kernel, __switch_to() sets
++   * r25 for kernel needs and only in the final return path is usermode
++   * r25 setup, from pt_regs->user_r25. So set that up as well
++   */
++  c_regs->user_r25 = c_callee->r25;
++#endif
++
+   return 0;
+ }
+ 
+diff --git a/arch/powerpc/include/asm/setup.h 
b/arch/powerpc/include/asm/setup.h
+index bbcdf929be54..a5e919e34c42 100644
+--- a/arch/powerpc/include/asm/setup.h
 b/arch/powerpc/include/asm/setup.h
+@@ -9,6 +9,7 @@ extern void ppc_printk_progress(char *s, unsigned short hex);
+ 
+ extern unsigned int rtas_data;
+ extern unsigned long long memory_limit;
++extern bool init_mem_is_free;
+ extern unsigned long klimit;
+ extern void *zalloc_maybe_bootmem(size_t size, gfp_t mask);
+ 
+diff --git a/arch/powerpc/lib/code-patching.c 
b/arch/powerpc/lib/code-patching.c
+index 096d4e4d31e6..882c750dc519 100644
+--- a/arch/powerpc/lib/code-patching.c
 b/arch/powerpc/lib/code-patching.c
+@@ -22,20 +22,28 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+-static int __patch_instruction(unsigned int *addr, unsigned int instr)
++static int __patch_instruction(unsigned int *exec_addr, unsigned int instr,
++ unsigned int *patch_addr)
+ {
+   int err;
+ 
+-  __put_user_size(instr, addr, 4, err);
++  __put_user_size(instr, patch_addr, 4, err);
+   if (err)
+   return err;
+ 
+-  asm ("dcbst 0, %0; sync; icbi 0,%0; sync; isync" :: "r" (addr));
++  asm ("dcbst 0, %0; sync; icbi 0,%1; sync; isync" :: "r" (patch_addr),
++  "r" (exec_addr));
+ 
+   return 0;
+ }
+ 
++static int raw_patch_instruction(unsigned int *addr, unsigned int instr)
++{
++  return __patch_instruction(addr, instr, addr);
++}
++
+ #ifdef CONFIG_STRICT_KERNEL_RWX
+ static DEFINE_PER_CPU(struct vm_struct *, text_poke_area);
+ 
+@@ -135,10 +143,10 @@ static inline int unmap_patch_area(unsigned long addr)
+   return 0;
+ }
+ 
+-int patch_instruction(unsigned int *addr, unsigned int instr)
++static int do_patch_instruction(unsigned int *addr, unsigned int instr)
+ {
+   int err;
+-  unsigned int *dest = NULL;
++  unsigned int *patch_addr = NULL;
+   unsigned long flags;
+   unsigned long text_poke_addr;
+   unsigned long kaddr = (unsigned long)addr;
+@@ -149,7 +157,7 @@ int patch_instruction(unsigned int *addr, unsigned int 
instr)
+* to allow patching. We just do the plain old patching
+*/
+   if (!this_cpu_read(*PTRRELOC(_poke_area)))
+-  return __patch_instruction(addr, instr);
++  return raw_patch_instruction(addr, instr);
+ 
+   

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-10-10 Thread Mike Pagano
commit: 539265aec5bd1d75bfe7d36a426bb4c872a0d2e2
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Oct 10 11:17:55 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Oct 10 11:17:55 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=539265ae

Linux patch 4.14.75

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1074_linux-4.14.75.patch | 3396 ++
 2 files changed, 3400 insertions(+)

diff --git a/_README b/_README
index db32f2e..0684007 100644
--- a/_README
+++ b/_README
@@ -339,6 +339,10 @@ Patch:  1073_linux-4.14.74.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.74
 
+Patch:  1074_linux-4.14.75.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.75
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1074_linux-4.14.75.patch b/1074_linux-4.14.75.patch
new file mode 100644
index 000..a13dbf4
--- /dev/null
+++ b/1074_linux-4.14.75.patch
@@ -0,0 +1,3396 @@
+diff --git a/Makefile b/Makefile
+index cc0e65a8d7bf..7fc373c011c0 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 74
++SUBLEVEL = 75
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arc/include/asm/atomic.h b/arch/arc/include/asm/atomic.h
+index 11859287c52a..c98b59ac0612 100644
+--- a/arch/arc/include/asm/atomic.h
 b/arch/arc/include/asm/atomic.h
+@@ -84,7 +84,7 @@ static inline int atomic_fetch_##op(int i, atomic_t *v)  
\
+   "1: llock   %[orig], [%[ctr]]   \n" \
+   "   " #asm_op " %[val], %[orig], %[i]   \n" \
+   "   scond   %[val], [%[ctr]]\n" \
+-  "   \n" \
++  "   bnz 1b  \n" \
+   : [val] "="   (val),  \
+ [orig] "=" (orig)   \
+   : [ctr] "r" (>counter),  \
+diff --git a/arch/arm64/include/asm/jump_label.h 
b/arch/arm64/include/asm/jump_label.h
+index 1b5e0e843c3a..7e2b3e360086 100644
+--- a/arch/arm64/include/asm/jump_label.h
 b/arch/arm64/include/asm/jump_label.h
+@@ -28,7 +28,7 @@
+ 
+ static __always_inline bool arch_static_branch(struct static_key *key, bool 
branch)
+ {
+-  asm goto("1: nop\n\t"
++  asm_volatile_goto("1: nop\n\t"
+".pushsection __jump_table,  \"aw\"\n\t"
+".align 3\n\t"
+".quad 1b, %l[l_yes], %c0\n\t"
+@@ -42,7 +42,7 @@ l_yes:
+ 
+ static __always_inline bool arch_static_branch_jump(struct static_key *key, 
bool branch)
+ {
+-  asm goto("1: b %l[l_yes]\n\t"
++  asm_volatile_goto("1: b %l[l_yes]\n\t"
+".pushsection __jump_table,  \"aw\"\n\t"
+".align 3\n\t"
+".quad 1b, %l[l_yes], %c0\n\t"
+diff --git a/arch/hexagon/include/asm/bitops.h 
b/arch/hexagon/include/asm/bitops.h
+index 5e4a59b3ec1b..2691a1857d20 100644
+--- a/arch/hexagon/include/asm/bitops.h
 b/arch/hexagon/include/asm/bitops.h
+@@ -211,7 +211,7 @@ static inline long ffz(int x)
+  * This is defined the same way as ffs.
+  * Note fls(0) = 0, fls(1) = 1, fls(0x8000) = 32.
+  */
+-static inline long fls(int x)
++static inline int fls(int x)
+ {
+   int r;
+ 
+@@ -232,7 +232,7 @@ static inline long fls(int x)
+  * the libc and compiler builtin ffs routines, therefore
+  * differs in spirit from the above ffz (man ffs).
+  */
+-static inline long ffs(int x)
++static inline int ffs(int x)
+ {
+   int r;
+ 
+diff --git a/arch/hexagon/kernel/dma.c b/arch/hexagon/kernel/dma.c
+index 546792d176a4..564651bded42 100644
+--- a/arch/hexagon/kernel/dma.c
 b/arch/hexagon/kernel/dma.c
+@@ -59,7 +59,7 @@ static void *hexagon_dma_alloc_coherent(struct device *dev, 
size_t size,
+   panic("Can't create %s() memory pool!", __func__);
+   else
+   gen_pool_add(coherent_pool,
+-  pfn_to_virt(max_low_pfn),
++  (unsigned long)pfn_to_virt(max_low_pfn),
+   hexagon_coherent_pool_size, -1);
+   }
+ 
+diff --git a/arch/powerpc/kvm/book3s_64_mmu_hv.c 
b/arch/powerpc/kvm/book3s_64_mmu_hv.c
+index df9b53f40b1e..7ac7e21b137e 100644
+--- a/arch/powerpc/kvm/book3s_64_mmu_hv.c
 b/arch/powerpc/kvm/book3s_64_mmu_hv.c
+@@ -355,7 +355,7 @@ static int kvmppc_mmu_book3s_64_hv_xlate(struct kvm_vcpu 
*vcpu, gva_t eaddr,
+   unsigned long pp, key;
+   unsigned long v, orig_v, gr;
+   __be64 *hptep;
+-  int index;
++  long int index;
+   int virtmode = vcpu->arch.shregs.msr & (data ? 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-09-29 Thread Mike Pagano
commit: 7ecc929baefbf40295eeec0c6de3dda1343a74df
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Sep 29 13:35:19 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Sep 29 13:35:19 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=7ecc929b

Linux patch 4.14.73

Signed-off-by: Mike Pagano  gentoo.org>

 _README  |4 +
 1072_linux-4.14.73.patch | 1830 ++
 2 files changed, 1834 insertions(+)

diff --git a/_README b/_README
index ce833af..08015af 100644
--- a/_README
+++ b/_README
@@ -331,6 +331,10 @@ Patch:  1071_linux-4.14.72.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.72
 
+Patch:  1072_linux-4.14.73.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.73
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1072_linux-4.14.73.patch b/1072_linux-4.14.73.patch
new file mode 100644
index 000..9020dd3
--- /dev/null
+++ b/1072_linux-4.14.73.patch
@@ -0,0 +1,1830 @@
+diff --git a/Makefile b/Makefile
+index 734722bda173..89f30ca964b6 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 72
++SUBLEVEL = 73
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/x86/xen/pmu.c b/arch/x86/xen/pmu.c
+index 7d00d4ad44d4..95997e6c0696 100644
+--- a/arch/x86/xen/pmu.c
 b/arch/x86/xen/pmu.c
+@@ -478,7 +478,7 @@ static void xen_convert_regs(const struct xen_pmu_regs 
*xen_regs,
+ irqreturn_t xen_pmu_irq_handler(int irq, void *dev_id)
+ {
+   int err, ret = IRQ_NONE;
+-  struct pt_regs regs;
++  struct pt_regs regs = {0};
+   const struct xen_pmu_data *xenpmu_data = get_xenpmu_data();
+   uint8_t xenpmu_flags = get_xenpmu_flags();
+ 
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
+index fd435a96481c..e8d9479615c9 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
 b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
+@@ -715,12 +715,14 @@ static int amdgpu_cgs_get_firmware_info(struct 
cgs_device *cgs_device,
+   break;
+   case CHIP_POLARIS10:
+   if (type == CGS_UCODE_ID_SMU) {
+-  if ((adev->pdev->device == 0x67df) &&
+-  ((adev->pdev->revision == 0xe0) ||
+-   (adev->pdev->revision == 0xe3) ||
+-   (adev->pdev->revision == 0xe4) ||
+-   (adev->pdev->revision == 0xe5) ||
+-   (adev->pdev->revision == 0xe7) ||
++  if (((adev->pdev->device == 0x67df) &&
++   ((adev->pdev->revision == 0xe0) ||
++(adev->pdev->revision == 0xe3) ||
++(adev->pdev->revision == 0xe4) ||
++(adev->pdev->revision == 0xe5) ||
++(adev->pdev->revision == 0xe7) ||
++(adev->pdev->revision == 0xef))) 
||
++  ((adev->pdev->device == 0x6fdf) &&
+(adev->pdev->revision == 0xef))) {
+   info->is_kicker = true;
+   strcpy(fw_name, 
"amdgpu/polaris10_k_smc.bin");
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
+index 0f16986ec5bc..4dd68d821353 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
 b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c
+@@ -500,6 +500,7 @@ static const struct pci_device_id pciidlist[] = {
+   {0x1002, 0x67CA, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS10},
+   {0x1002, 0x67CC, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS10},
+   {0x1002, 0x67CF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS10},
++  {0x1002, 0x6FDF, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS10},
+   /* Polaris12 */
+   {0x1002, 0x6980, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS12},
+   {0x1002, 0x6981, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_POLARIS12},
+diff --git a/drivers/gpu/drm/nouveau/nouveau_connector.c 
b/drivers/gpu/drm/nouveau/nouveau_connector.c
+index 430830d63a33..2c6d19683688 100644
+--- a/drivers/gpu/drm/nouveau/nouveau_connector.c
 b/drivers/gpu/drm/nouveau/nouveau_connector.c
+@@ -570,12 +570,16 @@ nouveau_connector_detect(struct drm_connector 
*connector, bool force)
+   nv_connector->edid = NULL;
+   }
+ 
+-  /* Outputs are only polled while runtime active, so acquiring a
+-   * 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-09-15 Thread Mike Pagano
commit: 058a26df642340dd4e261fa7133624380b7bee50
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Sep 15 10:11:50 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Sep 15 10:11:50 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=058a26df

Linux patch 4.14.70

 _README  |4 +
 1069_linux-4.14.70.patch | 3428 ++
 2 files changed, 3432 insertions(+)

diff --git a/_README b/_README
index 2a8e1bb..2e98e70 100644
--- a/_README
+++ b/_README
@@ -319,6 +319,10 @@ Patch:  1068_linux-4.14.69.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.69
 
+Patch:  1069_linux-4.14.70.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.70
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1069_linux-4.14.70.patch b/1069_linux-4.14.70.patch
new file mode 100644
index 000..8091deb
--- /dev/null
+++ b/1069_linux-4.14.70.patch
@@ -0,0 +1,3428 @@
+diff --git a/Makefile b/Makefile
+index 3ecda1d2e23a..aa458afa7fa2 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 69
++SUBLEVEL = 70
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arm/configs/imx_v6_v7_defconfig 
b/arch/arm/configs/imx_v6_v7_defconfig
+index 21ac9f02407e..32acac9ab81a 100644
+--- a/arch/arm/configs/imx_v6_v7_defconfig
 b/arch/arm/configs/imx_v6_v7_defconfig
+@@ -289,7 +289,6 @@ CONFIG_USB_STORAGE=y
+ CONFIG_USB_CHIPIDEA=y
+ CONFIG_USB_CHIPIDEA_UDC=y
+ CONFIG_USB_CHIPIDEA_HOST=y
+-CONFIG_USB_CHIPIDEA_ULPI=y
+ CONFIG_USB_SERIAL=m
+ CONFIG_USB_SERIAL_GENERIC=y
+ CONFIG_USB_SERIAL_FTDI_SIO=m
+@@ -326,7 +325,6 @@ CONFIG_USB_GADGETFS=m
+ CONFIG_USB_FUNCTIONFS=m
+ CONFIG_USB_MASS_STORAGE=m
+ CONFIG_USB_G_SERIAL=m
+-CONFIG_USB_ULPI_BUS=y
+ CONFIG_MMC=y
+ CONFIG_MMC_SDHCI=y
+ CONFIG_MMC_SDHCI_PLTFM=y
+diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
+index a4065966881a..57f0bc4cd9b8 100644
+--- a/arch/arm/mach-rockchip/Kconfig
 b/arch/arm/mach-rockchip/Kconfig
+@@ -18,6 +18,7 @@ config ARCH_ROCKCHIP
+   select ARM_GLOBAL_TIMER
+   select CLKSRC_ARM_GLOBAL_TIMER_SCHED_CLOCK
+   select ZONE_DMA if ARM_LPAE
++  select PM
+   help
+ Support for Rockchip's Cortex-A9 Single-to-Quad-Core-SoCs
+ containing the RK2928, RK30xx and RK31xx series.
+diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
+index 6b54ee8c1262..456d21542250 100644
+--- a/arch/arm64/Kconfig.platforms
 b/arch/arm64/Kconfig.platforms
+@@ -148,6 +148,7 @@ config ARCH_ROCKCHIP
+   select GPIOLIB
+   select PINCTRL
+   select PINCTRL_ROCKCHIP
++  select PM
+   select ROCKCHIP_TIMER
+   help
+ This enables support for the ARMv8 based Rockchip chipsets,
+diff --git a/arch/arm64/include/asm/cache.h b/arch/arm64/include/asm/cache.h
+index ea9bb4e0e9bb..e40f8a2df545 100644
+--- a/arch/arm64/include/asm/cache.h
 b/arch/arm64/include/asm/cache.h
+@@ -20,9 +20,14 @@
+ 
+ #define CTR_L1IP_SHIFT14
+ #define CTR_L1IP_MASK 3
++#define CTR_DMINLINE_SHIFT16
++#define CTR_IMINLINE_SHIFT0
+ #define CTR_CWG_SHIFT 24
+ #define CTR_CWG_MASK  15
+ 
++#define CTR_CACHE_MINLINE_MASK\
++  (0xf << CTR_DMINLINE_SHIFT | 0xf << CTR_IMINLINE_SHIFT)
++
+ #define CTR_L1IP(ctr) (((ctr) >> CTR_L1IP_SHIFT) & CTR_L1IP_MASK)
+ 
+ #define ICACHE_POLICY_VPIPT   0
+diff --git a/arch/arm64/include/asm/cpucaps.h 
b/arch/arm64/include/asm/cpucaps.h
+index 76c0d23ca161..7d6425d426ac 100644
+--- a/arch/arm64/include/asm/cpucaps.h
 b/arch/arm64/include/asm/cpucaps.h
+@@ -44,7 +44,8 @@
+ #define ARM64_HARDEN_BRANCH_PREDICTOR 24
+ #define ARM64_HARDEN_BP_POST_GUEST_EXIT   25
+ #define ARM64_SSBD26
++#define ARM64_MISMATCHED_CACHE_TYPE   27
+ 
+-#define ARM64_NCAPS   27
++#define ARM64_NCAPS   28
+ 
+ #endif /* __ASM_CPUCAPS_H */
+diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c
+index eccdb28b4a39..3d6d7fae45de 100644
+--- a/arch/arm64/kernel/cpu_errata.c
 b/arch/arm64/kernel/cpu_errata.c
+@@ -16,6 +16,8 @@
+  * along with this program.  If not, see .
+  */
+ 
++#include 
++#include 
+ #include 
+ #include 
+ #include 
+@@ -45,12 +47,18 @@ is_kryo_midr(const struct arm64_cpu_capabilities *entry, 
int scope)
+ }
+ 
+ static bool
+-has_mismatched_cache_line_size(const struct arm64_cpu_capabilities *entry,
+-  int scope)
++has_mismatched_cache_type(const struct arm64_cpu_capabilities *entry,
++int scope)
+ {
++  u64 mask = CTR_CACHE_MINLINE_MASK;
++
++  /* Skip matching the min line 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-09-09 Thread Mike Pagano
commit: 47c28eec857bf59e5ffd9d3fc0d1f6daa471aa9b
Author: Mike Pagano  gentoo  org>
AuthorDate: Sun Sep  9 23:28:47 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sun Sep  9 23:28:47 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=47c28eec

Linux patch 4.14.69

 _README  |4 +
 1068_linux-4.14.69.patch | 3362 ++
 2 files changed, 3366 insertions(+)

diff --git a/_README b/_README
index 4fd9ed9..2a8e1bb 100644
--- a/_README
+++ b/_README
@@ -315,6 +315,10 @@ Patch:  1067_linux-4.14.68.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.68
 
+Patch:  1068_linux-4.14.69.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.69
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1068_linux-4.14.69.patch b/1068_linux-4.14.69.patch
new file mode 100644
index 000..461b50e
--- /dev/null
+++ b/1068_linux-4.14.69.patch
@@ -0,0 +1,3362 @@
+diff --git a/Makefile b/Makefile
+index 3da579058926..3ecda1d2e23a 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 68
++SUBLEVEL = 69
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/alpha/kernel/osf_sys.c b/arch/alpha/kernel/osf_sys.c
+index a48976dc9bcd..918c3938ef66 100644
+--- a/arch/alpha/kernel/osf_sys.c
 b/arch/alpha/kernel/osf_sys.c
+@@ -530,24 +530,19 @@ SYSCALL_DEFINE4(osf_mount, unsigned long, typenr, const 
char __user *, path,
+ SYSCALL_DEFINE1(osf_utsname, char __user *, name)
+ {
+   int error;
++  char tmp[5 * 32];
+ 
+   down_read(_sem);
+-  error = -EFAULT;
+-  if (copy_to_user(name + 0, utsname()->sysname, 32))
+-  goto out;
+-  if (copy_to_user(name + 32, utsname()->nodename, 32))
+-  goto out;
+-  if (copy_to_user(name + 64, utsname()->release, 32))
+-  goto out;
+-  if (copy_to_user(name + 96, utsname()->version, 32))
+-  goto out;
+-  if (copy_to_user(name + 128, utsname()->machine, 32))
+-  goto out;
++  memcpy(tmp + 0 * 32, utsname()->sysname, 32);
++  memcpy(tmp + 1 * 32, utsname()->nodename, 32);
++  memcpy(tmp + 2 * 32, utsname()->release, 32);
++  memcpy(tmp + 3 * 32, utsname()->version, 32);
++  memcpy(tmp + 4 * 32, utsname()->machine, 32);
++  up_read(_sem);
+ 
+-  error = 0;
+- out:
+-  up_read(_sem);  
+-  return error;
++  if (copy_to_user(name, tmp, sizeof(tmp)))
++  return -EFAULT;
++  return 0;
+ }
+ 
+ SYSCALL_DEFINE0(getpagesize)
+@@ -567,18 +562,21 @@ SYSCALL_DEFINE2(osf_getdomainname, char __user *, name, 
int, namelen)
+ {
+   int len, err = 0;
+   char *kname;
++  char tmp[32];
+ 
+-  if (namelen > 32)
++  if (namelen < 0 || namelen > 32)
+   namelen = 32;
+ 
+   down_read(_sem);
+   kname = utsname()->domainname;
+   len = strnlen(kname, namelen);
+-  if (copy_to_user(name, kname, min(len + 1, namelen)))
+-  err = -EFAULT;
++  len = min(len + 1, namelen);
++  memcpy(tmp, kname, len);
+   up_read(_sem);
+ 
+-  return err;
++  if (copy_to_user(name, tmp, len))
++  return -EFAULT;
++  return 0;
+ }
+ 
+ /*
+@@ -739,13 +737,14 @@ SYSCALL_DEFINE3(osf_sysinfo, int, command, char __user 
*, buf, long, count)
+   };
+   unsigned long offset;
+   const char *res;
+-  long len, err = -EINVAL;
++  long len;
++  char tmp[__NEW_UTS_LEN + 1];
+ 
+   offset = command-1;
+   if (offset >= ARRAY_SIZE(sysinfo_table)) {
+   /* Digital UNIX has a few unpublished interfaces here */
+   printk("sysinfo(%d)", command);
+-  goto out;
++  return -EINVAL;
+   }
+ 
+   down_read(_sem);
+@@ -753,13 +752,11 @@ SYSCALL_DEFINE3(osf_sysinfo, int, command, char __user 
*, buf, long, count)
+   len = strlen(res)+1;
+   if ((unsigned long)len > (unsigned long)count)
+   len = count;
+-  if (copy_to_user(buf, res, len))
+-  err = -EFAULT;
+-  else
+-  err = 0;
++  memcpy(tmp, res, len);
+   up_read(_sem);
+- out:
+-  return err;
++  if (copy_to_user(buf, tmp, len))
++  return -EFAULT;
++  return 0;
+ }
+ 
+ SYSCALL_DEFINE5(osf_getsysinfo, unsigned long, op, void __user *, buffer,
+diff --git a/arch/arm/boot/dts/tegra30-cardhu.dtsi 
b/arch/arm/boot/dts/tegra30-cardhu.dtsi
+index 92a9740c533f..3b1db7b9ec50 100644
+--- a/arch/arm/boot/dts/tegra30-cardhu.dtsi
 b/arch/arm/boot/dts/tegra30-cardhu.dtsi
+@@ -206,6 +206,7 @@
+   #address-cells = <1>;
+   #size-cells = <0>;
+   reg = <0x70>;
++  reset-gpio = < TEGRA_GPIO(BB, 0) 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-08-22 Thread Alice Ferrazzi
commit: 7ba738f522055d5939de93edab25eec7f8e17456
Author: Alice Ferrazzi  gentoo  org>
AuthorDate: Wed Aug 22 10:01:43 2018 +
Commit: Alice Ferrazzi  gentoo  org>
CommitDate: Wed Aug 22 10:01:43 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=7ba738f5

linux kernel 4.14.65

 _README  |   4 +
 1065_linux-4.14.66.patch | 683 +++
 2 files changed, 687 insertions(+)

diff --git a/_README b/_README
index 1cd1371..352e3ec 100644
--- a/_README
+++ b/_README
@@ -303,6 +303,10 @@ Patch:  1064_linux-4.14.65.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.65
 
+Patch:  1065_linux-4.14.66.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.66
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1065_linux-4.14.66.patch b/1065_linux-4.14.66.patch
new file mode 100644
index 000..149a83c
--- /dev/null
+++ b/1065_linux-4.14.66.patch
@@ -0,0 +1,683 @@
+diff --git a/Makefile b/Makefile
+index 7995690ff1aa..e69d0d091742 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 65
++SUBLEVEL = 66
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c
+index 2ef0ad6a33d6..7a0af16f86f2 100644
+--- a/drivers/acpi/sleep.c
 b/drivers/acpi/sleep.c
+@@ -338,6 +338,14 @@ static const struct dmi_system_id acpisleep_dmi_table[] 
__initconst = {
+   DMI_MATCH(DMI_PRODUCT_NAME, "K54HR"),
+   },
+   },
++  {
++  .callback = init_nvs_save_s3,
++  .ident = "Asus 1025C",
++  .matches = {
++  DMI_MATCH(DMI_SYS_VENDOR, "ASUSTeK COMPUTER INC."),
++  DMI_MATCH(DMI_PRODUCT_NAME, "1025C"),
++  },
++  },
+   /*
+* https://bugzilla.kernel.org/show_bug.cgi?id=189431
+* Lenovo G50-45 is a platform later than 2012, but needs nvs memory
+diff --git a/drivers/isdn/i4l/isdn_common.c b/drivers/isdn/i4l/isdn_common.c
+index 38a5bb764c7b..598724ffde4e 100644
+--- a/drivers/isdn/i4l/isdn_common.c
 b/drivers/isdn/i4l/isdn_common.c
+@@ -1640,13 +1640,7 @@ isdn_ioctl(struct file *file, uint cmd, ulong arg)
+   } else
+   return -EINVAL;
+   case IIOCDBGVAR:
+-  if (arg) {
+-  if (copy_to_user(argp, , sizeof(ulong)))
+-  return -EFAULT;
+-  return 0;
+-  } else
+-  return -EINVAL;
+-  break;
++  return -EINVAL;
+   default:
+   if ((cmd & IIOCDRVCTL) == IIOCDRVCTL)
+   cmd = ((cmd >> _IOC_NRSHIFT) & _IOC_NRMASK) & 
ISDN_DRVIOCTL_MASK;
+diff --git a/drivers/misc/sram.c b/drivers/misc/sram.c
+index fc0415771c00..4dd0d868ff88 100644
+--- a/drivers/misc/sram.c
 b/drivers/misc/sram.c
+@@ -407,13 +407,20 @@ static int sram_probe(struct platform_device *pdev)
+   if (init_func) {
+   ret = init_func();
+   if (ret)
+-  return ret;
++  goto err_disable_clk;
+   }
+ 
+   dev_dbg(sram->dev, "SRAM pool: %zu KiB @ 0x%p\n",
+   gen_pool_size(sram->pool) / 1024, sram->virt_base);
+ 
+   return 0;
++
++err_disable_clk:
++  if (sram->clk)
++  clk_disable_unprepare(sram->clk);
++  sram_free_partitions(sram);
++
++  return ret;
+ }
+ 
+ static int sram_remove(struct platform_device *pdev)
+diff --git a/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c 
b/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c
+index 36fddb199160..f4b3554b0b67 100644
+--- a/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c
 b/drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c
+@@ -752,7 +752,7 @@ static int hw_atl_b0_hw_packet_filter_set(struct aq_hw_s 
*self,
+ 
+   rpfl2promiscuous_mode_en_set(self, IS_FILTER_ENABLED(IFF_PROMISC));
+   rpfl2multicast_flr_en_set(self,
+-IS_FILTER_ENABLED(IFF_MULTICAST), 0);
++IS_FILTER_ENABLED(IFF_ALLMULTI), 0);
+ 
+   rpfl2_accept_all_mc_packets_set(self,
+   IS_FILTER_ENABLED(IFF_ALLMULTI));
+diff --git a/drivers/tty/serial/8250/8250_dw.c 
b/drivers/tty/serial/8250/8250_dw.c
+index 3015789265dd..27c5b2b46b8d 100644
+--- a/drivers/tty/serial/8250/8250_dw.c
 b/drivers/tty/serial/8250/8250_dw.c
+@@ -260,7 +260,7 @@ static void dw8250_set_termios(struct uart_port *p, struct 
ktermios *termios,
+   long rate;
+   int ret;
+ 
+-  if (IS_ERR(d->clk) || !old)
++  if (IS_ERR(d->clk))
+   

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-08-18 Thread Mike Pagano
commit: cb4c478d72b227b7a0dd768caa6cc72f14a72846
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Aug 18 18:12:20 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Aug 18 18:12:20 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=cb4c478d

Linux patch 4.14.65

 _README  |  4 
 1064_linux-4.14.65.patch | 37 +
 2 files changed, 41 insertions(+)

diff --git a/_README b/_README
index 614d36d..1cd1371 100644
--- a/_README
+++ b/_README
@@ -299,6 +299,10 @@ Patch:  1063_linux-4.14.64.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.64
 
+Patch:  1064_linux-4.14.65.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.65
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1064_linux-4.14.65.patch b/1064_linux-4.14.65.patch
new file mode 100644
index 000..305f291
--- /dev/null
+++ b/1064_linux-4.14.65.patch
@@ -0,0 +1,37 @@
+diff --git a/Makefile b/Makefile
+index 025156791e90..7995690ff1aa 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 64
++SUBLEVEL = 65
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/x86/include/asm/pgtable-invert.h 
b/arch/x86/include/asm/pgtable-invert.h
+index 44b1203ece12..a0c1525f1b6f 100644
+--- a/arch/x86/include/asm/pgtable-invert.h
 b/arch/x86/include/asm/pgtable-invert.h
+@@ -4,9 +4,18 @@
+ 
+ #ifndef __ASSEMBLY__
+ 
++/*
++ * A clear pte value is special, and doesn't get inverted.
++ *
++ * Note that even users that only pass a pgprot_t (rather
++ * than a full pte) won't trigger the special zero case,
++ * because even PAGE_NONE has _PAGE_PROTNONE | _PAGE_ACCESSED
++ * set. So the all zero case really is limited to just the
++ * cleared page table entry case.
++ */
+ static inline bool __pte_needs_invert(u64 val)
+ {
+-  return !(val & _PAGE_PRESENT);
++  return val && !(val & _PAGE_PRESENT);
+ }
+ 
+ /* Get a mask to xor with the page table entry to get the correct pfn. */



[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-08-17 Thread Mike Pagano
commit: 4b86d5a2e2a3a350b298b8391a5052ae93c582b7
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Aug 17 19:36:32 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Fri Aug 17 19:36:32 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=4b86d5a2

Removal of redundant patch:

x86/l1tf: Fix build error seen if CONFIG_KVM_INTEL is disabled

 _README|  4 ---
 1705_x86-l1tf-config-kvm-build-error-fix.patch | 40 --
 2 files changed, 44 deletions(-)

diff --git a/_README b/_README
index 41f1d75..614d36d 100644
--- a/_README
+++ b/_README
@@ -311,10 +311,6 @@ Patch:  1700_ia64_fix_ptrace.patch
 From:   https://patchwork.kernel.org/patch/10198159/
 Desc:   ia64: fix ptrace(PTRACE_GETREGS) (unbreaks strace, gdb).
 
-Patch:  1705_x86-l1tf-config-kvm-build-error-fix.patch
-From:   http://www.kernel.org
-Desc:   x86/l1tf: Fix build error seen if CONFIG_KVM_INTEL is disabled
-
 Patch: 2100_bcache-data-corruption-fix-for-bi-partno.patch
 From:   
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=62530ed8b1d07a45dec94d46e521c0c6c2d476e6
 Desc:   bio: ensure __bio_clone_fast copies bi_partno. 

diff --git a/1705_x86-l1tf-config-kvm-build-error-fix.patch 
b/1705_x86-l1tf-config-kvm-build-error-fix.patch
deleted file mode 100644
index 88c2ec6..000
--- a/1705_x86-l1tf-config-kvm-build-error-fix.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-From 1eb46908b35dfbac0ec1848d4b1e39667e0187e9 Mon Sep 17 00:00:00 2001
-From: Guenter Roeck 
-Date: Wed, 15 Aug 2018 08:38:33 -0700
-Subject: x86/l1tf: Fix build error seen if CONFIG_KVM_INTEL is disabled
-
-From: Guenter Roeck 
-
-commit 1eb46908b35dfbac0ec1848d4b1e39667e0187e9 upstream.
-
-allmodconfig+CONFIG_INTEL_KVM=n results in the following build error.
-
-  ERROR: "l1tf_vmx_mitigation" [arch/x86/kvm/kvm.ko] undefined!
-
-Fixes: 5b76a3cff011 ("KVM: VMX: Tell the nested hypervisor to skip L1D flush 
on vmentry")
-Reported-by: Meelis Roos 
-Cc: Meelis Roos 
-Cc: Paolo Bonzini 
-Cc: Thomas Gleixner 
-Signed-off-by: Guenter Roeck 
-Signed-off-by: Linus Torvalds 
-Signed-off-by: Greg Kroah-Hartman 
-

- arch/x86/kernel/cpu/bugs.c |3 +--
- 1 file changed, 1 insertion(+), 2 deletions(-)
-
 a/arch/x86/kernel/cpu/bugs.c
-+++ b/arch/x86/kernel/cpu/bugs.c
-@@ -648,10 +648,9 @@ void x86_spec_ctrl_setup_ap(void)
- enum l1tf_mitigations l1tf_mitigation __ro_after_init = L1TF_MITIGATION_FLUSH;
- #if IS_ENABLED(CONFIG_KVM_INTEL)
- EXPORT_SYMBOL_GPL(l1tf_mitigation);
--
-+#endif
- enum vmx_l1d_flush_state l1tf_vmx_mitigation = VMENTER_L1D_FLUSH_AUTO;
- EXPORT_SYMBOL_GPL(l1tf_vmx_mitigation);
--#endif
- 
- static void __init l1tf_select_mitigation(void)
- {



[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-08-17 Thread Mike Pagano
commit: 22f52f43b9e8d3d1ff09551d42d95d4b81adf987
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Aug 17 19:26:38 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Fri Aug 17 19:26:38 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=22f52f43

Linux patch 4.14.64

 _README  |4 +
 1063_linux-4.14.64.patch | 1527 ++
 2 files changed, 1531 insertions(+)

diff --git a/_README b/_README
index ada5b82..41f1d75 100644
--- a/_README
+++ b/_README
@@ -295,6 +295,10 @@ Patch:  1062_linux-4.14.63.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.63
 
+Patch:  1063_linux-4.14.64.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.64
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1063_linux-4.14.64.patch b/1063_linux-4.14.64.patch
new file mode 100644
index 000..b4a1f5f
--- /dev/null
+++ b/1063_linux-4.14.64.patch
@@ -0,0 +1,1527 @@
+diff --git a/Documentation/process/changes.rst 
b/Documentation/process/changes.rst
+index 560beaef5a7c..73fcdcd52b87 100644
+--- a/Documentation/process/changes.rst
 b/Documentation/process/changes.rst
+@@ -33,7 +33,7 @@ GNU C  3.2  gcc --version
+ GNU make   3.81 make --version
+ binutils   2.20 ld -v
+ util-linux 2.10ofdformat --version
+-module-init-tools  0.9.10   depmod -V
++kmod   13   depmod -V
+ e2fsprogs  1.41.4   e2fsck -V
+ jfsutils   1.1.3fsck.jfs -V
+ reiserfsprogs  3.6.3reiserfsck -V
+@@ -141,12 +141,6 @@ is not build with ``CONFIG_KALLSYMS`` and you have no way 
to rebuild and
+ reproduce the Oops with that option, then you can still decode that Oops
+ with ksymoops.
+ 
+-Module-Init-Tools
+--
+-
+-A new module loader is now in the kernel that requires ``module-init-tools``
+-to use.  It is backward compatible with the 2.4.x series kernels.
+-
+ Mkinitrd
+ 
+ 
+@@ -346,16 +340,17 @@ Util-linux
+ 
+ - 
+ 
++Kmod
++
++
++- 
++- 
++
+ Ksymoops
+ 
+ 
+ - 
+ 
+-Module-Init-Tools
+--
+-
+-- 
+-
+ Mkinitrd
+ 
+ 
+diff --git a/Makefile b/Makefile
+index f3bb9428b3dc..025156791e90 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 63
++SUBLEVEL = 64
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c
+index f6b877d2726d..6ac0d32d60a5 100644
+--- a/arch/arm64/mm/mmu.c
 b/arch/arm64/mm/mmu.c
+@@ -938,12 +938,12 @@ int pmd_clear_huge(pmd_t *pmd)
+   return 1;
+ }
+ 
+-int pud_free_pmd_page(pud_t *pud)
++int pud_free_pmd_page(pud_t *pud, unsigned long addr)
+ {
+   return pud_none(*pud);
+ }
+ 
+-int pmd_free_pte_page(pmd_t *pmd)
++int pmd_free_pte_page(pmd_t *pmd, unsigned long addr)
+ {
+   return pmd_none(*pmd);
+ }
+diff --git a/arch/x86/crypto/sha256-mb/sha256_mb_mgr_flush_avx2.S 
b/arch/x86/crypto/sha256-mb/sha256_mb_mgr_flush_avx2.S
+index 16c4ccb1f154..d2364c55bbde 100644
+--- a/arch/x86/crypto/sha256-mb/sha256_mb_mgr_flush_avx2.S
 b/arch/x86/crypto/sha256-mb/sha256_mb_mgr_flush_avx2.S
+@@ -265,7 +265,7 @@ ENTRY(sha256_mb_mgr_get_comp_job_avx2)
+   vpinsrd $1, _args_digest+1*32(state, idx, 4), %xmm0, %xmm0
+   vpinsrd $2, _args_digest+2*32(state, idx, 4), %xmm0, %xmm0
+   vpinsrd $3, _args_digest+3*32(state, idx, 4), %xmm0, %xmm0
+-  vmovd   _args_digest(state , idx, 4) , %xmm0
++  vmovd   _args_digest+4*32(state, idx, 4), %xmm1
+   vpinsrd $1, _args_digest+5*32(state, idx, 4), %xmm1, %xmm1
+   vpinsrd $2, _args_digest+6*32(state, idx, 4), %xmm1, %xmm1
+   vpinsrd $3, _args_digest+7*32(state, idx, 4), %xmm1, %xmm1
+diff --git a/arch/x86/include/asm/i8259.h b/arch/x86/include/asm/i8259.h
+index 5cdcdbd4d892..89789e8c80f6 100644
+--- a/arch/x86/include/asm/i8259.h
 b/arch/x86/include/asm/i8259.h
+@@ -3,6 +3,7 @@
+ #define _ASM_X86_I8259_H
+ 
+ #include 
++#include 
+ 
+ extern unsigned int cached_irq_mask;
+ 
+diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c
+index edfc64a8a154..d07addb99b71 100644
+--- a/arch/x86/kernel/cpu/bugs.c
 b/arch/x86/kernel/cpu/bugs.c
+@@ -648,10 +648,9 @@ void x86_spec_ctrl_setup_ap(void)
+ enum l1tf_mitigations l1tf_mitigation __ro_after_init = L1TF_MITIGATION_FLUSH;
+ #if IS_ENABLED(CONFIG_KVM_INTEL)
+ 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-08-16 Thread Mike Pagano
commit: 14ee9db400bf9dd5c603f32c96b44f381131b2cb
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Aug 16 11:49:25 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu Aug 16 11:49:25 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=14ee9db4

x86/l1tf: Fix build error seen if CONFIG_KVM_INTEL is disabled

 _README|  4 +++
 1705_x86-l1tf-config-kvm-build-error-fix.patch | 40 ++
 2 files changed, 44 insertions(+)

diff --git a/_README b/_README
index 4c5f97e..ada5b82 100644
--- a/_README
+++ b/_README
@@ -307,6 +307,10 @@ Patch:  1700_ia64_fix_ptrace.patch
 From:   https://patchwork.kernel.org/patch/10198159/
 Desc:   ia64: fix ptrace(PTRACE_GETREGS) (unbreaks strace, gdb).
 
+Patch:  1705_x86-l1tf-config-kvm-build-error-fix.patch
+From:   http://www.kernel.org
+Desc:   x86/l1tf: Fix build error seen if CONFIG_KVM_INTEL is disabled
+
 Patch: 2100_bcache-data-corruption-fix-for-bi-partno.patch
 From:   
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=62530ed8b1d07a45dec94d46e521c0c6c2d476e6
 Desc:   bio: ensure __bio_clone_fast copies bi_partno. 

diff --git a/1705_x86-l1tf-config-kvm-build-error-fix.patch 
b/1705_x86-l1tf-config-kvm-build-error-fix.patch
new file mode 100644
index 000..88c2ec6
--- /dev/null
+++ b/1705_x86-l1tf-config-kvm-build-error-fix.patch
@@ -0,0 +1,40 @@
+From 1eb46908b35dfbac0ec1848d4b1e39667e0187e9 Mon Sep 17 00:00:00 2001
+From: Guenter Roeck 
+Date: Wed, 15 Aug 2018 08:38:33 -0700
+Subject: x86/l1tf: Fix build error seen if CONFIG_KVM_INTEL is disabled
+
+From: Guenter Roeck 
+
+commit 1eb46908b35dfbac0ec1848d4b1e39667e0187e9 upstream.
+
+allmodconfig+CONFIG_INTEL_KVM=n results in the following build error.
+
+  ERROR: "l1tf_vmx_mitigation" [arch/x86/kvm/kvm.ko] undefined!
+
+Fixes: 5b76a3cff011 ("KVM: VMX: Tell the nested hypervisor to skip L1D flush 
on vmentry")
+Reported-by: Meelis Roos 
+Cc: Meelis Roos 
+Cc: Paolo Bonzini 
+Cc: Thomas Gleixner 
+Signed-off-by: Guenter Roeck 
+Signed-off-by: Linus Torvalds 
+Signed-off-by: Greg Kroah-Hartman 
+
+---
+ arch/x86/kernel/cpu/bugs.c |3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+--- a/arch/x86/kernel/cpu/bugs.c
 b/arch/x86/kernel/cpu/bugs.c
+@@ -648,10 +648,9 @@ void x86_spec_ctrl_setup_ap(void)
+ enum l1tf_mitigations l1tf_mitigation __ro_after_init = L1TF_MITIGATION_FLUSH;
+ #if IS_ENABLED(CONFIG_KVM_INTEL)
+ EXPORT_SYMBOL_GPL(l1tf_mitigation);
+-
++#endif
+ enum vmx_l1d_flush_state l1tf_vmx_mitigation = VMENTER_L1D_FLUSH_AUTO;
+ EXPORT_SYMBOL_GPL(l1tf_vmx_mitigation);
+-#endif
+ 
+ static void __init l1tf_select_mitigation(void)
+ {



[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-08-09 Thread Mike Pagano
commit: fa2fadac05034f2158a89cd4dcce856015dcae8c
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Aug  9 10:54:46 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu Aug  9 10:54:46 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=fa2fadac

Linux patch 4.14.62

 _README  |   4 +
 1061_linux-4.14.62.patch | 797 +++
 2 files changed, 801 insertions(+)

diff --git a/_README b/_README
index 64029e1..b530931 100644
--- a/_README
+++ b/_README
@@ -287,6 +287,10 @@ Patch:  1060_linux-4.14.61.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.61
 
+Patch:  1061_linux-4.14.62.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.62
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1061_linux-4.14.62.patch b/1061_linux-4.14.62.patch
new file mode 100644
index 000..a1d7ceb
--- /dev/null
+++ b/1061_linux-4.14.62.patch
@@ -0,0 +1,797 @@
+diff --git a/Makefile b/Makefile
+index 4bd65eabd298..d407ecfdee0b 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 61
++SUBLEVEL = 62
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c
+index f96830ffd9f1..75c6b98585ba 100644
+--- a/drivers/i2c/busses/i2c-imx.c
 b/drivers/i2c/busses/i2c-imx.c
+@@ -376,6 +376,7 @@ static int i2c_imx_dma_xfer(struct imx_i2c_struct *i2c_imx,
+   goto err_desc;
+   }
+ 
++  reinit_completion(>cmd_complete);
+   txdesc->callback = i2c_imx_dma_callback;
+   txdesc->callback_param = i2c_imx;
+   if (dma_submit_error(dmaengine_submit(txdesc))) {
+@@ -619,7 +620,6 @@ static int i2c_imx_dma_write(struct imx_i2c_struct 
*i2c_imx,
+* The first byte must be transmitted by the CPU.
+*/
+   imx_i2c_write_reg(msgs->addr << 1, i2c_imx, IMX_I2C_I2DR);
+-  reinit_completion(_imx->dma->cmd_complete);
+   time_left = wait_for_completion_timeout(
+   _imx->dma->cmd_complete,
+   msecs_to_jiffies(DMA_TIMEOUT));
+@@ -678,7 +678,6 @@ static int i2c_imx_dma_read(struct imx_i2c_struct *i2c_imx,
+   if (result)
+   return result;
+ 
+-  reinit_completion(_imx->dma->cmd_complete);
+   time_left = wait_for_completion_timeout(
+   _imx->dma->cmd_complete,
+   msecs_to_jiffies(DMA_TIMEOUT));
+diff --git a/drivers/idle/intel_idle.c b/drivers/idle/intel_idle.c
+index f0b06b14e782..16249b0953ff 100644
+--- a/drivers/idle/intel_idle.c
 b/drivers/idle/intel_idle.c
+@@ -1061,7 +1061,7 @@ static const struct idle_cpu idle_cpu_dnv = {
+ };
+ 
+ #define ICPU(model, cpu) \
+-  { X86_VENDOR_INTEL, 6, model, X86_FEATURE_MWAIT, (unsigned long) }
++  { X86_VENDOR_INTEL, 6, model, X86_FEATURE_ANY, (unsigned long) }
+ 
+ static const struct x86_cpu_id intel_idle_ids[] __initconst = {
+   ICPU(INTEL_FAM6_NEHALEM_EP, idle_cpu_nehalem),
+@@ -1125,6 +1125,11 @@ static int __init intel_idle_probe(void)
+   return -ENODEV;
+   }
+ 
++  if (!boot_cpu_has(X86_FEATURE_MWAIT)) {
++  pr_debug("Please enable MWAIT in BIOS SETUP\n");
++  return -ENODEV;
++  }
++
+   if (boot_cpu_data.cpuid_level < CPUID_MWAIT_LEAF)
+   return -ENODEV;
+ 
+diff --git a/drivers/nvme/host/pci.c b/drivers/nvme/host/pci.c
+index f5643d107cc6..a67d03716510 100644
+--- a/drivers/nvme/host/pci.c
 b/drivers/nvme/host/pci.c
+@@ -77,7 +77,7 @@ static void nvme_dev_disable(struct nvme_dev *dev, bool 
shutdown);
+  * Represents an NVM Express device.  Each nvme_dev is a PCI function.
+  */
+ struct nvme_dev {
+-  struct nvme_queue **queues;
++  struct nvme_queue *queues;
+   struct blk_mq_tag_set tagset;
+   struct blk_mq_tag_set admin_tagset;
+   u32 __iomem *dbs;
+@@ -348,7 +348,7 @@ static int nvme_admin_init_hctx(struct blk_mq_hw_ctx 
*hctx, void *data,
+   unsigned int hctx_idx)
+ {
+   struct nvme_dev *dev = data;
+-  struct nvme_queue *nvmeq = dev->queues[0];
++  struct nvme_queue *nvmeq = >queues[0];
+ 
+   WARN_ON(hctx_idx != 0);
+   WARN_ON(dev->admin_tagset.tags[0] != hctx->tags);
+@@ -370,7 +370,7 @@ static int nvme_init_hctx(struct blk_mq_hw_ctx *hctx, void 
*data,
+ unsigned int hctx_idx)
+ {
+   struct nvme_dev *dev = data;
+-  struct nvme_queue *nvmeq = dev->queues[hctx_idx + 1];
++  struct nvme_queue *nvmeq = >queues[hctx_idx + 1];
+ 
+   if (!nvmeq->tags)
+   nvmeq->tags = >tagset.tags[hctx_idx];
+@@ -386,7 +386,7 @@ static int nvme_init_request(struct blk_mq_tag_set *set, 
struct request *req,
+   struct 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-08-07 Thread Mike Pagano
commit: 49e86e327e9f0a9d5fb487785c6c6b72cf18b5bb
Author: Mike Pagano  gentoo  org>
AuthorDate: Tue Aug  7 18:11:17 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Tue Aug  7 18:11:17 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=49e86e32

Linux patch 4.14.61

 _README  |   4 +
 1060_linux-4.14.61.patch | 909 +++
 2 files changed, 913 insertions(+)

diff --git a/_README b/_README
index 685cb5d..64029e1 100644
--- a/_README
+++ b/_README
@@ -283,6 +283,10 @@ Patch:  1059_linux-4.14.60.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.60
 
+Patch:  1060_linux-4.14.61.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.61
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1060_linux-4.14.61.patch b/1060_linux-4.14.61.patch
new file mode 100644
index 000..d7a4083
--- /dev/null
+++ b/1060_linux-4.14.61.patch
@@ -0,0 +1,909 @@
+diff --git a/Makefile b/Makefile
+index 5b48ec630990..4bd65eabd298 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 60
++SUBLEVEL = 61
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/x86/entry/entry_64.S b/arch/x86/entry/entry_64.S
+index f7bfa701219b..0fae7096ae23 100644
+--- a/arch/x86/entry/entry_64.S
 b/arch/x86/entry/entry_64.S
+@@ -933,7 +933,7 @@ ENTRY(\sym)
+ 
+   call\do_sym
+ 
+-  jmp error_exit  /* %ebx: no swapgs flag */
++  jmp error_exit
+   .endif
+ END(\sym)
+ .endm
+@@ -1166,7 +1166,6 @@ END(paranoid_exit)
+ 
+ /*
+  * Save all registers in pt_regs, and switch GS if needed.
+- * Return: EBX=0: came from user mode; EBX=1: otherwise
+  */
+ ENTRY(error_entry)
+   UNWIND_HINT_FUNC
+@@ -1213,7 +1212,6 @@ ENTRY(error_entry)
+* for these here too.
+*/
+ .Lerror_kernelspace:
+-  incl%ebx
+   leaqnative_irq_return_iret(%rip), %rcx
+   cmpq%rcx, RIP+8(%rsp)
+   je  .Lerror_bad_iret
+@@ -1247,28 +1245,20 @@ ENTRY(error_entry)
+ 
+   /*
+* Pretend that the exception came from user mode: set up pt_regs
+-   * as if we faulted immediately after IRET and clear EBX so that
+-   * error_exit knows that we will be returning to user mode.
++   * as if we faulted immediately after IRET.
+*/
+   mov %rsp, %rdi
+   callfixup_bad_iret
+   mov %rax, %rsp
+-  decl%ebx
+   jmp .Lerror_entry_from_usermode_after_swapgs
+ END(error_entry)
+ 
+-
+-/*
+- * On entry, EBX is a "return to kernel mode" flag:
+- *   1: already in kernel mode, don't need SWAPGS
+- *   0: user gsbase is loaded, we need SWAPGS and standard preparation for 
return to usermode
+- */
+ ENTRY(error_exit)
+   UNWIND_HINT_REGS
+   DISABLE_INTERRUPTS(CLBR_ANY)
+   TRACE_IRQS_OFF
+-  testl   %ebx, %ebx
+-  jnz retint_kernel
++  testb   $3, CS(%rsp)
++  jz  retint_kernel
+   jmp retint_user
+ END(error_exit)
+ 
+diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c
+index ebdcc368a2d3..f48a51335538 100644
+--- a/arch/x86/kernel/apic/apic.c
 b/arch/x86/kernel/apic/apic.c
+@@ -580,6 +580,9 @@ static u32 skx_deadline_rev(void)
+   case 0x04: return 0x0214;
+   }
+ 
++  if (boot_cpu_data.x86_stepping > 4)
++  return 0;
++
+   return ~0U;
+ }
+ 
+diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
+index 90747865205d..8d000fde1414 100644
+--- a/arch/x86/kvm/vmx.c
 b/arch/x86/kvm/vmx.c
+@@ -7354,6 +7354,8 @@ static int enter_vmx_operation(struct kvm_vcpu *vcpu)
+HRTIMER_MODE_REL_PINNED);
+   vmx->nested.preemption_timer.function = vmx_preemption_timer_fn;
+ 
++  vmx->nested.vpid02 = allocate_vpid();
++
+   vmx->nested.vmxon = true;
+   return 0;
+ 
+@@ -9802,10 +9804,8 @@ static struct kvm_vcpu *vmx_create_vcpu(struct kvm 
*kvm, unsigned int id)
+   goto free_vmcs;
+   }
+ 
+-  if (nested) {
++  if (nested)
+   nested_vmx_setup_ctls_msrs(vmx);
+-  vmx->nested.vpid02 = allocate_vpid();
+-  }
+ 
+   vmx->nested.posted_intr_nv = -1;
+   vmx->nested.current_vmptr = -1ull;
+@@ -9822,7 +9822,6 @@ static struct kvm_vcpu *vmx_create_vcpu(struct kvm *kvm, 
unsigned int id)
+   return >vcpu;
+ 
+ free_vmcs:
+-  free_vpid(vmx->nested.vpid02);
+   free_loaded_vmcs(vmx->loaded_vmcs);
+ free_msrs:
+   kfree(vmx->guest_msrs);
+diff --git a/drivers/crypto/padlock-aes.c b/drivers/crypto/padlock-aes.c
+index c939f18f70cc..7685f557dcc0 100644
+--- a/drivers/crypto/padlock-aes.c
 b/drivers/crypto/padlock-aes.c
+@@ -266,6 +266,8 @@ static inline void padlock_xcrypt_ecb(const u8 *input, u8 
*output, void *key,

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-07-28 Thread Mike Pagano
commit: 921209b50bed8224e6851746ec54a689edec3123
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Jul 28 10:39:35 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Jul 28 10:39:35 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=921209b5

Linux patch 4.14.59

 _README  |4 +
 1058_linux-4.14.59.patch | 2213 ++
 2 files changed, 2217 insertions(+)

diff --git a/_README b/_README
index 7e760df..7ca7e18 100644
--- a/_README
+++ b/_README
@@ -275,6 +275,10 @@ Patch:  1057_linux-4.14.58.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.58
 
+Patch:  1058_linux-4.14.59.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.59
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1058_linux-4.14.59.patch b/1058_linux-4.14.59.patch
new file mode 100644
index 000..d6b2600
--- /dev/null
+++ b/1058_linux-4.14.59.patch
@@ -0,0 +1,2213 @@
+diff --git a/Makefile b/Makefile
+index ffc9b4e3867e..81b0e99dce80 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 58
++SUBLEVEL = 59
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+@@ -642,6 +642,7 @@ KBUILD_CFLAGS  += $(call 
cc-disable-warning,frame-address,)
+ KBUILD_CFLAGS += $(call cc-disable-warning, format-truncation)
+ KBUILD_CFLAGS += $(call cc-disable-warning, format-overflow)
+ KBUILD_CFLAGS += $(call cc-disable-warning, int-in-bool-context)
++KBUILD_CFLAGS += $(call cc-disable-warning, attribute-alias)
+ 
+ ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
+ KBUILD_CFLAGS += $(call cc-option,-Oz,-Os)
+diff --git a/arch/mips/ath79/common.c b/arch/mips/ath79/common.c
+index 10a405d593df..c782b10ddf50 100644
+--- a/arch/mips/ath79/common.c
 b/arch/mips/ath79/common.c
+@@ -58,7 +58,7 @@ EXPORT_SYMBOL_GPL(ath79_ddr_ctrl_init);
+ 
+ void ath79_ddr_wb_flush(u32 reg)
+ {
+-  void __iomem *flush_reg = ath79_ddr_wb_flush_base + reg;
++  void __iomem *flush_reg = ath79_ddr_wb_flush_base + (reg * 4);
+ 
+   /* Flush the DDR write buffer. */
+   __raw_writel(0x1, flush_reg);
+diff --git a/arch/mips/pci/pci.c b/arch/mips/pci/pci.c
+index 9632436d74d7..c2e94cf5ecda 100644
+--- a/arch/mips/pci/pci.c
 b/arch/mips/pci/pci.c
+@@ -54,5 +54,5 @@ void pci_resource_to_user(const struct pci_dev *dev, int bar,
+   phys_addr_t size = resource_size(rsrc);
+ 
+   *start = fixup_bigphys_addr(rsrc->start, size);
+-  *end = rsrc->start + size;
++  *end = rsrc->start + size - 1;
+ }
+diff --git a/arch/powerpc/include/asm/mmu_context.h 
b/arch/powerpc/include/asm/mmu_context.h
+index 44fdf4786638..6f67ff5a5267 100644
+--- a/arch/powerpc/include/asm/mmu_context.h
 b/arch/powerpc/include/asm/mmu_context.h
+@@ -35,9 +35,9 @@ extern struct mm_iommu_table_group_mem_t *mm_iommu_lookup_rm(
+ extern struct mm_iommu_table_group_mem_t *mm_iommu_find(struct mm_struct *mm,
+   unsigned long ua, unsigned long entries);
+ extern long mm_iommu_ua_to_hpa(struct mm_iommu_table_group_mem_t *mem,
+-  unsigned long ua, unsigned long *hpa);
++  unsigned long ua, unsigned int pageshift, unsigned long *hpa);
+ extern long mm_iommu_ua_to_hpa_rm(struct mm_iommu_table_group_mem_t *mem,
+-  unsigned long ua, unsigned long *hpa);
++  unsigned long ua, unsigned int pageshift, unsigned long *hpa);
+ extern long mm_iommu_mapped_inc(struct mm_iommu_table_group_mem_t *mem);
+ extern void mm_iommu_mapped_dec(struct mm_iommu_table_group_mem_t *mem);
+ #endif
+diff --git a/arch/powerpc/kvm/book3s_64_vio.c 
b/arch/powerpc/kvm/book3s_64_vio.c
+index 4dffa611376d..e14cec6bc339 100644
+--- a/arch/powerpc/kvm/book3s_64_vio.c
 b/arch/powerpc/kvm/book3s_64_vio.c
+@@ -433,7 +433,7 @@ long kvmppc_tce_iommu_map(struct kvm *kvm, struct 
iommu_table *tbl,
+   /* This only handles v2 IOMMU type, v1 is handled via ioctl() */
+   return H_TOO_HARD;
+ 
+-  if (WARN_ON_ONCE(mm_iommu_ua_to_hpa(mem, ua, )))
++  if (WARN_ON_ONCE(mm_iommu_ua_to_hpa(mem, ua, tbl->it_page_shift, )))
+   return H_HARDWARE;
+ 
+   if (mm_iommu_mapped_inc(mem))
+diff --git a/arch/powerpc/kvm/book3s_64_vio_hv.c 
b/arch/powerpc/kvm/book3s_64_vio_hv.c
+index c32e9bfe75b1..648cf6c01348 100644
+--- a/arch/powerpc/kvm/book3s_64_vio_hv.c
 b/arch/powerpc/kvm/book3s_64_vio_hv.c
+@@ -262,7 +262,8 @@ static long kvmppc_rm_tce_iommu_map(struct kvm *kvm, 
struct iommu_table *tbl,
+   if (!mem)
+   return H_TOO_HARD;
+ 
+-  if (WARN_ON_ONCE_RM(mm_iommu_ua_to_hpa_rm(mem, ua, )))
++  if (WARN_ON_ONCE_RM(mm_iommu_ua_to_hpa_rm(mem, ua, tbl->it_page_shift,
++  )))
+   return H_HARDWARE;
+ 
+   pua = (void *) vmalloc_to_phys(pua);
+@@ -431,7 +432,8 @@ long 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-07-25 Thread Mike Pagano
commit: 76e8d94b9affef2279cd7db6939eaf09a1aac056
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Jul 25 10:27:17 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Jul 25 10:27:17 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=76e8d94b

Linux patch 4.14.58

 _README  |4 +
 1057_linux-4.14.58.patch | 1431 ++
 2 files changed, 1435 insertions(+)

diff --git a/_README b/_README
index d3e06d1..7e760df 100644
--- a/_README
+++ b/_README
@@ -271,6 +271,10 @@ Patch:  1056_linux-4.14.57.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.57
 
+Patch:  1057_linux-4.14.58.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.58
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1057_linux-4.14.58.patch b/1057_linux-4.14.58.patch
new file mode 100644
index 000..ba096a0
--- /dev/null
+++ b/1057_linux-4.14.58.patch
@@ -0,0 +1,1431 @@
+diff --git a/Makefile b/Makefile
+index a44d6b2adb76..ffc9b4e3867e 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 57
++SUBLEVEL = 58
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/alpha/kernel/osf_sys.c b/arch/alpha/kernel/osf_sys.c
+index 75a5c35a2067..a48976dc9bcd 100644
+--- a/arch/alpha/kernel/osf_sys.c
 b/arch/alpha/kernel/osf_sys.c
+@@ -1183,13 +1183,10 @@ SYSCALL_DEFINE2(osf_getrusage, int, who, struct 
rusage32 __user *, ru)
+ SYSCALL_DEFINE4(osf_wait4, pid_t, pid, int __user *, ustatus, int, options,
+   struct rusage32 __user *, ur)
+ {
+-  unsigned int status = 0;
+   struct rusage r;
+-  long err = kernel_wait4(pid, , options, );
++  long err = kernel_wait4(pid, ustatus, options, );
+   if (err <= 0)
+   return err;
+-  if (put_user(status, ustatus))
+-  return -EFAULT;
+   if (!ur)
+   return err;
+   if (put_tv32(>ru_utime, _utime))
+diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig
+index 4383313b064a..5c8caf85c350 100644
+--- a/arch/arc/Kconfig
 b/arch/arc/Kconfig
+@@ -408,7 +408,7 @@ config ARC_HAS_DIV_REM
+ 
+ config ARC_HAS_ACCL_REGS
+   bool "Reg Pair ACCL:ACCH (FPU and/or MPY > 6)"
+-  default n
++  default y
+   help
+ Depending on the configuration, CPU can contain accumulator reg-pair
+ (also referred to as r58:r59). These can also be used by gcc as GPR so
+diff --git a/arch/arc/configs/axs101_defconfig 
b/arch/arc/configs/axs101_defconfig
+index ec7c849a5c8e..a8242362e551 100644
+--- a/arch/arc/configs/axs101_defconfig
 b/arch/arc/configs/axs101_defconfig
+@@ -11,7 +11,6 @@ CONFIG_NAMESPACES=y
+ # CONFIG_UTS_NS is not set
+ # CONFIG_PID_NS is not set
+ CONFIG_BLK_DEV_INITRD=y
+-CONFIG_INITRAMFS_SOURCE="../arc_initramfs/"
+ CONFIG_EMBEDDED=y
+ CONFIG_PERF_EVENTS=y
+ # CONFIG_VM_EVENT_COUNTERS is not set
+diff --git a/arch/arc/configs/axs103_defconfig 
b/arch/arc/configs/axs103_defconfig
+index 63d3cf69e0b0..ef3c31cd7737 100644
+--- a/arch/arc/configs/axs103_defconfig
 b/arch/arc/configs/axs103_defconfig
+@@ -11,7 +11,6 @@ CONFIG_NAMESPACES=y
+ # CONFIG_UTS_NS is not set
+ # CONFIG_PID_NS is not set
+ CONFIG_BLK_DEV_INITRD=y
+-CONFIG_INITRAMFS_SOURCE="../../arc_initramfs_hs/"
+ CONFIG_EMBEDDED=y
+ CONFIG_PERF_EVENTS=y
+ # CONFIG_VM_EVENT_COUNTERS is not set
+diff --git a/arch/arc/configs/axs103_smp_defconfig 
b/arch/arc/configs/axs103_smp_defconfig
+index f613ecac14a7..1757ac9cecbc 100644
+--- a/arch/arc/configs/axs103_smp_defconfig
 b/arch/arc/configs/axs103_smp_defconfig
+@@ -11,7 +11,6 @@ CONFIG_NAMESPACES=y
+ # CONFIG_UTS_NS is not set
+ # CONFIG_PID_NS is not set
+ CONFIG_BLK_DEV_INITRD=y
+-CONFIG_INITRAMFS_SOURCE="../../arc_initramfs_hs/"
+ CONFIG_EMBEDDED=y
+ CONFIG_PERF_EVENTS=y
+ # CONFIG_VM_EVENT_COUNTERS is not set
+diff --git a/arch/arc/configs/haps_hs_defconfig 
b/arch/arc/configs/haps_hs_defconfig
+index db04ea4dd2d9..aa8240a92b60 100644
+--- a/arch/arc/configs/haps_hs_defconfig
 b/arch/arc/configs/haps_hs_defconfig
+@@ -11,7 +11,6 @@ CONFIG_NAMESPACES=y
+ # CONFIG_UTS_NS is not set
+ # CONFIG_PID_NS is not set
+ CONFIG_BLK_DEV_INITRD=y
+-CONFIG_INITRAMFS_SOURCE="../../arc_initramfs_hs/"
+ CONFIG_EXPERT=y
+ CONFIG_PERF_EVENTS=y
+ # CONFIG_COMPAT_BRK is not set
+diff --git a/arch/arc/configs/haps_hs_smp_defconfig 
b/arch/arc/configs/haps_hs_smp_defconfig
+index 3507be2af6fe..bc5a24ea6cf7 100644
+--- a/arch/arc/configs/haps_hs_smp_defconfig
 b/arch/arc/configs/haps_hs_smp_defconfig
+@@ -11,7 +11,6 @@ CONFIG_NAMESPACES=y
+ # CONFIG_UTS_NS is not set
+ # CONFIG_PID_NS is not set
+ CONFIG_BLK_DEV_INITRD=y
+-CONFIG_INITRAMFS_SOURCE="../../arc_initramfs_hs/"
+ CONFIG_EMBEDDED=y
+ CONFIG_PERF_EVENTS=y
+ # CONFIG_VM_EVENT_COUNTERS is not set
+diff --git 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-07-12 Thread Alice Ferrazzi
commit: 32f66598fb88f44b4784c0d5aa7bfda90389e1ef
Author: Alice Ferrazzi  gentoo  org>
AuthorDate: Thu Jul 12 16:13:06 2018 +
Commit: Alice Ferrazzi  gentoo  org>
CommitDate: Thu Jul 12 16:13:06 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=32f66598

linux kernel 4.14.55

 _README  |4 +
 1054_linux-4.14.55.patch | 2167 ++
 2 files changed, 2171 insertions(+)

diff --git a/_README b/_README
index 6908240..f834399 100644
--- a/_README
+++ b/_README
@@ -259,6 +259,10 @@ Patch:  1053_linux-4.14.54.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.54
 
+Patch:  1054_linux-4.14.55.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.55
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1054_linux-4.14.55.patch b/1054_linux-4.14.55.patch
new file mode 100644
index 000..360661a
--- /dev/null
+++ b/1054_linux-4.14.55.patch
@@ -0,0 +1,2167 @@
+diff --git a/Makefile b/Makefile
+index de0955d8dfa3..0700feaaa6cf 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 54
++SUBLEVEL = 55
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/s390/kernel/entry.S b/arch/s390/kernel/entry.S
+index be20b1f73384..e928c2af6a10 100644
+--- a/arch/s390/kernel/entry.S
 b/arch/s390/kernel/entry.S
+@@ -1244,7 +1244,7 @@ cleanup_critical:
+   jl  0f
+   clg %r9,BASED(.Lcleanup_table+104)  # .Lload_fpu_regs_end
+   jl  .Lcleanup_load_fpu_regs
+-0:BR_EX   %r14
++0:BR_EX   %r14,%r11
+ 
+   .align  8
+ .Lcleanup_table:
+@@ -1280,7 +1280,7 @@ cleanup_critical:
+   ni  __SIE_PROG0C+3(%r9),0xfe# no longer in SIE
+   lctlg   %c1,%c1,__LC_USER_ASCE  # load primary asce
+   larl%r9,sie_exit# skip forward to sie_exit
+-  BR_EX   %r14
++  BR_EX   %r14,%r11
+ #endif
+ 
+ .Lcleanup_system_call:
+diff --git a/block/blk-lib.c b/block/blk-lib.c
+index 63fb971d6574..2bc544ce3d2e 100644
+--- a/block/blk-lib.c
 b/block/blk-lib.c
+@@ -275,6 +275,40 @@ static unsigned int 
__blkdev_sectors_to_bio_pages(sector_t nr_sects)
+   return min(pages, (sector_t)BIO_MAX_PAGES);
+ }
+ 
++static int __blkdev_issue_zero_pages(struct block_device *bdev,
++  sector_t sector, sector_t nr_sects, gfp_t gfp_mask,
++  struct bio **biop)
++{
++  struct request_queue *q = bdev_get_queue(bdev);
++  struct bio *bio = *biop;
++  int bi_size = 0;
++  unsigned int sz;
++
++  if (!q)
++  return -ENXIO;
++
++  while (nr_sects != 0) {
++  bio = next_bio(bio, __blkdev_sectors_to_bio_pages(nr_sects),
++ gfp_mask);
++  bio->bi_iter.bi_sector = sector;
++  bio_set_dev(bio, bdev);
++  bio_set_op_attrs(bio, REQ_OP_WRITE, 0);
++
++  while (nr_sects != 0) {
++  sz = min((sector_t) PAGE_SIZE, nr_sects << 9);
++  bi_size = bio_add_page(bio, ZERO_PAGE(0), sz, 0);
++  nr_sects -= bi_size >> 9;
++  sector += bi_size >> 9;
++  if (bi_size < sz)
++  break;
++  }
++  cond_resched();
++  }
++
++  *biop = bio;
++  return 0;
++}
++
+ /**
+  * __blkdev_issue_zeroout - generate number of zero filed write bios
+  * @bdev: blockdev to issue
+@@ -288,12 +322,6 @@ static unsigned int 
__blkdev_sectors_to_bio_pages(sector_t nr_sects)
+  *  Zero-fill a block range, either using hardware offload or by explicitly
+  *  writing zeroes to the device.
+  *
+- *  Note that this function may fail with -EOPNOTSUPP if the driver signals
+- *  zeroing offload support, but the device fails to process the command (for
+- *  some devices there is no non-destructive way to verify whether this
+- *  operation is actually supported).  In this case the caller should call
+- *  retry the call to blkdev_issue_zeroout() and the fallback path will be 
used.
+- *
+  *  If a device is using logical block provisioning, the underlying space will
+  *  not be released if %flags contains BLKDEV_ZERO_NOUNMAP.
+  *
+@@ -305,9 +333,6 @@ int __blkdev_issue_zeroout(struct block_device *bdev, 
sector_t sector,
+   unsigned flags)
+ {
+   int ret;
+-  int bi_size = 0;
+-  struct bio *bio = *biop;
+-  unsigned int sz;
+   sector_t bs_mask;
+ 
+   bs_mask = (bdev_logical_block_size(bdev) >> 9) - 1;
+@@ -317,30 +342,10 @@ int __blkdev_issue_zeroout(struct block_device *bdev, 
sector_t sector,
+   ret = __blkdev_issue_write_zeroes(bdev, sector, nr_sects, gfp_mask,
+   biop, flags);
+   if (ret != -EOPNOTSUPP || (flags & 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-07-09 Thread Alice Ferrazzi
commit: 2593a285bdea0026b7eb3ce538e1be91c502d104
Author: Alice Ferrazzi  gentoo  org>
AuthorDate: Mon Jul  9 15:07:11 2018 +
Commit: Alice Ferrazzi  gentoo  org>
CommitDate: Mon Jul  9 15:07:11 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=2593a285

linux kernel 4.14.54

 _README  |4 +
 1053_linux-4.14.54.patch | 2835 ++
 2 files changed, 2839 insertions(+)

diff --git a/_README b/_README
index de8ec39..6908240 100644
--- a/_README
+++ b/_README
@@ -255,6 +255,10 @@ Patch:  1052_linux-4.14.53.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.53
 
+Patch:  1053_linux-4.14.54.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.54
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1053_linux-4.14.54.patch b/1053_linux-4.14.54.patch
new file mode 100644
index 000..ee2b8c4
--- /dev/null
+++ b/1053_linux-4.14.54.patch
@@ -0,0 +1,2835 @@
+diff --git a/Documentation/devicetree/bindings/net/dsa/b53.txt 
b/Documentation/devicetree/bindings/net/dsa/b53.txt
+index 8acf51a4dfa8..47a6a7fe0b86 100644
+--- a/Documentation/devicetree/bindings/net/dsa/b53.txt
 b/Documentation/devicetree/bindings/net/dsa/b53.txt
+@@ -10,6 +10,7 @@ Required properties:
+   "brcm,bcm53128"
+   "brcm,bcm5365"
+   "brcm,bcm5395"
++  "brcm,bcm5389"
+   "brcm,bcm5397"
+   "brcm,bcm5398"
+ 
+diff --git a/Makefile b/Makefile
+index fb66998408f4..de0955d8dfa3 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 53
++SUBLEVEL = 54
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arm/boot/dts/imx6q.dtsi b/arch/arm/boot/dts/imx6q.dtsi
+index 90a741732f60..4747ede61acd 100644
+--- a/arch/arm/boot/dts/imx6q.dtsi
 b/arch/arm/boot/dts/imx6q.dtsi
+@@ -96,7 +96,7 @@
+   clocks = < IMX6Q_CLK_ECSPI5>,
+< IMX6Q_CLK_ECSPI5>;
+   clock-names = "ipg", "per";
+-  dmas = < 11 7 1>, < 12 7 2>;
++  dmas = < 11 8 1>, < 12 8 2>;
+   dma-names = "rx", "tx";
+   status = "disabled";
+   };
+diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
+index db78d353bab1..191e86c62037 100644
+--- a/drivers/acpi/osl.c
 b/drivers/acpi/osl.c
+@@ -45,6 +45,8 @@
+ #include 
+ #include 
+ 
++#include "acpica/accommon.h"
++#include "acpica/acnamesp.h"
+ #include "internal.h"
+ 
+ #define _COMPONENTACPI_OS_SERVICES
+@@ -1477,6 +1479,76 @@ int acpi_check_region(resource_size_t start, 
resource_size_t n,
+ }
+ EXPORT_SYMBOL(acpi_check_region);
+ 
++static acpi_status acpi_deactivate_mem_region(acpi_handle handle, u32 level,
++void *_res, void **return_value)
++{
++  struct acpi_mem_space_context **mem_ctx;
++  union acpi_operand_object *handler_obj;
++  union acpi_operand_object *region_obj2;
++  union acpi_operand_object *region_obj;
++  struct resource *res = _res;
++  acpi_status status;
++
++  region_obj = acpi_ns_get_attached_object(handle);
++  if (!region_obj)
++  return AE_OK;
++
++  handler_obj = region_obj->region.handler;
++  if (!handler_obj)
++  return AE_OK;
++
++  if (region_obj->region.space_id != ACPI_ADR_SPACE_SYSTEM_MEMORY)
++  return AE_OK;
++
++  if (!(region_obj->region.flags & AOPOBJ_SETUP_COMPLETE))
++  return AE_OK;
++
++  region_obj2 = acpi_ns_get_secondary_object(region_obj);
++  if (!region_obj2)
++  return AE_OK;
++
++  mem_ctx = (void *)_obj2->extra.region_context;
++
++  if (!(mem_ctx[0]->address >= res->start &&
++mem_ctx[0]->address < res->end))
++  return AE_OK;
++
++  status = handler_obj->address_space.setup(region_obj,
++ACPI_REGION_DEACTIVATE,
++NULL, (void **)mem_ctx);
++  if (ACPI_SUCCESS(status))
++  region_obj->region.flags &= ~(AOPOBJ_SETUP_COMPLETE);
++
++  return status;
++}
++
++/**
++ * acpi_release_memory - Release any mappings done to a memory region
++ * @handle: Handle to namespace node
++ * @res: Memory resource
++ * @level: A level that terminates the search
++ *
++ * Walks through @handle and unmaps all SystemMemory Operation Regions that
++ * overlap with @res and that have already been activated (mapped).
++ *
++ * This is a helper that allows drivers to place special requirements on 
memory
++ * region that may overlap with operation regions, 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-06-26 Thread Alice Ferrazzi
commit: 020afff5dabcb5a040d3a9b9647e8c756b97b1b1
Author: Alice Ferrazzi  gentoo  org>
AuthorDate: Tue Jun 26 16:26:46 2018 +
Commit: Alice Ferrazzi  gentoo  org>
CommitDate: Tue Jun 26 16:26:46 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=020afff5

linux kernel 4.14.52

 _README  |4 +
 1051_linux-4.14.52.patch | 1921 ++
 2 files changed, 1925 insertions(+)

diff --git a/_README b/_README
index f22887e..87d7638 100644
--- a/_README
+++ b/_README
@@ -247,6 +247,10 @@ Patch:  1050_linux-4.14.51.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.51
 
+Patch:  1051_linux-4.14.52.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.52
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1051_linux-4.14.52.patch b/1051_linux-4.14.52.patch
new file mode 100644
index 000..a5b3f53
--- /dev/null
+++ b/1051_linux-4.14.52.patch
@@ -0,0 +1,1921 @@
+diff --git a/Makefile b/Makefile
+index a33376204c17..e2e4009bbfed 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 51
++SUBLEVEL = 52
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/x86/kernel/cpu/intel_rdt.c b/arch/x86/kernel/cpu/intel_rdt.c
+index 18dd8f22e353..665d0f6cd62f 100644
+--- a/arch/x86/kernel/cpu/intel_rdt.c
 b/arch/x86/kernel/cpu/intel_rdt.c
+@@ -773,6 +773,8 @@ static __init void rdt_quirks(void)
+   case INTEL_FAM6_SKYLAKE_X:
+   if (boot_cpu_data.x86_stepping <= 4)
+   set_rdt_options("!cmt,!mbmtotal,!mbmlocal,!l3cat");
++  else
++  set_rdt_options("!l3cat");
+   }
+ }
+ 
+diff --git a/arch/x86/kernel/cpu/mcheck/mce-inject.c 
b/arch/x86/kernel/cpu/mcheck/mce-inject.c
+index 231ad23b24a9..8fec687b3e44 100644
+--- a/arch/x86/kernel/cpu/mcheck/mce-inject.c
 b/arch/x86/kernel/cpu/mcheck/mce-inject.c
+@@ -48,7 +48,7 @@ static struct dentry *dfs_inj;
+ 
+ static u8 n_banks;
+ 
+-#define MAX_FLAG_OPT_SIZE 3
++#define MAX_FLAG_OPT_SIZE 4
+ #define NBCFG 0x44
+ 
+ enum injection_type {
+diff --git a/block/blk-mq.c b/block/blk-mq.c
+index 74c35513ada5..49979c095f31 100644
+--- a/block/blk-mq.c
 b/block/blk-mq.c
+@@ -2252,7 +2252,6 @@ static void blk_mq_del_queue_tag_set(struct 
request_queue *q)
+ 
+   mutex_lock(>tag_list_lock);
+   list_del_rcu(>tag_set_list);
+-  INIT_LIST_HEAD(>tag_set_list);
+   if (list_is_singular(>tag_list)) {
+   /* just transitioned to unshared */
+   set->flags &= ~BLK_MQ_F_TAG_SHARED;
+@@ -2260,8 +2259,8 @@ static void blk_mq_del_queue_tag_set(struct 
request_queue *q)
+   blk_mq_update_tag_set_depth(set, false);
+   }
+   mutex_unlock(>tag_list_lock);
+-
+   synchronize_rcu();
++  INIT_LIST_HEAD(>tag_set_list);
+ }
+ 
+ static void blk_mq_add_queue_tag_set(struct blk_mq_tag_set *set,
+diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
+index 71008dbabe98..cad2530a5b52 100644
+--- a/drivers/ata/libata-core.c
 b/drivers/ata/libata-core.c
+@@ -4543,9 +4543,6 @@ static const struct ata_blacklist_entry 
ata_device_blacklist [] = {
+   ATA_HORKAGE_ZERO_AFTER_TRIM |
+   ATA_HORKAGE_NOLPM, },
+ 
+-  /* Sandisk devices which are known to not handle LPM well */
+-  { "SanDisk SD7UB3Q*G1001",  NULL,   ATA_HORKAGE_NOLPM, },
+-
+   /* devices that don't properly handle queued TRIM commands */
+   { "Micron_M500IT_*","MU01", ATA_HORKAGE_NO_NCQ_TRIM |
+   ATA_HORKAGE_ZERO_AFTER_TRIM, },
+diff --git a/drivers/ata/libata-zpodd.c b/drivers/ata/libata-zpodd.c
+index de4ddd0e8550..b3ed8f9953a8 100644
+--- a/drivers/ata/libata-zpodd.c
 b/drivers/ata/libata-zpodd.c
+@@ -35,7 +35,7 @@ struct zpodd {
+ static int eject_tray(struct ata_device *dev)
+ {
+   struct ata_taskfile tf;
+-  static const char cdb[] = {  GPCMD_START_STOP_UNIT,
++  static const char cdb[ATAPI_CDB_LEN] = {  GPCMD_START_STOP_UNIT,
+   0, 0, 0,
+   0x02, /* LoEj */
+   0, 0, 0, 0, 0, 0, 0,
+diff --git a/drivers/base/core.c b/drivers/base/core.c
+index c8501cdb95f4..a359934ffd85 100644
+--- a/drivers/base/core.c
 b/drivers/base/core.c
+@@ -1461,7 +1461,7 @@ class_dir_create_and_add(struct class *class, struct 
kobject *parent_kobj)
+ 
+   dir = kzalloc(sizeof(*dir), GFP_KERNEL);
+   if (!dir)
+-  return NULL;
++  return ERR_PTR(-ENOMEM);
+ 
+   dir->class = class;
+   kobject_init(>kobj, _dir_ktype);
+@@ -1471,7 +1471,7 @@ class_dir_create_and_add(struct class *class, struct 
kobject 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-06-16 Thread Mike Pagano
commit: 9c57ca5d0424a78cad8d60a6e43d45d6580c391a
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Jun 16 15:43:18 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Jun 16 15:43:44 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=9c57ca5d

Linux patch 4.14.50

 _README  |4 +
 1049_linux-4.14.50.patch | 2447 ++
 2 files changed, 2451 insertions(+)

diff --git a/_README b/_README
index 4c28456..8aa1ac2 100644
--- a/_README
+++ b/_README
@@ -239,6 +239,10 @@ Patch:  1048_linux-4.14.49.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.49
 
+Patch:  1049_linux-4.14.50.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.50
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1049_linux-4.14.50.patch b/1049_linux-4.14.50.patch
new file mode 100644
index 000..e5b653e
--- /dev/null
+++ b/1049_linux-4.14.50.patch
@@ -0,0 +1,2447 @@
+diff --git a/Makefile b/Makefile
+index 480ae7ef755c..84374c5ba60e 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 49
++SUBLEVEL = 50
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/x86/include/asm/kvm_emulate.h 
b/arch/x86/include/asm/kvm_emulate.h
+index ee23a43386a2..8493303d8b2e 100644
+--- a/arch/x86/include/asm/kvm_emulate.h
 b/arch/x86/include/asm/kvm_emulate.h
+@@ -107,11 +107,12 @@ struct x86_emulate_ops {
+*  @addr:  [IN ] Linear address from which to read.
+*  @val:   [OUT] Value read from memory, zero-extended to 'u_long'.
+*  @bytes: [IN ] Number of bytes to read from memory.
++   *  @system:[IN ] Whether the access is forced to be at CPL0.
+*/
+   int (*read_std)(struct x86_emulate_ctxt *ctxt,
+   unsigned long addr, void *val,
+   unsigned int bytes,
+-  struct x86_exception *fault);
++  struct x86_exception *fault, bool system);
+ 
+   /*
+* read_phys: Read bytes of standard (non-emulated/special) memory.
+@@ -129,10 +130,11 @@ struct x86_emulate_ops {
+*  @addr:  [IN ] Linear address to which to write.
+*  @val:   [OUT] Value write to memory, zero-extended to 'u_long'.
+*  @bytes: [IN ] Number of bytes to write to memory.
++   *  @system:[IN ] Whether the access is forced to be at CPL0.
+*/
+   int (*write_std)(struct x86_emulate_ctxt *ctxt,
+unsigned long addr, void *val, unsigned int bytes,
+-   struct x86_exception *fault);
++   struct x86_exception *fault, bool system);
+   /*
+* fetch: Read bytes of standard (non-emulated/special) memory.
+*Used for instruction fetch.
+diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
+index fab073b19528..5f758568fc44 100644
+--- a/arch/x86/kvm/emulate.c
 b/arch/x86/kvm/emulate.c
+@@ -811,6 +811,19 @@ static inline int jmp_rel(struct x86_emulate_ctxt *ctxt, 
int rel)
+   return assign_eip_near(ctxt, ctxt->_eip + rel);
+ }
+ 
++static int linear_read_system(struct x86_emulate_ctxt *ctxt, ulong linear,
++void *data, unsigned size)
++{
++  return ctxt->ops->read_std(ctxt, linear, data, size, >exception, 
true);
++}
++
++static int linear_write_system(struct x86_emulate_ctxt *ctxt,
++ ulong linear, void *data,
++ unsigned int size)
++{
++  return ctxt->ops->write_std(ctxt, linear, data, size, >exception, 
true);
++}
++
+ static int segmented_read_std(struct x86_emulate_ctxt *ctxt,
+ struct segmented_address addr,
+ void *data,
+@@ -822,7 +835,7 @@ static int segmented_read_std(struct x86_emulate_ctxt 
*ctxt,
+   rc = linearize(ctxt, addr, size, false, );
+   if (rc != X86EMUL_CONTINUE)
+   return rc;
+-  return ctxt->ops->read_std(ctxt, linear, data, size, >exception);
++  return ctxt->ops->read_std(ctxt, linear, data, size, >exception, 
false);
+ }
+ 
+ static int segmented_write_std(struct x86_emulate_ctxt *ctxt,
+@@ -836,7 +849,7 @@ static int segmented_write_std(struct x86_emulate_ctxt 
*ctxt,
+   rc = linearize(ctxt, addr, size, true, );
+   if (rc != X86EMUL_CONTINUE)
+   return rc;
+-  return ctxt->ops->write_std(ctxt, linear, data, size, >exception);
++  return ctxt->ops->write_std(ctxt, linear, data, size, >exception, 
false);
+ }
+ 
+ /*
+@@ -1509,8 +1522,7 @@ static int read_interrupt_descriptor(struct 
x86_emulate_ctxt *ctxt,
+   return emulate_gp(ctxt, index << 3 | 0x2);
+ 
+   addr = dt.address + index * 8;
+-  return ctxt->ops->read_std(ctxt, addr, desc, sizeof 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-06-11 Thread Mike Pagano
commit: 3035cefd0c0580095edc4a0b27514ec83d648a2e
Author: Mike Pagano  gentoo  org>
AuthorDate: Mon Jun 11 21:46:35 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Mon Jun 11 21:46:35 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=3035cefd

Linux patch 4.14.49

 _README  |4 +
 1048_linux-4.14.49.patch | 1356 ++
 2 files changed, 1360 insertions(+)

diff --git a/_README b/_README
index 023e213..4c28456 100644
--- a/_README
+++ b/_README
@@ -235,6 +235,10 @@ Patch:  1047_linux-4.14.48.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.48
 
+Patch:  1048_linux-4.14.49.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.49
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1048_linux-4.14.49.patch b/1048_linux-4.14.49.patch
new file mode 100644
index 000..4f8e7ec
--- /dev/null
+++ b/1048_linux-4.14.49.patch
@@ -0,0 +1,1356 @@
+diff --git a/Documentation/networking/netdev-FAQ.txt 
b/Documentation/networking/netdev-FAQ.txt
+index cfc66ea72329..a365656e4873 100644
+--- a/Documentation/networking/netdev-FAQ.txt
 b/Documentation/networking/netdev-FAQ.txt
+@@ -176,6 +176,15 @@ A: No.  See above answer.  In short, if you think it 
really belongs in
+dash marker line as described in 
Documentation/process/submitting-patches.rst to
+temporarily embed that information into the patch that you send.
+ 
++Q: Are all networking bug fixes backported to all stable releases?
++
++A: Due to capacity, Dave could only take care of the backports for the last
++   2 stable releases. For earlier stable releases, each stable branch 
maintainer
++   is supposed to take care of them. If you find any patch is missing from an
++   earlier stable branch, please notify sta...@vger.kernel.org with either a
++   commit ID or a formal patch backported, and CC Dave and other relevant
++   networking developers.
++
+ Q: Someone said that the comment style and coding convention is different
+for the networking content.  Is this true?
+ 
+diff --git a/Makefile b/Makefile
+index 7a246f1ce44e..480ae7ef755c 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 48
++SUBLEVEL = 49
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/drivers/gpu/drm/drm_file.c b/drivers/gpu/drm/drm_file.c
+index b3c6e997ccdb..03244b3c985d 100644
+--- a/drivers/gpu/drm/drm_file.c
 b/drivers/gpu/drm/drm_file.c
+@@ -212,6 +212,7 @@ static int drm_open_helper(struct file *filp, struct 
drm_minor *minor)
+   return -ENOMEM;
+ 
+   filp->private_data = priv;
++  filp->f_mode |= FMODE_UNSIGNED_OFFSET;
+   priv->filp = filp;
+   priv->pid = get_pid(task_pid(current));
+   priv->minor = minor;
+diff --git a/drivers/isdn/hardware/eicon/diva.c 
b/drivers/isdn/hardware/eicon/diva.c
+index 944a7f338099..1b25d8bc153a 100644
+--- a/drivers/isdn/hardware/eicon/diva.c
 b/drivers/isdn/hardware/eicon/diva.c
+@@ -388,10 +388,10 @@ void divasa_xdi_driver_unload(void)
+ **  Receive and process command from user mode utility
+ */
+ void *diva_xdi_open_adapter(void *os_handle, const void __user *src,
+-  int length,
++  int length, void *mptr,
+   divas_xdi_copy_from_user_fn_t cp_fn)
+ {
+-  diva_xdi_um_cfg_cmd_t msg;
++  diva_xdi_um_cfg_cmd_t *msg = (diva_xdi_um_cfg_cmd_t *)mptr;
+   diva_os_xdi_adapter_t *a = NULL;
+   diva_os_spin_lock_magic_t old_irql;
+   struct list_head *tmp;
+@@ -401,21 +401,21 @@ void *diva_xdi_open_adapter(void *os_handle, const void 
__user *src,
+length, sizeof(diva_xdi_um_cfg_cmd_t)))
+   return NULL;
+   }
+-  if ((*cp_fn) (os_handle, , src, sizeof(msg)) <= 0) {
++  if ((*cp_fn) (os_handle, msg, src, sizeof(*msg)) <= 0) {
+   DBG_ERR(("A: A(?) open, write error"))
+   return NULL;
+   }
+   diva_os_enter_spin_lock(_lock, _irql, "open_adapter");
+   list_for_each(tmp, _queue) {
+   a = list_entry(tmp, diva_os_xdi_adapter_t, link);
+-  if (a->controller == (int)msg.adapter)
++  if (a->controller == (int)msg->adapter)
+   break;
+   a = NULL;
+   }
+   diva_os_leave_spin_lock(_lock, _irql, "open_adapter");
+ 
+   if (!a) {
+-  DBG_ERR(("A: A(%d) open, adapter not found", msg.adapter))
++  DBG_ERR(("A: A(%d) open, adapter not found", msg->adapter))
+   }
+ 
+   return (a);
+@@ -437,8 +437,10 @@ void diva_xdi_close_adapter(void *adapter, void 
*os_handle)
+ 
+ int
+ diva_xdi_write(void *adapter, void *os_handle, const void __user *src,
+- int 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-06-08 Thread Mike Pagano
commit: a904e6d4cb14b629f5b248b8c62625f5c0ca0e6b
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Jun  8 23:48:17 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Fri Jun  8 23:48:17 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=a904e6d4

Update of cpu optimization patch for gcc

 _README|   2 +-
 ...able-additional-cpu-optimizations-for-gcc.patch | 129 -
 2 files changed, 73 insertions(+), 58 deletions(-)

diff --git a/_README b/_README
index 8190d0f..023e213 100644
--- a/_README
+++ b/_README
@@ -285,4 +285,4 @@ Desc:   Add Gentoo Linux support config settings and 
defaults.
 
 Patch:  5010_enable-additional-cpu-optimizations-for-gcc.patch
 From:   https://github.com/graysky2/kernel_gcc_patch/
-Desc:   Kernel patch enables gcc >= v4.9 optimizations for additional CPUs.
+Desc:   Kernel patch enables gcc >= v4.13 optimizations for additional CPUs.

diff --git a/5010_enable-additional-cpu-optimizations-for-gcc.patch 
b/5010_enable-additional-cpu-optimizations-for-gcc.patch
index c68d072..a8aa759 100644
--- a/5010_enable-additional-cpu-optimizations-for-gcc.patch
+++ b/5010_enable-additional-cpu-optimizations-for-gcc.patch
@@ -1,5 +1,5 @@
 WARNING
-This patch works with gcc versions 4.9+ and with kernel version 3.15+ and 
should
+This patch works with gcc versions 4.9+ and with kernel version 4.13+ and 
should
 NOT be applied when compiling on older versions of gcc due to key name changes
 of the march flags introduced with the version 4.9 release of gcc.[1]
 
@@ -29,7 +29,8 @@ The expanded microarchitectures include:
 * Intel 3rd Gen Core i3/i5/i7 (Ivybridge)
 * Intel 4th Gen Core i3/i5/i7 (Haswell)
 * Intel 5th Gen Core i3/i5/i7 (Broadwell)
-* Intel 6th Gen Core i3/i5.i7 (Skylake)
+* Intel 6th Gen Core i3/i5/i7 (Skylake)
+* Intel 6th Gen Core i7/i9 (Skylake X)
 
 It also offers to compile passing the 'native' option which, "selects the CPU
 to generate code for at compilation time by determining the processor type of
@@ -43,7 +44,7 @@ changes. Note that upstream is using the deprecated 
'match=atom' flags when I
 believe it should use the newer 'march=bonnell' flag for atom processors.[2]
 
 It is not recommended to compile on Atom-CPUs with the 'native' option.[4] The
-recommendation is use to the 'atom' option instead.
+recommendation is to use the 'atom' option instead.
 
 BENEFITS
 Small but real speed increases are measurable using a make endpoint comparing
@@ -53,7 +54,7 @@ See the following experimental evidence supporting this 
statement:
 https://github.com/graysky2/kernel_gcc_patch
 
 REQUIREMENTS
-linux version >=3.15
+linux version >=4.13
 gcc version >=4.9
 
 ACKNOWLEDGMENTS
@@ -66,9 +67,9 @@ REFERENCES
 4. https://github.com/graysky2/kernel_gcc_patch/issues/15
 5. http://www.linuxforge.net/docs/linux/linux-gcc.php
 
 a/arch/x86/include/asm/module.h2017-08-02 11:41:47.442200461 -0400
-+++ b/arch/x86/include/asm/module.h2017-08-02 12:14:21.204358744 -0400
-@@ -15,6 +15,24 @@
+--- a/arch/x86/include/asm/module.h2018-01-28 16:20:33.0 -0500
 b/arch/x86/include/asm/module.h2018-03-10 06:42:38.688317317 -0500
+@@ -25,6 +25,26 @@ struct mod_arch_specific {
  #define MODULE_PROC_FAMILY "586MMX "
  #elif defined CONFIG_MCORE2
  #define MODULE_PROC_FAMILY "CORE2 "
@@ -90,10 +91,12 @@ REFERENCES
 +#define MODULE_PROC_FAMILY "BROADWELL "
 +#elif defined CONFIG_MSKYLAKE
 +#define MODULE_PROC_FAMILY "SKYLAKE "
++#elif defined CONFIG_MSKYLAKEX
++#define MODULE_PROC_FAMILY "SKYLAKEX "
  #elif defined CONFIG_MATOM
  #define MODULE_PROC_FAMILY "ATOM "
  #elif defined CONFIG_M686
-@@ -33,6 +51,26 @@
+@@ -43,6 +63,26 @@ struct mod_arch_specific {
  #define MODULE_PROC_FAMILY "K7 "
  #elif defined CONFIG_MK8
  #define MODULE_PROC_FAMILY "K8 "
@@ -120,9 +123,9 @@ REFERENCES
  #elif defined CONFIG_MELAN
  #define MODULE_PROC_FAMILY "ELAN "
  #elif defined CONFIG_MCRUSOE
 a/arch/x86/Kconfig.cpu 2017-08-02 11:41:47.443200463 -0400
-+++ b/arch/x86/Kconfig.cpu 2017-08-02 12:14:37.108956741 -0400
-@@ -115,6 +115,7 @@ config MPENTIUMM
+--- a/arch/x86/Kconfig.cpu 2018-01-28 16:20:33.0 -0500
 b/arch/x86/Kconfig.cpu 2018-03-10 06:45:50.244371799 -0500
+@@ -116,6 +116,7 @@ config MPENTIUMM
  config MPENTIUM4
bool "Pentium-4/Celeron(P4-based)/Pentium-4 M/older Xeon"
depends on X86_32
@@ -130,7 +133,7 @@ REFERENCES
---help---
  Select this for Intel Pentium 4 chips.  This includes the
  Pentium 4, Pentium D, P4-based Celeron and Xeon, and
-@@ -147,9 +148,8 @@ config MPENTIUM4
+@@ -148,9 +149,8 @@ config MPENTIUM4
-Paxville
-Dempsey
  
@@ -141,7 +144,7 @@ REFERENCES
depends on X86_32
---help---
  Select this for an AMD K6-family processor.  Enables use of
-@@ -157,7 +157,7 @@ config MK6
+@@ -158,7 +158,7 @@ config MK6
  flags 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-06-05 Thread Mike Pagano
commit: 33fd88fcdbb4c65ca1d6374047292523c3c5e1dc
Author: Mike Pagano  gentoo  org>
AuthorDate: Tue Jun  5 11:22:30 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Tue Jun  5 11:22:30 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=33fd88fc

Linux patch 4.14.48

 _README  |4 +
 1047_linux-4.14.48.patch | 2503 ++
 2 files changed, 2507 insertions(+)

diff --git a/_README b/_README
index 7a38d72..8190d0f 100644
--- a/_README
+++ b/_README
@@ -231,6 +231,10 @@ Patch:  1046_linux-4.14.47.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.47
 
+Patch:  1047_linux-4.14.48.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.48
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1047_linux-4.14.48.patch b/1047_linux-4.14.48.patch
new file mode 100644
index 000..891c066
--- /dev/null
+++ b/1047_linux-4.14.48.patch
@@ -0,0 +1,2503 @@
+diff --git a/Makefile b/Makefile
+index d6db01a02252..7a246f1ce44e 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 47
++SUBLEVEL = 48
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+@@ -369,11 +369,6 @@ HOSTCXXFLAGS := -O2 $(HOST_LFS_CFLAGS)
+ HOSTLDFLAGS  := $(HOST_LFS_LDFLAGS)
+ HOST_LOADLIBES := $(HOST_LFS_LIBS)
+ 
+-ifeq ($(shell $(HOSTCC) -v 2>&1 | grep -c "clang version"), 1)
+-HOSTCFLAGS  += -Wno-unused-value -Wno-unused-parameter \
+-  -Wno-missing-field-initializers -fno-delete-null-pointer-checks
+-endif
+-
+ # Make variables (CC, etc...)
+ AS= $(CROSS_COMPILE)as
+ LD= $(CROSS_COMPILE)ld
+@@ -711,7 +706,6 @@ KBUILD_CFLAGS += $(stackp-flag)
+ 
+ ifeq ($(cc-name),clang)
+ KBUILD_CPPFLAGS += $(call cc-option,-Qunused-arguments,)
+-KBUILD_CFLAGS += $(call cc-disable-warning, unused-variable)
+ KBUILD_CFLAGS += $(call cc-disable-warning, format-invalid-specifier)
+ KBUILD_CFLAGS += $(call cc-disable-warning, gnu)
+ KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member)
+@@ -729,9 +723,9 @@ else
+ # These warnings generated too much noise in a regular build.
+ # Use make W=1 to enable them (see scripts/Makefile.extrawarn)
+ KBUILD_CFLAGS += $(call cc-disable-warning, unused-but-set-variable)
+-KBUILD_CFLAGS += $(call cc-disable-warning, unused-const-variable)
+ endif
+ 
++KBUILD_CFLAGS += $(call cc-disable-warning, unused-const-variable)
+ ifdef CONFIG_FRAME_POINTER
+ KBUILD_CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls
+ else
+diff --git a/arch/mips/kernel/process.c b/arch/mips/kernel/process.c
+index 2f2d176396aa..e1ddb94a6522 100644
+--- a/arch/mips/kernel/process.c
 b/arch/mips/kernel/process.c
+@@ -721,6 +721,10 @@ int mips_set_process_fp_mode(struct task_struct *task, 
unsigned int value)
+   if (value & ~known_bits)
+   return -EOPNOTSUPP;
+ 
++  /* Setting FRE without FR is not supported.  */
++  if ((value & (PR_FP_MODE_FR | PR_FP_MODE_FRE)) == PR_FP_MODE_FRE)
++  return -EOPNOTSUPP;
++
+   /* Avoid inadvertently triggering emulation */
+   if ((value & PR_FP_MODE_FR) && raw_cpu_has_fpu &&
+   !(raw_current_cpu_data.fpu_id & MIPS_FPIR_F64))
+diff --git a/arch/mips/kernel/ptrace.c b/arch/mips/kernel/ptrace.c
+index 006105fb12fe..e058cd300713 100644
+--- a/arch/mips/kernel/ptrace.c
 b/arch/mips/kernel/ptrace.c
+@@ -809,7 +809,7 @@ long arch_ptrace(struct task_struct *child, long request,
+   break;
+   }
+ #endif
+-  tmp = get_fpr32([addr - FPR_BASE], 0);
++  tmp = get_fpr64([addr - FPR_BASE], 0);
+   break;
+   case PC:
+   tmp = regs->cp0_epc;
+diff --git a/arch/mips/kernel/ptrace32.c b/arch/mips/kernel/ptrace32.c
+index 4a157d3249ac..89026d33a07b 100644
+--- a/arch/mips/kernel/ptrace32.c
 b/arch/mips/kernel/ptrace32.c
+@@ -108,7 +108,7 @@ long compat_arch_ptrace(struct task_struct *child, 
compat_long_t request,
+   addr & 1);
+   break;
+   }
+-  tmp = get_fpr32([addr - FPR_BASE], 0);
++  tmp = get_fpr64([addr - FPR_BASE], 0);
+   break;
+   case PC:
+   tmp = regs->cp0_epc;
+diff --git a/arch/powerpc/include/asm/book3s/64/slice.h 
b/arch/powerpc/include/asm/book3s/64/slice.h
+new file mode 100644
+index ..db0dedab65ee
+--- /dev/null
 b/arch/powerpc/include/asm/book3s/64/slice.h
+@@ -0,0 +1,27 @@
++/* SPDX-License-Identifier: GPL-2.0 */
++#ifndef _ASM_POWERPC_BOOK3S_64_SLICE_H
++#define _ASM_POWERPC_BOOK3S_64_SLICE_H
++
++#ifdef CONFIG_PPC_MM_SLICES
++
++#define 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-05-30 Thread Mike Pagano
commit: 261a8d3776a053c2625797b867d00d9e978b3a0a
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed May 30 22:32:53 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed May 30 22:32:53 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=261a8d37

Linux patch 4.14.47

 _README  |  4 
 1046_linux-4.14.47.patch | 25 +
 2 files changed, 29 insertions(+)

diff --git a/_README b/_README
index 63dde0e..7a38d72 100644
--- a/_README
+++ b/_README
@@ -227,6 +227,10 @@ Patch:  1045_linux-4.14.46.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.46
 
+Patch:  1046_linux-4.14.47.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.47
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1046_linux-4.14.47.patch b/1046_linux-4.14.47.patch
new file mode 100644
index 000..ded7b4e
--- /dev/null
+++ b/1046_linux-4.14.47.patch
@@ -0,0 +1,25 @@
+diff --git a/Makefile b/Makefile
+index 3b1845f2b8f8..d6db01a02252 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 46
++SUBLEVEL = 47
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/net/ipv4/ip_vti.c b/net/ipv4/ip_vti.c
+index 5c5699c08575..00d4371d4573 100644
+--- a/net/ipv4/ip_vti.c
 b/net/ipv4/ip_vti.c
+@@ -396,6 +396,7 @@ static int vti_tunnel_init(struct net_device *dev)
+   memcpy(dev->dev_addr, >saddr, 4);
+   memcpy(dev->broadcast, >daddr, 4);
+ 
++  dev->mtu= ETH_DATA_LEN;
+   dev->flags  = IFF_NOARP;
+   dev->addr_len   = 4;
+   dev->features   |= NETIF_F_LLTX;



[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-05-22 Thread Mike Pagano
commit: d1c9a7448824dd0571d2065f39836999e676e196
Author: Mike Pagano  gentoo  org>
AuthorDate: Tue May 22 18:44:41 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Tue May 22 18:44:41 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=d1c9a744

Linux patch 4.14.43

 _README  |4 +
 1042_linux-4.14.43.patch | 3826 ++
 2 files changed, 3830 insertions(+)

diff --git a/_README b/_README
index cace374..434f43e 100644
--- a/_README
+++ b/_README
@@ -211,6 +211,10 @@ Patch:  1041_linux-4.14.42.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.42
 
+Patch:  1042_linux-4.14.43.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.43
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1042_linux-4.14.43.patch b/1042_linux-4.14.43.patch
new file mode 100644
index 000..7abbee2
--- /dev/null
+++ b/1042_linux-4.14.43.patch
@@ -0,0 +1,3826 @@
+diff --git a/Documentation/ABI/testing/sysfs-devices-system-cpu 
b/Documentation/ABI/testing/sysfs-devices-system-cpu
+index 258902db14bf..8355e79350b7 100644
+--- a/Documentation/ABI/testing/sysfs-devices-system-cpu
 b/Documentation/ABI/testing/sysfs-devices-system-cpu
+@@ -378,6 +378,7 @@ What:  /sys/devices/system/cpu/vulnerabilities
+   /sys/devices/system/cpu/vulnerabilities/meltdown
+   /sys/devices/system/cpu/vulnerabilities/spectre_v1
+   /sys/devices/system/cpu/vulnerabilities/spectre_v2
++  /sys/devices/system/cpu/vulnerabilities/spec_store_bypass
+ Date: January 2018
+ Contact:  Linux kernel mailing list 
+ Description:  Information about CPU vulnerabilities
+diff --git a/Documentation/admin-guide/kernel-parameters.txt 
b/Documentation/admin-guide/kernel-parameters.txt
+index 8cfb44ffe853..0380a45ecf4b 100644
+--- a/Documentation/admin-guide/kernel-parameters.txt
 b/Documentation/admin-guide/kernel-parameters.txt
+@@ -2600,6 +2600,9 @@
+   allow data leaks with this option, which is equivalent
+   to spectre_v2=off.
+ 
++  nospec_store_bypass_disable
++  [HW] Disable all mitigations for the Speculative Store 
Bypass vulnerability
++
+   noxsave [BUGS=X86] Disables x86 extended register state save
+   and restore using xsave. The kernel will fallback to
+   enabling legacy floating-point and sse state.
+@@ -3930,6 +3933,48 @@
+   Not specifying this option is equivalent to
+   spectre_v2=auto.
+ 
++  spec_store_bypass_disable=
++  [HW] Control Speculative Store Bypass (SSB) Disable 
mitigation
++  (Speculative Store Bypass vulnerability)
++
++  Certain CPUs are vulnerable to an exploit against a
++  a common industry wide performance optimization known
++  as "Speculative Store Bypass" in which recent stores
++  to the same memory location may not be observed by
++  later loads during speculative execution. The idea
++  is that such stores are unlikely and that they can
++  be detected prior to instruction retirement at the
++  end of a particular speculation execution window.
++
++  In vulnerable processors, the speculatively forwarded
++  store can be used in a cache side channel attack, for
++  example to read memory to which the attacker does not
++  directly have access (e.g. inside sandboxed code).
++
++  This parameter controls whether the Speculative Store
++  Bypass optimization is used.
++
++  on  - Unconditionally disable Speculative Store 
Bypass
++  off - Unconditionally enable Speculative Store 
Bypass
++  auto- Kernel detects whether the CPU model contains 
an
++implementation of Speculative Store Bypass and
++picks the most appropriate mitigation. If the
++CPU is not vulnerable, "off" is selected. If 
the
++CPU is vulnerable the default mitigation is
++architecture and Kconfig dependent. See below.
++  prctl   - Control Speculative Store Bypass per thread
++via prctl. Speculative Store Bypass is enabled
++for a process by default. The state of the 
control
++is inherited on fork.
++   

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-05-20 Thread Mike Pagano
commit: 2ea3819200912d3ded82eadef8ba00aac2cf8148
Author: Mike Pagano  gentoo  org>
AuthorDate: Sun May 20 22:21:29 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sun May 20 22:21:29 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=2ea38192

Linux patch 4.14.42

 _README  |4 +
 1041_linux-4.14.42.patch | 1534 ++
 2 files changed, 1538 insertions(+)

diff --git a/_README b/_README
index 196f1c1..cace374 100644
--- a/_README
+++ b/_README
@@ -207,6 +207,10 @@ Patch:  1040_linux-4.14.41.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.41
 
+Patch:  1041_linux-4.14.42.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.42
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1041_linux-4.14.42.patch b/1041_linux-4.14.42.patch
new file mode 100644
index 000..5d73cf3
--- /dev/null
+++ b/1041_linux-4.14.42.patch
@@ -0,0 +1,1534 @@
+diff --git a/Makefile b/Makefile
+index c23d0b0c6c45..777f5685a36b 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 41
++SUBLEVEL = 42
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/drivers/net/bonding/bond_alb.c b/drivers/net/bonding/bond_alb.c
+index c02cc817a490..60666db31886 100644
+--- a/drivers/net/bonding/bond_alb.c
 b/drivers/net/bonding/bond_alb.c
+@@ -450,7 +450,7 @@ static void rlb_update_client(struct rlb_client_info 
*client_info)
+ {
+   int i;
+ 
+-  if (!client_info->slave)
++  if (!client_info->slave || !is_valid_ether_addr(client_info->mac_dst))
+   return;
+ 
+   for (i = 0; i < RLB_ARP_BURST_SIZE; i++) {
+@@ -943,6 +943,10 @@ static void alb_send_lp_vid(struct slave *slave, u8 
mac_addr[],
+   skb->priority = TC_PRIO_CONTROL;
+   skb->dev = slave->dev;
+ 
++  netdev_dbg(slave->bond->dev,
++ "Send learning packet: dev %s mac %pM vlan %d\n",
++ slave->dev->name, mac_addr, vid);
++
+   if (vid)
+   __vlan_hwaccel_put_tag(skb, vlan_proto, vid);
+ 
+@@ -965,14 +969,13 @@ static int alb_upper_dev_walk(struct net_device *upper, 
void *_data)
+   u8 *mac_addr = data->mac_addr;
+   struct bond_vlan_tag *tags;
+ 
+-  if (is_vlan_dev(upper) && vlan_get_encap_level(upper) == 0) {
+-  if (strict_match &&
+-  ether_addr_equal_64bits(mac_addr,
+-  upper->dev_addr)) {
++  if (is_vlan_dev(upper) &&
++  bond->nest_level == vlan_get_encap_level(upper) - 1) {
++  if (upper->addr_assign_type == NET_ADDR_STOLEN) {
+   alb_send_lp_vid(slave, mac_addr,
+   vlan_dev_vlan_proto(upper),
+   vlan_dev_vlan_id(upper));
+-  } else if (!strict_match) {
++  } else {
+   alb_send_lp_vid(slave, upper->dev_addr,
+   vlan_dev_vlan_proto(upper),
+   vlan_dev_vlan_id(upper));
+diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
+index bf3be2e6d4a8..f0aa57222f17 100644
+--- a/drivers/net/bonding/bond_main.c
 b/drivers/net/bonding/bond_main.c
+@@ -1734,6 +1734,8 @@ int bond_enslave(struct net_device *bond_dev, struct 
net_device *slave_dev)
+   if (bond_mode_uses_xmit_hash(bond))
+   bond_update_slave_arr(bond, NULL);
+ 
++  bond->nest_level = dev_get_nest_level(bond_dev);
++
+   netdev_info(bond_dev, "Enslaving %s as %s interface with %s link\n",
+   slave_dev->name,
+   bond_is_active_slave(new_slave) ? "an active" : "a backup",
+diff --git a/drivers/net/ethernet/broadcom/tg3.c 
b/drivers/net/ethernet/broadcom/tg3.c
+index 48738eb27806..9a8ef630466f 100644
+--- a/drivers/net/ethernet/broadcom/tg3.c
 b/drivers/net/ethernet/broadcom/tg3.c
+@@ -8723,14 +8723,15 @@ static void tg3_free_consistent(struct tg3 *tp)
+   tg3_mem_rx_release(tp);
+   tg3_mem_tx_release(tp);
+ 
+-  /* Protect tg3_get_stats64() from reading freed tp->hw_stats. */
+-  tg3_full_lock(tp, 0);
++  /* tp->hw_stats can be referenced safely:
++   * 1. under rtnl_lock
++   * 2. or under tp->lock if TG3_FLAG_INIT_COMPLETE is set.
++   */
+   if (tp->hw_stats) {
+   dma_free_coherent(>pdev->dev, sizeof(struct tg3_hw_stats),
+ tp->hw_stats, tp->stats_mapping);
+   tp->hw_stats = NULL;
+   }
+-  tg3_full_unlock(tp);
+ }
+ 
+ /*
+@@ -14167,7 +14168,7 @@ static void tg3_get_stats64(struct net_device *dev,
+   struct tg3 *tp = netdev_priv(dev);
+ 
+   spin_lock_bh(>lock);
+-  if 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-05-16 Thread Mike Pagano
commit: e5428f0f7a5db952b6fc85c2ce3f447fdffccafe
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed May 16 10:24:30 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed May 16 10:24:30 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=e5428f0f

Linux patch 4.14.41

 _README  |4 +
 1040_linux-4.14.41.patch | 2289 ++
 2 files changed, 2293 insertions(+)

diff --git a/_README b/_README
index 35b5351..196f1c1 100644
--- a/_README
+++ b/_README
@@ -203,6 +203,10 @@ Patch:  1039_linux-4.14.40.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.40
 
+Patch:  1040_linux-4.14.41.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.41
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1040_linux-4.14.41.patch b/1040_linux-4.14.41.patch
new file mode 100644
index 000..dea50ad
--- /dev/null
+++ b/1040_linux-4.14.41.patch
@@ -0,0 +1,2289 @@
+diff --git a/Documentation/arm64/silicon-errata.txt 
b/Documentation/arm64/silicon-errata.txt
+index f3d0d316d5f1..e4fe6adc372b 100644
+--- a/Documentation/arm64/silicon-errata.txt
 b/Documentation/arm64/silicon-errata.txt
+@@ -55,6 +55,7 @@ stable kernels.
+ | ARM| Cortex-A57  | #834220 | ARM64_ERRATUM_834220   
 |
+ | ARM| Cortex-A72  | #853709 | N/A
 |
+ | ARM| Cortex-A73  | #858921 | ARM64_ERRATUM_858921   
 |
++| ARM| Cortex-A55  | #1024718| ARM64_ERRATUM_1024718  
 |
+ | ARM| MMU-500 | #841119,#826419 | N/A
 |
+ || | |
 |
+ | Cavium | ThunderX ITS| #22375, #24313  | CAVIUM_ERRATUM_22375   
 |
+diff --git a/Makefile b/Makefile
+index 6eede39f898a..c23d0b0c6c45 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 40
++SUBLEVEL = 41
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
+index c2abb4e88ff2..2d5f7aca156d 100644
+--- a/arch/arm64/Kconfig
 b/arch/arm64/Kconfig
+@@ -443,6 +443,20 @@ config ARM64_ERRATUM_843419
+ 
+ If unsure, say Y.
+ 
++config ARM64_ERRATUM_1024718
++  bool "Cortex-A55: 1024718: Update of DBM/AP bits without break before 
make might result in incorrect update"
++  default y
++  help
++This option adds work around for Arm Cortex-A55 Erratum 1024718.
++
++Affected Cortex-A55 cores (r0p0, r0p1, r1p0) could cause incorrect
++update of the hardware dirty bit when the DBM/AP bits are updated
++without a break-before-make. The work around is to disable the usage
++of hardware DBM locally on the affected cores. CPUs not affected by
++erratum will continue to use the feature.
++
++If unsure, say Y.
++
+ config CAVIUM_ERRATUM_22375
+   bool "Cavium erratum 22375, 24313"
+   default y
+diff --git a/arch/arm64/include/asm/assembler.h 
b/arch/arm64/include/asm/assembler.h
+index 463619dcadd4..25b2a4161c7a 100644
+--- a/arch/arm64/include/asm/assembler.h
 b/arch/arm64/include/asm/assembler.h
+@@ -25,6 +25,7 @@
+ 
+ #include 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 
+@@ -495,4 +496,43 @@ alternative_endif
+   and \phys, \pte, #(((1 << (48 - PAGE_SHIFT)) - 1) << PAGE_SHIFT)
+   .endm
+ 
++/*
++ * Check the MIDR_EL1 of the current CPU for a given model and a range of
++ * variant/revision. See asm/cputype.h for the macros used below.
++ *
++ *model:  MIDR_CPU_MODEL of CPU
++ *rv_min: Minimum of MIDR_CPU_VAR_REV()
++ *rv_max: Maximum of MIDR_CPU_VAR_REV()
++ *res:Result register.
++ *tmp1, tmp2, tmp3: Temporary registers
++ *
++ * Corrupts: res, tmp1, tmp2, tmp3
++ * Returns:  0, if the CPU id doesn't match. Non-zero otherwise
++ */
++  .macro  cpu_midr_match model, rv_min, rv_max, res, tmp1, tmp2, tmp3
++  mrs \res, midr_el1
++  mov_q   \tmp1, (MIDR_REVISION_MASK | MIDR_VARIANT_MASK)
++  mov_q   \tmp2, MIDR_CPU_MODEL_MASK
++  and \tmp3, \res, \tmp2  // Extract model
++  and \tmp1, \res, \tmp1  // rev & variant
++  mov_q   \tmp2, \model
++  cmp \tmp3, \tmp2
++  cset\res, eq
++  cbz \res, .Ldone\@  // Model matches ?
++
++  .if (\rv_min != 0)  // Skip min check if rv_min == 0
++  mov_q   \tmp3, \rv_min
++  cmp \tmp1, \tmp3
++  cset\res, ge
++  .endif  // \rv_min != 0
++  /* Skip rv_max check 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-05-09 Thread Mike Pagano
commit: 2f864f13e29d21eadf9074dce72ead7defba7c3d
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed May  9 10:55:49 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed May  9 10:55:49 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=2f864f13

Linux patch 4.14.40

 _README  |4 +
 1039_linux-4.14.40.patch | 2562 ++
 2 files changed, 2566 insertions(+)

diff --git a/_README b/_README
index 648c705..35b5351 100644
--- a/_README
+++ b/_README
@@ -199,6 +199,10 @@ Patch:  1038_linux-4.14.39.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.39
 
+Patch:  1039_linux-4.14.40.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.40
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1039_linux-4.14.40.patch b/1039_linux-4.14.40.patch
new file mode 100644
index 000..f0610e0
--- /dev/null
+++ b/1039_linux-4.14.40.patch
@@ -0,0 +1,2562 @@
+diff --git a/Makefile b/Makefile
+index 248b99283f71..6eede39f898a 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 39
++SUBLEVEL = 40
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/drivers/acpi/button.c b/drivers/acpi/button.c
+index ef1856b15488..9e80802e3603 100644
+--- a/drivers/acpi/button.c
 b/drivers/acpi/button.c
+@@ -595,4 +595,26 @@ module_param_call(lid_init_state,
+ NULL, 0644);
+ MODULE_PARM_DESC(lid_init_state, "Behavior for reporting LID initial state");
+ 
+-module_acpi_driver(acpi_button_driver);
++static int acpi_button_register_driver(struct acpi_driver *driver)
++{
++  /*
++   * Modules such as nouveau.ko and i915.ko have a link time dependency
++   * on acpi_lid_open(), and would therefore not be loadable on ACPI
++   * capable kernels booted in non-ACPI mode if the return value of
++   * acpi_bus_register_driver() is returned from here with ACPI disabled
++   * when this driver is built as a module.
++   */
++  if (acpi_disabled)
++  return 0;
++
++  return acpi_bus_register_driver(driver);
++}
++
++static void acpi_button_unregister_driver(struct acpi_driver *driver)
++{
++  if (!acpi_disabled)
++  acpi_bus_unregister_driver(driver);
++}
++
++module_driver(acpi_button_driver, acpi_button_register_driver,
++ acpi_button_unregister_driver);
+diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c
+index ceae25112acd..57e1b203cf36 100644
+--- a/drivers/crypto/talitos.c
 b/drivers/crypto/talitos.c
+@@ -1116,10 +1116,10 @@ static int sg_to_link_tbl_offset(struct scatterlist 
*sg, int sg_count,
+   return count;
+ }
+ 
+-int talitos_sg_map(struct device *dev, struct scatterlist *src,
+- unsigned int len, struct talitos_edesc *edesc,
+- struct talitos_ptr *ptr,
+- int sg_count, unsigned int offset, int tbl_off)
++static int talitos_sg_map_ext(struct device *dev, struct scatterlist *src,
++unsigned int len, struct talitos_edesc *edesc,
++struct talitos_ptr *ptr, int sg_count,
++unsigned int offset, int tbl_off, int elen)
+ {
+   struct talitos_private *priv = dev_get_drvdata(dev);
+   bool is_sec1 = has_ftr_sec1(priv);
+@@ -1130,7 +1130,7 @@ int talitos_sg_map(struct device *dev, struct 
scatterlist *src,
+   }
+ 
+   to_talitos_ptr_len(ptr, len, is_sec1);
+-  to_talitos_ptr_ext_set(ptr, 0, is_sec1);
++  to_talitos_ptr_ext_set(ptr, elen, is_sec1);
+ 
+   if (sg_count == 1) {
+   to_talitos_ptr(ptr, sg_dma_address(src) + offset, is_sec1);
+@@ -1140,7 +1140,7 @@ int talitos_sg_map(struct device *dev, struct 
scatterlist *src,
+   to_talitos_ptr(ptr, edesc->dma_link_tbl + offset, is_sec1);
+   return sg_count;
+   }
+-  sg_count = sg_to_link_tbl_offset(src, sg_count, offset, len,
++  sg_count = sg_to_link_tbl_offset(src, sg_count, offset, len + elen,
+>link_tbl[tbl_off]);
+   if (sg_count == 1) {
+   /* Only one segment now, so no link tbl needed*/
+@@ -1154,6 +1154,15 @@ int talitos_sg_map(struct device *dev, struct 
scatterlist *src,
+   return sg_count;
+ }
+ 
++static int talitos_sg_map(struct device *dev, struct scatterlist *src,
++unsigned int len, struct talitos_edesc *edesc,
++struct talitos_ptr *ptr, int sg_count,
++unsigned int offset, int tbl_off)
++{
++  return talitos_sg_map_ext(dev, src, len, edesc, ptr, sg_count, offset,
++tbl_off, 0);
++}
++
+ /*
+  * fill in and submit ipsec_esp descriptor
+  */
+@@ -1171,7 +1180,7 @@ static 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-05-02 Thread Mike Pagano
commit: 316f136dd790037a552e77ba0ef96b8aa00e9493
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed May  2 16:14:20 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed May  2 16:14:20 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=316f136d

Linux patch 4.14.39

 _README  |4 +
 1038_linux-4.14.39.patch | 3551 ++
 2 files changed, 3555 insertions(+)

diff --git a/_README b/_README
index 03b1461..648c705 100644
--- a/_README
+++ b/_README
@@ -195,6 +195,10 @@ Patch:  1037_linux-4.14.38.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.38
 
+Patch:  1038_linux-4.14.39.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.39
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1038_linux-4.14.39.patch b/1038_linux-4.14.39.patch
new file mode 100644
index 000..f7760eb
--- /dev/null
+++ b/1038_linux-4.14.39.patch
@@ -0,0 +1,3551 @@
+diff --git a/Documentation/virtual/kvm/api.txt 
b/Documentation/virtual/kvm/api.txt
+index 0f9089416b4c..88ad78c6f605 100644
+--- a/Documentation/virtual/kvm/api.txt
 b/Documentation/virtual/kvm/api.txt
+@@ -1940,6 +1940,9 @@ ARM 32-bit VFP control registers have the following id 
bit patterns:
+ ARM 64-bit FP registers have the following id bit patterns:
+   0x4030  0012 0 
+ 
++ARM firmware pseudo-registers have the following bit pattern:
++  0x4030  0014 
++
+ 
+ arm64 registers are mapped using the lower 32 bits. The upper 16 of
+ that is the register group type, or coprocessor number:
+@@ -1956,6 +1959,9 @@ arm64 CCSIDR registers are demultiplexed by CSSELR value:
+ arm64 system registers have the following id bit patterns:
+   0x6030  0013 
+ 
++arm64 firmware pseudo-registers have the following bit pattern:
++  0x6030  0014 
++
+ 
+ MIPS registers are mapped using the lower 32 bits.  The upper 16 of that is
+ the register group type:
+@@ -2490,7 +2496,8 @@ Possible features:
+ and execute guest code when KVM_RUN is called.
+   - KVM_ARM_VCPU_EL1_32BIT: Starts the CPU in a 32bit mode.
+ Depends on KVM_CAP_ARM_EL1_32BIT (arm64 only).
+-  - KVM_ARM_VCPU_PSCI_0_2: Emulate PSCI v0.2 for the CPU.
++  - KVM_ARM_VCPU_PSCI_0_2: Emulate PSCI v0.2 (or a future revision
++  backward compatible with v0.2) for the CPU.
+ Depends on KVM_CAP_ARM_PSCI_0_2.
+   - KVM_ARM_VCPU_PMU_V3: Emulate PMUv3 for the CPU.
+ Depends on KVM_CAP_ARM_PMU_V3.
+diff --git a/Documentation/virtual/kvm/arm/psci.txt 
b/Documentation/virtual/kvm/arm/psci.txt
+new file mode 100644
+index ..aafdab887b04
+--- /dev/null
 b/Documentation/virtual/kvm/arm/psci.txt
+@@ -0,0 +1,30 @@
++KVM implements the PSCI (Power State Coordination Interface)
++specification in order to provide services such as CPU on/off, reset
++and power-off to the guest.
++
++The PSCI specification is regularly updated to provide new features,
++and KVM implements these updates if they make sense from a virtualization
++point of view.
++
++This means that a guest booted on two different versions of KVM can
++observe two different "firmware" revisions. This could cause issues if
++a given guest is tied to a particular PSCI revision (unlikely), or if
++a migration causes a different PSCI version to be exposed out of the
++blue to an unsuspecting guest.
++
++In order to remedy this situation, KVM exposes a set of "firmware
++pseudo-registers" that can be manipulated using the GET/SET_ONE_REG
++interface. These registers can be saved/restored by userspace, and set
++to a convenient value if required.
++
++The following register is defined:
++
++* KVM_REG_ARM_PSCI_VERSION:
++
++  - Only valid if the vcpu has the KVM_ARM_VCPU_PSCI_0_2 feature set
++(and thus has already been initialized)
++  - Returns the current PSCI version on GET_ONE_REG (defaulting to the
++highest PSCI version implemented by KVM and compatible with v0.2)
++  - Allows any PSCI version implemented by KVM and compatible with
++v0.2 to be set with SET_ONE_REG
++  - Affects the whole VM (even if the register view is per-vcpu)
+diff --git a/Makefile b/Makefile
+index 27a8d5c37180..248b99283f71 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 38
++SUBLEVEL = 39
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arm/configs/socfpga_defconfig 
b/arch/arm/configs/socfpga_defconfig
+index 2620ce790db0..371fca4e1ab7 100644
+--- a/arch/arm/configs/socfpga_defconfig
 b/arch/arm/configs/socfpga_defconfig
+@@ -57,6 +57,7 @@ CONFIG_MTD_M25P80=y
+ CONFIG_MTD_NAND=y
+ CONFIG_MTD_NAND_DENALI_DT=y
+ CONFIG_MTD_SPI_NOR=y
++# CONFIG_MTD_SPI_NOR_USE_4K_SECTORS is not set
+ CONFIG_SPI_CADENCE_QUADSPI=y
+ CONFIG_OF_OVERLAY=y
+ CONFIG_OF_CONFIGFS=y

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-04-30 Thread Mike Pagano
commit: 645f3565be0d4dce743c0b1a2b71093f0889d815
Author: Mike Pagano  gentoo  org>
AuthorDate: Mon Apr 30 10:29:51 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Mon Apr 30 10:29:51 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=645f3565

Linux patch 4.14.38

 _README  |4 +
 1037_linux-4.14.38.patch | 4524 ++
 2 files changed, 4528 insertions(+)

diff --git a/_README b/_README
index 73aafae..03b1461 100644
--- a/_README
+++ b/_README
@@ -191,6 +191,10 @@ Patch:  1036_linux-4.14.37.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.37
 
+Patch:  1037_linux-4.14.38.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.38
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1037_linux-4.14.38.patch b/1037_linux-4.14.38.patch
new file mode 100644
index 000..4612b61
--- /dev/null
+++ b/1037_linux-4.14.38.patch
@@ -0,0 +1,4524 @@
+diff --git a/Documentation/admin-guide/kernel-parameters.txt 
b/Documentation/admin-guide/kernel-parameters.txt
+index fb385af482ff..8cfb44ffe853 100644
+--- a/Documentation/admin-guide/kernel-parameters.txt
 b/Documentation/admin-guide/kernel-parameters.txt
+@@ -2541,6 +2541,9 @@
+ 
+   noalign [KNL,ARM]
+ 
++  noaltinstr  [S390] Disables alternative instructions patching
++  (CPU alternatives feature).
++
+   noapic  [SMP,APIC] Tells the kernel to not make use of any
+   IOAPICs that may be present in the system.
+ 
+diff --git a/Makefile b/Makefile
+index ee330f5449e6..27a8d5c37180 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 37
++SUBLEVEL = 38
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi 
b/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi
+index 910628d18add..1fc5060d7027 100644
+--- a/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi
 b/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi
+@@ -155,17 +155,6 @@
+   regulator-min-microvolt = <500>;
+   regulator-max-microvolt = <500>;
+   };
+-
+-  vdd_log: vdd-log {
+-  compatible = "pwm-regulator";
+-  pwms = < 0 25000 0>;
+-  regulator-name = "vdd_log";
+-  regulator-min-microvolt = <80>;
+-  regulator-max-microvolt = <140>;
+-  regulator-always-on;
+-  regulator-boot-on;
+-  status = "okay";
+-  };
+ };
+ 
+ _b0 {
+diff --git a/arch/microblaze/Kconfig.platform 
b/arch/microblaze/Kconfig.platform
+index 1b3d8c849101..f7f1739c11b9 100644
+--- a/arch/microblaze/Kconfig.platform
 b/arch/microblaze/Kconfig.platform
+@@ -20,6 +20,7 @@ config OPT_LIB_FUNCTION
+ config OPT_LIB_ASM
+   bool "Optimalized lib function ASM"
+   depends on OPT_LIB_FUNCTION && (XILINX_MICROBLAZE0_USE_BARREL = 1)
++  depends on CPU_BIG_ENDIAN
+   default n
+   help
+ Allows turn on optimalized library function (memcpy and memmove).
+diff --git a/arch/microblaze/lib/fastcopy.S b/arch/microblaze/lib/fastcopy.S
+index 62021d7e249e..fdc48bb065d8 100644
+--- a/arch/microblaze/lib/fastcopy.S
 b/arch/microblaze/lib/fastcopy.S
+@@ -29,10 +29,6 @@
+  *between mem locations with size of xfer spec'd in bytes
+  */
+ 
+-#ifdef __MICROBLAZEEL__
+-#error Microblaze LE not support ASM optimized lib func. Disable OPT_LIB_ASM.
+-#endif
+-
+ #include 
+   .text
+   .globl  memcpy
+diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig
+index ae55e715cc74..49fb6614ea8c 100644
+--- a/arch/s390/Kconfig
 b/arch/s390/Kconfig
+@@ -121,6 +121,7 @@ config S390
+   select GENERIC_CLOCKEVENTS
+   select GENERIC_CPU_AUTOPROBE
+   select GENERIC_CPU_DEVICES if !SMP
++  select GENERIC_CPU_VULNERABILITIES
+   select GENERIC_FIND_FIRST_BIT
+   select GENERIC_SMP_IDLE_THREAD
+   select GENERIC_TIME_VSYSCALL
+@@ -538,6 +539,51 @@ config ARCH_RANDOM
+ 
+ If unsure, say Y.
+ 
++config KERNEL_NOBP
++  def_bool n
++  prompt "Enable modified branch prediction for the kernel by default"
++  help
++If this option is selected the kernel will switch to a modified
++branch prediction mode if the firmware interface is available.
++The modified branch prediction mode improves the behaviour in
++regard to speculative execution.
++
++With the option enabled the kernel parameter "nobp=0" or "nospec"
++can be used to run the kernel in the normal branch prediction mode.
++
++With the option disabled the modified branch prediction mode is
++enabled with the "nobp=1" kernel parameter.
++
++If unsure, say N.
++
++config EXPOLINE
++ 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-04-19 Thread Mike Pagano
commit: 14ad41e6b9c92b48862f10f8bcc83ecce990a26e
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Apr 19 10:43:08 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu Apr 19 10:43:08 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=14ad41e6

Linux patch 4.14.35

 _README  |4 +
 1034_linux-4.14.35.patch | 1801 ++
 2 files changed, 1805 insertions(+)

diff --git a/_README b/_README
index 1342bb8..423395e 100644
--- a/_README
+++ b/_README
@@ -179,6 +179,10 @@ Patch:  1033_linux-4.14.34.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.34
 
+Patch:  1034_linux-4.14.35.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.35
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1034_linux-4.14.35.patch b/1034_linux-4.14.35.patch
new file mode 100644
index 000..5d53122
--- /dev/null
+++ b/1034_linux-4.14.35.patch
@@ -0,0 +1,1801 @@
+diff --git a/Makefile b/Makefile
+index a6906dfb112e..995666d5e57b 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 34
++SUBLEVEL = 35
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/parisc/kernel/drivers.c b/arch/parisc/kernel/drivers.c
+index d8f77358e2ba..513826a43efd 100644
+--- a/arch/parisc/kernel/drivers.c
 b/arch/parisc/kernel/drivers.c
+@@ -651,6 +651,10 @@ static int match_pci_device(struct device *dev, int index,
+   (modpath->mod == PCI_FUNC(devfn)));
+   }
+ 
++  /* index might be out of bounds for bc[] */
++  if (index >= 6)
++  return 0;
++
+   id = PCI_SLOT(pdev->devfn) | (PCI_FUNC(pdev->devfn) << 5);
+   return (modpath->bc[index] == id);
+ }
+diff --git a/arch/parisc/kernel/hpmc.S b/arch/parisc/kernel/hpmc.S
+index 8d072c44f300..781c3b9a3e46 100644
+--- a/arch/parisc/kernel/hpmc.S
 b/arch/parisc/kernel/hpmc.S
+@@ -84,6 +84,7 @@ END(hpmc_pim_data)
+   .text
+ 
+   .import intr_save, code
++  .align 16
+ ENTRY_CFI(os_hpmc)
+ .os_hpmc:
+ 
+@@ -300,12 +301,15 @@ os_hpmc_6:
+ 
+   b .
+   nop
++  .align 16   /* make function length multiple of 16 bytes */
+ ENDPROC_CFI(os_hpmc)
+ .os_hpmc_end:
+ 
+ 
+   __INITRODATA
++.globl os_hpmc_size
+   .align 4
+-  .export os_hpmc_size
++  .type   os_hpmc_size, @object
++  .size   os_hpmc_size, 4
+ os_hpmc_size:
+   .word .os_hpmc_end-.os_hpmc
+diff --git a/arch/powerpc/kvm/book3s_hv_rm_mmu.c 
b/arch/powerpc/kvm/book3s_hv_rm_mmu.c
+index 4efe364f1188..4962d537c186 100644
+--- a/arch/powerpc/kvm/book3s_hv_rm_mmu.c
 b/arch/powerpc/kvm/book3s_hv_rm_mmu.c
+@@ -447,8 +447,6 @@ static void do_tlbies(struct kvm *kvm, unsigned long 
*rbvalues,
+   for (i = 0; i < npages; ++i) {
+   asm volatile(PPC_TLBIE_5(%0,%1,0,0,0) : :
+"r" (rbvalues[i]), "r" (kvm->arch.lpid));
+-  trace_tlbie(kvm->arch.lpid, 0, rbvalues[i],
+-  kvm->arch.lpid, 0, 0, 0);
+   }
+   asm volatile("eieio; tlbsync; ptesync" : : : "memory");
+   kvm->arch.tlbie_lock = 0;
+@@ -458,8 +456,6 @@ static void do_tlbies(struct kvm *kvm, unsigned long 
*rbvalues,
+   for (i = 0; i < npages; ++i) {
+   asm volatile(PPC_TLBIEL(%0,%1,0,0,0) : :
+"r" (rbvalues[i]), "r" (0));
+-  trace_tlbie(kvm->arch.lpid, 1, rbvalues[i],
+-  0, 0, 0, 0);
+   }
+   asm volatile("ptesync" : : : "memory");
+   }
+diff --git a/arch/s390/kernel/ipl.c b/arch/s390/kernel/ipl.c
+index 8e622bb52f7a..d1a0e2c521d7 100644
+--- a/arch/s390/kernel/ipl.c
 b/arch/s390/kernel/ipl.c
+@@ -799,6 +799,7 @@ static ssize_t reipl_generic_loadparm_store(struct 
ipl_parameter_block *ipb,
+   /* copy and convert to ebcdic */
+   memcpy(ipb->hdr.loadparm, buf, lp_len);
+   ASCEBC(ipb->hdr.loadparm, LOADPARM_LEN);
++  ipb->hdr.flags |= DIAG308_FLAGS_LP_VALID;
+   return len;
+ }
+ 
+diff --git a/arch/x86/include/asm/mce.h b/arch/x86/include/asm/mce.h
+index b1e8d8db921f..340070415c2c 100644
+--- a/arch/x86/include/asm/mce.h
 b/arch/x86/include/asm/mce.h
+@@ -346,6 +346,7 @@ enum smca_bank_types {
+   SMCA_IF,/* Instruction Fetch */
+   SMCA_L2_CACHE,  /* L2 Cache */
+   SMCA_DE,/* Decoder Unit */
++  SMCA_RESERVED,  /* Reserved */
+   SMCA_EX,/* Execution Unit */
+   SMCA_FP,/* Floating Point */
+   SMCA_L3_CACHE,  /* L3 Cache */
+@@ -376,6 +377,7 @@ struct smca_bank {
+ extern struct smca_bank smca_banks[MAX_NR_BANKS];
+ 
+ extern const char *smca_get_long_name(enum 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-04-08 Thread Mike Pagano
commit: d9ccd034ee45bbe07c0db53bf43890e449f9f99e
Author: Mike Pagano  gentoo  org>
AuthorDate: Sun Apr  8 14:27:32 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sun Apr  8 14:27:32 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=d9ccd034

Linux patch 4.14.33

 _README  |4 +
 1032_linux-4.14.33.patch | 2353 ++
 2 files changed, 2357 insertions(+)

diff --git a/_README b/_README
index 54facf6..f01833f 100644
--- a/_README
+++ b/_README
@@ -171,6 +171,10 @@ Patch:  1031_linux-4.14.32.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.32
 
+Patch:  1032_linux-4.14.33.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.33
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1032_linux-4.14.33.patch b/1032_linux-4.14.33.patch
new file mode 100644
index 000..dcd21fd
--- /dev/null
+++ b/1032_linux-4.14.33.patch
@@ -0,0 +1,2353 @@
+diff --git a/Documentation/devicetree/bindings/serial/8250.txt 
b/Documentation/devicetree/bindings/serial/8250.txt
+index dad3b2ec66d4..aeb6db4e35c3 100644
+--- a/Documentation/devicetree/bindings/serial/8250.txt
 b/Documentation/devicetree/bindings/serial/8250.txt
+@@ -24,6 +24,7 @@ Required properties:
+   - "ti,da830-uart"
+   - "aspeed,ast2400-vuart"
+   - "aspeed,ast2500-vuart"
++  - "nuvoton,npcm750-uart"
+   - "serial" if the port type is unknown.
+ - reg : offset and length of the register set for the device.
+ - interrupts : should contain uart interrupt.
+diff --git a/Makefile b/Makefile
+index c4c681b53ff0..00dd6af8eab4 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 32
++SUBLEVEL = 33
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arm/boot/dts/am335x-pepper.dts 
b/arch/arm/boot/dts/am335x-pepper.dts
+index 9fb7426070ce..03c7d77023c6 100644
+--- a/arch/arm/boot/dts/am335x-pepper.dts
 b/arch/arm/boot/dts/am335x-pepper.dts
+@@ -139,7 +139,7 @@
+ _codec {
+   status = "okay";
+ 
+-  reset-gpios = < 16 GPIO_ACTIVE_LOW>;
++  gpio-reset = < 16 GPIO_ACTIVE_LOW>;
+   AVDD-supply = <_reg>;
+   IOVDD-supply = <_reg>;
+   DRVDD-supply = <_reg>;
+diff --git a/arch/arm/boot/dts/dra76-evm.dts b/arch/arm/boot/dts/dra76-evm.dts
+index b024a65c6e27..f64aab450315 100644
+--- a/arch/arm/boot/dts/dra76-evm.dts
 b/arch/arm/boot/dts/dra76-evm.dts
+@@ -148,6 +148,7 @@
+   compatible = "ti,tps65917";
+   reg = <0x58>;
+   ti,system-power-controller;
++  ti,palmas-override-powerhold;
+   interrupt-controller;
+   #interrupt-cells = <2>;
+ 
+diff --git a/arch/arm/boot/dts/omap3-n900.dts 
b/arch/arm/boot/dts/omap3-n900.dts
+index c66ee8432a85..4acd32a1c4ef 100644
+--- a/arch/arm/boot/dts/omap3-n900.dts
 b/arch/arm/boot/dts/omap3-n900.dts
+@@ -558,7 +558,7 @@
+   tlv320aic3x: tlv320aic3x@18 {
+   compatible = "ti,tlv320aic3x";
+   reg = <0x18>;
+-  reset-gpios = < 28 GPIO_ACTIVE_LOW>; /* 60 */
++  gpio-reset = < 28 GPIO_ACTIVE_HIGH>; /* 60 */
+   ai3x-gpio-func = <
+   0 /* AIC3X_GPIO1_FUNC_DISABLED */
+   5 /* AIC3X_GPIO2_FUNC_DIGITAL_MIC_INPUT */
+@@ -575,7 +575,7 @@
+   tlv320aic3x_aux: tlv320aic3x@19 {
+   compatible = "ti,tlv320aic3x";
+   reg = <0x19>;
+-  reset-gpios = < 28 GPIO_ACTIVE_LOW>; /* 60 */
++  gpio-reset = < 28 GPIO_ACTIVE_HIGH>; /* 60 */
+ 
+   AVDD-supply = <>;
+   DRVDD-supply = <>;
+diff --git a/arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts 
b/arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts
+index 51e6f1d21c32..b2758dd8ce43 100644
+--- a/arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts
 b/arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dts
+@@ -42,7 +42,6 @@
+ 
+ /dts-v1/;
+ #include "sun6i-a31s.dtsi"
+-#include "sunxi-common-regulators.dtsi"
+ #include 
+ 
+ / {
+@@ -99,6 +98,7 @@
+   pinctrl-0 = <_pins_rgmii_a>, <_phy_reset_pin_bpi_m2>;
+   phy = <>;
+   phy-mode = "rgmii";
++  phy-supply = <_dldo1>;
+   snps,reset-gpio = < 0 21 GPIO_ACTIVE_HIGH>; /* PA21 */
+   snps,reset-active-low;
+   snps,reset-delays-us = <0 1 3>;
+@@ -118,7 +118,7 @@
+  {
+   pinctrl-names = "default";
+   pinctrl-0 = <_pins_a>, <_cd_pin_bpi_m2>;
+-  vmmc-supply = <_vcc3v0>;
++  vmmc-supply = <_dcdc1>;
+   bus-width = <4>;
+   cd-gpios = < 0 4 GPIO_ACTIVE_HIGH>; /* PA4 */
+   cd-inverted;
+@@ -132,7 +132,7 @@
+  {
+   pinctrl-names = "default";
+   pinctrl-0 = <_pins_a>;
+-  vmmc-supply = <_vcc3v0>;
++  vmmc-supply = <_aldo1>;
+   mmc-pwrseq = 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-03-31 Thread Mike Pagano
commit: 3dd51bb7cb6180ad0c4c2e6f1ff12ec6f1a45a42
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Mar 31 22:18:40 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Mar 31 22:18:40 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=3dd51bb7

Linux patch 4.14.32

 _README  |4 +
 1031_linux-4.14.32.patch | 1401 ++
 2 files changed, 1405 insertions(+)

diff --git a/_README b/_README
index 74f23dc..54facf6 100644
--- a/_README
+++ b/_README
@@ -167,6 +167,10 @@ Patch:  1030_linux-4.14.31.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.31
 
+Patch:  1031_linux-4.14.32.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.32
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1031_linux-4.14.32.patch b/1031_linux-4.14.32.patch
new file mode 100644
index 000..f72eb49
--- /dev/null
+++ b/1031_linux-4.14.32.patch
@@ -0,0 +1,1401 @@
+diff --git a/Makefile b/Makefile
+index 99e31da48422..c4c681b53ff0 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 31
++SUBLEVEL = 32
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/drivers/net/ethernet/arc/emac_rockchip.c 
b/drivers/net/ethernet/arc/emac_rockchip.c
+index c6163874e4e7..c770ca37c9b2 100644
+--- a/drivers/net/ethernet/arc/emac_rockchip.c
 b/drivers/net/ethernet/arc/emac_rockchip.c
+@@ -169,8 +169,10 @@ static int emac_rockchip_probe(struct platform_device 
*pdev)
+   /* Optional regulator for PHY */
+   priv->regulator = devm_regulator_get_optional(dev, "phy");
+   if (IS_ERR(priv->regulator)) {
+-  if (PTR_ERR(priv->regulator) == -EPROBE_DEFER)
+-  return -EPROBE_DEFER;
++  if (PTR_ERR(priv->regulator) == -EPROBE_DEFER) {
++  err = -EPROBE_DEFER;
++  goto out_clk_disable;
++  }
+   dev_err(dev, "no regulator found\n");
+   priv->regulator = NULL;
+   }
+diff --git a/drivers/net/ethernet/broadcom/bcmsysport.c 
b/drivers/net/ethernet/broadcom/bcmsysport.c
+index eb441e5e2cd8..1e856e8b9a92 100644
+--- a/drivers/net/ethernet/broadcom/bcmsysport.c
 b/drivers/net/ethernet/broadcom/bcmsysport.c
+@@ -855,10 +855,12 @@ static void bcm_sysport_tx_reclaim_one(struct 
bcm_sysport_tx_ring *ring,
+ static unsigned int __bcm_sysport_tx_reclaim(struct bcm_sysport_priv *priv,
+struct bcm_sysport_tx_ring *ring)
+ {
+-  unsigned int c_index, last_c_index, last_tx_cn, num_tx_cbs;
+   unsigned int pkts_compl = 0, bytes_compl = 0;
+   struct net_device *ndev = priv->netdev;
++  unsigned int txbds_processed = 0;
+   struct bcm_sysport_cb *cb;
++  unsigned int txbds_ready;
++  unsigned int c_index;
+   u32 hw_ind;
+ 
+   /* Clear status before servicing to reduce spurious interrupts */
+@@ -871,29 +873,23 @@ static unsigned int __bcm_sysport_tx_reclaim(struct 
bcm_sysport_priv *priv,
+   /* Compute how many descriptors have been processed since last call */
+   hw_ind = tdma_readl(priv, TDMA_DESC_RING_PROD_CONS_INDEX(ring->index));
+   c_index = (hw_ind >> RING_CONS_INDEX_SHIFT) & RING_CONS_INDEX_MASK;
+-  ring->p_index = (hw_ind & RING_PROD_INDEX_MASK);
+-
+-  last_c_index = ring->c_index;
+-  num_tx_cbs = ring->size;
+-
+-  c_index &= (num_tx_cbs - 1);
+-
+-  if (c_index >= last_c_index)
+-  last_tx_cn = c_index - last_c_index;
+-  else
+-  last_tx_cn = num_tx_cbs - last_c_index + c_index;
++  txbds_ready = (c_index - ring->c_index) & RING_CONS_INDEX_MASK;
+ 
+   netif_dbg(priv, tx_done, ndev,
+-"ring=%d c_index=%d last_tx_cn=%d last_c_index=%d\n",
+-ring->index, c_index, last_tx_cn, last_c_index);
++"ring=%d old_c_index=%u c_index=%u txbds_ready=%u\n",
++ring->index, ring->c_index, c_index, txbds_ready);
+ 
+-  while (last_tx_cn-- > 0) {
+-  cb = ring->cbs + last_c_index;
++  while (txbds_processed < txbds_ready) {
++  cb = >cbs[ring->clean_index];
+   bcm_sysport_tx_reclaim_one(ring, cb, _compl, _compl);
+ 
+   ring->desc_count++;
+-  last_c_index++;
+-  last_c_index &= (num_tx_cbs - 1);
++  txbds_processed++;
++
++  if (likely(ring->clean_index < ring->size - 1))
++  ring->clean_index++;
++  else
++  ring->clean_index = 0;
+   }
+ 
+   u64_stats_update_begin(>syncp);
+@@ -1406,6 +1402,7 @@ static int bcm_sysport_init_tx_ring(struct 
bcm_sysport_priv *priv,
+   netif_tx_napi_add(priv->netdev, >napi, bcm_sysport_tx_poll, 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-03-28 Thread Mike Pagano
commit: 83df79a46f6224f37563b47cc2456896185d048f
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Mar 28 17:01:33 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Mar 28 17:01:33 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=83df79a4

Linux patch 4.14.31

 _README  |4 +
 1030_linux-4.14.31.patch | 3861 ++
 2 files changed, 3865 insertions(+)

diff --git a/_README b/_README
index f410864..74f23dc 100644
--- a/_README
+++ b/_README
@@ -163,6 +163,10 @@ Patch:  1029_linux-4.14.30.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.30
 
+Patch:  1030_linux-4.14.31.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.31
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1030_linux-4.14.31.patch b/1030_linux-4.14.31.patch
new file mode 100644
index 000..37486ba
--- /dev/null
+++ b/1030_linux-4.14.31.patch
@@ -0,0 +1,3861 @@
+diff --git a/Documentation/ABI/testing/sysfs-bus-iio 
b/Documentation/ABI/testing/sysfs-bus-iio
+index 7eead5f97e02..64e65450f483 100644
+--- a/Documentation/ABI/testing/sysfs-bus-iio
 b/Documentation/ABI/testing/sysfs-bus-iio
+@@ -32,7 +32,7 @@ Description:
+   Description of the physical chip / device for device X.
+   Typically a part number.
+ 
+-What: /sys/bus/iio/devices/iio:deviceX/timestamp_clock
++What: /sys/bus/iio/devices/iio:deviceX/current_timestamp_clock
+ KernelVersion:4.5
+ Contact:  linux-...@vger.kernel.org
+ Description:
+diff --git a/Makefile b/Makefile
+index 29fc3c91f3e4..99e31da48422 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 30
++SUBLEVEL = 31
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+@@ -805,6 +805,15 @@ KBUILD_CFLAGS += $(call cc-disable-warning, pointer-sign)
+ # disable invalid "can't wrap" optimizations for signed / pointers
+ KBUILD_CFLAGS += $(call cc-option,-fno-strict-overflow)
+ 
++# clang sets -fmerge-all-constants by default as optimization, but this
++# is non-conforming behavior for C and in fact breaks the kernel, so we
++# need to disable it here generally.
++KBUILD_CFLAGS += $(call cc-option,-fno-merge-all-constants)
++
++# for gcc -fno-merge-all-constants disables everything, but it is fine
++# to have actual conforming behavior enabled.
++KBUILD_CFLAGS += $(call cc-option,-fmerge-constants)
++
+ # Make sure -fstack-check isn't enabled (like gentoo apparently did)
+ KBUILD_CFLAGS  += $(call cc-option,-fno-stack-check,)
+ 
+diff --git a/arch/arm64/mm/mmu.c b/arch/arm64/mm/mmu.c
+index 01bc0688d47d..f6b877d2726d 100644
+--- a/arch/arm64/mm/mmu.c
 b/arch/arm64/mm/mmu.c
+@@ -937,3 +937,13 @@ int pmd_clear_huge(pmd_t *pmd)
+   pmd_clear(pmd);
+   return 1;
+ }
++
++int pud_free_pmd_page(pud_t *pud)
++{
++  return pud_none(*pud);
++}
++
++int pmd_free_pte_page(pmd_t *pmd)
++{
++  return pmd_none(*pmd);
++}
+diff --git a/arch/h8300/include/asm/byteorder.h 
b/arch/h8300/include/asm/byteorder.h
+index ecff2d1ca5a3..6eaa7ad5fc2c 100644
+--- a/arch/h8300/include/asm/byteorder.h
 b/arch/h8300/include/asm/byteorder.h
+@@ -2,7 +2,6 @@
+ #ifndef __H8300_BYTEORDER_H__
+ #define __H8300_BYTEORDER_H__
+ 
+-#define __BIG_ENDIAN __ORDER_BIG_ENDIAN__
+ #include 
+ 
+ #endif
+diff --git a/arch/mips/lantiq/Kconfig b/arch/mips/lantiq/Kconfig
+index 692ae85a3e3d..8e3a1fc2bc39 100644
+--- a/arch/mips/lantiq/Kconfig
 b/arch/mips/lantiq/Kconfig
+@@ -13,6 +13,8 @@ choice
+ config SOC_AMAZON_SE
+   bool "Amazon SE"
+   select SOC_TYPE_XWAY
++  select MFD_SYSCON
++  select MFD_CORE
+ 
+ config SOC_XWAY
+   bool "XWAY"
+diff --git a/arch/mips/lantiq/xway/sysctrl.c b/arch/mips/lantiq/xway/sysctrl.c
+index 7611c3013793..c05bed624075 100644
+--- a/arch/mips/lantiq/xway/sysctrl.c
 b/arch/mips/lantiq/xway/sysctrl.c
+@@ -551,9 +551,9 @@ void __init ltq_soc_init(void)
+   clkdev_add_static(ltq_ar9_cpu_hz(), ltq_ar9_fpi_hz(),
+   ltq_ar9_fpi_hz(), CLOCK_250M);
+   clkdev_add_pmu("1f203018.usb2-phy", "phy", 1, 0, PMU_USB0_P);
+-  clkdev_add_pmu("1e101000.usb", "otg", 1, 0, PMU_USB0);
++  clkdev_add_pmu("1e101000.usb", "otg", 1, 0, PMU_USB0 | 
PMU_AHBM);
+   clkdev_add_pmu("1f203034.usb2-phy", "phy", 1, 0, PMU_USB1_P);
+-  clkdev_add_pmu("1e106000.usb", "otg", 1, 0, PMU_USB1);
++  clkdev_add_pmu("1e106000.usb", "otg", 1, 0, PMU_USB1 | 
PMU_AHBM);
+   clkdev_add_pmu("1e18.etop", "switch", 1, 0, PMU_SWITCH);
+   clkdev_add_pmu("1e103000.sdio", NULL, 1, 0, PMU_SDIO);
+   clkdev_add_pmu("1e103100.deu", NULL, 1, 0, PMU_DEU);
+@@ -562,7 +562,7 @@ void __init ltq_soc_init(void)
+   

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-03-25 Thread Mike Pagano
commit: 692deba84079e7c25e90e968b582ad005cf923a9
Author: Mike Pagano  gentoo  org>
AuthorDate: Sun Mar 25 13:38:21 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sun Mar 25 13:38:21 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=692deba8

Linux patch 4.14.30

 _README  |4 +
 1029_linux-4.14.30.patch | 2536 ++
 2 files changed, 2540 insertions(+)

diff --git a/_README b/_README
index aaa36a2..f410864 100644
--- a/_README
+++ b/_README
@@ -159,6 +159,10 @@ Patch:  1028_linux-4.14.29.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.29
 
+Patch:  1029_linux-4.14.30.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.30
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1029_linux-4.14.30.patch b/1029_linux-4.14.30.patch
new file mode 100644
index 000..6f52119
--- /dev/null
+++ b/1029_linux-4.14.30.patch
@@ -0,0 +1,2536 @@
+diff --git 
a/Documentation/devicetree/bindings/display/panel/toppoly,td028ttec1.txt 
b/Documentation/devicetree/bindings/display/panel/toppoly,td028ttec1.txt
+deleted file mode 100644
+index 7175dc3740ac..
+--- a/Documentation/devicetree/bindings/display/panel/toppoly,td028ttec1.txt
 /dev/null
+@@ -1,30 +0,0 @@
+-Toppoly TD028TTEC1 Panel
+-
+-
+-Required properties:
+-- compatible: "toppoly,td028ttec1"
+-
+-Optional properties:
+-- label: a symbolic name for the panel
+-
+-Required nodes:
+-- Video port for DPI input
+-
+-Example
+
+-
+-lcd-panel: td028ttec1@0 {
+-  compatible = "toppoly,td028ttec1";
+-  reg = <0>;
+-  spi-max-frequency = <10>;
+-  spi-cpol;
+-  spi-cpha;
+-
+-  label = "lcd";
+-  port {
+-  lcd_in: endpoint {
+-  remote-endpoint = <_out>;
+-  };
+-  };
+-};
+-
+diff --git 
a/Documentation/devicetree/bindings/display/panel/tpo,td028ttec1.txt 
b/Documentation/devicetree/bindings/display/panel/tpo,td028ttec1.txt
+new file mode 100644
+index ..ed34253d9fb1
+--- /dev/null
 b/Documentation/devicetree/bindings/display/panel/tpo,td028ttec1.txt
+@@ -0,0 +1,30 @@
++Toppoly TD028TTEC1 Panel
++
++
++Required properties:
++- compatible: "tpo,td028ttec1"
++
++Optional properties:
++- label: a symbolic name for the panel
++
++Required nodes:
++- Video port for DPI input
++
++Example
++---
++
++lcd-panel: td028ttec1@0 {
++  compatible = "tpo,td028ttec1";
++  reg = <0>;
++  spi-max-frequency = <10>;
++  spi-cpol;
++  spi-cpha;
++
++  label = "lcd";
++  port {
++  lcd_in: endpoint {
++  remote-endpoint = <_out>;
++  };
++  };
++};
++
+diff --git a/Makefile b/Makefile
+index 4b2aa0dd4043..29fc3c91f3e4 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 29
++SUBLEVEL = 30
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/alpha/kernel/console.c b/arch/alpha/kernel/console.c
+index 8e9a41966881..5476279329a6 100644
+--- a/arch/alpha/kernel/console.c
 b/arch/alpha/kernel/console.c
+@@ -21,6 +21,7 @@
+ struct pci_controller *pci_vga_hose;
+ static struct resource alpha_vga = {
+   .name   = "alpha-vga+",
++  .flags  = IORESOURCE_IO,
+   .start  = 0x3C0,
+   .end= 0x3DF
+ };
+diff --git a/arch/arm/boot/dts/aspeed-ast2500-evb.dts 
b/arch/arm/boot/dts/aspeed-ast2500-evb.dts
+index f53e89d63477..c971cc93f42d 100644
+--- a/arch/arm/boot/dts/aspeed-ast2500-evb.dts
 b/arch/arm/boot/dts/aspeed-ast2500-evb.dts
+@@ -16,7 +16,7 @@
+   bootargs = "console=ttyS4,115200 earlyprintk";
+   };
+ 
+-  memory {
++  memory@8000 {
+   reg = <0x8000 0x2000>;
+   };
+ };
+diff --git a/drivers/bluetooth/btqcomsmd.c b/drivers/bluetooth/btqcomsmd.c
+index bd810d01538a..093fd096f0c8 100644
+--- a/drivers/bluetooth/btqcomsmd.c
 b/drivers/bluetooth/btqcomsmd.c
+@@ -86,7 +86,8 @@ static int btqcomsmd_send(struct hci_dev *hdev, struct 
sk_buff *skb)
+   break;
+   }
+ 
+-  kfree_skb(skb);
++  if (!ret)
++  kfree_skb(skb);
+ 
+   return ret;
+ }
+diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c
+index 392f412b4575..c9f0ac083a3e 100644
+--- a/drivers/bluetooth/hci_qca.c
 b/drivers/bluetooth/hci_qca.c
+@@ -933,6 +933,9 @@ static int qca_setup(struct hci_uart *hu)
+   if (!ret) {
+   set_bit(STATE_IN_BAND_SLEEP_ENABLED, >flags);
+   qca_debugfs_init(hdev);
++  } else if (ret == -ENOENT) {
++  /* No patch/nvm-config found, run with original fw/config */
++  ret = 0;
+   }
+ 
+   /* Setup bdaddr */
+diff --git 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-03-21 Thread Mike Pagano
commit: 132266687094fdbd0edd1e77a757165d29b8a673
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Mar 21 14:41:38 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Mar 21 14:41:38 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=13226668

Linux patch 4.14.29

 _README  |4 +
 1028_linux-4.14.29.patch | 1579 ++
 2 files changed, 1583 insertions(+)

diff --git a/_README b/_README
index a239cba..aaa36a2 100644
--- a/_README
+++ b/_README
@@ -155,6 +155,10 @@ Patch:  1027_linux-4.14.28.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.28
 
+Patch:  1028_linux-4.14.29.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.29
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1028_linux-4.14.29.patch b/1028_linux-4.14.29.patch
new file mode 100644
index 000..8122364
--- /dev/null
+++ b/1028_linux-4.14.29.patch
@@ -0,0 +1,1579 @@
+diff --git a/Makefile b/Makefile
+index 9ae370a47ff9..4b2aa0dd4043 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 28
++SUBLEVEL = 29
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/parisc/kernel/cache.c b/arch/parisc/kernel/cache.c
+index 79089778725b..e3b45546d589 100644
+--- a/arch/parisc/kernel/cache.c
 b/arch/parisc/kernel/cache.c
+@@ -543,7 +543,8 @@ void flush_cache_mm(struct mm_struct *mm)
+  rp3440, etc.  So, avoid it if the mm isn't too big.  */
+   if ((!IS_ENABLED(CONFIG_SMP) || !arch_irqs_disabled()) &&
+   mm_total_size(mm) >= parisc_cache_flush_threshold) {
+-  flush_tlb_all();
++  if (mm->context)
++  flush_tlb_all();
+   flush_cache_all();
+   return;
+   }
+@@ -571,6 +572,8 @@ void flush_cache_mm(struct mm_struct *mm)
+   pfn = pte_pfn(*ptep);
+   if (!pfn_valid(pfn))
+   continue;
++  if (unlikely(mm->context))
++  flush_tlb_page(vma, addr);
+   __flush_cache_page(vma, addr, PFN_PHYS(pfn));
+   }
+   }
+@@ -579,26 +582,46 @@ void flush_cache_mm(struct mm_struct *mm)
+ void flush_cache_range(struct vm_area_struct *vma,
+   unsigned long start, unsigned long end)
+ {
++  pgd_t *pgd;
++  unsigned long addr;
++
+   if ((!IS_ENABLED(CONFIG_SMP) || !arch_irqs_disabled()) &&
+   end - start >= parisc_cache_flush_threshold) {
+-  flush_tlb_range(vma, start, end);
++  if (vma->vm_mm->context)
++  flush_tlb_range(vma, start, end);
+   flush_cache_all();
+   return;
+   }
+ 
+-  flush_user_dcache_range_asm(start, end);
+-  if (vma->vm_flags & VM_EXEC)
+-  flush_user_icache_range_asm(start, end);
+-  flush_tlb_range(vma, start, end);
++  if (vma->vm_mm->context == mfsp(3)) {
++  flush_user_dcache_range_asm(start, end);
++  if (vma->vm_flags & VM_EXEC)
++  flush_user_icache_range_asm(start, end);
++  flush_tlb_range(vma, start, end);
++  return;
++  }
++
++  pgd = vma->vm_mm->pgd;
++  for (addr = vma->vm_start; addr < vma->vm_end; addr += PAGE_SIZE) {
++  unsigned long pfn;
++  pte_t *ptep = get_ptep(pgd, addr);
++  if (!ptep)
++  continue;
++  pfn = pte_pfn(*ptep);
++  if (pfn_valid(pfn)) {
++  if (unlikely(vma->vm_mm->context))
++  flush_tlb_page(vma, addr);
++  __flush_cache_page(vma, addr, PFN_PHYS(pfn));
++  }
++  }
+ }
+ 
+ void
+ flush_cache_page(struct vm_area_struct *vma, unsigned long vmaddr, unsigned 
long pfn)
+ {
+-  BUG_ON(!vma->vm_mm->context);
+-
+   if (pfn_valid(pfn)) {
+-  flush_tlb_page(vma, vmaddr);
++  if (likely(vma->vm_mm->context))
++  flush_tlb_page(vma, vmaddr);
+   __flush_cache_page(vma, vmaddr, PFN_PHYS(pfn));
+   }
+ }
+diff --git a/arch/x86/include/asm/cpufeatures.h 
b/arch/x86/include/asm/cpufeatures.h
+index 66c14347c502..23a65439c37c 100644
+--- a/arch/x86/include/asm/cpufeatures.h
 b/arch/x86/include/asm/cpufeatures.h
+@@ -314,6 +314,7 @@
+ #define X86_FEATURE_VPCLMULQDQ(16*32+10) /* Carry-Less 
Multiplication Double Quadword */
+ #define X86_FEATURE_AVX512_VNNI   (16*32+11) /* Vector Neural 
Network Instructions */
+ #define X86_FEATURE_AVX512_BITALG (16*32+12) /* Support for VPOPCNT[B,W] 
and VPSHUF-BITQMB instructions */
++#define X86_FEATURE_TME   

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-03-19 Thread Mike Pagano
commit: da10bd03bde5c9b19e5305f4e43265b0e39309a4
Author: Mike Pagano  gentoo  org>
AuthorDate: Mon Mar 19 12:01:13 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Mon Mar 19 12:01:13 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=da10bd03

Linux patch 4.14.28

 _README  |4 +
 1027_linux-4.14.28.patch | 3142 ++
 2 files changed, 3146 insertions(+)

diff --git a/_README b/_README
index 97c0f9e..a239cba 100644
--- a/_README
+++ b/_README
@@ -151,6 +151,10 @@ Patch:  1026_linux-4.14.27.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.27
 
+Patch:  1027_linux-4.14.28.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.28
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1027_linux-4.14.28.patch b/1027_linux-4.14.28.patch
new file mode 100644
index 000..38b5827
--- /dev/null
+++ b/1027_linux-4.14.28.patch
@@ -0,0 +1,3142 @@
+diff --git a/Documentation/devicetree/bindings/usb/usb-xhci.txt 
b/Documentation/devicetree/bindings/usb/usb-xhci.txt
+index 2d80b60eeabe..7a69b8b47b97 100644
+--- a/Documentation/devicetree/bindings/usb/usb-xhci.txt
 b/Documentation/devicetree/bindings/usb/usb-xhci.txt
+@@ -12,6 +12,7 @@ Required properties:
+ - "renesas,xhci-r8a7793" for r8a7793 SoC
+ - "renesas,xhci-r8a7795" for r8a7795 SoC
+ - "renesas,xhci-r8a7796" for r8a7796 SoC
++- "renesas,xhci-r8a77965" for r8a77965 SoC
+ - "renesas,rcar-gen2-xhci" for a generic R-Car Gen2 compatible device
+ - "renesas,rcar-gen3-xhci" for a generic R-Car Gen3 compatible device
+ - "xhci-platform" (deprecated)
+diff --git a/Makefile b/Makefile
+index 00e969db94b8..9ae370a47ff9 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 27
++SUBLEVEL = 28
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arm/boot/dts/am335x-pepper.dts 
b/arch/arm/boot/dts/am335x-pepper.dts
+index 03c7d77023c6..9fb7426070ce 100644
+--- a/arch/arm/boot/dts/am335x-pepper.dts
 b/arch/arm/boot/dts/am335x-pepper.dts
+@@ -139,7 +139,7 @@
+ _codec {
+   status = "okay";
+ 
+-  gpio-reset = < 16 GPIO_ACTIVE_LOW>;
++  reset-gpios = < 16 GPIO_ACTIVE_LOW>;
+   AVDD-supply = <_reg>;
+   IOVDD-supply = <_reg>;
+   DRVDD-supply = <_reg>;
+diff --git a/arch/arm/boot/dts/exynos4412-trats2.dts 
b/arch/arm/boot/dts/exynos4412-trats2.dts
+index bceb919ac637..65602cd51a4e 100644
+--- a/arch/arm/boot/dts/exynos4412-trats2.dts
 b/arch/arm/boot/dts/exynos4412-trats2.dts
+@@ -395,7 +395,7 @@
+   reg = <0>;
+   vdd3-supply = <_vdd3_reg>;
+   vci-supply = <_reg>;
+-  reset-gpios = < 5 GPIO_ACTIVE_HIGH>;
++  reset-gpios = < 1 GPIO_ACTIVE_HIGH>;
+   power-on-delay= <50>;
+   reset-delay = <100>;
+   init-delay = <100>;
+diff --git a/arch/arm/boot/dts/omap3-n900.dts 
b/arch/arm/boot/dts/omap3-n900.dts
+index 4acd32a1c4ef..c66ee8432a85 100644
+--- a/arch/arm/boot/dts/omap3-n900.dts
 b/arch/arm/boot/dts/omap3-n900.dts
+@@ -558,7 +558,7 @@
+   tlv320aic3x: tlv320aic3x@18 {
+   compatible = "ti,tlv320aic3x";
+   reg = <0x18>;
+-  gpio-reset = < 28 GPIO_ACTIVE_HIGH>; /* 60 */
++  reset-gpios = < 28 GPIO_ACTIVE_LOW>; /* 60 */
+   ai3x-gpio-func = <
+   0 /* AIC3X_GPIO1_FUNC_DISABLED */
+   5 /* AIC3X_GPIO2_FUNC_DIGITAL_MIC_INPUT */
+@@ -575,7 +575,7 @@
+   tlv320aic3x_aux: tlv320aic3x@19 {
+   compatible = "ti,tlv320aic3x";
+   reg = <0x19>;
+-  gpio-reset = < 28 GPIO_ACTIVE_HIGH>; /* 60 */
++  reset-gpios = < 28 GPIO_ACTIVE_LOW>; /* 60 */
+ 
+   AVDD-supply = <>;
+   DRVDD-supply = <>;
+diff --git a/arch/arm/boot/dts/r8a7791-koelsch.dts 
b/arch/arm/boot/dts/r8a7791-koelsch.dts
+index 0ce0b278e1cb..25c3a10d669c 100644
+--- a/arch/arm/boot/dts/r8a7791-koelsch.dts
 b/arch/arm/boot/dts/r8a7791-koelsch.dts
+@@ -278,6 +278,12 @@
+   };
+   };
+ 
++  cec_clock: cec-clock {
++  compatible = "fixed-clock";
++  #clock-cells = <0>;
++  clock-frequency = <1200>;
++  };
++
+   hdmi-out {
+   compatible = "hdmi-connector";
+   type = "a";
+@@ -642,12 +648,6 @@
+   };
+   };
+ 
+-  cec_clock: cec-clock {
+-  compatible = "fixed-clock";
+-  #clock-cells = <0>;
+-  clock-frequency = <1200>;
+-  };
+-
+   hdmi@39 {
+   compatible = "adi,adv7511w";
+   reg = <0x39>;
+diff --git a/arch/arm64/boot/dts/renesas/salvator-common.dtsi 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-03-11 Thread Mike Pagano
commit: 7a4c7480ccceef83f2a6d52190ea1a560855a423
Author: Mike Pagano  gentoo  org>
AuthorDate: Sun Mar 11 17:37:52 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sun Mar 11 17:37:52 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=7a4c7480

Linux patch 4.14.26

 _README  |   4 +
 1025_linux-4.14.26.patch | 561 +++
 2 files changed, 565 insertions(+)

diff --git a/_README b/_README
index c93a10e..3d7a325 100644
--- a/_README
+++ b/_README
@@ -143,6 +143,10 @@ Patch:  1024_linux-4.14.25.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.25
 
+Patch:  1025_linux-4.14.26.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.26
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1025_linux-4.14.26.patch b/1025_linux-4.14.26.patch
new file mode 100644
index 000..66b1566
--- /dev/null
+++ b/1025_linux-4.14.26.patch
@@ -0,0 +1,561 @@
+diff --git a/Documentation/virtual/kvm/cpuid.txt 
b/Documentation/virtual/kvm/cpuid.txt
+index 3c65feb83010..a81c97a4b4a5 100644
+--- a/Documentation/virtual/kvm/cpuid.txt
 b/Documentation/virtual/kvm/cpuid.txt
+@@ -54,6 +54,10 @@ KVM_FEATURE_PV_UNHALT  || 7 || guest checks 
this feature bit
+||   || before enabling paravirtualized
+||   || spinlock support.
+ --
++KVM_FEATURE_ASYNC_PF_VMEXIT||10 || paravirtualized async PF VM 
exit
++   ||   || can be enabled by setting bit 2
++   ||   || when writing to msr 0x4b564d02
++--
+ KVM_FEATURE_CLOCKSOURCE_STABLE_BIT ||24 || host will warn if no guest-side
+||   || per-cpu warps are expected in
+||   || kvmclock.
+diff --git a/Documentation/virtual/kvm/msr.txt 
b/Documentation/virtual/kvm/msr.txt
+index 1ebecc115dc6..f3f0d57ced8e 100644
+--- a/Documentation/virtual/kvm/msr.txt
 b/Documentation/virtual/kvm/msr.txt
+@@ -170,7 +170,8 @@ MSR_KVM_ASYNC_PF_EN: 0x4b564d02
+   when asynchronous page faults are enabled on the vcpu 0 when
+   disabled. Bit 1 is 1 if asynchronous page faults can be injected
+   when vcpu is in cpl == 0. Bit 2 is 1 if asynchronous page faults
+-  are delivered to L1 as #PF vmexits.
++  are delivered to L1 as #PF vmexits.  Bit 2 can be set only if
++  KVM_FEATURE_ASYNC_PF_VMEXIT is present in CPUID.
+ 
+   First 4 byte of 64 byte memory location will be written to by
+   the hypervisor at the time of asynchronous page fault (APF)
+diff --git a/Makefile b/Makefile
+index 0fdae0f455ef..666182dda187 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 25
++SUBLEVEL = 26
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arm64/net/bpf_jit_comp.c b/arch/arm64/net/bpf_jit_comp.c
+index bb32f7f6dd0f..be155f70f108 100644
+--- a/arch/arm64/net/bpf_jit_comp.c
 b/arch/arm64/net/bpf_jit_comp.c
+@@ -238,8 +238,9 @@ static int emit_bpf_tail_call(struct jit_ctx *ctx)
+   off = offsetof(struct bpf_array, map.max_entries);
+   emit_a64_mov_i64(tmp, off, ctx);
+   emit(A64_LDR32(tmp, r2, tmp), ctx);
++  emit(A64_MOV(0, r3, r3), ctx);
+   emit(A64_CMP(0, r3, tmp), ctx);
+-  emit(A64_B_(A64_COND_GE, jmp_offset), ctx);
++  emit(A64_B_(A64_COND_CS, jmp_offset), ctx);
+ 
+   /* if (tail_call_cnt > MAX_TAIL_CALL_CNT)
+* goto out;
+@@ -247,7 +248,7 @@ static int emit_bpf_tail_call(struct jit_ctx *ctx)
+*/
+   emit_a64_mov_i64(tmp, MAX_TAIL_CALL_CNT, ctx);
+   emit(A64_CMP(1, tcc, tmp), ctx);
+-  emit(A64_B_(A64_COND_GT, jmp_offset), ctx);
++  emit(A64_B_(A64_COND_HI, jmp_offset), ctx);
+   emit(A64_ADD_I(1, tcc, tcc, 1), ctx);
+ 
+   /* prog = array->ptrs[index];
+diff --git a/arch/powerpc/net/bpf_jit_comp64.c 
b/arch/powerpc/net/bpf_jit_comp64.c
+index 5d115bd32539..bd0786c23109 100644
+--- a/arch/powerpc/net/bpf_jit_comp64.c
 b/arch/powerpc/net/bpf_jit_comp64.c
+@@ -241,6 +241,7 @@ static void bpf_jit_emit_tail_call(u32 *image, struct 
codegen_context *ctx, u32
+*   goto out;
+*/
+   PPC_LWZ(b2p[TMP_REG_1], b2p_bpf_array, offsetof(struct bpf_array, 
map.max_entries));
++  PPC_RLWINM(b2p_index, b2p_index, 0, 0, 31);
+   PPC_CMPLW(b2p_index, b2p[TMP_REG_1]);
+   PPC_BCC(COND_GE, out);
+ 
+diff --git a/arch/x86/include/asm/nospec-branch.h 
b/arch/x86/include/asm/nospec-branch.h
+index 76b058533e47..81a1be326571 100644
+--- 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-03-09 Thread Alice Ferrazzi
commit: 4523b605bcff7dc5e5e0ec9c9d126621b9f09517
Author: Alice Ferrazzi  gentoo  org>
AuthorDate: Fri Mar  9 16:34:01 2018 +
Commit: Alice Ferrazzi  gentoo  org>
CommitDate: Fri Mar  9 16:34:01 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=4523b605

linux kernel 4.14.25

 _README  |4 +
 1024_linux-4.14.25.patch | 4194 ++
 2 files changed, 4198 insertions(+)

diff --git a/_README b/_README
index da94971..c93a10e 100644
--- a/_README
+++ b/_README
@@ -139,6 +139,10 @@ Patch:  1023_linux-4.14.24.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.24
 
+Patch:  1024_linux-4.14.25.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.25
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1024_linux-4.14.25.patch b/1024_linux-4.14.25.patch
new file mode 100644
index 000..ebf9d89
--- /dev/null
+++ b/1024_linux-4.14.25.patch
@@ -0,0 +1,4194 @@
+diff --git a/Documentation/networking/ip-sysctl.txt 
b/Documentation/networking/ip-sysctl.txt
+index 77f4de59dc9c..d499676890d8 100644
+--- a/Documentation/networking/ip-sysctl.txt
 b/Documentation/networking/ip-sysctl.txt
+@@ -508,7 +508,7 @@ tcp_rmem - vector of 3 INTEGERs: min, default, max
+   min: Minimal size of receive buffer used by TCP sockets.
+   It is guaranteed to each TCP socket, even under moderate memory
+   pressure.
+-  Default: 1 page
++  Default: 4K
+ 
+   default: initial size of receive buffer used by TCP sockets.
+   This value overrides net.core.rmem_default used by other protocols.
+@@ -666,7 +666,7 @@ tcp_window_scaling - BOOLEAN
+ tcp_wmem - vector of 3 INTEGERs: min, default, max
+   min: Amount of memory reserved for send buffers for TCP sockets.
+   Each TCP socket has rights to use it due to fact of its birth.
+-  Default: 1 page
++  Default: 4K
+ 
+   default: initial size of send buffer used by TCP sockets.  This
+   value overrides net.core.wmem_default used by other protocols.
+diff --git a/Makefile b/Makefile
+index 38acc6047d7d..0fdae0f455ef 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 24
++SUBLEVEL = 25
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arm/boot/dts/logicpd-som-lv.dtsi 
b/arch/arm/boot/dts/logicpd-som-lv.dtsi
+index 4f2c5ec75714..e262fa9ef334 100644
+--- a/arch/arm/boot/dts/logicpd-som-lv.dtsi
 b/arch/arm/boot/dts/logicpd-som-lv.dtsi
+@@ -97,6 +97,8 @@
+ };
+ 
+  {
++  pinctrl-names = "default";
++  pinctrl-0 = <_pins>;
+   clock-frequency = <260>;
+ 
+   twl: twl@48 {
+@@ -215,7 +217,12 @@
+   >;
+   };
+ 
+-
++  i2c1_pins: pinmux_i2c1_pins {
++  pinctrl-single,pins = <
++  OMAP3_CORE1_IOPAD(0x21ba, PIN_INPUT | MUX_MODE0)
/* i2c1_scl.i2c1_scl */
++  OMAP3_CORE1_IOPAD(0x21bc, PIN_INPUT | MUX_MODE0)
/* i2c1_sda.i2c1_sda */
++  >;
++  };
+ };
+ 
+ _pmx_wkup {
+diff --git a/arch/arm/boot/dts/logicpd-torpedo-som.dtsi 
b/arch/arm/boot/dts/logicpd-torpedo-som.dtsi
+index 6d89736c7b44..cf22b35f0a28 100644
+--- a/arch/arm/boot/dts/logicpd-torpedo-som.dtsi
 b/arch/arm/boot/dts/logicpd-torpedo-som.dtsi
+@@ -104,6 +104,8 @@
+ };
+ 
+  {
++  pinctrl-names = "default";
++  pinctrl-0 = <_pins>;
+   clock-frequency = <260>;
+ 
+   twl: twl@48 {
+@@ -211,6 +213,12 @@
+   OMAP3_CORE1_IOPAD(0x21b8, PIN_INPUT | MUX_MODE0)
/* hsusb0_data7.hsusb0_data7 */
+   >;
+   };
++  i2c1_pins: pinmux_i2c1_pins {
++  pinctrl-single,pins = <
++  OMAP3_CORE1_IOPAD(0x21ba, PIN_INPUT | MUX_MODE0)
/* i2c1_scl.i2c1_scl */
++  OMAP3_CORE1_IOPAD(0x21bc, PIN_INPUT | MUX_MODE0)
/* i2c1_sda.i2c1_sda */
++  >;
++  };
+ };
+ 
+  {
+diff --git a/arch/arm/boot/dts/rk3288-phycore-som.dtsi 
b/arch/arm/boot/dts/rk3288-phycore-som.dtsi
+index 99cfae875e12..5eae4776ffde 100644
+--- a/arch/arm/boot/dts/rk3288-phycore-som.dtsi
 b/arch/arm/boot/dts/rk3288-phycore-som.dtsi
+@@ -110,26 +110,6 @@
+   };
+ };
+ 
+- {
+-  cpu0-supply = <_cpu>;
+-  operating-points = <
+-  /* KHzuV */
+-  180 140
+-  1608000 135
+-  1512000 130
+-  1416000 120
+-  120 110
+-  1008000 105
+-   816000 100
+-   696000  95
+-   60  90
+-   408000  90
+-   312000  90
+-   216000  90
+-   126000  90
+-  >;
+-};
+-
+  {
+   status = "okay";
+   bus-width = 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-03-04 Thread Alice Ferrazzi
commit: 79fc437a44836427496cec54d9d3d36f320b0fc6
Author: Alice Ferrazzi  gentoo  org>
AuthorDate: Mon Mar  5 02:24:03 2018 +
Commit: Alice Ferrazzi  gentoo  org>
CommitDate: Mon Mar  5 02:24:03 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=79fc437a

linux kernel 4.14.24

 _README  |4 +
 1023_linux-4.14.24.patch | 4370 ++
 2 files changed, 4374 insertions(+)

diff --git a/_README b/_README
index 6827bed..da94971 100644
--- a/_README
+++ b/_README
@@ -135,6 +135,10 @@ Patch:  1022_linux-4.14.23.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.23
 
+Patch:  1023_linux-4.14.24.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.24
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1023_linux-4.14.24.patch b/1023_linux-4.14.24.patch
new file mode 100644
index 000..2c3cebe
--- /dev/null
+++ b/1023_linux-4.14.24.patch
@@ -0,0 +1,4370 @@
+diff --git a/Makefile b/Makefile
+index 169f3199274f..38acc6047d7d 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 23
++SUBLEVEL = 24
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arm/boot/dts/ls1021a-qds.dts 
b/arch/arm/boot/dts/ls1021a-qds.dts
+index 940875316d0f..67b4de0e3439 100644
+--- a/arch/arm/boot/dts/ls1021a-qds.dts
 b/arch/arm/boot/dts/ls1021a-qds.dts
+@@ -215,7 +215,7 @@
+   reg = <0x2a>;
+   VDDA-supply = <_3p3v>;
+   VDDIO-supply = <_3p3v>;
+-  clocks = <_mclk 1>;
++  clocks = <_mclk>;
+   };
+   };
+   };
+diff --git a/arch/arm/boot/dts/ls1021a-twr.dts 
b/arch/arm/boot/dts/ls1021a-twr.dts
+index a8b148ad1dd2..44715c8ef756 100644
+--- a/arch/arm/boot/dts/ls1021a-twr.dts
 b/arch/arm/boot/dts/ls1021a-twr.dts
+@@ -187,7 +187,7 @@
+   reg = <0x0a>;
+   VDDA-supply = <_3p3v>;
+   VDDIO-supply = <_3p3v>;
+-  clocks = <_mclk 1>;
++  clocks = <_mclk>;
+   };
+ };
+ 
+diff --git a/arch/arm/lib/csumpartialcopyuser.S 
b/arch/arm/lib/csumpartialcopyuser.S
+index 1712f132b80d..b83fdc06286a 100644
+--- a/arch/arm/lib/csumpartialcopyuser.S
 b/arch/arm/lib/csumpartialcopyuser.S
+@@ -85,7 +85,11 @@
+   .pushsection .text.fixup,"ax"
+   .align  4
+ 9001: mov r4, #-EFAULT
++#ifdef CONFIG_CPU_SW_DOMAIN_PAN
++  ldr r5, [sp, #9*4]  @ *err_ptr
++#else
+   ldr r5, [sp, #8*4]  @ *err_ptr
++#endif
+   str r4, [r5]
+   ldmia   sp, {r1, r2}@ retrieve dst, len
+   add r2, r2, r1
+diff --git a/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts 
b/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts
+index 2b6b792dab93..e6ee7443b530 100644
+--- a/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts
 b/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dts
+@@ -228,8 +228,11 @@
+ 
+ _eth0 {
+   status = "okay";
++  /* Network PHY */
+   phy = <>;
+   phy-mode = "10gbase-kr";
++  /* Generic PHY, providing serdes lanes */
++  phys = <_comphy4 0>;
+ };
+ 
+ _sata0 {
+@@ -263,15 +266,21 @@
+ 
+ _eth0 {
+   status = "okay";
++  /* Network PHY */
+   phy = <>;
+   phy-mode = "10gbase-kr";
++  /* Generic PHY, providing serdes lanes */
++  phys = <_comphy4 0>;
+ };
+ 
+ _eth1 {
+   /* CPS Lane 0 - J5 (Gigabit RJ45) */
+   status = "okay";
++  /* Network PHY */
+   phy = <_phy>;
+   phy-mode = "sgmii";
++  /* Generic PHY, providing serdes lanes */
++  phys = <_comphy0 1>;
+ };
+ 
+ _pinctrl {
+diff --git a/arch/arm64/boot/dts/marvell/armada-cp110-master.dtsi 
b/arch/arm64/boot/dts/marvell/armada-cp110-master.dtsi
+index 32690107c1cc..9a7b63cd63a3 100644
+--- a/arch/arm64/boot/dts/marvell/armada-cp110-master.dtsi
 b/arch/arm64/boot/dts/marvell/armada-cp110-master.dtsi
+@@ -111,6 +111,44 @@
+   };
+   };
+ 
++  cpm_comphy: phy@12 {
++  compatible = "marvell,comphy-cp110";
++  reg = <0x12 0x6000>;
++  marvell,system-controller = <_syscon0>;
++  #address-cells = <1>;
++  #size-cells = <0>;
++
++  cpm_comphy0: phy@0 {
++  reg = <0>;
++  #phy-cells = <1>;
++  };
++
++  cpm_comphy1: phy@1 {
++  

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-02-28 Thread Alice Ferrazzi
commit: 6e41b4c6b3ab224da9f551d1711ac040df3d675b
Author: Alice Ferrazzi  gentoo  org>
AuthorDate: Wed Feb 28 18:28:24 2018 +
Commit: Alice Ferrazzi  gentoo  org>
CommitDate: Wed Feb 28 18:28:51 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=6e41b4c6

ia64 fix ptrace

 _README|  4 +++
 1700_ia64_fix_ptrace.patch | 87 ++
 2 files changed, 91 insertions(+)

diff --git a/_README b/_README
index 8345213..6827bed 100644
--- a/_README
+++ b/_README
@@ -143,6 +143,10 @@ Patch:  
1510_fs-enable-link-security-restrictions-by-default.patch
 From:   
http://sources.debian.net/src/linux/3.16.7-ckt4-3/debian/patches/debian/fs-enable-link-security-restrictions-by-default.patch/
 Desc:   Enable link security restrictions by default.
 
+Patch:  1700_ia64_fix_ptrace.patch
+From:   https://patchwork.kernel.org/patch/10198159/
+Desc:   ia64: fix ptrace(PTRACE_GETREGS) (unbreaks strace, gdb).
+
 Patch: 2100_bcache-data-corruption-fix-for-bi-partno.patch
 From:   
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=62530ed8b1d07a45dec94d46e521c0c6c2d476e6
 Desc:   bio: ensure __bio_clone_fast copies bi_partno. 

diff --git a/1700_ia64_fix_ptrace.patch b/1700_ia64_fix_ptrace.patch
new file mode 100644
index 000..6173b05
--- /dev/null
+++ b/1700_ia64_fix_ptrace.patch
@@ -0,0 +1,87 @@
+From patchwork Fri Feb  2 22:12:24 2018
+Content-Type: text/plain; charset="utf-8"
+MIME-Version: 1.0
+Content-Transfer-Encoding: 8bit
+Subject: ia64: fix ptrace(PTRACE_GETREGS) (unbreaks strace, gdb)
+From: Sergei Trofimovich 
+X-Patchwork-Id: 10198159
+Message-Id: <20180202221224.16597-1-sly...@gentoo.org>
+To: Tony Luck , Fenghua Yu ,
+ linux-i...@vger.kernel.org, linux-ker...@vger.kernel.org
+Cc: Sergei Trofimovich 
+Date: Fri,  2 Feb 2018 22:12:24 +
+
+The strace breakage looks like that:
+./strace: get_regs: get_regs_error: Input/output error
+
+It happens because ia64 needs to load unwind tables
+to read certain registers. Unwind tables fail to load
+due to GCC quirk on the following code:
+
+extern char __end_unwind[];
+const struct unw_table_entry *end = (struct unw_table_entry *)table_end;
+table->end = segment_base + end[-1].end_offset;
+
+GCC does not generate correct code for this single memory
+reference after constant propagation (see https://gcc.gnu.org/PR84184).
+Two triggers are required for bad code generation:
+- '__end_unwind' has alignment lower (char), than
+  'struct unw_table_entry' (8).
+- symbol offset is negative.
+
+This commit workarounds it by fixing alignment of '__end_unwind'.
+While at it use hidden symbols to generate shorter gp-relative
+relocations.
+
+CC: Tony Luck 
+CC: Fenghua Yu 
+CC: linux-i...@vger.kernel.org
+CC: linux-ker...@vger.kernel.org
+Bug: https://github.com/strace/strace/issues/33
+Bug: https://gcc.gnu.org/PR84184
+Reported-by: Émeric Maschino 
+Signed-off-by: Sergei Trofimovich 
+Tested-by: stanton_a...@mail.com
+---
+ arch/ia64/include/asm/sections.h |  1 -
+ arch/ia64/kernel/unwind.c| 15 ++-
+ 2 files changed, 14 insertions(+), 2 deletions(-)
+
+diff --git a/arch/ia64/include/asm/sections.h 
b/arch/ia64/include/asm/sections.h
+index f3481408594e..0fc4f1757a44 100644
+--- a/arch/ia64/include/asm/sections.h
 b/arch/ia64/include/asm/sections.h
+@@ -24,7 +24,6 @@ extern char __start_gate_mckinley_e9_patchlist[], 
__end_gate_mckinley_e9_patchli
+ extern char __start_gate_vtop_patchlist[], __end_gate_vtop_patchlist[];
+ extern char __start_gate_fsyscall_patchlist[], 
__end_gate_fsyscall_patchlist[];
+ extern char __start_gate_brl_fsys_bubble_down_patchlist[], 
__end_gate_brl_fsys_bubble_down_patchlist[];
+-extern char __start_unwind[], __end_unwind[];
+ extern char __start_ivt_text[], __end_ivt_text[];
+ 
+ #undef dereference_function_descriptor
+diff --git a/arch/ia64/kernel/unwind.c b/arch/ia64/kernel/unwind.c
+index e04efa088902..025ba6700790 100644
+--- a/arch/ia64/kernel/unwind.c
 b/arch/ia64/kernel/unwind.c
+@@ -2243,7 +2243,20 @@ __initcall(create_gate_table);
+ void __init
+ unw_init (void)
+ {
+-  extern char __gp[];
++  #define __ia64_hidden __attribute__((visibility("hidden")))
++  /*
++   * We use hidden symbols to generate more efficient code using
++   * gp-relative addressing.
++   */
++  extern char __gp[] __ia64_hidden;
++  /*
++   * Unwind tables need to have proper alignment as init_unwind_table()
++   * uses negative offsets against '__end_unwind'.
++   * See https://gcc.gnu.org/PR84184
++   */
++  extern const struct unw_table_entry __start_unwind[] __ia64_hidden;
++  extern const struct unw_table_entry __end_unwind[] __ia64_hidden;
++  #undef 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-02-28 Thread Alice Ferrazzi
commit: 3eba7820bf6cda0c1d1c39e04bf86ad28643e815
Author: Alice Ferrazzi  gentoo  org>
AuthorDate: Wed Feb 28 15:00:30 2018 +
Commit: Alice Ferrazzi  gentoo  org>
CommitDate: Wed Feb 28 15:00:30 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=3eba7820

linux kernel 4.14.23

 _README  |4 +
 1022_linux-4.14.23.patch | 1575 ++
 2 files changed, 1579 insertions(+)

diff --git a/_README b/_README
index d7b4bf6..8345213 100644
--- a/_README
+++ b/_README
@@ -131,6 +131,10 @@ Patch:  1021_linux-4.14.22.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.22
 
+Patch:  1022_linux-4.14.23.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.23
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1022_linux-4.14.23.patch b/1022_linux-4.14.23.patch
new file mode 100644
index 000..479bcb6
--- /dev/null
+++ b/1022_linux-4.14.23.patch
@@ -0,0 +1,1575 @@
+diff --git a/Makefile b/Makefile
+index 03d41143900c..169f3199274f 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 22
++SUBLEVEL = 23
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c
+index 582142ae92e1..345d4e521191 100644
+--- a/arch/arm64/kernel/cpufeature.c
 b/arch/arm64/kernel/cpufeature.c
+@@ -175,9 +175,11 @@ static const struct arm64_ftr_bits ftr_id_aa64mmfr2[] = {
+ };
+ 
+ static const struct arm64_ftr_bits ftr_ctr[] = {
+-  ARM64_FTR_BITS(FTR_VISIBLE, FTR_STRICT, FTR_EXACT, 31, 1, 1),   /* RAO 
*/
++  ARM64_FTR_BITS(FTR_VISIBLE, FTR_STRICT, FTR_EXACT, 31, 1, 1),   
/* RES1 */
++  ARM64_FTR_BITS(FTR_VISIBLE, FTR_STRICT, FTR_LOWER_SAFE, 29, 1, 1),  
/* DIC */
++  ARM64_FTR_BITS(FTR_VISIBLE, FTR_STRICT, FTR_LOWER_SAFE, 28, 1, 1),  
/* IDC */
+   ARM64_FTR_BITS(FTR_VISIBLE, FTR_STRICT, FTR_HIGHER_SAFE, 24, 4, 0), 
/* CWG */
+-  ARM64_FTR_BITS(FTR_VISIBLE, FTR_STRICT, FTR_LOWER_SAFE, 20, 4, 0),  
/* ERG */
++  ARM64_FTR_BITS(FTR_VISIBLE, FTR_STRICT, FTR_HIGHER_SAFE, 20, 4, 0), 
/* ERG */
+   ARM64_FTR_BITS(FTR_VISIBLE, FTR_STRICT, FTR_LOWER_SAFE, 16, 4, 1),  
/* DminLine */
+   /*
+* Linux can handle differing I-cache policies. Userspace JITs will
+diff --git a/arch/arm64/kernel/traps.c b/arch/arm64/kernel/traps.c
+index 8383af15a759..4fc0e958770b 100644
+--- a/arch/arm64/kernel/traps.c
 b/arch/arm64/kernel/traps.c
+@@ -56,7 +56,7 @@ static const char *handler[]= {
+   "Error"
+ };
+ 
+-int show_unhandled_signals = 1;
++int show_unhandled_signals = 0;
+ 
+ /*
+  * Dump out the contents of some kernel memory nicely...
+@@ -573,14 +573,6 @@ asmlinkage long do_ni_syscall(struct pt_regs *regs)
+   }
+ #endif
+ 
+-  if (show_unhandled_signals_ratelimited()) {
+-  pr_info("%s[%d]: syscall %d\n", current->comm,
+-  task_pid_nr(current), regs->syscallno);
+-  dump_instr("", regs);
+-  if (user_mode(regs))
+-  __show_regs(regs);
+-  }
+-
+   return sys_ni_syscall();
+ }
+ 
+diff --git a/arch/arm64/mm/proc.S b/arch/arm64/mm/proc.S
+index 329a1c43365e..139320a7f7a2 100644
+--- a/arch/arm64/mm/proc.S
 b/arch/arm64/mm/proc.S
+@@ -155,7 +155,7 @@ ENDPROC(cpu_do_switch_mm)
+ 
+ .macro__idmap_cpu_set_reserved_ttbr1, tmp1, tmp2
+   adrp\tmp1, empty_zero_page
+-  msr ttbr1_el1, \tmp2
++  msr ttbr1_el1, \tmp1
+   isb
+   tlbivmalle1
+   dsb nsh
+diff --git a/arch/m32r/Kconfig b/arch/m32r/Kconfig
+index 0d9446c37ae8..498398d915c1 100644
+--- a/arch/m32r/Kconfig
 b/arch/m32r/Kconfig
+@@ -196,8 +196,8 @@ config TIMER_DIVIDE
+   default "128"
+ 
+ config CPU_BIG_ENDIAN
+-bool "Generate big endian code"
+-  default n
++  bool
++  default !CPU_LITTLE_ENDIAN
+ 
+ config CPU_LITTLE_ENDIAN
+ bool "Generate little endian code"
+diff --git a/arch/microblaze/Makefile b/arch/microblaze/Makefile
+index 830ee7d42fa0..d269dd4b8279 100644
+--- a/arch/microblaze/Makefile
 b/arch/microblaze/Makefile
+@@ -36,16 +36,21 @@ endif
+ CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_DIV) += -mno-xl-soft-div
+ CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_BARREL) += -mxl-barrel-shift
+ CPUFLAGS-$(CONFIG_XILINX_MICROBLAZE0_USE_PCMP_INSTR) += -mxl-pattern-compare
+-CPUFLAGS-$(CONFIG_BIG_ENDIAN) += -mbig-endian
+-CPUFLAGS-$(CONFIG_LITTLE_ENDIAN) += -mlittle-endian
++
++ifdef CONFIG_CPU_BIG_ENDIAN
++KBUILD_CFLAGS += -mbig-endian
++KBUILD_AFLAGS += -mbig-endian
++LD += -EB
++else
++KBUILD_CFLAGS += -mlittle-endian
++KBUILD_AFLAGS += -mlittle-endian
++LD += -EL
++endif
+ 
+ CPUFLAGS-1 += $(call cc-option,-mcpu=v$(CPU_VER))
+ 
+ # r31 holds current 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-02-17 Thread Alice Ferrazzi
commit: 6ae4d3de2252aef04c0382c234cc7c8fea2dbda6
Author: Alice Ferrazzi  gentoo  org>
AuthorDate: Sat Feb 17 14:28:01 2018 +
Commit: Alice Ferrazzi  gentoo  org>
CommitDate: Sat Feb 17 14:28:01 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=6ae4d3de

fix linux patch number in name

 1017_linux-4.14.19.patch => 1018_linux-4.14.19.patch | 0
 1018_linux-4.14.20.patch => 1019_linux-4.14.20.patch | 0
 2 files changed, 0 insertions(+), 0 deletions(-)

diff --git a/1017_linux-4.14.19.patch b/1018_linux-4.14.19.patch
similarity index 100%
rename from 1017_linux-4.14.19.patch
rename to 1018_linux-4.14.19.patch

diff --git a/1018_linux-4.14.20.patch b/1019_linux-4.14.20.patch
similarity index 100%
rename from 1018_linux-4.14.20.patch
rename to 1019_linux-4.14.20.patch



[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-02-13 Thread Alice Ferrazzi
commit: ddb238bad3d656c87ce631f39b83f6627f10802c
Author: Alice Ferrazzi  gentoo  org>
AuthorDate: Tue Feb 13 13:19:35 2018 +
Commit: Alice Ferrazzi  gentoo  org>
CommitDate: Tue Feb 13 13:19:35 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=ddb238ba

linux kernel 4.14.19

 _README  |   4 +
 1017_linux-4.14.19.patch | 875 +++
 2 files changed, 879 insertions(+)

diff --git a/_README b/_README
index a02a4f5..b7c928d 100644
--- a/_README
+++ b/_README
@@ -115,6 +115,10 @@ Patch:  1017_linux-4.14.18.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.18
 
+Patch:  1018_linux-4.14.19.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.19
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1017_linux-4.14.19.patch b/1017_linux-4.14.19.patch
new file mode 100644
index 000..86964e7
--- /dev/null
+++ b/1017_linux-4.14.19.patch
@@ -0,0 +1,875 @@
+diff --git a/.gitignore b/.gitignore
+index 0c39aa20b6ba..f6050b88e95b 100644
+--- a/.gitignore
 b/.gitignore
+@@ -7,38 +7,40 @@
+ # command after changing this file, to see if there are
+ # any tracked files which get ignored after the change.
+ #
+-# Normal rules
++# Normal rules (sorted alphabetically)
+ #
+ .*
++*.a
++*.bin
++*.bz2
++*.c.[012]*.*
++*.dtb
++*.dtb.S
++*.dwo
++*.elf
++*.gcno
++*.gz
++*.i
++*.ko
++*.ll
++*.lst
++*.lz4
++*.lzma
++*.lzo
++*.mod.c
+ *.o
+ *.o.*
+-*.a
++*.order
++*.patch
+ *.s
+-*.ko
+ *.so
+ *.so.dbg
+-*.mod.c
+-*.i
+-*.lst
++*.su
+ *.symtypes
+-*.order
+-*.elf
+-*.bin
+ *.tar
+-*.gz
+-*.bz2
+-*.lzma
+ *.xz
+-*.lz4
+-*.lzo
+-*.patch
+-*.gcno
+-*.ll
+-modules.builtin
+ Module.symvers
+-*.dwo
+-*.su
+-*.c.[012]*.*
++modules.builtin
+ 
+ #
+ # Top-level generic files
+@@ -53,6 +55,11 @@ Module.symvers
+ /System.map
+ /Module.markers
+ 
++#
++# RPM spec file (make rpm-pkg)
++#
++/*.spec
++
+ #
+ # Debian directory (make deb-pkg)
+ #
+diff --git a/Makefile b/Makefile
+index a69e5da9ed86..76a0b13623f4 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 18
++SUBLEVEL = 19
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arc/boot/.gitignore b/arch/arc/boot/.gitignore
+index 5246969a20c5..c4c5fd529c25 100644
+--- a/arch/arc/boot/.gitignore
 b/arch/arc/boot/.gitignore
+@@ -1,2 +1 @@
+-*.dtb*
+ uImage
+diff --git a/arch/arm/boot/.gitignore b/arch/arm/boot/.gitignore
+index 3c79f85975aa..ce1c5ff746e7 100644
+--- a/arch/arm/boot/.gitignore
 b/arch/arm/boot/.gitignore
+@@ -3,4 +3,3 @@ zImage
+ xipImage
+ bootpImage
+ uImage
+-*.dtb
+diff --git a/arch/arm/kernel/traps.c b/arch/arm/kernel/traps.c
+index 0fcd82f01388..b8dc3b516f93 100644
+--- a/arch/arm/kernel/traps.c
 b/arch/arm/kernel/traps.c
+@@ -790,7 +790,6 @@ void abort(void)
+   /* if that doesn't kill us, halt */
+   panic("Oops failed to kill thread");
+ }
+-EXPORT_SYMBOL(abort);
+ 
+ void __init trap_init(void)
+ {
+diff --git a/arch/arm64/boot/dts/.gitignore b/arch/arm64/boot/dts/.gitignore
+deleted file mode 100644
+index b60ed208c779..
+--- a/arch/arm64/boot/dts/.gitignore
 /dev/null
+@@ -1 +0,0 @@
+-*.dtb
+diff --git a/arch/m32r/kernel/traps.c b/arch/m32r/kernel/traps.c
+index cb79fba79d43..b88a8dd14933 100644
+--- a/arch/m32r/kernel/traps.c
 b/arch/m32r/kernel/traps.c
+@@ -122,7 +122,6 @@ void abort(void)
+   /* if that doesn't kill us, halt */
+   panic("Oops failed to kill thread");
+ }
+-EXPORT_SYMBOL(abort);
+ 
+ void __init trap_init(void)
+ {
+diff --git a/arch/metag/boot/.gitignore b/arch/metag/boot/.gitignore
+index 2d6c0c160884..6c662ddb909a 100644
+--- a/arch/metag/boot/.gitignore
 b/arch/metag/boot/.gitignore
+@@ -1,4 +1,3 @@
+ vmlinux*
+ uImage*
+ ramdisk.*
+-*.dtb*
+diff --git a/arch/microblaze/boot/.gitignore b/arch/microblaze/boot/.gitignore
+index bf0459186027..679502d64a97 100644
+--- a/arch/microblaze/boot/.gitignore
 b/arch/microblaze/boot/.gitignore
+@@ -1,3 +1,2 @@
+-*.dtb
+ linux.bin*
+ simpleImage.*
+diff --git a/arch/mips/boot/.gitignore b/arch/mips/boot/.gitignore
+index d3962cd5ce0c..a73d6e2c4f64 100644
+--- a/arch/mips/boot/.gitignore
 b/arch/mips/boot/.gitignore
+@@ -5,4 +5,3 @@ zImage
+ zImage.tmp
+ calc_vmlinuz_load_addr
+ uImage
+-*.dtb
+diff --git a/arch/nios2/boot/.gitignore b/arch/nios2/boot/.gitignore
+index 109279ca5a4d..64386a8dedd8 100644
+--- a/arch/nios2/boot/.gitignore
 b/arch/nios2/boot/.gitignore
+@@ -1,2 +1 @@
+-*.dtb
+ vmImage
+diff --git a/arch/powerpc/boot/.gitignore b/arch/powerpc/boot/.gitignore
+index 84774ccba1c2..f92d0530ceb1 100644
+--- a/arch/powerpc/boot/.gitignore
 b/arch/powerpc/boot/.gitignore
+@@ -18,7 +18,6 @@ otheros.bld
+ uImage
+ cuImage.*
+ dtbImage.*
+-*.dtb
+ treeImage.*
+ vmlinux.strip
+ zImage
+diff --git 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-02-07 Thread Mike Pagano
commit: 8e2a2ed3d7a6fc577c4e7954c2e9968ed574aa46
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Feb  8 00:40:27 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu Feb  8 00:40:56 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=8e2a2ed3

Linux patch 4.14.18

 1017_linux-4.14.18.patch | 3790 ++
 1 file changed, 3790 insertions(+)

diff --git a/1017_linux-4.14.18.patch b/1017_linux-4.14.18.patch
new file mode 100644
index 000..07fbf45
--- /dev/null
+++ b/1017_linux-4.14.18.patch
@@ -0,0 +1,3790 @@
+diff --git a/Documentation/admin-guide/kernel-parameters.txt 
b/Documentation/admin-guide/kernel-parameters.txt
+index 8122b5f98ea1..c76afdcafbef 100644
+--- a/Documentation/admin-guide/kernel-parameters.txt
 b/Documentation/admin-guide/kernel-parameters.txt
+@@ -2718,8 +2718,6 @@
+   norandmaps  Don't use address space randomization.  Equivalent to
+   echo 0 > /proc/sys/kernel/randomize_va_space
+ 
+-  noreplace-paravirt  [X86,IA-64,PV_OPS] Don't patch paravirt_ops
+-
+   noreplace-smp   [X86-32,SMP] Don't replace SMP instructions
+   with UP alternatives
+ 
+diff --git a/Documentation/speculation.txt b/Documentation/speculation.txt
+new file mode 100644
+index ..e9e6cbae2841
+--- /dev/null
 b/Documentation/speculation.txt
+@@ -0,0 +1,90 @@
++This document explains potential effects of speculation, and how undesirable
++effects can be mitigated portably using common APIs.
++
++===
++Speculation
++===
++
++To improve performance and minimize average latencies, many contemporary CPUs
++employ speculative execution techniques such as branch prediction, performing
++work which may be discarded at a later stage.
++
++Typically speculative execution cannot be observed from architectural state,
++such as the contents of registers. However, in some cases it is possible to
++observe its impact on microarchitectural state, such as the presence or
++absence of data in caches. Such state may form side-channels which can be
++observed to extract secret information.
++
++For example, in the presence of branch prediction, it is possible for bounds
++checks to be ignored by code which is speculatively executed. Consider the
++following code:
++
++  int load_array(int *array, unsigned int index)
++  {
++  if (index >= MAX_ARRAY_ELEMS)
++  return 0;
++  else
++  return array[index];
++  }
++
++Which, on arm64, may be compiled to an assembly sequence such as:
++
++  CMP , #MAX_ARRAY_ELEMS
++  B.LTless
++  MOV , #0
++  RET
++  less:
++  LDR , [, ]
++  RET
++
++It is possible that a CPU mis-predicts the conditional branch, and
++speculatively loads array[index], even if index >= MAX_ARRAY_ELEMS. This
++value will subsequently be discarded, but the speculated load may affect
++microarchitectural state which can be subsequently measured.
++
++More complex sequences involving multiple dependent memory accesses may
++result in sensitive information being leaked. Consider the following
++code, building on the prior example:
++
++  int load_dependent_arrays(int *arr1, int *arr2, int index)
++  {
++  int val1, val2,
++
++  val1 = load_array(arr1, index);
++  val2 = load_array(arr2, val1);
++
++  return val2;
++  }
++
++Under speculation, the first call to load_array() may return the value
++of an out-of-bounds address, while the second call will influence
++microarchitectural state dependent on this value. This may provide an
++arbitrary read primitive.
++
++
++Mitigating speculation side-channels
++
++
++The kernel provides a generic API to ensure that bounds checks are
++respected even under speculation. Architectures which are affected by
++speculation-based side-channels are expected to implement these
++primitives.
++
++The array_index_nospec() helper in  can be used to
++prevent information from being leaked via side-channels.
++
++A call to array_index_nospec(index, size) returns a sanitized index
++value that is bounded to [0, size) even under cpu speculation
++conditions.
++
++This can be used to protect the earlier load_array() example:
++
++  int load_array(int *array, unsigned int index)
++  {
++  if (index >= MAX_ARRAY_ELEMS)
++  return 0;
++  else {
++  index = array_index_nospec(index, MAX_ARRAY_ELEMS);
++  return array[index];
++  }
++  }
+diff --git a/Makefile b/Makefile
+index 7ed993896dd5..a69e5da9ed86 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 17
++SUBLEVEL = 18
+ EXTRAVERSION 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-01-31 Thread Alice Ferrazzi
commit: 910e786f481545bd8c0e1230317eda74d828cc7b
Author: Alice Ferrazzi  gentoo  org>
AuthorDate: Wed Jan 31 13:50:31 2018 +
Commit: Alice Ferrazzi  gentoo  org>
CommitDate: Wed Jan 31 13:50:31 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=910e786f

linux kernel 4.14.16

 _README  |4 +
 1015_linux-4.14.16.patch | 3197 ++
 2 files changed, 3201 insertions(+)

diff --git a/_README b/_README
index c7ad7f2..8311794 100644
--- a/_README
+++ b/_README
@@ -103,6 +103,10 @@ Patch:  1014_linux-4.14.15.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.15
 
+Patch:  1015_linux-4.14.16.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.16
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1015_linux-4.14.16.patch b/1015_linux-4.14.16.patch
new file mode 100644
index 000..02daf91
--- /dev/null
+++ b/1015_linux-4.14.16.patch
@@ -0,0 +1,3197 @@
+diff --git a/Makefile b/Makefile
+index bf1a277a67a4..90a4bffa8446 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 15
++SUBLEVEL = 16
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arm/net/bpf_jit_32.c b/arch/arm/net/bpf_jit_32.c
+index c10e12b6..323a4df59a6c 100644
+--- a/arch/arm/net/bpf_jit_32.c
 b/arch/arm/net/bpf_jit_32.c
+@@ -27,14 +27,58 @@
+ 
+ int bpf_jit_enable __read_mostly;
+ 
++/*
++ * eBPF prog stack layout:
++ *
++ * high
++ * original ARM_SP => +-+
++ *| | callee saved registers
++ *+-+ <= (BPF_FP + SCRATCH_SIZE)
++ *| ... | eBPF JIT scratch space
++ * eBPF fp register =>+-+
++ *   (BPF_FP) | ... | eBPF prog stack
++ *+-+
++ *|RSVD | JIT scratchpad
++ * current ARM_SP =>  +-+ <= (BPF_FP - STACK_SIZE + SCRATCH_SIZE)
++ *| |
++ *| ... | Function call stack
++ *| |
++ *+-+
++ *  low
++ *
++ * The callee saved registers depends on whether frame pointers are enabled.
++ * With frame pointers (to be compliant with the ABI):
++ *
++ *high
++ * original ARM_SP => +--+ \
++ *|pc| |
++ * current ARM_FP =>  +--+ } callee saved registers
++ *|r4-r8,r10,fp,ip,lr| |
++ *+--+ /
++ *low
++ *
++ * Without frame pointers:
++ *
++ *high
++ * original ARM_SP => +--+
++ *| r4-r8,r10,fp,lr  | callee saved registers
++ * current ARM_FP =>  +--+
++ *low
++ *
++ * When popping registers off the stack at the end of a BPF function, we
++ * reference them via the current ARM_FP register.
++ */
++#define CALLEE_MASK   (1 << ARM_R4 | 1 << ARM_R5 | 1 << ARM_R6 | \
++   1 << ARM_R7 | 1 << ARM_R8 | 1 << ARM_R10 | \
++   1 << ARM_FP)
++#define CALLEE_PUSH_MASK (CALLEE_MASK | 1 << ARM_LR)
++#define CALLEE_POP_MASK  (CALLEE_MASK | 1 << ARM_PC)
++
+ #define STACK_OFFSET(k)   (k)
+ #define TMP_REG_1 (MAX_BPF_JIT_REG + 0)   /* TEMP Register 1 */
+ #define TMP_REG_2 (MAX_BPF_JIT_REG + 1)   /* TEMP Register 2 */
+ #define TCALL_CNT (MAX_BPF_JIT_REG + 2)   /* Tail Call Count */
+ 
+-/* Flags used for JIT optimization */
+-#define SEEN_CALL (1 << 0)
+-
+ #define FLAG_IMM_OVERFLOW (1 << 0)
+ 
+ /*
+@@ -95,7 +139,6 @@ static const u8 bpf2a32[][2] = {
+  * idx:   index of current last JITed instruction.
+  * prologue_bytes :   bytes used in prologue.
+  * epilogue_offset:   offset of epilogue starting.
+- * seen   :   bit mask used for JIT optimization.
+  * offsets:   array of eBPF instruction offsets in
+  *JITed code.
+  * target :   final JITed code.
+@@ -110,7 +153,6 @@ struct jit_ctx {
+   unsigned int idx;
+   unsigned int prologue_bytes;
+   unsigned int epilogue_offset;
+-  u32 seen;
+   u32 flags;
+   u32 *offsets;
+   u32 *target;
+@@ -179,8 +221,13 @@ static void jit_fill_hole(void *area, unsigned int size)
+   *ptr++ = __opcode_to_mem_arm(ARM_INST_UDF);
+ }
+ 
+-/* Stack must be multiples of 16 Bytes */
+-#define STACK_ALIGN(sz) (((sz) + 3) & ~3)
++#if defined(CONFIG_AEABI) && (__LINUX_ARM_ARCH__ >= 5)
++/* EABI requires the stack to be aligned to 64-bit 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-01-23 Thread Mike Pagano
commit: 4113e3ebf09d69e49592495a7e7213d8e71b3ee9
Author: Mike Pagano  gentoo  org>
AuthorDate: Tue Jan 23 21:20:43 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Tue Jan 23 21:20:43 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=4113e3eb

Removal of redundant patch: 
2901_tools-objtool-makefile-dont-assume-sync-checksh-is-executable.patch

 ...le-dont-assume-sync-checksh-is-executable.patch | 25 --
 1 file changed, 25 deletions(-)

diff --git 
a/2901_tools-objtool-makefile-dont-assume-sync-checksh-is-executable.patch 
b/2901_tools-objtool-makefile-dont-assume-sync-checksh-is-executable.patch
deleted file mode 100644
index 3199be9..000
--- a/2901_tools-objtool-makefile-dont-assume-sync-checksh-is-executable.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From: Andrew Morton 
-Subject: tools/objtool/Makefile: don't assume sync-check.sh is executable
-
-patch(1) loses the x bit.  Kernel build breaks.
-
-Fixes: 3bd51c5a371de ("objtool: Move kernel headers/code sync check to a 
script")
-Cc: Ingo Molnar 
-Cc: Josh Poimboeuf 
-Signed-off-by: Andrew Morton 

-
-
-diff -puN 
tools/objtool/Makefile~tools-objtool-makefile-dont-assume-sync-checksh-is-executable
 tools/objtool/Makefile
 
a/tools/objtool/Makefile~tools-objtool-makefile-dont-assume-sync-checksh-is-executable
-+++ a/tools/objtool/Makefile
-@@ -46,7 +46,7 @@ $(OBJTOOL_IN): fixdep FORCE
-   @$(MAKE) $(build)=objtool
- 
- $(OBJTOOL): $(LIBSUBCMD) $(OBJTOOL_IN)
--  @./sync-check.sh
-+  @$(CONFIG_SHELL) ./sync-check.sh
-   $(QUIET_LINK)$(CC) $(OBJTOOL_IN) $(LDFLAGS) -o $@
- 
- 
-_



[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-01-23 Thread Mike Pagano
commit: e85cd562f9a414d55c8a7f0d2827e7398791f057
Author: Mike Pagano  gentoo  org>
AuthorDate: Tue Jan 23 21:17:59 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Tue Jan 23 21:17:59 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=e85cd562

Linux patch 4.14.15

 _README  |4 +
 1014_linux-4.14.15.patch | 4300 ++
 2 files changed, 4304 insertions(+)

diff --git a/_README b/_README
index 045c7bd..c7ad7f2 100644
--- a/_README
+++ b/_README
@@ -99,6 +99,10 @@ Patch:  1013_linux-4.14.14.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.14
 
+Patch:  1014_linux-4.14.15.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.15
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1014_linux-4.14.15.patch b/1014_linux-4.14.15.patch
new file mode 100644
index 000..a81c84e
--- /dev/null
+++ b/1014_linux-4.14.15.patch
@@ -0,0 +1,4300 @@
+diff --git a/Documentation/x86/pti.txt b/Documentation/x86/pti.txt
+index d11eff61fc9a..5cd58439ad2d 100644
+--- a/Documentation/x86/pti.txt
 b/Documentation/x86/pti.txt
+@@ -78,7 +78,7 @@ this protection comes at a cost:
+  non-PTI SYSCALL entry code, so requires mapping fewer
+  things into the userspace page tables.  The downside is
+  that stacks must be switched at entry time.
+-  d. Global pages are disabled for all kernel structures not
++  c. Global pages are disabled for all kernel structures not
+  mapped into both kernel and userspace page tables.  This
+  feature of the MMU allows different processes to share TLB
+  entries mapping the kernel.  Losing the feature means more
+diff --git a/Makefile b/Makefile
+index 4951305eb867..bf1a277a67a4 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 14
++SUBLEVEL = 15
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/alpha/kernel/sys_sio.c b/arch/alpha/kernel/sys_sio.c
+index 37bd6d9b8eb9..a6bdc1da47ad 100644
+--- a/arch/alpha/kernel/sys_sio.c
 b/arch/alpha/kernel/sys_sio.c
+@@ -102,6 +102,15 @@ sio_pci_route(void)
+  alpha_mv.sys.sio.route_tab);
+ }
+ 
++static bool sio_pci_dev_irq_needs_level(const struct pci_dev *dev)
++{
++  if ((dev->class >> 16 == PCI_BASE_CLASS_BRIDGE) &&
++  (dev->class >> 8 != PCI_CLASS_BRIDGE_PCMCIA))
++  return false;
++
++  return true;
++}
++
+ static unsigned int __init
+ sio_collect_irq_levels(void)
+ {
+@@ -110,8 +119,7 @@ sio_collect_irq_levels(void)
+ 
+   /* Iterate through the devices, collecting IRQ levels.  */
+   for_each_pci_dev(dev) {
+-  if ((dev->class >> 16 == PCI_BASE_CLASS_BRIDGE) &&
+-  (dev->class >> 8 != PCI_CLASS_BRIDGE_PCMCIA))
++  if (!sio_pci_dev_irq_needs_level(dev))
+   continue;
+ 
+   if (dev->irq)
+@@ -120,8 +128,7 @@ sio_collect_irq_levels(void)
+   return level_bits;
+ }
+ 
+-static void __init
+-sio_fixup_irq_levels(unsigned int level_bits)
++static void __sio_fixup_irq_levels(unsigned int level_bits, bool reset)
+ {
+   unsigned int old_level_bits;
+ 
+@@ -139,12 +146,21 @@ sio_fixup_irq_levels(unsigned int level_bits)
+*/
+   old_level_bits = inb(0x4d0) | (inb(0x4d1) << 8);
+ 
+-  level_bits |= (old_level_bits & 0x71ff);
++  if (reset)
++  old_level_bits &= 0x71ff;
++
++  level_bits |= old_level_bits;
+ 
+   outb((level_bits >> 0) & 0xff, 0x4d0);
+   outb((level_bits >> 8) & 0xff, 0x4d1);
+ }
+ 
++static inline void
++sio_fixup_irq_levels(unsigned int level_bits)
++{
++  __sio_fixup_irq_levels(level_bits, true);
++}
++
+ static inline int
+ noname_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
+ {
+@@ -181,7 +197,14 @@ noname_map_irq(const struct pci_dev *dev, u8 slot, u8 pin)
+   const long min_idsel = 6, max_idsel = 14, irqs_per_slot = 5;
+   int irq = COMMON_TABLE_LOOKUP, tmp;
+   tmp = __kernel_extbl(alpha_mv.sys.sio.route_tab, irq);
+-  return irq >= 0 ? tmp : -1;
++
++  irq = irq >= 0 ? tmp : -1;
++
++  /* Fixup IRQ level if an actual IRQ mapping is detected */
++  if (sio_pci_dev_irq_needs_level(dev) && irq >= 0)
++  __sio_fixup_irq_levels(1 << irq, false);
++
++  return irq;
+ }
+ 
+ static inline int
+diff --git a/arch/arm/boot/dts/kirkwood-openblocks_a7.dts 
b/arch/arm/boot/dts/kirkwood-openblocks_a7.dts
+index cf2f5240e176..27cc913ca0f5 100644
+--- a/arch/arm/boot/dts/kirkwood-openblocks_a7.dts
 b/arch/arm/boot/dts/kirkwood-openblocks_a7.dts
+@@ -53,7 +53,8 @@
+   };
+ 
+   pinctrl: pin-controller@1 {
+-  pinctrl-0 = <_dip_switches _gpio_header>;
++  pinctrl-0 = 

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-01-17 Thread Alice Ferrazzi
commit: 3392e8d8bc97e63f4427475d804019f872df2572
Author: Alice Ferrazzi  gentoo  org>
AuthorDate: Wed Jan 17 09:38:49 2018 +
Commit: Alice Ferrazzi  gentoo  org>
CommitDate: Wed Jan 17 09:38:49 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=3392e8d8

removed patch e1000e: Separate signaling for link check/link up (upstreamed)

 _README  |  4 
 2400_e1000e_regression.patch | 40 
 2 files changed, 44 deletions(-)

diff --git a/_README b/_README
index 84f3396..045c7bd 100644
--- a/_README
+++ b/_README
@@ -115,10 +115,6 @@ Patch:  2300_enable-poweroff-on-Mac-Pro-11.patch
 From:   
http://kernel.ubuntu.com/git/ubuntu/ubuntu-xenial.git/patch/drivers/pci/quirks.c?id=5080ff61a438f3dd80b88b423e1a20791d8a774c
 Desc:   Workaround to enable poweroff on Mac Pro 11. See bug #601964.
 
-Patch:  2400_e1000e_regression.patch
-From:   https://bugzilla.kernel.org/show_bug.cgi?id=198047
-Desc:   Regression in e1000e. See bug #641818.
-
 Patch:  2500_usb-storage-Disable-UAS-on-JMicron-SATA-enclosure.patch
 From:   https://bugzilla.redhat.com/show_bug.cgi?id=1260207#c5
 Desc:   Add UAS disable quirk. See bug #640082.

diff --git a/2400_e1000e_regression.patch b/2400_e1000e_regression.patch
deleted file mode 100644
index 9eba050..000
--- a/2400_e1000e_regression.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-diff --git a/drivers/net/ethernet/intel/e1000e/ich8lan.c 
b/drivers/net/ethernet/intel/e1000e/ich8lan.c
-index d6d4ed7acf03..31277d3bb7dc 100644
 a/drivers/net/ethernet/intel/e1000e/ich8lan.c
-+++ b/drivers/net/ethernet/intel/e1000e/ich8lan.c
-@@ -1367,6 +1367,9 @@ static s32 e1000_disable_ulp_lpt_lp(struct e1000_hw *hw, 
bool force)
-  *  Checks to see of the link status of the hardware has changed.  If a
-  *  change in link status has been detected, then we read the PHY registers
-  *  to get the current speed/duplex if link exists.
-+ *
-+ *  Returns a negative error code (-E1000_ERR_*) or 0 (link down) or 1 (link
-+ *  up).
-  **/
- static s32 e1000_check_for_copper_link_ich8lan(struct e1000_hw *hw)
- {
-@@ -1382,7 +1385,7 @@ static s32 e1000_check_for_copper_link_ich8lan(struct 
e1000_hw *hw)
-* Change or Rx Sequence Error interrupt.
-*/
-   if (!mac->get_link_status)
--  return 0;
-+  return 1;
- 
-   /* First we want to see if the MII Status Register reports
-* link.  If so, then we want to get the current speed/duplex
-@@ -1613,10 +1616,12 @@ static s32 e1000_check_for_copper_link_ich8lan(struct 
e1000_hw *hw)
-* different link partner.
-*/
-   ret_val = e1000e_config_fc_after_link_up(hw);
--  if (ret_val)
-+  if (ret_val) {
-   e_dbg("Error configuring flow control\n");
-+  return ret_val;
-+  }
- 
--  return ret_val;
-+  return 1;
- }
- 
- static s32 e1000_get_variants_ich8lan(struct e1000_adapter *adapter)
--- 
-2.15.1



[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-01-10 Thread Mike Pagano
commit: fdbe47621ebc327b20f1d58da53d56a5a769cf3a
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Jan 10 11:52:50 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Jan 10 11:52:50 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=fdbe4762

Removal of redundant patch

 _README|  4 --
 ..._amd-support-for-fam17h-microcode-loading.patch | 43 --
 2 files changed, 47 deletions(-)

diff --git a/_README b/_README
index 1abd05e..a90b52d 100644
--- a/_README
+++ b/_README
@@ -103,10 +103,6 @@ Patch:  
1510_fs-enable-link-security-restrictions-by-default.patch
 From:   
http://sources.debian.net/src/linux/3.16.7-ckt4-3/debian/patches/debian/fs-enable-link-security-restrictions-by-default.patch/
 Desc:   Enable link security restrictions by default.
 
-Patch:  1700_amd-support-for-fam17h-microcode-loading.patch
-From:   
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/patch/?id=f4e9b7af0cd58dd039a0fb2cd67d57cea4889abf
-Desc:   x86/microcode/AMD: Add support for fam17h microcode loading.
-
 Patch: 2100_bcache-data-corruption-fix-for-bi-partno.patch
 From:   
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=62530ed8b1d07a45dec94d46e521c0c6c2d476e6
 Desc:   bio: ensure __bio_clone_fast copies bi_partno. 

diff --git a/1700_amd-support-for-fam17h-microcode-loading.patch 
b/1700_amd-support-for-fam17h-microcode-loading.patch
deleted file mode 100644
index f8a8f81..000
--- a/1700_amd-support-for-fam17h-microcode-loading.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-From f4e9b7af0cd58dd039a0fb2cd67d57cea4889abf Mon Sep 17 00:00:00 2001
-From: Tom Lendacky 
-Date: Thu, 30 Nov 2017 16:46:40 -0600
-Subject: x86/microcode/AMD: Add support for fam17h microcode loading
-
-The size for the Microcode Patch Block (MPB) for an AMD family 17h
-processor is 3200 bytes.  Add a #define for fam17h so that it does
-not default to 2048 bytes and fail a microcode load/update.
-
-Signed-off-by: Tom Lendacky 
-Signed-off-by: Thomas Gleixner 
-Reviewed-by: Borislav Petkov 
-Link: 
https://lkml.kernel.org/r/20171130224640.15391.40247.st...@tlendack-t1.amdoffice.net
-Signed-off-by: Ingo Molnar 

- arch/x86/kernel/cpu/microcode/amd.c | 4 
- 1 file changed, 4 insertions(+)
-
-diff --git a/arch/x86/kernel/cpu/microcode/amd.c 
b/arch/x86/kernel/cpu/microcode/amd.c
-index c6daec4..330b846 100644
 a/arch/x86/kernel/cpu/microcode/amd.c
-+++ b/arch/x86/kernel/cpu/microcode/amd.c
-@@ -470,6 +470,7 @@ static unsigned int verify_patch_size(u8 family, u32 
patch_size,
- #define F14H_MPB_MAX_SIZE 1824
- #define F15H_MPB_MAX_SIZE 4096
- #define F16H_MPB_MAX_SIZE 3458
-+#define F17H_MPB_MAX_SIZE 3200
- 
-   switch (family) {
-   case 0x14:
-@@ -481,6 +482,9 @@ static unsigned int verify_patch_size(u8 family, u32 
patch_size,
-   case 0x16:
-   max_size = F16H_MPB_MAX_SIZE;
-   break;
-+  case 0x17:
-+  max_size = F17H_MPB_MAX_SIZE;
-+  break;
-   default:
-   max_size = F1XH_MPB_MAX_SIZE;
-   break;
--- 
-cgit v1.1
-



[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-01-10 Thread Mike Pagano
commit: 1e4d06678c3d3c6bef6c60ef5d05ec227fc8d26d
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Jan 10 11:43:09 2018 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Jan 10 11:43:09 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=1e4d0667

Linux patch 4.14.13

 _README  |4 +
 1012_linux-4.14.13.patch | 1518 ++
 2 files changed, 1522 insertions(+)

diff --git a/_README b/_README
index af8a1d1..1abd05e 100644
--- a/_README
+++ b/_README
@@ -91,6 +91,10 @@ Patch:  1011_linux-4.14.12.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.14.12
 
+Patch:  1012_linux-4.14.13.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.14.13
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1012_linux-4.14.13.patch b/1012_linux-4.14.13.patch
new file mode 100644
index 000..faee46a
--- /dev/null
+++ b/1012_linux-4.14.13.patch
@@ -0,0 +1,1518 @@
+diff --git a/Documentation/x86/x86_64/mm.txt b/Documentation/x86/x86_64/mm.txt
+index ad41b3813f0a..ea91cb61a602 100644
+--- a/Documentation/x86/x86_64/mm.txt
 b/Documentation/x86/x86_64/mm.txt
+@@ -12,8 +12,9 @@ ea00 - eaff (=40 bits) virtual 
memory map (1TB)
+ ... unused hole ...
+ ec00 - fbff (=44 bits) kasan shadow memory (16TB)
+ ... unused hole ...
+-fe00 - fe7f (=39 bits) LDT remap for PTI
+-fe80 - feff (=39 bits) cpu_entry_area mapping
++  vaddr_end for KASLR
++fe00 - fe7f (=39 bits) cpu_entry_area mapping
++fe80 - feff (=39 bits) LDT remap for PTI
+ ff00 - ff7f (=39 bits) %esp fixup stacks
+ ... unused hole ...
+ ffef - fffe (=64 GB) EFI region mapping space
+@@ -37,13 +38,15 @@ ffd4 - ffd5 (=49 bits) virtual 
memory map (512TB)
+ ... unused hole ...
+ ffdf - fc00 (=53 bits) kasan shadow memory (8PB)
+ ... unused hole ...
+-fe80 - feff (=39 bits) cpu_entry_area mapping
++  vaddr_end for KASLR
++fe00 - fe7f (=39 bits) cpu_entry_area mapping
++... unused hole ...
+ ff00 - ff7f (=39 bits) %esp fixup stacks
+ ... unused hole ...
+ ffef - fffe (=64 GB) EFI region mapping space
+ ... unused hole ...
+ 8000 - 9fff (=512 MB)  kernel text mapping, from phys 0
+-a000 - [fixmap start]   (~1526 MB) module mapping space
++a000 - feff (1520 MB) module mapping space
+ [fixmap start]   - ff5f kernel-internal fixmap range
+ ff60 - ff600fff (=4 kB) legacy vsyscall ABI
+ ffe0 -  (=2 MB) unused hole
+@@ -67,9 +70,10 @@ memory window (this size is arbitrary, it can be raised 
later if needed).
+ The mappings are not part of any other kernel PGD and are only available
+ during EFI runtime calls.
+ 
+-The module mapping space size changes based on the CONFIG requirements for the
+-following fixmap section.
+-
+ Note that if CONFIG_RANDOMIZE_MEMORY is enabled, the direct mapping of all
+ physical memory, vmalloc/ioremap space and virtual memory map are randomized.
+ Their order is preserved but their base will be offset early at boot time.
++
++Be very careful vs. KASLR when changing anything here. The KASLR address
++range must not overlap with anything except the KASAN shadow area, which is
++correct as KASAN disables KASLR.
+diff --git a/Makefile b/Makefile
+index 20f7d4de0f1c..a67c5179052a 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 4
+ PATCHLEVEL = 14
+-SUBLEVEL = 12
++SUBLEVEL = 13
+ EXTRAVERSION =
+ NAME = Petit Gorille
+ 
+diff --git a/arch/arc/include/asm/uaccess.h b/arch/arc/include/asm/uaccess.h
+index f35974ee7264..c9173c02081c 100644
+--- a/arch/arc/include/asm/uaccess.h
 b/arch/arc/include/asm/uaccess.h
+@@ -668,6 +668,7 @@ __arc_strncpy_from_user(char *dst, const char __user *src, 
long count)
+   return 0;
+ 
+   __asm__ __volatile__(
++  "   mov lp_count, %5\n"
+   "   lp  3f  \n"
+   "1: ldb.ab  %3, [%2, 1] \n"
+   "   breq.d  %3, 0, 3f   \n"
+@@ -684,8 +685,8 @@ __arc_strncpy_from_user(char *dst, const char __user *src, 
long count)
+   "   .word   1b, 4b  \n"
+   "   .previous   \n"
+   : "+r"(res), "+r"(dst), "+r"(src), "=r"(val)
+-  : "g"(-EFAULT), "l"(count)
+-  : "memory");
++  : "g"(-EFAULT), "r"(count)
++  : "lp_count", "lp_start", "lp_end", "memory");
+ 
+  

[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-01-05 Thread Alice Ferrazzi
commit: 0ca3a2a6bf6bd597f2c827cf1c5389e78ca196f9
Author: Alice Ferrazzi  gentoo  org>
AuthorDate: Fri Jan  5 15:41:43 2018 +
Commit: Alice Ferrazzi  gentoo  org>
CommitDate: Fri Jan  5 15:41:43 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=0ca3a2a6

add amd support for fam17h microcode loading

 _README|  3 ++
 ..._amd-support-for-fam17h-microcode-loading.patch | 43 ++
 2 files changed, 46 insertions(+)

diff --git a/_README b/_README
index e98e570..af8a1d1 100644
--- a/_README
+++ b/_README
@@ -99,6 +99,9 @@ Patch:  
1510_fs-enable-link-security-restrictions-by-default.patch
 From:   
http://sources.debian.net/src/linux/3.16.7-ckt4-3/debian/patches/debian/fs-enable-link-security-restrictions-by-default.patch/
 Desc:   Enable link security restrictions by default.
 
+Patch:  1700_amd-support-for-fam17h-microcode-loading.patch
+From:   
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/patch/?id=f4e9b7af0cd58dd039a0fb2cd67d57cea4889abf
+Desc:   x86/microcode/AMD: Add support for fam17h microcode loading.
 
 Patch: 2100_bcache-data-corruption-fix-for-bi-partno.patch
 From:   
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=62530ed8b1d07a45dec94d46e521c0c6c2d476e6

diff --git a/1700_amd-support-for-fam17h-microcode-loading.patch 
b/1700_amd-support-for-fam17h-microcode-loading.patch
new file mode 100644
index 000..f8a8f81
--- /dev/null
+++ b/1700_amd-support-for-fam17h-microcode-loading.patch
@@ -0,0 +1,43 @@
+From f4e9b7af0cd58dd039a0fb2cd67d57cea4889abf Mon Sep 17 00:00:00 2001
+From: Tom Lendacky 
+Date: Thu, 30 Nov 2017 16:46:40 -0600
+Subject: x86/microcode/AMD: Add support for fam17h microcode loading
+
+The size for the Microcode Patch Block (MPB) for an AMD family 17h
+processor is 3200 bytes.  Add a #define for fam17h so that it does
+not default to 2048 bytes and fail a microcode load/update.
+
+Signed-off-by: Tom Lendacky 
+Signed-off-by: Thomas Gleixner 
+Reviewed-by: Borislav Petkov 
+Link: 
https://lkml.kernel.org/r/20171130224640.15391.40247.st...@tlendack-t1.amdoffice.net
+Signed-off-by: Ingo Molnar 
+---
+ arch/x86/kernel/cpu/microcode/amd.c | 4 
+ 1 file changed, 4 insertions(+)
+
+diff --git a/arch/x86/kernel/cpu/microcode/amd.c 
b/arch/x86/kernel/cpu/microcode/amd.c
+index c6daec4..330b846 100644
+--- a/arch/x86/kernel/cpu/microcode/amd.c
 b/arch/x86/kernel/cpu/microcode/amd.c
+@@ -470,6 +470,7 @@ static unsigned int verify_patch_size(u8 family, u32 
patch_size,
+ #define F14H_MPB_MAX_SIZE 1824
+ #define F15H_MPB_MAX_SIZE 4096
+ #define F16H_MPB_MAX_SIZE 3458
++#define F17H_MPB_MAX_SIZE 3200
+ 
+   switch (family) {
+   case 0x14:
+@@ -481,6 +482,9 @@ static unsigned int verify_patch_size(u8 family, u32 
patch_size,
+   case 0x16:
+   max_size = F16H_MPB_MAX_SIZE;
+   break;
++  case 0x17:
++  max_size = F17H_MPB_MAX_SIZE;
++  break;
+   default:
+   max_size = F1XH_MPB_MAX_SIZE;
+   break;
+-- 
+cgit v1.1
+



[gentoo-commits] proj/linux-patches:4.14 commit in: /

2018-01-05 Thread Alice Ferrazzi
commit: 8348d8b68abd9b60bb2e42c5e7d8ec894d786ba3
Author: Alice Ferrazzi  gentoo  org>
AuthorDate: Fri Jan  5 15:40:53 2018 +
Commit: Alice Ferrazzi  gentoo  org>
CommitDate: Fri Jan  5 15:40:53 2018 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=8348d8b6

removed upstreamed patch x86 page table isolation fixes

 _README   |   3 -
 1700_x86-page-table-isolation-fixes.patch | 453 --
 2 files changed, 456 deletions(-)

diff --git a/_README b/_README
index a10ea98..e98e570 100644
--- a/_README
+++ b/_README
@@ -99,9 +99,6 @@ Patch:  
1510_fs-enable-link-security-restrictions-by-default.patch
 From:   
http://sources.debian.net/src/linux/3.16.7-ckt4-3/debian/patches/debian/fs-enable-link-security-restrictions-by-default.patch/
 Desc:   Enable link security restrictions by default.
 
-Patch:  1700_x86-page-table-isolation-fixes.patch
-From:   
https://github.com/torvalds/linux/commit/00a5ae218d57741088068799b810416ac249a9ce
-Desc:   x86 page table isolation fixes comulative patch.
 
 Patch: 2100_bcache-data-corruption-fix-for-bi-partno.patch
 From:   
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=62530ed8b1d07a45dec94d46e521c0c6c2d476e6

diff --git a/1700_x86-page-table-isolation-fixes.patch 
b/1700_x86-page-table-isolation-fixes.patch
deleted file mode 100644
index 6fcbf41..000
--- a/1700_x86-page-table-isolation-fixes.patch
+++ /dev/null
@@ -1,453 +0,0 @@
-From 87faa0d9b43b4755ff6963a22d1fd1bee1aa3b39 Mon Sep 17 00:00:00 2001
-From: Thomas Gleixner 
-Date: Wed, 3 Jan 2018 15:18:44 +0100
-Subject: [PATCH 1/7] x86/pti: Enable PTI by default
-
-This really want's to be enabled by default. Users who know what they are
-doing can disable it either in the config or on the kernel command line.
-
-Signed-off-by: Thomas Gleixner 
-Cc: sta...@vger.kernel.org

- security/Kconfig | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/security/Kconfig b/security/Kconfig
-index a623d13bf2884..3d4debd0257e2 100644
 a/security/Kconfig
-+++ b/security/Kconfig
-@@ -56,6 +56,7 @@ config SECURITY_NETWORK
- 
- config PAGE_TABLE_ISOLATION
-   bool "Remove the kernel mapping in user mode"
-+  default y
-   depends on X86_64 && !UML
-   help
- This feature reduces the number of hardware side channels by
-
-From 694d99d40972f12e59a3696effee8a376b79d7c8 Mon Sep 17 00:00:00 2001
-From: Tom Lendacky 
-Date: Tue, 26 Dec 2017 23:43:54 -0600
-Subject: [PATCH 2/7] x86/cpu, x86/pti: Do not enable PTI on AMD processors
-
-AMD processors are not subject to the types of attacks that the kernel
-page table isolation feature protects against.  The AMD microarchitecture
-does not allow memory references, including speculative references, that
-access higher privileged data when running in a lesser privileged mode
-when that access would result in a page fault.
-
-Disable page table isolation by default on AMD processors by not setting
-the X86_BUG_CPU_INSECURE feature, which controls whether X86_FEATURE_PTI
-is set.
-
-Signed-off-by: Tom Lendacky 
-Signed-off-by: Thomas Gleixner 
-Reviewed-by: Borislav Petkov 
-Cc: Dave Hansen 
-Cc: Andy Lutomirski 
-Cc: sta...@vger.kernel.org
-Link: 
https://lkml.kernel.org/r/20171227054354.20369.94587.st...@tlendack-t1.amdoffice.net

- arch/x86/kernel/cpu/common.c | 4 ++--
- 1 file changed, 2 insertions(+), 2 deletions(-)
-
-diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c
-index f2a94dfb434e9..b1be494ab4e8b 100644
 a/arch/x86/kernel/cpu/common.c
-+++ b/arch/x86/kernel/cpu/common.c
-@@ -899,8 +899,8 @@ static void __init early_identify_cpu(struct cpuinfo_x86 
*c)
- 
-   setup_force_cpu_cap(X86_FEATURE_ALWAYS);
- 
--  /* Assume for now that ALL x86 CPUs are insecure */
--  setup_force_cpu_bug(X86_BUG_CPU_INSECURE);
-+  if (c->x86_vendor != X86_VENDOR_AMD)
-+  setup_force_cpu_bug(X86_BUG_CPU_INSECURE);
- 
-   fpu__init_system(c);
- 
-
-From 52994c256df36fda9a715697431cba9daecb6b11 Mon Sep 17 00:00:00 2001
-From: Thomas Gleixner 
-Date: Wed, 3 Jan 2018 15:57:59 +0100
-Subject: [PATCH 3/7] x86/pti: Make sure the user/kernel PTEs match
-
-Meelis reported that his K8 Athlon64 emits MCE warnings when PTI is
-enabled:
-
-[Hardware Error]: Error Addr: 0x81e000e0
-[Hardware Error]: MC1 Error: L1 TLB multimatch.
-[Hardware Error]: cache level: L1, tx: INSN
-
-The address is in the entry area, which is mapped into kernel _AND_ user
-space. That's special because we switch CR3 while we are executing
-there.
-
-User mapping:
-0x81e0-0x8200   2M ro PSE GLB 
x  pmd
-
-Kernel mapping:
-0x8100-0x8200

  1   2   >