Re: [PATCH v2] objtool: Fix SYSCALL instruction handling and INSN_CONTEXT_SWITCH

From: Josh Poimboeuf
Date: Fri Apr 04 2025 - 16:24:01 EST


On Fri, Apr 04, 2025 at 01:06:26PM -0700, Josh Poimboeuf wrote:
> With SYSCALL and SYSENTER removed, INSN_CONTEXT_SWITCH now has a sane
> well-defined return semantic.

Argh, this last paragraph doesn't mention the rename of
INSN_CONTEXT_SWITCH. Changed to:

With SYSCALL and SYSENTER removed, INSN_CONTEXT_SWITCH now has a sane
well-defined return semantic. Rename it to INSN_EXCEPTION_RETURN to
better reflect its meaning.

> v2:
> - rename INSN_CONTEXT_SWITCH -> INSN_EXCEPTION_RETURN
> - clarify that xen SYSCALL is a hypercall
> - check for SYSEXIT

--
Josh