]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
x86/alternatives: Update comments in int3_emulate_push()
authorIngo Molnar <mingo@kernel.org>
Fri, 11 Apr 2025 05:40:24 +0000 (07:40 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 11 Apr 2025 09:01:33 +0000 (11:01 +0200)
The idtentry macro in entry_64.S hasn't had a create_gap
option for 5 years - update the comment.

(Also clean up the entire comment block while at it.)

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-13-mingo@kernel.org
arch/x86/include/asm/text-patching.h

index c8eac8cf47377898bc13a8177bddc9721758d8bb..7e35273857081796861ee6be788ccab54499a51e 100644 (file)
@@ -142,13 +142,14 @@ static __always_inline
 void int3_emulate_push(struct pt_regs *regs, unsigned long val)
 {
        /*
-        * The int3 handler in entry_64.S adds a gap between the
+        * The INT3 handler in entry_64.S adds a gap between the
         * stack where the break point happened, and the saving of
         * pt_regs. We can extend the original stack because of
-        * this gap. See the idtentry macro's create_gap option.
+        * this gap. See the idtentry macro's X86_TRAP_BP logic.
         *
-        * Similarly entry_32.S will have a gap on the stack for (any) hardware
-        * exception and pt_regs; see FIXUP_FRAME.
+        * Similarly, entry_32.S will have a gap on the stack for
+        * (any) hardware exception and pt_regs; see the
+        * FIXUP_FRAME macro.
         */
        regs->sp -= sizeof(unsigned long);
        *(unsigned long *)regs->sp = val;