Re: Linux 6.6-rc3 (DEBUG_VIRTUAL is unhappy on x86)

From: Linus Torvalds
Date: Wed Oct 04 2023 - 20:47:32 EST


On Tue, 3 Oct 2023 at 05:06, Sumit Garg <sumit.garg@xxxxxxxxxx> wrote:
>
> However, on the flip side I think there are security benefits here. We
> wouldn't like any indirect branch speculation attack to leak the trusted
> key material contents here.

No. Turning *one* indirect call static isn't a security benefit. That
argument is just bogus.

This code needs to be fixed. No static call rewriting for call-sites
that are just used once.

Linus