]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
fix up fuzz in some 5.10 patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Aug 2023 16:43:47 +0000 (18:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 Aug 2023 16:43:47 +0000 (18:43 +0200)
I based them against the wrong root :(

queue-5.10/x86-cpu-amd-fix-the-div-0-initial-fix-attempt.patch
queue-5.10/x86-cpu-rename-srso_-.-_alias-to-srso_alias_-1.patch

index d98951b08a8ee71d18ae8fbcad0f30132f1e008b..17a363ee59a2381a9b5e598bffd56f2a96f2d687 100644 (file)
@@ -44,7 +44,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  
 --- a/arch/x86/kernel/cpu/amd.c
 +++ b/arch/x86/kernel/cpu/amd.c
-@@ -1331,3 +1331,4 @@ void noinstr amd_clear_divider(void)
+@@ -1332,3 +1332,4 @@ void noinstr amd_clear_divider(void)
        asm volatile(ALTERNATIVE("", "div %2\n\t", X86_BUG_DIV0)
                     :: "a" (0), "d" (0), "r" (1));
  }
index e1cfe0682b59c77681148fe1727a9636e9ef83c1..f24e360e215cc71665cc6a32ac7cbcf1e951243d 100644 (file)
@@ -70,12 +70,12 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
                *(.text.__x86.rethunk_safe)
  #endif
                ALIGN_ENTRY_TEXT_END
-@@ -527,8 +527,8 @@ INIT_PER_CPU(irq_stack_backing_store);
-  * GNU ld cannot do XOR so do: (A | B) - (A & B) in order to compute the XOR
+@@ -533,8 +533,8 @@ INIT_PER_CPU(irq_stack_backing_store);
+  * Instead do: (A | B) - (A & B) in order to compute the XOR
   * of the two function addresses:
   */
--. = ASSERT(((srso_untrain_ret_alias | srso_safe_ret_alias) -
--              (srso_untrain_ret_alias & srso_safe_ret_alias)) == ((1 << 2) | (1 << 8) | (1 << 14) | (1 << 20)),
+-. = ASSERT(((ABSOLUTE(srso_untrain_ret_alias) | srso_safe_ret_alias) -
+-              (ABSOLUTE(srso_untrain_ret_alias) & srso_safe_ret_alias)) == ((1 << 2) | (1 << 8) | (1 << 14) | (1 << 20)),
 +. = ASSERT(((ABSOLUTE(srso_alias_untrain_ret) | srso_alias_safe_ret) -
 +              (ABSOLUTE(srso_alias_untrain_ret) & srso_alias_safe_ret)) == ((1 << 2) | (1 << 8) | (1 << 14) | (1 << 20)),
                "SRSO function pair won't alias");