Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4148227imm; Wed, 5 Sep 2018 11:29:20 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdab1LdtS45duyQMCMsNX1Ori3j1xMywbEcUwS93T0HLogx6B+sUWqPPfBVOuhc/Okcxenhr X-Received: by 2002:a63:3cc:: with SMTP id 195-v6mr36717906pgd.229.1536172160140; Wed, 05 Sep 2018 11:29:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536172160; cv=none; d=google.com; s=arc-20160816; b=bnOTHFjWeCX34ahBtrEtaOdaC8H9U6bZ5tWoLzvSBVSSvV4tBsfi2Uumi1TcV6yd7b qfqWR9eFV4jWvjwppBTKutoxPpQpHI30TjwDoHUbS3ljNxRT3tNZQKBpNxTO+WigvdL7 ws/Ckz4W2/8hm2eAaF19/3041rUcmrp69JUwHua+DpjvnmZ0IO1KBSElUJa5lsjqQUTC YopoUq8QAd/HNRn/nx5sWFjbiq7jcEfo3x3xjv/GO3KXWT1NdggYZ+xzKMQFjVKe0RHW LIaHsgBT5ixHXxzLZW83I+aQ3NRCxPrydtFznrr6N0sJYycyi6MD9FHITUrcqwbpwSZe 7Y4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=Clk3M5+owch/142bCdveZfP5WiCEo98cFIVBgg/7Es8=; b=ROSF6SKlnlvU7qLmUs8MQ9+5WipopyTWo9dZfEg/kjk0FJzLm0DlNg9+D2XhnKoubN T4NhA5nQgczv2c752OhvFffPNIbU4VWGiJHZ8McEzKkcGU0/sy9QPtckQNWdAR+uHlY/ MXcZWvMdaw0GJHmhD3OiQ2sX9v6JScrcWQwlmUsl0O4JgDZz0AX2juPOR/IVCBrTfxAu QQmJwBWxW7WWkC0odQy3iAhcZi5B7pLGYNemgLE5R+EVftSj206Y0yhOx2uFT2Oatw7b paCiniE7cglf3fi6SRtQfAfnFayKySy0QHIXp96MGauqvSUhA8G8i22VuBhO4/r41y3B l/MQ== ARC-Authentication-Results: i=1; mx.google.com; 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 f185-v6si2605865pgc.625.2018.09.05.11.29.04; Wed, 05 Sep 2018 11:29:20 -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; 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 S1727734AbeIEW6P (ORCPT + 99 others); Wed, 5 Sep 2018 18:58:15 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:60301 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727195AbeIEW6P (ORCPT ); Wed, 5 Sep 2018 18:58:15 -0400 Received: from p4fea45ac.dip0.t-ipconnect.de ([79.234.69.172] helo=nanos) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fxcVj-0002Gp-QV; Wed, 05 Sep 2018 20:26:39 +0200 Date: Wed, 5 Sep 2018 20:26:38 +0200 (CEST) From: Thomas Gleixner To: Andi Kleen cc: Jiri Kosina , Tim Chen , "Schaufler, Casey" , Ingo Molnar , Peter Zijlstra , Josh Poimboeuf , Andrea Arcangeli , "Woodhouse, David" , Oleg Nesterov , "linux-kernel@vger.kernel.org" , "x86@kernel.org" Subject: Re: [PATCH v3 1/3] ptrace: Provide ___ptrace_may_access() that can be applied on arbitrary tasks In-Reply-To: <20180905155823.GL27886@tassilo.jf.intel.com> Message-ID: References: <31436186-88da-324e-88a0-8fdca7bf60ac@linux.intel.com> <99FC4B6EFCEFD44486C35F4C281DC67321447094@ORSMSX107.amr.corp.intel.com> <3f24e8c8-eab8-66c2-9a8d-957e30cac809@linux.intel.com> <20180905155823.GL27886@tassilo.jf.intel.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 5 Sep 2018, Andi Kleen wrote: > > So, after giving it a bit more thought, I still believe "I want spectre V2 > > protection" vs. "I do not care about spectre V2 on my system > > (=nospectre_v2)" are the sane options we should provide; so I'll respin v4 > > of my patchset, including the ptrace check in switch_mm() (statically > > patched out on !IBPB-capable systems), and we can then later see whether > > the LSM implementation, once it exists, should be used instead. > > Please if you repost include plenty of performance numbers for multi threaded > workloads. It's ridiculous to even discuss this without them. Either we care about that problem and provide a proper mechanism to protect systems or we do not. That's not a performance number problem at all. Thanks, tglx