Re: [PATCH 02/24] objtool: Add retpoline validation

2018-01-26 Thread David Woodhouse
On Tue, 2018-01-23 at 16:25 +0100, Peter Zijlstra wrote: > > +   if (insn->type != INSN_JUMP_DYNAMIC && > +   insn->type != INSN_CALL_DYNAMIC) { > +   WARN_FUNC("retpoline_safe hint not a indirect > jump/call", > +

Re: [PATCH 02/24] objtool: Add retpoline validation

2018-01-26 Thread David Woodhouse
On Tue, 2018-01-23 at 16:25 +0100, Peter Zijlstra wrote: > > +   if (insn->type != INSN_JUMP_DYNAMIC && > +   insn->type != INSN_CALL_DYNAMIC) { > +   WARN_FUNC("retpoline_safe hint not a indirect > jump/call", > +

Re: [PATCH 02/24] objtool: Add retpoline validation

2018-01-23 Thread Borislav Petkov
On Tue, Jan 23, 2018 at 04:25:41PM +0100, Peter Zijlstra wrote: > David requested a objtool validation pass for RETPOLINE enabled > builds, where it validates no unannotated indirect jumps or calls are > left. > > Add an additional .discard.retpoline_safe section to allow annotating > the few

Re: [PATCH 02/24] objtool: Add retpoline validation

2018-01-23 Thread Borislav Petkov
On Tue, Jan 23, 2018 at 04:25:41PM +0100, Peter Zijlstra wrote: > David requested a objtool validation pass for RETPOLINE enabled > builds, where it validates no unannotated indirect jumps or calls are > left. > > Add an additional .discard.retpoline_safe section to allow annotating > the few

[PATCH 02/24] objtool: Add retpoline validation

2018-01-23 Thread Peter Zijlstra
David requested a objtool validation pass for RETPOLINE enabled builds, where it validates no unannotated indirect jumps or calls are left. Add an additional .discard.retpoline_safe section to allow annotating the few indirect sites that are required and safe. Requested-by: David Woodhouse

[PATCH 02/24] objtool: Add retpoline validation

2018-01-23 Thread Peter Zijlstra
David requested a objtool validation pass for RETPOLINE enabled builds, where it validates no unannotated indirect jumps or calls are left. Add an additional .discard.retpoline_safe section to allow annotating the few indirect sites that are required and safe. Requested-by: David Woodhouse