]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
x86/alternatives: Rename 'poke_int3_handler()' to 'smp_text_poke_int3_handler()'
authorIngo Molnar <mingo@kernel.org>
Fri, 11 Apr 2025 05:40:19 +0000 (07:40 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 11 Apr 2025 09:01:33 +0000 (11:01 +0200)
All related functions in this subsystem already have a
text_poke_int3_ prefix - add it to the trap handler
as well.

Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Juergen Gross <jgross@suse.com>
Cc: "H . Peter Anvin" <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20250411054105.2341982-8-mingo@kernel.org
arch/x86/include/asm/text-patching.h
arch/x86/kernel/alternative.c
arch/x86/kernel/traps.c

index 5189188b5e494426c51c9d2be7d1f1821036a6dc..93a6b7bc78bd589836ab3ce04ddcc8c4b5f78504 100644 (file)
@@ -38,7 +38,7 @@ extern void *text_poke_copy(void *addr, const void *opcode, size_t len);
 #define text_poke_copy text_poke_copy
 extern void *text_poke_copy_locked(void *addr, const void *opcode, size_t len, bool core_ok);
 extern void *text_poke_set(void *addr, int c, size_t len);
-extern int poke_int3_handler(struct pt_regs *regs);
+extern int smp_text_poke_int3_handler(struct pt_regs *regs);
 extern void smp_text_poke_single(void *addr, const void *opcode, size_t len, const void *emulate);
 
 extern void text_poke_queue(void *addr, const void *opcode, size_t len, const void *emulate);
index 222021af790697d129e7c60d91e6a311384e05e4..d2cd0d81513069ef3355c710e1c007ed607df77c 100644 (file)
@@ -2515,7 +2515,7 @@ static __always_inline int patch_cmp(const void *key, const void *elt)
        return 0;
 }
 
-noinstr int poke_int3_handler(struct pt_regs *regs)
+noinstr int smp_text_poke_int3_handler(struct pt_regs *regs)
 {
        struct text_poke_int3_vec *desc;
        struct text_poke_loc *tp;
index 9f88b8a78e50912790077cff0f940c7f601aff33..d67407c623f399d3df6121c2ab0656ff5f51c849 100644 (file)
@@ -882,16 +882,16 @@ static void do_int3_user(struct pt_regs *regs)
 DEFINE_IDTENTRY_RAW(exc_int3)
 {
        /*
-        * poke_int3_handler() is completely self contained code; it does (and
+        * smp_text_poke_int3_handler() is completely self contained code; it does (and
         * must) *NOT* call out to anything, lest it hits upon yet another
         * INT3.
         */
-       if (poke_int3_handler(regs))
+       if (smp_text_poke_int3_handler(regs))
                return;
 
        /*
         * irqentry_enter_from_user_mode() uses static_branch_{,un}likely()
-        * and therefore can trigger INT3, hence poke_int3_handler() must
+        * and therefore can trigger INT3, hence smp_text_poke_int3_handler() must
         * be done before. If the entry came from kernel mode, then use
         * nmi_enter() because the INT3 could have been hit in any context
         * including NMI.