Re: [PATCH v2] hugetlb: clean up potential spectre issue warnings

From: Andrew Morton
Date: Wed Feb 23 2022 - 23:42:04 EST


On Tue, 22 Feb 2022 13:53:56 -0800 Mike Kravetz <mike.kravetz@xxxxxxxxxx> wrote:

> > gadget as it is a _one_ time early boot call. If there is a scenario
> > where this could be really abused then it should be mentioned
> > explicitly.
>
> How about adding this note to the commit message?

I have already done that. I added

"As Michal pointed out, this is unlikely to be exploitable because it is
__init code. But the patch suppresses the warnings."