Re: [PATCH 5/5] x86/alternatives: Discard dynamic check after init

2016-01-21 Thread H. Peter Anvin
On 01/21/16 10:34, Borislav Petkov wrote: > From: Brian Gerst > > Move the code to do the dynamic check to the altinstr_aux section so > that it is discarded after alternatives have run and a static branch has > been chosen. > > Boris: change it to do TESTB, as hpa suggests. [Also document that

[PATCH 5/5] x86/alternatives: Discard dynamic check after init

2016-01-21 Thread Borislav Petkov
From: Brian Gerst Move the code to do the dynamic check to the altinstr_aux section so that it is discarded after alternatives have run and a static branch has been chosen. Boris: change it to do TESTB, as hpa suggests. Signed-off-by: Brian Gerst Cc: Andrew Morton Cc: Andy Lutomirski Cc: Bor