[lkml]   [2018]   [Jan]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] retpoline/module: Taint kernel for missing retpoline in module
On Fri, Jan 12, 2018 at 09:55:07AM -0800, Andi Kleen wrote:
> From: Andi Kleen <>
> There's a risk that a kernel that has full retpoline mitigations
> becomes vulnerable when a module gets loaded that hasn't been
> compiled with the right compiler or the right option.
> We cannot fix it, but should at least warn the user when that
> happens.
> Add a flag to each module if it has been compiled with RETPOLINE
> When the a module hasn't been compiled with a retpoline
> aware compiler, print a warning and set a taint flag.

Isn't that caught by the "build with a different compiler/version" check
that we have? Or used to have? If not, can't we just make it into that
type of check to catch this type of problem no matter what type of
feature/option it is trying to catch?


greg k-h

 \ /
  Last update: 2018-01-14 23:26    [W:0.111 / U:7.996 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site