Re: [PATCH] x86/retpoline: Fill return stack buffer on vmexit

From: Boris Petkov
Date: Thu Jan 11 2018 - 03:51:09 EST


On January 11, 2018 9:42:38 AM GMT+01:00, Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
>Or we teach the alternative thing to patch in a jmp to end instead of
>NOP padding the entire thing as soon as the jmp (3 bytes) fits ?

Or, even better: use alternative_call() to call functions instead of patching gazillion bytes.

--
Sent from a small device: formatting sux and brevity is inevitable.