[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <nycvar.YFH.7.76.1811132054521.19754@cbobk.fhfr.pm>
Date: Tue, 13 Nov 2018 20:56:54 +0100 (CET)
From: Jiri Kosina <jikos@...nel.org>
To: Michal Hocko <mhocko@...nel.org>
cc: Thomas Gleixner <tglx@...utronix.de>,
Linus Torvalds <torvalds@...ux-foundation.org>,
Dave Hansen <dave.hansen@...el.com>,
Andi Kleen <ak@...ux.intel.com>, Borislav Petkov <bp@...e.de>,
LKML <linux-kernel@...r.kernel.org>, linux-mm@...ck.org,
Michal Hocko <mhocko@...e.com>
Subject: Re: [PATCH] l1tf: drop the swap storage limit restriction when
l1tf=off
On Tue, 13 Nov 2018, Michal Hocko wrote:
> From: Michal Hocko <mhocko@...e.com>
>
> 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@...e.com>
> ---
> Documentation/admin-guide/kernel-parameters.txt | 2 ++
> Documentation/admin-guide/l1tf.rst | 5 ++++-
> arch/x86/kernel/cpu/bugs.c | 3 ++-
> arch/x86/mm/init.c | 2 +-
> 4 files changed, 9 insertions(+), 3 deletions(-)
>
> diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
> index 81d1d5a74728..a54f2bd39e77 100644
> --- a/Documentation/admin-guide/kernel-parameters.txt
> +++ b/Documentation/admin-guide/kernel-parameters.txt
> @@ -2095,6 +2095,8 @@
> off
> Disables hypervisor mitigations and doesn't
> emit any warnings.
> + It also drops the swap size and available
> + RAM limit restriction.
Minor nit: I think this should explicitly mention that those two things
are related to bare metal mitigation, to avoid any confusion (as otherwise
the l1tf cmdline parameter is purely about hypervisor mitigations).
With that
Acked-by: Jiri Kosina <jkosina@...e.cz>
Thanks,
--
Jiri Kosina
SUSE Labs
Powered by blists - more mailing lists