Re: [PATCH] x86, retpolines: raise limit for generating indirect calls from switch-case

From: Linus Torvalds
Date: Thu Feb 21 2019 - 17:28:13 EST

On Thu, Feb 21, 2019 at 2:20 PM Daniel Borkmann <daniel@xxxxxxxxxxxxx> wrote:
> In case of gcc, this setting is controlled by case-values-threshold
> which has an architecture global default that selects 4 or 5 (

Ack. For retpoline, that's much too low.

Patch looks sane, although it would be good to verify just which
versions of gcc this works for. All versions with retpoline?