2020-06-12 14:39:59

by Peter Zijlstra

[permalink] [raw]
Subject: [RFC][PATCH 0/3] objtool: KCOV vs noinstr

Hi All,

These patches go on top of objtool/core, although possibly we need them earlier.

In order to solve the KCOV-vs-noinstr situation, we need objtool to rewrite
calls to __sanitizer_cov_*() into NOPs, similar to what recordmcount does.

I'm hoping the pending objtool-recordmcount patches can also reuse some of this.



2020-06-13 19:56:31

by Matt Helsley

[permalink] [raw]
Subject: Re: [RFC][PATCH 0/3] objtool: KCOV vs noinstr

On Fri, Jun 12, 2020 at 04:30:34PM +0200, Peter Zijlstra wrote:
> Hi All,
>
> These patches go on top of objtool/core, although possibly we need them earlier.
>
> In order to solve the KCOV-vs-noinstr situation, we need objtool to rewrite
> calls to __sanitizer_cov_*() into NOPs, similar to what recordmcount does.
>
> I'm hoping the pending objtool-recordmcount patches can also reuse some of this.

This sounds great to me -- I'll have a look through your series and will try
rebasing my work on this.

Cheers,
-Matt Helsley