2020-03-25 17:49:57

by Peter Zijlstra

[permalink] [raw]
Subject: [PATCH v4 00/13] objtool: vmlinux.o and moinstr validation

Hi all,

This lacks the first 17 patches of the v3 posting which are en-route to
tip/core/objtool and should show up there somewhere later this evening.

As should be familiar by now; these patches implement the noinstr
(no-instrument) validation in objtool as requested by Thomas, to ensure
critical code (entry for now, idle later) run no unexpected code.

Functions are marked with: noinstr, which implies notrace, noinline and sticks
things in the .noinstr.text section. Such functions can then use instr_begin()
and instr_end() to allow calls to code outside of this section in sanctioned
areas.





2020-03-25 19:06:57

by Miroslav Benes

[permalink] [raw]
Subject: Re: [PATCH v4 00/13] objtool: vmlinux.o and moinstr validation

On Wed, 25 Mar 2020, Peter Zijlstra wrote:

> Hi all,
>
> This lacks the first 17 patches of the v3 posting which are en-route to
> tip/core/objtool and should show up there somewhere later this evening.
>
> As should be familiar by now; these patches implement the noinstr
> (no-instrument) validation in objtool as requested by Thomas, to ensure
> critical code (entry for now, idle later) run no unexpected code.
>
> Functions are marked with: noinstr, which implies notrace, noinline and sticks
> things in the .noinstr.text section. Such functions can then use instr_begin()
> and instr_end() to allow calls to code outside of this section in sanctioned
> areas.

Reviewed-by: Miroslav Benes <[email protected]>

M