Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp979042pxj; Fri, 4 Jun 2021 03:07:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSj4qKpoMyqvcMVTTKOEvgth+pVcJqpGMZvMwH+7+0UqGeHNwccAze1Wvi0yWWxXoXS0sQ X-Received: by 2002:aa7:d84e:: with SMTP id f14mr3909454eds.12.1622801268801; Fri, 04 Jun 2021 03:07:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622801268; cv=none; d=google.com; s=arc-20160816; b=qLHYYTkYHzjYzKyu2IkVFkWgCm3dXLyqd8/CGu5vdSKeq24W9EDgjlJEgUr2m/DxFg kwuR7nMm2pjay1vzIZSakElu+tPIKvRY/VEoCr78NoiZ4VD1S8y3+1HWOjf8fYJFBUIz g0Z8lByPvMwkzvX0Ta4QK74zlB3gQBWcFeMg73fRVguvf9KcJ/lPaB3EwLtPU7a9nfOV suWHk7FMKgAf2Yr3fjJekxPRE3G7uQdiwGD5s88LPFCkfCgMWpPWho/PegHanoF5nnrA hXuo5dJ/laWA51/ZOxXt9CFhqK51yjNGo2iSHElGw4nD2kwM/k2MqS3Vent+ExX/U1nv GHmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=pf5SE7QX1W1WgVz/hc8YdWJ4xx7787JaP6QmCVAqxoE=; b=fioJJuPoHdvqP/5yp1YAKDaBedu1YRkAcUI0KD/8SR0Pd8FJ+eg/e6WPV64cRwBSQo I3viEl48OXhOt0gryAKQxJgv+dxs1ffLbqmI98BNSpcHnDppvHZy2D5aPw12sTGE7HkF v98exgXFgCN4ej0dFG0R7YdyEVzPzyeEbAY11PXsEfeuJZI7K0+LujuoUZwpA5O84+df XDU+waro1FSop92Ny+4x6uTjI521W5WroFXjXatH7YMRM4v7gqipDPSjdP/4b487boZZ 7c+VoM/5ylS1M9UP5/z2scYJZUVgPm2NaLv281Vu+cME3zO6ebtMnS2oodw3kke8YBay +hQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VLYoca+L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z11si1342566edx.62.2021.06.04.03.07.24; Fri, 04 Jun 2021 03:07:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VLYoca+L; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230051AbhFDKIV (ORCPT + 99 others); Fri, 4 Jun 2021 06:08:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229690AbhFDKIV (ORCPT ); Fri, 4 Jun 2021 06:08:21 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6E93C06174A; Fri, 4 Jun 2021 03:06:22 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id z3-20020a17090a3983b029016bc232e40bso2156027pjb.4; Fri, 04 Jun 2021 03:06:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=pf5SE7QX1W1WgVz/hc8YdWJ4xx7787JaP6QmCVAqxoE=; b=VLYoca+LjdLRn8bCCwYSjaI6L2S0m6dN8swFseCxrEsKye123LYAu9MaspToiEeSEi GIz9cKCAPs5Y2E2awErocTLFUZOyI7sY31ggrxWf00FVEnQI9Um951+5WXDk2saUIUvS HUy1oCG9Lh4vN4tO7o/cw2IkMXACxiTxGoKFkyzKB31GVYyPMsDzF92X/WIDcjG+BaHg KfklbZVh0iu91svk76/eCZYcTINCfeq8hrX7W8wNNJRVoqZoYHuSiiUJ6kgO/EVJkxmx 6o1y6R0Eo4L7dAW3ud/byTwywEiQ09ZKwjLcv3+ebjgzQ1Ex2gFK2JjCtTMBleeTA6hk orNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=pf5SE7QX1W1WgVz/hc8YdWJ4xx7787JaP6QmCVAqxoE=; b=rOKfv0mwEHNZ+SEDh5YyAoHp7xxgn+phMlE1lrXHH3CdRW9vybZ4+5g3zW3UHatoLl MC1BJ30/Hz9RfvgC2w31252WPkFv3Up9IAMfZy+/8CWWW+9QQ+jW7PIiij5AzmHB4b60 Ah3WnS4l5U2f/O4UoylFk8RXCTk7wBwJz7mFUUMfxZ6s2bwoDgCiqjr219dOggr9Iram bq03hPqiO1dCGBIG8MEDQiyJ64oglx5025eZLAIjEWUjAJyXLSMtvzA51ZmgpAAdNgD0 AdX0WOpOB3kyeFogjUHe2iVZd/nnkiaMsZ3P2FkWA2iOgZnmMCZIemWk3w1HX/Q6ldte IQoQ== X-Gm-Message-State: AOAM5305t11wTi1+rjf6MnMv+p9fTq5gGnAOn+XkSjUo2osjJXSkO8L6 9RERxwsEBn8psoseJWNC0oo= X-Received: by 2002:a17:90b:3796:: with SMTP id mz22mr16306533pjb.177.1622801178697; Fri, 04 Jun 2021 03:06:18 -0700 (PDT) Received: from localhost (59-102-73-37.tpgi.com.au. [59.102.73.37]) by smtp.gmail.com with ESMTPSA id g8sm1425288pfo.85.2021.06.04.03.06.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Jun 2021 03:06:17 -0700 (PDT) Date: Fri, 4 Jun 2021 20:06:14 +1000 From: Balbir Singh To: Kees Cook Cc: Thomas Gleixner , "mingo@redhat.com" , "linux-kernel@vger.kernel.org" , "peterz@infradead.org" , "torvalds@linux-foundation.org" , "jpoimboe@redhat.com" , "x86@kernel.org" , "tony.luck@intel.com" , "dave.hansen@intel.com" , "thomas.lendacky@amd.com" , "benh@kernel.crashing.org" , linux-hardening@vger.kernel.org Subject: Re: [PATCH v4 0/5] Next revision of the L1D flush patches Message-ID: References: <20210108121056.21940-1-sblbir@amazon.com> <202104081319.DAB1D817@keescook> <87y2d5tpjh.ffs@nanos.tec.linutronix.de> <87tunsofan.ffs@nanos.tec.linutronix.de> <202104281307.F9FCF660@keescook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202104281307.F9FCF660@keescook> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 28, 2021 at 01:08:05PM -0700, Kees Cook wrote: > On Tue, Apr 27, 2021 at 12:24:16AM +0200, Thomas Gleixner wrote: > > On Mon, Apr 26 2021 at 10:31, Thomas Gleixner wrote: > > > On Thu, Apr 08 2021 at 13:23, Kees Cook wrote: > > >> > > >> I'd still really like to see this -- it's a big hammer, but that's the > > >> point for cases where some new flaw appears and we can point to the > > >> toolbox and say "you can mitigate it with this while you wait for new > > >> kernel/CPU." > > >> > > >> Any further thoughts from x86 maintainers? This seems like it addressed > > >> all of tglx's review comments. > > > > > > Sorry for dropping the ball on this. It's in my list of things to deal > > > with. Starting to look at it now. > > > > So I went through the pile and for remorse I sat down and made the > > tweaks I think are necessary myself. > > > > I've pushed out the result to > > > > git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git x86/l1dflush > > Oh excellent; thank you for doing this! > Thanks again Thomas! I no longer have access to the bare metal hardware, but I was able to test this under qemu with some emulation changes. The changes worked as expected. Folks on the list/cc, appreciate any tested-by or additional reviewed-by tags if you do happen to review/test. Thanks, Balbir Singh.