Re: [RFC][PATCH 00/16] objtool: vmlinux.o and noinstr validation

Josh Poimboeuf
2020-03-12T17:44:28Z

On Thu, Mar 12, 2020 at 05:23:37PM +0100, Peter Zijlstra wrote:
> So one of the problem i've ran into while playing with this and Thomas'
> patches is that it is 'difficult' to deal with indirect function calls.
>
> objtool basically gives up instantly.
>
> I know smatch has passes were it looks for function pointer assignments
> and carries that forward into it's callchain generation. Doing something
> like that for objtool is going to be 'fun'...

Yeah, it would have to keep track of register and memory values, even
across function calls. Which is basically crossing over into emulation
territory. Which objtool wasn't really built for.

--
Josh