Re: [PATCH] x86/cmdline: Disable jump tables for cmdline.c

2020-12-21 Thread Nick Desaulniers
On Mon, Dec 21, 2020 at 1:23 PM Arvind Sankar wrote: > > On Mon, Dec 21, 2020 at 11:14:39AM -0800, Nick Desaulniers wrote: > > On Wed, Sep 2, 2020 at 7:31 PM Arvind Sankar wrote: > > > > > > When CONFIG_RETPOLINE is disabled, Clang uses a jump table for the > > > switch statement in cmdline_find_

Re: [PATCH] x86/cmdline: Disable jump tables for cmdline.c

2020-12-21 Thread Arvind Sankar
On Mon, Dec 21, 2020 at 11:14:39AM -0800, Nick Desaulniers wrote: > On Wed, Sep 2, 2020 at 7:31 PM Arvind Sankar wrote: > > > > When CONFIG_RETPOLINE is disabled, Clang uses a jump table for the > > switch statement in cmdline_find_option (jump tables are disabled when > > CONFIG_RETPOLINE is enab

Re: [PATCH] x86/cmdline: Disable jump tables for cmdline.c

2020-12-21 Thread Nick Desaulniers
On Wed, Sep 2, 2020 at 7:31 PM Arvind Sankar wrote: > > When CONFIG_RETPOLINE is disabled, Clang uses a jump table for the > switch statement in cmdline_find_option (jump tables are disabled when > CONFIG_RETPOLINE is enabled). This function is called very early in boot > from sme_enable() if CONF

[PATCH] x86/cmdline: Disable jump tables for cmdline.c

2020-09-02 Thread Arvind Sankar
When CONFIG_RETPOLINE is disabled, Clang uses a jump table for the switch statement in cmdline_find_option (jump tables are disabled when CONFIG_RETPOLINE is enabled). This function is called very early in boot from sme_enable() if CONFIG_AMD_MEM_ENCRYPT is enabled. At this time, the kernel is stil