Re: [PATCH 4/6] x86_64/entry: Mark all syscalls __noendbr

From: Josh Poimboeuf

Date: Sat Nov 21 2026 - 22:35:56 EST


On Mon, Nov 02, 2026 at 12:25:53PM +0100, Peter Zijlstra wrote:
> #define __SYS_STUB0(abi, name) \
> - long __##abi##_##name(const struct pt_regs *regs); \
> + long __noendbr __##abi##_##name(const struct pt_regs *regs); \
> ALLOW_ERROR_INJECTION(__##abi##_##name, ERRNO); \
> - long __##abi##_##name(const struct pt_regs *regs) \
> + long __noendbr __##abi##_##name(const struct pt_regs *regs) \
> __alias(__do_##name);

This is an alias, the actual __do_##name() also needs __noendbr.

--
Josh