Re: [PATCH 4/5] x86/pti: warn for unknown pti boot options

From: Dave Hansen
Date: Mon Jul 16 2018 - 10:35:24 EST


On 07/15/2018 09:03 PM, Jiang Biao wrote:
> When using unknown pti boot options other than on/off/auto, we
> select auto silently, which is sometimes confusing. Add warning for
> unknown pti boot options like we do in
> spectre_v2_select_mitigation().

There's not a lot of precedent for this one. We have gazillions of boot
options and I don't know of many places that we do this. While this
isn't a horrible idea, I don't look forward to the patches will do this
for every other option in the kernel.