Re: [PATCH] l1tf: drop the swap storage limit restriction when l1tf=off

From: Pavel Tatashin
Date: Tue Nov 13 2018 - 14:20:38 EST


On 18-11-13 19:49:10, Michal Hocko wrote:
> From: Michal Hocko <mhocko@xxxxxxxx>
>
> Swap storage is restricted to max_swapfile_size (~16TB on x86_64)
> whenever the system is deemed affected by L1TF vulnerability. Even
> though the limit is quite high for most deployments it seems to be
> too restrictive for deployments which are willing to live with the
> mitigation disabled.
>
> We have a customer to deploy 8x 6,4TB PCIe/NVMe SSD swap devices
> which is clearly out of the limit.
>
> Drop the swap restriction when l1tf=off is specified. It also doesn't
> make much sense to warn about too much memory for the l1tf mitigation
> when it is forcefully disabled by the administrator.
>
> Signed-off-by: Michal Hocko <mhocko@xxxxxxxx>

Reviewed-by: Pavel Tatashin <pasha.tatashin@xxxxxxxxxx>