Return-path: Received: from mga05.intel.com ([192.55.52.43]) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fC8pJ-0007FC-H3 for speck@linutronix.de; Fri, 27 Apr 2018 21:14:37 +0200 Date: Fri, 27 Apr 2018 12:14:31 -0700 From: Andi Kleen Subject: [MODERATED] Re: [PATCH v2] Linux Patch 1/1 Message-ID: <20180427191431.GF75137@tassilo.jf.intel.com> References: <20180427164743.GA14180@pd.tnic> <6e2b14fc-3bf6-071d-6ce2-e518f2c4f069@redhat.com> <20180427173221.GB14180@pd.tnic> <20180427180944.GD75137@tassilo.jf.intel.com> MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: > That also argues that perhaps we could possible leave the store buffer > bypass mitigation off by default, if we could just detect the "people are > JIT'ing code" situation. Which we can't, afaik, but.. > > Anybody? That's what Tim's patches are doing essentially. Keep mitigation off by default but allows processes to enable using prctl. Originally we tried to use seccomp for detect JIT, but it turned out that there can be other mitigations for seccomp too (e.g. browsers doing full site process separation so they don't care about leaks anymore). So separate prctl makes more sense. -andi