]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.4-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Oct 2021 16:10:06 +0000 (18:10 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Oct 2021 16:10:06 +0000 (18:10 +0200)
added patches:
arm-9133-1-mm-proc-macros-ensure-_tlb_fns-are-4b-aligned.patch
arm-9134-1-remove-duplicate-memcpy-definition.patch
arm-9139-1-kprobes-fix-arch_init_kprobes-prototype.patch

queue-4.14/series [new file with mode: 0644]
queue-4.19/series [new file with mode: 0644]
queue-4.4/arm-9133-1-mm-proc-macros-ensure-_tlb_fns-are-4b-aligned.patch [new file with mode: 0644]
queue-4.4/arm-9134-1-remove-duplicate-memcpy-definition.patch [new file with mode: 0644]
queue-4.4/arm-9139-1-kprobes-fix-arch_init_kprobes-prototype.patch [new file with mode: 0644]
queue-4.4/series [new file with mode: 0644]
queue-4.9/series [new file with mode: 0644]
queue-5.10/series [new file with mode: 0644]
queue-5.14/series [new file with mode: 0644]
queue-5.4/series [new file with mode: 0644]

diff --git a/queue-4.14/series b/queue-4.14/series
new file mode 100644 (file)
index 0000000..c053e8b
--- /dev/null
@@ -0,0 +1,3 @@
+arm-9133-1-mm-proc-macros-ensure-_tlb_fns-are-4b-aligned.patch
+arm-9134-1-remove-duplicate-memcpy-definition.patch
+arm-9139-1-kprobes-fix-arch_init_kprobes-prototype.patch
diff --git a/queue-4.19/series b/queue-4.19/series
new file mode 100644 (file)
index 0000000..8929742
--- /dev/null
@@ -0,0 +1,4 @@
+arm-9133-1-mm-proc-macros-ensure-_tlb_fns-are-4b-aligned.patch
+arm-9134-1-remove-duplicate-memcpy-definition.patch
+arm-9139-1-kprobes-fix-arch_init_kprobes-prototype.patch
+arm-9141-1-only-warn-about-xip-address-when-not-compile-testing.patch
diff --git a/queue-4.4/arm-9133-1-mm-proc-macros-ensure-_tlb_fns-are-4b-aligned.patch b/queue-4.4/arm-9133-1-mm-proc-macros-ensure-_tlb_fns-are-4b-aligned.patch
new file mode 100644 (file)
index 0000000..1f39b11
--- /dev/null
@@ -0,0 +1,41 @@
+From e6a0c958bdf9b2e1b57501fc9433a461f0a6aadd Mon Sep 17 00:00:00 2001
+From: Nick Desaulniers <ndesaulniers@google.com>
+Date: Mon, 4 Oct 2021 18:03:28 +0100
+Subject: ARM: 9133/1: mm: proc-macros: ensure *_tlb_fns are 4B aligned
+
+From: Nick Desaulniers <ndesaulniers@google.com>
+
+commit e6a0c958bdf9b2e1b57501fc9433a461f0a6aadd upstream.
+
+A kernel built with CONFIG_THUMB2_KERNEL=y and using clang as the
+assembler could generate non-naturally-aligned v7wbi_tlb_fns which
+results in a boot failure. The original commit adding the macro missed
+the .align directive on this data.
+
+Link: https://github.com/ClangBuiltLinux/linux/issues/1447
+Link: https://lore.kernel.org/all/0699da7b-354f-aecc-a62f-e25693209af4@linaro.org/
+Debugged-by: Ard Biesheuvel <ardb@kernel.org>
+Debugged-by: Nathan Chancellor <nathan@kernel.org>
+Debugged-by: Richard Henderson <richard.henderson@linaro.org>
+
+Fixes: 66a625a88174 ("ARM: mm: proc-macros: Add generic proc/cache/tlb struct definition macros")
+Suggested-by: Ard Biesheuvel <ardb@kernel.org>
+Acked-by: Ard Biesheuvel <ardb@kernel.org>
+Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
+Tested-by: Nathan Chancellor <nathan@kernel.org>
+Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ arch/arm/mm/proc-macros.S |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/arch/arm/mm/proc-macros.S
++++ b/arch/arm/mm/proc-macros.S
+@@ -327,6 +327,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/queue-4.4/arm-9134-1-remove-duplicate-memcpy-definition.patch b/queue-4.4/arm-9134-1-remove-duplicate-memcpy-definition.patch
new file mode 100644 (file)
index 0000000..5599529
--- /dev/null
@@ -0,0 +1,56 @@
+From eaf6cc7165c9c5aa3c2f9faa03a98598123d0afb Mon Sep 17 00:00:00 2001
+From: Arnd Bergmann <arnd@arndb.de>
+Date: Mon, 18 Oct 2021 15:30:04 +0100
+Subject: ARM: 9134/1: remove duplicate memcpy() definition
+
+From: Arnd Bergmann <arnd@arndb.de>
+
+commit eaf6cc7165c9c5aa3c2f9faa03a98598123d0afb upstream.
+
+Both the decompressor code and the kasan logic try to override
+the memcpy() and memmove()  definitions, which leading to a clash
+in a KASAN-enabled kernel with XZ decompression:
+
+arch/arm/boot/compressed/decompress.c:50:9: error: 'memmove' macro redefined [-Werror,-Wmacro-redefined]
+ #define memmove memmove
+        ^
+arch/arm/include/asm/string.h:59:9: note: previous definition is here
+ #define memmove(dst, src, len) __memmove(dst, src, len)
+        ^
+arch/arm/boot/compressed/decompress.c:51:9: error: 'memcpy' macro redefined [-Werror,-Wmacro-redefined]
+ #define memcpy memcpy
+        ^
+arch/arm/include/asm/string.h:58:9: note: previous definition is here
+ #define memcpy(dst, src, len) __memcpy(dst, src, len)
+        ^
+
+Here we want the set of functions from the decompressor, so undefine
+the other macros before the override.
+
+Link: https://lore.kernel.org/linux-arm-kernel/CACRpkdZYJogU_SN3H9oeVq=zJkRgRT1gDz3xp59gdqWXxw-B=w@mail.gmail.com/
+Link: https://lore.kernel.org/lkml/202105091112.F5rmd4By-lkp@intel.com/
+
+Fixes: d6d51a96c7d6 ("ARM: 9014/2: Replace string mem* functions for KASan")
+Fixes: a7f464f3db93 ("ARM: 7001/2: Wire up support for the XZ decompressor")
+Reported-by: kernel test robot <lkp@intel.com>
+Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
+Signed-off-by: Arnd Bergmann <arnd@arndb.de>
+Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ arch/arm/boot/compressed/decompress.c |    3 +++
+ 1 file changed, 3 insertions(+)
+
+--- a/arch/arm/boot/compressed/decompress.c
++++ b/arch/arm/boot/compressed/decompress.c
+@@ -46,7 +46,10 @@ extern char * strstr(const char * s1, co
+ #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/queue-4.4/arm-9139-1-kprobes-fix-arch_init_kprobes-prototype.patch b/queue-4.4/arm-9139-1-kprobes-fix-arch_init_kprobes-prototype.patch
new file mode 100644 (file)
index 0000000..2504f74
--- /dev/null
@@ -0,0 +1,38 @@
+From 1f323127cab086e4fd618981b1e5edc396eaf0f4 Mon Sep 17 00:00:00 2001
+From: Arnd Bergmann <arnd@arndb.de>
+Date: Mon, 18 Oct 2021 15:30:09 +0100
+Subject: ARM: 9139/1: kprobes: fix arch_init_kprobes() prototype
+
+From: Arnd Bergmann <arnd@arndb.de>
+
+commit 1f323127cab086e4fd618981b1e5edc396eaf0f4 upstream.
+
+With extra warnings enabled, gcc complains about this function
+definition:
+
+arch/arm/probes/kprobes/core.c: In function 'arch_init_kprobes':
+arch/arm/probes/kprobes/core.c:465:12: warning: old-style function definition [-Wold-style-definition]
+  465 | int __init arch_init_kprobes()
+
+Link: https://lore.kernel.org/all/20201027093057.c685a14b386acacb3c449e3d@kernel.org/
+
+Fixes: 24ba613c9d6c ("ARM kprobes: core code")
+Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
+Signed-off-by: Arnd Bergmann <arnd@arndb.de>
+Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ arch/arm/probes/kprobes/core.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/arch/arm/probes/kprobes/core.c
++++ b/arch/arm/probes/kprobes/core.c
+@@ -666,7 +666,7 @@ static struct undef_hook kprobes_arm_bre
+ #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/queue-4.4/series b/queue-4.4/series
new file mode 100644 (file)
index 0000000..c053e8b
--- /dev/null
@@ -0,0 +1,3 @@
+arm-9133-1-mm-proc-macros-ensure-_tlb_fns-are-4b-aligned.patch
+arm-9134-1-remove-duplicate-memcpy-definition.patch
+arm-9139-1-kprobes-fix-arch_init_kprobes-prototype.patch
diff --git a/queue-4.9/series b/queue-4.9/series
new file mode 100644 (file)
index 0000000..c053e8b
--- /dev/null
@@ -0,0 +1,3 @@
+arm-9133-1-mm-proc-macros-ensure-_tlb_fns-are-4b-aligned.patch
+arm-9134-1-remove-duplicate-memcpy-definition.patch
+arm-9139-1-kprobes-fix-arch_init_kprobes-prototype.patch
diff --git a/queue-5.10/series b/queue-5.10/series
new file mode 100644 (file)
index 0000000..f4c28d0
--- /dev/null
@@ -0,0 +1,6 @@
+arm-9132-1-fix-__get_user_check-failure-with-arm-kasan-images.patch
+arm-9133-1-mm-proc-macros-ensure-_tlb_fns-are-4b-aligned.patch
+arm-9134-1-remove-duplicate-memcpy-definition.patch
+arm-9138-1-fix-link-warning-with-xip-frame-pointer.patch
+arm-9139-1-kprobes-fix-arch_init_kprobes-prototype.patch
+arm-9141-1-only-warn-about-xip-address-when-not-compile-testing.patch
diff --git a/queue-5.14/series b/queue-5.14/series
new file mode 100644 (file)
index 0000000..4c074cd
--- /dev/null
@@ -0,0 +1,7 @@
+arm-9132-1-fix-__get_user_check-failure-with-arm-kasan-images.patch
+arm-9133-1-mm-proc-macros-ensure-_tlb_fns-are-4b-aligned.patch
+arm-9134-1-remove-duplicate-memcpy-definition.patch
+arm-9138-1-fix-link-warning-with-xip-frame-pointer.patch
+arm-9139-1-kprobes-fix-arch_init_kprobes-prototype.patch
+arm-9141-1-only-warn-about-xip-address-when-not-compile-testing.patch
+arm-9148-1-handle-config_cpu_endian_be32-in-arch-arm-kernel-head.s.patch
diff --git a/queue-5.4/series b/queue-5.4/series
new file mode 100644 (file)
index 0000000..8929742
--- /dev/null
@@ -0,0 +1,4 @@
+arm-9133-1-mm-proc-macros-ensure-_tlb_fns-are-4b-aligned.patch
+arm-9134-1-remove-duplicate-memcpy-definition.patch
+arm-9139-1-kprobes-fix-arch_init_kprobes-prototype.patch
+arm-9141-1-only-warn-about-xip-address-when-not-compile-testing.patch