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

From: Miroslav Benes
Date: Wed Mar 25 2020 - 15:03:12 EST


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 <mbenes@xxxxxxx>

M