Re: 8aeb879baf12 - significant system call latency regression, bisected
From: Linus Torvalds
Date: Sun Jun 14 2026 - 23:41:37 EST
On Mon, 15 Jun 2026 at 07:38, H. Peter Anvin <hpa@xxxxxxxxx> wrote:
>
> - Since we no longer use the sys_call_table[] as a jump table,
> do we actually need array_index_nospec()? in do_syscall_x64|32?
Well, gcc will still generate a jump table from it when retpolines
aren't enabled.
So I think we do want that array_index_nospec. It should be cheap
insurance against the simplest kinds of speculation issues.
Linus