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

2023-10-05 Thread Mike Pagano
commit: 0c60f5542a21083d7867135553dc5063ab8b56c7
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Oct  5 14:04:01 2023 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu Oct  5 14:24:26 2023 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=0c60f554

select BLK_DEV_BSG if SCSI as it depends on it.

Thanks, Ancient.

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

 4567_distro-Gentoo-Kconfig.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/4567_distro-Gentoo-Kconfig.patch b/4567_distro-Gentoo-Kconfig.patch
index 874389d9..bcc15155 100644
--- a/4567_distro-Gentoo-Kconfig.patch
+++ b/4567_distro-Gentoo-Kconfig.patch
@@ -122,7 +122,7 @@
 +  depends on GENTOO_LINUX && GENTOO_LINUX_UDEV
 +
 +  select AUTOFS_FS
-+  select BLK_DEV_BSG
++  select BLK_DEV_BSG if SCSI
 +  select BPF_SYSCALL
 +  select CGROUP_BPF
 +  select CGROUPS



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

2023-09-02 Thread Mike Pagano
commit: fa8ecf16250574ef198adbc79c902f35507e34a3
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Sep  2 09:58:04 2023 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Sep  2 09:58:04 2023 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=fa8ecf16

Linux patch 5.4.256

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

 _README  |  4 ++
 1255_linux-5.4.256.patch | 97 
 2 files changed, 101 insertions(+)

diff --git a/_README b/_README
index 250d3166..89c53712 100644
--- a/_README
+++ b/_README
@@ -1063,6 +1063,10 @@ Patch:  1254_linux-5.4.255.patch
 From:   https://www.kernel.org
 Desc:   Linux 5.4.255
 
+Patch:  1255_linux-5.4.256.patch
+From:   https://www.kernel.org
+Desc:   Linux 5.4.256
+
 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/1255_linux-5.4.256.patch b/1255_linux-5.4.256.patch
new file mode 100644
index ..f7216b6f
--- /dev/null
+++ b/1255_linux-5.4.256.patch
@@ -0,0 +1,97 @@
+diff --git a/Makefile b/Makefile
+index 041adebe7da2d..e5761a10f4a67 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 255
++SUBLEVEL = 256
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/mips/alchemy/common/dbdma.c 
b/arch/mips/alchemy/common/dbdma.c
+index e9ee9ab90a0c6..4ca2c28878e0f 100644
+--- a/arch/mips/alchemy/common/dbdma.c
 b/arch/mips/alchemy/common/dbdma.c
+@@ -30,7 +30,6 @@
+  *
+  */
+ 
+-#include  /* for dma_default_coherent */
+ #include 
+ #include 
+ #include 
+@@ -624,18 +623,17 @@ u32 au1xxx_dbdma_put_source(u32 chanid, dma_addr_t buf, 
int nbytes, u32 flags)
+   dp->dscr_cmd0 &= ~DSCR_CMD0_IE;
+ 
+   /*
+-   * There is an erratum on certain Au1200/Au1550 revisions that could
+-   * result in "stale" data being DMA'ed. It has to do with the snoop
+-   * logic on the cache eviction buffer.  dma_default_coherent is set
+-   * to false on these parts.
++   * There is an errata on the Au1200/Au1550 parts that could result
++   * in "stale" data being DMA'ed. It has to do with the snoop logic on
++   * the cache eviction buffer.  DMA_NONCOHERENT is on by default for
++   * these parts. If it is fixed in the future, these dma_cache_inv will
++   * just be nothing more than empty macros. See io.h.
+*/
+-  if (!dma_default_coherent)
+-  dma_cache_wback_inv(KSEG0ADDR(buf), nbytes);
++  dma_cache_wback_inv((unsigned long)buf, nbytes);
+   dp->dscr_cmd0 |= DSCR_CMD0_V;   /* Let it rip */
+   wmb(); /* drain writebuffer */
+   dma_cache_wback_inv((unsigned long)dp, sizeof(*dp));
+   ctp->chan_ptr->ddma_dbell = 0;
+-  wmb(); /* force doorbell write out to dma engine */
+ 
+   /* Get next descriptor pointer. */
+   ctp->put_ptr = phys_to_virt(DSCR_GET_NXTPTR(dp->dscr_nxtptr));
+@@ -687,18 +685,17 @@ u32 au1xxx_dbdma_put_dest(u32 chanid, dma_addr_t buf, 
int nbytes, u32 flags)
+ dp->dscr_source1, dp->dscr_dest0, dp->dscr_dest1);
+ #endif
+   /*
+-   * There is an erratum on certain Au1200/Au1550 revisions that could
+-   * result in "stale" data being DMA'ed. It has to do with the snoop
+-   * logic on the cache eviction buffer.  dma_default_coherent is set
+-   * to false on these parts.
++   * There is an errata on the Au1200/Au1550 parts that could result in
++   * "stale" data being DMA'ed. It has to do with the snoop logic on the
++   * cache eviction buffer.  DMA_NONCOHERENT is on by default for these
++   * parts. If it is fixed in the future, these dma_cache_inv will just
++   * be nothing more than empty macros. See io.h.
+*/
+-  if (!dma_default_coherent)
+-  dma_cache_inv(KSEG0ADDR(buf), nbytes);
++  dma_cache_inv((unsigned long)buf, nbytes);
+   dp->dscr_cmd0 |= DSCR_CMD0_V;   /* Let it rip */
+   wmb(); /* drain writebuffer */
+   dma_cache_wback_inv((unsigned long)dp, sizeof(*dp));
+   ctp->chan_ptr->ddma_dbell = 0;
+-  wmb(); /* force doorbell write out to dma engine */
+ 
+   /* Get next descriptor pointer. */
+   ctp->put_ptr = phys_to_virt(DSCR_GET_NXTPTR(dp->dscr_nxtptr));
+diff --git a/arch/powerpc/platforms/powermac/smp.c 
b/arch/powerpc/platforms/powermac/smp.c
+index f95fbdee6efe9..d2900689d642a 100644
+--- a/arch/powerpc/platforms/powermac/smp.c
 b/arch/powerpc/platforms/powermac/smp.c
+@@ -660,13 +660,13 @@ static void smp_core99_gpio_tb_freeze(int freeze)
+ 
+ #endif /* !CONFIG_PPC64 */
+ 
+-/* L2 and L3 cache settings to pass from CPU0 to CPU1 on G4 cpus */
+-volatile static long int core99_l2_cache;
+-volatile static long int core99_l3_cache;
+-
+ static void core99_init_caches(int cpu)
+ {
+ #ifndef CONFIG_PPC64
++ 

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

2023-08-16 Thread Mike Pagano
commit: 40d5c3cfeaa1523339c66bc7bd5e5091545d2c9e
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Aug 16 16:59:51 2023 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Aug 16 16:59:51 2023 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=40d5c3cf

Linux patch 5.4.254

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

 _README  |4 +
 1253_linux-5.4.254.patch | 1852 ++
 2 files changed, 1856 insertions(+)

diff --git a/_README b/_README
index 2a949a7b..3c468d97 100644
--- a/_README
+++ b/_README
@@ -1055,6 +1055,10 @@ Patch:  1252_linux-5.4.253.patch
 From:   https://www.kernel.org
 Desc:   Linux 5.4.253
 
+Patch:  1253_linux-5.4.254.patch
+From:   https://www.kernel.org
+Desc:   Linux 5.4.254
+
 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/1253_linux-5.4.254.patch b/1253_linux-5.4.254.patch
new file mode 100644
index ..a0d8af4d
--- /dev/null
+++ b/1253_linux-5.4.254.patch
@@ -0,0 +1,1852 @@
+diff --git a/Makefile b/Makefile
+index a0e3daefb01d9..bf7299823095f 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 253
++SUBLEVEL = 254
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/alpha/kernel/setup.c b/arch/alpha/kernel/setup.c
+index 5d4c76a77a9f3..f1072b10913c1 100644
+--- a/arch/alpha/kernel/setup.c
 b/arch/alpha/kernel/setup.c
+@@ -394,8 +394,7 @@ setup_memory(void *kernel_end)
+ extern void setup_memory(void *);
+ #endif /* !CONFIG_DISCONTIGMEM */
+ 
+-int __init
+-page_is_ram(unsigned long pfn)
++int page_is_ram(unsigned long pfn)
+ {
+   struct memclust_struct * cluster;
+   struct memdesc_struct * memdesc;
+diff --git a/arch/x86/entry/vdso/vma.c b/arch/x86/entry/vdso/vma.c
+index 3613cfb83c6dc..8d7a4a2caf552 100644
+--- a/arch/x86/entry/vdso/vma.c
 b/arch/x86/entry/vdso/vma.c
+@@ -222,8 +222,8 @@ static unsigned long vdso_addr(unsigned long start, 
unsigned len)
+ 
+   /* Round the lowest possible end address up to a PMD boundary. */
+   end = (start + len + PMD_SIZE - 1) & PMD_MASK;
+-  if (end >= TASK_SIZE_MAX)
+-  end = TASK_SIZE_MAX;
++  if (end >= DEFAULT_MAP_WINDOW)
++  end = DEFAULT_MAP_WINDOW;
+   end -= len;
+ 
+   if (end > start) {
+diff --git a/arch/x86/include/asm/processor.h 
b/arch/x86/include/asm/processor.h
+index 537c0dd4c3d4a..9cbd86cf0deba 100644
+--- a/arch/x86/include/asm/processor.h
 b/arch/x86/include/asm/processor.h
+@@ -986,4 +986,6 @@ enum taa_mitigations {
+   TAA_MITIGATION_TSX_DISABLED,
+ };
+ 
++extern bool gds_ucode_mitigated(void);
++
+ #endif /* _ASM_X86_PROCESSOR_H */
+diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c
+index 11f09df72f51a..fcffee447ba1f 100644
+--- a/arch/x86/kernel/cpu/amd.c
 b/arch/x86/kernel/cpu/amd.c
+@@ -72,6 +72,7 @@ static const int amd_erratum_1054[] =
+ static const int amd_zenbleed[] =
+   AMD_LEGACY_ERRATUM(AMD_MODEL_RANGE(0x17, 0x30, 0x0, 0x4f, 0xf),
+  AMD_MODEL_RANGE(0x17, 0x60, 0x0, 0x7f, 0xf),
++ AMD_MODEL_RANGE(0x17, 0x90, 0x0, 0x91, 0xf),
+  AMD_MODEL_RANGE(0x17, 0xa0, 0x0, 0xaf, 0xf));
+ 
+ static bool cpu_has_amd_erratum(struct cpuinfo_x86 *cpu, const int *erratum)
+diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c
+index fcfe891c1e8e5..0c0c2cb038ad2 100644
+--- a/arch/x86/kernel/cpu/common.c
 b/arch/x86/kernel/cpu/common.c
+@@ -450,8 +450,6 @@ static bool pku_disabled;
+ 
+ static __always_inline void setup_pku(struct cpuinfo_x86 *c)
+ {
+-  struct pkru_state *pk;
+-
+   /* check the boot processor, plus compile options for PKU: */
+   if (!cpu_feature_enabled(X86_FEATURE_PKU))
+   return;
+@@ -462,9 +460,6 @@ static __always_inline void setup_pku(struct cpuinfo_x86 
*c)
+   return;
+ 
+   cr4_set_bits(X86_CR4_PKE);
+-  pk = get_xsave_addr(_fpstate.xsave, XFEATURE_PKRU);
+-  if (pk)
+-  pk->pkru = init_pkru_value;
+   /*
+* Seting X86_CR4_PKE will cause the X86_FEATURE_OSPKE
+* cpuid bit to be set.  We need to ensure that we
+diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
+index 2ee3da99bc1d7..8dd1d1c81c791 100644
+--- a/arch/x86/kvm/x86.c
 b/arch/x86/kvm/x86.c
+@@ -226,8 +226,6 @@ struct kvm_stats_debugfs_item debugfs_entries[] = {
+ 
+ u64 __read_mostly host_xcr0;
+ 
+-extern bool gds_ucode_mitigated(void);
+-
+ struct kmem_cache *x86_fpu_cache;
+ EXPORT_SYMBOL_GPL(x86_fpu_cache);
+ 
+diff --git a/arch/x86/mm/pkeys.c b/arch/x86/mm/pkeys.c
+index c6f84c0b5d7a5..ca77af96033b9 100644
+--- a/arch/x86/mm/pkeys.c
 b/arch/x86/mm/pkeys.c
+@@ -10,7 +10,6 @@
+ 
+ #include  /* boot_cpu_has, ...   

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

2023-08-08 Thread Mike Pagano
commit: 1f0e845ad6f50608116dc21b6d9518e58131346d
Author: Mike Pagano  gentoo  org>
AuthorDate: Tue Aug  8 18:42:35 2023 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Tue Aug  8 18:42:35 2023 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=1f0e845a

Linux patch 5.4.252

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

 _README  |4 +
 1251_linux-5.4.252.patch | 2163 ++
 2 files changed, 2167 insertions(+)

diff --git a/_README b/_README
index bd2d8d6d..d8caf4ce 100644
--- a/_README
+++ b/_README
@@ -1047,6 +1047,10 @@ Patch:  1250_linux-5.4.251.patch
 From:   https://www.kernel.org
 Desc:   Linux 5.4.251
 
+Patch:  1251_linux-5.4.252.patch
+From:   https://www.kernel.org
+Desc:   Linux 5.4.252
+
 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/1251_linux-5.4.252.patch b/1251_linux-5.4.252.patch
new file mode 100644
index ..c230d38f
--- /dev/null
+++ b/1251_linux-5.4.252.patch
@@ -0,0 +1,2163 @@
+diff --git a/Documentation/ABI/testing/sysfs-devices-system-cpu 
b/Documentation/ABI/testing/sysfs-devices-system-cpu
+index 726ac2e01b777..08e153614e094 100644
+--- a/Documentation/ABI/testing/sysfs-devices-system-cpu
 b/Documentation/ABI/testing/sysfs-devices-system-cpu
+@@ -480,16 +480,17 @@ Description: information about CPUs heterogeneity.
+   cpu_capacity: capacity of cpu#.
+ 
+ What: /sys/devices/system/cpu/vulnerabilities
++  /sys/devices/system/cpu/vulnerabilities/gather_data_sampling
++  /sys/devices/system/cpu/vulnerabilities/itlb_multihit
++  /sys/devices/system/cpu/vulnerabilities/l1tf
++  /sys/devices/system/cpu/vulnerabilities/mds
+   /sys/devices/system/cpu/vulnerabilities/meltdown
++  /sys/devices/system/cpu/vulnerabilities/mmio_stale_data
++  /sys/devices/system/cpu/vulnerabilities/spec_store_bypass
+   /sys/devices/system/cpu/vulnerabilities/spectre_v1
+   /sys/devices/system/cpu/vulnerabilities/spectre_v2
+-  /sys/devices/system/cpu/vulnerabilities/spec_store_bypass
+-  /sys/devices/system/cpu/vulnerabilities/l1tf
+-  /sys/devices/system/cpu/vulnerabilities/mds
+   /sys/devices/system/cpu/vulnerabilities/srbds
+   /sys/devices/system/cpu/vulnerabilities/tsx_async_abort
+-  /sys/devices/system/cpu/vulnerabilities/itlb_multihit
+-  /sys/devices/system/cpu/vulnerabilities/mmio_stale_data
+ Date: January 2018
+ Contact:  Linux kernel mailing list 
+ Description:  Information about CPU vulnerabilities
+diff --git a/Documentation/admin-guide/hw-vuln/gather_data_sampling.rst 
b/Documentation/admin-guide/hw-vuln/gather_data_sampling.rst
+new file mode 100644
+index 0..264bfa937f7de
+--- /dev/null
 b/Documentation/admin-guide/hw-vuln/gather_data_sampling.rst
+@@ -0,0 +1,109 @@
++.. SPDX-License-Identifier: GPL-2.0
++
++GDS - Gather Data Sampling
++==
++
++Gather Data Sampling is a hardware vulnerability which allows unprivileged
++speculative access to data which was previously stored in vector registers.
++
++Problem
++---
++When a gather instruction performs loads from memory, different data elements
++are merged into the destination vector register. However, when a gather
++instruction that is transiently executed encounters a fault, stale data from
++architectural or internal vector registers may get transiently forwarded to 
the
++destination vector register instead. This will allow a malicious attacker to
++infer stale data using typical side channel techniques like cache timing
++attacks. GDS is a purely sampling-based attack.
++
++The attacker uses gather instructions to infer the stale vector register data.
++The victim does not need to do anything special other than use the vector
++registers. The victim does not need to use gather instructions to be
++vulnerable.
++
++Because the buffers are shared between Hyper-Threads cross Hyper-Thread 
attacks
++are possible.
++
++Attack scenarios
++
++Without mitigation, GDS can infer stale data across virtually all
++permission boundaries:
++
++  Non-enclaves can infer SGX enclave data
++  Userspace can infer kernel data
++  Guests can infer data from hosts
++  Guest can infer guest from other guests
++  Users can infer data from other users
++
++Because of this, it is important to ensure that the mitigation stays enabled 
in
++lower-privilege contexts like guests and when running outside SGX enclaves.
++
++The hardware enforces the mitigation for SGX. Likewise, VMMs should  ensure
++that guests are not allowed to disable the GDS mitigation. If a host erred and
++allowed this, a guest could theoretically disable 

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

2023-07-24 Thread Mike Pagano
commit: ae00a94726a3629ac942076c46afd0dad65b7608
Author: Mike Pagano  gentoo  org>
AuthorDate: Mon Jul 24 20:29:04 2023 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Mon Jul 24 20:29:04 2023 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=ae00a947

Linux patch 5.4.250

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

 _README  |   4 +
 1249_linux-5.4.250.patch | 323 +++
 2 files changed, 327 insertions(+)

diff --git a/_README b/_README
index 35a73c75..574f62fe 100644
--- a/_README
+++ b/_README
@@ -1039,6 +1039,10 @@ Patch:  1248_linux-5.4.249.patch
 From:   https://www.kernel.org
 Desc:   Linux 5.4.249
 
+Patch:  1249_linux-5.4.250.patch
+From:   https://www.kernel.org
+Desc:   Linux 5.4.250
+
 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/1249_linux-5.4.250.patch b/1249_linux-5.4.250.patch
new file mode 100644
index ..43c7db75
--- /dev/null
+++ b/1249_linux-5.4.250.patch
@@ -0,0 +1,323 @@
+diff --git a/Makefile b/Makefile
+index 26a05e73de78f..43d62b7b0a001 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 249
++SUBLEVEL = 250
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/x86/include/asm/microcode.h 
b/arch/x86/include/asm/microcode.h
+index 509cc0262fdc2..394605e59f2bf 100644
+--- a/arch/x86/include/asm/microcode.h
 b/arch/x86/include/asm/microcode.h
+@@ -5,6 +5,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ struct ucode_patch {
+   struct list_head plist;
+diff --git a/arch/x86/include/asm/microcode_amd.h 
b/arch/x86/include/asm/microcode_amd.h
+index a645b25ee442a..403a8e76b310c 100644
+--- a/arch/x86/include/asm/microcode_amd.h
 b/arch/x86/include/asm/microcode_amd.h
+@@ -48,11 +48,13 @@ extern void __init load_ucode_amd_bsp(unsigned int family);
+ extern void load_ucode_amd_ap(unsigned int family);
+ extern int __init save_microcode_in_initrd_amd(unsigned int family);
+ void reload_ucode_amd(unsigned int cpu);
++extern void amd_check_microcode(void);
+ #else
+ static inline void __init load_ucode_amd_bsp(unsigned int family) {}
+ static inline void load_ucode_amd_ap(unsigned int family) {}
+ static inline int __init
+ save_microcode_in_initrd_amd(unsigned int family) { return -EINVAL; }
+ static inline void reload_ucode_amd(unsigned int cpu) {}
++static inline void amd_check_microcode(void) {}
+ #endif
+ #endif /* _ASM_X86_MICROCODE_AMD_H */
+diff --git a/arch/x86/include/asm/msr-index.h 
b/arch/x86/include/asm/msr-index.h
+index 67d43645a2b6b..f3fa903c5b297 100644
+--- a/arch/x86/include/asm/msr-index.h
 b/arch/x86/include/asm/msr-index.h
+@@ -462,6 +462,7 @@
+ #define MSR_AMD64_DE_CFG  0xc0011029
+ #define MSR_AMD64_DE_CFG_LFENCE_SERIALIZE_BIT  1
+ #define MSR_AMD64_DE_CFG_LFENCE_SERIALIZE 
BIT_ULL(MSR_AMD64_DE_CFG_LFENCE_SERIALIZE_BIT)
++#define MSR_AMD64_DE_CFG_ZEN2_FP_BACKUP_FIX_BIT 9
+ 
+ #define MSR_AMD64_BU_CFG2 0xc001102a
+ #define MSR_AMD64_IBSFETCHCTL 0xc0011030
+diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c
+index b212771df0226..3f182c06b305c 100644
+--- a/arch/x86/kernel/cpu/amd.c
 b/arch/x86/kernel/cpu/amd.c
+@@ -26,11 +26,6 @@
+ 
+ #include "cpu.h"
+ 
+-static const int amd_erratum_383[];
+-static const int amd_erratum_400[];
+-static const int amd_erratum_1054[];
+-static bool cpu_has_amd_erratum(struct cpuinfo_x86 *cpu, const int *erratum);
+-
+ /*
+  * nodes_per_socket: Stores the number of nodes per socket.
+  * Refer to Fam15h Models 00-0fh BKDG - CPUID Fn8000_001E_ECX
+@@ -38,6 +33,78 @@ static bool cpu_has_amd_erratum(struct cpuinfo_x86 *cpu, 
const int *erratum);
+  */
+ static u32 nodes_per_socket = 1;
+ 
++/*
++ * AMD errata checking
++ *
++ * Errata are defined as arrays of ints using the AMD_LEGACY_ERRATUM() or
++ * AMD_OSVW_ERRATUM() macros. The latter is intended for newer errata that
++ * have an OSVW id assigned, which it takes as first argument. Both take a
++ * variable number of family-specific model-stepping ranges created by
++ * AMD_MODEL_RANGE().
++ *
++ * Example:
++ *
++ * const int amd_erratum_319[] =
++ *AMD_LEGACY_ERRATUM(AMD_MODEL_RANGE(0x10, 0x2, 0x1, 0x4, 0x2),
++ *   AMD_MODEL_RANGE(0x10, 0x8, 0x0, 0x8, 0x0),
++ *   AMD_MODEL_RANGE(0x10, 0x9, 0x0, 0x9, 0x0));
++ */
++
++#define AMD_LEGACY_ERRATUM(...)   { -1, __VA_ARGS__, 0 }
++#define AMD_OSVW_ERRATUM(osvw_id, ...){ osvw_id, __VA_ARGS__, 0 }
++#define AMD_MODEL_RANGE(f, m_start, s_start, m_end, s_end) \
++  ((f << 24) | (m_start << 16) | (s_start << 12) | (m_end << 4) | (s_end))
++#define AMD_MODEL_RANGE_FAMILY(range) (((range) >> 24) & 0xff)
++#define AMD_MODEL_RANGE_START(range)  (((range) >> 12) & 0xfff)

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

2023-06-28 Thread Mike Pagano
commit: 03dfae5a53a7cbff9a35c3d87405556b864ea494
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Jun 28 10:28:31 2023 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Jun 28 10:28:31 2023 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=03dfae5a

Linux patch 5.4.249

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

 _README  |4 +
 1248_linux-5.4.249.patch | 3204 ++
 2 files changed, 3208 insertions(+)

diff --git a/_README b/_README
index 1368c885..35a73c75 100644
--- a/_README
+++ b/_README
@@ -1035,6 +1035,10 @@ Patch:  1247_linux-5.4.248.patch
 From:   https://www.kernel.org
 Desc:   Linux 5.4.248
 
+Patch:  1248_linux-5.4.249.patch
+From:   https://www.kernel.org
+Desc:   Linux 5.4.249
+
 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/1248_linux-5.4.249.patch b/1248_linux-5.4.249.patch
new file mode 100644
index ..0d2ac6fb
--- /dev/null
+++ b/1248_linux-5.4.249.patch
@@ -0,0 +1,3204 @@
+diff --git a/Makefile b/Makefile
+index 100787c4e6bda..26a05e73de78f 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 248
++SUBLEVEL = 249
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts 
b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
+index e86d4795e0244..e542a9f59e936 100644
+--- a/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
 b/arch/arm/boot/dts/am57xx-cl-som-am57x.dts
+@@ -527,7 +527,7 @@
+ 
+   interrupt-parent = <>;
+   interrupts = <31 0>;
+-  pendown-gpio = < 31 0>;
++  pendown-gpio = < 31 GPIO_ACTIVE_LOW>;
+ 
+ 
+   ti,x-min = /bits/ 16 <0x0>;
+diff --git a/arch/arm/boot/dts/at91sam9261ek.dts 
b/arch/arm/boot/dts/at91sam9261ek.dts
+index c4ef74fea97c2..ee90ea09e781f 100644
+--- a/arch/arm/boot/dts/at91sam9261ek.dts
 b/arch/arm/boot/dts/at91sam9261ek.dts
+@@ -156,7 +156,7 @@
+   compatible = "ti,ads7843";
+   interrupts-extended = < 2 
IRQ_TYPE_EDGE_BOTH>;
+   spi-max-frequency = <300>;
+-  pendown-gpio = < 2 
GPIO_ACTIVE_HIGH>;
++  pendown-gpio = < 2 
GPIO_ACTIVE_LOW>;
+ 
+   ti,x-min = /bits/ 16 <150>;
+   ti,x-max = /bits/ 16 <3830>;
+diff --git a/arch/arm/boot/dts/imx7d-pico-hobbit.dts 
b/arch/arm/boot/dts/imx7d-pico-hobbit.dts
+index d917dc4f2f227..6ad39dca70096 100644
+--- a/arch/arm/boot/dts/imx7d-pico-hobbit.dts
 b/arch/arm/boot/dts/imx7d-pico-hobbit.dts
+@@ -64,7 +64,7 @@
+   interrupt-parent = <>;
+   interrupts = <7 0>;
+   spi-max-frequency = <100>;
+-  pendown-gpio = < 7 0>;
++  pendown-gpio = < 7 GPIO_ACTIVE_LOW>;
+   vcc-supply = <_3p3v>;
+   ti,x-min = /bits/ 16 <0>;
+   ti,x-max = /bits/ 16 <4095>;
+diff --git a/arch/arm/boot/dts/imx7d-sdb.dts b/arch/arm/boot/dts/imx7d-sdb.dts
+index 363d1f57a608b..88e62801b82e1 100644
+--- a/arch/arm/boot/dts/imx7d-sdb.dts
 b/arch/arm/boot/dts/imx7d-sdb.dts
+@@ -176,7 +176,7 @@
+   pinctrl-0 = <_tsc2046_pendown>;
+   interrupt-parent = <>;
+   interrupts = <29 0>;
+-  pendown-gpio = < 29 GPIO_ACTIVE_HIGH>;
++  pendown-gpio = < 29 GPIO_ACTIVE_LOW>;
+   touchscreen-max-pressure = <255>;
+   wakeup-source;
+   };
+diff --git a/arch/arm/boot/dts/omap3-cm-t3x.dtsi 
b/arch/arm/boot/dts/omap3-cm-t3x.dtsi
+index cdb632df152a1..11ae189441954 100644
+--- a/arch/arm/boot/dts/omap3-cm-t3x.dtsi
 b/arch/arm/boot/dts/omap3-cm-t3x.dtsi
+@@ -227,7 +227,7 @@
+ 
+   interrupt-parent = <>;
+   interrupts = <25 0>;/* gpio_57 */
+-  pendown-gpio = < 25 GPIO_ACTIVE_HIGH>;
++  pendown-gpio = < 25 GPIO_ACTIVE_LOW>;
+ 
+   ti,x-min = /bits/ 16 <0x0>;
+   ti,x-max = /bits/ 16 <0x0fff>;
+diff --git a/arch/arm/boot/dts/omap3-devkit8000-lcd-common.dtsi 
b/arch/arm/boot/dts/omap3-devkit8000-lcd-common.dtsi
+index 3decc2d78a6ca..a7f99ae0c1fe9 100644
+--- a/arch/arm/boot/dts/omap3-devkit8000-lcd-common.dtsi
 b/arch/arm/boot/dts/omap3-devkit8000-lcd-common.dtsi
+@@ -54,7 +54,7 @@
+ 
+   interrupt-parent = <>;
+   interrupts = <27 0>;/* gpio_27 */
+-  pendown-gpio = < 27 GPIO_ACTIVE_HIGH>;
++  pendown-gpio = < 27 GPIO_ACTIVE_LOW>;
+ 
+   ti,x-min = /bits/ 16 <0x0>;
+   ti,x-max = /bits/ 16 <0x0fff>;
+diff --git 

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

2023-06-14 Thread Mike Pagano
commit: 3732a1831a8efb7549f8c7b5cb2d24135969588d
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Jun 14 10:20:32 2023 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Jun 14 10:20:32 2023 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=3732a183

Linux patch 5.4.247

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

 _README  |4 +
 1246_linux-5.4.247.patch | 1293 ++
 2 files changed, 1297 insertions(+)

diff --git a/_README b/_README
index 2f4cc252..a1cdef95 100644
--- a/_README
+++ b/_README
@@ -1027,6 +1027,10 @@ Patch:  1245_linux-5.4.246.patch
 From:   https://www.kernel.org
 Desc:   Linux 5.4.246
 
+Patch:  1246_linux-5.4.247.patch
+From:   https://www.kernel.org
+Desc:   Linux 5.4.247
+
 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/1246_linux-5.4.247.patch b/1246_linux-5.4.247.patch
new file mode 100644
index ..cb679a86
--- /dev/null
+++ b/1246_linux-5.4.247.patch
@@ -0,0 +1,1293 @@
+diff --git a/Makefile b/Makefile
+index c2358bb2f2110..bf5120214e817 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 246
++SUBLEVEL = 247
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/block/blk-iocost.c b/block/blk-iocost.c
+index 4fdc8858a69a9..e7d5aafa5e990 100644
+--- a/block/blk-iocost.c
 b/block/blk-iocost.c
+@@ -248,7 +248,9 @@ enum {
+ 
+   /* 1/64k is granular enough and can easily be handled w/ u32 */
+   HWEIGHT_WHOLE   = 1 << 16,
++};
+ 
++enum {
+   /*
+* As vtime is used to calculate the cost of each IO, it needs to
+* be fairly high precision.  For example, it should be able to
+@@ -271,6 +273,11 @@ enum {
+   VRATE_MIN   = VTIME_PER_USEC * VRATE_MIN_PPM / MILLION,
+   VRATE_CLAMP_ADJ_PCT = 4,
+ 
++  /* switch iff the conditions are met for longer than this */
++  AUTOP_CYCLE_NSEC= 10LLU * NSEC_PER_SEC,
++};
++
++enum {
+   /* if IOs end up waiting for requests, issue less */
+   RQ_WAIT_BUSY_PCT= 5,
+ 
+@@ -288,9 +295,6 @@ enum {
+   SURPLUS_SCALE_ABS   = HWEIGHT_WHOLE / 50,   /* + 2% */
+   SURPLUS_MIN_ADJ_DELTA   = HWEIGHT_WHOLE / 33,   /* 3% */
+ 
+-  /* switch iff the conditions are met for longer than this */
+-  AUTOP_CYCLE_NSEC= 10LLU * NSEC_PER_SEC,
+-
+   /*
+* Count IO size in 4k pages.  The 12bit shift helps keeping
+* size-proportional components of cost calculation in closer
+diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c
+index 8517a231bf5aa..9d21f90f93f06 100644
+--- a/drivers/block/rbd.c
 b/drivers/block/rbd.c
+@@ -1493,14 +1493,30 @@ static bool rbd_obj_is_tail(struct rbd_obj_request 
*obj_req)
+ /*
+  * Must be called after rbd_obj_calc_img_extents().
+  */
+-static bool rbd_obj_copyup_enabled(struct rbd_obj_request *obj_req)
++static void rbd_obj_set_copyup_enabled(struct rbd_obj_request *obj_req)
+ {
+-  if (!obj_req->num_img_extents ||
+-  (rbd_obj_is_entire(obj_req) &&
+-   !obj_req->img_request->snapc->num_snaps))
+-  return false;
++  rbd_assert(obj_req->img_request->snapc);
+ 
+-  return true;
++  if (obj_req->img_request->op_type == OBJ_OP_DISCARD) {
++  dout("%s %p objno %llu discard\n", __func__, obj_req,
++   obj_req->ex.oe_objno);
++  return;
++  }
++
++  if (!obj_req->num_img_extents) {
++  dout("%s %p objno %llu not overlapping\n", __func__, obj_req,
++   obj_req->ex.oe_objno);
++  return;
++  }
++
++  if (rbd_obj_is_entire(obj_req) &&
++  !obj_req->img_request->snapc->num_snaps) {
++  dout("%s %p objno %llu entire\n", __func__, obj_req,
++   obj_req->ex.oe_objno);
++  return;
++  }
++
++  obj_req->flags |= RBD_OBJ_FLAG_COPYUP_ENABLED;
+ }
+ 
+ static u64 rbd_obj_img_extents_bytes(struct rbd_obj_request *obj_req)
+@@ -1599,6 +1615,7 @@ __rbd_obj_add_osd_request(struct rbd_obj_request 
*obj_req,
+ static struct ceph_osd_request *
+ rbd_obj_add_osd_request(struct rbd_obj_request *obj_req, int num_ops)
+ {
++  rbd_assert(obj_req->img_request->snapc);
+   return __rbd_obj_add_osd_request(obj_req, obj_req->img_request->snapc,
+num_ops);
+ }
+@@ -1727,11 +1744,14 @@ static bool rbd_dev_parent_get(struct rbd_device 
*rbd_dev)
+  * Caller is responsible for filling in the list of object requests
+  * that comprises the image request, and the Linux request pointer
+  * (if there is one).
++ *
++ * Only snap_id is captured here, for reads.  For writes, snapshot
++ * context is captured in rbd_img_object_requests() after exclusive
++ * lock is 

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

2023-06-05 Thread Mike Pagano
commit: 69042ad09e4a5c8bbee21cfb0a2d5b0eb665106e
Author: Mike Pagano  gentoo  org>
AuthorDate: Mon Jun  5 11:50:42 2023 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Mon Jun  5 11:50:42 2023 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=69042ad0

Linux patch 5.4.245

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

 _README  |4 +
 1244_linux-5.4.245.patch | 1307 ++
 2 files changed, 1311 insertions(+)

diff --git a/_README b/_README
index 2bc77166..780ca5e9 100644
--- a/_README
+++ b/_README
@@ -1019,6 +1019,10 @@ Patch:  1243_linux-5.4.244.patch
 From:   https://www.kernel.org
 Desc:   Linux 5.4.244
 
+Patch:  1244_linux-5.4.245.patch
+From:   https://www.kernel.org
+Desc:   Linux 5.4.245
+
 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/1244_linux-5.4.245.patch b/1244_linux-5.4.245.patch
new file mode 100644
index ..39dd4d96
--- /dev/null
+++ b/1244_linux-5.4.245.patch
@@ -0,0 +1,1307 @@
+diff --git a/Makefile b/Makefile
+index a12f1af9b03b1..c0a1daa41dc04 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 244
++SUBLEVEL = 245
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/drivers/android/binder.c b/drivers/android/binder.c
+index 4b96742f0fe57..1c39cd12b755a 100644
+--- a/drivers/android/binder.c
 b/drivers/android/binder.c
+@@ -2270,24 +2270,23 @@ static void binder_deferred_fd_close(int fd)
+ static void binder_transaction_buffer_release(struct binder_proc *proc,
+ struct binder_thread *thread,
+ struct binder_buffer *buffer,
+-binder_size_t failed_at,
++binder_size_t off_end_offset,
+ bool is_failure)
+ {
+   int debug_id = buffer->debug_id;
+-  binder_size_t off_start_offset, buffer_offset, off_end_offset;
++  binder_size_t off_start_offset, buffer_offset;
+ 
+   binder_debug(BINDER_DEBUG_TRANSACTION,
+"%d buffer release %d, size %zd-%zd, failed at %llx\n",
+proc->pid, buffer->debug_id,
+buffer->data_size, buffer->offsets_size,
+-   (unsigned long long)failed_at);
++   (unsigned long long)off_end_offset);
+ 
+   if (buffer->target_node)
+   binder_dec_node(buffer->target_node, 1, 0);
+ 
+   off_start_offset = ALIGN(buffer->data_size, sizeof(void *));
+-  off_end_offset = is_failure && failed_at ? failed_at :
+-  off_start_offset + buffer->offsets_size;
++
+   for (buffer_offset = off_start_offset; buffer_offset < off_end_offset;
+buffer_offset += sizeof(binder_size_t)) {
+   struct binder_object_header *hdr;
+@@ -2447,6 +2446,21 @@ static void binder_transaction_buffer_release(struct 
binder_proc *proc,
+   }
+ }
+ 
++/* Clean up all the objects in the buffer */
++static inline void binder_release_entire_buffer(struct binder_proc *proc,
++  struct binder_thread *thread,
++  struct binder_buffer *buffer,
++  bool is_failure)
++{
++  binder_size_t off_end_offset;
++
++  off_end_offset = ALIGN(buffer->data_size, sizeof(void *));
++  off_end_offset += buffer->offsets_size;
++
++  binder_transaction_buffer_release(proc, thread, buffer,
++off_end_offset, is_failure);
++}
++
+ static int binder_translate_binder(struct flat_binder_object *fp,
+  struct binder_transaction *t,
+  struct binder_thread *thread)
+@@ -3930,7 +3944,7 @@ binder_free_buf(struct binder_proc *proc,
+   binder_node_inner_unlock(buf_node);
+   }
+   trace_binder_transaction_buffer_release(buffer);
+-  binder_transaction_buffer_release(proc, thread, buffer, 0, is_failure);
++  binder_release_entire_buffer(proc, thread, buffer, is_failure);
+   binder_alloc_free_buf(>alloc, buffer);
+ }
+ 
+diff --git a/drivers/net/ethernet/mellanox/mlx5/core/lib/devcom.c 
b/drivers/net/ethernet/mellanox/mlx5/core/lib/devcom.c
+index abd066e952286..438be215bbd45 100644
+--- a/drivers/net/ethernet/mellanox/mlx5/core/lib/devcom.c
 b/drivers/net/ethernet/mellanox/mlx5/core/lib/devcom.c
+@@ -3,6 +3,7 @@
+ 
+ #include 
+ #include "lib/devcom.h"
++#include "mlx5_core.h"
+ 
+ static LIST_HEAD(devcom_list);
+ 
+@@ -14,7 +15,7 @@ static LIST_HEAD(devcom_list);
+ struct mlx5_devcom_component {
+   struct {
+   void 

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

2023-05-17 Thread Mike Pagano
commit: 1860a78c7464ffc0c24b54f125446cf1e1295499
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed May 17 11:21:04 2023 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed May 17 11:21:04 2023 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=1860a78c

Removed redundant patch

Removed:
1520_fs-enable-link-security-restrictions-by-default.patch

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

 _README|   4 -
 ...nf-tables-make-deleted-anon-sets-inactive.patch | 121 -
 2 files changed, 125 deletions(-)

diff --git a/_README b/_README
index 76122730..b7bf2fd4 100644
--- a/_README
+++ b/_README
@@ -1023,10 +1023,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:  1520_fs-enable-link-security-restrictions-by-default.patch
-From:   
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/patch/?id=c1592a89942e9678f7d9c8030efa777c0d57edab
-Desc:   netfilter: nf_tables: deactivate anonymous set from preparation phase
-
 Patch:  2000_BT-Check-key-sizes-only-if-Secure-Simple-Pairing-enabled.patch
 From:   
https://lore.kernel.org/linux-bluetooth/20190522070540.48895-1-mar...@holtmann.org/raw
 Desc:   Bluetooth: Check key sizes only when Secure Simple Pairing is enabled. 
See bug #686758

diff --git a/1520_nf-tables-make-deleted-anon-sets-inactive.patch 
b/1520_nf-tables-make-deleted-anon-sets-inactive.patch
deleted file mode 100644
index cd75de5c..
--- a/1520_nf-tables-make-deleted-anon-sets-inactive.patch
+++ /dev/null
@@ -1,121 +0,0 @@
-From c1592a89942e9678f7d9c8030efa777c0d57edab Mon Sep 17 00:00:00 2001
-From: Pablo Neira Ayuso 
-Date: Tue, 2 May 2023 10:25:24 +0200
-Subject: netfilter: nf_tables: deactivate anonymous set from preparation phase
-
-Toggle deleted anonymous sets as inactive in the next generation, so
-users cannot perform any update on it. Clear the generation bitmask
-in case the transaction is aborted.
-
-The following KASAN splat shows a set element deletion for a bound
-anonymous set that has been already removed in the same transaction.
-
-[   64.921510] 
==
-[   64.923123] BUG: KASAN: wild-memory-access in nf_tables_commit+0xa24/0x1490 
[nf_tables]
-[   64.924745] Write of size 8 at addr dead0122 by task test/890
-[   64.927903] CPU: 3 PID: 890 Comm: test Not tainted 6.3.0+ #253
-[   64.931120] Call Trace:
-[   64.932699]  
-[   64.934292]  dump_stack_lvl+0x33/0x50
-[   64.935908]  ? nf_tables_commit+0xa24/0x1490 [nf_tables]
-[   64.937551]  kasan_report+0xda/0x120
-[   64.939186]  ? nf_tables_commit+0xa24/0x1490 [nf_tables]
-[   64.940814]  nf_tables_commit+0xa24/0x1490 [nf_tables]
-[   64.942452]  ? __kasan_slab_alloc+0x2d/0x60
-[   64.944070]  ? nf_tables_setelem_notify+0x190/0x190 [nf_tables]
-[   64.945710]  ? kasan_set_track+0x21/0x30
-[   64.947323]  nfnetlink_rcv_batch+0x709/0xd90 [nfnetlink]
-[   64.948898]  ? nfnetlink_rcv_msg+0x480/0x480 [nfnetlink]
-
-Signed-off-by: Pablo Neira Ayuso 

- include/net/netfilter/nf_tables.h |  1 +
- net/netfilter/nf_tables_api.c | 12 
- net/netfilter/nft_dynset.c|  2 +-
- net/netfilter/nft_lookup.c|  2 +-
- net/netfilter/nft_objref.c|  2 +-
- 5 files changed, 16 insertions(+), 3 deletions(-)
-
-diff --git a/include/net/netfilter/nf_tables.h 
b/include/net/netfilter/nf_tables.h
-index 3ed21d2d56590..2e24ea1d744c2 100644
 a/include/net/netfilter/nf_tables.h
-+++ b/include/net/netfilter/nf_tables.h
-@@ -619,6 +619,7 @@ struct nft_set_binding {
- };
- 
- enum nft_trans_phase;
-+void nf_tables_activate_set(const struct nft_ctx *ctx, struct nft_set *set);
- void nf_tables_deactivate_set(const struct nft_ctx *ctx, struct nft_set *set,
- struct nft_set_binding *binding,
- enum nft_trans_phase phase);
-diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c
-index 8b6c61a2196cb..59fb8320ab4d7 100644
 a/net/netfilter/nf_tables_api.c
-+++ b/net/netfilter/nf_tables_api.c
-@@ -5127,12 +5127,24 @@ static void nf_tables_unbind_set(const struct nft_ctx 
*ctx, struct nft_set *set,
-   }
- }
- 
-+void nf_tables_activate_set(const struct nft_ctx *ctx, struct nft_set *set)
-+{
-+  if (nft_set_is_anonymous(set))
-+  nft_clear(ctx->net, set);
-+
-+  set->use++;
-+}
-+EXPORT_SYMBOL_GPL(nf_tables_activate_set);
-+
- void nf_tables_deactivate_set(const struct nft_ctx *ctx, struct nft_set *set,
- struct nft_set_binding *binding,
- enum nft_trans_phase phase)
- {
-   switch (phase) {
-   case NFT_TRANS_PREPARE:
-+  if 

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

2023-05-10 Thread Mike Pagano
commit: 58460d46508a93c1e9049385c84b198ac1752741
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed May 10 17:57:55 2023 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed May 10 17:57:55 2023 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=58460d46

netfilter: nf_tables: deactivate anonymous set from preparation phase

Bug: https://bugs.gentoo.org/90606

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

 _README|   4 +
 ...nf-tables-make-deleted-anon-sets-inactive.patch | 121 +
 2 files changed, 125 insertions(+)

diff --git a/_README b/_README
index 01be6725..fbd77e14 100644
--- a/_README
+++ b/_README
@@ -1019,6 +1019,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:  1520_fs-enable-link-security-restrictions-by-default.patch
+From:   
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/patch/?id=c1592a89942e9678f7d9c8030efa777c0d57edab
+Desc:   netfilter: nf_tables: deactivate anonymous set from preparation phase
+
 Patch:  2000_BT-Check-key-sizes-only-if-Secure-Simple-Pairing-enabled.patch
 From:   
https://lore.kernel.org/linux-bluetooth/20190522070540.48895-1-mar...@holtmann.org/raw
 Desc:   Bluetooth: Check key sizes only when Secure Simple Pairing is enabled. 
See bug #686758

diff --git a/1520_nf-tables-make-deleted-anon-sets-inactive.patch 
b/1520_nf-tables-make-deleted-anon-sets-inactive.patch
new file mode 100644
index ..cd75de5c
--- /dev/null
+++ b/1520_nf-tables-make-deleted-anon-sets-inactive.patch
@@ -0,0 +1,121 @@
+From c1592a89942e9678f7d9c8030efa777c0d57edab Mon Sep 17 00:00:00 2001
+From: Pablo Neira Ayuso 
+Date: Tue, 2 May 2023 10:25:24 +0200
+Subject: netfilter: nf_tables: deactivate anonymous set from preparation phase
+
+Toggle deleted anonymous sets as inactive in the next generation, so
+users cannot perform any update on it. Clear the generation bitmask
+in case the transaction is aborted.
+
+The following KASAN splat shows a set element deletion for a bound
+anonymous set that has been already removed in the same transaction.
+
+[   64.921510] 
==
+[   64.923123] BUG: KASAN: wild-memory-access in nf_tables_commit+0xa24/0x1490 
[nf_tables]
+[   64.924745] Write of size 8 at addr dead0122 by task test/890
+[   64.927903] CPU: 3 PID: 890 Comm: test Not tainted 6.3.0+ #253
+[   64.931120] Call Trace:
+[   64.932699]  
+[   64.934292]  dump_stack_lvl+0x33/0x50
+[   64.935908]  ? nf_tables_commit+0xa24/0x1490 [nf_tables]
+[   64.937551]  kasan_report+0xda/0x120
+[   64.939186]  ? nf_tables_commit+0xa24/0x1490 [nf_tables]
+[   64.940814]  nf_tables_commit+0xa24/0x1490 [nf_tables]
+[   64.942452]  ? __kasan_slab_alloc+0x2d/0x60
+[   64.944070]  ? nf_tables_setelem_notify+0x190/0x190 [nf_tables]
+[   64.945710]  ? kasan_set_track+0x21/0x30
+[   64.947323]  nfnetlink_rcv_batch+0x709/0xd90 [nfnetlink]
+[   64.948898]  ? nfnetlink_rcv_msg+0x480/0x480 [nfnetlink]
+
+Signed-off-by: Pablo Neira Ayuso 
+---
+ include/net/netfilter/nf_tables.h |  1 +
+ net/netfilter/nf_tables_api.c | 12 
+ net/netfilter/nft_dynset.c|  2 +-
+ net/netfilter/nft_lookup.c|  2 +-
+ net/netfilter/nft_objref.c|  2 +-
+ 5 files changed, 16 insertions(+), 3 deletions(-)
+
+diff --git a/include/net/netfilter/nf_tables.h 
b/include/net/netfilter/nf_tables.h
+index 3ed21d2d56590..2e24ea1d744c2 100644
+--- a/include/net/netfilter/nf_tables.h
 b/include/net/netfilter/nf_tables.h
+@@ -619,6 +619,7 @@ struct nft_set_binding {
+ };
+ 
+ enum nft_trans_phase;
++void nf_tables_activate_set(const struct nft_ctx *ctx, struct nft_set *set);
+ void nf_tables_deactivate_set(const struct nft_ctx *ctx, struct nft_set *set,
+ struct nft_set_binding *binding,
+ enum nft_trans_phase phase);
+diff --git a/net/netfilter/nf_tables_api.c b/net/netfilter/nf_tables_api.c
+index 8b6c61a2196cb..59fb8320ab4d7 100644
+--- a/net/netfilter/nf_tables_api.c
 b/net/netfilter/nf_tables_api.c
+@@ -5127,12 +5127,24 @@ static void nf_tables_unbind_set(const struct nft_ctx 
*ctx, struct nft_set *set,
+   }
+ }
+ 
++void nf_tables_activate_set(const struct nft_ctx *ctx, struct nft_set *set)
++{
++  if (nft_set_is_anonymous(set))
++  nft_clear(ctx->net, set);
++
++  set->use++;
++}
++EXPORT_SYMBOL_GPL(nf_tables_activate_set);
++
+ void nf_tables_deactivate_set(const struct nft_ctx *ctx, struct nft_set *set,
+ struct nft_set_binding *binding,
+ enum nft_trans_phase phase)
+ {
+   switch (phase) {
+   case NFT_TRANS_PREPARE:
++  if 

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

2023-04-26 Thread Alice Ferrazzi
commit: 195b8f27069ad40c6ee30eee9cdab36a71049708
Author: Alice Ferrazzi  gentoo  org>
AuthorDate: Wed Apr 26 09:51:07 2023 +
Commit: Alice Ferrazzi  gentoo  org>
CommitDate: Wed Apr 26 09:51:07 2023 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=195b8f27

Linux patch 5.4.242

Signed-off-by: Alice Ferrazzi  gentoo.org>

 _README  |4 +
 1241_linux-5.4.242.patch | 1433 ++
 2 files changed, 1437 insertions(+)

diff --git a/_README b/_README
index c3c10ecc..01be6725 100644
--- a/_README
+++ b/_README
@@ -1007,6 +1007,10 @@ Patch:  1240_linux-5.4.241.patch
 From:   https://www.kernel.org
 Desc:   Linux 5.4.241
 
+Patch:  1241_linux-5.4.242.patch
+From:   https://www.kernel.org
+Desc:   Linux 5.4.242
+
 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/1241_linux-5.4.242.patch b/1241_linux-5.4.242.patch
new file mode 100644
index ..d80525c1
--- /dev/null
+++ b/1241_linux-5.4.242.patch
@@ -0,0 +1,1433 @@
+diff --git a/Makefile b/Makefile
+index d9bbe9524e082..ab3ba43588425 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 241
++SUBLEVEL = 242
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi
+index 3a7d375389d0e..36f943a3f3ad2 100644
+--- a/arch/arm/boot/dts/rk3288.dtsi
 b/arch/arm/boot/dts/rk3288.dtsi
+@@ -942,7 +942,7 @@
+   status = "disabled";
+   };
+ 
+-  spdif: sound@ff88b {
++  spdif: sound@ff8b {
+   compatible = "rockchip,rk3288-spdif", "rockchip,rk3066-spdif";
+   reg = <0x0 0xff8b 0x0 0x1>;
+   #sound-dai-cells = <0>;
+diff --git a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi 
b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi
+index 937b27549d56d..a31b623fedb75 100644
+--- a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi
 b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi
+@@ -1376,10 +1376,9 @@
+ 
+   dmc: bus@38000 {
+   compatible = "simple-bus";
+-  reg = <0x0 0x38000 0x0 0x400>;
+   #address-cells = <2>;
+   #size-cells = <2>;
+-  ranges = <0x0 0x0 0x0 0x38000 0x0 0x400>;
++  ranges = <0x0 0x0 0x0 0x38000 0x0 0x2000>;
+ 
+   canvas: video-lut@48 {
+   compatible = "amlogic,canvas";
+diff --git a/arch/mips/kernel/vmlinux.lds.S b/arch/mips/kernel/vmlinux.lds.S
+index faf98f209b3f4..6f62c1a3bcfc9 100644
+--- a/arch/mips/kernel/vmlinux.lds.S
 b/arch/mips/kernel/vmlinux.lds.S
+@@ -10,6 +10,8 @@
+  */
+ #define BSS_FIRST_SECTIONS *(.bss..swapper_pg_dir)
+ 
++#define RUNTIME_DISCARD_EXIT
++
+ #include 
+ 
+ #undef mips
+diff --git a/arch/s390/kernel/ptrace.c b/arch/s390/kernel/ptrace.c
+index ad74472ce967e..34ca344039bbf 100644
+--- a/arch/s390/kernel/ptrace.c
 b/arch/s390/kernel/ptrace.c
+@@ -502,9 +502,7 @@ long arch_ptrace(struct task_struct *child, long request,
+   }
+   return 0;
+   case PTRACE_GET_LAST_BREAK:
+-  put_user(child->thread.last_break,
+-   (unsigned long __user *) data);
+-  return 0;
++  return put_user(child->thread.last_break, (unsigned long __user 
*)data);
+   case PTRACE_ENABLE_TE:
+   if (!MACHINE_HAS_TE)
+   return -EIO;
+@@ -856,9 +854,7 @@ long compat_arch_ptrace(struct task_struct *child, 
compat_long_t request,
+   }
+   return 0;
+   case PTRACE_GET_LAST_BREAK:
+-  put_user(child->thread.last_break,
+-   (unsigned int __user *) data);
+-  return 0;
++  return put_user(child->thread.last_break, (unsigned int __user 
*)data);
+   }
+   return compat_ptrace_request(child, request, addr, data);
+ }
+diff --git a/arch/x86/purgatory/Makefile b/arch/x86/purgatory/Makefile
+index 9733d1cc791dd..969d2b2eb7d71 100644
+--- a/arch/x86/purgatory/Makefile
 b/arch/x86/purgatory/Makefile
+@@ -27,7 +27,7 @@ KCOV_INSTRUMENT := n
+ # make up the standalone purgatory.ro
+ 
+ PURGATORY_CFLAGS_REMOVE := -mcmodel=kernel
+-PURGATORY_CFLAGS := -mcmodel=large -ffreestanding -fno-zero-initialized-in-bss
++PURGATORY_CFLAGS := -mcmodel=large -ffreestanding 
-fno-zero-initialized-in-bss -g0
+ PURGATORY_CFLAGS += $(DISABLE_STACKLEAK_PLUGIN) -DDISABLE_BRANCH_PROFILING
+ 
+ # Default KBUILD_CFLAGS can have -pg option set when FTRACE is enabled. That
+@@ -58,6 +58,9 @@ CFLAGS_sha256.o  += $(PURGATORY_CFLAGS)
+ 

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

2023-04-20 Thread Alice Ferrazzi
commit: 3eb5aeeab04f3ee6f5a28624465d859027f74799
Author: Alice Ferrazzi  gentoo  org>
AuthorDate: Thu Apr 20 11:17:13 2023 +
Commit: Alice Ferrazzi  gentoo  org>
CommitDate: Thu Apr 20 11:17:13 2023 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=3eb5aeea

Linux patch 5.4.241

Signed-off-by: Alice Ferrazzi  gentoo.org>

 _README  |4 +
 1240_linux-5.4.241.patch | 3476 ++
 2 files changed, 3480 insertions(+)

diff --git a/_README b/_README
index fa0e5af9..c3c10ecc 100644
--- a/_README
+++ b/_README
@@ -1003,6 +1003,10 @@ Patch:  1239_linux-5.4.240.patch
 From:   https://www.kernel.org
 Desc:   Linux 5.4.240
 
+Patch:  1240_linux-5.4.241.patch
+From:   https://www.kernel.org
+Desc:   Linux 5.4.241
+
 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/1240_linux-5.4.241.patch b/1240_linux-5.4.241.patch
new file mode 100644
index ..c390717a
--- /dev/null
+++ b/1240_linux-5.4.241.patch
@@ -0,0 +1,3476 @@
+diff --git a/Documentation/sound/hd-audio/models.rst 
b/Documentation/sound/hd-audio/models.rst
+index 4c91abad7b35c..71ac38739d274 100644
+--- a/Documentation/sound/hd-audio/models.rst
 b/Documentation/sound/hd-audio/models.rst
+@@ -702,7 +702,7 @@ ref
+ no-jd
+ BIOS setup but without jack-detection
+ intel
+-Intel DG45* mobos
++Intel D*45* mobos
+ dell-m6-amic
+ Dell desktops/laptops with analog mics
+ dell-m6-dmic
+diff --git a/Makefile b/Makefile
+index ff3e24e55f565..d9bbe9524e082 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 240
++SUBLEVEL = 241
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/mips/lasat/picvue_proc.c b/arch/mips/lasat/picvue_proc.c
+index 8126f15b8e09a..6b019915b0c8f 100644
+--- a/arch/mips/lasat/picvue_proc.c
 b/arch/mips/lasat/picvue_proc.c
+@@ -39,7 +39,7 @@ static void pvc_display(unsigned long data)
+   pvc_write_string(pvc_lines[i], 0, i);
+ }
+ 
+-static DECLARE_TASKLET(pvc_display_tasklet, _display, 0);
++static DECLARE_TASKLET_OLD(pvc_display_tasklet, _display);
+ 
+ static int pvc_line_proc_show(struct seq_file *m, void *v)
+ {
+diff --git a/arch/x86/kernel/sysfb_efi.c b/arch/x86/kernel/sysfb_efi.c
+index 9ea65611fba0b..fff04d2859765 100644
+--- a/arch/x86/kernel/sysfb_efi.c
 b/arch/x86/kernel/sysfb_efi.c
+@@ -272,6 +272,14 @@ static const struct dmi_system_id 
efifb_dmi_swap_width_height[] __initconst = {
+   "IdeaPad Duet 3 10IGL5"),
+   },
+   },
++  {
++  /* Lenovo Yoga Book X91F / X91L */
++  .matches = {
++  DMI_EXACT_MATCH(DMI_SYS_VENDOR, "LENOVO"),
++  /* Non exact match to match F + L versions */
++  DMI_MATCH(DMI_PRODUCT_NAME, "Lenovo YB1-X91"),
++  },
++  },
+   {},
+ };
+ 
+diff --git a/arch/x86/pci/fixup.c b/arch/x86/pci/fixup.c
+index 76959a7d88c82..94291e0ddcb7a 100644
+--- a/arch/x86/pci/fixup.c
 b/arch/x86/pci/fixup.c
+@@ -7,6 +7,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ #include 
+ #include 
+ 
+@@ -824,3 +825,23 @@ static void rs690_fix_64bit_dma(struct pci_dev *pdev)
+ DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_ATI, 0x7910, rs690_fix_64bit_dma);
+ 
+ #endif
++
++#ifdef CONFIG_AMD_NB
++
++#define AMD_15B8_RCC_DEV2_EPF0_STRAP2  
0x10136008
++#define AMD_15B8_RCC_DEV2_EPF0_STRAP2_NO_SOFT_RESET_DEV2_F0_MASK   
0x0080L
++
++static void quirk_clear_strap_no_soft_reset_dev2_f0(struct pci_dev *dev)
++{
++  u32 data;
++
++  if (!amd_smn_read(0, AMD_15B8_RCC_DEV2_EPF0_STRAP2, )) {
++  data &= 
~AMD_15B8_RCC_DEV2_EPF0_STRAP2_NO_SOFT_RESET_DEV2_F0_MASK;
++  if (amd_smn_write(0, AMD_15B8_RCC_DEV2_EPF0_STRAP2, data))
++  pci_err(dev, "Failed to write data 0x%x\n", data);
++  } else {
++  pci_err(dev, "Failed to read data\n");
++  }
++}
++DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_AMD, 0x15b8, 
quirk_clear_strap_no_soft_reset_dev2_f0);
++#endif
+diff --git a/crypto/asymmetric_keys/pkcs7_verify.c 
b/crypto/asymmetric_keys/pkcs7_verify.c
+index ce49820caa97f..01e54450c846f 100644
+--- a/crypto/asymmetric_keys/pkcs7_verify.c
 b/crypto/asymmetric_keys/pkcs7_verify.c
+@@ -79,16 +79,16 @@ static int pkcs7_digest(struct pkcs7_message *pkcs7,
+   }
+ 
+   if (sinfo->msgdigest_len != sig->digest_size) {
+-  pr_debug("Sig %u: Invalid digest size (%u)\n",
+-   sinfo->index, sinfo->msgdigest_len);
++  pr_warn("Sig %u: Invalid digest size (%u)\n",
++  sinfo->index, sinfo->msgdigest_len);
+

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

2023-04-05 Thread Alice Ferrazzi
commit: 3cf12185d4f6b58d43b5db1c870850049e42fc53
Author: Alice Ferrazzi  gentoo  org>
AuthorDate: Wed Apr  5 10:01:20 2023 +
Commit: Alice Ferrazzi  gentoo  org>
CommitDate: Wed Apr  5 10:01:20 2023 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=3cf12185

Linux patch 5.4.240

Signed-off-by: Alice Ferrazzi  gentoo.org>

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

diff --git a/_README b/_README
index feede7bc..fa0e5af9 100644
--- a/_README
+++ b/_README
@@ -999,6 +999,10 @@ Patch:  1238_linux-5.4.239.patch
 From:   https://www.kernel.org
 Desc:   Linux 5.4.239
 
+Patch:  1239_linux-5.4.240.patch
+From:   https://www.kernel.org
+Desc:   Linux 5.4.240
+
 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/1239_linux-5.4.240.patch b/1239_linux-5.4.240.patch
new file mode 100644
index ..0db37415
--- /dev/null
+++ b/1239_linux-5.4.240.patch
@@ -0,0 +1,3861 @@
+diff --git a/Makefile b/Makefile
+index f966eeb6b9bca..ff3e24e55f565 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 239
++SUBLEVEL = 240
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arc/mm/dma.c b/arch/arc/mm/dma.c
+index 73a7e88a1e926..e947572a521ec 100644
+--- a/arch/arc/mm/dma.c
 b/arch/arc/mm/dma.c
+@@ -48,8 +48,8 @@ void arch_dma_prep_coherent(struct page *page, size_t size)
+  * upper layer functions (in include/linux/dma-mapping.h)
+  */
+ 
+-void arch_sync_dma_for_device(struct device *dev, phys_addr_t paddr,
+-  size_t size, enum dma_data_direction dir)
++void arch_sync_dma_for_device(phys_addr_t paddr, size_t size,
++  enum dma_data_direction dir)
+ {
+   switch (dir) {
+   case DMA_TO_DEVICE:
+@@ -69,8 +69,8 @@ void arch_sync_dma_for_device(struct device *dev, 
phys_addr_t paddr,
+   }
+ }
+ 
+-void arch_sync_dma_for_cpu(struct device *dev, phys_addr_t paddr,
+-  size_t size, enum dma_data_direction dir)
++void arch_sync_dma_for_cpu(phys_addr_t paddr, size_t size,
++  enum dma_data_direction dir)
+ {
+   switch (dir) {
+   case DMA_TO_DEVICE:
+diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c
+index 27576c7b836ee..fbfb9250e743a 100644
+--- a/arch/arm/mm/dma-mapping.c
 b/arch/arm/mm/dma-mapping.c
+@@ -2332,15 +2332,15 @@ void arch_teardown_dma_ops(struct device *dev)
+ }
+ 
+ #ifdef CONFIG_SWIOTLB
+-void arch_sync_dma_for_device(struct device *dev, phys_addr_t paddr,
+-  size_t size, enum dma_data_direction dir)
++void arch_sync_dma_for_device(phys_addr_t paddr, size_t size,
++  enum dma_data_direction dir)
+ {
+   __dma_page_cpu_to_dev(phys_to_page(paddr), paddr & (PAGE_SIZE - 1),
+ size, dir);
+ }
+ 
+-void arch_sync_dma_for_cpu(struct device *dev, phys_addr_t paddr,
+-  size_t size, enum dma_data_direction dir)
++void arch_sync_dma_for_cpu(phys_addr_t paddr, size_t size,
++  enum dma_data_direction dir)
+ {
+   __dma_page_dev_to_cpu(phys_to_page(paddr), paddr & (PAGE_SIZE - 1),
+ size, dir);
+diff --git a/arch/arm/xen/mm.c b/arch/arm/xen/mm.c
+index 38fa917c8585c..a6a2514e5fe8f 100644
+--- a/arch/arm/xen/mm.c
 b/arch/arm/xen/mm.c
+@@ -70,20 +70,20 @@ static void dma_cache_maint(dma_addr_t handle, size_t 
size, u32 op)
+  * pfn_valid returns true the pages is local and we can use the native
+  * dma-direct functions, otherwise we call the Xen specific version.
+  */
+-void xen_dma_sync_for_cpu(struct device *dev, dma_addr_t handle,
+-  phys_addr_t paddr, size_t size, enum dma_data_direction dir)
++void xen_dma_sync_for_cpu(dma_addr_t handle, phys_addr_t paddr, size_t size,
++  enum dma_data_direction dir)
+ {
+   if (pfn_valid(PFN_DOWN(handle)))
+-  arch_sync_dma_for_cpu(dev, paddr, size, dir);
++  arch_sync_dma_for_cpu(paddr, size, dir);
+   else if (dir != DMA_TO_DEVICE)
+   dma_cache_maint(handle, size, GNTTAB_CACHE_INVAL);
+ }
+ 
+-void xen_dma_sync_for_device(struct device *dev, dma_addr_t handle,
+-  phys_addr_t paddr, size_t size, enum dma_data_direction dir)
++void xen_dma_sync_for_device(dma_addr_t handle, phys_addr_t paddr, size_t 
size,
++  enum dma_data_direction dir)
+ {
+   if (pfn_valid(PFN_DOWN(handle)))
+-  arch_sync_dma_for_device(dev, paddr, size, dir);
++  arch_sync_dma_for_device(paddr, size, dir);
+   else if (dir == DMA_FROM_DEVICE)
+   dma_cache_maint(handle, size, GNTTAB_CACHE_INVAL);
+   else
+diff --git a/arch/arm64/mm/dma-mapping.c b/arch/arm64/mm/dma-mapping.c
+index 

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

2023-03-30 Thread Alice Ferrazzi
commit: 2acba9d2391365e32d67a37b52a57cba5474e387
Author: Alice Ferrazzi  gentoo  org>
AuthorDate: Thu Mar 30 13:40:49 2023 +
Commit: Alice Ferrazzi  gentoo  org>
CommitDate: Thu Mar 30 13:40:49 2023 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=2acba9d2

Linux patch 5.4.239

Signed-off-by: Alice Ferrazzi  gentoo.org>

 _README  |  4 
 1238_linux-5.4.239.patch | 16 
 2 files changed, 20 insertions(+)

diff --git a/_README b/_README
index e2285791..feede7bc 100644
--- a/_README
+++ b/_README
@@ -995,6 +995,10 @@ Patch:  1237_linux-5.4.238.patch
 From:   https://www.kernel.org
 Desc:   Linux 5.4.238
 
+Patch:  1238_linux-5.4.239.patch
+From:   https://www.kernel.org
+Desc:   Linux 5.4.239
+
 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/1238_linux-5.4.239.patch b/1238_linux-5.4.239.patch
new file mode 100644
index ..6e0075b1
--- /dev/null
+++ b/1238_linux-5.4.239.patch
@@ -0,0 +1,16 @@
+diff --git a/Makefile b/Makefile
+index 436450833e1c2..f966eeb6b9bca 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 238
++SUBLEVEL = 239
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/tools/testing/selftests/net/fib_tests.sh 
b/tools/testing/selftests/net/fib_tests.sh
+old mode 100644
+new mode 100755



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

2023-03-22 Thread Alice Ferrazzi
commit: ba34eaaa90c698c6c945c748288f708cf76080a2
Author: Alice Ferrazzi  gentoo  org>
AuthorDate: Wed Mar 22 12:51:36 2023 +
Commit: Alice Ferrazzi  gentoo  org>
CommitDate: Wed Mar 22 12:51:36 2023 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=ba34eaaa

Linux patch 5.4.238

Signed-off-by: Alice Ferrazzi  gentoo.org>

 _README  |4 +
 1237_linux-5.4.238.patch | 1414 ++
 2 files changed, 1418 insertions(+)

diff --git a/_README b/_README
index 682673ff..e2285791 100644
--- a/_README
+++ b/_README
@@ -991,6 +991,10 @@ Patch:  1236_linux-5.4.237.patch
 From:   https://www.kernel.org
 Desc:   Linux 5.4.237
 
+Patch:  1237_linux-5.4.238.patch
+From:   https://www.kernel.org
+Desc:   Linux 5.4.238
+
 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/1237_linux-5.4.238.patch b/1237_linux-5.4.238.patch
new file mode 100644
index ..7d2999a9
--- /dev/null
+++ b/1237_linux-5.4.238.patch
@@ -0,0 +1,1414 @@
+diff --git a/Documentation/filesystems/vfs.rst 
b/Documentation/filesystems/vfs.rst
+index 7d4d09dd5e6de..241e312006434 100644
+--- a/Documentation/filesystems/vfs.rst
 b/Documentation/filesystems/vfs.rst
+@@ -1173,7 +1173,7 @@ defined:
+   return
+   -ECHILD and it will be called again in ref-walk mode.
+ 
+-``_weak_revalidate``
++``d_weak_revalidate``
+   called when the VFS needs to revalidate a "jumped" dentry.  This
+   is called when a path-walk ends at dentry that was not acquired
+   by doing a lookup in the parent directory.  This includes "/",
+diff --git a/Makefile b/Makefile
+index ccac1c82eb781..436450833e1c2 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 237
++SUBLEVEL = 238
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/s390/boot/ipl_report.c b/arch/s390/boot/ipl_report.c
+index 0b4965573656f..88bacf4999c47 100644
+--- a/arch/s390/boot/ipl_report.c
 b/arch/s390/boot/ipl_report.c
+@@ -57,11 +57,19 @@ repeat:
+   if (IS_ENABLED(CONFIG_BLK_DEV_INITRD) && INITRD_START && INITRD_SIZE &&
+   intersects(INITRD_START, INITRD_SIZE, safe_addr, size))
+   safe_addr = INITRD_START + INITRD_SIZE;
++  if (intersects(safe_addr, size, (unsigned long)comps, comps->len)) {
++  safe_addr = (unsigned long)comps + comps->len;
++  goto repeat;
++  }
+   for_each_rb_entry(comp, comps)
+   if (intersects(safe_addr, size, comp->addr, comp->len)) {
+   safe_addr = comp->addr + comp->len;
+   goto repeat;
+   }
++  if (intersects(safe_addr, size, (unsigned long)certs, certs->len)) {
++  safe_addr = (unsigned long)certs + certs->len;
++  goto repeat;
++  }
+   for_each_rb_entry(cert, certs)
+   if (intersects(safe_addr, size, cert->addr, cert->len)) {
+   safe_addr = cert->addr + cert->len;
+diff --git a/arch/x86/kvm/vmx/nested.c b/arch/x86/kvm/vmx/nested.c
+index d3a8ee0ef988a..cd96c31fe2bb4 100644
+--- a/arch/x86/kvm/vmx/nested.c
 b/arch/x86/kvm/vmx/nested.c
+@@ -2779,7 +2779,7 @@ static int nested_vmx_check_guest_state(struct kvm_vcpu 
*vcpu,
+   struct vmcs12 *vmcs12,
+   u32 *exit_qual)
+ {
+-  bool ia32e;
++  bool ia32e = !!(vmcs12->vm_entry_controls & VM_ENTRY_IA32E_MODE);
+ 
+   *exit_qual = ENTRY_FAIL_DEFAULT;
+ 
+@@ -2796,6 +2796,13 @@ static int nested_vmx_check_guest_state(struct kvm_vcpu 
*vcpu,
+   return -EINVAL;
+   }
+ 
++  if (CC((vmcs12->guest_cr0 & (X86_CR0_PG | X86_CR0_PE)) == X86_CR0_PG))
++  return -EINVAL;
++
++  if (CC(ia32e && !(vmcs12->guest_cr4 & X86_CR4_PAE)) ||
++  CC(ia32e && !(vmcs12->guest_cr0 & X86_CR0_PG)))
++  return -EINVAL;
++
+   /*
+* If the load IA32_EFER VM-entry control is 1, the following checks
+* are performed on the field for the IA32_EFER MSR:
+@@ -2807,7 +2814,6 @@ static int nested_vmx_check_guest_state(struct kvm_vcpu 
*vcpu,
+*/
+   if (to_vmx(vcpu)->nested.nested_run_pending &&
+   (vmcs12->vm_entry_controls & VM_ENTRY_LOAD_IA32_EFER)) {
+-  ia32e = (vmcs12->vm_entry_controls & VM_ENTRY_IA32E_MODE) != 0;
+   if (CC(!kvm_valid_efer(vcpu, vmcs12->guest_ia32_efer)) ||
+   CC(ia32e != !!(vmcs12->guest_ia32_efer & EFER_LMA)) ||
+   CC(((vmcs12->guest_cr0 & X86_CR0_PG) &&
+diff --git a/arch/x86/mm/mem_encrypt_identity.c 
b/arch/x86/mm/mem_encrypt_identity.c
+index ebc8e3af1c675..77d4aa57fd35e 100644
+--- a/arch/x86/mm/mem_encrypt_identity.c
 

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

2023-03-17 Thread Mike Pagano
commit: e670d9ccb903b2d03030936da7a9de29de88a247
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Mar 17 10:45:47 2023 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Fri Mar 17 10:45:47 2023 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=e670d9cc

Linux patch 5.4.237

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

 _README  |4 +
 1236_linux-5.4.237.patch | 2763 ++
 2 files changed, 2767 insertions(+)

diff --git a/_README b/_README
index 70998c7a..682673ff 100644
--- a/_README
+++ b/_README
@@ -987,6 +987,10 @@ Patch:  1235_linux-5.4.236.patch
 From:   https://www.kernel.org
 Desc:   Linux 5.4.236
 
+Patch:  1236_linux-5.4.237.patch
+From:   https://www.kernel.org
+Desc:   Linux 5.4.237
+
 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/1236_linux-5.4.237.patch b/1236_linux-5.4.237.patch
new file mode 100644
index ..6f26d2d7
--- /dev/null
+++ b/1236_linux-5.4.237.patch
@@ -0,0 +1,2763 @@
+diff --git a/Documentation/admin-guide/kernel-parameters.txt 
b/Documentation/admin-guide/kernel-parameters.txt
+index 8f71a17ad5442..5e5704faae24a 100644
+--- a/Documentation/admin-guide/kernel-parameters.txt
 b/Documentation/admin-guide/kernel-parameters.txt
+@@ -1944,24 +1944,57 @@
+ 
+   ivrs_ioapic [HW,X86_64]
+   Provide an override to the IOAPIC-ID<->DEVICE-ID
+-  mapping provided in the IVRS ACPI table. For
+-  example, to map IOAPIC-ID decimal 10 to
+-  PCI device 00:14.0 write the parameter as:
++  mapping provided in the IVRS ACPI table.
++  By default, PCI segment is 0, and can be omitted.
++
++  For example, to map IOAPIC-ID decimal 10 to
++  PCI segment 0x1 and PCI device 00:14.0,
++  write the parameter as:
++  ivrs_ioapic=10@0001:00:14.0
++
++  Deprecated formats:
++  * To map IOAPIC-ID decimal 10 to PCI device 00:14.0
++write the parameter as:
+   ivrs_ioapic[10]=00:14.0
++  * To map IOAPIC-ID decimal 10 to PCI segment 0x1 and
++PCI device 00:14.0 write the parameter as:
++  ivrs_ioapic[10]=0001:00:14.0
+ 
+   ivrs_hpet   [HW,X86_64]
+   Provide an override to the HPET-ID<->DEVICE-ID
+-  mapping provided in the IVRS ACPI table. For
+-  example, to map HPET-ID decimal 0 to
+-  PCI device 00:14.0 write the parameter as:
++  mapping provided in the IVRS ACPI table.
++  By default, PCI segment is 0, and can be omitted.
++
++  For example, to map HPET-ID decimal 10 to
++  PCI segment 0x1 and PCI device 00:14.0,
++  write the parameter as:
++  ivrs_hpet=10@0001:00:14.0
++
++  Deprecated formats:
++  * To map HPET-ID decimal 0 to PCI device 00:14.0
++write the parameter as:
+   ivrs_hpet[0]=00:14.0
++  * To map HPET-ID decimal 10 to PCI segment 0x1 and
++PCI device 00:14.0 write the parameter as:
++  ivrs_ioapic[10]=0001:00:14.0
+ 
+   ivrs_acpihid[HW,X86_64]
+   Provide an override to the ACPI-HID:UID<->DEVICE-ID
+-  mapping provided in the IVRS ACPI table. For
+-  example, to map UART-HID:UID AMD0020:0 to
+-  PCI device 00:14.5 write the parameter as:
++  mapping provided in the IVRS ACPI table.
++  By default, PCI segment is 0, and can be omitted.
++
++  For example, to map UART-HID:UID AMD0020:0 to
++  PCI segment 0x1 and PCI device ID 00:14.5,
++  write the parameter as:
++  ivrs_acpihid=AMD0020:0@0001:00:14.5
++
++  Deprecated formats:
++  * To map UART-HID:UID AMD0020:0 to PCI segment is 0,
++PCI device ID 00:14.5, write the parameter as:
+   ivrs_acpihid[00:14.5]=AMD0020:0
++  * To map UART-HID:UID AMD0020:0 to PCI segment 0x1 and
++PCI device ID 00:14.5, write the parameter as:
++  ivrs_acpihid[0001:00:14.5]=AMD0020:0
+ 
+   js= [HW,JOY] Analog joystick
+   See Documentation/input/joydev/joystick.rst.
+diff 

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

2023-03-13 Thread Alice Ferrazzi
commit: 5472b922a8b76f02336959611a817c6e602e1e58
Author: Alice Ferrazzi  gentoo  org>
AuthorDate: Mon Mar 13 10:46:04 2023 +
Commit: Alice Ferrazzi  gentoo  org>
CommitDate: Mon Mar 13 10:46:04 2023 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=5472b922

Linux patch 5.4.236

Signed-off-by: Alice Ferrazzi  gentoo.org>

 _README  |   4 ++
 1235_linux-5.4.236.patch | 104 +++
 2 files changed, 108 insertions(+)

diff --git a/_README b/_README
index 2675ec40..70998c7a 100644
--- a/_README
+++ b/_README
@@ -983,6 +983,10 @@ Patch:  1234_linux-5.4.235.patch
 From:   https://www.kernel.org
 Desc:   Linux 5.4.235
 
+Patch:  1235_linux-5.4.236.patch
+From:   https://www.kernel.org
+Desc:   Linux 5.4.236
+
 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/1235_linux-5.4.236.patch b/1235_linux-5.4.236.patch
new file mode 100644
index ..5ec28584
--- /dev/null
+++ b/1235_linux-5.4.236.patch
@@ -0,0 +1,104 @@
+diff --git a/Makefile b/Makefile
+index f75275728ce8b..e3b56259d50af 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 235
++SUBLEVEL = 236
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c 
b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c
+index 20e494186c9eb..458ecca00ba1b 100644
+--- a/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c
 b/drivers/staging/rtl8192e/rtl8192e/rtl_dm.c
+@@ -185,7 +185,6 @@ static void _rtl92e_dm_init_fsync(struct net_device *dev);
+ static void _rtl92e_dm_deinit_fsync(struct net_device *dev);
+ 
+ staticvoid _rtl92e_dm_check_txrateandretrycount(struct net_device 
*dev);
+-static  void _rtl92e_dm_check_ac_dc_power(struct net_device *dev);
+ static void _rtl92e_dm_check_fsync(struct net_device *dev);
+ static void _rtl92e_dm_check_rf_ctrl_gpio(void *data);
+ static void _rtl92e_dm_fsync_timer_callback(struct timer_list *t);
+@@ -238,8 +237,6 @@ void rtl92e_dm_watchdog(struct net_device *dev)
+   if (priv->being_init_adapter)
+   return;
+ 
+-  _rtl92e_dm_check_ac_dc_power(dev);
+-
+   _rtl92e_dm_check_txrateandretrycount(dev);
+   _rtl92e_dm_check_edca_turbo(dev);
+ 
+@@ -257,30 +254,6 @@ void rtl92e_dm_watchdog(struct net_device *dev)
+   _rtl92e_dm_cts_to_self(dev);
+ }
+ 
+-static void _rtl92e_dm_check_ac_dc_power(struct net_device *dev)
+-{
+-  struct r8192_priv *priv = rtllib_priv(dev);
+-  static char const ac_dc_script[] = 
"/etc/acpi/wireless-rtl-ac-dc-power.sh";
+-  char *argv[] = {(char *)ac_dc_script, DRV_NAME, NULL};
+-  static char *envp[] = {"HOME=/",
+-  "TERM=linux",
+-  "PATH=/usr/bin:/bin",
+-   NULL};
+-
+-  if (priv->ResetProgress == RESET_TYPE_SILENT) {
+-  RT_TRACE((COMP_INIT | COMP_POWER | COMP_RF),
+-   "GPIOChangeRFWorkItemCallBack(): Silent 
Reset!!!\n");
+-  return;
+-  }
+-
+-  if (priv->rtllib->state != RTLLIB_LINKED)
+-  return;
+-  call_usermodehelper(ac_dc_script, argv, envp, UMH_WAIT_PROC);
+-
+-  return;
+-};
+-
+-
+ void rtl92e_init_adaptive_rate(struct net_device *dev)
+ {
+ 
+@@ -1800,10 +1773,6 @@ static void _rtl92e_dm_check_rf_ctrl_gpio(void *data)
+   u8 tmp1byte;
+   enum rt_rf_power_state eRfPowerStateToSet;
+   bool bActuallySet = false;
+-  char *argv[3];
+-  static char const RadioPowerPath[] = "/etc/acpi/events/RadioPower.sh";
+-  static char *envp[] = {"HOME=/", "TERM=linux", "PATH=/usr/bin:/bin",
+- NULL};
+ 
+   bActuallySet = false;
+ 
+@@ -1835,14 +1804,6 @@ static void _rtl92e_dm_check_rf_ctrl_gpio(void *data)
+   mdelay(1000);
+   priv->bHwRfOffAction = 1;
+   rtl92e_set_rf_state(dev, eRfPowerStateToSet, RF_CHANGE_BY_HW);
+-  if (priv->bHwRadioOff)
+-  argv[1] = "RFOFF";
+-  else
+-  argv[1] = "RFON";
+-
+-  argv[0] = (char *)RadioPowerPath;
+-  argv[2] = NULL;
+-  call_usermodehelper(RadioPowerPath, argv, envp, UMH_WAIT_PROC);
+   }
+ }
+ 
+diff --git a/net/wireless/sme.c b/net/wireless/sme.c
+index 89b81d4c1095a..a260cd60a7b99 100644
+--- a/net/wireless/sme.c
 b/net/wireless/sme.c
+@@ -1252,8 +1252,6 @@ int cfg80211_connect(struct cfg80211_registered_device 
*rdev,
+   connect->key = NULL;
+   connect->key_len = 0;
+   connect->key_idx = 0;
+-  connect->crypto.cipher_group = 0;
+-  connect->crypto.n_ciphers_pairwise = 0;
+   }
+ 
+   wdev->connect_keys = connkeys;



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

2023-03-03 Thread Mike Pagano
commit: c984fc41e1f1ba39d49d3f05f2d6aeed699bedd8
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Mar  3 12:30:47 2023 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Fri Mar  3 12:30:47 2023 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=c984fc41

Linux patch 5.4.234

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

 _README  |   4 +
 1233_linux-5.4.234.patch | 327 +++
 2 files changed, 331 insertions(+)

diff --git a/_README b/_README
index 7c529d2e..1b10c228 100644
--- a/_README
+++ b/_README
@@ -975,6 +975,10 @@ Patch:  1232_linux-5.4.233.patch
 From:   https://www.kernel.org
 Desc:   Linux 5.4.233
 
+Patch:  1233_linux-5.4.234.patch
+From:   https://www.kernel.org
+Desc:   Linux 5.4.234
+
 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/1233_linux-5.4.234.patch b/1233_linux-5.4.234.patch
new file mode 100644
index ..cbadd690
--- /dev/null
+++ b/1233_linux-5.4.234.patch
@@ -0,0 +1,327 @@
+diff --git a/Makefile b/Makefile
+index 900a2864bfb76..7688832a51d28 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 233
++SUBLEVEL = 234
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi
+index 7dcafd0833ba8..3a7d375389d0e 100644
+--- a/arch/arm/boot/dts/rk3288.dtsi
 b/arch/arm/boot/dts/rk3288.dtsi
+@@ -1188,6 +1188,7 @@
+   clock-names = "dp", "pclk";
+   phys = <_phy>;
+   phy-names = "dp";
++  power-domains = < RK3288_PD_VIO>;
+   resets = < SRST_EDP>;
+   reset-names = "dp";
+   rockchip,grf = <>;
+diff --git a/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts 
b/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts
+index 6c3368f795ca3..fbd942b46c542 100644
+--- a/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts
 b/arch/arm64/boot/dts/rockchip/rk3328-roc-cc.dts
+@@ -90,7 +90,6 @@
+   linux,default-trigger = "heartbeat";
+   gpios = < 1 GPIO_ACTIVE_LOW>;
+   default-state = "on";
+-  mode = <0x23>;
+   };
+ 
+   user {
+@@ -98,7 +97,6 @@
+   linux,default-trigger = "mmc1";
+   gpios = < 0 GPIO_ACTIVE_LOW>;
+   default-state = "off";
+-  mode = <0x05>;
+   };
+   };
+ };
+diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c
+index 0fe4f3ed72ca4..793b8d9d749a0 100644
+--- a/drivers/acpi/nfit/core.c
 b/drivers/acpi/nfit/core.c
+@@ -3599,8 +3599,8 @@ void acpi_nfit_shutdown(void *data)
+ 
+   mutex_lock(_desc->init_mutex);
+   set_bit(ARS_CANCEL, _desc->scrub_flags);
+-  cancel_delayed_work_sync(_desc->dwork);
+   mutex_unlock(_desc->init_mutex);
++  cancel_delayed_work_sync(_desc->dwork);
+ 
+   /*
+* Bounce the nvdimm bus lock to make sure any in-flight
+diff --git a/drivers/dma/sh/rcar-dmac.c b/drivers/dma/sh/rcar-dmac.c
+index eba942441e382..10a8a6d4e8601 100644
+--- a/drivers/dma/sh/rcar-dmac.c
 b/drivers/dma/sh/rcar-dmac.c
+@@ -1824,7 +1824,10 @@ static int rcar_dmac_probe(struct platform_device *pdev)
+   dmac->dev = >dev;
+   platform_set_drvdata(pdev, dmac);
+   dmac->dev->dma_parms = >parms;
+-  dma_set_max_seg_size(dmac->dev, RCAR_DMATCR_MASK);
++  ret = dma_set_max_seg_size(dmac->dev, RCAR_DMATCR_MASK);
++  if (ret)
++  return ret;
++
+   ret = dma_set_mask_and_coherent(dmac->dev, DMA_BIT_MASK(40));
+   if (ret)
+   return ret;
+diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
+index 2888bd5502f3f..0c8075d9717cb 100644
+--- a/drivers/hid/hid-core.c
 b/drivers/hid/hid-core.c
+@@ -1190,6 +1190,7 @@ int hid_open_report(struct hid_device *device)
+   __u8 *end;
+   __u8 *next;
+   int ret;
++  int i;
+   static int (*dispatch_type[])(struct hid_parser *parser,
+ struct hid_item *item) = {
+   hid_parser_main,
+@@ -1240,6 +1241,8 @@ int hid_open_report(struct hid_device *device)
+   goto err;
+   }
+   device->collection_size = HID_DEFAULT_NUM_COLLECTIONS;
++  for (i = 0; i < HID_DEFAULT_NUM_COLLECTIONS; i++)
++  device->collection[i].parent_idx = -1;
+ 
+   ret = -EINVAL;
+   while ((next = fetch_item(start, end, )) != NULL) {
+diff --git a/drivers/infiniband/hw/hfi1/user_exp_rcv.c 
b/drivers/infiniband/hw/hfi1/user_exp_rcv.c
+index e7daa65589ab9..6c1d36b2e2a74 100644
+--- a/drivers/infiniband/hw/hfi1/user_exp_rcv.c
 b/drivers/infiniband/hw/hfi1/user_exp_rcv.c
+@@ -215,16 +215,11 @@ static void 

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

2023-02-25 Thread Mike Pagano
commit: b9d8cda001b6e084d317e6b67c9a763fe53fcdec
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Feb 25 11:42:42 2023 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Feb 25 11:42:42 2023 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=b9d8cda0

Linux patch 5.4.233

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

 _README  |4 +
 1232_linux-5.4.233.patch | 1234 ++
 2 files changed, 1238 insertions(+)

diff --git a/_README b/_README
index c02b5d55..7c529d2e 100644
--- a/_README
+++ b/_README
@@ -971,6 +971,10 @@ Patch:  1231_linux-5.4.232.patch
 From:   https://www.kernel.org
 Desc:   Linux 5.4.232
 
+Patch:  1232_linux-5.4.233.patch
+From:   https://www.kernel.org
+Desc:   Linux 5.4.233
+
 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/1232_linux-5.4.233.patch b/1232_linux-5.4.233.patch
new file mode 100644
index ..945d289b
--- /dev/null
+++ b/1232_linux-5.4.233.patch
@@ -0,0 +1,1234 @@
+diff --git a/Makefile b/Makefile
+index 87828284236e3..900a2864bfb76 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 232
++SUBLEVEL = 233
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/powerpc/boot/dts/fsl/qoriq-fman3-0-10g-2.dtsi 
b/arch/powerpc/boot/dts/fsl/qoriq-fman3-0-10g-2.dtsi
+new file mode 100644
+index 0..437dab3fc0176
+--- /dev/null
 b/arch/powerpc/boot/dts/fsl/qoriq-fman3-0-10g-2.dtsi
+@@ -0,0 +1,44 @@
++// SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-or-later
++/*
++ * QorIQ FMan v3 10g port #2 device tree stub [ controller @ offset 0x40 ]
++ *
++ * Copyright 2022 Sean Anderson 
++ * Copyright 2012 - 2015 Freescale Semiconductor Inc.
++ */
++
++fman@40 {
++  fman0_rx_0x08: port@88000 {
++  cell-index = <0x8>;
++  compatible = "fsl,fman-v3-port-rx";
++  reg = <0x88000 0x1000>;
++  fsl,fman-10g-port;
++  };
++
++  fman0_tx_0x28: port@a8000 {
++  cell-index = <0x28>;
++  compatible = "fsl,fman-v3-port-tx";
++  reg = <0xa8000 0x1000>;
++  fsl,fman-10g-port;
++  };
++
++  ethernet@e {
++  cell-index = <0>;
++  compatible = "fsl,fman-memac";
++  reg = <0xe 0x1000>;
++  fsl,fman-ports = <_rx_0x08 _tx_0x28>;
++  ptp-timer = <_timer0>;
++  pcsphy-handle = <>;
++  };
++
++  mdio@e1000 {
++  #address-cells = <1>;
++  #size-cells = <0>;
++  compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
++  reg = <0xe1000 0x1000>;
++  fsl,erratum-a011043; /* must ignore read errors */
++
++  pcsphy0: ethernet-phy@0 {
++  reg = <0x0>;
++  };
++  };
++};
+diff --git a/arch/powerpc/boot/dts/fsl/qoriq-fman3-0-10g-3.dtsi 
b/arch/powerpc/boot/dts/fsl/qoriq-fman3-0-10g-3.dtsi
+new file mode 100644
+index 0..ad116b17850a8
+--- /dev/null
 b/arch/powerpc/boot/dts/fsl/qoriq-fman3-0-10g-3.dtsi
+@@ -0,0 +1,44 @@
++// SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0-or-later
++/*
++ * QorIQ FMan v3 10g port #3 device tree stub [ controller @ offset 0x40 ]
++ *
++ * Copyright 2022 Sean Anderson 
++ * Copyright 2012 - 2015 Freescale Semiconductor Inc.
++ */
++
++fman@40 {
++  fman0_rx_0x09: port@89000 {
++  cell-index = <0x9>;
++  compatible = "fsl,fman-v3-port-rx";
++  reg = <0x89000 0x1000>;
++  fsl,fman-10g-port;
++  };
++
++  fman0_tx_0x29: port@a9000 {
++  cell-index = <0x29>;
++  compatible = "fsl,fman-v3-port-tx";
++  reg = <0xa9000 0x1000>;
++  fsl,fman-10g-port;
++  };
++
++  ethernet@e2000 {
++  cell-index = <1>;
++  compatible = "fsl,fman-memac";
++  reg = <0xe2000 0x1000>;
++  fsl,fman-ports = <_rx_0x09 _tx_0x29>;
++  ptp-timer = <_timer0>;
++  pcsphy-handle = <>;
++  };
++
++  mdio@e3000 {
++  #address-cells = <1>;
++  #size-cells = <0>;
++  compatible = "fsl,fman-memac-mdio", "fsl,fman-xmdio";
++  reg = <0xe3000 0x1000>;
++  fsl,erratum-a011043; /* must ignore read errors */
++
++  pcsphy1: ethernet-phy@0 {
++  reg = <0x0>;
++  };
++  };
++};
+diff --git a/arch/powerpc/boot/dts/fsl/t2081si-post.dtsi 
b/arch/powerpc/boot/dts/fsl/t2081si-post.dtsi
+index ecbb447920bc6..27714dc2f04a5 100644
+--- a/arch/powerpc/boot/dts/fsl/t2081si-post.dtsi
 b/arch/powerpc/boot/dts/fsl/t2081si-post.dtsi
+@@ -609,8 +609,8 @@
+ /include/ 

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

2023-02-23 Thread Alice Ferrazzi
commit: 0d793e86719a4c76367f0ad9637172328fc957ce
Author: Alice Ferrazzi  gentoo  org>
AuthorDate: Fri Feb 24 02:56:49 2023 +
Commit: Alice Ferrazzi  gentoo  org>
CommitDate: Fri Feb 24 03:08:07 2023 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=0d793e86

_README: use https:// instead of http://

Signed-off-by: Alice Ferrazzi  gentoo.org>

 _README | 464 ++--
 1 file changed, 232 insertions(+), 232 deletions(-)

diff --git a/_README b/_README
index 19b51d14..c02b5d55 100644
--- a/_README
+++ b/_README
@@ -44,931 +44,931 @@ Individual Patch Descriptions:
 --
 
 Patch:  1000_linux-5.4.1.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.1
 
 Patch:  1001_linux-5.4.2.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.2
 
 Patch:  1002_linux-5.4.3.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.3
 
 Patch:  1003_linux-5.4.4.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.4
 
 Patch:  1004_linux-5.4.5.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.5
 
 Patch:  1005_linux-5.4.6.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.6
 
 Patch:  1006_linux-5.4.7.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.7
 
 Patch:  1007_linux-5.4.8.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.8
 
 Patch:  1008_linux-5.4.9.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.9
 
 Patch:  1009_linux-5.4.10.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.10
 
 Patch:  1010_linux-5.4.11.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.11
 
 Patch:  1011_linux-5.4.12.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.12
 
 Patch:  1012_linux-5.4.13.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.13
 
 Patch:  1013_linux-5.4.14.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.14
 
 Patch:  1014_linux-5.4.15.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.15
 
 Patch:  1015_linux-5.4.16.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.16
 
 Patch:  1016_linux-5.4.17.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.17
 
 Patch:  1017_linux-5.4.18.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.18
 
 Patch:  1018_linux-5.4.19.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.19
 
 Patch:  1019_linux-5.4.20.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.20
 
 Patch:  1020_linux-5.4.21.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.21
 
 Patch:  1021_linux-5.4.22.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.22
 
 Patch:  1022_linux-5.4.23.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.23
 
 Patch:  1023_linux-5.4.24.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.24
 
 Patch:  1024_linux-5.4.25.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.25
 
 Patch:  1025_linux-5.4.26.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.26
 
 Patch:  1026_linux-5.4.27.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.27
 
 Patch:  1027_linux-5.4.28.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.28
 
 Patch:  1028_linux-5.4.29.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.29
 
 Patch:  1029_linux-5.4.30.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.30
 
 Patch:  1030_linux-5.4.31.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.31
 
 Patch:  1031_linux-5.4.32.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.32
 
 Patch:  1032_linux-5.4.33.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.33
 
 Patch:  1033_linux-5.4.34.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.34
 
 Patch:  1034_linux-5.4.35.patch
-From:   http://www.kernel.org
+From:   https://www.kernel.org
 Desc:   Linux 5.4.35
 
 Patch:  1035_linux-5.4.36.patch
-From:   

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

2023-02-02 Thread Mike Pagano
commit: 2f1213f382dae1e03ac226ff55c3dd661d973cea
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Feb  2 19:15:00 2023 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu Feb  2 19:15:00 2023 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=2f1213f3

gcc-plugins: drop -std=gnu++11 to fix GCC 13 build

See: https://lore.kernel.org/all/20230201230009.2252783-1-sam  gentoo.org/

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

 _README   |  4 
 ...c-plugins-drop-std-gnu-plus-plus-to-fix-GCC-13-build.patch | 11 +++
 2 files changed, 15 insertions(+)

diff --git a/_README b/_README
index 36bb199c..3adc520a 100644
--- a/_README
+++ b/_README
@@ -991,6 +991,10 @@ Patch:  2920_sign-file-patch-for-libressl.patch
 From:   https://bugs.gentoo.org/717166
 Desc:   sign-file: full functionality with modern LibreSSL
 
+Patch:  2940_gcc-plugins-drop-std-gnu-plus-plus-to-fix-GCC-13-build.patch
+From:   https://lore.kernel.org/all/20230201230009.2252783-1-...@gentoo.org/
+Desc:   gcc-plugins: drop -std=gnu++11 to fix GCC 13 build
+
 Patch:  4567_distro-Gentoo-Kconfig.patch
 From:   Tom Wijsman 
 Desc:   Add Gentoo Linux support config settings and defaults.

diff --git a/2940_gcc-plugins-drop-std-gnu-plus-plus-to-fix-GCC-13-build.patch 
b/2940_gcc-plugins-drop-std-gnu-plus-plus-to-fix-GCC-13-build.patch
new file mode 100644
index ..f4bf6251
--- /dev/null
+++ b/2940_gcc-plugins-drop-std-gnu-plus-plus-to-fix-GCC-13-build.patch
@@ -0,0 +1,11 @@
+--- a/scripts/gcc-plugins/Makefile 2023-02-02 14:12:55.366308720 -0500
 b/scripts/gcc-plugins/Makefile 2023-02-02 14:13:41.066530357 -0500
+@@ -2,7 +2,7 @@
+ GCC_PLUGINS_DIR := $(shell $(CC) -print-file-name=plugin)
+ 
+ HOSTLIBS := hostcxxlibs
+-HOST_EXTRACXXFLAGS += -I$(GCC_PLUGINS_DIR)/include -I$(src) -std=gnu++11 
-fno-rtti
++HOST_EXTRACXXFLAGS += -I$(GCC_PLUGINS_DIR)/include -I$(src) -fno-rtti
+ HOST_EXTRACXXFLAGS += -fno-exceptions -fasynchronous-unwind-tables -ggdb
+ HOST_EXTRACXXFLAGS += -Wno-narrowing -Wno-unused-variable
+ HOST_EXTRACXXFLAGS += -Wno-format-diag



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

2023-01-23 Thread Alice Ferrazzi
commit: 6e3d7d8964a084eaa37791cd4488b9a2289679d8
Author: Alice Ferrazzi  gentoo  org>
AuthorDate: Tue Jan 24 07:23:57 2023 +
Commit: Alice Ferrazzi  gentoo  org>
CommitDate: Tue Jan 24 07:24:44 2023 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=6e3d7d89

Linux patch 5.4.230

Signed-off-by: Alice Ferrazzi  gentoo.org>

 _README  |4 +
 1229_linux-5.4.230.patch | 1448 ++
 2 files changed, 1452 insertions(+)

diff --git a/_README b/_README
index bec9c24b..36bb199c 100644
--- a/_README
+++ b/_README
@@ -959,6 +959,10 @@ Patch:  1228_linux-5.4.229.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.229
 
+Patch:  1229_linux-5.4.230.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.230
+
 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/1229_linux-5.4.230.patch b/1229_linux-5.4.230.patch
new file mode 100644
index ..9d4cde8a
--- /dev/null
+++ b/1229_linux-5.4.230.patch
@@ -0,0 +1,1448 @@
+diff --git 
a/Documentation/devicetree/bindings/phy/amlogic,g12a-usb3-pcie-phy.yaml 
b/Documentation/devicetree/bindings/phy/amlogic,g12a-usb3-pcie-phy.yaml
+new file mode 100644
+index 0..5407468a8dda0
+--- /dev/null
 b/Documentation/devicetree/bindings/phy/amlogic,g12a-usb3-pcie-phy.yaml
+@@ -0,0 +1,57 @@
++# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
++# Copyright 2019 BayLibre, SAS
++%YAML 1.2
++---
++$id: "http://devicetree.org/schemas/phy/amlogic,g12a-usb3-pcie-phy.yaml#;
++$schema: "http://devicetree.org/meta-schemas/core.yaml#;
++
++title: Amlogic G12A USB3 + PCIE Combo PHY
++
++maintainers:
++  - Neil Armstrong 
++
++properties:
++  compatible:
++enum:
++  - amlogic,g12a-usb3-pcie-phy
++
++  reg:
++maxItems: 1
++
++  clocks:
++maxItems: 1
++
++  clock-names:
++items:
++  - const: ref_clk
++
++  resets:
++maxItems: 1
++
++  reset-names:
++items:
++  - const: phy
++
++  "#phy-cells":
++const: 1
++
++required:
++  - compatible
++  - reg
++  - clocks
++  - clock-names
++  - resets
++  - reset-names
++  - "#phy-cells"
++
++examples:
++  - |
++phy@46000 {
++  compatible = "amlogic,g12a-usb3-pcie-phy";
++  reg = <0x46000 0x2000>;
++  clocks = <_clk>;
++  clock-names = "ref_clk";
++  resets = <_reset>;
++  reset-names = "phy";
++  #phy-cells = <1>;
++};
+diff --git 
a/Documentation/devicetree/bindings/phy/amlogic,meson-g12a-usb3-pcie-phy.yaml 
b/Documentation/devicetree/bindings/phy/amlogic,meson-g12a-usb3-pcie-phy.yaml
+deleted file mode 100644
+index 346f9c35427ce..0
+--- 
a/Documentation/devicetree/bindings/phy/amlogic,meson-g12a-usb3-pcie-phy.yaml
 /dev/null
+@@ -1,57 +0,0 @@
+-# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+-# Copyright 2019 BayLibre, SAS
+-%YAML 1.2
+
+-$id: 
"http://devicetree.org/schemas/phy/amlogic,meson-g12a-usb3-pcie-phy.yaml#;
+-$schema: "http://devicetree.org/meta-schemas/core.yaml#;
+-
+-title: Amlogic G12A USB3 + PCIE Combo PHY
+-
+-maintainers:
+-  - Neil Armstrong 
+-
+-properties:
+-  compatible:
+-enum:
+-  - amlogic,meson-g12a-usb3-pcie-phy
+-
+-  reg:
+-maxItems: 1
+-
+-  clocks:
+-maxItems: 1
+-
+-  clock-names:
+-items:
+-  - const: ref_clk
+-
+-  resets:
+-maxItems: 1
+-
+-  reset-names:
+-items:
+-  - const: phy
+-
+-  "#phy-cells":
+-const: 1
+-
+-required:
+-  - compatible
+-  - reg
+-  - clocks
+-  - clock-names
+-  - resets
+-  - reset-names
+-  - "#phy-cells"
+-
+-examples:
+-  - |
+-phy@46000 {
+-  compatible = "amlogic,meson-g12a-usb3-pcie-phy";
+-  reg = <0x46000 0x2000>;
+-  clocks = <_clk>;
+-  clock-names = "ref_clk";
+-  resets = <_reset>;
+-  reset-names = "phy";
+-  #phy-cells = <1>;
+-};
+diff --git a/Makefile b/Makefile
+index abe29e47198b9..6a947b4ed5dc4 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 229
++SUBLEVEL = 230
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/x86/kernel/fpu/init.c b/arch/x86/kernel/fpu/init.c
+index b271da0fa2193..17d092eb1934c 100644
+--- a/arch/x86/kernel/fpu/init.c
 b/arch/x86/kernel/fpu/init.c
+@@ -139,9 +139,6 @@ static void __init fpu__init_system_generic(void)
+ unsigned int fpu_kernel_xstate_size;
+ EXPORT_SYMBOL_GPL(fpu_kernel_xstate_size);
+ 
+-/* Get alignment of the TYPE. */
+-#define TYPE_ALIGN(TYPE) offsetof(struct { char x; TYPE test; }, test)
+-
+ /*
+  * Enforce that 'MEMBER' is the last field of 'TYPE'.
+  *
+@@ -149,8 +146,8 @@ EXPORT_SYMBOL_GPL(fpu_kernel_xstate_size);
+  * because that's how C aligns structs.
+  */
+ #define CHECK_MEMBER_AT_END_OF(TYPE, MEMBER) \
+-  BUILD_BUG_ON(sizeof(TYPE) != 

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

2022-12-19 Thread Alice Ferrazzi
commit: 273409e7e681a0d79ea8d29c615aafd47ccfc77c
Author: Alice Ferrazzi  gentoo  org>
AuthorDate: Mon Dec 19 12:27:05 2022 +
Commit: Alice Ferrazzi  gentoo  org>
CommitDate: Mon Dec 19 12:27:37 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=273409e7

Linux patch 5.4.228

Signed-off-by: Alice Ferrazzi  gentoo.org>

 _README  |   4 +
 1227_linux-5.4.228.patch | 303 +++
 2 files changed, 307 insertions(+)

diff --git a/_README b/_README
index 08ba1bba..63872f92 100644
--- a/_README
+++ b/_README
@@ -951,6 +951,10 @@ Patch:  1226_linux-5.4.227.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.227
 
+Patch:  1227_linux-5.4.228.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.228
+
 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/1227_linux-5.4.228.patch b/1227_linux-5.4.228.patch
new file mode 100644
index ..af9bd709
--- /dev/null
+++ b/1227_linux-5.4.228.patch
@@ -0,0 +1,303 @@
+diff --git a/Makefile b/Makefile
+index 111f7c91ed6f7..d70676d900f5b 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 227
++SUBLEVEL = 228
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/x86/kernel/cpu/mtrr/mtrr.c b/arch/x86/kernel/cpu/mtrr/mtrr.c
+index 507039c20128a..4482819bb13ca 100644
+--- a/arch/x86/kernel/cpu/mtrr/mtrr.c
 b/arch/x86/kernel/cpu/mtrr/mtrr.c
+@@ -794,8 +794,6 @@ void mtrr_ap_init(void)
+   if (!use_intel() || mtrr_aps_delayed_init)
+   return;
+ 
+-  rcu_cpu_starting(smp_processor_id());
+-
+   /*
+* Ideally we should hold mtrr_mutex here to avoid mtrr entries
+* changed, but this routine will be called in cpu boot time,
+diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c
+index 8367bd7a9a810..1699d18bd1548 100644
+--- a/arch/x86/kernel/smpboot.c
 b/arch/x86/kernel/smpboot.c
+@@ -224,6 +224,7 @@ static void notrace start_secondary(void *unused)
+ #endif
+   load_current_idt();
+   cpu_init();
++  rcu_cpu_starting(raw_smp_processor_id());
+   x86_cpuinit.early_percpu_clock_init();
+   preempt_disable();
+   smp_callin();
+diff --git a/block/partition-generic.c b/block/partition-generic.c
+index aee643ce13d15..e69452c1f5ad8 100644
+--- a/block/partition-generic.c
 b/block/partition-generic.c
+@@ -272,6 +272,7 @@ void delete_partition(struct gendisk *disk, int partno)
+   struct disk_part_tbl *ptbl =
+   rcu_dereference_protected(disk->part_tbl, 1);
+   struct hd_struct *part;
++  struct block_device *bdev;
+ 
+   if (partno >= ptbl->len)
+   return;
+@@ -292,6 +293,12 @@ void delete_partition(struct gendisk *disk, int partno)
+* "in-use" until we really free the gendisk.
+*/
+   blk_invalidate_devt(part_devt(part));
++
++  bdev = bdget(part_devt(part));
++  if (bdev) {
++  remove_inode_hash(bdev->bd_inode);
++  bdput(bdev);
++  }
+   hd_struct_kill(part);
+ }
+ 
+diff --git a/drivers/net/can/usb/mcba_usb.c b/drivers/net/can/usb/mcba_usb.c
+index 957e51a77d4d1..16fb4fc265183 100644
+--- a/drivers/net/can/usb/mcba_usb.c
 b/drivers/net/can/usb/mcba_usb.c
+@@ -47,6 +47,10 @@
+ #define MCBA_VER_REQ_USB 1
+ #define MCBA_VER_REQ_CAN 2
+ 
++/* Drive the CAN_RES signal LOW "0" to activate R24 and R25 */
++#define MCBA_VER_TERMINATION_ON 0
++#define MCBA_VER_TERMINATION_OFF 1
++
+ #define MCBA_SIDL_EXID_MASK 0x8
+ #define MCBA_DLC_MASK 0xf
+ #define MCBA_DLC_RTR_MASK 0x40
+@@ -469,7 +473,7 @@ static void mcba_usb_process_ka_usb(struct mcba_priv *priv,
+   priv->usb_ka_first_pass = false;
+   }
+ 
+-  if (msg->termination_state)
++  if (msg->termination_state == MCBA_VER_TERMINATION_ON)
+   priv->can.termination = MCBA_TERMINATION_ENABLED;
+   else
+   priv->can.termination = MCBA_TERMINATION_DISABLED;
+@@ -789,9 +793,9 @@ static int mcba_set_termination(struct net_device *netdev, 
u16 term)
+   };
+ 
+   if (term == MCBA_TERMINATION_ENABLED)
+-  usb_msg.termination = 1;
++  usb_msg.termination = MCBA_VER_TERMINATION_ON;
+   else
+-  usb_msg.termination = 0;
++  usb_msg.termination = MCBA_VER_TERMINATION_OFF;
+ 
+   mcba_usb_xmit_cmd(priv, (struct mcba_usb_msg *)_msg);
+ 
+diff --git a/drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c 
b/drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c
+index 6ef48eb3a77d4..b163489489e95 100644
+--- a/drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c
 b/drivers/net/ethernet/netronome/nfp/nfpcore/nfp_cppcore.c
+@@ -874,7 +874,6 @@ area_cache_get(struct nfp_cpp *cpp, u32 id,
+   }
+ 
+   /* 

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

2022-12-14 Thread Mike Pagano
commit: 4b9d4b3bfabb1c535a6d9d9b3f8fcb059f3c352d
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Dec 14 12:14:47 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Dec 14 12:14:47 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=4b9d4b3b

Linux patch 5.4.227

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

 _README  |4 +
 1226_linux-5.4.227.patch | 3784 ++
 2 files changed, 3788 insertions(+)

diff --git a/_README b/_README
index 50d417a0..08ba1bba 100644
--- a/_README
+++ b/_README
@@ -947,6 +947,10 @@ Patch:  1225_linux-5.4.226.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.226
 
+Patch:  1226_linux-5.4.227.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.227
+
 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/1226_linux-5.4.227.patch b/1226_linux-5.4.227.patch
new file mode 100644
index ..9112700b
--- /dev/null
+++ b/1226_linux-5.4.227.patch
@@ -0,0 +1,3784 @@
+diff --git a/Makefile b/Makefile
+index 78a64488b28ca..111f7c91ed6f7 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 226
++SUBLEVEL = 227
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm/boot/dts/rk3036-evb.dts 
b/arch/arm/boot/dts/rk3036-evb.dts
+index 2a7e6624efb93..ea23ba98625e7 100644
+--- a/arch/arm/boot/dts/rk3036-evb.dts
 b/arch/arm/boot/dts/rk3036-evb.dts
+@@ -31,7 +31,7 @@
+  {
+   status = "okay";
+ 
+-  hym8563: hym8563@51 {
++  hym8563: rtc@51 {
+   compatible = "haoyu,hym8563";
+   reg = <0x51>;
+   #clock-cells = <0>;
+diff --git a/arch/arm/boot/dts/rk3188-radxarock.dts 
b/arch/arm/boot/dts/rk3188-radxarock.dts
+index c9a7f54099608..f8e51ca3ee000 100644
+--- a/arch/arm/boot/dts/rk3188-radxarock.dts
 b/arch/arm/boot/dts/rk3188-radxarock.dts
+@@ -67,7 +67,7 @@
+   #sound-dai-cells = <0>;
+   };
+ 
+-  ir_recv: gpio-ir-receiver {
++  ir_recv: ir-receiver {
+   compatible = "gpio-ir-receiver";
+   gpios = < RK_PB2 GPIO_ACTIVE_LOW>;
+   pinctrl-names = "default";
+diff --git a/arch/arm/boot/dts/rk3188.dtsi b/arch/arm/boot/dts/rk3188.dtsi
+index ee8a24a0e3cb1..5e8ba80d7b4f6 100644
+--- a/arch/arm/boot/dts/rk3188.dtsi
 b/arch/arm/boot/dts/rk3188.dtsi
+@@ -404,7 +404,7 @@
+   rockchip,pins = <2 RK_PD3 1 _pull_none>;
+   };
+ 
+-  lcdc1_rgb24: ldcd1-rgb24 {
++  lcdc1_rgb24: lcdc1-rgb24 {
+   rockchip,pins = <2 RK_PA0 1 _pull_none>,
+   <2 RK_PA1 1 _pull_none>,
+   <2 RK_PA2 1 _pull_none>,
+@@ -632,7 +632,6 @@
+ 
+ _timer {
+   interrupts = ;
+-  status = "disabled";
+ };
+ 
+ _timer {
+diff --git a/arch/arm/boot/dts/rk3288-evb-act8846.dts 
b/arch/arm/boot/dts/rk3288-evb-act8846.dts
+index 80080767c3659..9ac40c100e3fd 100644
+--- a/arch/arm/boot/dts/rk3288-evb-act8846.dts
 b/arch/arm/boot/dts/rk3288-evb-act8846.dts
+@@ -53,7 +53,7 @@
+   vin-supply = <_sys>;
+   };
+ 
+-  hym8563@51 {
++  rtc@51 {
+   compatible = "haoyu,hym8563";
+   reg = <0x51>;
+ 
+diff --git a/arch/arm/boot/dts/rk3288-firefly.dtsi 
b/arch/arm/boot/dts/rk3288-firefly.dtsi
+index 5e0a19004e46e..8d418881166f0 100644
+--- a/arch/arm/boot/dts/rk3288-firefly.dtsi
 b/arch/arm/boot/dts/rk3288-firefly.dtsi
+@@ -233,7 +233,7 @@
+   vin-supply = <_sys>;
+   };
+ 
+-  hym8563: hym8563@51 {
++  hym8563: rtc@51 {
+   compatible = "haoyu,hym8563";
+   reg = <0x51>;
+   #clock-cells = <0>;
+diff --git a/arch/arm/boot/dts/rk3288-miqi.dts 
b/arch/arm/boot/dts/rk3288-miqi.dts
+index c41d012c88503..bf8f3f9bb4d58 100644
+--- a/arch/arm/boot/dts/rk3288-miqi.dts
 b/arch/arm/boot/dts/rk3288-miqi.dts
+@@ -145,7 +145,7 @@
+   vin-supply = <_sys>;
+   };
+ 
+-  hym8563: hym8563@51 {
++  hym8563: rtc@51 {
+   compatible = "haoyu,hym8563";
+   reg = <0x51>;
+   #clock-cells = <0>;
+diff --git a/arch/arm/boot/dts/rk3288-rock2-square.dts 
b/arch/arm/boot/dts/rk3288-rock2-square.dts
+index cdcdc921ee09b..7220de1266359 100644
+--- a/arch/arm/boot/dts/rk3288-rock2-square.dts
 b/arch/arm/boot/dts/rk3288-rock2-square.dts
+@@ -165,7 +165,7 @@
+ };
+ 
+  {
+-  hym8563: hym8563@51 {
++  hym8563: rtc@51 {
+   compatible = "haoyu,hym8563";
+   reg = <0x51>;
+   #clock-cells = <0>;
+diff --git a/arch/arm/boot/dts/rk3xxx.dtsi b/arch/arm/boot/dts/rk3xxx.dtsi
+index bce0b05ef7bfe..0580eea90fbc2 

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

2022-11-25 Thread Mike Pagano
commit: 646db9af4d1ca4d7ada5c5f3c6788a556e923f5f
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Nov 25 17:04:58 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Fri Nov 25 17:04:58 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=646db9af

Linux patch 5.4.225

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

 _README  |4 +
 1224_linux-5.4.225.patch | 3990 ++
 2 files changed, 3994 insertions(+)

diff --git a/_README b/_README
index 60c86d23..3fe0ab2a 100644
--- a/_README
+++ b/_README
@@ -939,6 +939,10 @@ Patch:  1223_linux-5.4.224.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.224
 
+Patch:  1224_linux-5.4.225.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.225
+
 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/1224_linux-5.4.225.patch b/1224_linux-5.4.225.patch
new file mode 100644
index ..a076a38c
--- /dev/null
+++ b/1224_linux-5.4.225.patch
@@ -0,0 +1,3990 @@
+diff --git a/Documentation/process/code-of-conduct-interpretation.rst 
b/Documentation/process/code-of-conduct-interpretation.rst
+index 4f8a06b00f608..43da2cc2e3b9b 100644
+--- a/Documentation/process/code-of-conduct-interpretation.rst
 b/Documentation/process/code-of-conduct-interpretation.rst
+@@ -51,7 +51,7 @@ the Technical Advisory Board (TAB) or other maintainers if 
you're
+ uncertain how to handle situations that come up.  It will not be
+ considered a violation report unless you want it to be.  If you are
+ uncertain about approaching the TAB or any other maintainers, please
+-reach out to our conflict mediator, Joanna Lee .
++reach out to our conflict mediator, Joanna Lee .
+ 
+ In the end, "be kind to each other" is really what the end goal is for
+ everybody.  We know everyone is human and we all fail at times, but the
+diff --git a/Makefile b/Makefile
+index 3d46653e4b1cb..bf33b3febbbc5 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 224
++SUBLEVEL = 225
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi 
b/arch/arm64/boot/dts/freescale/imx8mm.dtsi
+index 7b178a77cc712..304399686c5ae 100644
+--- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi
 b/arch/arm64/boot/dts/freescale/imx8mm.dtsi
+@@ -838,10 +838,10 @@
+   clocks = < IMX8MM_CLK_NAND_USDHC_BUS_RAWNAND_CLK>;
+   };
+ 
+-  gpmi: nand-controller@33002000{
++  gpmi: nand-controller@33002000 {
+   compatible = "fsl,imx8mm-gpmi-nand", 
"fsl,imx7d-gpmi-nand";
+   #address-cells = <1>;
+-  #size-cells = <1>;
++  #size-cells = <0>;
+   reg = <0x33002000 0x2000>, <0x33004000 0x4000>;
+   reg-names = "gpmi-nand", "bch";
+   interrupts = ;
+diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi 
b/arch/arm64/boot/dts/freescale/imx8mn.dtsi
+index 546511b373d43..31c017736a057 100644
+--- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi
 b/arch/arm64/boot/dts/freescale/imx8mn.dtsi
+@@ -695,7 +695,7 @@
+   gpmi: nand-controller@33002000 {
+   compatible = "fsl,imx8mn-gpmi-nand", 
"fsl,imx7d-gpmi-nand";
+   #address-cells = <1>;
+-  #size-cells = <1>;
++  #size-cells = <0>;
+   reg = <0x33002000 0x2000>, <0x33004000 0x4000>;
+   reg-names = "gpmi-nand", "bch";
+   interrupts = ;
+diff --git a/arch/arm64/kernel/efi.c b/arch/arm64/kernel/efi.c
+index d0cf596db82c6..14b7352bc05eb 100644
+--- a/arch/arm64/kernel/efi.c
 b/arch/arm64/kernel/efi.c
+@@ -12,6 +12,14 @@
+ 
+ #include 
+ 
++static bool region_is_misaligned(const efi_memory_desc_t *md)
++{
++  if (PAGE_SIZE == EFI_PAGE_SIZE)
++  return false;
++  return !PAGE_ALIGNED(md->phys_addr) ||
++ !PAGE_ALIGNED(md->num_pages << EFI_PAGE_SHIFT);
++}
++
+ /*
+  * Only regions of type EFI_RUNTIME_SERVICES_CODE need to be
+  * executable, everything else can be mapped with the XN bits
+@@ -25,14 +33,22 @@ static __init pteval_t 
create_mapping_protection(efi_memory_desc_t *md)
+   if (type == EFI_MEMORY_MAPPED_IO)
+   return PROT_DEVICE_nGnRE;
+ 
+-  if (WARN_ONCE(!PAGE_ALIGNED(md->phys_addr),
+-"UEFI Runtime regions are not aligned to 64 KB -- buggy 
firmware?"))
++  if (region_is_misaligned(md)) {
++  static bool __initdata code_is_misaligned;
++
+   /*
+-   * If the region is not aligned to the page size of the OS, we
+-   * can not use strict permissions, since that would also 

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

2022-11-10 Thread Mike Pagano
commit: 7347f4b54f358562d2abfb3b7242983e4bf8beb0
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Nov 10 17:59:10 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu Nov 10 17:59:10 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=7347f4b5

Linux patch 5.4.224

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

 _README  |4 +
 1223_linux-5.4.224.patch | 2502 ++
 2 files changed, 2506 insertions(+)

diff --git a/_README b/_README
index 80fbb0b9..60c86d23 100644
--- a/_README
+++ b/_README
@@ -935,6 +935,10 @@ Patch:  1222_linux-5.4.223.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.223
 
+Patch:  1223_linux-5.4.224.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.224
+
 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/1223_linux-5.4.224.patch b/1223_linux-5.4.224.patch
new file mode 100644
index ..df738e8a
--- /dev/null
+++ b/1223_linux-5.4.224.patch
@@ -0,0 +1,2502 @@
+diff --git a/Documentation/trace/histogram.rst 
b/Documentation/trace/histogram.rst
+index 3f3d1b960fe79..931f3b71745a6 100644
+--- a/Documentation/trace/histogram.rst
 b/Documentation/trace/histogram.rst
+@@ -39,7 +39,7 @@ Documentation written by Tom Zanussi
+   will use the event's kernel stacktrace as the key.  The keywords
+   'keys' or 'key' can be used to specify keys, and the keywords
+   'values', 'vals', or 'val' can be used to specify values.  Compound
+-  keys consisting of up to two fields can be specified by the 'keys'
++  keys consisting of up to three fields can be specified by the 'keys'
+   keyword.  Hashing a compound key produces a unique entry in the
+   table for each unique combination of component keys, and can be
+   useful for providing more fine-grained summaries of event data.
+diff --git a/Makefile b/Makefile
+index f32470518d3f5..3d46653e4b1cb 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 223
++SUBLEVEL = 224
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/parisc/include/asm/hardware.h 
b/arch/parisc/include/asm/hardware.h
+index 9d3d7737c58b1..a005ebc547793 100644
+--- a/arch/parisc/include/asm/hardware.h
 b/arch/parisc/include/asm/hardware.h
+@@ -10,12 +10,12 @@
+ #define SVERSION_ANY_ID   PA_SVERSION_ANY_ID
+ 
+ struct hp_hardware {
+-  unsigned short  hw_type:5;  /* HPHW_xxx */
+-  unsigned short  hversion;
+-  unsigned long   sversion:28;
+-  unsigned short  opt;
+-  const char  name[80];   /* The hardware description */
+-};
++  unsigned inthw_type:8;  /* HPHW_xxx */
++  unsigned inthversion:12;
++  unsigned intsversion:12;
++  unsigned char   opt;
++  unsigned char   name[59];   /* The hardware description */
++} __packed;
+ 
+ struct parisc_device;
+ 
+diff --git a/arch/parisc/kernel/drivers.c b/arch/parisc/kernel/drivers.c
+index 516f3891e793f..a1476673062e6 100644
+--- a/arch/parisc/kernel/drivers.c
 b/arch/parisc/kernel/drivers.c
+@@ -882,15 +882,13 @@ void __init walk_central_bus(void)
+   );
+ }
+ 
+-static void print_parisc_device(struct parisc_device *dev)
++static __init void print_parisc_device(struct parisc_device *dev)
+ {
+-  char hw_path[64];
+-  static int count;
++  static int count __initdata;
+ 
+-  print_pa_hwpath(dev, hw_path);
+-  pr_info("%d. %s at %pap [%s] { %d, 0x%x, 0x%.3x, 0x%.5x }",
+-  ++count, dev->name, &(dev->hpa.start), hw_path, dev->id.hw_type,
+-  dev->id.hversion_rev, dev->id.hversion, dev->id.sversion);
++  pr_info("%d. %s at %pap { type:%d, hv:%#x, sv:%#x, rev:%#x }",
++  ++count, dev->name, &(dev->hpa.start), dev->id.hw_type,
++  dev->id.hversion, dev->id.sversion, dev->id.hversion_rev);
+ 
+   if (dev->num_addrs) {
+   int k;
+@@ -1079,7 +1077,7 @@ static __init int qemu_print_iodc_data(struct device 
*lin_dev, void *data)
+ 
+ 
+ 
+-static int print_one_device(struct device * dev, void * data)
++static __init int print_one_device(struct device * dev, void * data)
+ {
+   struct parisc_device * pdev = to_parisc_device(dev);
+ 
+diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c
+index f2976204e8b5d..8ae7b8b4d4607 100644
+--- a/arch/x86/events/intel/core.c
 b/arch/x86/events/intel/core.c
+@@ -4009,6 +4009,7 @@ static const struct x86_cpu_desc isolation_ucodes[] = {
+   INTEL_CPU_DESC(INTEL_FAM6_SKYLAKE_X, 5, 0x),
+   INTEL_CPU_DESC(INTEL_FAM6_SKYLAKE_X, 6, 0x),
+   INTEL_CPU_DESC(INTEL_FAM6_SKYLAKE_X, 7, 0x),
++  INTEL_CPU_DESC(INTEL_FAM6_SKYLAKE_X,11, 0x),
+   

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

2022-11-03 Thread Mike Pagano
commit: 5bb6bc656f8ab28799bbd2de69e4e12898fef194
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Nov  3 15:13:30 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu Nov  3 15:13:30 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=5bb6bc65

Linux patch 5.4.223

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

 _README  |4 +
 1222_linux-5.4.223.patch | 1802 ++
 2 files changed, 1806 insertions(+)

diff --git a/_README b/_README
index 1951e80f..80fbb0b9 100644
--- a/_README
+++ b/_README
@@ -931,6 +931,10 @@ Patch:  1221_linux-5.4.222.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.222
 
+Patch:  1222_linux-5.4.223.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.223
+
 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/1222_linux-5.4.223.patch b/1222_linux-5.4.223.patch
new file mode 100644
index ..2f565338
--- /dev/null
+++ b/1222_linux-5.4.223.patch
@@ -0,0 +1,1802 @@
+diff --git a/Makefile b/Makefile
+index 6eb672843b680..f32470518d3f5 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 222
++SUBLEVEL = 223
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arc/include/asm/io.h b/arch/arc/include/asm/io.h
+index 72f7929736f8b..94ef71b38b692 100644
+--- a/arch/arc/include/asm/io.h
 b/arch/arc/include/asm/io.h
+@@ -32,7 +32,7 @@ static inline void ioport_unmap(void __iomem *addr)
+ {
+ }
+ 
+-extern void iounmap(const void __iomem *addr);
++extern void iounmap(const volatile void __iomem *addr);
+ 
+ #define ioremap_nocache(phy, sz)  ioremap(phy, sz)
+ #define ioremap_wc(phy, sz)   ioremap(phy, sz)
+diff --git a/arch/arc/mm/ioremap.c b/arch/arc/mm/ioremap.c
+index 95c649fbc95af..d3b1ea16e9cd3 100644
+--- a/arch/arc/mm/ioremap.c
 b/arch/arc/mm/ioremap.c
+@@ -93,7 +93,7 @@ void __iomem *ioremap_prot(phys_addr_t paddr, unsigned long 
size,
+ EXPORT_SYMBOL(ioremap_prot);
+ 
+ 
+-void iounmap(const void __iomem *addr)
++void iounmap(const volatile void __iomem *addr)
+ {
+   /* weird double cast to handle phys_addr_t > 32 bits */
+   if (arc_uncached_addr_space((phys_addr_t)(u32)addr))
+diff --git a/arch/s390/include/asm/futex.h b/arch/s390/include/asm/futex.h
+index 5e97a43531470..7837c791f7e87 100644
+--- a/arch/s390/include/asm/futex.h
 b/arch/s390/include/asm/futex.h
+@@ -16,7 +16,8 @@
+   "3: jl1b\n" \
+   "   lhi   %0,0\n"   \
+   "4: sacf  768\n"\
+-  EX_TABLE(0b,4b) EX_TABLE(2b,4b) EX_TABLE(3b,4b) \
++  EX_TABLE(0b,4b) EX_TABLE(1b,4b) \
++  EX_TABLE(2b,4b) EX_TABLE(3b,4b) \
+   : "=d" (ret), "=" (oldval), "=" (newval),   \
+ "=m" (*uaddr) \
+   : "0" (-EFAULT), "d" (oparg), "a" (uaddr),  \
+diff --git a/arch/s390/pci/pci_mmio.c b/arch/s390/pci/pci_mmio.c
+index 921f0fc12f1fa..a4d5048b7eee6 100644
+--- a/arch/s390/pci/pci_mmio.c
 b/arch/s390/pci/pci_mmio.c
+@@ -64,7 +64,7 @@ static inline int __pcistg_mio_inuser(
+   asm volatile (
+   "   sacf256\n"
+   "0: llgc%[tmp],0(%[src])\n"
+-  "   sllg%[val],%[val],8\n"
++  "4: sllg%[val],%[val],8\n"
+   "   aghi%[src],1\n"
+   "   ogr %[val],%[tmp]\n"
+   "   brctg   %[cnt],0b\n"
+@@ -72,7 +72,7 @@ static inline int __pcistg_mio_inuser(
+   "2: ipm %[cc]\n"
+   "   srl %[cc],28\n"
+   "3: sacf768\n"
+-  EX_TABLE(0b, 3b) EX_TABLE(1b, 3b) EX_TABLE(2b, 3b)
++  EX_TABLE(0b, 3b) EX_TABLE(4b, 3b) EX_TABLE(1b, 3b) EX_TABLE(2b, 
3b)
+   :
+   [src] "+a" (src), [cnt] "+d" (cnt),
+   [val] "+d" (val), [tmp] "=d" (tmp),
+@@ -220,10 +220,10 @@ static inline int __pcilg_mio_inuser(
+   "2: ahi %[shift],-8\n"
+   "   srlg%[tmp],%[val],0(%[shift])\n"
+   "3: stc %[tmp],0(%[dst])\n"
+-  "   aghi%[dst],1\n"
++  "5: aghi%[dst],1\n"
+   "   brctg   %[cnt],2b\n"
+   "4: sacf768\n"
+-  EX_TABLE(0b, 4b) EX_TABLE(1b, 4b) EX_TABLE(3b, 4b)
++  EX_TABLE(0b, 4b) EX_TABLE(1b, 4b) EX_TABLE(3b, 4b) EX_TABLE(5b, 
4b)
+   :
+   [cc] "+d" (cc), [val] "=d" (val), [len] "+d" (len),
+   [dst] "+a" (dst), [cnt] "+d" 

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

2022-11-01 Thread Mike Pagano
commit: 70520f2e84709d680478de1fa3cc6b15e12476cb
Author: Mike Pagano  gentoo  org>
AuthorDate: Tue Nov  1 19:46:38 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Tue Nov  1 19:46:38 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=70520f2e

Linux patch 5.4.222

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

 _README  |  4 
 1221_linux-5.4.222.patch | 26 ++
 2 files changed, 30 insertions(+)

diff --git a/_README b/_README
index 2337036f..1951e80f 100644
--- a/_README
+++ b/_README
@@ -927,6 +927,10 @@ Patch:  1220_linux-5.4.221.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.221
 
+Patch:  1221_linux-5.4.222.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.222
+
 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/1221_linux-5.4.222.patch b/1221_linux-5.4.222.patch
new file mode 100644
index ..4417c92b
--- /dev/null
+++ b/1221_linux-5.4.222.patch
@@ -0,0 +1,26 @@
+diff --git a/Makefile b/Makefile
+index 1f42636e9efaf..6eb672843b680 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 221
++SUBLEVEL = 222
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/include/linux/once.h b/include/linux/once.h
+index bb58e1c3aa034..3a6671d961b98 100644
+--- a/include/linux/once.h
 b/include/linux/once.h
+@@ -64,7 +64,7 @@ void __do_once_slow_done(bool *done, struct static_key_true 
*once_key,
+ #define DO_ONCE_SLOW(func, ...)   
 \
+   ({   \
+   bool ___ret = false; \
+-  static bool __section(".data.once") ___done = false; \
++  static bool __section(.data.once) ___done = false;   \
+   static DEFINE_STATIC_KEY_TRUE(___once_key);  \
+   if (static_branch_unlikely(&___once_key)) {  \
+   ___ret = __do_once_slow_start(&___done); \



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

2022-10-29 Thread Mike Pagano
commit: c66c06fcfcd462882a1cbfdc5abc382b63535a84
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Oct 29 09:52:31 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Oct 29 09:52:31 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=c66c06fc

Linux patch 5.4.221

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

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

diff --git a/_README b/_README
index 7c6e61e5..2337036f 100644
--- a/_README
+++ b/_README
@@ -923,6 +923,10 @@ Patch:  1219_linux-5.4.220.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.220
 
+Patch:  1220_linux-5.4.221.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.221
+
 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/1220_linux-5.4.221.patch b/1220_linux-5.4.221.patch
new file mode 100644
index ..e0105773
--- /dev/null
+++ b/1220_linux-5.4.221.patch
@@ -0,0 +1,3276 @@
+diff --git a/Documentation/arm64/silicon-errata.rst 
b/Documentation/arm64/silicon-errata.rst
+index 59daa4c21816b..36a8c01191a07 100644
+--- a/Documentation/arm64/silicon-errata.rst
 b/Documentation/arm64/silicon-errata.rst
+@@ -70,8 +70,12 @@ stable kernels.
+ 
++-+-+-+
+ | ARM| Cortex-A57  | #834220 | ARM64_ERRATUM_834220   
 |
+ 
++-+-+-+
++| ARM| Cortex-A57  | #1742098| ARM64_ERRATUM_1742098  
 |
++++-+-+-+
+ | ARM| Cortex-A72  | #853709 | N/A
 |
+ 
++-+-+-+
++| ARM| Cortex-A72  | #1655431| ARM64_ERRATUM_1742098  
 |
++++-+-+-+
+ | ARM| Cortex-A73  | #858921 | ARM64_ERRATUM_858921   
 |
+ 
++-+-+-+
+ | ARM| Cortex-A55  | #1024718| ARM64_ERRATUM_1024718  
 |
+diff --git a/Makefile b/Makefile
+index 813d17bd45861..1f42636e9efaf 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 220
++SUBLEVEL = 221
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+@@ -802,7 +802,9 @@ DEBUG_CFLAGS   += -gsplit-dwarf
+ else
+ DEBUG_CFLAGS  += -g
+ endif
+-ifneq ($(LLVM_IAS),1)
++ifeq ($(LLVM_IAS),1)
++KBUILD_AFLAGS += -g
++else
+ KBUILD_AFLAGS += -Wa,-gdwarf-2
+ endif
+ endif
+diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
+index 6b73143f0cf8c..384b1bf56667c 100644
+--- a/arch/arm64/Kconfig
 b/arch/arm64/Kconfig
+@@ -574,6 +574,22 @@ config ARM64_ERRATUM_1542419
+ 
+ If unsure, say Y.
+ 
++config ARM64_ERRATUM_1742098
++  bool "Cortex-A57/A72: 1742098: ELR recorded incorrectly on interrupt 
taken between cryptographic instructions in a sequence"
++  depends on COMPAT
++  default y
++  help
++This option removes the AES hwcap for aarch32 user-space to
++workaround erratum 1742098 on Cortex-A57 and Cortex-A72.
++
++Affected parts may corrupt the AES state if an interrupt is
++taken between a pair of AES instructions. These instructions
++are only present if the cryptography extensions are present.
++All software should have a fallback implementation for CPUs
++that don't implement the cryptography extensions.
++
++If unsure, say Y.
++
+ config CAVIUM_ERRATUM_22375
+   bool "Cavium erratum 22375, 24313"
+   default y
+diff --git a/arch/arm64/include/asm/cpucaps.h 
b/arch/arm64/include/asm/cpucaps.h
+index 4ffa86149d28d..3b16cbc945cfa 100644
+--- a/arch/arm64/include/asm/cpucaps.h
 b/arch/arm64/include/asm/cpucaps.h
+@@ -56,7 +56,8 @@
+ #define ARM64_WORKAROUND_CAVIUM_TX2_219_PRFM  46
+ #define ARM64_WORKAROUND_1542419  47
+ #define ARM64_SPECTRE_BHB 48
++#define ARM64_WORKAROUND_1742098  49
+ 
+-#define ARM64_NCAPS   49
++#define ARM64_NCAPS   50
+ 
+ #endif /* __ASM_CPUCAPS_H */
+diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c
+index 33b33416fea42..4c7545cf5a02d 100644
+--- a/arch/arm64/kernel/cpu_errata.c
 b/arch/arm64/kernel/cpu_errata.c
+@@ -817,6 +817,14 @@ static const struct arm64_cpu_capabilities 
erratum_843419_list[] = {
+ };
+ #endif
+ 
++#ifdef CONFIG_ARM64_ERRATUM_1742098
++static struct midr_range broken_aarch32_aes[] = {
++  

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

2022-10-17 Thread Mike Pagano
commit: 423805ef719f9363c11076626ebda4227aafa855
Author: Mike Pagano  gentoo  org>
AuthorDate: Mon Oct 17 16:48:18 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Mon Oct 17 16:48:18 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=423805ef

Linux patch 5.4.219

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

 _README  |   4 +
 1218_linux-5.4.219.patch | 202 +++
 2 files changed, 206 insertions(+)

diff --git a/_README b/_README
index 0cfbd542..ccdbb4e1 100644
--- a/_README
+++ b/_README
@@ -915,6 +915,10 @@ Patch:  1217_linux-5.4.218.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.218
 
+Patch:  1218_linux-5.4.219.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.219
+
 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/1218_linux-5.4.219.patch b/1218_linux-5.4.219.patch
new file mode 100644
index ..d52cca82
--- /dev/null
+++ b/1218_linux-5.4.219.patch
@@ -0,0 +1,202 @@
+diff --git a/Makefile b/Makefile
+index c26d5ce1d6768..58325c33ef0cf 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 218
++SUBLEVEL = 219
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/fs/splice.c b/fs/splice.c
+index ae5623244d5e3..e509239d7e06a 100644
+--- a/fs/splice.c
 b/fs/splice.c
+@@ -895,15 +895,17 @@ ssize_t splice_direct_to_actor(struct file *in, struct 
splice_desc *sd,
+ {
+   struct pipe_inode_info *pipe;
+   long ret, bytes;
++  umode_t i_mode;
+   size_t len;
+   int i, flags, more;
+ 
+   /*
+-   * We require the input to be seekable, as we don't want to randomly
+-   * drop data for eg socket -> socket splicing. Use the piped splicing
+-   * for that!
++   * We require the input being a regular file, as we don't want to
++   * randomly drop data for eg socket -> socket splicing. Use the
++   * piped splicing for that!
+*/
+-  if (unlikely(!(in->f_mode & FMODE_LSEEK)))
++  i_mode = file_inode(in)->i_mode;
++  if (unlikely(!S_ISREG(i_mode) && !S_ISBLK(i_mode)))
+   return -EINVAL;
+ 
+   /*
+diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
+index 7747a6f46d299..f30a205323de5 100644
+--- a/net/mac80211/ieee80211_i.h
 b/net/mac80211/ieee80211_i.h
+@@ -1460,7 +1460,6 @@ struct ieee802_11_elems {
+   const u8 *supp_rates;
+   const u8 *ds_params;
+   const struct ieee80211_tim_ie *tim;
+-  const u8 *challenge;
+   const u8 *rsn;
+   const u8 *erp_info;
+   const u8 *ext_supp_rates;
+@@ -1507,7 +1506,6 @@ struct ieee802_11_elems {
+   u8 ssid_len;
+   u8 supp_rates_len;
+   u8 tim_len;
+-  u8 challenge_len;
+   u8 rsn_len;
+   u8 ext_supp_rates_len;
+   u8 wmm_info_len;
+@@ -1521,6 +1519,8 @@ struct ieee802_11_elems {
+   u8 country_elem_len;
+   u8 bssid_index_len;
+ 
++  void *nontx_profile;
++
+   /* whether a parse error occurred while retrieving these elements */
+   bool parse_error;
+ };
+diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c
+index 5415e566e09d8..b48a09043663a 100644
+--- a/net/mac80211/mlme.c
 b/net/mac80211/mlme.c
+@@ -2829,14 +2829,14 @@ static void ieee80211_auth_challenge(struct 
ieee80211_sub_if_data *sdata,
+ {
+   struct ieee80211_local *local = sdata->local;
+   struct ieee80211_mgd_auth_data *auth_data = sdata->u.mgd.auth_data;
++  const struct element *challenge;
+   u8 *pos;
+-  struct ieee802_11_elems elems;
+   u32 tx_flags = 0;
+ 
+   pos = mgmt->u.auth.variable;
+-  ieee802_11_parse_elems(pos, len - (pos - (u8 *)mgmt), false, ,
+- mgmt->bssid, auth_data->bss->bssid);
+-  if (!elems.challenge)
++  challenge = cfg80211_find_elem(WLAN_EID_CHALLENGE, pos,
++ len - (pos - (u8 *)mgmt));
++  if (!challenge)
+   return;
+   auth_data->expected_transaction = 4;
+   drv_mgd_prepare_tx(sdata->local, sdata, 0);
+@@ -2844,7 +2844,8 @@ static void ieee80211_auth_challenge(struct 
ieee80211_sub_if_data *sdata,
+   tx_flags = IEEE80211_TX_CTL_REQ_TX_STATUS |
+  IEEE80211_TX_INTFL_MLME_CONN_TX;
+   ieee80211_send_auth(sdata, 3, auth_data->algorithm, 0,
+-  elems.challenge - 2, elems.challenge_len + 2,
++  (void *)challenge,
++  challenge->datalen + sizeof(*challenge),
+   auth_data->bss->bssid, auth_data->bss->bssid,
+   auth_data->key, auth_data->key_len,
+   auth_data->key_idx, tx_flags);
+@@ -3223,7 +3224,7 @@ static bool ieee80211_assoc_success(struct 

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

2022-10-15 Thread Mike Pagano
commit: 4cfe95be070fb8581bfad147d07fd858f152fc48
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Oct 15 10:06:15 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Oct 15 10:06:15 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=4cfe95be

Linux patch 5.4.218

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

 _README  |4 +
 1217_linux-5.4.218.patch | 1080 ++
 2 files changed, 1084 insertions(+)

diff --git a/_README b/_README
index c7ac01c3..0cfbd542 100644
--- a/_README
+++ b/_README
@@ -911,6 +911,10 @@ Patch:  1216_linux-5.4.217.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.217
 
+Patch:  1217_linux-5.4.218.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.218
+
 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/1217_linux-5.4.218.patch b/1217_linux-5.4.218.patch
new file mode 100644
index ..f0f6688b
--- /dev/null
+++ b/1217_linux-5.4.218.patch
@@ -0,0 +1,1080 @@
+diff --git a/Documentation/devicetree/bindings/dma/moxa,moxart-dma.txt 
b/Documentation/devicetree/bindings/dma/moxa,moxart-dma.txt
+index 8a9f3559335b5..7e14e26676ec9 100644
+--- a/Documentation/devicetree/bindings/dma/moxa,moxart-dma.txt
 b/Documentation/devicetree/bindings/dma/moxa,moxart-dma.txt
+@@ -34,8 +34,8 @@ Example:
+ Use specific request line passing from dma
+ For example, MMC request line is 5
+ 
+-  sdhci: sdhci@98e0 {
+-  compatible = "moxa,moxart-sdhci";
++  mmc: mmc@98e0 {
++  compatible = "moxa,moxart-mmc";
+   reg = <0x98e0 0x5C>;
+   interrupts = <5 0>;
+   clocks = <_apb>;
+diff --git a/Makefile b/Makefile
+index 201ac8e410a94..c26d5ce1d6768 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 217
++SUBLEVEL = 218
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm/boot/dts/moxart-uc7112lx.dts 
b/arch/arm/boot/dts/moxart-uc7112lx.dts
+index eb5291b0ee3aa..e07b807b4cec5 100644
+--- a/arch/arm/boot/dts/moxart-uc7112lx.dts
 b/arch/arm/boot/dts/moxart-uc7112lx.dts
+@@ -79,7 +79,7 @@
+   clocks = <>;
+ };
+ 
+- {
++ {
+   status = "okay";
+ };
+ 
+diff --git a/arch/arm/boot/dts/moxart.dtsi b/arch/arm/boot/dts/moxart.dtsi
+index f5f070a874823..764832ddfa78a 100644
+--- a/arch/arm/boot/dts/moxart.dtsi
 b/arch/arm/boot/dts/moxart.dtsi
+@@ -93,8 +93,8 @@
+   clock-names = "PCLK";
+   };
+ 
+-  sdhci: sdhci@98e0 {
+-  compatible = "moxa,moxart-sdhci";
++  mmc: mmc@98e0 {
++  compatible = "moxa,moxart-mmc";
+   reg = <0x98e0 0x5C>;
+   interrupts = <5 IRQ_TYPE_LEVEL_HIGH>;
+   clocks = <_apb>;
+diff --git a/arch/um/Makefile b/arch/um/Makefile
+index 275f5ffdf6f0a..773120be0f56f 100644
+--- a/arch/um/Makefile
 b/arch/um/Makefile
+@@ -132,10 +132,18 @@ export LDS_ELF_FORMAT := $(ELF_FORMAT)
+ # The wrappers will select whether using "malloc" or the kernel allocator.
+ LINK_WRAPS = -Wl,--wrap,malloc -Wl,--wrap,free -Wl,--wrap,calloc
+ 
++# Avoid binutils 2.39+ warnings by marking the stack non-executable and
++# ignorning warnings for the kallsyms sections.
++LDFLAGS_EXECSTACK = -z noexecstack
++ifeq ($(CONFIG_LD_IS_BFD),y)
++LDFLAGS_EXECSTACK += $(call ld-option,--no-warn-rwx-segments)
++endif
++
+ LD_FLAGS_CMDLINE = $(foreach opt,$(KBUILD_LDFLAGS),-Wl,$(opt))
+ 
+ # Used by link-vmlinux.sh which has special support for um link
+ export CFLAGS_vmlinux := $(LINK-y) $(LINK_WRAPS) $(LD_FLAGS_CMDLINE)
++export LDFLAGS_vmlinux := $(LDFLAGS_EXECSTACK)
+ 
+ # When cleaning we don't include .config, so we don't include
+ # TT or skas makefiles and don't clean skas_ptregs.h.
+diff --git a/arch/x86/um/shared/sysdep/syscalls_32.h 
b/arch/x86/um/shared/sysdep/syscalls_32.h
+index 68fd2cf526fd7..f6e9f84397e79 100644
+--- a/arch/x86/um/shared/sysdep/syscalls_32.h
 b/arch/x86/um/shared/sysdep/syscalls_32.h
+@@ -6,10 +6,9 @@
+ #include 
+ #include 
+ 
+-typedef long syscall_handler_t(struct pt_regs);
++typedef long syscall_handler_t(struct syscall_args);
+ 
+ extern syscall_handler_t *sys_call_table[];
+ 
+ #define EXECUTE_SYSCALL(syscall, regs) \
+-  ((long (*)(struct syscall_args)) \
+-   (*sys_call_table[syscall]))(SYSCALL_ARGS(>regs))
++  ((*sys_call_table[syscall]))(SYSCALL_ARGS(>regs))
+diff --git a/arch/x86/um/tls_32.c b/arch/x86/um/tls_32.c
+index ac8eee093f9cd..66162eafd8e8f 100644
+--- a/arch/x86/um/tls_32.c
 b/arch/x86/um/tls_32.c
+@@ -65,9 +65,6 @@ static int get_free_idx(struct task_struct* task)
+   struct thread_struct *t = >thread;
+   int idx;
+ 
+-  if (!t->arch.tls_array)

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

2022-10-07 Thread Mike Pagano
commit: e27f74f7a98e413fae28ed697b00889a687a
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Oct  7 11:11:59 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Fri Oct  7 11:11:59 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=e27f74f7

Linux patch 5.4.217

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

 _README  |4 +
 1216_linux-5.4.217.patch | 3111 ++
 2 files changed, 3115 insertions(+)

diff --git a/_README b/_README
index 91501850..c7ac01c3 100644
--- a/_README
+++ b/_README
@@ -907,6 +907,10 @@ Patch:  1215_linux-5.4.216.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.216
 
+Patch:  1216_linux-5.4.217.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.217
+
 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/1216_linux-5.4.217.patch b/1216_linux-5.4.217.patch
new file mode 100644
index ..342e7a14
--- /dev/null
+++ b/1216_linux-5.4.217.patch
@@ -0,0 +1,3111 @@
+diff --git a/Documentation/admin-guide/kernel-parameters.txt 
b/Documentation/admin-guide/kernel-parameters.txt
+index db9d53b879f89..8f71a17ad5442 100644
+--- a/Documentation/admin-guide/kernel-parameters.txt
 b/Documentation/admin-guide/kernel-parameters.txt
+@@ -4298,6 +4298,18 @@
+ 
+   retain_initrd   [RAM] Keep initrd memory after extraction
+ 
++  retbleed=   [X86] Control mitigation of RETBleed (Arbitrary
++  Speculative Code Execution with Return Instructions)
++  vulnerability.
++
++  off - unconditionally disable
++  auto- automatically select a migitation
++
++  Selecting 'auto' will choose a mitigation method at run
++  time according to the CPU.
++
++  Not specifying this option is equivalent to 
retbleed=auto.
++
+   rfkill.default_state=
+   0   "airplane mode".  All wifi, bluetooth, wimax, gps, fm,
+   etc. communication is blocked by default.
+@@ -4541,6 +4553,7 @@
+   eibrs - enhanced IBRS
+   eibrs,retpoline   - enhanced IBRS + Retpolines
+   eibrs,lfence  - enhanced IBRS + LFENCE
++  ibrs  - use IBRS to protect kernel
+ 
+   Not specifying this option is equivalent to
+   spectre_v2=auto.
+diff --git a/Documentation/process/code-of-conduct-interpretation.rst 
b/Documentation/process/code-of-conduct-interpretation.rst
+index e899f14a4ba24..4f8a06b00f608 100644
+--- a/Documentation/process/code-of-conduct-interpretation.rst
 b/Documentation/process/code-of-conduct-interpretation.rst
+@@ -51,7 +51,7 @@ the Technical Advisory Board (TAB) or other maintainers if 
you're
+ uncertain how to handle situations that come up.  It will not be
+ considered a violation report unless you want it to be.  If you are
+ uncertain about approaching the TAB or any other maintainers, please
+-reach out to our conflict mediator, Mishi Choudhary .
++reach out to our conflict mediator, Joanna Lee .
+ 
+ In the end, "be kind to each other" is really what the end goal is for
+ everybody.  We know everyone is human and we all fail at times, but the
+diff --git a/Makefile b/Makefile
+index 3d9d7ef6f8bf1..201ac8e410a94 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 216
++SUBLEVEL = 217
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/x86/entry/calling.h b/arch/x86/entry/calling.h
+index b3f1214787386..29e5675c6d4f2 100644
+--- a/arch/x86/entry/calling.h
 b/arch/x86/entry/calling.h
+@@ -6,6 +6,8 @@
+ #include 
+ #include 
+ #include 
++#include 
++#include 
+ 
+ /*
+ 
+@@ -146,27 +148,19 @@ For 32-bit we have the following conventions - kernel is 
built with
+ 
+ .endm
+ 
+-.macro POP_REGS pop_rdi=1 skip_r11rcx=0
++.macro POP_REGS pop_rdi=1
+   popq %r15
+   popq %r14
+   popq %r13
+   popq %r12
+   popq %rbp
+   popq %rbx
+-  .if \skip_r11rcx
+-  popq %rsi
+-  .else
+   popq %r11
+-  .endif
+   popq %r10
+   popq %r9
+   popq %r8
+   popq %rax
+-  .if \skip_r11rcx
+-  popq %rsi
+-  .else
+   popq %rcx
+-  .endif
+   popq %rdx
+   popq %rsi
+   .if \pop_rdi
+@@ -316,6 +310,62 @@ For 32-bit we have the following conventions - kernel is 
built with
+ 
+ #endif
+ 
++/*
++ * IBRS kernel mitigation for Spectre_v2.
++ *
++ * Assumes full context is established (PUSH_REGS, CR3 and GS) and it clobbers
++ * the regs it uses (AX, CX, DX). Must be called before the first RET
++ * instruction (NOTE! UNTRAIN_RET includes a RET instruction)
++ *
++ * 

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

2022-10-05 Thread Mike Pagano
commit: b091064ac8fce9889497111677a18b9a4b83f5d6
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Oct  5 11:58:41 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Oct  5 11:58:41 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=b091064a

Linuxpatch 5.4.216

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

 _README  |   4 +
 1215_linux-5.4.216.patch | 954 +++
 2 files changed, 958 insertions(+)

diff --git a/_README b/_README
index a97a10dc..91501850 100644
--- a/_README
+++ b/_README
@@ -903,6 +903,10 @@ Patch:  1214_linux-5.4.215.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.215
 
+Patch:  1215_linux-5.4.216.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.216
+
 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/1215_linux-5.4.216.patch b/1215_linux-5.4.216.patch
new file mode 100644
index ..f7844a62
--- /dev/null
+++ b/1215_linux-5.4.216.patch
@@ -0,0 +1,954 @@
+diff --git a/Makefile b/Makefile
+index 0c501d2c6a3b0..3d9d7ef6f8bf1 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 215
++SUBLEVEL = 216
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm/boot/dts/am335x-baltos.dtsi 
b/arch/arm/boot/dts/am335x-baltos.dtsi
+index ed235f263e293..ee84155844adb 100644
+--- a/arch/arm/boot/dts/am335x-baltos.dtsi
 b/arch/arm/boot/dts/am335x-baltos.dtsi
+@@ -381,7 +381,7 @@
+  {
+   status = "okay";
+   vmmc-supply = <_vmmc>;
+-  ti,non-removable;
++  non-removable;
+   bus-width = <4>;
+   cap-power-off-card;
+   pinctrl-names = "default";
+diff --git a/arch/arm/boot/dts/am335x-boneblack-common.dtsi 
b/arch/arm/boot/dts/am335x-boneblack-common.dtsi
+index 91f93bc89716d..dd932220a8bf7 100644
+--- a/arch/arm/boot/dts/am335x-boneblack-common.dtsi
 b/arch/arm/boot/dts/am335x-boneblack-common.dtsi
+@@ -22,6 +22,7 @@
+   pinctrl-0 = <_pins>;
+   bus-width = <8>;
+   status = "okay";
++  non-removable;
+ };
+ 
+ _pinmux {
+diff --git a/arch/arm/boot/dts/am335x-boneblack-wireless.dts 
b/arch/arm/boot/dts/am335x-boneblack-wireless.dts
+index 3124d94c0b3cc..e07dd79795868 100644
+--- a/arch/arm/boot/dts/am335x-boneblack-wireless.dts
 b/arch/arm/boot/dts/am335x-boneblack-wireless.dts
+@@ -75,7 +75,6 @@
+   bus-width = <4>;
+   non-removable;
+   cap-power-off-card;
+-  ti,needs-special-hs-handling;
+   keep-power-in-suspend;
+   pinctrl-names = "default";
+   pinctrl-0 = <_pins _pins>;
+diff --git a/arch/arm/boot/dts/am335x-boneblue.dts 
b/arch/arm/boot/dts/am335x-boneblue.dts
+index 2f6652ef9a157..30b62de86b5b1 100644
+--- a/arch/arm/boot/dts/am335x-boneblue.dts
 b/arch/arm/boot/dts/am335x-boneblue.dts
+@@ -389,7 +389,6 @@
+   bus-width = <4>;
+   non-removable;
+   cap-power-off-card;
+-  ti,needs-special-hs-handling;
+   keep-power-in-suspend;
+   pinctrl-names = "default";
+   pinctrl-0 = <_pins _pins>;
+diff --git a/arch/arm/boot/dts/am335x-bonegreen-wireless.dts 
b/arch/arm/boot/dts/am335x-bonegreen-wireless.dts
+index 4092cd193b8a6..609c8db687ec6 100644
+--- a/arch/arm/boot/dts/am335x-bonegreen-wireless.dts
 b/arch/arm/boot/dts/am335x-bonegreen-wireless.dts
+@@ -75,7 +75,6 @@
+   bus-width = <4>;
+   non-removable;
+   cap-power-off-card;
+-  ti,needs-special-hs-handling;
+   keep-power-in-suspend;
+   pinctrl-names = "default";
+   pinctrl-0 = <_pins _pins>;
+diff --git a/arch/arm/boot/dts/am335x-evm.dts 
b/arch/arm/boot/dts/am335x-evm.dts
+index a00145705c9be..af25b42e85f4d 100644
+--- a/arch/arm/boot/dts/am335x-evm.dts
 b/arch/arm/boot/dts/am335x-evm.dts
+@@ -782,8 +782,7 @@
+   bus-width = <4>;
+   pinctrl-names = "default";
+   pinctrl-0 = <_pins _pins>;
+-  ti,non-removable;
+-  ti,needs-special-hs-handling;
++  non-removable;
+   cap-power-off-card;
+   keep-power-in-suspend;
+ 
+diff --git a/arch/arm/boot/dts/am335x-evmsk.dts 
b/arch/arm/boot/dts/am335x-evmsk.dts
+index e28a5b82fdf30..7805b0618a4fb 100644
+--- a/arch/arm/boot/dts/am335x-evmsk.dts
 b/arch/arm/boot/dts/am335x-evmsk.dts
+@@ -700,7 +700,7 @@
+  {
+   status = "okay";
+   vmmc-supply = <_vmmc>;
+-  ti,non-removable;
++  non-removable;
+   bus-width = <4>;
+   cap-power-off-card;
+   keep-power-in-suspend;
+diff --git a/arch/arm/boot/dts/am335x-lxm.dts 
b/arch/arm/boot/dts/am335x-lxm.dts
+index a8005e975ea24..c3bfd8ed5f884 100644
+--- a/arch/arm/boot/dts/am335x-lxm.dts
 b/arch/arm/boot/dts/am335x-lxm.dts
+@@ -361,7 +361,7 @@
+   pinctrl-0 = <_pins>;
+   vmmc-supply = <_fixed>;
+   bus-width = <8>;
+-  ti,non-removable;
++  non-removable;
+   status 

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

2022-09-28 Thread Mike Pagano
commit: 5d71dc9c15cd82804ef6615b4a6632d20205
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Sep 28 09:26:43 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Sep 28 09:26:43 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=5d71

Linux patch 5.4.215

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

 _README  |4 +
 1214_linux-5.4.215.patch | 4028 ++
 2 files changed, 4032 insertions(+)

diff --git a/_README b/_README
index 4de883be..a97a10dc 100644
--- a/_README
+++ b/_README
@@ -899,6 +899,10 @@ Patch:  1213_linux-5.4.214.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.214
 
+Patch:  1214_linux-5.4.215.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.215
+
 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/1214_linux-5.4.215.patch b/1214_linux-5.4.215.patch
new file mode 100644
index ..4036c8a4
--- /dev/null
+++ b/1214_linux-5.4.215.patch
@@ -0,0 +1,4028 @@
+diff --git a/MAINTAINERS b/MAINTAINERS
+index f45d6548a4aa8..973fcc9143d1e 100644
+--- a/MAINTAINERS
 b/MAINTAINERS
+@@ -17864,7 +17864,8 @@ S: Supported
+ F:sound/xen/*
+ 
+ XFS FILESYSTEM
+-M:Darrick J. Wong 
++M:Chandan Babu R 
++M:Darrick J. Wong 
+ M:linux-...@vger.kernel.org
+ L:linux-...@vger.kernel.org
+ W:http://xfs.org/
+diff --git a/Makefile b/Makefile
+index 59f34d7f6f3b2..0c501d2c6a3b0 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 214
++SUBLEVEL = 215
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru-bob.dts 
b/arch/arm64/boot/dts/rockchip/rk3399-gru-bob.dts
+index a9f4d6d7d2b75..586351340da66 100644
+--- a/arch/arm64/boot/dts/rockchip/rk3399-gru-bob.dts
 b/arch/arm64/boot/dts/rockchip/rk3399-gru-bob.dts
+@@ -77,3 +77,8 @@
+   };
+   };
+ };
++
++_host_wake_l {
++  /* Kevin has an external pull up, but Bob does not. */
++  rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO _pull_up>;
++};
+diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru-chromebook.dtsi 
b/arch/arm64/boot/dts/rockchip/rk3399-gru-chromebook.dtsi
+index 7cd6d470c1cbd..7416db3d27a77 100644
+--- a/arch/arm64/boot/dts/rockchip/rk3399-gru-chromebook.dtsi
 b/arch/arm64/boot/dts/rockchip/rk3399-gru-chromebook.dtsi
+@@ -237,6 +237,14 @@
+  {
+   status = "okay";
+ 
++  /*
++   * eDP PHY/clk don't sync reliably at anything other than 24 MHz. Only
++   * set this here, because rk3399-gru.dtsi ensures we can generate this
++   * off GPLL=600MHz, whereas some other RK3399 boards may not.
++   */
++  assigned-clocks = < PCLK_EDP>;
++  assigned-clock-rates = <2400>;
++
+   ports {
+   edp_out: port@1 {
+   reg = <1>;
+@@ -397,6 +405,7 @@ ap_i2c_tp:  {
+   };
+ 
+   wlan_host_wake_l: wlan-host-wake-l {
++  /* Kevin has an external pull up, but Bob does not */
+   rockchip,pins = <0 RK_PB0 RK_FUNC_GPIO _pull_none>;
+   };
+ };
+diff --git a/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi 
b/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi
+index 390b86ec65389..365fa9a3c5bfb 100644
+--- a/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi
 b/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi
+@@ -102,7 +102,6 @@
+   vcc5v0_host: vcc5v0-host-regulator {
+   compatible = "regulator-fixed";
+   gpio = < RK_PA3 GPIO_ACTIVE_LOW>;
+-  enable-active-low;
+   pinctrl-names = "default";
+   pinctrl-0 = <_host_en>;
+   regulator-name = "vcc5v0_host";
+diff --git a/arch/mips/cavium-octeon/octeon-irq.c 
b/arch/mips/cavium-octeon/octeon-irq.c
+index 3ad1f76c063a9..2d5e7b21d9600 100644
+--- a/arch/mips/cavium-octeon/octeon-irq.c
 b/arch/mips/cavium-octeon/octeon-irq.c
+@@ -127,6 +127,16 @@ static void octeon_irq_free_cd(struct irq_domain *d, 
unsigned int irq)
+ static int octeon_irq_force_ciu_mapping(struct irq_domain *domain,
+   int irq, int line, int bit)
+ {
++  struct device_node *of_node;
++  int ret;
++
++  of_node = irq_domain_get_of_node(domain);
++  if (!of_node)
++  return -EINVAL;
++  ret = irq_alloc_desc_at(irq, of_node_to_nid(of_node));
++  if (ret < 0)
++  return ret;
++
+   return irq_domain_associate(domain, irq, line << 6 | bit);
+ }
+ 
+diff --git a/arch/mips/lantiq/clk.c b/arch/mips/lantiq/clk.c
+index 7a623684d9b5e..2d5a0bcb0cec1 100644
+--- a/arch/mips/lantiq/clk.c
 b/arch/mips/lantiq/clk.c
+@@ -50,6 +50,7 @@ struct clk *clk_get_io(void)
+ {
+   return _clk_generic[2];
+ }
++EXPORT_SYMBOL_GPL(clk_get_io);
+ 
+ struct clk *clk_get_ppe(void)
+ {

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

2022-09-20 Thread Mike Pagano
commit: 452d21bd071dbfc1805bb2e8f8a67879d929866e
Author: Mike Pagano  gentoo  org>
AuthorDate: Tue Sep 20 12:02:32 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Tue Sep 20 12:02:32 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=452d21bd

Linux patch 5.4.214

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

 _README  |   4 +
 1213_linux-5.4.214.patch | 408 +++
 2 files changed, 412 insertions(+)

diff --git a/_README b/_README
index 1f79a793..4de883be 100644
--- a/_README
+++ b/_README
@@ -895,6 +895,10 @@ Patch:  1212_linux-5.4.213.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.213
 
+Patch:  1213_linux-5.4.214.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.214
+
 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/1213_linux-5.4.214.patch b/1213_linux-5.4.214.patch
new file mode 100644
index ..fcf09228
--- /dev/null
+++ b/1213_linux-5.4.214.patch
@@ -0,0 +1,408 @@
+diff --git a/Documentation/input/joydev/joystick.rst 
b/Documentation/input/joydev/joystick.rst
+index 9746fd76cc581..f38c330c028e5 100644
+--- a/Documentation/input/joydev/joystick.rst
 b/Documentation/input/joydev/joystick.rst
+@@ -517,6 +517,7 @@ All I-Force devices are supported by the iforce module. 
This includes:
+ * AVB Mag Turbo Force
+ * AVB Top Shot Pegasus
+ * AVB Top Shot Force Feedback Racing Wheel
++* Boeder Force Feedback Wheel
+ * Logitech WingMan Force
+ * Logitech WingMan Force Wheel
+ * Guillemot Race Leader Force Feedback
+diff --git a/Makefile b/Makefile
+index 4a4c83d2b3f7c..59f34d7f6f3b2 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 213
++SUBLEVEL = 214
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/drivers/gpu/drm/msm/msm_rd.c b/drivers/gpu/drm/msm/msm_rd.c
+index c7832a951039f..a6b024b06b363 100644
+--- a/drivers/gpu/drm/msm/msm_rd.c
 b/drivers/gpu/drm/msm/msm_rd.c
+@@ -191,6 +191,9 @@ static int rd_open(struct inode *inode, struct file *file)
+   file->private_data = rd;
+   rd->open = true;
+ 
++  /* Reset fifo to clear any previously unread data: */
++  rd->fifo.head = rd->fifo.tail = 0;
++
+   /* the parsing tools need to know gpu-id to know which
+* register database to load.
+*/
+diff --git a/drivers/hid/intel-ish-hid/ishtp-hid.h 
b/drivers/hid/intel-ish-hid/ishtp-hid.h
+index 5ffd0da3cf1fa..65af0ebef79f6 100644
+--- a/drivers/hid/intel-ish-hid/ishtp-hid.h
 b/drivers/hid/intel-ish-hid/ishtp-hid.h
+@@ -110,7 +110,7 @@ struct report_list {
+  * @multi_packet_cnt: Count of fragmented packet count
+  *
+  * This structure is used to store completion flags and per client data like
+- * like report description, number of HID devices etc.
++ * report description, number of HID devices etc.
+  */
+ struct ishtp_cl_data {
+   /* completion flags */
+diff --git a/drivers/hid/intel-ish-hid/ishtp/client.c 
b/drivers/hid/intel-ish-hid/ishtp/client.c
+index 1cc157126fce7..c0d69303e3b09 100644
+--- a/drivers/hid/intel-ish-hid/ishtp/client.c
 b/drivers/hid/intel-ish-hid/ishtp/client.c
+@@ -626,13 +626,14 @@ static void ishtp_cl_read_complete(struct ishtp_cl_rb 
*rb)
+ }
+ 
+ /**
+- * ipc_tx_callback() - IPC tx callback function
++ * ipc_tx_send() - IPC tx send function
+  * @prm: Pointer to client device instance
+  *
+- * Send message over IPC either first time or on callback on previous message
+- * completion
++ * Send message over IPC. Message will be split into fragments
++ * if message size is bigger than IPC FIFO size, and all
++ * fragments will be sent one by one.
+  */
+-static void ipc_tx_callback(void *prm)
++static void ipc_tx_send(void *prm)
+ {
+   struct ishtp_cl *cl = prm;
+   struct ishtp_cl_tx_ring *cl_msg;
+@@ -677,32 +678,41 @@ static void ipc_tx_callback(void *prm)
+   list);
+   rem = cl_msg->send_buf.size - cl->tx_offs;
+ 
+-  ishtp_hdr.host_addr = cl->host_client_id;
+-  ishtp_hdr.fw_addr = cl->fw_client_id;
+-  ishtp_hdr.reserved = 0;
+-  pmsg = cl_msg->send_buf.data + cl->tx_offs;
++  while (rem > 0) {
++  ishtp_hdr.host_addr = cl->host_client_id;
++  ishtp_hdr.fw_addr = cl->fw_client_id;
++  ishtp_hdr.reserved = 0;
++  pmsg = cl_msg->send_buf.data + cl->tx_offs;
++
++  if (rem <= dev->mtu) {
++  /* Last fragment or only one packet */
++  ishtp_hdr.length = rem;
++  ishtp_hdr.msg_complete = 1;
++  /* Submit to IPC queue with no callback */
++  ishtp_write_message(dev, _hdr, pmsg);
++  cl->tx_offs = 0;
++  cl->sending = 0;
+ 
+-  

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

2022-09-15 Thread Mike Pagano
commit: 8325c14c96a71a8cea99233517e770f90a444b29
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Sep 15 10:31:36 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu Sep 15 10:31:36 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=8325c14c

Linux patch 5.4.213

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

 _README  |4 +
 1212_linux-5.4.213.patch | 2998 ++
 2 files changed, 3002 insertions(+)

diff --git a/_README b/_README
index daf9aa4b..1f79a793 100644
--- a/_README
+++ b/_README
@@ -891,6 +891,10 @@ Patch:  1211_linux-5.4.212.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.212
 
+Patch:  1212_linux-5.4.213.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.213
+
 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/1212_linux-5.4.213.patch b/1212_linux-5.4.213.patch
new file mode 100644
index ..522768b7
--- /dev/null
+++ b/1212_linux-5.4.213.patch
@@ -0,0 +1,2998 @@
+diff --git a/Makefile b/Makefile
+index cecfe23f521f1..4a4c83d2b3f7c 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 212
++SUBLEVEL = 213
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi 
b/arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi
+index eea317b41020d..5e454a694b78a 100644
+--- a/arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi
 b/arch/arm/boot/dts/imx6qdl-kontron-samx6i.dtsi
+@@ -51,16 +51,6 @@
+   vin-supply = <_3p3v_s5>;
+   };
+ 
+-  reg_3p3v_s0: regulator-3p3v-s0 {
+-  compatible = "regulator-fixed";
+-  regulator-name = "V_3V3_S0";
+-  regulator-min-microvolt = <330>;
+-  regulator-max-microvolt = <330>;
+-  regulator-always-on;
+-  regulator-boot-on;
+-  vin-supply = <_3p3v_s5>;
+-  };
+-
+   reg_3p3v_s5: regulator-3p3v-s5 {
+   compatible = "regulator-fixed";
+   regulator-name = "V_3V3_S5";
+diff --git a/arch/arm64/kernel/cacheinfo.c b/arch/arm64/kernel/cacheinfo.c
+index 587543c6c51cb..97c42be71338a 100644
+--- a/arch/arm64/kernel/cacheinfo.c
 b/arch/arm64/kernel/cacheinfo.c
+@@ -45,7 +45,8 @@ static void ci_leaf_init(struct cacheinfo *this_leaf,
+ 
+ int init_cache_level(unsigned int cpu)
+ {
+-  unsigned int ctype, level, leaves, fw_level;
++  unsigned int ctype, level, leaves;
++  int fw_level;
+   struct cpu_cacheinfo *this_cpu_ci = get_cpu_cacheinfo(cpu);
+ 
+   for (level = 1, leaves = 0; level <= MAX_CACHE_LEVEL; level++) {
+@@ -63,6 +64,9 @@ int init_cache_level(unsigned int cpu)
+   else
+   fw_level = acpi_find_last_cache_level(cpu);
+ 
++  if (fw_level < 0)
++  return fw_level;
++
+   if (level < fw_level) {
+   /*
+* some external caches not specified in CLIDR_EL1
+diff --git a/arch/mips/loongson32/ls1c/board.c 
b/arch/mips/loongson32/ls1c/board.c
+index e9de6da0ce51f..9dcfe9de55b0a 100644
+--- a/arch/mips/loongson32/ls1c/board.c
 b/arch/mips/loongson32/ls1c/board.c
+@@ -15,7 +15,6 @@ static struct platform_device *ls1c_platform_devices[] 
__initdata = {
+ static int __init ls1c_platform_init(void)
+ {
+   ls1x_serial_set_uartclk(_uart_pdev);
+-  ls1x_rtc_set_extclk(_rtc_pdev);
+ 
+   return platform_add_devices(ls1c_platform_devices,
+  ARRAY_SIZE(ls1c_platform_devices));
+diff --git a/arch/parisc/kernel/head.S b/arch/parisc/kernel/head.S
+index 951a339369dd5..b59a0c3d36921 100644
+--- a/arch/parisc/kernel/head.S
 b/arch/parisc/kernel/head.S
+@@ -22,7 +22,7 @@
+ #include 
+ #include 
+ 
+-  .level  PA_ASM_LEVEL
++  .level  1.1
+ 
+   __INITDATA
+ ENTRY(boot_args)
+@@ -69,6 +69,47 @@ $bss_loop:
+   stw,ma  %arg2,4(%r1)
+   stw,ma  %arg3,4(%r1)
+ 
++#if !defined(CONFIG_64BIT) && defined(CONFIG_PA20)
++  /* This 32-bit kernel was compiled for PA2.0 CPUs. Check current CPU
++   * and halt kernel if we detect a PA1.x CPU. */
++  ldi 32,%r10
++  mtctl   %r10,%cr11
++  .level 2.0
++  mfctl,w %cr11,%r10
++  .level 1.1
++  comib,<>,n  0,%r10,$cpu_ok
++
++  load32  PA(msg1),%arg0
++  ldi msg1_end-msg1,%arg1
++$iodc_panic:
++  copy%arg0, %r10
++  copy%arg1, %r11
++  load32  PA(init_stack),%sp
++#define MEM_CONS 0x3A0
++  ldw MEM_CONS+32(%r0),%arg0  // HPA
++  ldi ENTRY_IO_COUT,%arg1
++  ldw MEM_CONS+36(%r0),%arg2  // SPA
++  ldw MEM_CONS+8(%r0),%arg3   // layers
++  load32  PA(__bss_start),%r1
++

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

2022-09-05 Thread Mike Pagano
commit: 7f3e1b14d218c20ae5f0bc29e2b4629635b8b88d
Author: Mike Pagano  gentoo  org>
AuthorDate: Mon Sep  5 12:04:45 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Mon Sep  5 12:04:45 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=7f3e1b14

Linux patch 5.4.212

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

 _README  |4 +
 1211_linux-5.4.212.patch | 2741 ++
 2 files changed, 2745 insertions(+)

diff --git a/_README b/_README
index bf698f0d..daf9aa4b 100644
--- a/_README
+++ b/_README
@@ -887,6 +887,10 @@ Patch:  1210_linux-5.4.211.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.211
 
+Patch:  1211_linux-5.4.212.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.212
+
 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/1211_linux-5.4.212.patch b/1211_linux-5.4.212.patch
new file mode 100644
index ..ef15b11d
--- /dev/null
+++ b/1211_linux-5.4.212.patch
@@ -0,0 +1,2741 @@
+diff --git a/Documentation/admin-guide/hw-vuln/processor_mmio_stale_data.rst 
b/Documentation/admin-guide/hw-vuln/processor_mmio_stale_data.rst
+index 9393c50b5afc9..c98fd11907cc8 100644
+--- a/Documentation/admin-guide/hw-vuln/processor_mmio_stale_data.rst
 b/Documentation/admin-guide/hw-vuln/processor_mmio_stale_data.rst
+@@ -230,6 +230,20 @@ The possible values in this file are:
+  * - 'Mitigation: Clear CPU buffers'
+- The processor is vulnerable and the CPU buffer clearing mitigation is
+  enabled.
++ * - 'Unknown: No mitigations'
++   - The processor vulnerability status is unknown because it is
++   out of Servicing period. Mitigation is not attempted.
++
++Definitions:
++
++
++Servicing period: The process of providing functional and security updates to
++Intel processors or platforms, utilizing the Intel Platform Update (IPU)
++process or other similar mechanisms.
++
++End of Servicing Updates (ESU): ESU is the date at which Intel will no
++longer provide Servicing, such as through IPU or other similar update
++processes. ESU dates will typically be aligned to end of quarter.
+ 
+ If the processor is vulnerable then the following information is appended to
+ the above information:
+diff --git a/Makefile b/Makefile
+index e54b9a1659b4f..cecfe23f521f1 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 211
++SUBLEVEL = 212
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/parisc/kernel/unaligned.c b/arch/parisc/kernel/unaligned.c
+index 286cec4d86d7b..cc6ed74960501 100644
+--- a/arch/parisc/kernel/unaligned.c
 b/arch/parisc/kernel/unaligned.c
+@@ -107,7 +107,7 @@
+ #define R1(i) (((i)>>21)&0x1f)
+ #define R2(i) (((i)>>16)&0x1f)
+ #define R3(i) ((i)&0x1f)
+-#define FR3(i) i)<<1)&0x1f)|(((i)>>6)&1))
++#define FR3(i) i)&0x1f)<<1)|(((i)>>6)&1))
+ #define IM(i,n) (((i)>>1&((1<<(n-1))-1))|((i)&1?((0-1L)<<(n-1)):0))
+ #define IM5_2(i) IM((i)>>16,5)
+ #define IM5_3(i) IM((i),5)
+diff --git a/arch/s390/hypfs/hypfs_diag.c b/arch/s390/hypfs/hypfs_diag.c
+index f0bc4dc3e9bf0..6511d15ace45e 100644
+--- a/arch/s390/hypfs/hypfs_diag.c
 b/arch/s390/hypfs/hypfs_diag.c
+@@ -437,7 +437,7 @@ __init int hypfs_diag_init(void)
+   int rc;
+ 
+   if (diag204_probe()) {
+-  pr_err("The hardware system does not support hypfs\n");
++  pr_info("The hardware system does not support hypfs\n");
+   return -ENODATA;
+   }
+ 
+diff --git a/arch/s390/hypfs/inode.c b/arch/s390/hypfs/inode.c
+index 70139d0791b61..ca4fc66a361fb 100644
+--- a/arch/s390/hypfs/inode.c
 b/arch/s390/hypfs/inode.c
+@@ -501,9 +501,9 @@ fail_hypfs_sprp_exit:
+   hypfs_vm_exit();
+ fail_hypfs_diag_exit:
+   hypfs_diag_exit();
++  pr_err("Initialization of hypfs failed with rc=%i\n", rc);
+ fail_dbfs_exit:
+   hypfs_dbfs_exit();
+-  pr_err("Initialization of hypfs failed with rc=%i\n", rc);
+   return rc;
+ }
+ device_initcall(hypfs_init)
+diff --git a/arch/s390/kernel/process.c b/arch/s390/kernel/process.c
+index 4e6299e2ca947..fdd5f37ac1fb8 100644
+--- a/arch/s390/kernel/process.c
 b/arch/s390/kernel/process.c
+@@ -76,6 +76,18 @@ int arch_dup_task_struct(struct task_struct *dst, struct 
task_struct *src)
+ 
+   memcpy(dst, src, arch_task_struct_size);
+   dst->thread.fpu.regs = dst->thread.fpu.fprs;
++
++  /*
++   * Don't transfer over the runtime instrumentation or the guarded
++   * storage control block pointers. These fields are cleared here instead
++   * of in copy_thread() to avoid premature freeing of associated memory
++   * on fork() failure. Wait to clear the RI flag because ->stack still
++   * refers to the source thread.
++   */
++  

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

2022-08-11 Thread Mike Pagano
commit: b9d80258c889404645a24e42c8b16c4be14eff1c
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Aug 11 12:35:18 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu Aug 11 12:35:18 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=b9d80258

Linux patch 5.4.210

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

 _README  |   4 +
 1209_linux-5.4.210.patch | 950 +++
 2 files changed, 954 insertions(+)

diff --git a/_README b/_README
index b02651d3..af9d9a39 100644
--- a/_README
+++ b/_README
@@ -879,6 +879,10 @@ Patch:  1208_linux-5.4.209.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.209
 
+Patch:  1209_linux-5.4.210.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.210
+
 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/1209_linux-5.4.210.patch b/1209_linux-5.4.210.patch
new file mode 100644
index ..518f8030
--- /dev/null
+++ b/1209_linux-5.4.210.patch
@@ -0,0 +1,950 @@
+diff --git a/Documentation/admin-guide/hw-vuln/spectre.rst 
b/Documentation/admin-guide/hw-vuln/spectre.rst
+index 6bd97cd50d625..7e061ed449aaa 100644
+--- a/Documentation/admin-guide/hw-vuln/spectre.rst
 b/Documentation/admin-guide/hw-vuln/spectre.rst
+@@ -422,6 +422,14 @@ The possible values in this file are:
+   'RSB filling'   Protection of RSB on context switch enabled
+   =   ===
+ 
++  - EIBRS Post-barrier Return Stack Buffer (PBRSB) protection status:
++
++  ===  
===
++  'PBRSB-eIBRS: SW sequence'   CPU is affected and protection of RSB on 
VMEXIT enabled
++  'PBRSB-eIBRS: Vulnerable'CPU is vulnerable
++  'PBRSB-eIBRS: Not affected'  CPU is not affected by PBRSB
++  ===  
===
++
+ Full mitigation might require a microcode update from the CPU
+ vendor. When the necessary microcode is not available, the kernel will
+ report vulnerability.
+diff --git a/Makefile b/Makefile
+index 7093e3b03b9f7..74abb7e389f33 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 209
++SUBLEVEL = 210
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/x86/include/asm/cpufeatures.h 
b/arch/x86/include/asm/cpufeatures.h
+index 8c28a2365a92b..a3e32bc938562 100644
+--- a/arch/x86/include/asm/cpufeatures.h
 b/arch/x86/include/asm/cpufeatures.h
+@@ -286,6 +286,7 @@
+ #define X86_FEATURE_CQM_MBM_LOCAL (11*32+ 3) /* LLC Local MBM monitoring 
*/
+ #define X86_FEATURE_FENCE_SWAPGS_USER (11*32+ 4) /* "" LFENCE in user entry 
SWAPGS path */
+ #define X86_FEATURE_FENCE_SWAPGS_KERNEL   (11*32+ 5) /* "" LFENCE in 
kernel entry SWAPGS path */
++#define X86_FEATURE_RSB_VMEXIT_LITE   (11*32+ 6) /* "" Fill RSB on VM exit 
when EIBRS is enabled */
+ 
+ /* Intel-defined CPU features, CPUID level 0x0007:1 (EAX), word 12 */
+ #define X86_FEATURE_AVX512_BF16   (12*32+ 5) /* AVX512 BFLOAT16 
instructions */
+@@ -406,5 +407,6 @@
+ #define X86_BUG_ITLB_MULTIHIT X86_BUG(23) /* CPU may incur MCE during 
certain page attribute changes */
+ #define X86_BUG_SRBDS X86_BUG(24) /* CPU may leak RNG bits if 
not mitigated */
+ #define X86_BUG_MMIO_STALE_DATA   X86_BUG(25) /* CPU is affected 
by Processor MMIO Stale Data vulnerabilities */
++#define X86_BUG_EIBRS_PBRSB   X86_BUG(26) /* EIBRS is vulnerable to 
Post Barrier RSB Predictions */
+ 
+ #endif /* _ASM_X86_CPUFEATURES_H */
+diff --git a/arch/x86/include/asm/msr-index.h 
b/arch/x86/include/asm/msr-index.h
+index c56042916a7c3..cef4eba03ff36 100644
+--- a/arch/x86/include/asm/msr-index.h
 b/arch/x86/include/asm/msr-index.h
+@@ -129,6 +129,10 @@
+* bit available to control VERW
+* behavior.
+*/
++#define ARCH_CAP_PBRSB_NO BIT(24) /*
++   * Not susceptible to 
Post-Barrier
++   * Return Stack Buffer 
Predictions.
++   */
+ 
+ #define MSR_IA32_FLUSH_CMD0x010b
+ #define L1D_FLUSH BIT(0)  /*
+diff --git a/arch/x86/include/asm/nospec-branch.h 
b/arch/x86/include/asm/nospec-branch.h
+index ece2b2c6d020d..1e5df3ccdd5cb 100644
+--- a/arch/x86/include/asm/nospec-branch.h
 b/arch/x86/include/asm/nospec-branch.h
+@@ -61,7 +61,16 @@
+ 774:  \
+   dec reg;\
+   jnz 771b;   \
+-  add   

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

2022-08-03 Thread Alice Ferrazzi
commit: 7da5eb1abe210716a88e1a592dbb4b83449ca838
Author: Alice Ferrazzi  gentoo  org>
AuthorDate: Wed Aug  3 14:37:41 2022 +
Commit: Alice Ferrazzi  gentoo  org>
CommitDate: Wed Aug  3 14:37:48 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=7da5eb1a

Linux patch 5.4.209

Signed-off-by: Alice Ferrazzi  gentoo.org>

 _README  |4 +
 1208_linux-5.4.209.patch | 1020 ++
 2 files changed, 1024 insertions(+)

diff --git a/_README b/_README
index d4fe1a15..b02651d3 100644
--- a/_README
+++ b/_README
@@ -875,6 +875,10 @@ Patch:  1207_linux-5.4.208.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.208
 
+Patch:  1208_linux-5.4.209.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.209
+
 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/1208_linux-5.4.209.patch b/1208_linux-5.4.209.patch
new file mode 100644
index ..bb150ac3
--- /dev/null
+++ b/1208_linux-5.4.209.patch
@@ -0,0 +1,1020 @@
+diff --git a/Documentation/networking/ip-sysctl.txt 
b/Documentation/networking/ip-sysctl.txt
+index 787a9c077ef1d..5cf601c94e354 100644
+--- a/Documentation/networking/ip-sysctl.txt
 b/Documentation/networking/ip-sysctl.txt
+@@ -2284,7 +2284,14 @@ sctp_rmem - vector of 3 INTEGERs: min, default, max
+   Default: 4K
+ 
+ sctp_wmem  - vector of 3 INTEGERs: min, default, max
+-  Currently this tunable has no effect.
++  Only the first value ("min") is used, "default" and "max" are
++  ignored.
++
++  min: Minimum size of send buffer that can be used by SCTP sockets.
++  It is guaranteed to each SCTP socket (but not association) even
++  under moderate memory pressure.
++
++  Default: 4K
+ 
+ addr_scope_policy - INTEGER
+   Control IPv4 address scoping - draft-stewart-tsvwg-sctp-ipv4-00
+diff --git a/Makefile b/Makefile
+index 884a3f314baf8..7093e3b03b9f7 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 208
++SUBLEVEL = 209
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm/lib/xor-neon.c b/arch/arm/lib/xor-neon.c
+index b99dd8e1c93f1..7ba6cf8261626 100644
+--- a/arch/arm/lib/xor-neon.c
 b/arch/arm/lib/xor-neon.c
+@@ -26,8 +26,9 @@ MODULE_LICENSE("GPL");
+  * While older versions of GCC do not generate incorrect code, they fail to
+  * recognize the parallel nature of these functions, and emit plain ARM code,
+  * which is known to be slower than the optimized ARM code in asm-arm/xor.h.
++ *
++ * #warning This code requires at least version 4.6 of GCC
+  */
+-#warning This code requires at least version 4.6 of GCC
+ #endif
+ 
+ #pragma GCC diagnostic ignored "-Wunused-variable"
+diff --git a/arch/s390/include/asm/archrandom.h 
b/arch/s390/include/asm/archrandom.h
+index 2c6e1c6ecbe78..4120c428dc378 100644
+--- a/arch/s390/include/asm/archrandom.h
 b/arch/s390/include/asm/archrandom.h
+@@ -2,7 +2,7 @@
+ /*
+  * Kernel interface for the s390 arch_random_* functions
+  *
+- * Copyright IBM Corp. 2017, 2020
++ * Copyright IBM Corp. 2017, 2022
+  *
+  * Author: Harald Freudenberger 
+  *
+@@ -14,6 +14,7 @@
+ #ifdef CONFIG_ARCH_RANDOM
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ 
+@@ -32,7 +33,8 @@ static inline bool __must_check arch_get_random_int(unsigned 
int *v)
+ 
+ static inline bool __must_check arch_get_random_seed_long(unsigned long *v)
+ {
+-  if (static_branch_likely(_arch_random_available)) {
++  if (static_branch_likely(_arch_random_available) &&
++  in_task()) {
+   cpacf_trng(NULL, 0, (u8 *)v, sizeof(*v));
+   atomic64_add(sizeof(*v), _arch_random_counter);
+   return true;
+@@ -42,7 +44,8 @@ static inline bool __must_check 
arch_get_random_seed_long(unsigned long *v)
+ 
+ static inline bool __must_check arch_get_random_seed_int(unsigned int *v)
+ {
+-  if (static_branch_likely(_arch_random_available)) {
++  if (static_branch_likely(_arch_random_available) &&
++  in_task()) {
+   cpacf_trng(NULL, 0, (u8 *)v, sizeof(*v));
+   atomic64_add(sizeof(*v), _arch_random_counter);
+   return true;
+diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c 
b/drivers/net/ethernet/intel/i40e/i40e_main.c
+index 0610d344fdbf0..637f6ed78b489 100644
+--- a/drivers/net/ethernet/intel/i40e/i40e_main.c
 b/drivers/net/ethernet/intel/i40e/i40e_main.c
+@@ -1821,11 +1821,15 @@ static void i40e_vsi_setup_queue_map(struct i40e_vsi 
*vsi,
+* non-zero req_queue_pairs says that user requested a new
+* queue count via ethtool's set_channels, so use this
+* value for queues distribution across traffic classes
++   * We need at least one queue pair for the interface
++  

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

2022-07-29 Thread Mike Pagano
commit: e7156b6245475d4c9bb6eeeb88d03653df4da664
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Jul 29 15:29:36 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Fri Jul 29 15:29:36 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=e7156b62

Linux patch 5.4.208

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

 _README  |4 +
 1207_linux-5.4.208.patch | 4094 ++
 2 files changed, 4098 insertions(+)

diff --git a/_README b/_README
index 50eda9b4..d4fe1a15 100644
--- a/_README
+++ b/_README
@@ -871,6 +871,10 @@ Patch:  1206_linux-5.4.207.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.207
 
+Patch:  1207_linux-5.4.208.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.208
+
 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/1207_linux-5.4.208.patch b/1207_linux-5.4.208.patch
new file mode 100644
index ..7b70b2ac
--- /dev/null
+++ b/1207_linux-5.4.208.patch
@@ -0,0 +1,4094 @@
+diff --git a/Makefile b/Makefile
+index 89d19f04faabf..884a3f314baf8 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 207
++SUBLEVEL = 208
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/Kconfig b/arch/Kconfig
+index a8df66e645442..2219a07dca1ef 100644
+--- a/arch/Kconfig
 b/arch/Kconfig
+@@ -915,27 +915,6 @@ config STRICT_MODULE_RWX
+ config ARCH_HAS_PHYS_TO_DMA
+   bool
+ 
+-config ARCH_HAS_REFCOUNT
+-  bool
+-  help
+-An architecture selects this when it has implemented refcount_t
+-using open coded assembly primitives that provide an optimized
+-refcount_t implementation, possibly at the expense of some full
+-refcount state checks of CONFIG_REFCOUNT_FULL=y.
+-
+-The refcount overflow check behavior, however, must be retained.
+-Catching overflows is the primary security concern for protecting
+-against bugs in reference counts.
+-
+-config REFCOUNT_FULL
+-  bool "Perform full reference count validation at the expense of speed"
+-  help
+-Enabling this switches the refcounting infrastructure from a fast
+-unchecked atomic_t implementation to a fully state checked
+-implementation, which can be (slightly) slower but provides 
protections
+-against various use-after-free conditions that can be used in
+-security flaw exploits.
+-
+ config HAVE_ARCH_COMPILER_H
+   bool
+   help
+diff --git a/arch/alpha/kernel/srmcons.c b/arch/alpha/kernel/srmcons.c
+index 438b10c44d732..2b7a314b84522 100644
+--- a/arch/alpha/kernel/srmcons.c
 b/arch/alpha/kernel/srmcons.c
+@@ -59,7 +59,7 @@ srmcons_do_receive_chars(struct tty_port *port)
+   } while((result.bits.status & 1) && (++loops < 10));
+ 
+   if (count)
+-  tty_schedule_flip(port);
++  tty_flip_buffer_push(port);
+ 
+   return count;
+ }
+diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
+index a1622b9290fd5..a4364cce85f8d 100644
+--- a/arch/arm/Kconfig
 b/arch/arm/Kconfig
+@@ -119,7 +119,6 @@ config ARM
+   select OLD_SIGSUSPEND3
+   select PCI_SYSCALL if PCI
+   select PERF_USE_VMALLOC
+-  select REFCOUNT_FULL
+   select RTC_LIB
+   select SYS_SUPPORTS_APM_EMULATION
+   # Above selects are sorted alphabetically; please add new ones
+diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
+index a1a828ca188cf..6b73143f0cf8c 100644
+--- a/arch/arm64/Kconfig
 b/arch/arm64/Kconfig
+@@ -181,7 +181,6 @@ config ARM64
+   select PCI_SYSCALL if PCI
+   select POWER_RESET
+   select POWER_SUPPLY
+-  select REFCOUNT_FULL
+   select SPARSE_IRQ
+   select SWIOTLB
+   select SYSCTL_EXCEPTION_TRACE
+diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile
+index 7b579a003e30a..d1a9615391010 100644
+--- a/arch/riscv/Makefile
 b/arch/riscv/Makefile
+@@ -74,6 +74,7 @@ ifeq ($(CONFIG_PERF_EVENTS),y)
+ endif
+ 
+ KBUILD_CFLAGS_MODULE += $(call cc-option,-mno-relax)
++KBUILD_AFLAGS_MODULE += $(call as-option,-Wa$(comma)-mno-relax)
+ 
+ # GCC versions that support the "-mstrict-align" option default to allowing
+ # unaligned accesses.  While unaligned accesses are explicitly allowed in the
+diff --git a/arch/s390/configs/debug_defconfig 
b/arch/s390/configs/debug_defconfig
+index 38d64030aacf6..2e60c80395ab0 100644
+--- a/arch/s390/configs/debug_defconfig
 b/arch/s390/configs/debug_defconfig
+@@ -62,7 +62,6 @@ CONFIG_OPROFILE=m
+ CONFIG_KPROBES=y
+ CONFIG_JUMP_LABEL=y
+ CONFIG_STATIC_KEYS_SELFTEST=y
+-CONFIG_REFCOUNT_FULL=y
+ CONFIG_LOCK_EVENT_COUNTS=y
+ CONFIG_MODULES=y
+ CONFIG_MODULE_FORCE_LOAD=y
+diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
+index c6c71592f6e46..6002252692af4 100644
+--- a/arch/x86/Kconfig
 

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

2022-07-21 Thread Mike Pagano
commit: 5fdaefc9d6c43b89425a8fceecc9bce57b5e96e3
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Jul 21 20:09:09 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu Jul 21 20:09:09 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=5fdaefc9

Linux patch 5.4.207

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

 _README  |4 +
 1206_linux-5.4.207.patch | 1799 ++
 2 files changed, 1803 insertions(+)

diff --git a/_README b/_README
index c650ad74..50eda9b4 100644
--- a/_README
+++ b/_README
@@ -867,6 +867,10 @@ Patch:  1205_linux-5.4.206.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.206
 
+Patch:  1206_linux-5.4.207.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.207
+
 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/1206_linux-5.4.207.patch b/1206_linux-5.4.207.patch
new file mode 100644
index ..2761ef0b
--- /dev/null
+++ b/1206_linux-5.4.207.patch
@@ -0,0 +1,1799 @@
+diff --git a/Documentation/networking/ip-sysctl.txt 
b/Documentation/networking/ip-sysctl.txt
+index 8af3771a3ebf2..787a9c077ef1d 100644
+--- a/Documentation/networking/ip-sysctl.txt
 b/Documentation/networking/ip-sysctl.txt
+@@ -876,7 +876,7 @@ cipso_cache_enable - BOOLEAN
+ cipso_cache_bucket_size - INTEGER
+   The CIPSO label cache consists of a fixed size hash table with each
+   hash bucket containing a number of cache entries.  This variable limits
+-  the number of entries in each hash bucket; the larger the value the
++  the number of entries in each hash bucket; the larger the value is, the
+   more CIPSO label mappings that can be cached.  When the number of
+   entries in a given hash bucket reaches this limit adding new entries
+   causes the oldest entry in the bucket to be removed to make room.
+@@ -953,7 +953,7 @@ ip_nonlocal_bind - BOOLEAN
+   which can be quite useful - but may break some applications.
+   Default: 0
+ 
+-ip_dynaddr - BOOLEAN
++ip_dynaddr - INTEGER
+   If set non-zero, enables support for dynamic addresses.
+   If set to a non-zero value larger than 1, a kernel log
+   message will be printed when dynamic address rewriting
+diff --git a/Makefile b/Makefile
+index 755123455105f..89d19f04faabf 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 206
++SUBLEVEL = 207
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm/boot/dts/imx6qdl-ts7970.dtsi 
b/arch/arm/boot/dts/imx6qdl-ts7970.dtsi
+index f0be516dc28e1..9181fbeb833d3 100644
+--- a/arch/arm/boot/dts/imx6qdl-ts7970.dtsi
 b/arch/arm/boot/dts/imx6qdl-ts7970.dtsi
+@@ -226,7 +226,7 @@
+   reg = <0x28>;
+   #gpio-cells = <2>;
+   gpio-controller;
+-  ngpio = <32>;
++  ngpios = <62>;
+   };
+ 
+   sgtl5000: codec@a {
+diff --git a/arch/arm/boot/dts/sama5d2.dtsi b/arch/arm/boot/dts/sama5d2.dtsi
+index 09816a2ee3670..dbfdffd54003a 100644
+--- a/arch/arm/boot/dts/sama5d2.dtsi
 b/arch/arm/boot/dts/sama5d2.dtsi
+@@ -933,7 +933,7 @@
+   clocks = < PMC_TYPE_PERIPHERAL 55>, < 
PMC_TYPE_GCK 55>;
+   clock-names = "pclk", "gclk";
+   assigned-clocks = < PMC_TYPE_CORE 
PMC_I2S1_MUX>;
+-  assigned-parrents = < PMC_TYPE_GCK 55>;
++  assigned-clock-parents = < PMC_TYPE_GCK 55>;
+   status = "disabled";
+   };
+ 
+diff --git a/arch/arm/boot/dts/stm32mp157c.dtsi 
b/arch/arm/boot/dts/stm32mp157c.dtsi
+index a687c024daa92..0e9e930c60f06 100644
+--- a/arch/arm/boot/dts/stm32mp157c.dtsi
 b/arch/arm/boot/dts/stm32mp157c.dtsi
+@@ -515,7 +515,7 @@
+   compatible = "st,stm32-cec";
+   reg = <0x40016000 0x400>;
+   interrupts = ;
+-  clocks = < CEC_K>, <_lse>;
++  clocks = < CEC_K>, < CEC>;
+   clock-names = "cec", "hdmi-cec";
+   status = "disabled";
+   };
+diff --git a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts 
b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
+index f19ed981da9d9..3706216ffb40b 100644
+--- a/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
 b/arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dts
+@@ -169,7 +169,7 @@
+   flash@0 {
+   #address-cells = <1>;
+   #size-cells = <1>;
+-  compatible = "mxicy,mx25l1606e", "winbond,w25q128";
++  compatible = "mxicy,mx25l1606e", "jedec,spi-nor";
+   reg = <0>;
+   spi-max-frequency = <4000>;
+   };
+diff --git 

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

2022-07-15 Thread Mike Pagano
commit: be31e4638d5908314133dadaa3a820b88d43af60
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Jul 15 10:03:43 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Fri Jul 15 10:03:55 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=be31e463

Linux patch 5.4.206

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

 _README  |  4 
 1205_linux-5.4.206.patch | 26 ++
 2 files changed, 30 insertions(+)

diff --git a/_README b/_README
index cac94e7b..c650ad74 100644
--- a/_README
+++ b/_README
@@ -863,6 +863,10 @@ Patch:  1204_linux-5.4.205.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.205
 
+Patch:  1205_linux-5.4.206.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.206
+
 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/1205_linux-5.4.206.patch b/1205_linux-5.4.206.patch
new file mode 100644
index ..df5e318c
--- /dev/null
+++ b/1205_linux-5.4.206.patch
@@ -0,0 +1,26 @@
+diff --git a/Makefile b/Makefile
+index c40565492ffba..755123455105f 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 205
++SUBLEVEL = 206
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 
b/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
+index 41f7dd58bdcf8..02218c3b548f9 100644
+--- a/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
 b/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
+@@ -682,7 +682,7 @@ static void gpmi_nfc_compute_timings(struct gpmi_nand_data 
*this,
+   hw->timing0 = BF_GPMI_TIMING0_ADDRESS_SETUP(addr_setup_cycles) |
+ BF_GPMI_TIMING0_DATA_HOLD(data_hold_cycles) |
+ BF_GPMI_TIMING0_DATA_SETUP(data_setup_cycles);
+-  hw->timing1 = 
BF_GPMI_TIMING1_BUSY_TIMEOUT(DIV_ROUND_UP(busy_timeout_cycles, 4096));
++  hw->timing1 = BF_GPMI_TIMING1_BUSY_TIMEOUT(busy_timeout_cycles * 4096);
+ 
+   /*
+* Derive NFC ideal delay from {3}:



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

2022-07-12 Thread Mike Pagano
commit: 453b80c178d201a11094855b52a06e83070a74b8
Author: Mike Pagano  gentoo  org>
AuthorDate: Tue Jul 12 16:00:52 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Tue Jul 12 16:00:52 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=453b80c1

Linux patch 5.4.205

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

 _README  |4 +
 1204_linux-5.4.205.patch | 1620 ++
 2 files changed, 1624 insertions(+)

diff --git a/_README b/_README
index bc30494e..cac94e7b 100644
--- a/_README
+++ b/_README
@@ -859,6 +859,10 @@ Patch:  1203_linux-5.4.204.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.204
 
+Patch:  1204_linux-5.4.205.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.205
+
 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/1204_linux-5.4.205.patch b/1204_linux-5.4.205.patch
new file mode 100644
index ..2a650c11
--- /dev/null
+++ b/1204_linux-5.4.205.patch
@@ -0,0 +1,1620 @@
+diff --git 
a/Documentation/devicetree/bindings/dma/allwinner,sun50i-a64-dma.yaml 
b/Documentation/devicetree/bindings/dma/allwinner,sun50i-a64-dma.yaml
+index 4cb9d6b931389..c61c4a6b57f10 100644
+--- a/Documentation/devicetree/bindings/dma/allwinner,sun50i-a64-dma.yaml
 b/Documentation/devicetree/bindings/dma/allwinner,sun50i-a64-dma.yaml
+@@ -58,7 +58,7 @@ if:
+ then:
+   properties:
+ clocks:
+-  maxItems: 2
++  minItems: 2
+ 
+   required:
+ - clock-names
+diff --git a/Makefile b/Makefile
+index b5d1718ae70c6..c40565492ffba 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 204
++SUBLEVEL = 205
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm/mach-at91/pm.c b/arch/arm/mach-at91/pm.c
+index 676cc2a318f41..5d75ab82d5a6a 100644
+--- a/arch/arm/mach-at91/pm.c
 b/arch/arm/mach-at91/pm.c
+@@ -103,7 +103,7 @@ static const struct wakeup_source_info ws_info[] = {
+ 
+ static const struct of_device_id sama5d2_ws_ids[] = {
+   { .compatible = "atmel,sama5d2-gem",.data = _info[0] },
+-  { .compatible = "atmel,at91rm9200-rtc", .data = _info[1] },
++  { .compatible = "atmel,sama5d2-rtc",.data = _info[1] },
+   { .compatible = "atmel,sama5d3-udc",.data = _info[2] },
+   { .compatible = "atmel,at91rm9200-ohci",.data = _info[2] },
+   { .compatible = "usb-ohci", .data = _info[2] },
+@@ -114,12 +114,12 @@ static const struct of_device_id sama5d2_ws_ids[] = {
+ };
+ 
+ static const struct of_device_id sam9x60_ws_ids[] = {
+-  { .compatible = "atmel,at91sam9x5-rtc", .data = _info[1] },
++  { .compatible = "microchip,sam9x60-rtc",.data = _info[1] },
+   { .compatible = "atmel,at91rm9200-ohci",.data = _info[2] },
+   { .compatible = "usb-ohci", .data = _info[2] },
+   { .compatible = "atmel,at91sam9g45-ehci",   .data = _info[2] },
+   { .compatible = "usb-ehci", .data = _info[2] },
+-  { .compatible = "atmel,at91sam9260-rtt",.data = _info[4] },
++  { .compatible = "microchip,sam9x60-rtt",.data = _info[4] },
+   { .compatible = "cdns,sam9x60-macb",.data = _info[5] },
+   { /* sentinel */ }
+ };
+diff --git a/arch/arm/mach-meson/platsmp.c b/arch/arm/mach-meson/platsmp.c
+index 4b8ad728bb42a..32ac60b89fdcc 100644
+--- a/arch/arm/mach-meson/platsmp.c
 b/arch/arm/mach-meson/platsmp.c
+@@ -71,6 +71,7 @@ static void __init meson_smp_prepare_cpus(const char 
*scu_compatible,
+   }
+ 
+   sram_base = of_iomap(node, 0);
++  of_node_put(node);
+   if (!sram_base) {
+   pr_err("Couldn't map SRAM registers\n");
+   return;
+@@ -91,6 +92,7 @@ static void __init meson_smp_prepare_cpus(const char 
*scu_compatible,
+   }
+ 
+   scu_base = of_iomap(node, 0);
++  of_node_put(node);
+   if (!scu_base) {
+   pr_err("Couldn't map SCU registers\n");
+   return;
+diff --git a/arch/powerpc/platforms/powernv/rng.c 
b/arch/powerpc/platforms/powernv/rng.c
+index eba4142998b03..7186e17cfd3dc 100644
+--- a/arch/powerpc/platforms/powernv/rng.c
 b/arch/powerpc/platforms/powernv/rng.c
+@@ -176,12 +176,8 @@ static int __init pnv_get_random_long_early(unsigned long 
*v)
+   NULL) != pnv_get_random_long_early)
+   return 0;
+ 
+-  for_each_compatible_node(dn, NULL, "ibm,power-rng") {
+-  if (rng_create(dn))
+-  continue;
+-  /* Create devices for hwrng driver */
+-  of_platform_device_create(dn, NULL, NULL);
+-  }
++  for_each_compatible_node(dn, NULL, "ibm,power-rng")
++  

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

2022-07-02 Thread Mike Pagano
commit: fde0139c2d8b688855e43107f6261c6f41665250
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Jul  2 16:08:48 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Jul  2 16:08:48 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=fde0139c

Linux 5.4.203

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

 _README  |4 +
 1202_linux-5.4.203.patch | 1378 ++
 2 files changed, 1382 insertions(+)

diff --git a/_README b/_README
index 17c1b728..30146068 100644
--- a/_README
+++ b/_README
@@ -851,6 +851,10 @@ Patch:  1201_linux-5.4.202.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.202
 
+Patch:  1202_linux-5.4.203.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.203
+
 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/1202_linux-5.4.203.patch b/1202_linux-5.4.203.patch
new file mode 100644
index ..d413ebee
--- /dev/null
+++ b/1202_linux-5.4.203.patch
@@ -0,0 +1,1378 @@
+diff --git a/Makefile b/Makefile
+index 021878dc23f9b..86f518e49c333 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 202
++SUBLEVEL = 203
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm/boot/bootp/init.S b/arch/arm/boot/bootp/init.S
+index 5c476bd2b4ce9..b562da2f70408 100644
+--- a/arch/arm/boot/bootp/init.S
 b/arch/arm/boot/bootp/init.S
+@@ -13,7 +13,7 @@
+  *  size immediately following the kernel, we could build this into
+  *  a binary blob, and concatenate the zImage using the cat command.
+  */
+-  .section .start,#alloc,#execinstr
++  .section .start, "ax"
+   .type   _start, #function
+   .globl  _start
+ 
+diff --git a/arch/arm/boot/compressed/big-endian.S 
b/arch/arm/boot/compressed/big-endian.S
+index 88e2a88d324b2..0e092c36da2f2 100644
+--- a/arch/arm/boot/compressed/big-endian.S
 b/arch/arm/boot/compressed/big-endian.S
+@@ -6,7 +6,7 @@
+  *  Author: Nicolas Pitre
+  */
+ 
+-  .section ".start", #alloc, #execinstr
++  .section ".start", "ax"
+ 
+   mrc p15, 0, r0, c1, c0, 0   @ read control reg
+   orr r0, r0, #(1 << 7)   @ enable big endian mode
+diff --git a/arch/arm/boot/compressed/head.S b/arch/arm/boot/compressed/head.S
+index 0a2410adc25b3..17f87f4c74f51 100644
+--- a/arch/arm/boot/compressed/head.S
 b/arch/arm/boot/compressed/head.S
+@@ -140,7 +140,7 @@
+ #endif
+   .endm
+ 
+-  .section ".start", #alloc, #execinstr
++  .section ".start", "ax"
+ /*
+  * sort out different calling conventions
+  */
+@@ -1274,7 +1274,7 @@ iflush:
+ __armv5tej_mmu_cache_flush:
+   tst r4, #1
+   movne   pc, lr
+-1:mrc p15, 0, r15, c7, c14, 3 @ test,clean,invalidate D cache
++1:mrc p15, 0, APSR_nzcv, c7, c14, 3   @ test,clean,invalidate 
D cache
+   bne 1b
+   mcr p15, 0, r0, c7, c5, 0   @ flush I cache
+   mcr p15, 0, r0, c7, c10, 4  @ drain WB
+diff --git a/arch/arm/boot/compressed/piggy.S 
b/arch/arm/boot/compressed/piggy.S
+index 0284f84dcf380..27577644ee721 100644
+--- a/arch/arm/boot/compressed/piggy.S
 b/arch/arm/boot/compressed/piggy.S
+@@ -1,5 +1,5 @@
+ /* SPDX-License-Identifier: GPL-2.0 */
+-  .section .piggydata,#alloc
++  .section .piggydata, "a"
+   .globl  input_data
+ input_data:
+   .incbin "arch/arm/boot/compressed/piggy_data"
+diff --git a/arch/arm/crypto/Kconfig b/arch/arm/crypto/Kconfig
+index 043b0b18bf7e0..f747caea10ffa 100644
+--- a/arch/arm/crypto/Kconfig
 b/arch/arm/crypto/Kconfig
+@@ -30,7 +30,7 @@ config CRYPTO_SHA1_ARM_NEON
+ 
+ config CRYPTO_SHA1_ARM_CE
+   tristate "SHA1 digest algorithm (ARM v8 Crypto Extensions)"
+-  depends on KERNEL_MODE_NEON
++  depends on KERNEL_MODE_NEON && (CC_IS_CLANG || GCC_VERSION >= 40800)
+   select CRYPTO_SHA1_ARM
+   select CRYPTO_HASH
+   help
+@@ -39,7 +39,7 @@ config CRYPTO_SHA1_ARM_CE
+ 
+ config CRYPTO_SHA2_ARM_CE
+   tristate "SHA-224/256 digest algorithm (ARM v8 Crypto Extensions)"
+-  depends on KERNEL_MODE_NEON
++  depends on KERNEL_MODE_NEON && (CC_IS_CLANG || GCC_VERSION >= 40800)
+   select CRYPTO_SHA256_ARM
+   select CRYPTO_HASH
+   help
+@@ -96,7 +96,7 @@ config CRYPTO_AES_ARM_BS
+ 
+ config CRYPTO_AES_ARM_CE
+   tristate "Accelerated AES using ARMv8 Crypto Extensions"
+-  depends on KERNEL_MODE_NEON
++  depends on KERNEL_MODE_NEON && (CC_IS_CLANG || GCC_VERSION >= 40800)
+   select CRYPTO_BLKCIPHER
+   select CRYPTO_LIB_AES
+   select CRYPTO_SIMD
+@@ -106,7 +106,7 @@ config CRYPTO_AES_ARM_CE
+ 
+ config CRYPTO_GHASH_ARM_CE
+   tristate "PMULL-accelerated GHASH using NEON/ARMv8 

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

2022-06-29 Thread Mike Pagano
commit: c8258137b5caa0382575d3826dc2d09bef79c928
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Jun 29 11:09:18 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Jun 29 11:09:18 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=c8258137

Linux patch 5.4.202

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

 _README  |4 +
 1201_linux-5.4.202.patch | 1638 ++
 2 files changed, 1642 insertions(+)

diff --git a/_README b/_README
index 7d5a5301..17c1b728 100644
--- a/_README
+++ b/_README
@@ -847,6 +847,10 @@ Patch:  1200_linux-5.4.201.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.201
 
+Patch:  1201_linux-5.4.202.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.202
+
 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/1201_linux-5.4.202.patch b/1201_linux-5.4.202.patch
new file mode 100644
index ..9814f67a
--- /dev/null
+++ b/1201_linux-5.4.202.patch
@@ -0,0 +1,1638 @@
+diff --git a/Documentation/ABI/testing/sysfs-bus-iio-vf610 
b/Documentation/ABI/testing/sysfs-bus-iio-vf610
+index 308a6756d3bf3..491ead8044888 100644
+--- a/Documentation/ABI/testing/sysfs-bus-iio-vf610
 b/Documentation/ABI/testing/sysfs-bus-iio-vf610
+@@ -1,4 +1,4 @@
+-What: /sys/bus/iio/devices/iio:deviceX/conversion_mode
++What: /sys/bus/iio/devices/iio:deviceX/in_conversion_mode
+ KernelVersion:4.2
+ Contact:  linux-...@vger.kernel.org
+ Description:
+diff --git a/Makefile b/Makefile
+index 75be5870cc55f..021878dc23f9b 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 201
++SUBLEVEL = 202
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+@@ -1073,7 +1073,7 @@ PHONY += autoksyms_recursive
+ ifdef CONFIG_TRIM_UNUSED_KSYMS
+ autoksyms_recursive: descend modules.order
+   $(Q)$(CONFIG_SHELL) $(srctree)/scripts/adjust_autoksyms.sh \
+-"$(MAKE) -f $(srctree)/Makefile vmlinux"
++"$(MAKE) -f $(srctree)/Makefile autoksyms_recursive"
+ endif
+ 
+ # For the kernel to actually contain only the needed exported symbols,
+diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi
+index bc488df315117..e9955ef12e02d 100644
+--- a/arch/arm/boot/dts/imx6qdl.dtsi
 b/arch/arm/boot/dts/imx6qdl.dtsi
+@@ -766,7 +766,7 @@
+   regulator-name = "vddpu";
+   regulator-min-microvolt = <725000>;
+   regulator-max-microvolt = <145>;
+-  regulator-enable-ramp-delay = <150>;
++  regulator-enable-ramp-delay = <380>;
+   anatop-reg-offset = <0x140>;
+   anatop-vol-bit-shift = <9>;
+   anatop-vol-bit-width = <5>;
+diff --git a/arch/arm/mach-axxia/platsmp.c b/arch/arm/mach-axxia/platsmp.c
+index 512943eae30a5..2e203626eda52 100644
+--- a/arch/arm/mach-axxia/platsmp.c
 b/arch/arm/mach-axxia/platsmp.c
+@@ -39,6 +39,7 @@ static int axxia_boot_secondary(unsigned int cpu, struct 
task_struct *idle)
+   return -ENOENT;
+ 
+   syscon = of_iomap(syscon_np, 0);
++  of_node_put(syscon_np);
+   if (!syscon)
+   return -ENOMEM;
+ 
+diff --git a/arch/arm/mach-cns3xxx/core.c b/arch/arm/mach-cns3xxx/core.c
+index 1d61a7701c11f..d7e63f57b426a 100644
+--- a/arch/arm/mach-cns3xxx/core.c
 b/arch/arm/mach-cns3xxx/core.c
+@@ -376,6 +376,7 @@ static void __init cns3xxx_init(void)
+   /* De-Asscer SATA Reset */
+   cns3xxx_pwr_soft_rst(CNS3XXX_PWR_SOFTWARE_RST(SATA));
+   }
++  of_node_put(dn);
+ 
+   dn = of_find_compatible_node(NULL, NULL, "cavium,cns3420-sdhci");
+   if (of_device_is_available(dn)) {
+@@ -389,6 +390,7 @@ static void __init cns3xxx_init(void)
+   cns3xxx_pwr_clk_en(CNS3XXX_PWR_CLK_EN(SDIO));
+   cns3xxx_pwr_soft_rst(CNS3XXX_PWR_SOFTWARE_RST(SDIO));
+   }
++  of_node_put(dn);
+ 
+   pm_power_off = cns3xxx_power_off;
+ 
+diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c
+index f226d4f57bf41..9025067ef6f57 100644
+--- a/arch/arm/mach-exynos/exynos.c
 b/arch/arm/mach-exynos/exynos.c
+@@ -136,6 +136,7 @@ static void exynos_map_pmu(void)
+   np = of_find_matching_node(NULL, exynos_dt_pmu_match);
+   if (np)
+   pmu_base_addr = of_iomap(np, 0);
++  of_node_put(np);
+ }
+ 
+ static void __init exynos_init_irq(void)
+diff --git a/arch/mips/vr41xx/common/icu.c b/arch/mips/vr41xx/common/icu.c
+index 7b7f25b4b057e..9240bcdbe74e4 100644
+--- a/arch/mips/vr41xx/common/icu.c
 b/arch/mips/vr41xx/common/icu.c
+@@ 

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

2022-06-25 Thread Mike Pagano
commit: 9b355777092f37c5c68d40d8401b5bdbf48b3a11
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Jun 25 19:45:57 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Jun 25 19:45:57 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=9b355777

Linux patch 5.4.201

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

 _README  |   4 +
 1200_linux-5.4.201.patch | 431 +++
 2 files changed, 435 insertions(+)

diff --git a/_README b/_README
index c037210c..bbfa7b3c 100644
--- a/_README
+++ b/_README
@@ -843,6 +843,10 @@ Patch:  1199_linux-5.4.200.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.200
 
+Patch:  1200_linux-5.4.201.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.201
+
 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/1200_linux-5.4.201.patch b/1200_linux-5.4.201.patch
new file mode 100644
index ..43053d56
--- /dev/null
+++ b/1200_linux-5.4.201.patch
@@ -0,0 +1,431 @@
+diff --git a/Documentation/hwmon/hwmon-kernel-api.rst 
b/Documentation/hwmon/hwmon-kernel-api.rst
+index 23f27fe78e379..c41eb61081036 100644
+--- a/Documentation/hwmon/hwmon-kernel-api.rst
 b/Documentation/hwmon/hwmon-kernel-api.rst
+@@ -72,7 +72,7 @@ hwmon_device_register_with_info is the most comprehensive 
and preferred means
+ to register a hardware monitoring device. It creates the standard sysfs
+ attributes in the hardware monitoring core, letting the driver focus on 
reading
+ from and writing to the chip instead of having to bother with sysfs 
attributes.
+-The parent device parameter as well as the chip parameter must not be NULL. 
Its
++The parent device parameter cannot be NULL with non-NULL chip info. Its
+ parameters are described in more detail below.
+ 
+ devm_hwmon_device_register_with_info is similar to
+diff --git a/Makefile b/Makefile
+index 32da9117e9d76..75be5870cc55f 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 200
++SUBLEVEL = 201
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm64/mm/cache.S b/arch/arm64/mm/cache.S
+index db767b072601e..7b054c67acd81 100644
+--- a/arch/arm64/mm/cache.S
 b/arch/arm64/mm/cache.S
+@@ -228,8 +228,6 @@ ENDPIPROC(__dma_flush_area)
+  *- dir   - DMA direction
+  */
+ ENTRY(__dma_map_area)
+-  cmp w2, #DMA_FROM_DEVICE
+-  b.eq__dma_inv_area
+   b   __dma_clean_area
+ ENDPIPROC(__dma_map_area)
+ 
+diff --git a/arch/s390/mm/pgtable.c b/arch/s390/mm/pgtable.c
+index 4438c00acb656..28ca07360e970 100644
+--- a/arch/s390/mm/pgtable.c
 b/arch/s390/mm/pgtable.c
+@@ -716,7 +716,7 @@ void ptep_zap_key(struct mm_struct *mm, unsigned long 
addr, pte_t *ptep)
+   pgste_val(pgste) |= PGSTE_GR_BIT | PGSTE_GC_BIT;
+   ptev = pte_val(*ptep);
+   if (!(ptev & _PAGE_INVALID) && (ptev & _PAGE_WRITE))
+-  page_set_storage_key(ptev & PAGE_MASK, PAGE_DEFAULT_KEY, 1);
++  page_set_storage_key(ptev & PAGE_MASK, PAGE_DEFAULT_KEY, 0);
+   pgste_set_unlock(ptep, pgste);
+   preempt_enable();
+ }
+diff --git a/drivers/hwmon/hwmon.c b/drivers/hwmon/hwmon.c
+index c73b93b9bb87d..a2175394cd253 100644
+--- a/drivers/hwmon/hwmon.c
 b/drivers/hwmon/hwmon.c
+@@ -715,12 +715,11 @@ EXPORT_SYMBOL_GPL(hwmon_device_register_with_groups);
+ 
+ /**
+  * hwmon_device_register_with_info - register w/ hwmon
+- * @dev: the parent device (mandatory)
+- * @name: hwmon name attribute (mandatory)
+- * @drvdata: driver data to attach to created device (optional)
+- * @chip: pointer to hwmon chip information (mandatory)
++ * @dev: the parent device
++ * @name: hwmon name attribute
++ * @drvdata: driver data to attach to created device
++ * @chip: pointer to hwmon chip information
+  * @extra_groups: pointer to list of additional non-standard attribute groups
+- *(optional)
+  *
+  * hwmon_device_unregister() must be called when the device is no
+  * longer needed.
+@@ -733,10 +732,13 @@ hwmon_device_register_with_info(struct device *dev, 
const char *name,
+   const struct hwmon_chip_info *chip,
+   const struct attribute_group **extra_groups)
+ {
+-  if (!dev || !name || !chip)
++  if (!name)
++  return ERR_PTR(-EINVAL);
++
++  if (chip && (!chip->ops || !chip->ops->is_visible || !chip->info))
+   return ERR_PTR(-EINVAL);
+ 
+-  if (!chip->ops || !chip->ops->is_visible || !chip->info)
++  if (chip && !dev)
+   return ERR_PTR(-EINVAL);
+ 
+   return __hwmon_device_register(dev, name, drvdata, chip, extra_groups);
+diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c
+index 06b382304d926..81bc36a43b32d 100644
+--- a/drivers/md/dm-table.c
 b/drivers/md/dm-table.c

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

2022-06-22 Thread Mike Pagano
commit: d0ea94c7ad1cdd7b12f4f977756b062563ba9b17
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Jun 22 13:25:14 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Jun 22 13:25:14 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=d0ea94c7

Update wireguard patch for 5.4

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

 2400_wireguard-backport-v1.0.20210606.patch | 1594 +++
 1 file changed, 908 insertions(+), 686 deletions(-)

diff --git a/2400_wireguard-backport-v1.0.20210606.patch 
b/2400_wireguard-backport-v1.0.20210606.patch
index a5b7b802..0c615d4d 100755
--- a/2400_wireguard-backport-v1.0.20210606.patch
+++ b/2400_wireguard-backport-v1.0.20210606.patch
@@ -10504,9 +10504,9 @@ exit 0
 +$output=pop and open STDOUT,">$output";
 +print $code;
 +close STDOUT;
 /dev/null
+--- b/include/crypto/blake2s.h
 +++ b/include/crypto/blake2s.h
-@@ -0,0 +1,106 @@
+@@ -0,0 +1,103 @@
 +/* SPDX-License-Identifier: GPL-2.0 OR MIT */
 +/*
 + * Copyright (C) 2015-2019 Jason A. Donenfeld . All Rights 
Reserved.
@@ -10609,9 +10609,6 @@ exit 0
 +  blake2s_final(, out);
 +}
 +
-+void blake2s256_hmac(u8 *out, const u8 *in, const u8 *key, const size_t inlen,
-+   const size_t keylen);
-+
 +#endif /* BLAKE2S_H */
 --- b/include/crypto/internal/blake2s.h
 +++ b/include/crypto/internal/blake2s.h
@@ -10640,123 +10637,9 @@ exit 0
 +}
 +
 +#endif /* BLAKE2S_INTERNAL_H */
 /dev/null
-+++ b/lib/crypto/blake2s-generic.c
-@@ -0,0 +1,111 @@
-+// SPDX-License-Identifier: GPL-2.0 OR MIT
-+/*
-+ * Copyright (C) 2015-2019 Jason A. Donenfeld . All Rights 
Reserved.
-+ *
-+ * This is an implementation of the BLAKE2s hash and PRF functions.
-+ *
-+ * Information: https://blake2.net/
-+ *
-+ */
-+
-+#include 
-+#include 
-+#include 
-+#include 
-+#include 
-+#include 
-+#include 
-+#include 
-+
-+static const u8 blake2s_sigma[10][16] = {
-+  { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 },
-+  { 14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3 },
-+  { 11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1, 9, 4 },
-+  { 7, 9, 3, 1, 13, 12, 11, 14, 2, 6, 5, 10, 4, 0, 15, 8 },
-+  { 9, 0, 5, 7, 2, 4, 10, 15, 14, 1, 11, 12, 6, 8, 3, 13 },
-+  { 2, 12, 6, 10, 0, 11, 8, 3, 4, 13, 7, 5, 15, 14, 1, 9 },
-+  { 12, 5, 1, 15, 14, 13, 4, 10, 0, 7, 6, 3, 9, 2, 8, 11 },
-+  { 13, 11, 7, 14, 12, 1, 3, 9, 5, 0, 15, 4, 8, 6, 2, 10 },
-+  { 6, 15, 14, 9, 11, 3, 0, 8, 12, 2, 13, 7, 1, 4, 10, 5 },
-+  { 10, 2, 8, 4, 7, 6, 1, 5, 15, 11, 9, 14, 3, 12, 13, 0 },
-+};
-+
-+static inline void blake2s_increment_counter(struct blake2s_state *state,
-+   const u32 inc)
-+{
-+  state->t[0] += inc;
-+  state->t[1] += (state->t[0] < inc);
-+}
-+
-+void blake2s_compress_generic(struct blake2s_state *state,const u8 *block,
-+size_t nblocks, const u32 inc)
-+{
-+  u32 m[16];
-+  u32 v[16];
-+  int i;
-+
-+  WARN_ON(IS_ENABLED(DEBUG) &&
-+  (nblocks > 1 && inc != BLAKE2S_BLOCK_SIZE));
-+
-+  while (nblocks > 0) {
-+  blake2s_increment_counter(state, inc);
-+  memcpy(m, block, BLAKE2S_BLOCK_SIZE);
-+  le32_to_cpu_array(m, ARRAY_SIZE(m));
-+  memcpy(v, state->h, 32);
-+  v[ 8] = BLAKE2S_IV0;
-+  v[ 9] = BLAKE2S_IV1;
-+  v[10] = BLAKE2S_IV2;
-+  v[11] = BLAKE2S_IV3;
-+  v[12] = BLAKE2S_IV4 ^ state->t[0];
-+  v[13] = BLAKE2S_IV5 ^ state->t[1];
-+  v[14] = BLAKE2S_IV6 ^ state->f[0];
-+  v[15] = BLAKE2S_IV7 ^ state->f[1];
-+
-+#define G(r, i, a, b, c, d) do { \
-+  a += b + m[blake2s_sigma[r][2 * i + 0]]; \
-+  d = ror32(d ^ a, 16); \
-+  c += d; \
-+  b = ror32(b ^ c, 12); \
-+  a += b + m[blake2s_sigma[r][2 * i + 1]]; \
-+  d = ror32(d ^ a, 8); \
-+  c += d; \
-+  b = ror32(b ^ c, 7); \
-+} while (0)
-+
-+#define ROUND(r) do { \
-+  G(r, 0, v[0], v[ 4], v[ 8], v[12]); \
-+  G(r, 1, v[1], v[ 5], v[ 9], v[13]); \
-+  G(r, 2, v[2], v[ 6], v[10], v[14]); \
-+  G(r, 3, v[3], v[ 7], v[11], v[15]); \
-+  G(r, 4, v[0], v[ 5], v[10], v[15]); \
-+  G(r, 5, v[1], v[ 6], v[11], v[12]); \
-+  G(r, 6, v[2], v[ 7], v[ 8], v[13]); \
-+  G(r, 7, v[3], v[ 4], v[ 9], v[14]); \
-+} while (0)
-+  ROUND(0);
-+  ROUND(1);
-+  ROUND(2);
-+  ROUND(3);
-+  ROUND(4);
-+  ROUND(5);
-+  ROUND(6);
-+  ROUND(7);
-+  ROUND(8);
-+  ROUND(9);
-+
-+#undef G
-+#undef ROUND
-+
-+  for (i = 0; i < 8; ++i)
-+  state->h[i] ^= v[i] ^ v[i + 8];
-+
-+  block += BLAKE2S_BLOCK_SIZE;
-+  --nblocks;
-+  }
-+}
-+
-+EXPORT_SYMBOL(blake2s_compress_generic);
-+
-+MODULE_LICENSE("GPL v2");

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

2022-06-16 Thread Mike Pagano
commit: 2afd160291b6f07f0cd115928d904e168fae8c50
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Jun 16 11:43:05 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu Jun 16 11:43:05 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=2afd1602

Linux patch 5.4.199

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

 _README  |4 +
 1198_linux-5.4.199.patch | 1097 ++
 2 files changed, 1101 insertions(+)

diff --git a/_README b/_README
index 6200ccee..62f55a78 100644
--- a/_README
+++ b/_README
@@ -835,6 +835,10 @@ Patch:  1197_linux-5.4.198.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.198
 
+Patch:  1198_linux-5.4.199.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.199
+
 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/1198_linux-5.4.199.patch b/1198_linux-5.4.199.patch
new file mode 100644
index ..dcbcc316
--- /dev/null
+++ b/1198_linux-5.4.199.patch
@@ -0,0 +1,1097 @@
+diff --git a/Documentation/ABI/testing/sysfs-devices-system-cpu 
b/Documentation/ABI/testing/sysfs-devices-system-cpu
+index c24afa60a30ea..726ac2e01b777 100644
+--- a/Documentation/ABI/testing/sysfs-devices-system-cpu
 b/Documentation/ABI/testing/sysfs-devices-system-cpu
+@@ -489,6 +489,7 @@ What:  /sys/devices/system/cpu/vulnerabilities
+   /sys/devices/system/cpu/vulnerabilities/srbds
+   /sys/devices/system/cpu/vulnerabilities/tsx_async_abort
+   /sys/devices/system/cpu/vulnerabilities/itlb_multihit
++  /sys/devices/system/cpu/vulnerabilities/mmio_stale_data
+ Date: January 2018
+ Contact:  Linux kernel mailing list 
+ Description:  Information about CPU vulnerabilities
+diff --git a/Documentation/admin-guide/hw-vuln/index.rst 
b/Documentation/admin-guide/hw-vuln/index.rst
+index ca4dbdd9016d5..2adec1e6520a6 100644
+--- a/Documentation/admin-guide/hw-vuln/index.rst
 b/Documentation/admin-guide/hw-vuln/index.rst
+@@ -15,3 +15,4 @@ are configurable at compile, boot or run time.
+tsx_async_abort
+multihit.rst
+special-register-buffer-data-sampling.rst
++   processor_mmio_stale_data.rst
+diff --git a/Documentation/admin-guide/hw-vuln/processor_mmio_stale_data.rst 
b/Documentation/admin-guide/hw-vuln/processor_mmio_stale_data.rst
+new file mode 100644
+index 0..9393c50b5afc9
+--- /dev/null
 b/Documentation/admin-guide/hw-vuln/processor_mmio_stale_data.rst
+@@ -0,0 +1,246 @@
++=
++Processor MMIO Stale Data Vulnerabilities
++=
++
++Processor MMIO Stale Data Vulnerabilities are a class of memory-mapped I/O
++(MMIO) vulnerabilities that can expose data. The sequences of operations for
++exposing data range from simple to very complex. Because most of the
++vulnerabilities require the attacker to have access to MMIO, many environments
++are not affected. System environments using virtualization where MMIO access 
is
++provided to untrusted guests may need mitigation. These vulnerabilities are
++not transient execution attacks. However, these vulnerabilities may propagate
++stale data into core fill buffers where the data can subsequently be inferred
++by an unmitigated transient execution attack. Mitigation for these
++vulnerabilities includes a combination of microcode update and software
++changes, depending on the platform and usage model. Some of these mitigations
++are similar to those used to mitigate Microarchitectural Data Sampling (MDS) 
or
++those used to mitigate Special Register Buffer Data Sampling (SRBDS).
++
++Data Propagators
++
++Propagators are operations that result in stale data being copied or moved 
from
++one microarchitectural buffer or register to another. Processor MMIO Stale 
Data
++Vulnerabilities are operations that may result in stale data being directly
++read into an architectural, software-visible state or sampled from a buffer or
++register.
++
++Fill Buffer Stale Data Propagator (FBSDP)
++-
++Stale data may propagate from fill buffers (FB) into the non-coherent portion
++of the uncore on some non-coherent writes. Fill buffer propagation by itself
++does not make stale data architecturally visible. Stale data must be 
propagated
++to a location where it is subject to reading or sampling.
++
++Sideband Stale Data Propagator (SSDP)
++-
++The sideband stale data propagator (SSDP) is limited to the client (including
++Intel Xeon server E3) uncore implementation. The sideband response buffer is
++shared by all client cores. For non-coherent reads that go to sideband
++destinations, the uncore logic returns 64 bytes of data to the core, including
++both requested data and unrequested stale 

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

2022-06-06 Thread Mike Pagano
commit: 66aa243550ca0fe12b3d0aae436558ed42c72972
Author: Mike Pagano  gentoo  org>
AuthorDate: Mon Jun  6 11:04:30 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Mon Jun  6 11:04:30 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=66aa2435

Linux patch 5.4.197

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

 _README  |4 +
 1196_linux-5.4.197.patch | 1161 ++
 2 files changed, 1165 insertions(+)

diff --git a/_README b/_README
index 23f7d279..b35c40bb 100644
--- a/_README
+++ b/_README
@@ -827,6 +827,10 @@ Patch:  1195_linux-5.4.196.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.196
 
+Patch:  1196_linux-5.4.197.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.197
+
 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/1196_linux-5.4.197.patch b/1196_linux-5.4.197.patch
new file mode 100644
index ..91dc56f8
--- /dev/null
+++ b/1196_linux-5.4.197.patch
@@ -0,0 +1,1161 @@
+diff --git a/Documentation/process/submitting-patches.rst 
b/Documentation/process/submitting-patches.rst
+index fb56297f70dc8..857be0d44e809 100644
+--- a/Documentation/process/submitting-patches.rst
 b/Documentation/process/submitting-patches.rst
+@@ -133,7 +133,7 @@ as you intend it to.
+ 
+ The maintainer will thank you if you write your patch description in a
+ form which can be easily pulled into Linux's source code management
+-system, ``git``, as a "commit log".  See :ref:`explicit_in_reply_to`.
++system, ``git``, as a "commit log".  See :ref:`the_canonical_patch_format`.
+ 
+ Solve only one problem per patch.  If your description starts to get
+ long, that's a sign that you probably need to split up your patch.
+diff --git a/Makefile b/Makefile
+index c064ed925552d..57e27af9fc0c0 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 196
++SUBLEVEL = 197
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/x86/pci/xen.c b/arch/x86/pci/xen.c
+index 5c11ae66b5d8e..9cf8f5417e7f4 100644
+--- a/arch/x86/pci/xen.c
 b/arch/x86/pci/xen.c
+@@ -442,6 +442,11 @@ void __init xen_msi_init(void)
+ 
+   x86_msi.setup_msi_irqs = xen_hvm_setup_msi_irqs;
+   x86_msi.teardown_msi_irq = xen_teardown_msi_irq;
++  /*
++   * With XEN PIRQ/Eventchannels in use PCI/MSI[-X] masking is solely
++   * controlled by the hypervisor.
++   */
++  pci_msi_ignore_mask = 1;
+ }
+ #endif
+ 
+diff --git a/crypto/ecrdsa.c b/crypto/ecrdsa.c
+index 887ec21aee494..1ffcea7b03558 100644
+--- a/crypto/ecrdsa.c
 b/crypto/ecrdsa.c
+@@ -112,15 +112,15 @@ static int ecrdsa_verify(struct akcipher_request *req)
+ 
+   /* Step 1: verify that 0 < r < q, 0 < s < q */
+   if (vli_is_zero(r, ndigits) ||
+-  vli_cmp(r, ctx->curve->n, ndigits) == 1 ||
++  vli_cmp(r, ctx->curve->n, ndigits) >= 0 ||
+   vli_is_zero(s, ndigits) ||
+-  vli_cmp(s, ctx->curve->n, ndigits) == 1)
++  vli_cmp(s, ctx->curve->n, ndigits) >= 0)
+   return -EKEYREJECTED;
+ 
+   /* Step 2: calculate hash (h) of the message (passed as input) */
+   /* Step 3: calculate e = h \mod q */
+   vli_from_le64(e, digest, ndigits);
+-  if (vli_cmp(e, ctx->curve->n, ndigits) == 1)
++  if (vli_cmp(e, ctx->curve->n, ndigits) >= 0)
+   vli_sub(e, e, ctx->curve->n, ndigits);
+   if (vli_is_zero(e, ndigits))
+   e[0] = 1;
+@@ -136,7 +136,7 @@ static int ecrdsa_verify(struct akcipher_request *req)
+   /* Step 6: calculate point C = z_1P + z_2Q, and R = x_c \mod q */
+   ecc_point_mult_shamir(, z1, >curve->g, z2, >pub_key,
+ ctx->curve);
+-  if (vli_cmp(cc.x, ctx->curve->n, ndigits) == 1)
++  if (vli_cmp(cc.x, ctx->curve->n, ndigits) >= 0)
+   vli_sub(cc.x, cc.x, ctx->curve->n, ndigits);
+ 
+   /* Step 7: if R == r signature is valid */
+diff --git a/drivers/acpi/sysfs.c b/drivers/acpi/sysfs.c
+index 76c668c05fa03..cc0b98affd64d 100644
+--- a/drivers/acpi/sysfs.c
 b/drivers/acpi/sysfs.c
+@@ -439,18 +439,29 @@ static ssize_t acpi_data_show(struct file *filp, struct 
kobject *kobj,
+ {
+   struct acpi_data_attr *data_attr;
+   void __iomem *base;
+-  ssize_t rc;
++  ssize_t size;
+ 
+   data_attr = container_of(bin_attr, struct acpi_data_attr, attr);
++  size = data_attr->attr.size;
++
++  if (offset < 0)
++  return -EINVAL;
++
++  if (offset >= size)
++  return 0;
+ 
+-  base = acpi_os_map_memory(data_attr->addr, data_attr->attr.size);
++  if (count > size - offset)
++  count = size - offset;
++
++  base = acpi_os_map_iomem(data_attr->addr, size);
+   if (!base)
+   return -ENOMEM;
+- 

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

2022-05-25 Thread Mike Pagano
commit: ba27a15f5ab63775cf281edc63b7b211ceb73aa5
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed May 25 11:54:50 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed May 25 11:54:50 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=ba27a15f

Linux patch 5.4.196

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

 _README  |4 +
 1195_linux-5.4.196.patch | 2732 ++
 2 files changed, 2736 insertions(+)

diff --git a/_README b/_README
index a943c8a1..23f7d279 100644
--- a/_README
+++ b/_README
@@ -823,6 +823,10 @@ Patch:  1194_linux-5.4.195.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.195
 
+Patch:  1195_linux-5.4.196.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.196
+
 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/1195_linux-5.4.196.patch b/1195_linux-5.4.196.patch
new file mode 100644
index ..8fdc02f2
--- /dev/null
+++ b/1195_linux-5.4.196.patch
@@ -0,0 +1,2732 @@
+diff --git a/Documentation/DMA-attributes.txt 
b/Documentation/DMA-attributes.txt
+index 7193505a98cab..8f8d97f65d737 100644
+--- a/Documentation/DMA-attributes.txt
 b/Documentation/DMA-attributes.txt
+@@ -156,13 +156,3 @@ accesses to DMA buffers in both privileged "supervisor" 
and unprivileged
+ subsystem that the buffer is fully accessible at the elevated privilege
+ level (and ideally inaccessible or at least read-only at the
+ lesser-privileged levels).
+-
+-DMA_ATTR_PRIVILEGED
+
+-
+-Some advanced peripherals such as remote processors and GPUs perform
+-accesses to DMA buffers in both privileged "supervisor" and unprivileged
+-"user" modes.  This attribute is used to indicate to the DMA-mapping
+-subsystem that the buffer is fully accessible at the elevated privilege
+-level (and ideally inaccessible or at least read-only at the
+-lesser-privileged levels).
+diff --git a/Makefile b/Makefile
+index 4297d0107bd6c..c064ed925552d 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 195
++SUBLEVEL = 196
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm/boot/dts/aspeed-g6-pinctrl.dtsi 
b/arch/arm/boot/dts/aspeed-g6-pinctrl.dtsi
+index f310f4d3bcc7c..ac723fe898c76 100644
+--- a/arch/arm/boot/dts/aspeed-g6-pinctrl.dtsi
 b/arch/arm/boot/dts/aspeed-g6-pinctrl.dtsi
+@@ -117,11 +117,6 @@
+   groups = "FWSPID";
+   };
+ 
+-  pinctrl_fwqspid_default: fwqspid_default {
+-  function = "FWSPID";
+-  groups = "FWQSPID";
+-  };
+-
+   pinctrl_fwspiwp_default: fwspiwp_default {
+   function = "FWSPIWP";
+   groups = "FWSPIWP";
+@@ -653,12 +648,12 @@
+   };
+ 
+   pinctrl_qspi1_default: qspi1_default {
+-  function = "QSPI1";
++  function = "SPI1";
+   groups = "QSPI1";
+   };
+ 
+   pinctrl_qspi2_default: qspi2_default {
+-  function = "QSPI2";
++  function = "SPI2";
+   groups = "QSPI2";
+   };
+ 
+diff --git a/arch/arm/boot/dts/imx7-colibri.dtsi 
b/arch/arm/boot/dts/imx7-colibri.dtsi
+index 8bba03de51ad4..1e61e38621066 100644
+--- a/arch/arm/boot/dts/imx7-colibri.dtsi
 b/arch/arm/boot/dts/imx7-colibri.dtsi
+@@ -77,7 +77,7 @@
+ 
+   dailink_master: simple-audio-card,codec {
+   sound-dai = <>;
+-  clocks = < IMX7D_AUDIO_MCLK_ROOT_CLK>;
++  clocks = < IMX7D_AUDIO_MCLK_ROOT_DIV>;
+   };
+   };
+ };
+@@ -152,7 +152,7 @@
+   compatible = "fsl,sgtl5000";
+   #sound-dai-cells = <0>;
+   reg = <0x0a>;
+-  clocks = < IMX7D_AUDIO_MCLK_ROOT_CLK>;
++  clocks = < IMX7D_AUDIO_MCLK_ROOT_DIV>;
+   pinctrl-names = "default";
+   pinctrl-0 = <_sai1_mclk>;
+   VDDA-supply = <_module_3v3_avdd>;
+diff --git a/arch/arm/boot/dts/imx7-mba7.dtsi 
b/arch/arm/boot/dts/imx7-mba7.dtsi
+index 50abf18ad30b2..887497e3bb4b8 100644
+--- a/arch/arm/boot/dts/imx7-mba7.dtsi
 b/arch/arm/boot/dts/imx7-mba7.dtsi
+@@ -250,7 +250,7 @@
+   tlv320aic32x4: audio-codec@18 {
+   compatible = "ti,tlv320aic32x4";
+   reg = <0x18>;
+-  clocks = < IMX7D_AUDIO_MCLK_ROOT_CLK>;
++  clocks = < IMX7D_AUDIO_MCLK_ROOT_DIV>;
+   clock-names = "mclk";
+   ldoin-supply = <_audio_3v3>;
+   iov-supply = <_audio_3v3>;
+diff --git a/arch/arm/boot/dts/imx7d-nitrogen7.dts 
b/arch/arm/boot/dts/imx7d-nitrogen7.dts
+index 6b4acea1ef795..ecfa179ccab1c 100644
+--- a/arch/arm/boot/dts/imx7d-nitrogen7.dts
 b/arch/arm/boot/dts/imx7d-nitrogen7.dts
+@@ -284,7 +284,7 @@
+   codec: wm8960@1a {
+ 

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

2022-05-18 Thread Mike Pagano
commit: 4b2ccbd9c668ba462c312a01cabc705857eabce0
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed May 18 09:48:55 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed May 18 09:48:55 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=4b2ccbd9

Linux patch 5.4.195

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

 _README  |4 +
 1194_linux-5.4.195.patch | 1162 ++
 2 files changed, 1166 insertions(+)

diff --git a/_README b/_README
index 5292ae1a..a943c8a1 100644
--- a/_README
+++ b/_README
@@ -819,6 +819,10 @@ Patch:  1193_linux-5.4.194.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.194
 
+Patch:  1194_linux-5.4.195.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.195
+
 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/1194_linux-5.4.195.patch b/1194_linux-5.4.195.patch
new file mode 100644
index ..ace0e612
--- /dev/null
+++ b/1194_linux-5.4.195.patch
@@ -0,0 +1,1162 @@
+diff --git a/Makefile b/Makefile
+index 044a85fea9216..4297d0107bd6c 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 194
++SUBLEVEL = 195
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm/include/asm/io.h b/arch/arm/include/asm/io.h
+index 7a0596fcb2e77..3cc0f6d508836 100644
+--- a/arch/arm/include/asm/io.h
 b/arch/arm/include/asm/io.h
+@@ -457,6 +457,9 @@ extern void pci_iounmap(struct pci_dev *dev, void __iomem 
*addr);
+ extern int valid_phys_addr_range(phys_addr_t addr, size_t size);
+ extern int valid_mmap_phys_addr_range(unsigned long pfn, size_t size);
+ extern int devmem_is_allowed(unsigned long pfn);
++extern bool arch_memremap_can_ram_remap(resource_size_t offset, size_t size,
++  unsigned long flags);
++#define arch_memremap_can_ram_remap arch_memremap_can_ram_remap
+ #endif
+ 
+ /*
+diff --git a/arch/arm/mm/ioremap.c b/arch/arm/mm/ioremap.c
+index 513c26b46db35..841b66515b379 100644
+--- a/arch/arm/mm/ioremap.c
 b/arch/arm/mm/ioremap.c
+@@ -500,3 +500,11 @@ void __init early_ioremap_init(void)
+ {
+   early_ioremap_setup();
+ }
++
++bool arch_memremap_can_ram_remap(resource_size_t offset, size_t size,
++   unsigned long flags)
++{
++  unsigned long pfn = PHYS_PFN(offset);
++
++  return memblock_is_map_memory(pfn);
++}
+diff --git a/arch/arm64/include/asm/io.h b/arch/arm64/include/asm/io.h
+index 323cb306bd288..8ac55ff3094ae 100644
+--- a/arch/arm64/include/asm/io.h
 b/arch/arm64/include/asm/io.h
+@@ -204,4 +204,8 @@ extern int valid_mmap_phys_addr_range(unsigned long pfn, 
size_t size);
+ 
+ extern int devmem_is_allowed(unsigned long pfn);
+ 
++extern bool arch_memremap_can_ram_remap(resource_size_t offset, size_t size,
++  unsigned long flags);
++#define arch_memremap_can_ram_remap arch_memremap_can_ram_remap
++
+ #endif/* __ASM_IO_H */
+diff --git a/arch/arm64/mm/ioremap.c b/arch/arm64/mm/ioremap.c
+index 9be71bee902ca..8dac7fcfb4bdc 100644
+--- a/arch/arm64/mm/ioremap.c
 b/arch/arm64/mm/ioremap.c
+@@ -13,6 +13,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #include 
+ #include 
+@@ -100,3 +101,11 @@ void __init early_ioremap_init(void)
+ {
+   early_ioremap_setup();
+ }
++
++bool arch_memremap_can_ram_remap(resource_size_t offset, size_t size,
++   unsigned long flags)
++{
++  unsigned long pfn = PHYS_PFN(offset);
++
++  return memblock_is_map_memory(pfn);
++}
+diff --git a/arch/mips/jz4740/setup.c b/arch/mips/jz4740/setup.c
+index dc8ee21e0948e..45e327960a465 100644
+--- a/arch/mips/jz4740/setup.c
 b/arch/mips/jz4740/setup.c
+@@ -61,7 +61,7 @@ void __init plat_mem_setup(void)
+ 
+   jz4740_reset_init();
+ 
+-  if (__dtb_start != __dtb_end)
++  if (&__dtb_start != &__dtb_end)
+   dtb = __dtb_start;
+   else
+   dtb = (void *)fw_passed_dtb;
+diff --git a/arch/s390/Makefile b/arch/s390/Makefile
+index 2faaf456956a6..71e3d7c0b8709 100644
+--- a/arch/s390/Makefile
 b/arch/s390/Makefile
+@@ -31,6 +31,16 @@ KBUILD_CFLAGS_DECOMPRESSOR += $(call 
cc-option,-ffreestanding)
+ KBUILD_CFLAGS_DECOMPRESSOR += $(call cc-disable-warning, 
address-of-packed-member)
+ KBUILD_CFLAGS_DECOMPRESSOR += $(if $(CONFIG_DEBUG_INFO),-g)
+ KBUILD_CFLAGS_DECOMPRESSOR += $(if $(CONFIG_DEBUG_INFO_DWARF4), $(call 
cc-option, -gdwarf-4,))
++
++ifdef CONFIG_CC_IS_GCC
++  ifeq ($(call cc-ifversion, -ge, 1200, y), y)
++  ifeq ($(call cc-ifversion, -lt, 1300, y), y)
++  KBUILD_CFLAGS += $(call cc-disable-warning, 
array-bounds)
++  KBUILD_CFLAGS_DECOMPRESSOR += $(call 
cc-disable-warning, array-bounds)
++ 

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

2022-05-15 Thread Mike Pagano
commit: 83c1669ea4dddcf172bc880fed9ff1f89c22e39a
Author: Mike Pagano  gentoo  org>
AuthorDate: Sun May 15 22:11:09 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sun May 15 22:11:09 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=83c1669e

Linux patch 5.4.194

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

 _README  |4 +
 1193_linux-5.4.194.patch | 1095 ++
 2 files changed, 1099 insertions(+)

diff --git a/_README b/_README
index b454bd62..5292ae1a 100644
--- a/_README
+++ b/_README
@@ -815,6 +815,10 @@ Patch:  1192_linux-5.4.193.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.193
 
+Patch:  1193_linux-5.4.194.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.194
+
 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/1193_linux-5.4.194.patch b/1193_linux-5.4.194.patch
new file mode 100644
index ..2e238496
--- /dev/null
+++ b/1193_linux-5.4.194.patch
@@ -0,0 +1,1095 @@
+diff --git a/Documentation/vm/memory-model.rst 
b/Documentation/vm/memory-model.rst
+index 58a12376b7df7..94db75ba7fbe2 100644
+--- a/Documentation/vm/memory-model.rst
 b/Documentation/vm/memory-model.rst
+@@ -52,8 +52,7 @@ wrapper :c:func:`free_area_init`. Yet, the mappings array is 
not
+ usable until the call to :c:func:`memblock_free_all` that hands all
+ the memory to the page allocator.
+ 
+-If an architecture enables `CONFIG_ARCH_HAS_HOLES_MEMORYMODEL` option,
+-it may free parts of the `mem_map` array that do not cover the
++An architecture may free parts of the `mem_map` array that do not cover the
+ actual physical pages. In such case, the architecture specific
+ :c:func:`pfn_valid` implementation should take the holes in the
+ `mem_map` into account.
+diff --git a/Makefile b/Makefile
+index 888d896058553..044a85fea9216 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 193
++SUBLEVEL = 194
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
+index 4b36bbcf5a5b4..a1622b9290fd5 100644
+--- a/arch/arm/Kconfig
 b/arch/arm/Kconfig
+@@ -26,7 +26,7 @@ config ARM
+   select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
+   select ARCH_HAVE_CUSTOM_GPIO_H
+   select ARCH_HAS_GCOV_PROFILE_ALL
+-  select ARCH_KEEP_MEMBLOCK if HAVE_ARCH_PFN_VALID || KEXEC
++  select ARCH_KEEP_MEMBLOCK
+   select ARCH_MIGHT_HAVE_PC_PARPORT
+   select ARCH_NO_SG_CHAIN if !ARM_HAS_SG_CHAIN
+   select ARCH_OPTIONAL_KERNEL_RWX if ARCH_HAS_STRICT_KERNEL_RWX
+@@ -521,7 +521,6 @@ config ARCH_S3C24XX
+ config ARCH_OMAP1
+   bool "TI OMAP1"
+   depends on MMU
+-  select ARCH_HAS_HOLES_MEMORYMODEL
+   select ARCH_OMAP
+   select CLKDEV_LOOKUP
+   select CLKSRC_MMIO
+@@ -1518,9 +1517,6 @@ config OABI_COMPAT
+ UNPREDICTABLE (in fact it can be predicted that it won't work
+ at all). If in doubt say N.
+ 
+-config ARCH_HAS_HOLES_MEMORYMODEL
+-  bool
+-
+ config ARCH_SPARSEMEM_ENABLE
+   bool
+ 
+@@ -1528,7 +1524,7 @@ config ARCH_SPARSEMEM_DEFAULT
+   def_bool ARCH_SPARSEMEM_ENABLE
+ 
+ config HAVE_ARCH_PFN_VALID
+-  def_bool ARCH_HAS_HOLES_MEMORYMODEL || !SPARSEMEM
++  def_bool y
+ 
+ config HIGHMEM
+   bool "High Memory Support"
+diff --git a/arch/arm/mach-bcm/Kconfig b/arch/arm/mach-bcm/Kconfig
+index 5e5f1fabc3d40..634d1bc3c0114 100644
+--- a/arch/arm/mach-bcm/Kconfig
 b/arch/arm/mach-bcm/Kconfig
+@@ -214,7 +214,6 @@ config ARCH_BRCMSTB
+   select HAVE_ARM_ARCH_TIMER
+   select BRCMSTB_L2_IRQ
+   select BCM7120_L2_IRQ
+-  select ARCH_HAS_HOLES_MEMORYMODEL
+   select ZONE_DMA if ARM_LPAE
+   select SOC_BRCMSTB
+   select SOC_BUS
+diff --git a/arch/arm/mach-davinci/Kconfig b/arch/arm/mach-davinci/Kconfig
+index 02b180ad72454..4d3b7d0418c40 100644
+--- a/arch/arm/mach-davinci/Kconfig
 b/arch/arm/mach-davinci/Kconfig
+@@ -5,7 +5,6 @@ menuconfig ARCH_DAVINCI
+   depends on ARCH_MULTI_V5
+   select DAVINCI_TIMER
+   select ZONE_DMA
+-  select ARCH_HAS_HOLES_MEMORYMODEL
+   select PM_GENERIC_DOMAINS if PM
+   select PM_GENERIC_DOMAINS_OF if PM && OF
+   select REGMAP_MMIO
+diff --git a/arch/arm/mach-exynos/Kconfig b/arch/arm/mach-exynos/Kconfig
+index 9dab1f50a02f8..fc01137628e4b 100644
+--- a/arch/arm/mach-exynos/Kconfig
 b/arch/arm/mach-exynos/Kconfig
+@@ -8,7 +8,6 @@
+ menuconfig ARCH_EXYNOS
+   bool "Samsung EXYNOS"
+   depends on ARCH_MULTI_V7
+-  select ARCH_HAS_HOLES_MEMORYMODEL
+   select ARCH_SUPPORTS_BIG_ENDIAN
+   select ARM_AMBA
+   select ARM_GIC
+diff --git a/arch/arm/mach-highbank/Kconfig b/arch/arm/mach-highbank/Kconfig
+index 1bc68913d62c1..9de38ce8124f2 100644
+--- 

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

2022-05-12 Thread Mike Pagano
commit: 0b7372f26c8ae87988e75371d0973f9b69ffb1e3
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu May 12 11:30:08 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu May 12 11:30:08 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=0b7372f2

Linuxpatch 5.4.193

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

 _README  |4 +
 1192_linux-5.4.193.patch | 2007 ++
 2 files changed, 2011 insertions(+)

diff --git a/_README b/_README
index cab1fe9c..b454bd62 100644
--- a/_README
+++ b/_README
@@ -811,6 +811,10 @@ Patch:  1191_linux-5.4.192.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.192
 
+Patch:  1192_linux-5.4.193.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.193
+
 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/1192_linux-5.4.193.patch b/1192_linux-5.4.193.patch
new file mode 100644
index ..a3b2b985
--- /dev/null
+++ b/1192_linux-5.4.193.patch
@@ -0,0 +1,2007 @@
+diff --git a/Makefile b/Makefile
+index 968470cf368ee..888d896058553 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 192
++SUBLEVEL = 193
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/mips/include/asm/timex.h b/arch/mips/include/asm/timex.h
+index b05bb70a2e46f..8026baf46e729 100644
+--- a/arch/mips/include/asm/timex.h
 b/arch/mips/include/asm/timex.h
+@@ -40,9 +40,9 @@
+ typedef unsigned int cycles_t;
+ 
+ /*
+- * On R4000/R4400 before version 5.0 an erratum exists such that if the
+- * cycle counter is read in the exact moment that it is matching the
+- * compare register, no interrupt will be generated.
++ * On R4000/R4400 an erratum exists such that if the cycle counter is
++ * read in the exact moment that it is matching the compare register,
++ * no interrupt will be generated.
+  *
+  * There is a suggested workaround and also the erratum can't strike if
+  * the compare interrupt isn't being used as the clock source device.
+@@ -63,7 +63,7 @@ static inline int can_use_mips_counter(unsigned int prid)
+   if (!__builtin_constant_p(cpu_has_counter))
+   asm volatile("" : "=m" (cpu_data[0].options));
+   if (likely(cpu_has_counter &&
+- prid >= (PRID_IMP_R4000 | PRID_REV_ENCODE_44(5, 0
++ prid > (PRID_IMP_R4000 | PRID_REV_ENCODE_44(15, 15
+   return 1;
+   else
+   return 0;
+diff --git a/arch/mips/kernel/time.c b/arch/mips/kernel/time.c
+index caa01457dce60..ed339d7979f3f 100644
+--- a/arch/mips/kernel/time.c
 b/arch/mips/kernel/time.c
+@@ -141,15 +141,10 @@ static __init int cpu_has_mfc0_count_bug(void)
+   case CPU_R4400MC:
+   /*
+* The published errata for the R4400 up to 3.0 say the CPU
+-   * has the mfc0 from count bug.
++   * has the mfc0 from count bug.  This seems the last version
++   * produced.
+*/
+-  if ((current_cpu_data.processor_id & 0xff) <= 0x30)
+-  return 1;
+-
+-  /*
+-   * we assume newer revisions are ok
+-   */
+-  return 0;
++  return 1;
+   }
+ 
+   return 0;
+diff --git a/arch/parisc/kernel/processor.c b/arch/parisc/kernel/processor.c
+index 13f771f74ee3b..b0045889864c2 100644
+--- a/arch/parisc/kernel/processor.c
 b/arch/parisc/kernel/processor.c
+@@ -419,8 +419,7 @@ show_cpuinfo (struct seq_file *m, void *v)
+   }
+   seq_printf(m, " (0x%02lx)\n", boot_cpu_data.pdc.capabilities);
+ 
+-  seq_printf(m, "model\t\t: %s\n"
+-  "model name\t: %s\n",
++  seq_printf(m, "model\t\t: %s - %s\n",
+boot_cpu_data.pdc.sys_model_name,
+cpuinfo->dev ?
+cpuinfo->dev->name : "Unknown");
+diff --git a/arch/x86/kernel/kvm.c b/arch/x86/kernel/kvm.c
+index 408b51aba2930..f582dda8dd34f 100644
+--- a/arch/x86/kernel/kvm.c
 b/arch/x86/kernel/kvm.c
+@@ -59,6 +59,7 @@ static DEFINE_PER_CPU_DECRYPTED(struct kvm_vcpu_pv_apf_data, 
apf_reason) __align
+ DEFINE_PER_CPU_DECRYPTED(struct kvm_steal_time, steal_time) __aligned(64) 
__visible;
+ static int has_steal_clock = 0;
+ 
++static int has_guest_poll = 0;
+ /*
+  * No need for any "IO delay" on KVM
+  */
+@@ -584,14 +585,26 @@ static int kvm_cpu_down_prepare(unsigned int cpu)
+ 
+ static int kvm_suspend(void)
+ {
++  u64 val = 0;
++
+   kvm_guest_cpu_offline(false);
+ 
++#ifdef CONFIG_ARCH_CPUIDLE_HALTPOLL
++  if (kvm_para_has_feature(KVM_FEATURE_POLL_CONTROL))
++  rdmsrl(MSR_KVM_POLL_CONTROL, val);
++  has_guest_poll = !(val & 1);
++#endif
+ 

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

2022-05-09 Thread Mike Pagano
commit: 7aedd27a1f216799c288196924d35eb33df1eb1f
Author: Mike Pagano  gentoo  org>
AuthorDate: Mon May  9 10:55:07 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Mon May  9 10:55:07 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=7aedd27a

Linux patch 5.4.192

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

 _README  |4 +
 1191_linux-5.4.192.patch | 2396 ++
 2 files changed, 2400 insertions(+)

diff --git a/_README b/_README
index bad996a3..cab1fe9c 100644
--- a/_README
+++ b/_README
@@ -807,6 +807,10 @@ Patch:  1190_linux-5.4.191.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.191
 
+Patch:  1191_linux-5.4.192.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.192
+
 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/1191_linux-5.4.192.patch b/1191_linux-5.4.192.patch
new file mode 100644
index ..deeec338
--- /dev/null
+++ b/1191_linux-5.4.192.patch
@@ -0,0 +1,2396 @@
+diff --git a/Makefile b/Makefile
+index 365b487e50d7f..968470cf368ee 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 191
++SUBLEVEL = 192
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm/boot/dts/am3517-evm.dts 
b/arch/arm/boot/dts/am3517-evm.dts
+index a1fd3e63e86ec..3db30ce134b95 100644
+--- a/arch/arm/boot/dts/am3517-evm.dts
 b/arch/arm/boot/dts/am3517-evm.dts
+@@ -160,6 +160,8 @@
+ 
+   /* HS USB Host PHY on PORT 1 */
+   hsusb1_phy: hsusb1_phy {
++  pinctrl-names = "default";
++  pinctrl-0 = <_rst_pins>;
+   compatible = "usb-nop-xceiv";
+   reset-gpios = < 25 GPIO_ACTIVE_LOW>; /* gpio_57 */
+   #phy-cells = <0>;
+@@ -167,7 +169,9 @@
+ };
+ 
+ _emac {
+-   status = "okay";
++  pinctrl-names = "default";
++  pinctrl-0 = <_pins>;
++  status = "okay";
+ };
+ 
+ _mdio {
+@@ -192,6 +196,8 @@
+ };
+ 
+  {
++  pinctrl-names = "default";
++  pinctrl-0 = <_pins>;
+   clock-frequency = <40>;
+   /* User DIP swithes [1:8] / User LEDS [1:2] */
+   tca6416: gpio@21 {
+@@ -204,6 +210,8 @@
+ };
+ 
+  {
++  pinctrl-names = "default";
++  pinctrl-0 = <_pins>;
+   clock-frequency = <40>;
+ };
+ 
+@@ -222,6 +230,8 @@
+ };
+ 
+  {
++  pinctrl-names = "default";
++  pinctrl-0 = <_pins>;
+   port1-mode = "ehci-phy";
+ };
+ 
+@@ -230,8 +240,35 @@
+ };
+ 
+ _pmx_core {
+-  pinctrl-names = "default";
+-  pinctrl-0 = <_rst_pins>;
++
++  ethernet_pins: pinmux_ethernet_pins {
++  pinctrl-single,pins = <
++  OMAP3_CORE1_IOPAD(0x21fe, PIN_INPUT | MUX_MODE0) /* 
rmii_mdio_data */
++  OMAP3_CORE1_IOPAD(0x2200, MUX_MODE0) /* rmii_mdio_clk */
++  OMAP3_CORE1_IOPAD(0x2202, PIN_INPUT_PULLDOWN | 
MUX_MODE0) /* rmii_rxd0 */
++  OMAP3_CORE1_IOPAD(0x2204, PIN_INPUT_PULLDOWN | 
MUX_MODE0) /* rmii_rxd1 */
++  OMAP3_CORE1_IOPAD(0x2206, PIN_INPUT_PULLDOWN | 
MUX_MODE0) /* rmii_crs_dv */
++  OMAP3_CORE1_IOPAD(0x2208, PIN_OUTPUT_PULLDOWN | 
MUX_MODE0) /* rmii_rxer */
++  OMAP3_CORE1_IOPAD(0x220a, PIN_OUTPUT_PULLDOWN | 
MUX_MODE0) /* rmii_txd0 */
++  OMAP3_CORE1_IOPAD(0x220c, PIN_OUTPUT_PULLDOWN | 
MUX_MODE0) /* rmii_txd1 */
++  OMAP3_CORE1_IOPAD(0x220e, PIN_OUTPUT_PULLDOWN 
|MUX_MODE0) /* rmii_txen */
++  OMAP3_CORE1_IOPAD(0x2210, PIN_INPUT_PULLDOWN | 
MUX_MODE0) /* rmii_50mhz_clk */
++  >;
++  };
++
++  i2c2_pins: pinmux_i2c2_pins {
++  pinctrl-single,pins = <
++  OMAP3_CORE1_IOPAD(0x21be, PIN_INPUT_PULLUP | MUX_MODE0) 
 /* i2c2_scl */
++  OMAP3_CORE1_IOPAD(0x21c0, PIN_INPUT_PULLUP | MUX_MODE0) 
 /* i2c2_sda */
++  >;
++  };
++
++  i2c3_pins: pinmux_i2c3_pins {
++  pinctrl-single,pins = <
++  OMAP3_CORE1_IOPAD(0x21c2, PIN_INPUT_PULLUP | MUX_MODE0) 
 /* i2c3_scl */
++  OMAP3_CORE1_IOPAD(0x21c4, PIN_INPUT_PULLUP | MUX_MODE0) 
 /* i2c3_sda */
++  >;
++  };
+ 
+   leds_pins: pinmux_leds_pins {
+   pinctrl-single,pins = <
+@@ -299,8 +336,6 @@
+ };
+ 
+ _pmx_core2 {
+-  pinctrl-names = "default";
+-  pinctrl-0 = <_pins>;
+ 
+   hsusb1_pins: pinmux_hsusb1_pins {
+   pinctrl-single,pins = <
+diff --git a/arch/arm/boot/dts/am3517-som.dtsi 
b/arch/arm/boot/dts/am3517-som.dtsi
+index 8b669e2eafec4..f7b680f6c48ad 100644
+--- a/arch/arm/boot/dts/am3517-som.dtsi
 b/arch/arm/boot/dts/am3517-som.dtsi
+@@ -69,6 +69,8 @@
+ };
+ 
+  {
++  pinctrl-names = "default";
++ 

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

2022-04-27 Thread Mike Pagano
commit: 0cd34c2b0e4fd1ba802468a45d1f0216374709fb
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Apr 27 12:20:56 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Apr 27 12:20:56 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=0cd34c2b

Linux patch 5.4.191

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

 _README  |4 +
 1190_linux-5.4.191.patch | 2098 ++
 2 files changed, 2102 insertions(+)

diff --git a/_README b/_README
index c97a7636..bad996a3 100644
--- a/_README
+++ b/_README
@@ -803,6 +803,10 @@ Patch:  1189_linux-5.4.190.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.190
 
+Patch:  1190_linux-5.4.191.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.191
+
 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/1190_linux-5.4.191.patch b/1190_linux-5.4.191.patch
new file mode 100644
index ..4b838542
--- /dev/null
+++ b/1190_linux-5.4.191.patch
@@ -0,0 +1,2098 @@
+diff --git a/Documentation/filesystems/ext4/attributes.rst 
b/Documentation/filesystems/ext4/attributes.rst
+index 54386a010a8d7..871d2da7a0a91 100644
+--- a/Documentation/filesystems/ext4/attributes.rst
 b/Documentation/filesystems/ext4/attributes.rst
+@@ -76,7 +76,7 @@ The beginning of an extended attribute block is in
+  - Checksum of the extended attribute block.
+* - 0x14
+  - \_\_u32
+- - h\_reserved[2]
++ - h\_reserved[3]
+  - Zero.
+ 
+ The checksum is calculated against the FS UUID, the 64-bit block number
+diff --git a/Makefile b/Makefile
+index fd239ec16278b..365b487e50d7f 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 190
++SUBLEVEL = 191
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arc/kernel/entry.S b/arch/arc/kernel/entry.S
+index cef1d3f2656f6..beb39930eedbe 100644
+--- a/arch/arc/kernel/entry.S
 b/arch/arc/kernel/entry.S
+@@ -199,6 +199,7 @@ tracesys_exit:
+   st  r0, [sp, PT_r0] ; sys call return value in pt_regs
+ 
+   ;POST Sys Call Ptrace Hook
++  mov r0, sp  ; pt_regs needed
+   bl  @syscall_trace_exit
+   b   ret_from_exception ; NOT ret_from_system_call at is saves r0 which
+   ; we'd done before calling post hook above
+diff --git a/arch/arm/mach-vexpress/spc.c b/arch/arm/mach-vexpress/spc.c
+index 1da11bdb1dfbd..1c6500c4e6a17 100644
+--- a/arch/arm/mach-vexpress/spc.c
 b/arch/arm/mach-vexpress/spc.c
+@@ -580,7 +580,7 @@ static int __init ve_spc_clk_init(void)
+   }
+ 
+   cluster = topology_physical_package_id(cpu_dev->id);
+-  if (init_opp_table[cluster])
++  if (cluster < 0 || init_opp_table[cluster])
+   continue;
+ 
+   if (ve_init_opp_table(cpu_dev))
+diff --git a/arch/powerpc/kvm/book3s_64_vio.c 
b/arch/powerpc/kvm/book3s_64_vio.c
+index 03b947429e4de..4518a0f2d6c69 100644
+--- a/arch/powerpc/kvm/book3s_64_vio.c
 b/arch/powerpc/kvm/book3s_64_vio.c
+@@ -420,13 +420,19 @@ static void kvmppc_tce_put(struct kvmppc_spapr_tce_table 
*stt,
+   tbl[idx % TCES_PER_PAGE] = tce;
+ }
+ 
+-static void kvmppc_clear_tce(struct mm_struct *mm, struct iommu_table *tbl,
+-  unsigned long entry)
++static void kvmppc_clear_tce(struct mm_struct *mm, struct 
kvmppc_spapr_tce_table *stt,
++  struct iommu_table *tbl, unsigned long entry)
+ {
+-  unsigned long hpa = 0;
+-  enum dma_data_direction dir = DMA_NONE;
++  unsigned long i;
++  unsigned long subpages = 1ULL << (stt->page_shift - tbl->it_page_shift);
++  unsigned long io_entry = entry << (stt->page_shift - 
tbl->it_page_shift);
++
++  for (i = 0; i < subpages; ++i) {
++  unsigned long hpa = 0;
++  enum dma_data_direction dir = DMA_NONE;
+ 
+-  iommu_tce_xchg_no_kill(mm, tbl, entry, , );
++  iommu_tce_xchg_no_kill(mm, tbl, io_entry + i, , );
++  }
+ }
+ 
+ static long kvmppc_tce_iommu_mapped_dec(struct kvm *kvm,
+@@ -485,6 +491,8 @@ static long kvmppc_tce_iommu_unmap(struct kvm *kvm,
+   break;
+   }
+ 
++  iommu_tce_kill(tbl, io_entry, subpages);
++
+   return ret;
+ }
+ 
+@@ -544,6 +552,8 @@ static long kvmppc_tce_iommu_map(struct kvm *kvm,
+   break;
+   }
+ 
++  iommu_tce_kill(tbl, io_entry, subpages);
++
+   return ret;
+ }
+ 
+@@ -590,10 +600,9 @@ long kvmppc_h_put_tce(struct kvm_vcpu *vcpu, unsigned 
long liobn,
+   ret = kvmppc_tce_iommu_map(vcpu->kvm, stt, stit->tbl,
+   entry, ua, dir);
+ 
+-  iommu_tce_kill(stit->tbl, entry, 1);
+ 
+   if (ret != H_SUCCESS) {
+-  

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

2022-04-20 Thread Mike Pagano
commit: 3b9c688fb9fd97addde331c4c0b0f5f27f272ce4
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Apr 20 12:08:27 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Apr 20 12:08:27 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=3b9c688f

Linux patch 5.4.190

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

 _README  |4 +
 1189_linux-5.4.190.patch | 1735 ++
 2 files changed, 1739 insertions(+)

diff --git a/_README b/_README
index 516fc13c..c97a7636 100644
--- a/_README
+++ b/_README
@@ -799,6 +799,10 @@ Patch:  1188_linux-5.4.189.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.189
 
+Patch:  1189_linux-5.4.190.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.190
+
 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/1189_linux-5.4.190.patch b/1189_linux-5.4.190.patch
new file mode 100644
index ..81f2d3b0
--- /dev/null
+++ b/1189_linux-5.4.190.patch
@@ -0,0 +1,1735 @@
+diff --git a/Makefile b/Makefile
+index cbb71900d3dcf..fd239ec16278b 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 189
++SUBLEVEL = 190
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm/mach-davinci/board-da850-evm.c 
b/arch/arm/mach-davinci/board-da850-evm.c
+index 5b3549f1236c5..b2ede9bf82dff 100644
+--- a/arch/arm/mach-davinci/board-da850-evm.c
 b/arch/arm/mach-davinci/board-da850-evm.c
+@@ -1101,11 +1101,13 @@ static int __init da850_evm_config_emac(void)
+   int ret;
+   u32 val;
+   struct davinci_soc_info *soc_info = _soc_info;
+-  u8 rmii_en = soc_info->emac_pdata->rmii_en;
++  u8 rmii_en;
+ 
+   if (!machine_is_davinci_da850_evm())
+   return 0;
+ 
++  rmii_en = soc_info->emac_pdata->rmii_en;
++
+   cfg_chip3_base = DA8XX_SYSCFG0_VIRT(DA8XX_CFGCHIP3_REG);
+ 
+   val = __raw_readl(cfg_chip3_base);
+diff --git a/arch/arm64/kernel/alternative.c b/arch/arm64/kernel/alternative.c
+index 73039949b5ce2..5f8e4c2df53cc 100644
+--- a/arch/arm64/kernel/alternative.c
 b/arch/arm64/kernel/alternative.c
+@@ -41,7 +41,7 @@ bool alternative_is_applied(u16 cpufeature)
+ /*
+  * Check if the target PC is within an alternative block.
+  */
+-static bool branch_insn_requires_update(struct alt_instr *alt, unsigned long 
pc)
++static __always_inline bool branch_insn_requires_update(struct alt_instr 
*alt, unsigned long pc)
+ {
+   unsigned long replptr = (unsigned long)ALT_REPL_PTR(alt);
+   return !(pc >= replptr && pc <= (replptr + alt->alt_len));
+@@ -49,7 +49,7 @@ static bool branch_insn_requires_update(struct alt_instr 
*alt, unsigned long pc)
+ 
+ #define align_down(x, a)  ((unsigned long)(x) & ~(((unsigned long)(a)) - 
1))
+ 
+-static u32 get_alt_insn(struct alt_instr *alt, __le32 *insnptr, __le32 
*altinsnptr)
++static __always_inline u32 get_alt_insn(struct alt_instr *alt, __le32 
*insnptr, __le32 *altinsnptr)
+ {
+   u32 insn;
+ 
+@@ -94,7 +94,7 @@ static u32 get_alt_insn(struct alt_instr *alt, __le32 
*insnptr, __le32 *altinsnp
+   return insn;
+ }
+ 
+-static void patch_alternative(struct alt_instr *alt,
++static noinstr void patch_alternative(struct alt_instr *alt,
+ __le32 *origptr, __le32 *updptr, int nr_inst)
+ {
+   __le32 *replptr;
+diff --git a/arch/powerpc/include/asm/page.h b/arch/powerpc/include/asm/page.h
+index 6ba5adb96a3be..0d8f9246ce153 100644
+--- a/arch/powerpc/include/asm/page.h
 b/arch/powerpc/include/asm/page.h
+@@ -132,7 +132,11 @@ static inline bool pfn_valid(unsigned long pfn)
+ #define virt_to_page(kaddr)   pfn_to_page(virt_to_pfn(kaddr))
+ #define pfn_to_kaddr(pfn) __va((pfn) << PAGE_SHIFT)
+ 
+-#define virt_addr_valid(kaddr)pfn_valid(virt_to_pfn(kaddr))
++#define virt_addr_valid(vaddr)({  
\
++  unsigned long _addr = (unsigned long)vaddr; \
++  _addr >= PAGE_OFFSET && _addr < (unsigned long)high_memory &&   \
++  pfn_valid(virt_to_pfn(_addr));  \
++})
+ 
+ /*
+  * On Book-E parts we need __va to parse the device tree and we can't
+diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
+index dca1590f295d0..af8a1bac93458 100644
+--- a/drivers/ata/libata-core.c
 b/drivers/ata/libata-core.c
+@@ -4580,6 +4580,9 @@ static const struct ata_blacklist_entry 
ata_device_blacklist [] = {
+   ATA_HORKAGE_ZERO_AFTER_TRIM, },
+   { "Crucial_CT*MX100*",  "MU01", ATA_HORKAGE_NO_NCQ_TRIM |
+   ATA_HORKAGE_ZERO_AFTER_TRIM, },
++  { "Samsung SSD 840 EVO*",   NULL,   ATA_HORKAGE_NO_NCQ_TRIM |
++ 

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

2022-04-12 Thread Mike Pagano
commit: 0a623bd580f1c166b8b9bb1fa390bdd446052162
Author: Mike Pagano  gentoo  org>
AuthorDate: Tue Apr 12 19:20:11 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Tue Apr 12 19:20:11 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=0a623bd5

Select AUTOFS_FS when GENTOO_LINUX_INIT_SYSTEMD selected

Remove deprecated select AUTOFS4_FS

Bug: https://bugs.gentoo.org/838082

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

 4567_distro-Gentoo-Kconfig.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/4567_distro-Gentoo-Kconfig.patch b/4567_distro-Gentoo-Kconfig.patch
index 24560114..874389d9 100644
--- a/4567_distro-Gentoo-Kconfig.patch
+++ b/4567_distro-Gentoo-Kconfig.patch
@@ -121,7 +121,7 @@
 +
 +  depends on GENTOO_LINUX && GENTOO_LINUX_UDEV
 +
-+  select AUTOFS4_FS
++  select AUTOFS_FS
 +  select BLK_DEV_BSG
 +  select BPF_SYSCALL
 +  select CGROUP_BPF



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

2022-03-28 Thread Mike Pagano
commit: e6bafe6f98124c8afbf342d9c8503d8b19bdd3e5
Author: Mike Pagano  gentoo  org>
AuthorDate: Mon Mar 28 10:58:41 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Mon Mar 28 10:58:41 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=e6bafe6f

Linux patch 5.4.188

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

 _README  |4 +
 1187_linux-5.4.188.patch | 1264 ++
 2 files changed, 1268 insertions(+)

diff --git a/_README b/_README
index 4c62caea..0cc3f59a 100644
--- a/_README
+++ b/_README
@@ -791,6 +791,10 @@ Patch:  1186_linux-5.4.187.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.187
 
+Patch:  1187_linux-5.4.188.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.188
+
 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/1187_linux-5.4.188.patch b/1187_linux-5.4.188.patch
new file mode 100644
index ..43de3071
--- /dev/null
+++ b/1187_linux-5.4.188.patch
@@ -0,0 +1,1264 @@
+diff --git a/Makefile b/Makefile
+index d07421bc5c2fb..8684857148066 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 187
++SUBLEVEL = 188
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/nds32/include/asm/uaccess.h 
b/arch/nds32/include/asm/uaccess.h
+index 8916ad9f9f139..e205b1db8c807 100644
+--- a/arch/nds32/include/asm/uaccess.h
 b/arch/nds32/include/asm/uaccess.h
+@@ -71,9 +71,7 @@ static inline void set_fs(mm_segment_t fs)
+  * versions are void (ie, don't return a value as such).
+  */
+ 
+-#define get_user  __get_user  \
+-
+-#define __get_user(x, ptr)\
++#define get_user(x, ptr)  \
+ ({\
+   long __gu_err = 0;  \
+   __get_user_check((x), (ptr), __gu_err); \
+@@ -86,6 +84,14 @@ static inline void set_fs(mm_segment_t fs)
+   (void)0;\
+ })
+ 
++#define __get_user(x, ptr)\
++({\
++  long __gu_err = 0;  \
++  const __typeof__(*(ptr)) __user *__p = (ptr);   \
++  __get_user_err((x), __p, (__gu_err));   \
++  __gu_err;   \
++})
++
+ #define __get_user_check(x, ptr, err) \
+ ({\
+   const __typeof__(*(ptr)) __user *__p = (ptr);   \
+@@ -166,12 +172,18 @@ do { 
\
+   : "r"(addr), "i"(-EFAULT)   \
+   : "cc")
+ 
+-#define put_user  __put_user  \
++#define put_user(x, ptr)  \
++({\
++  long __pu_err = 0;  \
++  __put_user_check((x), (ptr), __pu_err); \
++  __pu_err;   \
++})
+ 
+ #define __put_user(x, ptr)\
+ ({\
+   long __pu_err = 0;  \
+-  __put_user_err((x), (ptr), __pu_err);   \
++  __typeof__(*(ptr)) __user *__p = (ptr); \
++  __put_user_err((x), __p, __pu_err); \
+   __pu_err;   \
+ })
+ 
+diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c
+index 4137a7342d687..7b75658b7e9ac 100644
+--- a/arch/x86/kernel/acpi/boot.c
 b/arch/x86/kernel/acpi/boot.c
+@@ -1339,6 +1339,17 @@ static int __init disable_acpi_pci(const struct 
dmi_system_id *d)
+   return 0;
+ }
+ 
++static int __init disable_acpi_xsdt(const struct dmi_system_id *d)
++{
++  if (!acpi_force) {
++  pr_notice("%s detected: force use of acpi=rsdt\n", d->ident);
++  acpi_gbl_do_not_use_xsdt = TRUE;
++  } else {
++  pr_notice("Warning: DMI blacklist says broken, but acpi XSDT 
forced\n");
++  }
++  return 0;
++}
++
+ static int __init dmi_disable_acpi(const struct dmi_system_id *d)
+ {
+   if (!acpi_force) {
+@@ -1463,6 +1474,19 @@ static 

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

2022-03-23 Thread Mike Pagano
commit: ea19c50ab950fe674bee1c9bbb0d505f23fc57e6
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Mar 23 11:56:48 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Mar 23 11:56:48 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=ea19c50a

Linux patch 5.4.187

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

 _README  |   4 +
 1186_linux-5.4.187.patch | 511 +++
 2 files changed, 515 insertions(+)

diff --git a/_README b/_README
index 0b1cb624..4c62caea 100644
--- a/_README
+++ b/_README
@@ -787,6 +787,10 @@ Patch:  1185_linux-5.4.186.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.186
 
+Patch:  1186_linux-5.4.187.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.187
+
 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/1186_linux-5.4.187.patch b/1186_linux-5.4.187.patch
new file mode 100644
index ..fdb460d4
--- /dev/null
+++ b/1186_linux-5.4.187.patch
@@ -0,0 +1,511 @@
+diff --git a/Makefile b/Makefile
+index f9054b4e8a123..d07421bc5c2fb 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 186
++SUBLEVEL = 187
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm64/include/asm/vectors.h 
b/arch/arm64/include/asm/vectors.h
+index f64613a96d530..bc9a2145f4194 100644
+--- a/arch/arm64/include/asm/vectors.h
 b/arch/arm64/include/asm/vectors.h
+@@ -56,14 +56,14 @@ enum arm64_bp_harden_el1_vectors {
+ DECLARE_PER_CPU_READ_MOSTLY(const char *, this_cpu_vector);
+ 
+ #ifndef CONFIG_UNMAP_KERNEL_AT_EL0
+-#define TRAMP_VALIAS  0
++#define TRAMP_VALIAS  0ul
+ #endif
+ 
+ static inline const char *
+ arm64_get_bp_hardening_vector(enum arm64_bp_harden_el1_vectors slot)
+ {
+   if (arm64_kernel_unmapped_at_el0())
+-  return (char *)TRAMP_VALIAS + SZ_2K * slot;
++  return (char *)(TRAMP_VALIAS + SZ_2K * slot);
+ 
+   WARN_ON_ONCE(slot == EL1_VECTOR_KPTI);
+ 
+diff --git a/drivers/atm/eni.c b/drivers/atm/eni.c
+index de52428b8833d..4816db0553ef8 100644
+--- a/drivers/atm/eni.c
 b/drivers/atm/eni.c
+@@ -1116,6 +1116,8 @@ DPRINTK("iovcnt = %d\n",skb_shinfo(skb)->nr_frags);
+   }
+   paddr = dma_map_single(_dev->pci_dev->dev,skb->data,skb->len,
+  DMA_TO_DEVICE);
++  if (dma_mapping_error(_dev->pci_dev->dev, paddr))
++  return enq_next;
+   ENI_PRV_PADDR(skb) = paddr;
+   /* prepare DMA queue entries */
+   j = 0;
+diff --git a/drivers/crypto/qcom-rng.c b/drivers/crypto/qcom-rng.c
+index 4730f84b646de..3a633a0c40fdf 100644
+--- a/drivers/crypto/qcom-rng.c
 b/drivers/crypto/qcom-rng.c
+@@ -7,6 +7,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 
+@@ -42,16 +43,19 @@ static int qcom_rng_read(struct qcom_rng *rng, u8 *data, 
unsigned int max)
+ {
+   unsigned int currsize = 0;
+   u32 val;
++  int ret;
+ 
+   /* read random data from hardware */
+   do {
+-  val = readl_relaxed(rng->base + PRNG_STATUS);
+-  if (!(val & PRNG_STATUS_DATA_AVAIL))
+-  break;
++  ret = readl_poll_timeout(rng->base + PRNG_STATUS, val,
++   val & PRNG_STATUS_DATA_AVAIL,
++   200, 1);
++  if (ret)
++  return ret;
+ 
+   val = readl_relaxed(rng->base + PRNG_DATA_OUT);
+   if (!val)
+-  break;
++  return -EINVAL;
+ 
+   if ((max - currsize) >= WORD_SZ) {
+   memcpy(data, , WORD_SZ);
+@@ -60,11 +64,10 @@ static int qcom_rng_read(struct qcom_rng *rng, u8 *data, 
unsigned int max)
+   } else {
+   /* copy only remaining bytes */
+   memcpy(data, , max - currsize);
+-  break;
+   }
+   } while (currsize < max);
+ 
+-  return currsize;
++  return 0;
+ }
+ 
+ static int qcom_rng_generate(struct crypto_rng *tfm,
+@@ -86,7 +89,7 @@ static int qcom_rng_generate(struct crypto_rng *tfm,
+   mutex_unlock(>lock);
+   clk_disable_unprepare(rng->clk);
+ 
+-  return 0;
++  return ret;
+ }
+ 
+ static int qcom_rng_seed(struct crypto_rng *tfm, const u8 *seed,
+diff --git a/drivers/firmware/efi/apple-properties.c 
b/drivers/firmware/efi/apple-properties.c
+index 0e206c9e0d7ae..7ad2d85d7270b 100644
+--- a/drivers/firmware/efi/apple-properties.c
 b/drivers/firmware/efi/apple-properties.c
+@@ -23,7 +23,7 @@ static bool dump_properties __initdata;
+ static int __init dump_properties_enable(char *arg)
+ {
+   dump_properties = true;
+-  return 0;
++  return 1;
+ }
+ 
+ 

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

2022-03-19 Thread Mike Pagano
commit: 78898c00aeb0423eb7e3a2474898df45d04d8474
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Mar 19 13:21:06 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Mar 19 13:21:06 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=78898c00

Linux patch 5.4.186

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

 _README  |4 +
 1185_linux-5.4.186.patch | 2261 ++
 2 files changed, 2265 insertions(+)

diff --git a/_README b/_README
index 65389f5e..0b1cb624 100644
--- a/_README
+++ b/_README
@@ -783,6 +783,10 @@ Patch:  1184_linux-5.4.185.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.185
 
+Patch:  1185_linux-5.4.186.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.186
+
 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/1185_linux-5.4.186.patch b/1185_linux-5.4.186.patch
new file mode 100644
index ..ead390ff
--- /dev/null
+++ b/1185_linux-5.4.186.patch
@@ -0,0 +1,2261 @@
+diff --git a/Makefile b/Makefile
+index bd3bdf86b992e..f9054b4e8a123 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 185
++SUBLEVEL = 186
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm/boot/dts/rk322x.dtsi b/arch/arm/boot/dts/rk322x.dtsi
+index 140e22d74dcfb..d393bb481e747 100644
+--- a/arch/arm/boot/dts/rk322x.dtsi
 b/arch/arm/boot/dts/rk322x.dtsi
+@@ -635,8 +635,8 @@
+   interrupts = ;
+   assigned-clocks = < SCLK_HDMI_PHY>;
+   assigned-clock-parents = <_phy>;
+-  clocks = < SCLK_HDMI_HDCP>, < PCLK_HDMI_CTRL>, < 
SCLK_HDMI_CEC>;
+-  clock-names = "isfr", "iahb", "cec";
++  clocks = < PCLK_HDMI_CTRL>, < SCLK_HDMI_HDCP>, < 
SCLK_HDMI_CEC>;
++  clock-names = "iahb", "isfr", "cec";
+   pinctrl-names = "default";
+   pinctrl-0 = <_xfer _hpd _cec>;
+   resets = < SRST_HDMI_P>;
+diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi
+index 658ceb96d8bd1..7dcafd0833ba8 100644
+--- a/arch/arm/boot/dts/rk3288.dtsi
 b/arch/arm/boot/dts/rk3288.dtsi
+@@ -975,7 +975,7 @@
+   status = "disabled";
+   };
+ 
+-  crypto: cypto-controller@ff8a {
++  crypto: crypto@ff8a {
+   compatible = "rockchip,rk3288-crypto";
+   reg = <0x0 0xff8a 0x0 0x4000>;
+   interrupts = ;
+diff --git a/arch/arm/include/asm/kvm_host.h b/arch/arm/include/asm/kvm_host.h
+index 32564b017ba06..d8ac89879327d 100644
+--- a/arch/arm/include/asm/kvm_host.h
 b/arch/arm/include/asm/kvm_host.h
+@@ -15,6 +15,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ #include 
+ 
+ #define __KVM_HAVE_ARCH_INTC_INITIALIZED
+@@ -424,4 +425,10 @@ static inline bool kvm_arm_vcpu_is_finalized(struct 
kvm_vcpu *vcpu)
+ 
+ #define kvm_arm_vcpu_loaded(vcpu) (false)
+ 
++static inline int kvm_arm_get_spectre_bhb_state(void)
++{
++  /* 32bit guests don't need firmware for this */
++  return SPECTRE_VULNERABLE; /* aka SMCCC_RET_NOT_SUPPORTED */
++}
++
+ #endif /* __ARM_KVM_HOST_H__ */
+diff --git a/arch/arm/include/uapi/asm/kvm.h b/arch/arm/include/uapi/asm/kvm.h
+index 2769360f195ca..89b8e70068a13 100644
+--- a/arch/arm/include/uapi/asm/kvm.h
 b/arch/arm/include/uapi/asm/kvm.h
+@@ -227,6 +227,12 @@ struct kvm_vcpu_events {
+ #define KVM_REG_ARM_SMCCC_ARCH_WORKAROUND_2_NOT_REQUIRED  3
+ #define KVM_REG_ARM_SMCCC_ARCH_WORKAROUND_2_ENABLED   (1U << 4)
+ 
++#define KVM_REG_ARM_SMCCC_ARCH_WORKAROUND_3   KVM_REG_ARM_FW_REG(3)
++  /* Higher values mean better protection. */
++#define KVM_REG_ARM_SMCCC_ARCH_WORKAROUND_3_NOT_AVAIL 0
++#define KVM_REG_ARM_SMCCC_ARCH_WORKAROUND_3_AVAIL 1
++#define KVM_REG_ARM_SMCCC_ARCH_WORKAROUND_3_NOT_REQUIRED  2
++
+ /* Device Control API: ARM VGIC */
+ #define KVM_DEV_ARM_VGIC_GRP_ADDR 0
+ #define KVM_DEV_ARM_VGIC_GRP_DIST_REGS1
+diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig
+index 9c8ea59398658..a1a828ca188cf 100644
+--- a/arch/arm64/Kconfig
 b/arch/arm64/Kconfig
+@@ -1139,6 +1139,15 @@ config ARM64_SSBD
+ 
+ If unsure, say Y.
+ 
++config MITIGATE_SPECTRE_BRANCH_HISTORY
++  bool "Mitigate Spectre style attacks against branch history" if EXPERT
++  default y
++  help
++Speculation attacks against some high-performance processors can
++make use of branch history to influence future speculation.
++When taking an exception from user-space, a sequence of branches
++or a firmware call overwrites the branch history.
++
+ config RODATA_FULL_DEFAULT_ENABLED
+   bool "Apply r/o permissions of VM areas also to their linear aliases"
+   default y
+diff --git 

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

2022-03-16 Thread Mike Pagano
commit: 9e6cc3524305d869d5dcc420766da90c7031dd47
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Mar 16 13:31:02 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Mar 16 13:31:02 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=9e6cc352

Linux patch 5.4.185

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

 _README  |4 +
 1184_linux-5.4.185.patch | 1364 ++
 2 files changed, 1368 insertions(+)

diff --git a/_README b/_README
index fd6eed23..65389f5e 100644
--- a/_README
+++ b/_README
@@ -779,6 +779,10 @@ Patch:  1183_linux-5.4.184.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.184
 
+Patch:  1184_linux-5.4.185.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.185
+
 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/1184_linux-5.4.185.patch b/1184_linux-5.4.185.patch
new file mode 100644
index ..ee7901f9
--- /dev/null
+++ b/1184_linux-5.4.185.patch
@@ -0,0 +1,1364 @@
+diff --git a/Makefile b/Makefile
+index e914e1a8a7d2c..bd3bdf86b992e 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 184
++SUBLEVEL = 185
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm/boot/dts/aspeed-g6-pinctrl.dtsi 
b/arch/arm/boot/dts/aspeed-g6-pinctrl.dtsi
+index 996e006e06c25..f310f4d3bcc7c 100644
+--- a/arch/arm/boot/dts/aspeed-g6-pinctrl.dtsi
 b/arch/arm/boot/dts/aspeed-g6-pinctrl.dtsi
+@@ -118,7 +118,7 @@
+   };
+ 
+   pinctrl_fwqspid_default: fwqspid_default {
+-  function = "FWQSPID";
++  function = "FWSPID";
+   groups = "FWQSPID";
+   };
+ 
+diff --git a/arch/arm/include/asm/spectre.h b/arch/arm/include/asm/spectre.h
+index d1fa5607d3aa3..85f9e538fb325 100644
+--- a/arch/arm/include/asm/spectre.h
 b/arch/arm/include/asm/spectre.h
+@@ -25,7 +25,13 @@ enum {
+   SPECTRE_V2_METHOD_LOOP8 = BIT(__SPECTRE_V2_METHOD_LOOP8),
+ };
+ 
++#ifdef CONFIG_GENERIC_CPU_VULNERABILITIES
+ void spectre_v2_update_state(unsigned int state, unsigned int methods);
++#else
++static inline void spectre_v2_update_state(unsigned int state,
++ unsigned int methods)
++{}
++#endif
+ 
+ int spectre_bhb_update_vectors(unsigned int method);
+ 
+diff --git a/arch/arm/kernel/entry-armv.S b/arch/arm/kernel/entry-armv.S
+index 94d25425b7bce..3d65fa56a0e5d 100644
+--- a/arch/arm/kernel/entry-armv.S
 b/arch/arm/kernel/entry-armv.S
+@@ -1043,9 +1043,9 @@ vector_bhb_loop8_\name:
+ 
+   @ bhb workaround
+   mov r0, #8
+-1:b   . + 4
++3:b   . + 4
+   subsr0, r0, #1
+-  bne 1b
++  bne 3b
+   dsb
+   isb
+   b   2b
+diff --git a/arch/arm64/boot/dts/marvell/armada-3720-turris-mox.dts 
b/arch/arm64/boot/dts/marvell/armada-3720-turris-mox.dts
+index 16e73597bb78c..2e8239d489f82 100644
+--- a/arch/arm64/boot/dts/marvell/armada-3720-turris-mox.dts
 b/arch/arm64/boot/dts/marvell/armada-3720-turris-mox.dts
+@@ -18,6 +18,7 @@
+ 
+   aliases {
+   spi0 = 
++  ethernet0 = 
+   ethernet1 = 
+   };
+ 
+@@ -137,7 +138,9 @@
+   /*
+* U-Boot port for Turris Mox has a bug which always expects that 
"ranges" DT property
+* contains exactly 2 ranges with 3 (child) address cells, 2 (parent) 
address cells and
+-   * 2 size cells and also expects that the second range starts at 16 MB 
offset. If these
++   * 2 size cells and also expects that the second range starts at 16 MB 
offset. Also it
++   * expects that first range uses same address for PCI (child) and CPU 
(parent) cells (so
++   * no remapping) and that this address is the lowest from all specified 
ranges. If these
+* conditions are not met then U-Boot crashes during loading kernel DTB 
file. PCIe address
+* space is 128 MB long, so the best split between MEM and IO is to use 
fixed 16 MB window
+* for IO and the rest 112 MB (64+32+16) for MEM, despite that maximal 
IO size is just 64 kB.
+@@ -146,6 +149,9 @@
+* 
https://source.denx.de/u-boot/u-boot/-/commit/cb2ddb291ee6fcbddd6d8f4ff49089dfe580f5d7
+* 
https://source.denx.de/u-boot/u-boot/-/commit/c64ac3b3185aeb3846297ad7391fc6df8ecd73bf
+* 
https://source.denx.de/u-boot/u-boot/-/commit/4a82fca8e330157081fc132a591ebd99ba02ee33
++   * Bug related to requirement of same child and parent addresses for 
first range is fixed
++   * in U-Boot version 2022.04 by following commit:
++   * 
https://source.denx.de/u-boot/u-boot/-/commit/1fd54253bca7d43d046bba4853fe5fafd034bc17
+*/
+   #address-cells = <3>;
+   #size-cells = <2>;
+diff --git a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi 

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

2022-03-11 Thread Mike Pagano
commit: 9055bcb98e8063e31d9c2d80d04a504dce6b89ed
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Mar 11 10:55:22 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Fri Mar 11 10:55:22 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=9055bcb9

Linux patch 5.4.184

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

 _README  |4 +
 1183_linux-5.4.184.patch |  ++
 2 files changed, 2226 insertions(+)

diff --git a/_README b/_README
index 204a62f9..fd6eed23 100644
--- a/_README
+++ b/_README
@@ -775,6 +775,10 @@ Patch:  1182_linux-5.4.183.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.183
 
+Patch:  1183_linux-5.4.184.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.184
+
 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/1183_linux-5.4.184.patch b/1183_linux-5.4.184.patch
new file mode 100644
index ..d5285017
--- /dev/null
+++ b/1183_linux-5.4.184.patch
@@ -0,0 +1, @@
+diff --git a/Documentation/admin-guide/hw-vuln/spectre.rst 
b/Documentation/admin-guide/hw-vuln/spectre.rst
+index 985181dba0bac..6bd97cd50d625 100644
+--- a/Documentation/admin-guide/hw-vuln/spectre.rst
 b/Documentation/admin-guide/hw-vuln/spectre.rst
+@@ -60,8 +60,8 @@ privileged data touched during the speculative execution.
+ Spectre variant 1 attacks take advantage of speculative execution of
+ conditional branches, while Spectre variant 2 attacks use speculative
+ execution of indirect branches to leak privileged memory.
+-See :ref:`[1] ` :ref:`[5] ` :ref:`[7] `
+-:ref:`[10] ` :ref:`[11] `.
++See :ref:`[1] ` :ref:`[5] ` :ref:`[6] `
++:ref:`[7] ` :ref:`[10] ` :ref:`[11] `.
+ 
+ Spectre variant 1 (Bounds Check Bypass)
+ ---
+@@ -131,6 +131,19 @@ steer its indirect branch speculations to gadget code, 
and measure the
+ speculative execution's side effects left in level 1 cache to infer the
+ victim's data.
+ 
++Yet another variant 2 attack vector is for the attacker to poison the
++Branch History Buffer (BHB) to speculatively steer an indirect branch
++to a specific Branch Target Buffer (BTB) entry, even if the entry isn't
++associated with the source address of the indirect branch. Specifically,
++the BHB might be shared across privilege levels even in the presence of
++Enhanced IBRS.
++
++Currently the only known real-world BHB attack vector is via
++unprivileged eBPF. Therefore, it's highly recommended to not enable
++unprivileged eBPF, especially when eIBRS is used (without retpolines).
++For a full mitigation against BHB attacks, it's recommended to use
++retpolines (or eIBRS combined with retpolines).
++
+ Attack scenarios
+ 
+ 
+@@ -364,13 +377,15 @@ The possible values in this file are:
+ 
+   - Kernel status:
+ 
+-    =
+-  'Not affected'The processor is not vulnerable
+-  'Vulnerable'  Vulnerable, no mitigation
+-  'Mitigation: Full generic retpoline'  Software-focused mitigation
+-  'Mitigation: Full AMD retpoline'  AMD-specific software mitigation
+-  'Mitigation: Enhanced IBRS'   Hardware-focused mitigation
+-    =
++    =
++  'Not affected'The processor is not vulnerable
++  'Mitigation: None'Vulnerable, no mitigation
++  'Mitigation: Retpolines'  Use Retpoline thunks
++  'Mitigation: LFENCE'  Use LFENCE instructions
++  'Mitigation: Enhanced IBRS'   Hardware-focused mitigation
++  'Mitigation: Enhanced IBRS + Retpolines'  Hardware-focused + Retpolines
++  'Mitigation: Enhanced IBRS + LFENCE'  Hardware-focused + LFENCE
++    =
+ 
+   - Firmware status: Show if Indirect Branch Restricted Speculation (IBRS) is
+ used to protect against Spectre variant 2 attacks when calling firmware 
(x86 only).
+@@ -584,12 +599,13 @@ kernel command line.
+ 
+   Specific mitigations can also be selected manually:
+ 
+-  retpoline
+-  replace indirect branches
+-  retpoline,generic
+-  google's original retpoline
+-  retpoline,amd
+-  AMD-specific minimal thunk
++retpoline   auto pick between generic,lfence
++retpoline,generic   Retpolines
++retpoline,lfenceLFENCE; indirect branch
++retpoline,amd   alias for retpoline,lfence
++

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

2022-03-08 Thread Mike Pagano
commit: 0ccf399dccf6e0af8de25e778b66b8de33e1bf23
Author: Mike Pagano  gentoo  org>
AuthorDate: Tue Mar  8 18:31:32 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Tue Mar  8 18:31:32 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=0ccf399d

Linux patch 5.4.183

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

 _README  |4 +
 1182_linux-5.4.183.patch | 1981 ++
 2 files changed, 1985 insertions(+)

diff --git a/_README b/_README
index 8974b331..204a62f9 100644
--- a/_README
+++ b/_README
@@ -771,6 +771,10 @@ Patch:  1181_linux-5.4.182.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.182
 
+Patch:  1182_linux-5.4.183.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.183
+
 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/1182_linux-5.4.183.patch b/1182_linux-5.4.183.patch
new file mode 100644
index ..e90cad92
--- /dev/null
+++ b/1182_linux-5.4.183.patch
@@ -0,0 +1,1981 @@
+diff --git a/Makefile b/Makefile
+index 8750309fc42ac..a94b5ea499e13 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 182
++SUBLEVEL = 183
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm/kernel/kgdb.c b/arch/arm/kernel/kgdb.c
+index 6a95b92966406..183a6f2f165ad 100644
+--- a/arch/arm/kernel/kgdb.c
 b/arch/arm/kernel/kgdb.c
+@@ -154,22 +154,38 @@ static int kgdb_compiled_brk_fn(struct pt_regs *regs, 
unsigned int instr)
+   return 0;
+ }
+ 
+-static struct undef_hook kgdb_brkpt_hook = {
++static struct undef_hook kgdb_brkpt_arm_hook = {
+   .instr_mask = 0x,
+   .instr_val  = KGDB_BREAKINST,
+-  .cpsr_mask  = MODE_MASK,
++  .cpsr_mask  = PSR_T_BIT | MODE_MASK,
+   .cpsr_val   = SVC_MODE,
+   .fn = kgdb_brk_fn
+ };
+ 
+-static struct undef_hook kgdb_compiled_brkpt_hook = {
++static struct undef_hook kgdb_brkpt_thumb_hook = {
++  .instr_mask = 0x,
++  .instr_val  = KGDB_BREAKINST & 0x,
++  .cpsr_mask  = PSR_T_BIT | MODE_MASK,
++  .cpsr_val   = PSR_T_BIT | SVC_MODE,
++  .fn = kgdb_brk_fn
++};
++
++static struct undef_hook kgdb_compiled_brkpt_arm_hook = {
+   .instr_mask = 0x,
+   .instr_val  = KGDB_COMPILED_BREAK,
+-  .cpsr_mask  = MODE_MASK,
++  .cpsr_mask  = PSR_T_BIT | MODE_MASK,
+   .cpsr_val   = SVC_MODE,
+   .fn = kgdb_compiled_brk_fn
+ };
+ 
++static struct undef_hook kgdb_compiled_brkpt_thumb_hook = {
++  .instr_mask = 0x,
++  .instr_val  = KGDB_COMPILED_BREAK & 0x,
++  .cpsr_mask  = PSR_T_BIT | MODE_MASK,
++  .cpsr_val   = PSR_T_BIT | SVC_MODE,
++  .fn = kgdb_compiled_brk_fn
++};
++
+ static int __kgdb_notify(struct die_args *args, unsigned long cmd)
+ {
+   struct pt_regs *regs = args->regs;
+@@ -210,8 +226,10 @@ int kgdb_arch_init(void)
+   if (ret != 0)
+   return ret;
+ 
+-  register_undef_hook(_brkpt_hook);
+-  register_undef_hook(_compiled_brkpt_hook);
++  register_undef_hook(_brkpt_arm_hook);
++  register_undef_hook(_brkpt_thumb_hook);
++  register_undef_hook(_compiled_brkpt_arm_hook);
++  register_undef_hook(_compiled_brkpt_thumb_hook);
+ 
+   return 0;
+ }
+@@ -224,8 +242,10 @@ int kgdb_arch_init(void)
+  */
+ void kgdb_arch_exit(void)
+ {
+-  unregister_undef_hook(_brkpt_hook);
+-  unregister_undef_hook(_compiled_brkpt_hook);
++  unregister_undef_hook(_brkpt_arm_hook);
++  unregister_undef_hook(_brkpt_thumb_hook);
++  unregister_undef_hook(_compiled_brkpt_arm_hook);
++  unregister_undef_hook(_compiled_brkpt_thumb_hook);
+   unregister_die_notifier(_notifier);
+ }
+ 
+diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c
+index 538d5da741b09..6e7f841f67ff1 100644
+--- a/arch/arm/mm/mmu.c
 b/arch/arm/mm/mmu.c
+@@ -229,12 +229,14 @@ early_param("ecc", early_ecc);
+ static int __init early_cachepolicy(char *p)
+ {
+   pr_warn("cachepolicy kernel parameter not supported without cp15\n");
++  return 0;
+ }
+ early_param("cachepolicy", early_cachepolicy);
+ 
+ static int __init noalign_setup(char *__unused)
+ {
+   pr_warn("noalign kernel parameter not supported without cp15\n");
++  return 1;
+ }
+ __setup("noalign", noalign_setup);
+ 
+diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi 
b/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi
+index dd5624975c9b4..b7e7bb3517c03 100644
+--- a/arch/arm64/boot/dts/rockchip/rk3399-gru.dtsi
 

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

2022-03-02 Thread Mike Pagano
commit: ab81be9d1323691b1f9aae81aad30ee63c6c4fdf
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Mar  2 13:07:01 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Mar  2 13:07:01 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=ab81be9d

Linux patch 5.4.182

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

 _README  |4 +
 1181_linux-5.4.182.patch | 2110 ++
 2 files changed, 2114 insertions(+)

diff --git a/_README b/_README
index 7ddf9a06..8974b331 100644
--- a/_README
+++ b/_README
@@ -767,6 +767,10 @@ Patch:  1180_linux-5.4.181.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.181
 
+Patch:  1181_linux-5.4.182.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.182
+
 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/1181_linux-5.4.182.patch b/1181_linux-5.4.182.patch
new file mode 100644
index ..286bae77
--- /dev/null
+++ b/1181_linux-5.4.182.patch
@@ -0,0 +1,2110 @@
+diff --git a/Makefile b/Makefile
+index afe2420bb3de0..8750309fc42ac 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 181
++SUBLEVEL = 182
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/parisc/kernel/unaligned.c b/arch/parisc/kernel/unaligned.c
+index 237d20dd5622d..286cec4d86d7b 100644
+--- a/arch/parisc/kernel/unaligned.c
 b/arch/parisc/kernel/unaligned.c
+@@ -340,7 +340,7 @@ static int emulate_stw(struct pt_regs *regs, int frreg, 
int flop)
+   : "r" (val), "r" (regs->ior), "r" (regs->isr)
+   : "r19", "r20", "r21", "r22", "r1", FIXUP_BRANCH_CLOBBER );
+ 
+-  return 0;
++  return ret;
+ }
+ static int emulate_std(struct pt_regs *regs, int frreg, int flop)
+ {
+@@ -397,7 +397,7 @@ static int emulate_std(struct pt_regs *regs, int frreg, 
int flop)
+   __asm__ __volatile__ (
+ " mtsp%4, %%sr1\n"
+ " zdep%2, 29, 2, %%r19\n"
+-" dep %%r0, 31, 2, %2\n"
++" dep %%r0, 31, 2, %3\n"
+ " mtsar   %%r19\n"
+ " zvdepi  -2, 32, %%r19\n"
+ "1:   ldw 0(%%sr1,%3),%%r20\n"
+@@ -409,7 +409,7 @@ static int emulate_std(struct pt_regs *regs, int frreg, 
int flop)
+ " andcm   %%r21, %%r19, %%r21\n"
+ " or  %1, %%r20, %1\n"
+ " or  %2, %%r21, %2\n"
+-"3:   stw %1,0(%%sr1,%1)\n"
++"3:   stw %1,0(%%sr1,%3)\n"
+ "4:   stw %%r1,4(%%sr1,%3)\n"
+ "5:   stw %2,8(%%sr1,%3)\n"
+ " copy%%r0, %0\n"
+@@ -596,7 +596,6 @@ void handle_unaligned(struct pt_regs *regs)
+   ret = ERR_NOTHANDLED;   /* "undefined", but lets kill them. */
+   break;
+   }
+-#ifdef CONFIG_PA20
+   switch (regs->iir & OPCODE2_MASK)
+   {
+   case OPCODE_FLDD_L:
+@@ -607,22 +606,23 @@ void handle_unaligned(struct pt_regs *regs)
+   flop=1;
+   ret = emulate_std(regs, R2(regs->iir),1);
+   break;
++#ifdef CONFIG_PA20
+   case OPCODE_LDD_L:
+   ret = emulate_ldd(regs, R2(regs->iir),0);
+   break;
+   case OPCODE_STD_L:
+   ret = emulate_std(regs, R2(regs->iir),0);
+   break;
+-  }
+ #endif
++  }
+   switch (regs->iir & OPCODE3_MASK)
+   {
+   case OPCODE_FLDW_L:
+   flop=1;
+-  ret = emulate_ldw(regs, R2(regs->iir),0);
++  ret = emulate_ldw(regs, R2(regs->iir), 1);
+   break;
+   case OPCODE_LDW_M:
+-  ret = emulate_ldw(regs, R2(regs->iir),1);
++  ret = emulate_ldw(regs, R2(regs->iir), 0);
+   break;
+ 
+   case OPCODE_FSTW_L:
+diff --git a/arch/x86/include/asm/fpu/internal.h 
b/arch/x86/include/asm/fpu/internal.h
+index 03b3de491b5e6..5ed702e2c55f4 100644
+--- a/arch/x86/include/asm/fpu/internal.h
 b/arch/x86/include/asm/fpu/internal.h
+@@ -560,9 +560,11 @@ static inline void __fpregs_load_activate(void)
+  * The FPU context is only stored/restored for a user task and
+  * PF_KTHREAD is used to distinguish between kernel and user threads.
+  */
+-static inline void switch_fpu_prepare(struct fpu *old_fpu, int cpu)
++static inline void switch_fpu_prepare(struct task_struct *prev, int cpu)
+ {
+-  if (static_cpu_has(X86_FEATURE_FPU) && !(current->flags & PF_KTHREAD)) {
++  struct fpu *old_fpu = >thread.fpu;
++
++  if (static_cpu_has(X86_FEATURE_FPU) && !(prev->flags & PF_KTHREAD)) {
+   if (!copy_fpregs_to_fpstate(old_fpu))
+   old_fpu->last_cpu = -1;
+   else
+@@ -581,10 +583,11 @@ static inline void switch_fpu_prepare(struct fpu 
*old_fpu, int cpu)
+  * Load PKRU from the FPU context if available. Delay loading of the
+  * complete FPU state until the return to userland.
+  */
+-static inline void switch_fpu_finish(struct fpu 

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

2022-02-23 Thread Mike Pagano
commit: 3d7680c8b479e62dc905fdd532f8991b45ec5c37
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Feb 23 12:37:57 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Feb 23 12:37:57 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=3d7680c8

Linux patch 5.4.181

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

 _README  |4 +
 1180_linux-5.4.181.patch | 2733 ++
 2 files changed, 2737 insertions(+)

diff --git a/_README b/_README
index d666a174..7ddf9a06 100644
--- a/_README
+++ b/_README
@@ -763,6 +763,10 @@ Patch:  1179_linux-5.4.180.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.180
 
+Patch:  1180_linux-5.4.181.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.181
+
 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/1180_linux-5.4.181.patch b/1180_linux-5.4.181.patch
new file mode 100644
index ..9f5693ce
--- /dev/null
+++ b/1180_linux-5.4.181.patch
@@ -0,0 +1,2733 @@
+diff --git a/Makefile b/Makefile
+index 6eb6645647147..afe2420bb3de0 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 180
++SUBLEVEL = 181
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm/mach-omap2/display.c b/arch/arm/mach-omap2/display.c
+index 46012ca812f48..1bd64f6ba8cfe 100644
+--- a/arch/arm/mach-omap2/display.c
 b/arch/arm/mach-omap2/display.c
+@@ -263,9 +263,9 @@ static int __init omapdss_init_of(void)
+   }
+ 
+   r = of_platform_populate(node, NULL, NULL, >dev);
++  put_device(>dev);
+   if (r) {
+   pr_err("Unable to populate DSS submodule devices\n");
+-  put_device(>dev);
+   return r;
+   }
+ 
+diff --git a/arch/arm/mach-omap2/omap_hwmod.c 
b/arch/arm/mach-omap2/omap_hwmod.c
+index 6289b288d60a6..202b740adee0e 100644
+--- a/arch/arm/mach-omap2/omap_hwmod.c
 b/arch/arm/mach-omap2/omap_hwmod.c
+@@ -782,8 +782,10 @@ static int __init _init_clkctrl_providers(void)
+ 
+   for_each_matching_node(np, ti_clkctrl_match_table) {
+   ret = _setup_clkctrl_provider(np);
+-  if (ret)
++  if (ret) {
++  of_node_put(np);
+   break;
++  }
+   }
+ 
+   return ret;
+diff --git a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi 
b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi
+index 9533c85fb0a30..d2d255a988a81 100644
+--- a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi
 b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi
+@@ -76,6 +76,12 @@
+   no-map;
+   };
+ 
++  /* 32 MiB reserved for ARM Trusted Firmware (BL32) */
++  secmon_reserved_bl32: secmon@530 {
++  reg = <0x0 0x0530 0x0 0x200>;
++  no-map;
++  };
++
+   linux,cma {
+   compatible = "shared-dma-pool";
+   reusable;
+diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts 
b/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts
+index b8d9e92197ac8..c76bf498ee388 100644
+--- a/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts
 b/arch/arm64/boot/dts/amlogic/meson-g12a-sei510.dts
+@@ -157,14 +157,6 @@
+   regulator-always-on;
+   };
+ 
+-  reserved-memory {
+-  /* TEE Reserved Memory */
+-  bl32_reserved: bl32@500 {
+-  reg = <0x0 0x0530 0x0 0x200>;
+-  no-map;
+-  };
+-  };
+-
+   sdio_pwrseq: sdio-pwrseq {
+   compatible = "mmc-pwrseq-simple";
+   reset-gpios = < GPIOX_6 GPIO_ACTIVE_LOW>;
+diff --git a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi 
b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi
+index ce230d6ac35cd..ad7bc0eec6682 100644
+--- a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi
 b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi
+@@ -41,6 +41,12 @@
+   no-map;
+   };
+ 
++  /* 32 MiB reserved for ARM Trusted Firmware (BL32) */
++  secmon_reserved_bl32: secmon@530 {
++  reg = <0x0 0x0530 0x0 0x200>;
++  no-map;
++  };
++
+   linux,cma {
+   compatible = "shared-dma-pool";
+   reusable;
+diff --git a/arch/arm64/boot/dts/amlogic/meson-sm1-sei610.dts 
b/arch/arm64/boot/dts/amlogic/meson-sm1-sei610.dts
+index 29ac78ddc057e..85fb59060cdff 100644
+--- a/arch/arm64/boot/dts/amlogic/meson-sm1-sei610.dts
 b/arch/arm64/boot/dts/amlogic/meson-sm1-sei610.dts
+@@ -164,14 +164,6 @@
+   regulator-always-on;
+   };
+ 
+-  reserved-memory {
+-  /* 

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

2022-02-16 Thread Mike Pagano
commit: e772170dc45174120a3fb997bcca1b07bafdab38
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Feb 16 12:46:34 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Feb 16 12:46:34 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=e772170d

Linux patch 5.4.180

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

 _README  |4 +
 1179_linux-5.4.180.patch | 2075 ++
 2 files changed, 2079 insertions(+)

diff --git a/_README b/_README
index 82251825..d666a174 100644
--- a/_README
+++ b/_README
@@ -759,6 +759,10 @@ Patch:  1178_linux-5.4.179.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.179
 
+Patch:  1179_linux-5.4.180.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.180
+
 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/1179_linux-5.4.180.patch b/1179_linux-5.4.180.patch
new file mode 100644
index ..b597b234
--- /dev/null
+++ b/1179_linux-5.4.180.patch
@@ -0,0 +1,2075 @@
+diff --git a/Documentation/admin-guide/sysctl/kernel.rst 
b/Documentation/admin-guide/sysctl/kernel.rst
+index 032c7cd3cede0..7b477fa19534d 100644
+--- a/Documentation/admin-guide/sysctl/kernel.rst
 b/Documentation/admin-guide/sysctl/kernel.rst
+@@ -1125,6 +1125,27 @@ NMI switch that most IA32 servers have fires unknown 
NMI up, for
+ example.  If a system hangs up, try pressing the NMI switch.
+ 
+ 
++unprivileged_bpf_disabled:
++==
++
++Writing 1 to this entry will disable unprivileged calls to ``bpf()``;
++once disabled, calling ``bpf()`` without ``CAP_SYS_ADMIN`` will return
++``-EPERM``. Once set to 1, this can't be cleared from the running kernel
++anymore.
++
++Writing 2 to this entry will also disable unprivileged calls to ``bpf()``,
++however, an admin can still change this setting later on, if needed, by
++writing 0 or 1 to this entry.
++
++If ``BPF_UNPRIV_DEFAULT_OFF`` is enabled in the kernel config, then this
++entry will default to 2 instead of 0.
++
++= =
++0 Unprivileged calls to ``bpf()`` are enabled
++1 Unprivileged calls to ``bpf()`` are disabled without recovery
++2 Unprivileged calls to ``bpf()`` are disabled
++= =
++
+ watchdog:
+ =
+ 
+diff --git a/Makefile b/Makefile
+index 5688e17a44363..6eb6645647147 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 179
++SUBLEVEL = 180
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm/boot/dts/imx23-evk.dts b/arch/arm/boot/dts/imx23-evk.dts
+index 0b2701ca29212..858b8057e8540 100644
+--- a/arch/arm/boot/dts/imx23-evk.dts
 b/arch/arm/boot/dts/imx23-evk.dts
+@@ -79,7 +79,6 @@
+   MX23_PAD_LCD_RESET__GPIO_1_18
+   MX23_PAD_PWM3__GPIO_1_29
+   MX23_PAD_PWM4__GPIO_1_30
+-  
MX23_PAD_SSP1_DETECT__SSP1_DETECT
+   >;
+   fsl,drive-strength = ;
+   fsl,voltage = ;
+diff --git a/arch/arm/boot/dts/imx6qdl-udoo.dtsi 
b/arch/arm/boot/dts/imx6qdl-udoo.dtsi
+index 16672cbada287..6c8da3f037335 100644
+--- a/arch/arm/boot/dts/imx6qdl-udoo.dtsi
 b/arch/arm/boot/dts/imx6qdl-udoo.dtsi
+@@ -5,6 +5,8 @@
+  * Author: Fabio Estevam 
+  */
+ 
++#include 
++
+ / {
+   aliases {
+   backlight = 
+@@ -218,6 +220,7 @@
+   MX6QDL_PAD_SD3_DAT1__SD3_DATA1  0x17059
+   MX6QDL_PAD_SD3_DAT2__SD3_DATA2  0x17059
+   MX6QDL_PAD_SD3_DAT3__SD3_DATA3  0x17059
++  MX6QDL_PAD_SD3_DAT5__GPIO7_IO00 0x1b0b0
+   >;
+   };
+ 
+@@ -290,7 +293,7 @@
+  {
+   pinctrl-names = "default";
+   pinctrl-0 = <_usdhc3>;
+-  non-removable;
++  cd-gpios = < 0 GPIO_ACTIVE_LOW>;
+   status = "okay";
+ };
+ 
+diff --git a/arch/arm/boot/dts/meson.dtsi b/arch/arm/boot/dts/meson.dtsi
+index c4447f6c8b2cb..e141ce7484841 100644
+--- a/arch/arm/boot/dts/meson.dtsi
 b/arch/arm/boot/dts/meson.dtsi
+@@ -49,14 +49,14 @@
+   };
+ 
+   uart_A: serial@84c0 {
+-  compatible = "amlogic,meson6-uart", 
"amlogic,meson-uart";
++  compatible = "amlogic,meson6-uart";
+   reg = <0x84c0 0x18>;
+   interrupts = ;
+   status = "disabled";
+   };
+ 
+  

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

2022-02-11 Thread Mike Pagano
commit: fd210028661ffdbe3b2e3a67064936ca8ef484ca
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Feb 11 12:36:09 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Fri Feb 11 12:36:09 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=fd210028

Linux patch 5.4.179

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

 _README  |  4 +++
 1178_linux-5.4.179.patch | 79 
 2 files changed, 83 insertions(+)

diff --git a/_README b/_README
index 0633c4d5..82251825 100644
--- a/_README
+++ b/_README
@@ -755,6 +755,10 @@ Patch:  1177_linux-5.4.178.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.178
 
+Patch:  1178_linux-5.4.179.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.179
+
 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/1178_linux-5.4.179.patch b/1178_linux-5.4.179.patch
new file mode 100644
index ..78764c5d
--- /dev/null
+++ b/1178_linux-5.4.179.patch
@@ -0,0 +1,79 @@
+diff --git a/Makefile b/Makefile
+index 6d33284664fef..5688e17a44363 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 178
++SUBLEVEL = 179
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/drivers/mmc/host/moxart-mmc.c b/drivers/mmc/host/moxart-mmc.c
+index 5553a5643f405..5c81dc7371db7 100644
+--- a/drivers/mmc/host/moxart-mmc.c
 b/drivers/mmc/host/moxart-mmc.c
+@@ -696,12 +696,12 @@ static int moxart_remove(struct platform_device *pdev)
+   if (!IS_ERR(host->dma_chan_rx))
+   dma_release_channel(host->dma_chan_rx);
+   mmc_remove_host(mmc);
+-  mmc_free_host(mmc);
+ 
+   writel(0, host->base + REG_INTERRUPT_MASK);
+   writel(0, host->base + REG_POWER_CONTROL);
+   writel(readl(host->base + REG_CLOCK_CONTROL) | CLK_OFF,
+  host->base + REG_CLOCK_CONTROL);
++  mmc_free_host(mmc);
+   }
+   return 0;
+ }
+diff --git a/net/tipc/link.c b/net/tipc/link.c
+index f25010261a9e0..8f2ee71c63c6d 100644
+--- a/net/tipc/link.c
 b/net/tipc/link.c
+@@ -1953,15 +1953,18 @@ static int tipc_link_proto_rcv(struct tipc_link *l, 
struct sk_buff *skb,
+   u16 peers_tol = msg_link_tolerance(hdr);
+   u16 peers_prio = msg_linkprio(hdr);
+   u16 rcv_nxt = l->rcv_nxt;
+-  u16 dlen = msg_data_sz(hdr);
++  u32 dlen = msg_data_sz(hdr), glen = 0;
+   int mtyp = msg_type(hdr);
+   bool reply = msg_probe(hdr);
+-  u16 glen = 0;
+   void *data;
+   char *if_name;
+   int rc = 0;
+ 
+   trace_tipc_proto_rcv(skb, false, l->name);
++
++  if (dlen > U16_MAX)
++  goto exit;
++
+   if (tipc_link_is_blocked(l) || !xmitq)
+   goto exit;
+ 
+@@ -2063,7 +2066,8 @@ static int tipc_link_proto_rcv(struct tipc_link *l, 
struct sk_buff *skb,
+   if (glen != tipc_gap_ack_blks_sz(ga->gack_cnt))
+   ga = NULL;
+   }
+-
++  if(glen > dlen)
++  break;
+   tipc_mon_rcv(l->net, data + glen, dlen - glen, l->addr,
+>mon_state, l->bearer_id);
+ 
+diff --git a/net/tipc/monitor.c b/net/tipc/monitor.c
+index 58708b4c7719f..e7155a7743001 100644
+--- a/net/tipc/monitor.c
 b/net/tipc/monitor.c
+@@ -457,6 +457,8 @@ void tipc_mon_rcv(struct net *net, void *data, u16 dlen, 
u32 addr,
+   state->probing = false;
+ 
+   /* Sanity check received domain record */
++  if (new_member_cnt > MAX_MON_DOMAIN)
++  return;
+   if (dlen < dom_rec_len(arrv_dom, 0))
+   return;
+   if (dlen != dom_rec_len(arrv_dom, new_member_cnt))



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

2022-02-08 Thread Mike Pagano
commit: 7b102a4aca0c94e96a635cb87635fd14908b1aa3
Author: Mike Pagano  gentoo  org>
AuthorDate: Tue Feb  8 17:55:20 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Tue Feb  8 17:55:20 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=7b102a4a

Linuxpatch 5.4.178

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

 _README  |4 +
 1177_linux-5.4.178.patch | 1218 ++
 2 files changed, 1222 insertions(+)

diff --git a/_README b/_README
index d82773a6..0633c4d5 100644
--- a/_README
+++ b/_README
@@ -751,6 +751,10 @@ Patch:  1176_linux-5.4.177.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.177
 
+Patch:  1177_linux-5.4.178.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.178
+
 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/1177_linux-5.4.178.patch b/1177_linux-5.4.178.patch
new file mode 100644
index ..078c0523
--- /dev/null
+++ b/1177_linux-5.4.178.patch
@@ -0,0 +1,1218 @@
+diff --git a/Makefile b/Makefile
+index 324939b64d7b7..6d33284664fef 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 177
++SUBLEVEL = 178
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/block/bio-integrity.c b/block/bio-integrity.c
+index c9dc2b17ce251..ec295be93ca0d 100644
+--- a/block/bio-integrity.c
 b/block/bio-integrity.c
+@@ -380,7 +380,7 @@ void bio_integrity_advance(struct bio *bio, unsigned int 
bytes_done)
+   struct blk_integrity *bi = blk_get_integrity(bio->bi_disk);
+   unsigned bytes = bio_integrity_bytes(bi, bytes_done >> 9);
+ 
+-  bip->bip_iter.bi_sector += bytes_done >> 9;
++  bip->bip_iter.bi_sector += bio_integrity_intervals(bi, bytes_done >> 9);
+   bvec_iter_advance(bip->bip_vec, >bip_iter, bytes);
+ }
+ 
+diff --git a/drivers/edac/altera_edac.c b/drivers/edac/altera_edac.c
+index 0be3d1b17f034..a09a5041e74c8 100644
+--- a/drivers/edac/altera_edac.c
 b/drivers/edac/altera_edac.c
+@@ -349,7 +349,7 @@ static int altr_sdram_probe(struct platform_device *pdev)
+   if (irq < 0) {
+   edac_printk(KERN_ERR, EDAC_MC,
+   "No irq %d in DT\n", irq);
+-  return -ENODEV;
++  return irq;
+   }
+ 
+   /* Arria10 has a 2nd IRQ */
+diff --git a/drivers/edac/xgene_edac.c b/drivers/edac/xgene_edac.c
+index e4a1032ba0b58..cd9926e518967 100644
+--- a/drivers/edac/xgene_edac.c
 b/drivers/edac/xgene_edac.c
+@@ -1922,7 +1922,7 @@ static int xgene_edac_probe(struct platform_device *pdev)
+   irq = platform_get_irq(pdev, i);
+   if (irq < 0) {
+   dev_err(>dev, "No IRQ resource\n");
+-  rc = -EINVAL;
++  rc = irq;
+   goto out_err;
+   }
+   rc = devm_request_irq(>dev, irq,
+diff --git a/drivers/gpu/drm/i915/display/intel_overlay.c 
b/drivers/gpu/drm/i915/display/intel_overlay.c
+index 29edfc3437163..aeb7cb651fa4f 100644
+--- a/drivers/gpu/drm/i915/display/intel_overlay.c
 b/drivers/gpu/drm/i915/display/intel_overlay.c
+@@ -913,6 +913,9 @@ static int check_overlay_dst(struct intel_overlay *overlay,
+   const struct intel_crtc_state *pipe_config =
+   overlay->crtc->config;
+ 
++  if (rec->dst_height == 0 || rec->dst_width == 0)
++  return -EINVAL;
++
+   if (rec->dst_x < pipe_config->pipe_src_w &&
+   rec->dst_x + rec->dst_width <= pipe_config->pipe_src_w &&
+   rec->dst_y < pipe_config->pipe_src_h &&
+diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c 
b/drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c
+index f3c30b2a788e8..8bff14ae16b0e 100644
+--- a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c
 b/drivers/gpu/drm/nouveau/nvkm/subdev/bios/base.c
+@@ -38,7 +38,7 @@ nvbios_addr(struct nvkm_bios *bios, u32 *addr, u8 size)
+   *addr += bios->imaged_addr;
+   }
+ 
+-  if (unlikely(*addr + size >= bios->size)) {
++  if (unlikely(*addr + size > bios->size)) {
+   nvkm_error(>subdev, "OOB %d %08x %08x\n", size, p, *addr);
+   return false;
+   }
+diff --git a/drivers/infiniband/hw/mlx4/main.c 
b/drivers/infiniband/hw/mlx4/main.c
+index 48864269f042a..baa129a6c9127 100644
+--- a/drivers/infiniband/hw/mlx4/main.c
 b/drivers/infiniband/hw/mlx4/main.c
+@@ -3291,7 +3291,7 @@ static void mlx4_ib_event(struct mlx4_dev *dev, void 
*ibdev_ptr,
+   case MLX4_DEV_EVENT_PORT_MGMT_CHANGE:
+   ew = kmalloc(sizeof *ew, GFP_ATOMIC);
+   if (!ew)
+-  break;
++  return;
+ 
+   INIT_WORK(>work, 

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

2022-02-05 Thread Mike Pagano
commit: 11b7c95cbb05d5a5dd38478c10dfcac7b008d57a
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Feb  5 12:13:52 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Feb  5 12:13:52 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=11b7c95c

Linux patch 5.4.177

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

 _README  |   4 +
 1176_linux-5.4.177.patch | 468 +++
 2 files changed, 472 insertions(+)

diff --git a/_README b/_README
index 347c7e70..d82773a6 100644
--- a/_README
+++ b/_README
@@ -747,6 +747,10 @@ Patch:  1175_linux-5.4.176.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.176
 
+Patch:  1176_linux-5.4.177.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.177
+
 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/1176_linux-5.4.177.patch b/1176_linux-5.4.177.patch
new file mode 100644
index ..6bd43941
--- /dev/null
+++ b/1176_linux-5.4.177.patch
@@ -0,0 +1,468 @@
+diff --git a/Documentation/accounting/psi.rst 
b/Documentation/accounting/psi.rst
+index 62ce57401..28c0461ba2e1b 100644
+--- a/Documentation/accounting/psi.rst
 b/Documentation/accounting/psi.rst
+@@ -90,7 +90,8 @@ Triggers can be set on more than one psi metric and more 
than one trigger
+ for the same psi metric can be specified. However for each trigger a separate
+ file descriptor is required to be able to poll it separately from others,
+ therefore for each trigger a separate open() syscall should be made even
+-when opening the same psi interface file.
++when opening the same psi interface file. Write operations to a file 
descriptor
++with an already existing psi trigger will fail with EBUSY.
+ 
+ Monitors activate only when system enters stall state for the monitored
+ psi metric and deactivates upon exit from the stall state. While system is
+diff --git a/Makefile b/Makefile
+index b23aa51ada93e..324939b64d7b7 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 176
++SUBLEVEL = 177
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/drivers/net/ethernet/amd/xgbe/xgbe-drv.c 
b/drivers/net/ethernet/amd/xgbe/xgbe-drv.c
+index da8c2c4aca7ef..0442d7e1cd20b 100644
+--- a/drivers/net/ethernet/amd/xgbe/xgbe-drv.c
 b/drivers/net/ethernet/amd/xgbe/xgbe-drv.c
+@@ -721,7 +721,9 @@ static void xgbe_stop_timers(struct xgbe_prv_data *pdata)
+   if (!channel->tx_ring)
+   break;
+ 
++  /* Deactivate the Tx timer */
+   del_timer_sync(>tx_timer);
++  channel->tx_timer_active = 0;
+   }
+ }
+ 
+@@ -2765,6 +2767,14 @@ read_again:
+   buf2_len = xgbe_rx_buf2_len(rdata, packet, len);
+   len += buf2_len;
+ 
++  if (buf2_len > rdata->rx.buf.dma_len) {
++  /* Hardware inconsistency within the descriptors
++   * that has resulted in a length underflow.
++   */
++  error = 1;
++  goto skip_data;
++  }
++
+   if (!skb) {
+   skb = xgbe_create_skb(pdata, napi, rdata,
+ buf1_len);
+@@ -2794,8 +2804,10 @@ skip_data:
+   if (!last || context_next)
+   goto read_again;
+ 
+-  if (!skb)
++  if (!skb || error) {
++  dev_kfree_skb(skb);
+   goto next_packet;
++  }
+ 
+   /* Be sure we don't exceed the configured MTU */
+   max_len = netdev->mtu + ETH_HLEN;
+diff --git a/drivers/net/usb/ipheth.c b/drivers/net/usb/ipheth.c
+index 345576f1a7470..73ad78f47763c 100644
+--- a/drivers/net/usb/ipheth.c
 b/drivers/net/usb/ipheth.c
+@@ -121,7 +121,7 @@ static int ipheth_alloc_urbs(struct ipheth_device *iphone)
+   if (tx_buf == NULL)
+   goto free_rx_urb;
+ 
+-  rx_buf = usb_alloc_coherent(iphone->udev, IPHETH_BUF_SIZE,
++  rx_buf = usb_alloc_coherent(iphone->udev, IPHETH_BUF_SIZE + 
IPHETH_IP_ALIGN,
+   GFP_KERNEL, _urb->transfer_dma);
+   if (rx_buf == NULL)
+   goto free_tx_buf;
+@@ -146,7 +146,7 @@ error_nomem:
+ 
+ static void ipheth_free_urbs(struct ipheth_device *iphone)
+ {
+-  usb_free_coherent(iphone->udev, IPHETH_BUF_SIZE, iphone->rx_buf,
++  usb_free_coherent(iphone->udev, IPHETH_BUF_SIZE + IPHETH_IP_ALIGN, 
iphone->rx_buf,
+ iphone->rx_urb->transfer_dma);
+   usb_free_coherent(iphone->udev, IPHETH_BUF_SIZE, iphone->tx_buf,
+ iphone->tx_urb->transfer_dma);

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

2022-02-01 Thread Mike Pagano
commit: 998225b203b8f9ea94fc543f621982c1fb5c268b
Author: Mike Pagano  gentoo  org>
AuthorDate: Tue Feb  1 17:24:12 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Tue Feb  1 17:24:12 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=998225b2

Linux patch 5.4.176

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

 _README  |4 +
 1175_linux-5.4.176.patch | 2235 ++
 2 files changed, 2239 insertions(+)

diff --git a/_README b/_README
index 2c90c35b..347c7e70 100644
--- a/_README
+++ b/_README
@@ -743,6 +743,10 @@ Patch:  1174_linux-5.4.175.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.175
 
+Patch:  1175_linux-5.4.176.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.176
+
 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/1175_linux-5.4.176.patch b/1175_linux-5.4.176.patch
new file mode 100644
index ..1128710c
--- /dev/null
+++ b/1175_linux-5.4.176.patch
@@ -0,0 +1,2235 @@
+diff --git a/Documentation/devicetree/bindings/net/can/tcan4x5x.txt 
b/Documentation/devicetree/bindings/net/can/tcan4x5x.txt
+index 9cb3560756d00..53c26ffd020a3 100644
+--- a/Documentation/devicetree/bindings/net/can/tcan4x5x.txt
 b/Documentation/devicetree/bindings/net/can/tcan4x5x.txt
+@@ -31,7 +31,7 @@ tcan4x5x: tcan4x5x@0 {
+   #address-cells = <1>;
+   #size-cells = <1>;
+   spi-max-frequency = <1000>;
+-  bosch,mram-cfg = <0x0 0 0 32 0 0 1 1>;
++  bosch,mram-cfg = <0x0 0 0 16 0 0 1 1>;
+   interrupt-parent = <>;
+   interrupts = <14 IRQ_TYPE_LEVEL_LOW>;
+   device-state-gpios = < 21 GPIO_ACTIVE_HIGH>;
+diff --git a/Makefile b/Makefile
+index 2f6c51097d003..b23aa51ada93e 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 175
++SUBLEVEL = 176
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c
+index f61ef46ebff74..d07fbc21f14ce 100644
+--- a/arch/arm64/kernel/process.c
 b/arch/arm64/kernel/process.c
+@@ -500,34 +500,26 @@ static void entry_task_switch(struct task_struct *next)
+ 
+ /*
+  * ARM erratum 1418040 handling, affecting the 32bit view of CNTVCT.
+- * Assuming the virtual counter is enabled at the beginning of times:
+- *
+- * - disable access when switching from a 64bit task to a 32bit task
+- * - enable access when switching from a 32bit task to a 64bit task
++ * Ensure access is disabled when switching to a 32bit task, ensure
++ * access is enabled when switching to a 64bit task.
+  */
+-static void erratum_1418040_thread_switch(struct task_struct *prev,
+-struct task_struct *next)
++static void erratum_1418040_thread_switch(struct task_struct *next)
+ {
+-  bool prev32, next32;
+-  u64 val;
+-
+-  if (!IS_ENABLED(CONFIG_ARM64_ERRATUM_1418040))
+-  return;
+-
+-  prev32 = is_compat_thread(task_thread_info(prev));
+-  next32 = is_compat_thread(task_thread_info(next));
+-
+-  if (prev32 == next32 || !this_cpu_has_cap(ARM64_WORKAROUND_1418040))
++  if (!IS_ENABLED(CONFIG_ARM64_ERRATUM_1418040) ||
++  !this_cpu_has_cap(ARM64_WORKAROUND_1418040))
+   return;
+ 
+-  val = read_sysreg(cntkctl_el1);
+-
+-  if (!next32)
+-  val |= ARCH_TIMER_USR_VCT_ACCESS_EN;
++  if (is_compat_thread(task_thread_info(next)))
++  sysreg_clear_set(cntkctl_el1, ARCH_TIMER_USR_VCT_ACCESS_EN, 0);
+   else
+-  val &= ~ARCH_TIMER_USR_VCT_ACCESS_EN;
++  sysreg_clear_set(cntkctl_el1, 0, ARCH_TIMER_USR_VCT_ACCESS_EN);
++}
+ 
+-  write_sysreg(val, cntkctl_el1);
++static void erratum_1418040_new_exec(void)
++{
++  preempt_disable();
++  erratum_1418040_thread_switch(current);
++  preempt_enable();
+ }
+ 
+ /*
+@@ -546,7 +538,7 @@ __notrace_funcgraph struct task_struct *__switch_to(struct 
task_struct *prev,
+   uao_thread_switch(next);
+   ptrauth_thread_switch(next);
+   ssbs_thread_switch(next);
+-  erratum_1418040_thread_switch(prev, next);
++  erratum_1418040_thread_switch(next);
+ 
+   /*
+* Complete any pending TLB or cache maintenance on this CPU in case
+@@ -605,6 +597,7 @@ void arch_setup_new_exec(void)
+   current->mm->context.flags = is_compat_task() ? MMCF_AARCH32 : 0;
+ 
+   ptrauth_thread_init_user(current);
++  erratum_1418040_new_exec();
+ }
+ 
+ #ifdef CONFIG_ARM64_TAGGED_ADDR_ABI
+diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile
+index afbd47b0a75cc..5819a577d267a 100644
+--- a/arch/powerpc/kernel/Makefile
 b/arch/powerpc/kernel/Makefile
+@@ -13,6 +13,7 @@ CFLAGS_prom_init.o  

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

2022-01-31 Thread Mike Pagano
commit: a122bb8f553195f20e4a201570f128995ac47d95
Author: Mike Pagano  gentoo  org>
AuthorDate: Mon Jan 31 13:01:06 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Mon Jan 31 13:01:06 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=a122bb8f

Select CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL=y as default

Bug: https://bugs.gentoo.org/832224

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 62b59d68..24560114 100644
--- a/4567_distro-Gentoo-Kconfig.patch
+++ b/4567_distro-Gentoo-Kconfig.patch
@@ -6,9 +6,9 @@
  source "Documentation/Kconfig"
 +
 +source "distro/Kconfig"
 /dev/null  2020-09-24 03:06:47.59000 -0400
-+++ b/distro/Kconfig   2020-09-24 11:31:29.403150624 -0400
-@@ -0,0 +1,158 @@
+--- /dev/null  2022-01-31 05:39:10.702387747 -0500
 b/distro/Kconfig   2022-01-31 07:54:58.153689335 -0500
+@@ -0,0 +1,160 @@
 +menu "Gentoo Linux"
 +
 +config GENTOO_LINUX
@@ -16,6 +16,8 @@
 +
 +  default y
 +
++  select CPU_FREQ_DEFAULT_GOV_SCHEDUTIL
++
 +  help
 +  In order to boot Gentoo Linux a minimal set of config settings 
needs to
 +  be enabled in the kernel; to avoid the users from having to 
enable them



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

2022-01-29 Thread Mike Pagano
commit: 5646f140920c548b890e8513ed749a05c8ab56ca
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Jan 29 17:44:02 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Jan 29 17:44:02 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=5646f140

Linux patch 5.4.175

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

 _README  |   4 +
 1174_linux-5.4.175.patch | 891 +++
 2 files changed, 895 insertions(+)

diff --git a/_README b/_README
index 865a37b6..2c90c35b 100644
--- a/_README
+++ b/_README
@@ -739,6 +739,10 @@ Patch:  1173_linux-5.4.174.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.174
 
+Patch:  1174_linux-5.4.175.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.175
+
 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/1174_linux-5.4.175.patch b/1174_linux-5.4.175.patch
new file mode 100644
index ..acd7452d
--- /dev/null
+++ b/1174_linux-5.4.175.patch
@@ -0,0 +1,891 @@
+diff --git a/Makefile b/Makefile
+index 3075f06f77131..2f6c51097d003 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 174
++SUBLEVEL = 175
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm/boot/dts/bcm283x.dtsi b/arch/arm/boot/dts/bcm283x.dtsi
+index 50c64146d4926..af81f386793ca 100644
+--- a/arch/arm/boot/dts/bcm283x.dtsi
 b/arch/arm/boot/dts/bcm283x.dtsi
+@@ -183,6 +183,7 @@
+ 
+   interrupt-controller;
+   #interrupt-cells = <2>;
++  gpio-ranges = < 0 0 54>;
+ 
+   /* Defines pin muxing groups according to
+* BCM2835-ARM-Peripherals.pdf page 102.
+diff --git a/drivers/gpu/drm/i915/gem/i915_gem_object_types.h 
b/drivers/gpu/drm/i915/gem/i915_gem_object_types.h
+index 08b35587bc6dc..352c102f3459c 100644
+--- a/drivers/gpu/drm/i915/gem/i915_gem_object_types.h
 b/drivers/gpu/drm/i915/gem/i915_gem_object_types.h
+@@ -118,6 +118,9 @@ struct drm_i915_gem_object {
+ 
+   I915_SELFTEST_DECLARE(struct list_head st_link);
+ 
++  unsigned long flags;
++#define I915_BO_WAS_BOUND_BIT0
++
+   /*
+* Is the object to be mapped as read-only to the GPU
+* Only honoured if hardware has relevant pte bit
+diff --git a/drivers/gpu/drm/i915/gem/i915_gem_pages.c 
b/drivers/gpu/drm/i915/gem/i915_gem_pages.c
+index 18f0ce0135c17..aa63fa0ab575e 100644
+--- a/drivers/gpu/drm/i915/gem/i915_gem_pages.c
 b/drivers/gpu/drm/i915/gem/i915_gem_pages.c
+@@ -8,6 +8,8 @@
+ #include "i915_gem_object.h"
+ #include "i915_scatterlist.h"
+ 
++#include "gt/intel_gt.h"
++
+ void __i915_gem_object_set_pages(struct drm_i915_gem_object *obj,
+struct sg_table *pages,
+unsigned int sg_page_sizes)
+@@ -176,6 +178,14 @@ __i915_gem_object_unset_pages(struct drm_i915_gem_object 
*obj)
+   __i915_gem_object_reset_page_iter(obj);
+   obj->mm.page_sizes.phys = obj->mm.page_sizes.sg = 0;
+ 
++  if (test_and_clear_bit(I915_BO_WAS_BOUND_BIT, >flags)) {
++  struct drm_i915_private *i915 = to_i915(obj->base.dev);
++  intel_wakeref_t wakeref;
++
++  with_intel_runtime_pm_if_in_use(>runtime_pm, wakeref)
++  intel_gt_invalidate_tlbs(>gt);
++  }
++
+   return pages;
+ }
+ 
+diff --git a/drivers/gpu/drm/i915/gt/intel_gt.c 
b/drivers/gpu/drm/i915/gt/intel_gt.c
+index d48ec9a76ed16..c8c070375d298 100644
+--- a/drivers/gpu/drm/i915/gt/intel_gt.c
 b/drivers/gpu/drm/i915/gt/intel_gt.c
+@@ -15,6 +15,8 @@ void intel_gt_init_early(struct intel_gt *gt, struct 
drm_i915_private *i915)
+ 
+   spin_lock_init(>irq_lock);
+ 
++  mutex_init(>tlb_invalidate_lock);
++
+   INIT_LIST_HEAD(>closed_vma);
+   spin_lock_init(>closed_lock);
+ 
+@@ -266,3 +268,100 @@ void intel_gt_driver_late_release(struct intel_gt *gt)
+   intel_uc_driver_late_release(>uc);
+   intel_gt_fini_reset(gt);
+ }
++
++struct reg_and_bit {
++  i915_reg_t reg;
++  u32 bit;
++};
++
++static struct reg_and_bit
++get_reg_and_bit(const struct intel_engine_cs *engine, const bool gen8,
++  const i915_reg_t *regs, const unsigned int num)
++{
++  const unsigned int class = engine->class;
++  struct reg_and_bit rb = { };
++
++  if (WARN_ON_ONCE(class >= num || !regs[class].reg))
++  return rb;
++
++  rb.reg = regs[class];
++  if (gen8 && class == VIDEO_DECODE_CLASS)
++  rb.reg.reg += 4 * engine->instance; /* GEN8_M2TCR */
++  else
++  rb.bit = engine->instance;
++
++  rb.bit = BIT(rb.bit);
++
++  return rb;
++}
++
++void intel_gt_invalidate_tlbs(struct intel_gt *gt)
++{
++  static const i915_reg_t 

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

2022-01-20 Thread Mike Pagano
commit: 8ccc4e665a43df9a1d94143ccfa1a96a5ebcd056
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Jan 20 10:00:40 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu Jan 20 10:00:40 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=8ccc4e66

Linux patch 5.4.173

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

 _README  |   4 +
 1172_linux-5.4.173.patch | 788 +++
 2 files changed, 792 insertions(+)

diff --git a/_README b/_README
index 85a7c8aa..65d034ea 100644
--- a/_README
+++ b/_README
@@ -731,6 +731,10 @@ Patch:  1171_linux-5.4.172.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.172
 
+Patch:  1172_linux-5.4.173.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.173
+
 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/1172_linux-5.4.173.patch b/1172_linux-5.4.173.patch
new file mode 100644
index ..bba402e5
--- /dev/null
+++ b/1172_linux-5.4.173.patch
@@ -0,0 +1,788 @@
+diff --git a/Makefile b/Makefile
+index 2f914dd223c81..cb9e6cd0d0249 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 172
++SUBLEVEL = 173
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+@@ -1022,7 +1022,7 @@ HOST_LIBELF_LIBS = $(shell pkg-config libelf --libs 
2>/dev/null || echo -lelf)
+ 
+ ifdef CONFIG_STACK_VALIDATION
+   has_libelf := $(call try-run,\
+-  echo "int main() {}" | $(HOSTCC) -xc -o /dev/null 
$(HOST_LIBELF_LIBS) -,1,0)
++  echo "int main() {}" | $(HOSTCC) $(KBUILD_HOSTLDFLAGS) -xc -o 
/dev/null $(HOST_LIBELF_LIBS) -,1,0)
+   ifeq ($(has_libelf),1)
+ objtool_target := tools/objtool FORCE
+   else
+diff --git a/arch/arm/kernel/perf_callchain.c 
b/arch/arm/kernel/perf_callchain.c
+index 3b69a76d341e7..1626dfc6f6ce6 100644
+--- a/arch/arm/kernel/perf_callchain.c
 b/arch/arm/kernel/perf_callchain.c
+@@ -62,9 +62,10 @@ user_backtrace(struct frame_tail __user *tail,
+ void
+ perf_callchain_user(struct perf_callchain_entry_ctx *entry, struct pt_regs 
*regs)
+ {
++  struct perf_guest_info_callbacks *guest_cbs = perf_get_guest_cbs();
+   struct frame_tail __user *tail;
+ 
+-  if (perf_guest_cbs && perf_guest_cbs->is_in_guest()) {
++  if (guest_cbs && guest_cbs->is_in_guest()) {
+   /* We don't support guest os callchain now */
+   return;
+   }
+@@ -98,9 +99,10 @@ callchain_trace(struct stackframe *fr,
+ void
+ perf_callchain_kernel(struct perf_callchain_entry_ctx *entry, struct pt_regs 
*regs)
+ {
++  struct perf_guest_info_callbacks *guest_cbs = perf_get_guest_cbs();
+   struct stackframe fr;
+ 
+-  if (perf_guest_cbs && perf_guest_cbs->is_in_guest()) {
++  if (guest_cbs && guest_cbs->is_in_guest()) {
+   /* We don't support guest os callchain now */
+   return;
+   }
+@@ -111,18 +113,21 @@ perf_callchain_kernel(struct perf_callchain_entry_ctx 
*entry, struct pt_regs *re
+ 
+ unsigned long perf_instruction_pointer(struct pt_regs *regs)
+ {
+-  if (perf_guest_cbs && perf_guest_cbs->is_in_guest())
+-  return perf_guest_cbs->get_guest_ip();
++  struct perf_guest_info_callbacks *guest_cbs = perf_get_guest_cbs();
++
++  if (guest_cbs && guest_cbs->is_in_guest())
++  return guest_cbs->get_guest_ip();
+ 
+   return instruction_pointer(regs);
+ }
+ 
+ unsigned long perf_misc_flags(struct pt_regs *regs)
+ {
++  struct perf_guest_info_callbacks *guest_cbs = perf_get_guest_cbs();
+   int misc = 0;
+ 
+-  if (perf_guest_cbs && perf_guest_cbs->is_in_guest()) {
+-  if (perf_guest_cbs->is_user_mode())
++  if (guest_cbs && guest_cbs->is_in_guest()) {
++  if (guest_cbs->is_user_mode())
+   misc |= PERF_RECORD_MISC_GUEST_USER;
+   else
+   misc |= PERF_RECORD_MISC_GUEST_KERNEL;
+diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig
+index fc388eb60e0b7..64cce0c8560ab 100644
+--- a/arch/arm/mm/Kconfig
 b/arch/arm/mm/Kconfig
+@@ -743,6 +743,7 @@ config SWP_EMULATE
+ config CPU_BIG_ENDIAN
+   bool "Build big-endian kernel"
+   depends on ARCH_SUPPORTS_BIG_ENDIAN
++  depends on !LD_IS_LLD
+   help
+ Say Y if you plan on running a kernel in big-endian mode.
+ Note that your board must be properly built and your board
+diff --git a/arch/arm64/kernel/perf_callchain.c 
b/arch/arm64/kernel/perf_callchain.c
+index b0e03e052dd1d..b84ec4ce7d8dc 100644
+--- a/arch/arm64/kernel/perf_callchain.c
 b/arch/arm64/kernel/perf_callchain.c
+@@ -102,7 +102,9 @@ compat_user_backtrace(struct compat_frame_tail __user 
*tail,
+ void perf_callchain_user(struct perf_callchain_entry_ctx *entry,
+struct pt_regs *regs)
+ {
+-   

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

2022-01-16 Thread Mike Pagano
commit: 5eb02d5ddb6475c1c30455c59af7fbeb47158762
Author: Mike Pagano  gentoo  org>
AuthorDate: Sun Jan 16 10:22:22 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sun Jan 16 10:22:22 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=5eb02d5d

Linuxpatch 5.4.172

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

 _README  |4 +
 1171_linux-5.4.172.patch | 1290 ++
 2 files changed, 1294 insertions(+)

diff --git a/_README b/_README
index 5d64761b..85a7c8aa 100644
--- a/_README
+++ b/_README
@@ -727,6 +727,10 @@ Patch:  1170_linux-5.4.171.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.171
 
+Patch:  1171_linux-5.4.172.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.172
+
 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/1171_linux-5.4.172.patch b/1171_linux-5.4.172.patch
new file mode 100644
index ..e28d266b
--- /dev/null
+++ b/1171_linux-5.4.172.patch
@@ -0,0 +1,1290 @@
+diff --git a/Makefile b/Makefile
+index 062052f71a976..2f914dd223c81 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 171
++SUBLEVEL = 172
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c
+index 83e26fd188cc9..d5f64018044b0 100644
+--- a/drivers/base/arch_topology.c
 b/drivers/base/arch_topology.c
+@@ -48,7 +48,7 @@ static ssize_t cpu_capacity_show(struct device *dev,
+ {
+   struct cpu *cpu = container_of(dev, struct cpu, dev);
+ 
+-  return sprintf(buf, "%lu\n", topology_get_cpu_scale(cpu->dev.id));
++  return sysfs_emit(buf, "%lu\n", topology_get_cpu_scale(cpu->dev.id));
+ }
+ 
+ static void update_topology_flags_workfn(struct work_struct *work);
+diff --git a/drivers/base/cacheinfo.c b/drivers/base/cacheinfo.c
+index 8d553c92cd322..6a8c2b5881be3 100644
+--- a/drivers/base/cacheinfo.c
 b/drivers/base/cacheinfo.c
+@@ -377,7 +377,7 @@ static ssize_t size_show(struct device *dev,
+ {
+   struct cacheinfo *this_leaf = dev_get_drvdata(dev);
+ 
+-  return sprintf(buf, "%uK\n", this_leaf->size >> 10);
++  return sysfs_emit(buf, "%uK\n", this_leaf->size >> 10);
+ }
+ 
+ static ssize_t shared_cpumap_show_func(struct device *dev, bool list, char 
*buf)
+@@ -407,11 +407,11 @@ static ssize_t type_show(struct device *dev,
+ 
+   switch (this_leaf->type) {
+   case CACHE_TYPE_DATA:
+-  return sprintf(buf, "Data\n");
++  return sysfs_emit(buf, "Data\n");
+   case CACHE_TYPE_INST:
+-  return sprintf(buf, "Instruction\n");
++  return sysfs_emit(buf, "Instruction\n");
+   case CACHE_TYPE_UNIFIED:
+-  return sprintf(buf, "Unified\n");
++  return sysfs_emit(buf, "Unified\n");
+   default:
+   return -EINVAL;
+   }
+@@ -425,11 +425,11 @@ static ssize_t allocation_policy_show(struct device *dev,
+   int n = 0;
+ 
+   if ((ci_attr & CACHE_READ_ALLOCATE) && (ci_attr & CACHE_WRITE_ALLOCATE))
+-  n = sprintf(buf, "ReadWriteAllocate\n");
++  n = sysfs_emit(buf, "ReadWriteAllocate\n");
+   else if (ci_attr & CACHE_READ_ALLOCATE)
+-  n = sprintf(buf, "ReadAllocate\n");
++  n = sysfs_emit(buf, "ReadAllocate\n");
+   else if (ci_attr & CACHE_WRITE_ALLOCATE)
+-  n = sprintf(buf, "WriteAllocate\n");
++  n = sysfs_emit(buf, "WriteAllocate\n");
+   return n;
+ }
+ 
+@@ -441,9 +441,9 @@ static ssize_t write_policy_show(struct device *dev,
+   int n = 0;
+ 
+   if (ci_attr & CACHE_WRITE_THROUGH)
+-  n = sprintf(buf, "WriteThrough\n");
++  n = sysfs_emit(buf, "WriteThrough\n");
+   else if (ci_attr & CACHE_WRITE_BACK)
+-  n = sprintf(buf, "WriteBack\n");
++  n = sysfs_emit(buf, "WriteBack\n");
+   return n;
+ }
+ 
+diff --git a/drivers/base/core.c b/drivers/base/core.c
+index 8b651bfc1d88e..1b016fdd1a750 100644
+--- a/drivers/base/core.c
 b/drivers/base/core.c
+@@ -1027,7 +1027,7 @@ ssize_t device_show_ulong(struct device *dev,
+ char *buf)
+ {
+   struct dev_ext_attribute *ea = to_ext_attr(attr);
+-  return snprintf(buf, PAGE_SIZE, "%lx\n", *(unsigned long *)(ea->var));
++  return sysfs_emit(buf, "%lx\n", *(unsigned long *)(ea->var));
+ }
+ EXPORT_SYMBOL_GPL(device_show_ulong);
+ 
+@@ -1057,7 +1057,7 @@ ssize_t device_show_int(struct device *dev,
+ {
+   struct dev_ext_attribute *ea = to_ext_attr(attr);
+ 
+-  return snprintf(buf, PAGE_SIZE, "%d\n", *(int *)(ea->var));
++  return sysfs_emit(buf, "%d\n", *(int *)(ea->var));
+ }
+ EXPORT_SYMBOL_GPL(device_show_int);
+ 
+@@ -1078,7 +1078,7 @@ ssize_t 

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

2022-01-11 Thread Mike Pagano
commit: a83c34f38a907533b7adff715936d94f4ab825df
Author: Mike Pagano  gentoo  org>
AuthorDate: Tue Jan 11 14:34:12 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Tue Jan 11 14:34:12 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=a83c34f3

Linux patch 5.4.171

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

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

diff --git a/_README b/_README
index 75707cd8..5d64761b 100644
--- a/_README
+++ b/_README
@@ -723,6 +723,10 @@ Patch:  1169_linux-5.4.170.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.170
 
+Patch:  1170_linux-5.4.171.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.171
+
 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/1170_linux-5.4.171.patch b/1170_linux-5.4.171.patch
new file mode 100644
index ..a57bed9c
--- /dev/null
+++ b/1170_linux-5.4.171.patch
@@ -0,0 +1,909 @@
+diff --git a/Makefile b/Makefile
+index 7380354e49513..062052f71a976 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 170
++SUBLEVEL = 171
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/drivers/infiniband/core/uverbs_marshall.c 
b/drivers/infiniband/core/uverbs_marshall.c
+index b8d715c68ca44..11a0806469162 100644
+--- a/drivers/infiniband/core/uverbs_marshall.c
 b/drivers/infiniband/core/uverbs_marshall.c
+@@ -66,7 +66,7 @@ void ib_copy_ah_attr_to_user(struct ib_device *device,
+   struct rdma_ah_attr *src = ah_attr;
+   struct rdma_ah_attr conv_ah;
+ 
+-  memset(>grh.reserved, 0, sizeof(dst->grh.reserved));
++  memset(>grh, 0, sizeof(dst->grh));
+ 
+   if ((ah_attr->type == RDMA_AH_ATTR_TYPE_OPA) &&
+   (rdma_ah_get_dlid(ah_attr) > be16_to_cpu(IB_LID_PERMISSIVE)) &&
+diff --git a/drivers/infiniband/core/uverbs_uapi.c 
b/drivers/infiniband/core/uverbs_uapi.c
+index 00c5478871322..818699b855c5c 100644
+--- a/drivers/infiniband/core/uverbs_uapi.c
 b/drivers/infiniband/core/uverbs_uapi.c
+@@ -450,6 +450,9 @@ static int uapi_finalize(struct uverbs_api *uapi)
+   uapi->num_write_ex = max_write_ex + 1;
+   data = kmalloc_array(uapi->num_write + uapi->num_write_ex,
+sizeof(*uapi->write_methods), GFP_KERNEL);
++  if (!data)
++  return -ENOMEM;
++
+   for (i = 0; i != uapi->num_write + uapi->num_write_ex; i++)
+   data[i] = >notsupp_method;
+   uapi->write_methods = data;
+diff --git a/drivers/input/touchscreen/of_touchscreen.c 
b/drivers/input/touchscreen/of_touchscreen.c
+index 2962c3747adc3..ed5fbcb40e3f0 100644
+--- a/drivers/input/touchscreen/of_touchscreen.c
 b/drivers/input/touchscreen/of_touchscreen.c
+@@ -77,8 +77,8 @@ void touchscreen_parse_properties(struct input_dev *input, 
bool multitouch,
+   axis = multitouch ? ABS_MT_POSITION_X : ABS_X;
+   data_present = touchscreen_get_prop_u32(dev, "touchscreen-min-x",
+   input_abs_get_min(input, axis),
+-  ) |
+- touchscreen_get_prop_u32(dev, "touchscreen-size-x",
++  );
++  data_present |= touchscreen_get_prop_u32(dev, "touchscreen-size-x",
+   input_abs_get_max(input,
+ axis) + 1,
+   );
+@@ -91,8 +91,8 @@ void touchscreen_parse_properties(struct input_dev *input, 
bool multitouch,
+   axis = multitouch ? ABS_MT_POSITION_Y : ABS_Y;
+   data_present = touchscreen_get_prop_u32(dev, "touchscreen-min-y",
+   input_abs_get_min(input, axis),
+-  ) |
+- touchscreen_get_prop_u32(dev, "touchscreen-size-y",
++  );
++  data_present |= touchscreen_get_prop_u32(dev, "touchscreen-size-y",
+   input_abs_get_max(input,
+ axis) + 1,
+   );
+diff --git a/drivers/isdn/mISDN/core.c b/drivers/isdn/mISDN/core.c
+index 55891e4204460..a41b4b2645941 100644
+--- a/drivers/isdn/mISDN/core.c
 b/drivers/isdn/mISDN/core.c
+@@ -381,7 +381,7 @@ mISDNInit(void)
+   err = mISDN_inittimer();
+   if (err)
+   goto error2;
+-  err = l1_init();
++  err = Isdnl1_Init();
+   if (err)
+   goto error3;
+   err = Isdnl2_Init();
+@@ -395,7 +395,7 @@ mISDNInit(void)
+ error5:
+   

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

2022-01-05 Thread Mike Pagano
commit: e9e29af500ac424719c257708c498b9bff676738
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Jan  5 12:54:19 2022 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Jan  5 12:54:19 2022 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=e9e29af5

Linux patch 5.4.170

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

 _README  |4 +
 1169_linux-5.4.170.patch | 1469 ++
 2 files changed, 1473 insertions(+)

diff --git a/_README b/_README
index d8d56e36..75707cd8 100644
--- a/_README
+++ b/_README
@@ -719,6 +719,10 @@ Patch:  1168_linux-5.4.169.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.169
 
+Patch:  1169_linux-5.4.170.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.170
+
 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/1169_linux-5.4.170.patch b/1169_linux-5.4.170.patch
new file mode 100644
index ..e78f6fa0
--- /dev/null
+++ b/1169_linux-5.4.170.patch
@@ -0,0 +1,1469 @@
+diff --git a/Documentation/admin-guide/kernel-parameters.txt 
b/Documentation/admin-guide/kernel-parameters.txt
+index e7f71df9daf1c..165abcb656c5b 100644
+--- a/Documentation/admin-guide/kernel-parameters.txt
 b/Documentation/admin-guide/kernel-parameters.txt
+@@ -1487,6 +1487,8 @@
+   architectures force reset to be always executed
+   i8042.unlock[HW] Unlock (ignore) the keylock
+   i8042.kbdreset  [HW] Reset device connected to KBD port
++  i8042.probe_defer
++  [HW] Allow deferred probing upon i8042 probe errors
+ 
+   i810=   [HW,DRM]
+ 
+diff --git a/Makefile b/Makefile
+index 151fd24540125..7380354e49513 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 169
++SUBLEVEL = 170
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/drivers/android/binder_alloc.c b/drivers/android/binder_alloc.c
+index 3526bb1488e5e..b5022a7f6bae1 100644
+--- a/drivers/android/binder_alloc.c
 b/drivers/android/binder_alloc.c
+@@ -613,7 +613,7 @@ static void binder_free_buf_locked(struct binder_alloc 
*alloc,
+   BUG_ON(buffer->user_data > alloc->buffer + alloc->buffer_size);
+ 
+   if (buffer->async_transaction) {
+-  alloc->free_async_space += size + sizeof(struct binder_buffer);
++  alloc->free_async_space += buffer_size + sizeof(struct 
binder_buffer);
+ 
+   binder_alloc_debug(BINDER_DEBUG_BUFFER_ALLOC_ASYNC,
+"%d: binder_free_buf size %zd async free %zd\n",
+diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig
+index 0cfcfb116a03d..5169a38ee47a9 100644
+--- a/drivers/hid/Kconfig
 b/drivers/hid/Kconfig
+@@ -149,6 +149,7 @@ config HID_APPLEIR
+ 
+ config HID_ASUS
+   tristate "Asus"
++  depends on USB_HID
+   depends on LEDS_CLASS
+   depends on ASUS_WMI || ASUS_WMI=n
+   select POWER_SUPPLY
+diff --git a/drivers/i2c/i2c-dev.c b/drivers/i2c/i2c-dev.c
+index c9ae1895cd48a..7da6ca26a5f56 100644
+--- a/drivers/i2c/i2c-dev.c
 b/drivers/i2c/i2c-dev.c
+@@ -536,6 +536,9 @@ static long compat_i2cdev_ioctl(struct file *file, 
unsigned int cmd, unsigned lo
+  sizeof(rdwr_arg)))
+   return -EFAULT;
+ 
++  if (!rdwr_arg.msgs || rdwr_arg.nmsgs == 0)
++  return -EINVAL;
++
+   if (rdwr_arg.nmsgs > I2C_RDWR_IOCTL_MAX_MSGS)
+   return -EINVAL;
+ 
+diff --git a/drivers/input/joystick/spaceball.c 
b/drivers/input/joystick/spaceball.c
+index cf7cbcd0c29df..6971412990695 100644
+--- a/drivers/input/joystick/spaceball.c
 b/drivers/input/joystick/spaceball.c
+@@ -19,6 +19,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #define DRIVER_DESC   "SpaceTec SpaceBall 2003/3003/4000 FLX driver"
+ 
+@@ -75,9 +76,15 @@ static void spaceball_process_packet(struct spaceball* 
spaceball)
+ 
+   case 'D':   /* Ball data */
+   if (spaceball->idx != 15) return;
+-  for (i = 0; i < 6; i++)
++  /*
++   * Skip first three bytes; read six axes worth of data.
++   * Axis values are signed 16-bit big-endian.
++   */
++  data += 3;
++  for (i = 0; i < ARRAY_SIZE(spaceball_axes); i++) {
+   input_report_abs(dev, spaceball_axes[i],
+-  (__s16)((data[2 * i + 3] << 8) | data[2 
* i + 2]));
++  (__s16)get_unaligned_be16([i * 
2]));
++  }
+   break;
+ 
+   case 'K':

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

2021-12-29 Thread Mike Pagano
commit: 51ba13cea055f3e6f4021f30f2d6a813139afb4f
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Dec 29 13:07:12 2021 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Dec 29 13:07:12 2021 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=51ba13ce

Linux patch 5.4.169

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

 _README  |4 +
 1168_linux-5.4.169.patch | 1471 ++
 2 files changed, 1475 insertions(+)

diff --git a/_README b/_README
index e5039e81..d8d56e36 100644
--- a/_README
+++ b/_README
@@ -715,6 +715,10 @@ Patch:  1167_linux-5.4.168.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.168
 
+Patch:  1168_linux-5.4.169.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.169
+
 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/1168_linux-5.4.169.patch b/1168_linux-5.4.169.patch
new file mode 100644
index ..4d1e8296
--- /dev/null
+++ b/1168_linux-5.4.169.patch
@@ -0,0 +1,1471 @@
+diff --git a/Documentation/admin-guide/kernel-parameters.txt 
b/Documentation/admin-guide/kernel-parameters.txt
+index b11e1fd95ee5f..e7f71df9daf1c 100644
+--- a/Documentation/admin-guide/kernel-parameters.txt
 b/Documentation/admin-guide/kernel-parameters.txt
+@@ -2112,8 +2112,12 @@
+   Default is 1 (enabled)
+ 
+   kvm-intel.emulate_invalid_guest_state=
+-  [KVM,Intel] Enable emulation of invalid guest states
+-  Default is 0 (disabled)
++  [KVM,Intel] Disable emulation of invalid guest state.
++  Ignored if kvm-intel.enable_unrestricted_guest=1, as
++  guest state is never invalid for unrestricted guests.
++  This param doesn't apply to nested guests (L2), as KVM
++  never emulates invalid L2 guest state.
++  Default is 1 (enabled)
+ 
+   kvm-intel.flexpriority=
+   [KVM,Intel] Disable FlexPriority feature (TPR shadow).
+diff --git a/Documentation/hwmon/lm90.rst b/Documentation/hwmon/lm90.rst
+index 953315987c06e..03851cbe637ce 100644
+--- a/Documentation/hwmon/lm90.rst
 b/Documentation/hwmon/lm90.rst
+@@ -123,6 +123,18 @@ Supported chips:
+ 
+  http://www.maxim-ic.com/quick_view2.cfm/qv_pk/3497
+ 
++  * Maxim MAX6654
++
++Prefix: 'max6654'
++
++Addresses scanned: I2C 0x18, 0x19, 0x1a, 0x29, 0x2a, 0x2b,
++
++ 0x4c, 0x4d and 0x4e
++
++Datasheet: Publicly available at the Maxim website
++
++ https://www.maximintegrated.com/en/products/sensors/MAX6654.html
++
+   * Maxim MAX6657
+ 
+ Prefix: 'max6657'
+@@ -253,6 +265,16 @@ Supported chips:
+ 
+  http://www.ti.com/litv/pdf/sbos686
+ 
++  * Texas Instruments TMP461
++
++Prefix: 'tmp461'
++
++Addresses scanned: I2C 0x48 through 0x4F
++
++Datasheet: Publicly available at TI website
++
++ https://www.ti.com/lit/gpn/tmp461
++
+ Author: Jean Delvare 
+ 
+ 
+@@ -301,6 +323,13 @@ ADT7461, ADT7461A, NCT1008:
+   * Extended temperature range (breaks compatibility)
+   * Lower resolution for remote temperature
+ 
++MAX6654:
++  * Better local resolution
++  * Selectable address
++  * Remote sensor type selection
++  * Extended temperature range
++  * Extended resolution only available when conversion rate <= 1 Hz
++
+ MAX6657 and MAX6658:
+   * Better local resolution
+   * Remote sensor type selection
+@@ -336,8 +365,8 @@ SA56004X:
+ 
+ All temperature values are given in degrees Celsius. Resolution
+ is 1.0 degree for the local temperature, 0.125 degree for the remote
+-temperature, except for the MAX6657, MAX6658 and MAX6659 which have a
+-resolution of 0.125 degree for both temperatures.
++temperature, except for the MAX6654, MAX6657, MAX6658 and MAX6659 which have
++a resolution of 0.125 degree for both temperatures.
+ 
+ Each sensor has its own high and low limits, plus a critical limit.
+ Additionally, there is a relative hysteresis value common to both critical
+diff --git a/Documentation/networking/bonding.txt 
b/Documentation/networking/bonding.txt
+index e3abfbd32f71e..b020e6ce6dd49 100644
+--- a/Documentation/networking/bonding.txt
 b/Documentation/networking/bonding.txt
+@@ -191,11 +191,12 @@ ad_actor_sys_prio
+ ad_actor_system
+ 
+   In an AD system, this specifies the mac-address for the actor in
+-  protocol packet exchanges (LACPDUs). The value cannot be NULL or
+-  multicast. It is preferred to have the local-admin bit set for this
+-  mac but driver does not enforce it. If the value is not given then
+-  system defaults to using the masters' mac address as actors' system
+-  address.
++  protocol packet exchanges (LACPDUs). The value cannot be a multicast
++  address. If the 

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

2021-12-22 Thread Mike Pagano
commit: c267aa3e43d90cb318844229333ae06cd918a712
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Dec 22 14:06:08 2021 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Dec 22 14:06:08 2021 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=c267aa3e

Linux patch 5.4.168

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

 _README  |4 +
 1167_linux-5.4.168.patch | 2322 ++
 2 files changed, 2326 insertions(+)

diff --git a/_README b/_README
index 03c7ef31..e5039e81 100644
--- a/_README
+++ b/_README
@@ -711,6 +711,10 @@ Patch:  1166_linux-5.4.167.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.167
 
+Patch:  1167_linux-5.4.168.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.168
+
 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/1167_linux-5.4.168.patch b/1167_linux-5.4.168.patch
new file mode 100644
index ..529751cb
--- /dev/null
+++ b/1167_linux-5.4.168.patch
@@ -0,0 +1,2322 @@
+diff --git a/Makefile b/Makefile
+index 1045f7fc08503..c23f5b17d239f 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 167
++SUBLEVEL = 168
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm/boot/dts/imx6ull-pinfunc.h 
b/arch/arm/boot/dts/imx6ull-pinfunc.h
+index eb025a9d47592..7328d4ef8559f 100644
+--- a/arch/arm/boot/dts/imx6ull-pinfunc.h
 b/arch/arm/boot/dts/imx6ull-pinfunc.h
+@@ -82,6 +82,6 @@
+ #define MX6ULL_PAD_CSI_DATA04__ESAI_TX_FS 0x01F4 
0x0480 0x 0x9 0x0
+ #define MX6ULL_PAD_CSI_DATA05__ESAI_TX_CLK0x01F8 
0x0484 0x 0x9 0x0
+ #define MX6ULL_PAD_CSI_DATA06__ESAI_TX5_RX0   0x01FC 
0x0488 0x 0x9 0x0
+-#define MX6ULL_PAD_CSI_DATA07__ESAI_T00x0200 
0x048C 0x 0x9 0x0
++#define MX6ULL_PAD_CSI_DATA07__ESAI_TX0   0x0200 
0x048C 0x 0x9 0x0
+ 
+ #endif /* __DTS_IMX6ULL_PINFUNC_H */
+diff --git a/arch/arm/boot/dts/socfpga_arria10_socdk_qspi.dts 
b/arch/arm/boot/dts/socfpga_arria10_socdk_qspi.dts
+index b4c0a76a4d1af..4c2fcfcc7baed 100644
+--- a/arch/arm/boot/dts/socfpga_arria10_socdk_qspi.dts
 b/arch/arm/boot/dts/socfpga_arria10_socdk_qspi.dts
+@@ -12,7 +12,7 @@
+   flash0: n25q00@0 {
+   #address-cells = <1>;
+   #size-cells = <1>;
+-  compatible = "n25q00aa";
++  compatible = "micron,mt25qu02g", "jedec,spi-nor";
+   reg = <0>;
+   spi-max-frequency = <1>;
+ 
+diff --git a/arch/arm/boot/dts/socfpga_arria5_socdk.dts 
b/arch/arm/boot/dts/socfpga_arria5_socdk.dts
+index 90e676e7019f2..1b02d46496a85 100644
+--- a/arch/arm/boot/dts/socfpga_arria5_socdk.dts
 b/arch/arm/boot/dts/socfpga_arria5_socdk.dts
+@@ -119,7 +119,7 @@
+   flash: flash@0 {
+   #address-cells = <1>;
+   #size-cells = <1>;
+-  compatible = "n25q256a";
++  compatible = "micron,n25q256a", "jedec,spi-nor";
+   reg = <0>;
+   spi-max-frequency = <1>;
+ 
+diff --git a/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts 
b/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts
+index 6f138b2b26163..51bb436784e24 100644
+--- a/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts
 b/arch/arm/boot/dts/socfpga_cyclone5_socdk.dts
+@@ -124,7 +124,7 @@
+   flash0: n25q00@0 {
+   #address-cells = <1>;
+   #size-cells = <1>;
+-  compatible = "n25q00";
++  compatible = "micron,mt25qu02g", "jedec,spi-nor";
+   reg = <0>;  /* chip select */
+   spi-max-frequency = <1>;
+ 
+diff --git a/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts 
b/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts
+index c155ff02eb6e0..cae9ddd5ed38b 100644
+--- a/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts
 b/arch/arm/boot/dts/socfpga_cyclone5_sockit.dts
+@@ -169,7 +169,7 @@
+   flash: flash@0 {
+   #address-cells = <1>;
+   #size-cells = <1>;
+-  compatible = "n25q00";
++  compatible = "micron,mt25qu02g", "jedec,spi-nor";
+   reg = <0>;
+   spi-max-frequency = <1>;
+ 
+diff --git a/arch/arm/boot/dts/socfpga_cyclone5_socrates.dts 
b/arch/arm/boot/dts/socfpga_cyclone5_socrates.dts
+index 8d5d3996f6f27..ca18b959e6559 100644
+--- a/arch/arm/boot/dts/socfpga_cyclone5_socrates.dts
 b/arch/arm/boot/dts/socfpga_cyclone5_socrates.dts
+@@ -80,7 +80,7 @@
+   flash: flash@0 {
+   #address-cells = <1>;
+   #size-cells = <1>;
+-  compatible = "n25q256a";
++  compatible = "micron,n25q256a", "jedec,spi-nor";
+   reg = <0>;
+   

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

2021-12-17 Thread Mike Pagano
commit: b4fcf1d1c9ef052ea04243f054b156331a0a7463
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Dec 17 11:55:39 2021 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Fri Dec 17 11:55:39 2021 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=b4fcf1d1

Linux patch 5.4.167

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

 _README  |   4 +
 1166_linux-5.4.167.patch | 695 +++
 2 files changed, 699 insertions(+)

diff --git a/_README b/_README
index c290221c..03c7ef31 100644
--- a/_README
+++ b/_README
@@ -707,6 +707,10 @@ Patch:  1165_linux-5.4.166.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.166
 
+Patch:  1166_linux-5.4.167.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.167
+
 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/1166_linux-5.4.167.patch b/1166_linux-5.4.167.patch
new file mode 100644
index ..98dd7071
--- /dev/null
+++ b/1166_linux-5.4.167.patch
@@ -0,0 +1,695 @@
+diff --git a/Makefile b/Makefile
+index b1e5f7c6206ed..1045f7fc08503 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 166
++SUBLEVEL = 167
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c
+index 5a3641b5ec2cd..ff2cd985d20e0 100644
+--- a/arch/arm/mm/init.c
 b/arch/arm/mm/init.c
+@@ -176,11 +176,22 @@ static void __init zone_sizes_init(unsigned long min, 
unsigned long max_low,
+ int pfn_valid(unsigned long pfn)
+ {
+   phys_addr_t addr = __pfn_to_phys(pfn);
++  unsigned long pageblock_size = PAGE_SIZE * pageblock_nr_pages;
+ 
+   if (__phys_to_pfn(addr) != pfn)
+   return 0;
+ 
+-  return memblock_is_map_memory(__pfn_to_phys(pfn));
++  /*
++   * If address less than pageblock_size bytes away from a present
++   * memory chunk there still will be a memory map entry for it
++   * because we round freed memory map to the pageblock boundaries.
++   */
++  if (memblock_overlaps_region(,
++   ALIGN_DOWN(addr, pageblock_size),
++   pageblock_size))
++  return 1;
++
++  return 0;
+ }
+ EXPORT_SYMBOL(pfn_valid);
+ #endif
+@@ -371,14 +382,14 @@ static void __init free_unused_memmap(void)
+*/
+   start = min(start,
+ALIGN(prev_end, PAGES_PER_SECTION));
+-#else
++#endif
+   /*
+-   * Align down here since the VM subsystem insists that the
+-   * memmap entries are valid from the bank start aligned to
+-   * MAX_ORDER_NR_PAGES.
++   * Align down here since many operations in VM subsystem
++   * presume that there are no holes in the memory map inside
++   * a pageblock
+*/
+-  start = round_down(start, MAX_ORDER_NR_PAGES);
+-#endif
++  start = round_down(start, pageblock_nr_pages);
++
+   /*
+* If we had a previous bank, and there is a space
+* between the current bank and the previous, free it.
+@@ -387,18 +398,20 @@ static void __init free_unused_memmap(void)
+   free_memmap(prev_end, start);
+ 
+   /*
+-   * Align up here since the VM subsystem insists that the
+-   * memmap entries are valid from the bank end aligned to
+-   * MAX_ORDER_NR_PAGES.
++   * Align up here since many operations in VM subsystem
++   * presume that there are no holes in the memory map inside
++   * a pageblock
+*/
+   prev_end = ALIGN(memblock_region_memory_end_pfn(reg),
+-   MAX_ORDER_NR_PAGES);
++   pageblock_nr_pages);
+   }
+ 
+ #ifdef CONFIG_SPARSEMEM
+-  if (!IS_ALIGNED(prev_end, PAGES_PER_SECTION))
++  if (!IS_ALIGNED(prev_end, PAGES_PER_SECTION)) {
++  prev_end = ALIGN(prev_end, pageblock_nr_pages);
+   free_memmap(prev_end,
+   ALIGN(prev_end, PAGES_PER_SECTION));
++  }
+ #endif
+ }
+ 
+diff --git a/arch/arm/mm/ioremap.c b/arch/arm/mm/ioremap.c
+index d42b933161832..513c26b46db35 100644
+--- a/arch/arm/mm/ioremap.c
 b/arch/arm/mm/ioremap.c
+@@ -27,6 +27,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ 
+ #include 
+ #include 
+@@ -301,7 +302,8 @@ static void __iomem * __arm_ioremap_pfn_caller(unsigned 
long pfn,
+* Don't allow RAM to be mapped with mismatched attributes - this
+* causes problems with ARMv6+
+*/
+-  if (WARN_ON(pfn_valid(pfn) && mtype != MT_MEMORY_RW))
++  if (WARN_ON(memblock_is_map_memory(PFN_PHYS(pfn)) &&
++  

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

2021-12-16 Thread Mike Pagano
commit: a1664b3328c719c67f60e6a989129c1227bde3bf
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Dec 16 16:51:07 2021 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu Dec 16 16:51:07 2021 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=a1664b33

Linux patch 5.4.166

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

 _README  |  4 
 1165_linux-5.4.166.patch | 16 
 2 files changed, 20 insertions(+)

diff --git a/_README b/_README
index 1d54cfb1..c290221c 100644
--- a/_README
+++ b/_README
@@ -703,6 +703,10 @@ Patch:  1164_linux-5.4.165.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.165
 
+Patch:  1165_linux-5.4.166.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.166
+
 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/1165_linux-5.4.166.patch b/1165_linux-5.4.166.patch
new file mode 100644
index ..c3890e5c
--- /dev/null
+++ b/1165_linux-5.4.166.patch
@@ -0,0 +1,16 @@
+diff --git a/Makefile b/Makefile
+index 4a7a89de832b5..b1e5f7c6206ed 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 165
++SUBLEVEL = 166
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/tools/testing/selftests/netfilter/conntrack_vrf.sh 
b/tools/testing/selftests/netfilter/conntrack_vrf.sh
+old mode 100644
+new mode 100755



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

2021-12-08 Thread Mike Pagano
commit: 28dde5e56feed0ce4f988ea840346dda228886f7
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Dec  8 12:54:23 2021 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Dec  8 12:54:23 2021 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=28dde5e5

Linux patch 5.4.164

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

 _README  |4 +
 1163_linux-5.4.164.patch | 2173 ++
 2 files changed, 2177 insertions(+)

diff --git a/_README b/_README
index f9d7be72..8c943ebc 100644
--- a/_README
+++ b/_README
@@ -695,6 +695,10 @@ Patch:  1162_linux-5.4.163.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.163
 
+Patch:  1163_linux-5.4.164.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.164
+
 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/1163_linux-5.4.164.patch b/1163_linux-5.4.164.patch
new file mode 100644
index ..de412662
--- /dev/null
+++ b/1163_linux-5.4.164.patch
@@ -0,0 +1,2173 @@
+diff --git a/Makefile b/Makefile
+index 91d77df0128b4..a87162756d61d 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 163
++SUBLEVEL = 164
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtsi 
b/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtsi
+index d250f4b2bfedb..bf443ca1fcf11 100644
+--- a/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtsi
 b/arch/arm64/boot/dts/marvell/armada-8040-mcbin.dtsi
+@@ -71,6 +71,7 @@
+   tx-fault-gpio  = <_gpio1 26 GPIO_ACTIVE_HIGH>;
+   pinctrl-names = "default";
+   pinctrl-0 = <_sfpp0_pins>;
++  maximum-power-milliwatt = <2000>;
+   };
+ 
+   sfp_eth1: sfp-eth1 {
+@@ -83,6 +84,7 @@
+   tx-fault-gpio = <_gpio2 30 GPIO_ACTIVE_HIGH>;
+   pinctrl-names = "default";
+   pinctrl-0 = <_sfpp1_pins _sfpp1_pins>;
++  maximum-power-milliwatt = <2000>;
+   };
+ 
+   sfp_eth3: sfp-eth3 {
+@@ -95,6 +97,7 @@
+   tx-fault-gpio = <_gpio2 19 GPIO_ACTIVE_HIGH>;
+   pinctrl-names = "default";
+   pinctrl-0 = <_sfp_1g_pins _sfp_1g_pins>;
++  maximum-power-milliwatt = <2000>;
+   };
+ };
+ 
+diff --git a/arch/parisc/Makefile b/arch/parisc/Makefile
+index 53f974817affb..caa90ae0b4acc 100644
+--- a/arch/parisc/Makefile
 b/arch/parisc/Makefile
+@@ -17,7 +17,12 @@
+ # Mike Shaver, Helge Deller and Martin K. Petersen
+ #
+ 
++ifdef CONFIG_PARISC_SELF_EXTRACT
++boot := arch/parisc/boot
++KBUILD_IMAGE := $(boot)/bzImage
++else
+ KBUILD_IMAGE := vmlinuz
++endif
+ 
+ NM= sh $(srctree)/arch/parisc/nm
+ CHECKFLAGS+= -D__hppa__=1
+diff --git a/arch/parisc/install.sh b/arch/parisc/install.sh
+index 6f68784fea25f..a8c49815f58c8 100644
+--- a/arch/parisc/install.sh
 b/arch/parisc/install.sh
+@@ -39,6 +39,7 @@ verify "$3"
+ if [ -n "${INSTALLKERNEL}" ]; then
+   if [ -x ~/bin/${INSTALLKERNEL} ]; then exec ~/bin/${INSTALLKERNEL} "$@"; fi
+   if [ -x /sbin/${INSTALLKERNEL} ]; then exec /sbin/${INSTALLKERNEL} "$@"; fi
++  if [ -x /usr/sbin/${INSTALLKERNEL} ]; then exec /usr/sbin/${INSTALLKERNEL} 
"$@"; fi
+ fi
+ 
+ # Default install
+diff --git a/arch/parisc/kernel/time.c b/arch/parisc/kernel/time.c
+index 04508158815c1..9c1ae9d242ca9 100644
+--- a/arch/parisc/kernel/time.c
 b/arch/parisc/kernel/time.c
+@@ -245,27 +245,13 @@ void __init time_init(void)
+ static int __init init_cr16_clocksource(void)
+ {
+   /*
+-   * The cr16 interval timers are not syncronized across CPUs on
+-   * different sockets, so mark them unstable and lower rating on
+-   * multi-socket SMP systems.
++   * The cr16 interval timers are not syncronized across CPUs, even if
++   * they share the same socket.
+*/
+   if (num_online_cpus() > 1 && !running_on_qemu) {
+-  int cpu;
+-  unsigned long cpu0_loc;
+-  cpu0_loc = per_cpu(cpu_data, 0).cpu_loc;
+-
+-  for_each_online_cpu(cpu) {
+-  if (cpu == 0)
+-  continue;
+-  if ((cpu0_loc != 0) &&
+-  (cpu0_loc == per_cpu(cpu_data, cpu).cpu_loc))
+-  continue;
+-
+-  clocksource_cr16.name = "cr16_unstable";
+-  clocksource_cr16.flags = CLOCK_SOURCE_UNSTABLE;
+-  clocksource_cr16.rating = 0;
+-  break;
+-  }
++  clocksource_cr16.name = "cr16_unstable";
++  clocksource_cr16.flags = CLOCK_SOURCE_UNSTABLE;
++  clocksource_cr16.rating = 0;
+   }
+ 
+   /* XXX: We may want to mark sched_clock stable here if 

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

2021-11-26 Thread Mike Pagano
commit: d2f4e11aceda401f8cd59582e5321c2f3c1690fd
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Nov 26 11:58:41 2021 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Fri Nov 26 11:58:41 2021 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=d2f4e11a

Linux 5.4.162

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

 _README  |4 +
 1161_linux-5.4.162.patch | 3747 ++
 2 files changed, 3751 insertions(+)

diff --git a/_README b/_README
index c4cd1ed0..645731c2 100644
--- a/_README
+++ b/_README
@@ -687,6 +687,10 @@ Patch:  1160_linux-5.4.161.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.161
 
+Patch:  1161_linux-5.4.162.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.162
+
 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/1161_linux-5.4.162.patch b/1161_linux-5.4.162.patch
new file mode 100644
index ..fb59fb92
--- /dev/null
+++ b/1161_linux-5.4.162.patch
@@ -0,0 +1,3747 @@
+diff --git a/Makefile b/Makefile
+index f552556966f1d..e8b05f7d3b238 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 161
++SUBLEVEL = 162
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm/boot/dts/bcm-nsp.dtsi b/arch/arm/boot/dts/bcm-nsp.dtsi
+index 43ff85d31dc12..5a1352fd90d16 100644
+--- a/arch/arm/boot/dts/bcm-nsp.dtsi
 b/arch/arm/boot/dts/bcm-nsp.dtsi
+@@ -77,7 +77,7 @@
+   interrupt-affinity = <>, <>;
+   };
+ 
+-  mpcore@1900 {
++  mpcore-bus@1900 {
+   compatible = "simple-bus";
+   ranges = <0x 0x1900 0x00023000>;
+   #address-cells = <1>;
+@@ -217,7 +217,7 @@
+   #dma-cells = <1>;
+   };
+ 
+-  sdio: sdhci@21000 {
++  sdio: mmc@21000 {
+   compatible = "brcm,sdhci-iproc-cygnus";
+   reg = <0x21000 0x100>;
+   interrupts = ;
+diff --git a/arch/arm/boot/dts/ls1021a-tsn.dts 
b/arch/arm/boot/dts/ls1021a-tsn.dts
+index 5b7689094b70e..7235ce2a32936 100644
+--- a/arch/arm/boot/dts/ls1021a-tsn.dts
 b/arch/arm/boot/dts/ls1021a-tsn.dts
+@@ -247,7 +247,7 @@
+ 
+   flash@0 {
+   /* Rev. A uses 64MB flash, Rev. B & C use 32MB flash */
+-  compatible = "jedec,spi-nor", "s25fl256s1", "s25fl512s";
++  compatible = "jedec,spi-nor";
+   spi-max-frequency = <2000>;
+   #address-cells = <1>;
+   #size-cells = <1>;
+diff --git a/arch/arm/boot/dts/ls1021a.dtsi b/arch/arm/boot/dts/ls1021a.dtsi
+index c62fcca7b4263..aeb8a40b6b601 100644
+--- a/arch/arm/boot/dts/ls1021a.dtsi
 b/arch/arm/boot/dts/ls1021a.dtsi
+@@ -311,39 +311,6 @@
+   #thermal-sensor-cells = <1>;
+   };
+ 
+-  thermal-zones {
+-  cpu_thermal: cpu-thermal {
+-  polling-delay-passive = <1000>;
+-  polling-delay = <5000>;
+-
+-  thermal-sensors = < 0>;
+-
+-  trips {
+-  cpu_alert: cpu-alert {
+-  temperature = <85000>;
+-  hysteresis = <2000>;
+-  type = "passive";
+-  };
+-  cpu_crit: cpu-crit {
+-  temperature = <95000>;
+-  hysteresis = <2000>;
+-  type = "critical";
+-  };
+-  };
+-
+-  cooling-maps {
+-  map0 {
+-  trip = <_alert>;
+-  cooling-device =
+-  < THERMAL_NO_LIMIT
+-  THERMAL_NO_LIMIT>,
+-  < THERMAL_NO_LIMIT
+-  THERMAL_NO_LIMIT>;
+-  };
+-  };
+-  };
+-  };
+-
+   dspi0: spi@210 {
+   compatible = "fsl,ls1021a-v1.0-dspi";
+   #address-cells = <1>;
+@@ -984,4 +951,37 @@
+   };
+ 
+   };
++
++  thermal-zones {
++  cpu_thermal: cpu-thermal {
++  polling-delay-passive = <1000>;
++ 

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

2021-11-21 Thread Mike Pagano
commit: 55ef83e2a885dbd23a560074a45d02342fd46d80
Author: Mike Pagano  gentoo  org>
AuthorDate: Sun Nov 21 20:44:03 2021 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sun Nov 21 20:44:03 2021 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=55ef83e2

Linux patch 5.4.161

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

 _README  |   4 +
 1160_linux-5.4.161.patch | 309 +++
 2 files changed, 313 insertions(+)

diff --git a/_README b/_README
index 22e6b259..c4cd1ed0 100644
--- a/_README
+++ b/_README
@@ -683,6 +683,10 @@ Patch:  1159_linux-5.4.160.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.160
 
+Patch:  1160_linux-5.4.161.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.161
+
 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/1160_linux-5.4.161.patch b/1160_linux-5.4.161.patch
new file mode 100644
index ..9c2004cc
--- /dev/null
+++ b/1160_linux-5.4.161.patch
@@ -0,0 +1,309 @@
+diff --git a/Makefile b/Makefile
+index e938662dab289..f552556966f1d 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 160
++SUBLEVEL = 161
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/mips/include/asm/cmpxchg.h b/arch/mips/include/asm/cmpxchg.h
+index f6136871561dc..9182ce828f540 100644
+--- a/arch/mips/include/asm/cmpxchg.h
 b/arch/mips/include/asm/cmpxchg.h
+@@ -239,6 +239,7 @@ static inline unsigned long __cmpxchg64(volatile void *ptr,
+   "   .set" MIPS_ISA_ARCH_LEVEL " \n"
+   /* Load 64 bits from ptr */
+   "1: lld %L0, %3 # __cmpxchg64   \n"
++  "   .setpop \n"
+   /*
+* Split the 64 bit value we loaded into the 2 registers that hold the
+* ret variable.
+@@ -266,6 +267,8 @@ static inline unsigned long __cmpxchg64(volatile void *ptr,
+   "   or  %L1, %L1, $at   \n"
+   "   .setat  \n"
+ #  endif
++  "   .setpush\n"
++  "   .set" MIPS_ISA_ARCH_LEVEL " \n"
+   /* Attempt to store new at ptr */
+   "   scd %L1, %2 \n"
+   /* If we failed, loop! */
+diff --git a/arch/parisc/kernel/entry.S b/arch/parisc/kernel/entry.S
+index 7d14e9ae18fb1..2f64f112934b6 100644
+--- a/arch/parisc/kernel/entry.S
 b/arch/parisc/kernel/entry.S
+@@ -1842,7 +1842,7 @@ syscall_restore:
+ 
+   /* Are we being ptraced? */
+   LDREG   TI_FLAGS-THREAD_SZ_ALGN-FRAME_SIZE(%r30),%r19
+-  ldi _TIF_SYSCALL_TRACE_MASK,%r2
++  ldi _TIF_SINGLESTEP|_TIF_BLOCKSTEP,%r2
+   and,COND(=) %r19,%r2,%r0
+   b,n syscall_restore_rfi
+ 
+diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c
+index c8bd243717b7b..d0cc6c0d74d6b 100644
+--- a/drivers/pci/msi.c
 b/drivers/pci/msi.c
+@@ -395,18 +395,6 @@ static void free_msi_irqs(struct pci_dev *dev)
+   for (i = 0; i < entry->nvec_used; i++)
+   BUG_ON(irq_has_action(entry->irq + i));
+ 
+-  pci_msi_teardown_msi_irqs(dev);
+-
+-  list_for_each_entry_safe(entry, tmp, msi_list, list) {
+-  if (entry->msi_attrib.is_msix) {
+-  if (list_is_last(>list, msi_list))
+-  iounmap(entry->mask_base);
+-  }
+-
+-  list_del(>list);
+-  free_msi_entry(entry);
+-  }
+-
+   if (dev->msi_irq_groups) {
+   sysfs_remove_groups(>dev.kobj, dev->msi_irq_groups);
+   msi_attrs = dev->msi_irq_groups[0]->attrs;
+@@ -422,6 +410,18 @@ static void free_msi_irqs(struct pci_dev *dev)
+   kfree(dev->msi_irq_groups);
+   dev->msi_irq_groups = NULL;
+   }
++
++  pci_msi_teardown_msi_irqs(dev);
++
++  list_for_each_entry_safe(entry, tmp, msi_list, list) {
++  if (entry->msi_attrib.is_msix) {
++  if (list_is_last(>list, msi_list))
++  iounmap(entry->mask_base);
++  }
++
++  list_del(>list);
++  free_msi_entry(entry);
++  }
+ }
+ 
+ static void pci_intx_for_msi(struct pci_dev *dev, int enable)
+@@ -591,6 +591,9 @@ msi_setup_entry(struct pci_dev *dev, int nvec, struct 
irq_affinity *affd)
+   goto out;
+ 
+   pci_read_config_word(dev, dev->msi_cap + PCI_MSI_FLAGS, );
++  /* Lies, damned lies, and MSIs */
++  if (dev->dev_flags & PCI_DEV_FLAGS_HAS_MSI_MASKING)
++  control |= PCI_MSI_FLAGS_MASKBIT;
+ 
+   entry->msi_attrib.is_msix   = 0;
+   entry->msi_attrib.is_64 = !!(control & PCI_MSI_FLAGS_64BIT);
+diff --git 

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

2021-11-12 Thread Mike Pagano
commit: c6424b64870908468cf51626548e109dfb283fdd
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Nov 12 14:13:57 2021 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Fri Nov 12 14:13:57 2021 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=c6424b64

Linux patch 5.4.159

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

 _README  |   4 +
 1158_linux-5.4.159.patch | 680 +++
 2 files changed, 684 insertions(+)

diff --git a/_README b/_README
index e290e240..76f9edc7 100644
--- a/_README
+++ b/_README
@@ -675,6 +675,10 @@ Patch:  1157_linux-5.4.158.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.158
 
+Patch:  1158_linux-5.4.159.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.159
+
 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/1158_linux-5.4.159.patch b/1158_linux-5.4.159.patch
new file mode 100644
index ..821bded8
--- /dev/null
+++ b/1158_linux-5.4.159.patch
@@ -0,0 +1,680 @@
+diff --git a/Makefile b/Makefile
+index cef1d2704c410..602b5167dacd7 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 158
++SUBLEVEL = 159
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/x86/kvm/ioapic.c b/arch/x86/kvm/ioapic.c
+index 642031b896f64..24a6905d60ee2 100644
+--- a/arch/x86/kvm/ioapic.c
 b/arch/x86/kvm/ioapic.c
+@@ -91,7 +91,7 @@ static unsigned long ioapic_read_indirect(struct kvm_ioapic 
*ioapic,
+ static void rtc_irq_eoi_tracking_reset(struct kvm_ioapic *ioapic)
+ {
+   ioapic->rtc_status.pending_eoi = 0;
+-  bitmap_zero(ioapic->rtc_status.dest_map.map, KVM_MAX_VCPU_ID + 1);
++  bitmap_zero(ioapic->rtc_status.dest_map.map, KVM_MAX_VCPU_ID);
+ }
+ 
+ static void kvm_rtc_eoi_tracking_restore_all(struct kvm_ioapic *ioapic);
+diff --git a/arch/x86/kvm/ioapic.h b/arch/x86/kvm/ioapic.h
+index 283f1f489bcac..ea1a4e0297dae 100644
+--- a/arch/x86/kvm/ioapic.h
 b/arch/x86/kvm/ioapic.h
+@@ -43,13 +43,13 @@ struct kvm_vcpu;
+ 
+ struct dest_map {
+   /* vcpu bitmap where IRQ has been sent */
+-  DECLARE_BITMAP(map, KVM_MAX_VCPU_ID + 1);
++  DECLARE_BITMAP(map, KVM_MAX_VCPU_ID);
+ 
+   /*
+* Vector sent to a given vcpu, only valid when
+* the vcpu's bit in map is set
+*/
+-  u8 vectors[KVM_MAX_VCPU_ID + 1];
++  u8 vectors[KVM_MAX_VCPU_ID];
+ };
+ 
+ 
+diff --git a/drivers/android/binder.c b/drivers/android/binder.c
+index 4eaef780844ea..2be6687c0148f 100644
+--- a/drivers/android/binder.c
 b/drivers/android/binder.c
+@@ -2257,7 +2257,7 @@ static void binder_transaction_buffer_release(struct 
binder_proc *proc,
+   binder_dec_node(buffer->target_node, 1, 0);
+ 
+   off_start_offset = ALIGN(buffer->data_size, sizeof(void *));
+-  off_end_offset = is_failure ? failed_at :
++  off_end_offset = is_failure && failed_at ? failed_at :
+   off_start_offset + buffer->offsets_size;
+   for (buffer_offset = off_start_offset; buffer_offset < off_end_offset;
+buffer_offset += sizeof(binder_size_t)) {
+@@ -2343,9 +2343,8 @@ static void binder_transaction_buffer_release(struct 
binder_proc *proc,
+   binder_size_t fd_buf_size;
+   binder_size_t num_valid;
+ 
+-  if (proc->tsk != current->group_leader) {
++  if (is_failure) {
+   /*
+-   * Nothing to do if running in sender context
+* The fd fixups have not been applied so no
+* fds need to be closed.
+*/
+@@ -3548,6 +3547,7 @@ err_invalid_target_handle:
+  * binder_free_buf() - free the specified buffer
+  * @proc: binder proc that owns buffer
+  * @buffer:   buffer to be freed
++ * @is_failure:   failed to send transaction
+  *
+  * If buffer for an async transaction, enqueue the next async
+  * transaction from the node.
+@@ -3557,7 +3557,7 @@ err_invalid_target_handle:
+ static void
+ binder_free_buf(struct binder_proc *proc,
+   struct binder_thread *thread,
+-  struct binder_buffer *buffer)
++  struct binder_buffer *buffer, bool is_failure)
+ {
+   binder_inner_proc_lock(proc);
+   if (buffer->transaction) {
+@@ -3585,7 +3585,7 @@ binder_free_buf(struct binder_proc *proc,
+   binder_node_inner_unlock(buf_node);
+   }
+   trace_binder_transaction_buffer_release(buffer);
+-  binder_transaction_buffer_release(proc, thread, buffer, 0, false);
++  binder_transaction_buffer_release(proc, thread, buffer, 0, is_failure);
+   binder_alloc_free_buf(>alloc, buffer);
+ }
+ 
+@@ -3786,7 +3786,7 @@ static 

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

2021-11-06 Thread Mike Pagano
commit: 7982d508340a660599631685d0ff0ea8455073bd
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Nov  6 13:25:44 2021 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Nov  6 13:25:44 2021 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=7982d508

Linux patch 5.4.158

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

 _README  |   4 +
 1157_linux-5.4.158.patch | 331 +++
 2 files changed, 335 insertions(+)

diff --git a/_README b/_README
index eb1b9b5..e290e24 100644
--- a/_README
+++ b/_README
@@ -671,6 +671,10 @@ Patch:  1156_linux-5.4.157.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.157
 
+Patch:  1157_linux-5.4.158.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.158
+
 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/1157_linux-5.4.158.patch b/1157_linux-5.4.158.patch
new file mode 100644
index 000..452c5bd
--- /dev/null
+++ b/1157_linux-5.4.158.patch
@@ -0,0 +1,331 @@
+diff --git a/Makefile b/Makefile
+index 49d639fe5a801..cef1d2704c410 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 157
++SUBLEVEL = 158
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/drivers/amba/bus.c b/drivers/amba/bus.c
+index af58768a03937..702284bcd467c 100644
+--- a/drivers/amba/bus.c
 b/drivers/amba/bus.c
+@@ -375,9 +375,6 @@ static int amba_device_try_add(struct amba_device *dev, 
struct resource *parent)
+   void __iomem *tmp;
+   int i, ret;
+ 
+-  WARN_ON(dev->irq[0] == (unsigned int)-1);
+-  WARN_ON(dev->irq[1] == (unsigned int)-1);
+-
+   ret = request_resource(parent, >res);
+   if (ret)
+   goto err_out;
+diff --git a/drivers/gpu/drm/ttm/ttm_bo_util.c 
b/drivers/gpu/drm/ttm/ttm_bo_util.c
+index a7b88ca8b97b3..fe81c565e7ef8 100644
+--- a/drivers/gpu/drm/ttm/ttm_bo_util.c
 b/drivers/gpu/drm/ttm/ttm_bo_util.c
+@@ -463,7 +463,6 @@ static void ttm_transfered_destroy(struct 
ttm_buffer_object *bo)
+   struct ttm_transfer_obj *fbo;
+ 
+   fbo = container_of(bo, struct ttm_transfer_obj, base);
+-  dma_resv_fini(>base.base._resv);
+   ttm_bo_put(fbo->bo);
+   kfree(fbo);
+ }
+diff --git a/drivers/media/firewire/firedtv-avc.c 
b/drivers/media/firewire/firedtv-avc.c
+index 2bf9467b917d1..71991f8638e6b 100644
+--- a/drivers/media/firewire/firedtv-avc.c
 b/drivers/media/firewire/firedtv-avc.c
+@@ -1165,7 +1165,11 @@ int avc_ca_pmt(struct firedtv *fdtv, char *msg, int 
length)
+   read_pos += program_info_length;
+   write_pos += program_info_length;
+   }
+-  while (read_pos < length) {
++  while (read_pos + 4 < length) {
++  if (write_pos + 4 >= sizeof(c->operand) - 4) {
++  ret = -EINVAL;
++  goto out;
++  }
+   c->operand[write_pos++] = msg[read_pos++];
+   c->operand[write_pos++] = msg[read_pos++];
+   c->operand[write_pos++] = msg[read_pos++];
+@@ -1177,13 +1181,17 @@ int avc_ca_pmt(struct firedtv *fdtv, char *msg, int 
length)
+   c->operand[write_pos++] = es_info_length >> 8;
+   c->operand[write_pos++] = es_info_length & 0xff;
+   if (es_info_length > 0) {
++  if (read_pos >= length) {
++  ret = -EINVAL;
++  goto out;
++  }
+   pmt_cmd_id = msg[read_pos++];
+   if (pmt_cmd_id != 1 && pmt_cmd_id != 4)
+   dev_err(fdtv->device, "invalid pmt_cmd_id %d at 
stream level\n",
+   pmt_cmd_id);
+ 
+-  if (es_info_length > sizeof(c->operand) - 4 -
+-   write_pos) {
++  if (es_info_length > sizeof(c->operand) - 4 - write_pos 
||
++  es_info_length > length - read_pos) {
+   ret = -EINVAL;
+   goto out;
+   }
+diff --git a/drivers/media/firewire/firedtv-ci.c 
b/drivers/media/firewire/firedtv-ci.c
+index 9363d005e2b61..e0d57e09dab0c 100644
+--- a/drivers/media/firewire/firedtv-ci.c
 b/drivers/media/firewire/firedtv-ci.c
+@@ -134,6 +134,8 @@ static int fdtv_ca_pmt(struct firedtv *fdtv, void *arg)
+   } else {
+   data_length = msg->msg[3];
+   }
++  if (data_length > sizeof(msg->msg) - data_pos)
++  return -EINVAL;
+ 
+   return avc_ca_pmt(fdtv, >msg[data_pos], data_length);
+ }
+diff --git a/drivers/net/ethernet/microchip/lan743x_main.c 
b/drivers/net/ethernet/microchip/lan743x_main.c
+index a109120da0e7c..22beeb5be9c41 100644
+--- 

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

2021-11-04 Thread Mike Pagano
commit: 806549f8ef327ca616f38eaa6549eac8e20c16fb
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Nov  4 11:22:06 2021 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu Nov  4 11:22:06 2021 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=806549f8

Upd gcc ver detect patch.Make visible GCC_PLUGINS. Thanks to Kerin Millar.

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

 2910_fix-gcc-detection-method.patch | 83 ++---
 1 file changed, 68 insertions(+), 15 deletions(-)

diff --git a/2910_fix-gcc-detection-method.patch 
b/2910_fix-gcc-detection-method.patch
index d7ed901..844b411 100644
--- a/2910_fix-gcc-detection-method.patch
+++ b/2910_fix-gcc-detection-method.patch
@@ -1,5 +1,21 @@
 a/scripts/gcc-plugin.sh2021-09-23 10:18:55.315793245 -0400
-+++ /dev/null  2021-10-27 08:48:41.750968153 -0400
+From 106e2bb6f90409ca0edc77d9b7eba376d1e85876 Mon Sep 17 00:00:00 2001
+From: Kerin Millar 
+Date: Thu, 4 Nov 2021 08:44:33 +
+Subject: [PATCH] https://bugs.gentoo.org/814200#c20
+
+Signed-off-by: Kerin Millar 
+---
+ scripts/gcc-plugin.sh| 66 
+ scripts/gcc-plugins/Kconfig  | 11 ++
+ scripts/gcc-plugins/Makefile | 19 ---
+ 3 files changed, 8 insertions(+), 88 deletions(-)
+ delete mode 100755 scripts/gcc-plugin.sh
+
+diff --git a/scripts/gcc-plugin.sh b/scripts/gcc-plugin.sh
+deleted file mode 100755
+index d3caefe53eab..
+--- a/scripts/gcc-plugin.sh
 /dev/null
 @@ -1,66 +0,0 @@
 -#!/bin/sh
 -# SPDX-License-Identifier: GPL-2.0
@@ -67,9 +83,24 @@
 -  echo "${plugincc}" >&2
 -fi
 -exit 1
 a/scripts/gcc-plugins/Kconfig  2021-09-23 10:15:50.898216868 -0400
-+++ b/scripts/gcc-plugins/Kconfig  2021-10-27 11:44:35.700620974 -0400
-@@ -17,7 +17,8 @@ config HAVE_GCC_PLUGINS
+diff --git a/scripts/gcc-plugins/Kconfig b/scripts/gcc-plugins/Kconfig
+index e3569543bdac..162f17ff01d3 100644
+--- a/scripts/gcc-plugins/Kconfig
 b/scripts/gcc-plugins/Kconfig
+@@ -1,12 +1,4 @@
+ # SPDX-License-Identifier: GPL-2.0-only
+-preferred-plugin-hostcc := $(if-success,[ $(gcc-version) -ge 40800 
],$(HOSTCXX),$(HOSTCC))
+-
+-config PLUGIN_HOSTCC
+-  string
+-  default "$(shell,$(srctree)/scripts/gcc-plugin.sh 
"$(preferred-plugin-hostcc)" "$(HOSTCXX)" "$(CC)")" if CC_IS_GCC
+-  help
+-Host compiler used to build GCC plugins.  This can be $(HOSTCXX),
+-$(HOSTCC), or a null string if GCC plugin is unsupported.
+ 
+ config HAVE_GCC_PLUGINS
+   bool
+@@ -17,7 +9,8 @@ config HAVE_GCC_PLUGINS
  menuconfig GCC_PLUGINS
bool "GCC plugins"
depends on HAVE_GCC_PLUGINS
@@ -79,14 +110,36 @@
default y
help
  GCC plugins are loadable modules that provide extra features to the
 a/scripts/gcc-plugins/Makefile 2021-10-27 10:58:03.960272437 -0400
-+++ b/scripts/gcc-plugins/Makefile 2021-10-27 10:59:37.313786319 -0400
-@@ -8,7 +8,7 @@ ifeq ($(PLUGINCC),$(HOSTCC))
-   export HOST_EXTRACFLAGS
- else
-   HOSTLIBS := hostcxxlibs
+diff --git a/scripts/gcc-plugins/Makefile b/scripts/gcc-plugins/Makefile
+index 9e95862f2788..e07236375248 100644
+--- a/scripts/gcc-plugins/Makefile
 b/scripts/gcc-plugins/Makefile
+@@ -1,19 +1,12 @@
+ # SPDX-License-Identifier: GPL-2.0
+-PLUGINCC := $(CONFIG_PLUGIN_HOSTCC:"%"=%)
+ GCC_PLUGINS_DIR := $(shell $(CC) -print-file-name=plugin)
+ 
+-ifeq ($(PLUGINCC),$(HOSTCC))
+-  HOSTLIBS := hostlibs
+-  HOST_EXTRACFLAGS += -I$(GCC_PLUGINS_DIR)/include -I$(src) -std=gnu99 -ggdb
+-  export HOST_EXTRACFLAGS
+-else
+-  HOSTLIBS := hostcxxlibs
 -  HOST_EXTRACXXFLAGS += -I$(GCC_PLUGINS_DIR)/include -I$(src) -std=gnu++98 
-fno-rtti
-+  HOST_EXTRACXXFLAGS += -I$(GCC_PLUGINS_DIR)/include -I$(src) -std=gnu++11 
-fno-rtti
-   HOST_EXTRACXXFLAGS += -fno-exceptions -fasynchronous-unwind-tables -ggdb
-   HOST_EXTRACXXFLAGS += -Wno-narrowing -Wno-unused-variable
-   HOST_EXTRACXXFLAGS += -Wno-format-diag
+-  HOST_EXTRACXXFLAGS += -fno-exceptions -fasynchronous-unwind-tables -ggdb
+-  HOST_EXTRACXXFLAGS += -Wno-narrowing -Wno-unused-variable
+-  HOST_EXTRACXXFLAGS += -Wno-format-diag
+-  export HOST_EXTRACXXFLAGS
+-endif
++HOSTLIBS := hostcxxlibs
++HOST_EXTRACXXFLAGS += -I$(GCC_PLUGINS_DIR)/include -I$(src) -std=gnu++11 
-fno-rtti
++HOST_EXTRACXXFLAGS += -fno-exceptions -fasynchronous-unwind-tables -ggdb
++HOST_EXTRACXXFLAGS += -Wno-narrowing -Wno-unused-variable
++HOST_EXTRACXXFLAGS += -Wno-format-diag
++export HOST_EXTRACXXFLAGS
+ 
+ $(obj)/randomize_layout_plugin.o: $(objtree)/$(obj)/randomize_layout_seed.h
+ quiet_cmd_create_randomize_layout_seed = GENSEED $@
+-- 
+2.33.1
+



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

2021-11-02 Thread Mike Pagano
commit: 715f74cb9adc0a3818d2b23b65f52f28e437d036
Author: Mike Pagano  gentoo  org>
AuthorDate: Tue Nov  2 19:31:37 2021 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Tue Nov  2 19:31:37 2021 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=715f74cb

Linux patch 5.4.157

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

 _README  |4 +
 1156_linux-5.4.157.patch | 1584 ++
 2 files changed, 1588 insertions(+)

diff --git a/_README b/_README
index e008863..eb1b9b5 100644
--- a/_README
+++ b/_README
@@ -667,6 +667,10 @@ Patch:  1155_linux-5.4.156.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.156
 
+Patch:  1156_linux-5.4.157.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.157
+
 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/1156_linux-5.4.157.patch b/1156_linux-5.4.157.patch
new file mode 100644
index 000..d821b0a
--- /dev/null
+++ b/1156_linux-5.4.157.patch
@@ -0,0 +1,1584 @@
+diff --git a/Makefile b/Makefile
+index ced1f0fd48dc6..49d639fe5a801 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 156
++SUBLEVEL = 157
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm/boot/compressed/decompress.c 
b/arch/arm/boot/compressed/decompress.c
+index aa075d8372ea2..74255e8198314 100644
+--- a/arch/arm/boot/compressed/decompress.c
 b/arch/arm/boot/compressed/decompress.c
+@@ -47,7 +47,10 @@ extern char * strchrnul(const char *, int);
+ #endif
+ 
+ #ifdef CONFIG_KERNEL_XZ
++/* Prevent KASAN override of string helpers in decompressor */
++#undef memmove
+ #define memmove memmove
++#undef memcpy
+ #define memcpy memcpy
+ #include "../../../../lib/decompress_unxz.c"
+ #endif
+diff --git a/arch/arm/kernel/vmlinux-xip.lds.S 
b/arch/arm/kernel/vmlinux-xip.lds.S
+index 8c74037ade229..b1f366df620b0 100644
+--- a/arch/arm/kernel/vmlinux-xip.lds.S
 b/arch/arm/kernel/vmlinux-xip.lds.S
+@@ -180,7 +180,7 @@ ASSERT(__hyp_idmap_text_end - (__hyp_idmap_text_start & 
PAGE_MASK) <= PAGE_SIZE,
+ ASSERT((_end - __bss_start) >= 12288, ".bss too small for 
CONFIG_XIP_DEFLATED_DATA")
+ #endif
+ 
+-#ifdef CONFIG_ARM_MPU
++#if defined(CONFIG_ARM_MPU) && !defined(CONFIG_COMPILE_TEST)
+ /*
+  * Due to PMSAv7 restriction on base address and size we have to
+  * enforce minimal alignment restrictions. It was seen that weaker
+diff --git a/arch/arm/mm/proc-macros.S b/arch/arm/mm/proc-macros.S
+index 60ac7c5999a98..86e54447dc916 100644
+--- a/arch/arm/mm/proc-macros.S
 b/arch/arm/mm/proc-macros.S
+@@ -342,6 +342,7 @@ ENTRY(\name\()_cache_fns)
+ 
+ .macro define_tlb_functions name:req, flags_up:req, flags_smp
+   .type   \name\()_tlb_fns, #object
++  .align 2
+ ENTRY(\name\()_tlb_fns)
+   .long   \name\()_flush_user_tlb_range
+   .long   \name\()_flush_kern_tlb_range
+diff --git a/arch/arm/probes/kprobes/core.c b/arch/arm/probes/kprobes/core.c
+index 90b5bc723c83f..0a783bd4641c5 100644
+--- a/arch/arm/probes/kprobes/core.c
 b/arch/arm/probes/kprobes/core.c
+@@ -534,7 +534,7 @@ static struct undef_hook kprobes_arm_break_hook = {
+ 
+ #endif /* !CONFIG_THUMB2_KERNEL */
+ 
+-int __init arch_init_kprobes()
++int __init arch_init_kprobes(void)
+ {
+   arm_probes_decode_init();
+ #ifdef CONFIG_THUMB2_KERNEL
+diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts 
b/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts
+index 57a6f45036c1f..d7177465b0968 100644
+--- a/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts
 b/arch/arm64/boot/dts/allwinner/sun50i-h5-nanopi-neo2.dts
+@@ -114,7 +114,7 @@
+   pinctrl-0 = <_rgmii_pins>;
+   phy-supply = <_gmac_3v3>;
+   phy-handle = <_rgmii_phy>;
+-  phy-mode = "rgmii";
++  phy-mode = "rgmii-id";
+   status = "okay";
+ };
+ 
+diff --git a/arch/nios2/platform/Kconfig.platform 
b/arch/nios2/platform/Kconfig.platform
+index 9e32fb7f3d4ce..e849daff6fd16 100644
+--- a/arch/nios2/platform/Kconfig.platform
 b/arch/nios2/platform/Kconfig.platform
+@@ -37,6 +37,7 @@ config NIOS2_DTB_PHYS_ADDR
+ 
+ config NIOS2_DTB_SOURCE_BOOL
+   bool "Compile and link device tree into kernel image"
++  depends on !COMPILE_TEST
+   help
+ This allows you to specify a dts (device tree source) file
+ which will be compiled and linked into the kernel image.
+diff --git a/arch/powerpc/net/bpf_jit_comp64.c 
b/arch/powerpc/net/bpf_jit_comp64.c
+index 20bfd753bcba6..81e6279c9874f 100644
+--- a/arch/powerpc/net/bpf_jit_comp64.c
 b/arch/powerpc/net/bpf_jit_comp64.c
+@@ -408,8 +408,14 @@ static int bpf_jit_build_body(struct bpf_prog *fp, u32 
*image,
+   case BPF_ALU64 | BPF_DIV | BPF_K: /* dst /= imm */
+   if (imm == 0)
+ 

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

2021-10-27 Thread Mike Pagano
commit: 14d75ac4afef46923bddbd0fe0b36c549b8b7bc0
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Oct 27 15:51:07 2021 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Oct 27 15:51:07 2021 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=14d75ac4

Fix how gcc version detectioned to make visible CONFIG_GCC_PLUGINS

Thanks to Kerin Millar.

Bug: https://bugs.gentoo.org/814200

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

 _README |  4 ++
 2910_fix-gcc-detection-method.patch | 92 +
 2 files changed, 96 insertions(+)

diff --git a/_README b/_README
index 0d389ec..e008863 100644
--- a/_README
+++ b/_README
@@ -687,6 +687,10 @@ Patch:  2600_enable-key-swapping-for-apple-mac.patch
 From:   https://github.com/free5lot/hid-apple-patched
 Desc:   This hid-apple patch enables swapping of the FN and left Control keys 
and some additional on some apple keyboards. See bug #622902
 
+Patch:  2910_fix-gcc-detection-method.patch
+From:   https://bugs.gentoo.org/814200
+Desc:   Fix how gcc version is detected to make visible CONFIG_GCC_PLUGINS. 
Thanks to Kerin Millar.
+
 Patch:  2920_sign-file-patch-for-libressl.patch
 From:   https://bugs.gentoo.org/717166
 Desc:   sign-file: full functionality with modern LibreSSL

diff --git a/2910_fix-gcc-detection-method.patch 
b/2910_fix-gcc-detection-method.patch
new file mode 100644
index 000..d7ed901
--- /dev/null
+++ b/2910_fix-gcc-detection-method.patch
@@ -0,0 +1,92 @@
+--- a/scripts/gcc-plugin.sh2021-09-23 10:18:55.315793245 -0400
 /dev/null  2021-10-27 08:48:41.750968153 -0400
+@@ -1,66 +0,0 @@
+-#!/bin/sh
+-# SPDX-License-Identifier: GPL-2.0
+-srctree=$(dirname "$0")
+-
+-SHOW_ERROR=
+-if [ "$1" = "--show-error" ] ; then
+-  SHOW_ERROR=1
+-  shift || true
+-fi
+-
+-gccplugins_dir=$($3 -print-file-name=plugin)
+-plugincc=$($1 -E -x c++ - -o /dev/null -I"${srctree}"/gcc-plugins 
-I"${gccplugins_dir}"/include 2>&1 <= 4008 || defined(ENABLE_BUILD_WITH_CXX)
+-#warning $2 CXX
+-#else
+-#warning $1 CC
+-#endif
+-EOF
+-)
+-
+-if [ $? -ne 0 ]
+-then
+-  if [ -n "$SHOW_ERROR" ] ; then
+-  echo "${plugincc}" >&2
+-  fi
+-  exit 1
+-fi
+-
+-case "$plugincc" in
+-  *"$1 CC"*)
+-  echo "$1"
+-  exit 0
+-  ;;
+-
+-  *"$2 CXX"*)
+-  # the c++ compiler needs another test, see below
+-  ;;
+-
+-  *)
+-  exit 1
+-  ;;
+-esac
+-
+-# we need a c++ compiler that supports the designated initializer GNU 
extension
+-plugincc=$($2 -c -x c++ -std=gnu++98 - -fsyntax-only 
-I"${srctree}"/gcc-plugins -I"${gccplugins_dir}"/include 2>&1 <&2
+-fi
+-exit 1
+--- a/scripts/gcc-plugins/Kconfig  2021-09-23 10:15:50.898216868 -0400
 b/scripts/gcc-plugins/Kconfig  2021-10-27 11:44:35.700620974 -0400
+@@ -17,7 +17,8 @@ config HAVE_GCC_PLUGINS
+ menuconfig GCC_PLUGINS
+   bool "GCC plugins"
+   depends on HAVE_GCC_PLUGINS
+-  depends on PLUGIN_HOSTCC != ""
++  depends on CC_IS_GCC
++  depends on $(success,test -e $(shell,$(CC) 
-print-file-name=plugin)/include/plugin-version.h)
+   default y
+   help
+ GCC plugins are loadable modules that provide extra features to the
+--- a/scripts/gcc-plugins/Makefile 2021-10-27 10:58:03.960272437 -0400
 b/scripts/gcc-plugins/Makefile 2021-10-27 10:59:37.313786319 -0400
+@@ -8,7 +8,7 @@ ifeq ($(PLUGINCC),$(HOSTCC))
+   export HOST_EXTRACFLAGS
+ else
+   HOSTLIBS := hostcxxlibs
+-  HOST_EXTRACXXFLAGS += -I$(GCC_PLUGINS_DIR)/include -I$(src) -std=gnu++98 
-fno-rtti
++  HOST_EXTRACXXFLAGS += -I$(GCC_PLUGINS_DIR)/include -I$(src) -std=gnu++11 
-fno-rtti
+   HOST_EXTRACXXFLAGS += -fno-exceptions -fasynchronous-unwind-tables -ggdb
+   HOST_EXTRACXXFLAGS += -Wno-narrowing -Wno-unused-variable
+   HOST_EXTRACXXFLAGS += -Wno-format-diag



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

2021-10-27 Thread Mike Pagano
commit: fe2294750361f1dd916ca0548123a28d22fcd103
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Oct 27 11:58:03 2021 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Oct 27 11:58:03 2021 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=fe229475

Linux patch 5.4.156

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

 _README  |4 +
 1155_linux-5.4.156.patch | 2242 ++
 2 files changed, 2246 insertions(+)

diff --git a/_README b/_README
index 6bf93a2..0d389ec 100644
--- a/_README
+++ b/_README
@@ -663,6 +663,10 @@ Patch:  1154_linux-5.4.155.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.155
 
+Patch:  1155_linux-5.4.156.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.156
+
 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/1155_linux-5.4.156.patch b/1155_linux-5.4.156.patch
new file mode 100644
index 000..3e82490
--- /dev/null
+++ b/1155_linux-5.4.156.patch
@@ -0,0 +1,2242 @@
+diff --git a/Makefile b/Makefile
+index f7e2bf924463b..ced1f0fd48dc6 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 155
++SUBLEVEL = 156
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
+index 9aa88715f196c..4b36bbcf5a5b4 100644
+--- a/arch/arm/Kconfig
 b/arch/arm/Kconfig
+@@ -85,6 +85,7 @@ config ARM
+   select HAVE_FTRACE_MCOUNT_RECORD if !XIP_KERNEL
+   select HAVE_FUNCTION_GRAPH_TRACER if !THUMB2_KERNEL && !CC_IS_CLANG
+   select HAVE_FUNCTION_TRACER if !XIP_KERNEL && (CC_IS_GCC || 
CLANG_VERSION >= 10)
++  select HAVE_FUTEX_CMPXCHG if FUTEX
+   select HAVE_GCC_PLUGINS
+   select HAVE_HW_BREAKPOINT if PERF_EVENTS && (CPU_V6 || CPU_V6K || 
CPU_V7)
+   select HAVE_IDE if PCI || ISA || PCMCIA
+diff --git a/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts 
b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
+index 89f0c9979b89c..4f63158d6b9bd 100644
+--- a/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
 b/arch/arm/boot/dts/at91-sama5d27_som1_ek.dts
+@@ -69,7 +69,6 @@
+   isc: isc@f0008000 {
+   pinctrl-names = "default";
+   pinctrl-0 = <_isc_base 
_isc_data_8bit _isc_data_9_10 _isc_data_11_12>;
+-  status = "okay";
+   };
+ 
+   qspi1: spi@f0024000 {
+diff --git a/arch/arm/boot/dts/spear3xx.dtsi b/arch/arm/boot/dts/spear3xx.dtsi
+index f266b7b034823..cc88ebe7a60ce 100644
+--- a/arch/arm/boot/dts/spear3xx.dtsi
 b/arch/arm/boot/dts/spear3xx.dtsi
+@@ -47,7 +47,7 @@
+   };
+ 
+   gmac: eth@e080 {
+-  compatible = "st,spear600-gmac";
++  compatible = "snps,dwmac-3.40a";
+   reg = <0xe080 0x8000>;
+   interrupts = <23 22>;
+   interrupt-names = "macirq", "eth_wake_irq";
+diff --git a/arch/nios2/include/asm/irqflags.h 
b/arch/nios2/include/asm/irqflags.h
+index b3ec3e510706d..25acf27862f91 100644
+--- a/arch/nios2/include/asm/irqflags.h
 b/arch/nios2/include/asm/irqflags.h
+@@ -9,7 +9,7 @@
+ 
+ static inline unsigned long arch_local_save_flags(void)
+ {
+-  return RDCTL(CTL_STATUS);
++  return RDCTL(CTL_FSTATUS);
+ }
+ 
+ /*
+@@ -18,7 +18,7 @@ static inline unsigned long arch_local_save_flags(void)
+  */
+ static inline void arch_local_irq_restore(unsigned long flags)
+ {
+-  WRCTL(CTL_STATUS, flags);
++  WRCTL(CTL_FSTATUS, flags);
+ }
+ 
+ static inline void arch_local_irq_disable(void)
+diff --git a/arch/nios2/include/asm/registers.h 
b/arch/nios2/include/asm/registers.h
+index 183c720e454d9..95b67dd16f818 100644
+--- a/arch/nios2/include/asm/registers.h
 b/arch/nios2/include/asm/registers.h
+@@ -11,7 +11,7 @@
+ #endif
+ 
+ /* control register numbers */
+-#define CTL_STATUS0
++#define CTL_FSTATUS   0
+ #define CTL_ESTATUS   1
+ #define CTL_BSTATUS   2
+ #define CTL_IENABLE   3
+diff --git a/arch/parisc/math-emu/fpudispatch.c 
b/arch/parisc/math-emu/fpudispatch.c
+index 7c46969ead9b1..01ed133227c25 100644
+--- a/arch/parisc/math-emu/fpudispatch.c
 b/arch/parisc/math-emu/fpudispatch.c
+@@ -310,12 +310,15 @@ decode_0c(u_int ir, u_int class, u_int subop, u_int 
fpregs[])
+   r1 &= ~3;
+   fpregs[t+3] = fpregs[r1+3];
+   fpregs[t+2] = fpregs[r1+2];
++  fallthrough;
+   case 1: /* double */
+   fpregs[t+1] = fpregs[r1+1];
++  fallthrough;
+   case 0: /* 

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

2021-10-20 Thread Mike Pagano
commit: e7b78b9bd6396fc71fba82946496bad8a26276e5
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Oct 20 13:24:33 2021 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Oct 20 13:24:33 2021 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=e7b78b9b

Linux patch 5.4.155

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

 _README  |4 +
 1154_linux-5.4.155.patch | 1612 ++
 2 files changed, 1616 insertions(+)

diff --git a/_README b/_README
index 3c15edc..6bf93a2 100644
--- a/_README
+++ b/_README
@@ -659,6 +659,10 @@ Patch:  1153_linux-5.4.154.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.154
 
+Patch:  1154_linux-5.4.155.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.155
+
 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/1154_linux-5.4.155.patch b/1154_linux-5.4.155.patch
new file mode 100644
index 000..24744d1
--- /dev/null
+++ b/1154_linux-5.4.155.patch
@@ -0,0 +1,1612 @@
+diff --git a/Makefile b/Makefile
+index 3358f56a37f06..f7e2bf924463b 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 154
++SUBLEVEL = 155
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/csky/kernel/ptrace.c b/arch/csky/kernel/ptrace.c
+index 313623a19ecbf..885194720fe0b 100644
+--- a/arch/csky/kernel/ptrace.c
 b/arch/csky/kernel/ptrace.c
+@@ -96,7 +96,8 @@ static int gpr_set(struct task_struct *target,
+   if (ret)
+   return ret;
+ 
+-  regs.sr = task_pt_regs(target)->sr;
++  /* BIT(0) of regs.sr is Condition Code/Carry bit */
++  regs.sr = (regs.sr & BIT(0)) | (task_pt_regs(target)->sr & ~BIT(0));
+ #ifdef CONFIG_CPU_HAS_HILO
+   regs.dcsr = task_pt_regs(target)->dcsr;
+ #endif
+diff --git a/arch/csky/kernel/signal.c b/arch/csky/kernel/signal.c
+index 9b1b7c039ddf9..63c2bbe39d03b 100644
+--- a/arch/csky/kernel/signal.c
 b/arch/csky/kernel/signal.c
+@@ -52,10 +52,14 @@ static long restore_sigcontext(struct pt_regs *regs,
+   struct sigcontext __user *sc)
+ {
+   int err = 0;
++  unsigned long sr = regs->sr;
+ 
+   /* sc_pt_regs is structured the same as the start of pt_regs */
+   err |= __copy_from_user(regs, >sc_pt_regs, sizeof(struct pt_regs));
+ 
++  /* BIT(0) of regs->sr is Condition Code/Carry bit */
++  regs->sr = (sr & ~1) | (regs->sr & 1);
++
+   /* Restore the floating-point state. */
+   err |= restore_fpu_state(sc);
+ 
+diff --git a/arch/powerpc/sysdev/xive/common.c 
b/arch/powerpc/sysdev/xive/common.c
+index 2d4c09a77910f..d4467da279668 100644
+--- a/arch/powerpc/sysdev/xive/common.c
 b/arch/powerpc/sysdev/xive/common.c
+@@ -990,7 +990,8 @@ static int xive_get_irqchip_state(struct irq_data *data,
+* interrupt to be inactive in that case.
+*/
+   *state = (pq != XIVE_ESB_INVALID) && !xd->stale_p &&
+-  (xd->saved_p || !!(pq & XIVE_ESB_VAL_P));
++  (xd->saved_p || (!!(pq & XIVE_ESB_VAL_P) &&
++   !irqd_irq_disabled(data)));
+   return 0;
+   default:
+   return -EINVAL;
+diff --git a/arch/s390/lib/string.c b/arch/s390/lib/string.c
+index 0e30e6e43b0c5..18fbbb679851d 100644
+--- a/arch/s390/lib/string.c
 b/arch/s390/lib/string.c
+@@ -246,14 +246,13 @@ EXPORT_SYMBOL(strcmp);
+ #ifdef __HAVE_ARCH_STRRCHR
+ char *strrchr(const char *s, int c)
+ {
+-   size_t len = __strend(s) - s;
+-
+-   if (len)
+- do {
+- if (s[len] == (char) c)
+- return (char *) s + len;
+- } while (--len > 0);
+-   return NULL;
++  ssize_t len = __strend(s) - s;
++
++  do {
++  if (s[len] == (char)c)
++  return (char *)s + len;
++  } while (--len >= 0);
++  return NULL;
+ }
+ EXPORT_SYMBOL(strrchr);
+ #endif
+diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
+index 8c1590432e866..c2a3ec3dd8506 100644
+--- a/arch/x86/Kconfig
 b/arch/x86/Kconfig
+@@ -1541,7 +1541,6 @@ config AMD_MEM_ENCRYPT
+ 
+ config AMD_MEM_ENCRYPT_ACTIVE_BY_DEFAULT
+   bool "Activate AMD Secure Memory Encryption (SME) by default"
+-  default y
+   depends on AMD_MEM_ENCRYPT
+   ---help---
+ Say yes to have system memory encrypted by default if running on
+diff --git a/arch/x86/kernel/cpu/resctrl/core.c 
b/arch/x86/kernel/cpu/resctrl/core.c
+index 87a34b6e06a2b..130c3c7f56d4b 100644
+--- a/arch/x86/kernel/cpu/resctrl/core.c
 b/arch/x86/kernel/cpu/resctrl/core.c
+@@ -588,6 +588,8 @@ static void domain_add_cpu(int cpu, struct rdt_resource *r)
+   }
+ 
+   if (r->mon_capable && domain_setup_mon_state(r, d)) {
++  kfree(d->ctrl_val);
++   

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

2021-10-17 Thread Mike Pagano
commit: 3f283992744a023735e3b1f8f39a0c9c4d16bc74
Author: Mike Pagano  gentoo  org>
AuthorDate: Sun Oct 17 13:12:05 2021 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sun Oct 17 13:12:05 2021 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=3f283992

Linux patch 5.4.154

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

 _README  |   4 +
 1153_linux-5.4.154.patch | 948 +++
 2 files changed, 952 insertions(+)

diff --git a/_README b/_README
index 01db703..3c15edc 100644
--- a/_README
+++ b/_README
@@ -655,6 +655,10 @@ Patch:  1152_linux-5.4.153.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.153
 
+Patch:  1153_linux-5.4.154.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.154
+
 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/1153_linux-5.4.154.patch b/1153_linux-5.4.154.patch
new file mode 100644
index 000..dace064
--- /dev/null
+++ b/1153_linux-5.4.154.patch
@@ -0,0 +1,948 @@
+diff --git a/Makefile b/Makefile
+index df9b1d07ca097..3358f56a37f06 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 153
++SUBLEVEL = 154
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/m68k/kernel/signal.c b/arch/m68k/kernel/signal.c
+index 05610e6924c16..f7121b775e5f0 100644
+--- a/arch/m68k/kernel/signal.c
 b/arch/m68k/kernel/signal.c
+@@ -448,7 +448,7 @@ static inline void save_fpu_state(struct sigcontext *sc, 
struct pt_regs *regs)
+ 
+   if (CPU_IS_060 ? sc->sc_fpstate[2] : sc->sc_fpstate[0]) {
+   fpu_version = sc->sc_fpstate[0];
+-  if (CPU_IS_020_OR_030 &&
++  if (CPU_IS_020_OR_030 && !regs->stkadj &&
+   regs->vector >= (VEC_FPBRUC * 4) &&
+   regs->vector <= (VEC_FPNAN * 4)) {
+   /* Clear pending exception in 68882 idle frame */
+@@ -511,7 +511,7 @@ static inline int rt_save_fpu_state(struct ucontext __user 
*uc, struct pt_regs *
+   if (!(CPU_IS_060 || CPU_IS_COLDFIRE))
+   context_size = fpstate[1];
+   fpu_version = fpstate[0];
+-  if (CPU_IS_020_OR_030 &&
++  if (CPU_IS_020_OR_030 && !regs->stkadj &&
+   regs->vector >= (VEC_FPBRUC * 4) &&
+   regs->vector <= (VEC_FPNAN * 4)) {
+   /* Clear pending exception in 68882 idle frame */
+@@ -829,18 +829,24 @@ badframe:
+   return 0;
+ }
+ 
++static inline struct pt_regs *rte_regs(struct pt_regs *regs)
++{
++  return (void *)regs + regs->stkadj;
++}
++
+ static void setup_sigcontext(struct sigcontext *sc, struct pt_regs *regs,
+unsigned long mask)
+ {
++  struct pt_regs *tregs = rte_regs(regs);
+   sc->sc_mask = mask;
+   sc->sc_usp = rdusp();
+   sc->sc_d0 = regs->d0;
+   sc->sc_d1 = regs->d1;
+   sc->sc_a0 = regs->a0;
+   sc->sc_a1 = regs->a1;
+-  sc->sc_sr = regs->sr;
+-  sc->sc_pc = regs->pc;
+-  sc->sc_formatvec = regs->format << 12 | regs->vector;
++  sc->sc_sr = tregs->sr;
++  sc->sc_pc = tregs->pc;
++  sc->sc_formatvec = tregs->format << 12 | tregs->vector;
+   save_a5_state(sc, regs);
+   save_fpu_state(sc, regs);
+ }
+@@ -848,6 +854,7 @@ static void setup_sigcontext(struct sigcontext *sc, struct 
pt_regs *regs,
+ static inline int rt_setup_ucontext(struct ucontext __user *uc, struct 
pt_regs *regs)
+ {
+   struct switch_stack *sw = (struct switch_stack *)regs - 1;
++  struct pt_regs *tregs = rte_regs(regs);
+   greg_t __user *gregs = uc->uc_mcontext.gregs;
+   int err = 0;
+ 
+@@ -868,9 +875,9 @@ static inline int rt_setup_ucontext(struct ucontext __user 
*uc, struct pt_regs *
+   err |= __put_user(sw->a5, [13]);
+   err |= __put_user(sw->a6, [14]);
+   err |= __put_user(rdusp(), [15]);
+-  err |= __put_user(regs->pc, [16]);
+-  err |= __put_user(regs->sr, [17]);
+-  err |= __put_user((regs->format << 12) | regs->vector, 
>uc_formatvec);
++  err |= __put_user(tregs->pc, [16]);
++  err |= __put_user(tregs->sr, [17]);
++  err |= __put_user((tregs->format << 12) | tregs->vector, 
>uc_formatvec);
+   err |= rt_save_fpu_state(uc, regs);
+   return err;
+ }
+@@ -887,13 +894,14 @@ static int setup_frame(struct ksignal *ksig, sigset_t 
*set,
+   struct pt_regs *regs)
+ {
+   struct sigframe __user *frame;
+-  int fsize = frame_extra_sizes(regs->format);
++  struct pt_regs *tregs = rte_regs(regs);
++  int fsize = frame_extra_sizes(tregs->format);
+   struct sigcontext context;
+   int err = 0, sig = ksig->sig;
+ 
+   if (fsize < 0) {
+   pr_debug("setup_frame: Unknown frame format %#x\n",
+-   

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

2021-10-13 Thread Alice Ferrazzi
commit: 81a34615b341a71c5e2b00d1a595366dbfeb102a
Author: Alice Ferrazzi  gentoo  org>
AuthorDate: Wed Oct 13 14:54:56 2021 +
Commit: Alice Ferrazzi  gentoo  org>
CommitDate: Wed Oct 13 14:55:11 2021 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=81a34615

Linux patch 5.4.153

Signed-off-by: Alice Ferrazzi  gentoo.org>

 _README  |4 +
 1152_linux-5.4.153.patch | 3064 ++
 2 files changed, 3068 insertions(+)

diff --git a/_README b/_README
index d41d541..01db703 100644
--- a/_README
+++ b/_README
@@ -651,6 +651,10 @@ Patch:  1151_linux-5.4.152.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.152
 
+Patch:  1152_linux-5.4.153.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.153
+
 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/1152_linux-5.4.153.patch b/1152_linux-5.4.153.patch
new file mode 100644
index 000..bd62172
--- /dev/null
+++ b/1152_linux-5.4.153.patch
@@ -0,0 +1,3064 @@
+diff --git a/Makefile b/Makefile
+index ffcdc36c56f54..df9b1d07ca097 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 152
++SUBLEVEL = 153
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm/boot/dts/imx53-m53menlo.dts 
b/arch/arm/boot/dts/imx53-m53menlo.dts
+index 64faf5b46d92f..03c43c1912a7e 100644
+--- a/arch/arm/boot/dts/imx53-m53menlo.dts
 b/arch/arm/boot/dts/imx53-m53menlo.dts
+@@ -56,6 +56,7 @@
+   panel {
+   compatible = "edt,etm0700g0dh6";
+   pinctrl-0 = <_display_gpio>;
++  pinctrl-names = "default";
+   enable-gpios = < 0 GPIO_ACTIVE_HIGH>;
+ 
+   port {
+@@ -76,8 +77,7 @@
+   regulator-name = "vbus";
+   regulator-min-microvolt = <500>;
+   regulator-max-microvolt = <500>;
+-  gpio = < 2 GPIO_ACTIVE_HIGH>;
+-  enable-active-high;
++  gpio = < 2 0>;
+   };
+ };
+ 
+diff --git a/arch/arm/boot/dts/omap3430-sdp.dts 
b/arch/arm/boot/dts/omap3430-sdp.dts
+index 0abd61108a539..ec16979825378 100644
+--- a/arch/arm/boot/dts/omap3430-sdp.dts
 b/arch/arm/boot/dts/omap3430-sdp.dts
+@@ -101,7 +101,7 @@
+ 
+   nand@1,0 {
+   compatible = "ti,omap2-nand";
+-  reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
++  reg = <1 0 4>; /* CS1, offset 0, IO size 4 */
+   interrupt-parent = <>;
+   interrupts = <0 IRQ_TYPE_NONE>, /* fifoevent */
+<1 IRQ_TYPE_NONE>; /* termcount */
+diff --git a/arch/arm/boot/dts/qcom-apq8064.dtsi 
b/arch/arm/boot/dts/qcom-apq8064.dtsi
+index 2b075e287610f..764984c95c686 100644
+--- a/arch/arm/boot/dts/qcom-apq8064.dtsi
 b/arch/arm/boot/dts/qcom-apq8064.dtsi
+@@ -198,7 +198,7 @@
+   clock-frequency = <1920>;
+   };
+ 
+-  pxo_board {
++  pxo_board: pxo_board {
+   compatible = "fixed-clock";
+   #clock-cells = <0>;
+   clock-frequency = <2700>;
+@@ -1147,7 +1147,7 @@
+   };
+ 
+   gpu: adreno-3xx@430 {
+-  compatible = "qcom,adreno-3xx";
++  compatible = "qcom,adreno-320.2", "qcom,adreno";
+   reg = <0x0430 0x2>;
+   reg-names = "kgsl_3d0_reg_memory";
+   interrupts = ;
+@@ -1162,7 +1162,6 @@
+   < GFX3D_AHB_CLK>,
+   < GFX3D_AXI_CLK>,
+   < MMSS_IMEM_AHB_CLK>;
+-  qcom,chipid = <0x03020002>;
+ 
+   iommus = < 0
+  1
+@@ -1305,7 +1304,7 @@
+   reg-names = "dsi_pll", "dsi_phy", "dsi_phy_regulator";
+   clock-names = "iface_clk", "ref";
+   clocks = < DSI_M_AHB_CLK>,
+-   <_board>;
++   <_board>;
+   };
+ 
+ 
+diff --git a/arch/arm/mach-imx/pm-imx6.c b/arch/arm/mach-imx/pm-imx6.c
+index baf3b47601af0..1b73e4e76310c 100644
+--- a/arch/arm/mach-imx/pm-imx6.c
 b/arch/arm/mach-imx/pm-imx6.c
+@@ -9,6 +9,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 
+@@ -618,6 +619,7 @@ static void __init imx6_pm_common_init(const struct 
imx6_pm_socdata
+ 
+ static void imx6_pm_stby_poweroff(void)
+ {
++  gic_cpu_if_down(0);
+   imx6_set_lpm(STOP_POWER_OFF);
+   imx6q_suspend_finish(0);
+ 
+diff --git a/arch/arm/mach-omap2/omap_hwmod.c 
b/arch/arm/mach-omap2/omap_hwmod.c
+index eb74aa1826614..6289b288d60a6 100644
+--- a/arch/arm/mach-omap2/omap_hwmod.c

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

2021-10-09 Thread Mike Pagano
commit: 70190753010f3b562210947c1bad735efe8fe38c
Author: Mike Pagano  gentoo  org>
AuthorDate: Sat Oct  9 21:32:09 2021 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sat Oct  9 21:32:09 2021 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=70190753

Linux patch 5.4.152

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

 _README  |   4 +
 1151_linux-5.4.152.patch | 426 +++
 2 files changed, 430 insertions(+)

diff --git a/_README b/_README
index dd4e25f..d41d541 100644
--- a/_README
+++ b/_README
@@ -647,6 +647,10 @@ Patch:  1150_linux-5.4.151.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.151
 
+Patch:  1151_linux-5.4.152.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.152
+
 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/1151_linux-5.4.152.patch b/1151_linux-5.4.152.patch
new file mode 100644
index 000..b624b1a
--- /dev/null
+++ b/1151_linux-5.4.152.patch
@@ -0,0 +1,426 @@
+diff --git a/Makefile b/Makefile
+index 4eeb72027815b..ffcdc36c56f54 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 151
++SUBLEVEL = 152
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/sparc/lib/iomap.c b/arch/sparc/lib/iomap.c
+index c9da9f139694d..f3a8cd491ce0d 100644
+--- a/arch/sparc/lib/iomap.c
 b/arch/sparc/lib/iomap.c
+@@ -19,8 +19,10 @@ void ioport_unmap(void __iomem *addr)
+ EXPORT_SYMBOL(ioport_map);
+ EXPORT_SYMBOL(ioport_unmap);
+ 
++#ifdef CONFIG_PCI
+ void pci_iounmap(struct pci_dev *dev, void __iomem * addr)
+ {
+   /* nothing to do */
+ }
+ EXPORT_SYMBOL(pci_iounmap);
++#endif
+diff --git a/arch/x86/events/core.c b/arch/x86/events/core.c
+index e622158f56598..00bccb4d17722 100644
+--- a/arch/x86/events/core.c
 b/arch/x86/events/core.c
+@@ -2108,6 +2108,7 @@ static int x86_pmu_event_init(struct perf_event *event)
+   if (err) {
+   if (event->destroy)
+   event->destroy(event);
++  event->destroy = NULL;
+   }
+ 
+   if (READ_ONCE(x86_pmu.attr_rdpmc) &&
+diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
+index f1a0eebdcf641..0aaf40be956ff 100644
+--- a/arch/x86/kvm/x86.c
 b/arch/x86/kvm/x86.c
+@@ -1239,6 +1239,13 @@ static const u32 msrs_to_save_all[] = {
+   MSR_ARCH_PERFMON_EVENTSEL0 + 12, MSR_ARCH_PERFMON_EVENTSEL0 + 13,
+   MSR_ARCH_PERFMON_EVENTSEL0 + 14, MSR_ARCH_PERFMON_EVENTSEL0 + 15,
+   MSR_ARCH_PERFMON_EVENTSEL0 + 16, MSR_ARCH_PERFMON_EVENTSEL0 + 17,
++
++  MSR_K7_EVNTSEL0, MSR_K7_EVNTSEL1, MSR_K7_EVNTSEL2, MSR_K7_EVNTSEL3,
++  MSR_K7_PERFCTR0, MSR_K7_PERFCTR1, MSR_K7_PERFCTR2, MSR_K7_PERFCTR3,
++  MSR_F15H_PERF_CTL0, MSR_F15H_PERF_CTL1, MSR_F15H_PERF_CTL2,
++  MSR_F15H_PERF_CTL3, MSR_F15H_PERF_CTL4, MSR_F15H_PERF_CTL5,
++  MSR_F15H_PERF_CTR0, MSR_F15H_PERF_CTR1, MSR_F15H_PERF_CTR2,
++  MSR_F15H_PERF_CTR3, MSR_F15H_PERF_CTR4, MSR_F15H_PERF_CTR5,
+ };
+ 
+ static u32 msrs_to_save[ARRAY_SIZE(msrs_to_save_all)];
+diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
+index 5c354c7aff946..7c6c05fd5dfc3 100644
+--- a/drivers/ata/libata-core.c
 b/drivers/ata/libata-core.c
+@@ -2252,6 +2252,25 @@ static void ata_dev_config_ncq_prio(struct ata_device 
*dev)
+ 
+ }
+ 
++static bool ata_dev_check_adapter(struct ata_device *dev,
++unsigned short vendor_id)
++{
++  struct pci_dev *pcidev = NULL;
++  struct device *parent_dev = NULL;
++
++  for (parent_dev = dev->tdev.parent; parent_dev != NULL;
++   parent_dev = parent_dev->parent) {
++  if (dev_is_pci(parent_dev)) {
++  pcidev = to_pci_dev(parent_dev);
++  if (pcidev->vendor == vendor_id)
++  return true;
++  break;
++  }
++  }
++
++  return false;
++}
++
+ static int ata_dev_config_ncq(struct ata_device *dev,
+  char *desc, size_t desc_sz)
+ {
+@@ -2268,6 +2287,13 @@ static int ata_dev_config_ncq(struct ata_device *dev,
+   snprintf(desc, desc_sz, "NCQ (not used)");
+   return 0;
+   }
++
++  if (dev->horkage & ATA_HORKAGE_NO_NCQ_ON_ATI &&
++  ata_dev_check_adapter(dev, PCI_VENDOR_ID_ATI)) {
++  snprintf(desc, desc_sz, "NCQ (not used)");
++  return 0;
++  }
++
+   if (ap->flags & ATA_FLAG_NCQ) {
+   hdepth = min(ap->scsi_host->can_queue, ATA_MAX_QUEUE);
+   dev->flags |= ATA_DFLAG_NCQ;
+@@ -4557,9 +4583,11 @@ static const struct ata_blacklist_entry 
ata_device_blacklist [] = {
+   { "Samsung SSD 850*",   NULL,   ATA_HORKAGE_NO_NCQ_TRIM |
+   

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

2021-10-06 Thread Mike Pagano
commit: cbc948306936e9e0354646f92070d6f7f7c44efd
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Oct  6 14:06:26 2021 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Oct  6 14:06:26 2021 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=cbc94830

Linux patch 5.4.151

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

 _README  |4 +
 1150_linux-5.4.151.patch | 1804 ++
 2 files changed, 1808 insertions(+)

diff --git a/_README b/_README
index a878738..dd4e25f 100644
--- a/_README
+++ b/_README
@@ -643,6 +643,10 @@ Patch:  1149_linux-5.4.150.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.150
 
+Patch:  1150_linux-5.4.151.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.151
+
 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/1150_linux-5.4.151.patch b/1150_linux-5.4.151.patch
new file mode 100644
index 000..5c5dbac
--- /dev/null
+++ b/1150_linux-5.4.151.patch
@@ -0,0 +1,1804 @@
+diff --git a/Makefile b/Makefile
+index c6b3a3d62f6ca..4eeb72027815b 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 150
++SUBLEVEL = 151
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/x86/events/intel/core.c b/arch/x86/events/intel/core.c
+index 9cb3266e148dc..70758f99c9e47 100644
+--- a/arch/x86/events/intel/core.c
 b/arch/x86/events/intel/core.c
+@@ -259,6 +259,7 @@ static struct event_constraint 
intel_icl_event_constraints[] = {
+   INTEL_EVENT_CONSTRAINT_RANGE(0xa8, 0xb0, 0xf),
+   INTEL_EVENT_CONSTRAINT_RANGE(0xb7, 0xbd, 0xf),
+   INTEL_EVENT_CONSTRAINT_RANGE(0xd0, 0xe6, 0xf),
++  INTEL_EVENT_CONSTRAINT(0xef, 0xf),
+   INTEL_EVENT_CONSTRAINT_RANGE(0xf0, 0xf4, 0xf),
+   EVENT_CONSTRAINT_END
+ };
+diff --git a/arch/x86/include/asm/kvmclock.h b/arch/x86/include/asm/kvmclock.h
+index eceea92990974..6c57651921028 100644
+--- a/arch/x86/include/asm/kvmclock.h
 b/arch/x86/include/asm/kvmclock.h
+@@ -2,6 +2,20 @@
+ #ifndef _ASM_X86_KVM_CLOCK_H
+ #define _ASM_X86_KVM_CLOCK_H
+ 
++#include 
++
+ extern struct clocksource kvm_clock;
+ 
++DECLARE_PER_CPU(struct pvclock_vsyscall_time_info *, hv_clock_per_cpu);
++
++static inline struct pvclock_vcpu_time_info *this_cpu_pvti(void)
++{
++  return _cpu_read(hv_clock_per_cpu)->pvti;
++}
++
++static inline struct pvclock_vsyscall_time_info *this_cpu_hvclock(void)
++{
++  return this_cpu_read(hv_clock_per_cpu);
++}
++
+ #endif /* _ASM_X86_KVM_CLOCK_H */
+diff --git a/arch/x86/kernel/kvmclock.c b/arch/x86/kernel/kvmclock.c
+index 4a0802af2e3e0..d81e34e614e00 100644
+--- a/arch/x86/kernel/kvmclock.c
 b/arch/x86/kernel/kvmclock.c
+@@ -50,18 +50,9 @@ early_param("no-kvmclock-vsyscall", 
parse_no_kvmclock_vsyscall);
+ static struct pvclock_vsyscall_time_info
+   hv_clock_boot[HVC_BOOT_ARRAY_SIZE] __bss_decrypted 
__aligned(PAGE_SIZE);
+ static struct pvclock_wall_clock wall_clock __bss_decrypted;
+-static DEFINE_PER_CPU(struct pvclock_vsyscall_time_info *, hv_clock_per_cpu);
+ static struct pvclock_vsyscall_time_info *hvclock_mem;
+-
+-static inline struct pvclock_vcpu_time_info *this_cpu_pvti(void)
+-{
+-  return _cpu_read(hv_clock_per_cpu)->pvti;
+-}
+-
+-static inline struct pvclock_vsyscall_time_info *this_cpu_hvclock(void)
+-{
+-  return this_cpu_read(hv_clock_per_cpu);
+-}
++DEFINE_PER_CPU(struct pvclock_vsyscall_time_info *, hv_clock_per_cpu);
++EXPORT_PER_CPU_SYMBOL_GPL(hv_clock_per_cpu);
+ 
+ /*
+  * The wallclock is the time of day when we booted. Since then, some time may
+diff --git a/block/bfq-iosched.c b/block/bfq-iosched.c
+index 8dee243e639f0..73bffd7af15c1 100644
+--- a/block/bfq-iosched.c
 b/block/bfq-iosched.c
+@@ -2523,15 +2523,6 @@ bfq_setup_merge(struct bfq_queue *bfqq, struct 
bfq_queue *new_bfqq)
+* are likely to increase the throughput.
+*/
+   bfqq->new_bfqq = new_bfqq;
+-  /*
+-   * The above assignment schedules the following redirections:
+-   * each time some I/O for bfqq arrives, the process that
+-   * generated that I/O is disassociated from bfqq and
+-   * associated with new_bfqq. Here we increases new_bfqq->ref
+-   * in advance, adding the number of processes that are
+-   * expected to be associated with new_bfqq as they happen to
+-   * issue I/O.
+-   */
+   new_bfqq->ref += process_refs;
+   return new_bfqq;
+ }
+@@ -2591,10 +2582,6 @@ bfq_setup_cooperator(struct bfq_data *bfqd, struct 
bfq_queue *bfqq,
+ {
+   struct bfq_queue *in_service_bfqq, *new_bfqq;
+ 
+-  /* if a merge has already been setup, then proceed with that first */
+-  if (bfqq->new_bfqq)
+-  return bfqq->new_bfqq;
+-
+   /*
+* Do not perform queue merging if the 

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

2021-09-30 Thread Mike Pagano
commit: c1eec10c568d0a28f11c2ed5f9141dbae3e66fa2
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Sep 30 10:49:36 2021 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu Sep 30 10:49:36 2021 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=c1eec10c

Linux patch 5.4.150

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

 _README  |4 +
 1149_linux-5.4.150.patch | 2559 ++
 2 files changed, 2563 insertions(+)

diff --git a/_README b/_README
index 734dc7b..a878738 100644
--- a/_README
+++ b/_README
@@ -639,6 +639,10 @@ Patch:  1148_linux-5.4.149.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.149
 
+Patch:  1149_linux-5.4.150.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.150
+
 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/1149_linux-5.4.150.patch b/1149_linux-5.4.150.patch
new file mode 100644
index 000..a01e3d7
--- /dev/null
+++ b/1149_linux-5.4.150.patch
@@ -0,0 +1,2559 @@
+diff --git a/Makefile b/Makefile
+index 1834f47fbaf61..c6b3a3d62f6ca 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 149
++SUBLEVEL = 150
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/alpha/include/asm/io.h b/arch/alpha/include/asm/io.h
+index 103270d5a9fc6..66a384a4ddbad 100644
+--- a/arch/alpha/include/asm/io.h
 b/arch/alpha/include/asm/io.h
+@@ -61,7 +61,7 @@ extern inline void set_hae(unsigned long new_hae)
+  * Change virtual addresses to physical addresses and vv.
+  */
+ #ifdef USE_48_BIT_KSEG
+-static inline unsigned long virt_to_phys(void *address)
++static inline unsigned long virt_to_phys(volatile void *address)
+ {
+   return (unsigned long)address - IDENT_ADDR;
+ }
+@@ -71,7 +71,7 @@ static inline void * phys_to_virt(unsigned long address)
+   return (void *) (address + IDENT_ADDR);
+ }
+ #else
+-static inline unsigned long virt_to_phys(void *address)
++static inline unsigned long virt_to_phys(volatile void *address)
+ {
+ unsigned long phys = (unsigned long)address;
+ 
+@@ -107,7 +107,7 @@ static inline void * phys_to_virt(unsigned long address)
+ extern unsigned long __direct_map_base;
+ extern unsigned long __direct_map_size;
+ 
+-static inline unsigned long __deprecated virt_to_bus(void *address)
++static inline unsigned long __deprecated virt_to_bus(volatile void *address)
+ {
+   unsigned long phys = virt_to_phys(address);
+   unsigned long bus = phys + __direct_map_base;
+diff --git a/arch/arm64/boot/dts/marvell/armada-3720-turris-mox.dts 
b/arch/arm64/boot/dts/marvell/armada-3720-turris-mox.dts
+index 025e02d23da9b..de0eabff29353 100644
+--- a/arch/arm64/boot/dts/marvell/armada-3720-turris-mox.dts
 b/arch/arm64/boot/dts/marvell/armada-3720-turris-mox.dts
+@@ -138,6 +138,23 @@
+   max-link-speed = <2>;
+   reset-gpios = < 3 GPIO_ACTIVE_LOW>;
+   phys = < 0>;
++  /*
++   * U-Boot port for Turris Mox has a bug which always expects that 
"ranges" DT property
++   * contains exactly 2 ranges with 3 (child) address cells, 2 (parent) 
address cells and
++   * 2 size cells and also expects that the second range starts at 16 MB 
offset. If these
++   * conditions are not met then U-Boot crashes during loading kernel DTB 
file. PCIe address
++   * space is 128 MB long, so the best split between MEM and IO is to use 
fixed 16 MB window
++   * for IO and the rest 112 MB (64+32+16) for MEM, despite that maximal 
IO size is just 64 kB.
++   * This bug is not present in U-Boot ports for other Armada 3700 
devices and is fixed in
++   * U-Boot version 2021.07. See relevant U-Boot commits (the last one 
contains fix):
++   * 
https://source.denx.de/u-boot/u-boot/-/commit/cb2ddb291ee6fcbddd6d8f4ff49089dfe580f5d7
++   * 
https://source.denx.de/u-boot/u-boot/-/commit/c64ac3b3185aeb3846297ad7391fc6df8ecd73bf
++   * 
https://source.denx.de/u-boot/u-boot/-/commit/4a82fca8e330157081fc132a591ebd99ba02ee33
++   */
++  #address-cells = <3>;
++  #size-cells = <2>;
++  ranges = <0x8100 0 0xe800   0 0xe800   0 0x0100   /* 
Port 0 IO */
++0x8200 0 0xe900   0 0xe900   0 0x0700>; /* 
Port 0 MEM */
+ 
+   /* enabled by U-Boot if PCIe module is present */
+   status = "disabled";
+diff --git a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi 
b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
+index 52767037e0494..c28611c1c251a 100644
+--- a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
 b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
+@@ -487,8 +487,15 @@
+   #interrupt-cells = <1>;
+   msi-parent = <>;
+   msi-controller;
+-  ranges = <0x8200 0 

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

2021-09-26 Thread Mike Pagano
commit: 7caea846fb4b5925a39740c3246848a7ba77e423
Author: Mike Pagano  gentoo  org>
AuthorDate: Sun Sep 26 14:13:00 2021 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sun Sep 26 14:13:00 2021 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=7caea846

Linux patch 5.4.149

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

 _README  |4 +
 1148_linux-5.4.149.patch | 1792 ++
 2 files changed, 1796 insertions(+)

diff --git a/_README b/_README
index b620b8f..734dc7b 100644
--- a/_README
+++ b/_README
@@ -635,6 +635,10 @@ Patch:  1147_linux-5.4.148.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.148
 
+Patch:  1148_linux-5.4.149.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.149
+
 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/1148_linux-5.4.149.patch b/1148_linux-5.4.149.patch
new file mode 100644
index 000..50a8c8e
--- /dev/null
+++ b/1148_linux-5.4.149.patch
@@ -0,0 +1,1792 @@
+diff --git a/Makefile b/Makefile
+index b84706c6d6248..1834f47fbaf61 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 148
++SUBLEVEL = 149
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arm/include/asm/ftrace.h b/arch/arm/include/asm/ftrace.h
+index 18b0197f23848..15bd9af13497f 100644
+--- a/arch/arm/include/asm/ftrace.h
 b/arch/arm/include/asm/ftrace.h
+@@ -16,6 +16,9 @@ extern void __gnu_mcount_nc(void);
+ 
+ #ifdef CONFIG_DYNAMIC_FTRACE
+ struct dyn_arch_ftrace {
++#ifdef CONFIG_ARM_MODULE_PLTS
++  struct module *mod;
++#endif
+ };
+ 
+ static inline unsigned long ftrace_call_adjust(unsigned long addr)
+diff --git a/arch/arm/include/asm/insn.h b/arch/arm/include/asm/insn.h
+index f20e08ac85aeb..5475cbf9fb6b4 100644
+--- a/arch/arm/include/asm/insn.h
 b/arch/arm/include/asm/insn.h
+@@ -13,18 +13,18 @@ arm_gen_nop(void)
+ }
+ 
+ unsigned long
+-__arm_gen_branch(unsigned long pc, unsigned long addr, bool link);
++__arm_gen_branch(unsigned long pc, unsigned long addr, bool link, bool warn);
+ 
+ static inline unsigned long
+ arm_gen_branch(unsigned long pc, unsigned long addr)
+ {
+-  return __arm_gen_branch(pc, addr, false);
++  return __arm_gen_branch(pc, addr, false, true);
+ }
+ 
+ static inline unsigned long
+-arm_gen_branch_link(unsigned long pc, unsigned long addr)
++arm_gen_branch_link(unsigned long pc, unsigned long addr, bool warn)
+ {
+-  return __arm_gen_branch(pc, addr, true);
++  return __arm_gen_branch(pc, addr, true, warn);
+ }
+ 
+ #endif
+diff --git a/arch/arm/include/asm/module.h b/arch/arm/include/asm/module.h
+index 182163b55546c..961fedbd810ec 100644
+--- a/arch/arm/include/asm/module.h
 b/arch/arm/include/asm/module.h
+@@ -19,8 +19,18 @@ enum {
+ };
+ #endif
+ 
++#define PLT_ENT_STRIDEL1_CACHE_BYTES
++#define PLT_ENT_COUNT (PLT_ENT_STRIDE / sizeof(u32))
++#define PLT_ENT_SIZE  (sizeof(struct plt_entries) / PLT_ENT_COUNT)
++
++struct plt_entries {
++  u32 ldr[PLT_ENT_COUNT];
++  u32 lit[PLT_ENT_COUNT];
++};
++
+ struct mod_plt_sec {
+   struct elf32_shdr   *plt;
++  struct plt_entries  *plt_ent;
+   int plt_count;
+ };
+ 
+diff --git a/arch/arm/kernel/ftrace.c b/arch/arm/kernel/ftrace.c
+index bda949fd84e8b..12b6da56f88dd 100644
+--- a/arch/arm/kernel/ftrace.c
 b/arch/arm/kernel/ftrace.c
+@@ -71,9 +71,10 @@ int ftrace_arch_code_modify_post_process(void)
+   return 0;
+ }
+ 
+-static unsigned long ftrace_call_replace(unsigned long pc, unsigned long addr)
++static unsigned long ftrace_call_replace(unsigned long pc, unsigned long addr,
++   bool warn)
+ {
+-  return arm_gen_branch_link(pc, addr);
++  return arm_gen_branch_link(pc, addr, warn);
+ }
+ 
+ static int ftrace_modify_code(unsigned long pc, unsigned long old,
+@@ -112,14 +113,14 @@ int ftrace_update_ftrace_func(ftrace_func_t func)
+   int ret;
+ 
+   pc = (unsigned long)_call;
+-  new = ftrace_call_replace(pc, (unsigned long)func);
++  new = ftrace_call_replace(pc, (unsigned long)func, true);
+ 
+   ret = ftrace_modify_code(pc, 0, new, false);
+ 
+ #ifdef CONFIG_DYNAMIC_FTRACE_WITH_REGS
+   if (!ret) {
+   pc = (unsigned long)_regs_call;
+-  new = ftrace_call_replace(pc, (unsigned long)func);
++  new = ftrace_call_replace(pc, (unsigned long)func, true);
+ 
+   ret = ftrace_modify_code(pc, 0, new, false);
+   }
+@@ -132,10 +133,22 @@ int ftrace_make_call(struct dyn_ftrace *rec, unsigned 
long addr)
+ {
+   unsigned long new, old;
+   unsigned long ip = rec->ip;
++  unsigned long aaddr = adjust_address(rec, addr);
++  struct module *mod = NULL;
++

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

2021-09-20 Thread Mike Pagano
commit: 648df0018354b0cd0adbaafc85c98c526a64cb45
Author: Mike Pagano  gentoo  org>
AuthorDate: Mon Sep 20 22:03:10 2021 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Mon Sep 20 22:03:10 2021 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=648df001

Move USER_NS to GENTOO_LINUX_PORTAGE

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

 4567_distro-Gentoo-Kconfig.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/4567_distro-Gentoo-Kconfig.patch b/4567_distro-Gentoo-Kconfig.patch
index 72a3a32..62b59d6 100644
--- a/4567_distro-Gentoo-Kconfig.patch
+++ b/4567_distro-Gentoo-Kconfig.patch
@@ -65,6 +65,7 @@
 +  select NET_NS
 +  select PID_NS
 +  select SYSVIPC
++  select USER_NS
 +  select UTS_NS
 +
 +  help
@@ -145,7 +146,6 @@
 +  select TIMERFD
 +  select TMPFS_POSIX_ACL
 +  select TMPFS_XATTR
-+  select USER_NS
 +
 +  select ANON_INODES
 +  select BLOCK



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

2021-09-16 Thread Mike Pagano
commit: afc259e522958b1fad1850233f82662881910da5
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu Sep 16 11:19:18 2021 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu Sep 16 11:19:18 2021 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=afc259e5

Linux patch 5.4.147

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

 _README  |  4 ++
 1146_linux-5.4.147.patch | 97 
 2 files changed, 101 insertions(+)

diff --git a/_README b/_README
index f0cfe0c..4d2be88 100644
--- a/_README
+++ b/_README
@@ -627,6 +627,10 @@ Patch:  1145_linux-5.4.146.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.146
 
+Patch:  1146_linux-5.4.147.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.147
+
 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/1146_linux-5.4.147.patch b/1146_linux-5.4.147.patch
new file mode 100644
index 000..472a6d8
--- /dev/null
+++ b/1146_linux-5.4.147.patch
@@ -0,0 +1,97 @@
+diff --git a/Makefile b/Makefile
+index 48d0c03acfc55..98227dae34947 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 146
++SUBLEVEL = 147
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c
+index bc3ab98855cf0..25e81b1a59a54 100644
+--- a/drivers/block/nbd.c
 b/drivers/block/nbd.c
+@@ -1744,17 +1744,7 @@ static int nbd_dev_add(int index)
+   refcount_set(>refs, 1);
+   INIT_LIST_HEAD(>list);
+   disk->major = NBD_MAJOR;
+-
+-  /* Too big first_minor can cause duplicate creation of
+-   * sysfs files/links, since first_minor will be truncated to
+-   * byte in __device_add_disk().
+-   */
+   disk->first_minor = index << part_shift;
+-  if (disk->first_minor > 0xff) {
+-  err = -EINVAL;
+-  goto out_free_idr;
+-  }
+-
+   disk->fops = _fops;
+   disk->private_data = nbd;
+   sprintf(disk->disk_name, "nbd%d", index);
+diff --git a/include/linux/time64.h b/include/linux/time64.h
+index f6059c505986b..5eab3f2635186 100644
+--- a/include/linux/time64.h
 b/include/linux/time64.h
+@@ -33,9 +33,7 @@ struct itimerspec64 {
+ #define TIME64_MIN(-TIME64_MAX - 1)
+ 
+ #define KTIME_MAX ((s64)~((u64)1 << 63))
+-#define KTIME_MIN (-KTIME_MAX - 1)
+ #define KTIME_SEC_MAX (KTIME_MAX / NSEC_PER_SEC)
+-#define KTIME_SEC_MIN (KTIME_MIN / NSEC_PER_SEC)
+ 
+ /*
+  * Limits for settimeofday():
+@@ -134,13 +132,10 @@ static inline bool timespec64_valid_settod(const struct 
timespec64 *ts)
+  */
+ static inline s64 timespec64_to_ns(const struct timespec64 *ts)
+ {
+-  /* Prevent multiplication overflow / underflow */
+-  if (ts->tv_sec >= KTIME_SEC_MAX)
++  /* Prevent multiplication overflow */
++  if ((unsigned long long)ts->tv_sec >= KTIME_SEC_MAX)
+   return KTIME_MAX;
+ 
+-  if (ts->tv_sec <= KTIME_SEC_MIN)
+-  return KTIME_MIN;
+-
+   return ((s64) ts->tv_sec * NSEC_PER_SEC) + ts->tv_nsec;
+ }
+ 
+diff --git a/kernel/time/posix-cpu-timers.c b/kernel/time/posix-cpu-timers.c
+index 30e061b210b7c..eacb0ca301932 100644
+--- a/kernel/time/posix-cpu-timers.c
 b/kernel/time/posix-cpu-timers.c
+@@ -1201,6 +1201,8 @@ void set_process_cpu_timer(struct task_struct *tsk, 
unsigned int clkid,
+   }
+   }
+ 
++  if (!*newval)
++  return;
+   *newval += now;
+   }
+ 
+diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
+index bdd330527cfa2..c50e3e8afbd34 100644
+--- a/net/bluetooth/hci_core.c
 b/net/bluetooth/hci_core.c
+@@ -1691,14 +1691,6 @@ int hci_dev_do_close(struct hci_dev *hdev)
+   hci_request_cancel_all(hdev);
+   hci_req_sync_lock(hdev);
+ 
+-  if (!hci_dev_test_flag(hdev, HCI_UNREGISTER) &&
+-  !hci_dev_test_flag(hdev, HCI_USER_CHANNEL) &&
+-  test_bit(HCI_UP, >flags)) {
+-  /* Execute vendor specific shutdown routine */
+-  if (hdev->shutdown)
+-  hdev->shutdown(hdev);
+-  }
+-
+   if (!test_and_clear_bit(HCI_UP, >flags)) {
+   cancel_delayed_work_sync(>cmd_timer);
+   hci_req_sync_unlock(hdev);



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

2021-09-12 Thread Mike Pagano
commit: 783270ff21e13e4527333d3b0118d6745ae4c2de
Author: Mike Pagano  gentoo  org>
AuthorDate: Sun Sep 12 14:38:34 2021 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Sun Sep 12 14:38:34 2021 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=783270ff

Loinux patch 5.4.145

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

 _README  |4 +
 1144_linux-5.4.145.patch | 1373 ++
 2 files changed, 1377 insertions(+)

diff --git a/_README b/_README
index 856bee4..0712ff5 100644
--- a/_README
+++ b/_README
@@ -619,6 +619,10 @@ Patch:  1143_linux-5.4.144.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.144
 
+Patch:  1144_linux-5.4.145.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.145
+
 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/1144_linux-5.4.145.patch b/1144_linux-5.4.145.patch
new file mode 100644
index 000..0413ae4
--- /dev/null
+++ b/1144_linux-5.4.145.patch
@@ -0,0 +1,1373 @@
+diff --git a/Makefile b/Makefile
+index 3c3804197b511..c32a36c8ffc90 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 144
++SUBLEVEL = 145
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig
+index 8383155c8c824..a9d0b5310165f 100644
+--- a/arch/arc/Kconfig
 b/arch/arc/Kconfig
+@@ -29,6 +29,7 @@ config ARC
+   select GENERIC_SMP_IDLE_THREAD
+   select HAVE_ARCH_KGDB
+   select HAVE_ARCH_TRACEHOOK
++  select HAVE_COPY_THREAD_TLS
+   select HAVE_DEBUG_STACKOVERFLOW
+   select HAVE_FUTEX_CMPXCHG if FUTEX
+   select HAVE_IOREMAP_PROT
+diff --git a/arch/arc/include/asm/syscalls.h b/arch/arc/include/asm/syscalls.h
+index 7ddba13e9b599..c3f4714a4f5cd 100644
+--- a/arch/arc/include/asm/syscalls.h
 b/arch/arc/include/asm/syscalls.h
+@@ -11,6 +11,7 @@
+ #include 
+ 
+ int sys_clone_wrapper(int, int, int, int, int);
++int sys_clone3_wrapper(void *, size_t);
+ int sys_cacheflush(uint32_t, uint32_t uint32_t);
+ int sys_arc_settls(void *);
+ int sys_arc_gettls(void);
+diff --git a/arch/arc/include/uapi/asm/unistd.h 
b/arch/arc/include/uapi/asm/unistd.h
+index 5eafa11151623..fa2713ae6bea5 100644
+--- a/arch/arc/include/uapi/asm/unistd.h
 b/arch/arc/include/uapi/asm/unistd.h
+@@ -21,6 +21,7 @@
+ #define __ARCH_WANT_SET_GET_RLIMIT
+ #define __ARCH_WANT_SYS_EXECVE
+ #define __ARCH_WANT_SYS_CLONE
++#define __ARCH_WANT_SYS_CLONE3
+ #define __ARCH_WANT_SYS_VFORK
+ #define __ARCH_WANT_SYS_FORK
+ #define __ARCH_WANT_TIME32_SYSCALLS
+diff --git a/arch/arc/kernel/entry.S b/arch/arc/kernel/entry.S
+index b37ca852a9f7e..cef1d3f2656f6 100644
+--- a/arch/arc/kernel/entry.S
 b/arch/arc/kernel/entry.S
+@@ -35,6 +35,18 @@ ENTRY(sys_clone_wrapper)
+   b .Lret_from_system_call
+ END(sys_clone_wrapper)
+ 
++ENTRY(sys_clone3_wrapper)
++  SAVE_CALLEE_SAVED_USER
++  bl  @sys_clone3
++  DISCARD_CALLEE_SAVED_USER
++
++  GET_CURR_THR_INFO_FLAGS   r10
++  btst r10, TIF_SYSCALL_TRACE
++  bnz  tracesys_exit
++
++  b .Lret_from_system_call
++END(sys_clone3_wrapper)
++
+ ENTRY(ret_from_fork)
+   ; when the forked child comes here from the __switch_to function
+   ; r0 has the last task pointer.
+diff --git a/arch/arc/kernel/process.c b/arch/arc/kernel/process.c
+index e1889ce3faf96..bfd4cbe74aa36 100644
+--- a/arch/arc/kernel/process.c
 b/arch/arc/kernel/process.c
+@@ -171,9 +171,8 @@ asmlinkage void ret_from_fork(void);
+  * |user_r25|
+  * --  <= END of PAGE
+  */
+-int copy_thread(unsigned long clone_flags,
+-  unsigned long usp, unsigned long kthread_arg,
+-  struct task_struct *p)
++int copy_thread_tls(unsigned long clone_flags, unsigned long usp,
++  unsigned long kthread_arg, struct task_struct *p, unsigned long tls)
+ {
+   struct pt_regs *c_regs;/* child's pt_regs */
+   unsigned long *childksp;   /* to unwind out of __switch_to() */
+@@ -231,7 +230,7 @@ int copy_thread(unsigned long clone_flags,
+* set task's userland tls data ptr from 4th arg
+* clone C-lib call is difft from clone sys-call
+*/
+-  task_thread_info(p)->thr_ptr = regs->r3;
++  task_thread_info(p)->thr_ptr = tls;
+   } else {
+   /* Normal fork case: set parent's TLS ptr in child */
+   task_thread_info(p)->thr_ptr =
+diff --git a/arch/arc/kernel/sys.c b/arch/arc/kernel/sys.c
+index fddecc76efb7c..1069446bdc589 100644
+--- a/arch/arc/kernel/sys.c
 b/arch/arc/kernel/sys.c
+@@ -7,6 +7,7 @@
+ #include 
+ 
+ #define sys_clone sys_clone_wrapper
++#define sys_clone3sys_clone3_wrapper
+ 
+ #undef __SYSCALL
+ #define __SYSCALL(nr, call) [nr] = (call),
+diff 

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

2021-09-03 Thread Mike Pagano
commit: b664604626feb273070cdeb2b09618299ca4b519
Author: Mike Pagano  gentoo  org>
AuthorDate: Fri Sep  3 11:21:04 2021 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Fri Sep  3 11:21:04 2021 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=b6646046

Linux patch 5.4.144

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

 _README  |4 +
 1143_linux-5.4.144.patch | 1738 ++
 2 files changed, 1742 insertions(+)

diff --git a/_README b/_README
index ff3..856bee4 100644
--- a/_README
+++ b/_README
@@ -615,6 +615,10 @@ Patch:  1142_linux-5.4.143.patch
 From:   http://www.kernel.org
 Desc:   Linux 5.4.143
 
+Patch:  1143_linux-5.4.144.patch
+From:   http://www.kernel.org
+Desc:   Linux 5.4.144
+
 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/1143_linux-5.4.144.patch b/1143_linux-5.4.144.patch
new file mode 100644
index 000..9bcf3a4
--- /dev/null
+++ b/1143_linux-5.4.144.patch
@@ -0,0 +1,1738 @@
+diff --git a/Makefile b/Makefile
+index e99fabc4dfc8c..3c3804197b511 100644
+--- a/Makefile
 b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 5
+ PATCHLEVEL = 4
+-SUBLEVEL = 143
++SUBLEVEL = 144
+ EXTRAVERSION =
+ NAME = Kleptomaniac Octopus
+ 
+diff --git a/arch/arc/kernel/vmlinux.lds.S b/arch/arc/kernel/vmlinux.lds.S
+index 6c693a9d29b6d..0391b8293ad85 100644
+--- a/arch/arc/kernel/vmlinux.lds.S
 b/arch/arc/kernel/vmlinux.lds.S
+@@ -88,6 +88,8 @@ SECTIONS
+   CPUIDLE_TEXT
+   LOCK_TEXT
+   KPROBES_TEXT
++  IRQENTRY_TEXT
++  SOFTIRQENTRY_TEXT
+   *(.fixup)
+   *(.gnu.warning)
+   }
+diff --git a/arch/arm64/boot/dts/qcom/msm8994-angler-rev-101.dts 
b/arch/arm64/boot/dts/qcom/msm8994-angler-rev-101.dts
+index a5f9a6ab512c4..9b989cc30edc8 100644
+--- a/arch/arm64/boot/dts/qcom/msm8994-angler-rev-101.dts
 b/arch/arm64/boot/dts/qcom/msm8994-angler-rev-101.dts
+@@ -30,3 +30,7 @@
+   };
+   };
+ };
++
++ {
++  gpio-reserved-ranges = <85 4>;
++};
+diff --git a/arch/parisc/include/asm/string.h 
b/arch/parisc/include/asm/string.h
+index 4a0c9dbd62fd0..f6e1132f4e352 100644
+--- a/arch/parisc/include/asm/string.h
 b/arch/parisc/include/asm/string.h
+@@ -8,19 +8,4 @@ extern void * memset(void *, int, size_t);
+ #define __HAVE_ARCH_MEMCPY
+ void * memcpy(void * dest,const void *src,size_t count);
+ 
+-#define __HAVE_ARCH_STRLEN
+-extern size_t strlen(const char *s);
+-
+-#define __HAVE_ARCH_STRCPY
+-extern char *strcpy(char *dest, const char *src);
+-
+-#define __HAVE_ARCH_STRNCPY
+-extern char *strncpy(char *dest, const char *src, size_t count);
+-
+-#define __HAVE_ARCH_STRCAT
+-extern char *strcat(char *dest, const char *src);
+-
+-#define __HAVE_ARCH_MEMSET
+-extern void *memset(void *, int, size_t);
+-
+ #endif
+diff --git a/arch/parisc/kernel/parisc_ksyms.c 
b/arch/parisc/kernel/parisc_ksyms.c
+index 8ed409ecec933..e8a6a751dfd8e 100644
+--- a/arch/parisc/kernel/parisc_ksyms.c
 b/arch/parisc/kernel/parisc_ksyms.c
+@@ -17,10 +17,6 @@
+ 
+ #include 
+ EXPORT_SYMBOL(memset);
+-EXPORT_SYMBOL(strlen);
+-EXPORT_SYMBOL(strcpy);
+-EXPORT_SYMBOL(strncpy);
+-EXPORT_SYMBOL(strcat);
+ 
+ #include 
+ EXPORT_SYMBOL(__xchg8);
+diff --git a/arch/parisc/lib/Makefile b/arch/parisc/lib/Makefile
+index 2d7a9974dbaef..7b197667faf6c 100644
+--- a/arch/parisc/lib/Makefile
 b/arch/parisc/lib/Makefile
+@@ -3,7 +3,7 @@
+ # Makefile for parisc-specific library files
+ #
+ 
+-lib-y := lusercopy.o bitops.o checksum.o io.o memcpy.o \
+- ucmpdi2.o delay.o string.o
++lib-y := lusercopy.o bitops.o checksum.o io.o memset.o memcpy.o \
++ ucmpdi2.o delay.o
+ 
+ obj-y := iomap.o
+diff --git a/arch/parisc/lib/memset.c b/arch/parisc/lib/memset.c
+new file mode 100644
+index 0..133e4809859a3
+--- /dev/null
 b/arch/parisc/lib/memset.c
+@@ -0,0 +1,72 @@
++/* SPDX-License-Identifier: GPL-2.0-or-later */
++#include 
++#include 
++
++#define OPSIZ (BITS_PER_LONG/8)
++typedef unsigned long op_t;
++
++void *
++memset (void *dstpp, int sc, size_t len)
++{
++  unsigned int c = sc;
++  long int dstp = (long int) dstpp;
++
++  if (len >= 8)
++{
++  size_t xlen;
++  op_t ;
++
++   = (unsigned char) c;
++   |=  << 8;
++   |=  << 16;
++  if (OPSIZ > 4)
++  /* Do the shift in two steps to avoid warning if long has 32 bits.  */
++   |= ( << 16) << 16;
++
++  /* There are at least some bytes to set.
++   No need to test for LEN == 0 in this alignment loop.  */
++  while (dstp % OPSIZ != 0)
++  {
++((unsigned char *) dstp)[0] = c;
++dstp += 1;
++len -= 1;
++  }
++
++  /* Write 8 `op_t' per iteration until less than 8 `op_t' remain.  */
++  xlen = 

  1   2   3   >