Skip to contentSkip to conversation

Patch "Revert "LoongArch: Handle percpu handler address for ORC unwinder"" has been added to the 6.12-stable tree

DISCUSSION Huacai Chen 1 participant 1 message Apr 8 1 message not in the archive Stable branch

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi, Sasha,

Quoted 8 lines · Sasha Levin

This is a note to let you know that I've just added the patch titled

Revert "LoongArch: Handle percpu handler address for ORC unwinder"

to the 6.12-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

Quoted 7 lines

The filename of the patch is:
revert-loongarch-handle-percpu-handler-address-for-o.patch
and it can be found in the queue-6.12 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

We only need to revert "LoongArch/orc: Use RCU in all users of __module_address()", and this patch can be applied on top of "LoongArch: Remove unnecessary checks for ORC unwinder".

Huacai

Quoted 60 lines

commit 6694f3167701abd0534f9174b6a94c6f19dc1698

Author: Sasha Levin <[email protected]>
Date:   Tue Apr 7 20:00:56 2026 -0400

Revert "LoongArch: Handle percpu handler address for ORC unwinder"

This reverts commit 8eeb34ae9d4c743b1fd2cf58f9c51def37091cf5.

arch/loongarch/include/asm/setup.h +0 -3
index f81375e5e89c0..3c2fb16b11b64 100644
@@ -7,7 +7,6 @@
 #define _LOONGARCH_SETUP_H
 
 #include <linux/types.h>
-#include <linux/threads.h>
 #include <asm/sections.h>
 #include <uapi/asm/setup.h>
 
@@ -15,8 +14,6 @@
 
 extern unsigned long eentry;
 extern unsigned long tlbrentry;
-extern unsigned long pcpu_handlers[NR_CPUS];
-extern long exception_handlers[VECSIZE * 128 / sizeof(long)];
 extern char init_command_line[COMMAND_LINE_SIZE];
 extern void tlb_init(int cpu);
 extern void cpu_cache_init(void);
arch/loongarch/kernel/unwind_orc.c +1 -15
index e8b95f1bc5786..4924d1ecc4579 100644
@@ -357,21 +357,7 @@ static bool is_entry_func(unsigned long addr)
 
 static inline unsigned long bt_address(unsigned long ra)
 {
-#if defined(CONFIG_NUMA) && !defined(CONFIG_PREEMPT_RT)
-       int cpu;
-       int vec_sz = sizeof(exception_handlers);
-
-       for_each_possible_cpu(cpu) {
-               if (!pcpu_handlers[cpu])
-                       continue;
-
-               if (ra >= pcpu_handlers[cpu] &&
-                   ra < pcpu_handlers[cpu] + vec_sz) {
-                       ra = ra + eentry - pcpu_handlers[cpu];
-                       break;
-               }
-       }
-#endif
+       extern unsigned long eentry;
 
        if (ra >= eentry && ra < eentry +  EXCCODE_INT_END * VECSIZE) {
                unsigned long func;