[PATCH v4 12/13] x86/retpoline: Add boot time option to disable retpoline

2018-01-04 Thread David Woodhouse
From: Andi Kleen Add a noretpoline option boot to disable retpoline and patch out the extra sequences. It cannot patch out the jumps to the thunk functions generated by the compiler, but they turn into a single indirect branch now. Signed-off-by: Andi Kleen

[PATCH v4 12/13] x86/retpoline: Add boot time option to disable retpoline

2018-01-04 Thread David Woodhouse
From: Andi Kleen Add a noretpoline option boot to disable retpoline and patch out the extra sequences. It cannot patch out the jumps to the thunk functions generated by the compiler, but they turn into a single indirect branch now. Signed-off-by: Andi Kleen Signed-off-by: David Woodhouse ---