Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1690414imm; Thu, 20 Sep 2018 01:01:31 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdbq78MVKfnxHbwrDjHI5nm2D5oTGnGIHZLHpH5hGb3fLaQrH3st7SFGEIq98TVxrw1jU3Ng X-Received: by 2002:a17:902:b70f:: with SMTP id d15-v6mr39055393pls.53.1537430491039; Thu, 20 Sep 2018 01:01:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537430491; cv=none; d=google.com; s=arc-20160816; b=AzgKLTAH/pqaXH4jhivEiWXV6D0N01LMQwCS3Qy2+u8hrQIyqy0DRmhkcYA+SXvbOB nmfYK/0dhG6u09cwo/zTgjsbI+5wj707Ul63LrFfOn+E6ixqXtvhK93XPffAZo35bqFU iXU6Kv1p9tI+xzBzcLlBhgcjwDWi46p55eCUuLQZW4djPf6U+LLJNkfoTh5reAA7l3kz h5Nqb8Xd2FnPINdIqB7VCPElU7Q776FZzeHH26Cs4/qBhAHSyYhyp5HADfTNhKY+vpyE zurKc7EHlh/61aMT8DxcRWdqlCGAjOOykVxqP10Hfv/xbRwtW0Guuxzy3eSLFMrHfycl hnTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=vZ6XA8wugt+A3IS38Z21yu7WL3GbJVf0Gsr/DnwoCqo=; b=0ACVT87ctnns94CxuO3IC1vKdL7u+5szo24FJtMazuK4d27Mfxa6RJYEGaS5o36oOy ZqfsYWcW2fzW5D0XBZlBzUjMav6/pFZlNw6F1WLgGpsbkOIYkmWihoRfajoPwXRC0JlF O3tDn4o7D+iTT00Xh/Qk3Gp4D8/xiwOUahxyV1no/fEr4qEqJxq0YDAQyVk8fVRJJGEa iDeWefn/j1KJ1DU3JwrnJvwJW5dFGlO53/sVpIPl1bx4bztbs/RooNKEqkw3k1hPZpiA YeMYYo46453G+zJsAW7W2dl/ZfMchdGFW1aqDjWNVl9F/qx01ZcUZ0G8iWRlppj4WBFa uWwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=z9xMGLCn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l127-v6si24701579pfc.135.2018.09.20.01.01.15; Thu, 20 Sep 2018 01:01:31 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=z9xMGLCn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726669AbeITNnV (ORCPT + 99 others); Thu, 20 Sep 2018 09:43:21 -0400 Received: from merlin.infradead.org ([205.233.59.134]:56458 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726028AbeITNnV (ORCPT ); Thu, 20 Sep 2018 09:43:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=vZ6XA8wugt+A3IS38Z21yu7WL3GbJVf0Gsr/DnwoCqo=; b=z9xMGLCnzgayydrYpWZq7phof na8jJQugfnF/Lj2/5qT/+UFOHlm59i78dI26RONNBBsUs0ICSsKawRlWXLSWrNZ7izEmjTU26r1xY +mKcaxAq8BPp02r/qVlpr0r98ZQlbB4W5JOPvdeYlNJc6oUJdyCDAVNv8jUZXAsVTTTnB6Xy7wIFc s21gzlRqkre146RfSbSD0iEr8+jt8DT4NbxWq0Vae1VnpL2A9hM0NaLkul4QXxu2XompUTlOw6TNV gFaFKRGyc/Iwf9a+y+dcJdd5axriVKfp3TfxzvgggeJRJ7rnvI2JQg6SYJqueC7GHx/QG4WeXlNQT bmIrVf2zQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1g2ttR-00009W-R0; Thu, 20 Sep 2018 08:00:58 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id F35DF201EC168; Thu, 20 Sep 2018 10:00:53 +0200 (CEST) Date: Thu, 20 Sep 2018 10:00:53 +0200 From: Peter Zijlstra To: Tim Chen Cc: Jiri Kosina , Thomas Gleixner , Tom Lendacky , Ingo Molnar , Josh Poimboeuf , Andrea Arcangeli , David Woodhouse , Andi Kleen , Dave Hansen , Casey Schaufler , Asit Mallick , Arjan van de Ven , Jon Masters , linux-kernel@vger.kernel.org, x86@kernel.org Subject: Re: [PATCH 2/2] x86/speculation: Provide application property based STIBP protection Message-ID: <20180920080053.GM24124@hirez.programming.kicks-ass.net> References: <0c55c162a077aadbfd57878e2694e35292c1a29c.1537392876.git.tim.c.chen@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0c55c162a077aadbfd57878e2694e35292c1a29c.1537392876.git.tim.c.chen@linux.intel.com> User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 19, 2018 at 02:35:30PM -0700, Tim Chen wrote: > This patch provides an application property based spectre_v2 > protection with STIBP against attack from another app from > a sibling hyper-thread. For security sensitive non-dumpable > app, STIBP will be turned on before switching to it for Intel > processors vulnerable to spectre_v2. Why does that non dumpable thing make sense? Why not use the same prctl() we already use for SSBD?