]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
x86/kprobes: Remove STACK_FRAME_NON_STANDARD annotation
authorJosh Poimboeuf <jpoimboe@kernel.org>
Wed, 17 Sep 2025 16:03:12 +0000 (09:03 -0700)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 14 Oct 2025 21:45:21 +0000 (14:45 -0700)
Since commit 877b145f0f47 ("x86/kprobes: Move trampoline code into
RODATA"), the optprobe template code is no longer analyzed by objtool so
it doesn't need to be ignored.

Acked-by: Petr Mladek <pmladek@suse.com>
Tested-by: Joe Lawrence <joe.lawrence@redhat.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
arch/x86/kernel/kprobes/opt.c

index 0aabd4c4e2c4f6c4eec3fe0e176fe93e46daef7a..6f826a00eca294eea6698af9f7cc505c7a23376e 100644 (file)
@@ -103,7 +103,6 @@ static void synthesize_set_arg1(kprobe_opcode_t *addr, unsigned long val)
 
 asm (
                        ".pushsection .rodata\n"
-                       "optprobe_template_func:\n"
                        ".global optprobe_template_entry\n"
                        "optprobe_template_entry:\n"
 #ifdef CONFIG_X86_64
@@ -160,9 +159,6 @@ asm (
                        "optprobe_template_end:\n"
                        ".popsection\n");
 
-void optprobe_template_func(void);
-STACK_FRAME_NON_STANDARD(optprobe_template_func);
-
 #define TMPL_CLAC_IDX \
        ((long)optprobe_template_clac - (long)optprobe_template_entry)
 #define TMPL_MOVE_IDX \