Re: [PATCH v3 11/13] retpoline/taint: Taint kernel for missing retpoline in compiler

From: Justin Forbes
Date: Thu Jan 04 2018 - 17:06:08 EST


On Thu, Jan 4, 2018 at 8:37 AM, David Woodhouse <dwmw@xxxxxxxxxxxx> wrote:
> From: Andi Kleen <ak@xxxxxxxxxxxxxxx>
>
> When the kernel or a module hasn't been compiled with a retpoline
> aware compiler, print a warning and set a taint flag.
>
> For modules it is checked at compile time, however it cannot
> check assembler or other non compiled objects used in the module link.
>
> Due to lack of better letter it uses taint option 'Z'
>

Is taint really the right thing to do here? Why not just do pr_info?