Re: [PATCH v3 23/26] kbuild/objtool: Add objtool-vmlinux.o pass

From: Peter Zijlstra
Date: Tue Mar 24 2020 - 18:06:11 EST


On Tue, Mar 24, 2020 at 05:03:21PM -0500, Josh Poimboeuf wrote:

> > +config VMLINUX_VALIDATION
> > + bool
> > + depends on STACK_VALIDATION && DEBUG_ENTRY && !PARAVIRT
> > + default y
> > +
>
> So I'm assuming this is incompatible with PARAVIRT because of all the
> indirect pvops calls?

Yep.

> I'm thinking it should be easy to detect those and whitelist them
> because they always have a pv_ops relocation associated with the call
> instruction.

I did consider that, but have been too lazy to actually make that work.
Also, the series is large enough as it is.. :-)