Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp244391imm; Mon, 1 Oct 2018 09:16:05 -0700 (PDT) X-Google-Smtp-Source: ACcGV620MTH90p5issozISuPtSjDwocjAHpXKum39OrVNUr9KJxk2zdcnciRl1ax/0gvkMyWTsPu X-Received: by 2002:a63:8c4:: with SMTP id 187-v6mr10977097pgi.396.1538410565812; Mon, 01 Oct 2018 09:16:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538410565; cv=none; d=google.com; s=arc-20160816; b=POJX7x8BtD+WVit4lbwhFeIncY1dL+uge7FxmRsobgmX5ydUPDaUypKBvTnBH6wq7B 806O04pAPUcOXNc3cr0MmtSXZVhcyJ9wMQWllHzHP4VrtNaGJHLnBPtxFVb09asT8QEi pkrzymish/NzoqMWr1RiAj426qFILB7ceqP7nwdnie1XOPZTw03lybGG8SV5+zUBGRsA 36PzDjhhZOd8EnBAS22BlGQIsWehdtTlSSWDXS1LbFmtx20fnDhzRXJaZVCleshbF/64 X0UJdhuNfapyqIrcBiYcrmzGjAiQSKDuCsjli5kruCTC0zwuTWBMyDLbmlEv0TbCLbmM fq/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=huR58y98to4RK6kwf98+jh8WzbEdPoe4XUkb2uJfCwE=; b=ZN/yRqUDYO0XVONwPWL0gTCl1oZwtUK+7A2iv0FAj9Y/y/9U2WGithT7kYyX3Ufsn6 luoffQcXLZ0V4XAO4K51o9Qq9RFedNndbRVpxeUCGgPt8B1iZ4nkMvmDgPuSrp4CMGDA 4xFLERc7FBpxCH6T1+ImAMnDCn3Ft6TnyTrdX5Q3jI1PKxvceQ3+rE2iVs5eJaYWt/pC fGuLc+aBZm+7HQpz17q4OnQ3qxp93glqhxqcw1oxHgwwuD7+RYqWViXDjJgiSEiMj3+H EfZ6gwGtNkPwmfUkuONyXGDgaDMA9ffoBJsuZ3+/n3c8kE0RDKRoSjIv/HrOmqQgQaDr oWkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=tgU7g6Lz; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g20-v6si7466278plq.192.2018.10.01.09.15.44; Mon, 01 Oct 2018 09:16:05 -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=pass header.i=@google.com header.s=20161025 header.b=tgU7g6Lz; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726236AbeJAWyC (ORCPT + 99 others); Mon, 1 Oct 2018 18:54:02 -0400 Received: from mail-oi1-f175.google.com ([209.85.167.175]:43184 "EHLO mail-oi1-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725777AbeJAWyC (ORCPT ); Mon, 1 Oct 2018 18:54:02 -0400 Received: by mail-oi1-f175.google.com with SMTP id s69-v6so11646868oie.10 for ; Mon, 01 Oct 2018 09:15:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=huR58y98to4RK6kwf98+jh8WzbEdPoe4XUkb2uJfCwE=; b=tgU7g6LzofQgMRuTauOMRrM9c0BiRL5gygEe9YXnzoF/muqHLb2v2I8NnV7Ida76Gv 7OoBBvYeXWB5EzDpOLtE8UTIx4L/2qwAHS21DyhR/ZFePcsXbEnox9i9qfLH3HfRamgW vUXtx/CNb83qcZpIBSsdRd/JIPmjt1BqnpWiB14uC0GsOy3pCAF4jJd0fwcai3l8hcSt Qvi/vgT3jiFhirq4S/0PrDuL3OoBcA52uM6W4tFQ43pC26xx13uc2LDOnF0LKXyd4ot6 DIyqwpUoN5AzU7BKhiKVSFtRHACJxLRgehLEns//ItmP7tRKtqI/SFLAKcWUseO5ljTu E/Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=huR58y98to4RK6kwf98+jh8WzbEdPoe4XUkb2uJfCwE=; b=jcik2VMOZO1E18ivaaWQvFB0Cxv6/cOCFwt+rCMTTdh46JTNbxic8Cyz7IS5VUmmkl ZQL5MRXHirZCs3IJnDbpCrO/BHyBDqwtyuo3Knt7EZnyOMCvz2dRL6RQqGt+fS9At97r bXqZIPZUCmn/QITWedZz7EwOnLWwXIAYkuLoNLZhs5ckJF9317QstwwGprCYXrledBsZ GqEqsOGPd40VvzoOLW8Qpg8k92LjB7sJJrNNg47kb8CZuPk6pWwIkVtg3B93Dkzz/Eyh PGPzFXY66tmBpmQHJ44xe3SvmNMZ9efNYnnV41LhDlzTY1xlqqdxsdOsq9111BtGgpkt agVw== X-Gm-Message-State: ABuFfogPO3T2lpepkI0EZNHtGQqYONiqsN9vIr69Qy+mppYtvSatQY8p mXJa8q3mrus/r6nArxVB2oHhz0zJkQ9p5Hqpr2VWSA== X-Received: by 2002:aca:c444:: with SMTP id u65-v6mr5637287oif.8.1538410529626; Mon, 01 Oct 2018 09:15:29 -0700 (PDT) MIME-Version: 1.0 References: <20180919122751.12439-1-tvrtko.ursulin@linux.intel.com> <20180928164111.i6nba2j6mnegwslw@lakrids.cambridge.arm.com> <20180928172340.GA32651@tassilo.jf.intel.com> <20180928174016.i7d24puv7y3jwzf6@lakrids.cambridge.arm.com> <20180928204930.GC32651@tassilo.jf.intel.com> <20180928205907.GD32651@tassilo.jf.intel.com> <20180928212757.GE32651@tassilo.jf.intel.com> <22155f49-2f57-73b8-6e89-ddd8a127967b@linux.intel.com> In-Reply-To: From: Jann Horn Date: Mon, 1 Oct 2018 18:15:02 +0200 Message-ID: Subject: Re: [RFC 0/5] perf: Per PMU access controls (paranoid setting) To: Thomas Gleixner Cc: alexey.budankov@linux.intel.com, Andi Kleen , Mark Rutland , tursulin@ursulin.net, kernel list , tvrtko.ursulin@linux.intel.com, Peter Zijlstra , "the arch/x86 maintainers" , "H . Peter Anvin" , acme@kernel.org, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, maddy@linux.vnet.ibm.com, Kees Cook Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 1, 2018 at 6:12 PM Thomas Gleixner wrote: > From a design POV, Jann's idea to have a per PMU special file which you > need to open for getting access is way better than the extra knobs. It > allows to use all existing security mechanisms to be used. (That was Mark's idea, not mine, I just agree with his idea a lot.)