Return-Path: Received: from mail.linutronix.de (146.0.238.70:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 15 Jul 2018 03:13:01 -0000 Received: from mta.outflux.net ([2001:19d0:2:6:c0de:0:736d:7471] helo=smtp.outflux.net) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1feXT0-0003ty-TH for speck@linutronix.de; Sun, 15 Jul 2018 05:13:00 +0200 Received: from www.outflux.net (serenity.outflux.net [10.2.0.2]) by vinyl.outflux.net (8.15.2/8.15.2/Debian-3) with ESMTP id w6F3CmWd023503 for ; Sat, 14 Jul 2018 20:12:48 -0700 Date: Sat, 14 Jul 2018 20:12:48 -0700 From: Kees Cook Subject: [MODERATED] Re: [patch V10 09/10] Control knobs and Documentation 9 Message-ID: <20180715031248.GH11806@outflux.net> References: <20180712141902.576562442@linutronix.de> <20180712142957.709184145@linutronix.de> MIME-Version: 1.0 In-Reply-To: <20180712142957.709184145@linutronix.de> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: On Thu, Jul 12, 2018 at 04:19:11PM +0200, speck for Thomas Gleixner wrote: > From: Jiri Kosina > Subject: [patch V10 09/10] x86/bugs, kvm: introduce boot-time control of L1TF mitigations > > Introduce the 'l1tf=' kernel command line option to allow for boot-time > switching of mitigation that is used on processors affected by L1TF. > > The possible values are: > > full > Provides all available mitigations for the L1TF vulnerability. Disables > SMT and enables all mitigations in the hypervisors. SMT control via > /sys/devices/system/cpu/smt/control is still possible after boot. > Hypervisors will issue a warning when the first VM is started in > a potentially insecure configuration, i.e. SMT enabled or L1D flush > disabled. > > full,force > Same as 'full', but disables SMT control. Implies the 'nosmt=force' > command line option. sysfs control of SMT and the hypervisor flush > control is disabled. > > flush > Leaves SMT enabled and enables the conditional hypervisor mitigation. > Hypervisors will issue a warning when the first VM is started in a > potentially insecure configuration, i.e. SMT enabled or L1D flush > disabled. > > flush,nosmt > Disables SMT and enables the conditional hypervisor mitigation. SMT > control via /sys/devices/system/cpu/smt/control is still possible > after boot. If SMT is reenabled or flushing disabled at runtime > hypervisors will issue a warning. > > flush,nowarn > Same as 'flush', but hypervisors will not warn when > a VM is started in a potentially insecure configuration. > > off > Disables hypervisor mitigations and doesn't emit any warnings. > > Default is 'flush'. I think this read very well and I think it's a reasonable default choice. The most sensitive workloads will be under VMs. Reviewed-by: Kees Cook Thanks! -Kees -- Kees Cook @outflux.net