From patchwork Thu Feb 7 13:23:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Budankov X-Patchwork-Id: 10801201 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1B7C613BF for ; Thu, 7 Feb 2019 13:23:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 07B362D6AC for ; Thu, 7 Feb 2019 13:23:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 05F102D711; Thu, 7 Feb 2019 13:23:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by mail.wl.linuxfoundation.org (Postfix) with SMTP id D42DF2D782 for ; Thu, 7 Feb 2019 13:23:41 +0000 (UTC) Received: (qmail 9596 invoked by uid 550); 7 Feb 2019 13:23:40 -0000 Mailing-List: contact kernel-hardening-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Delivered-To: mailing list kernel-hardening@lists.openwall.com Received: (qmail 9578 invoked from network); 7 Feb 2019 13:23:39 -0000 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,344,1544515200"; d="scan'208";a="136627754" To: Jonatan Corbet , Kees Cook , Thomas Gleixner , Ingo Molnar , Peter Zijlstra Cc: Jann Horn , Arnaldo Carvalho de Melo , Jiri Olsa , Namhyung Kim , Alexander Shishkin , Andi Kleen , Mark Rutland , Tvrtko Ursulin , "kernel-hardening@lists.openwall.com" , "linux-doc@vger.kernel.org" , linux-kernel From: Alexey Budankov Subject: [PATCH v2 0/3] admin-guide: extend perf-security with resource control, data categories and privileged users Organization: Intel Corp. Message-ID: Date: Thu, 7 Feb 2019 16:23:22 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 Content-Language: en-US X-Virus-Scanned: ClamAV using ClamSMTP The patch set extends the first version of perf-security.rst documentation file [1], [2], [3] with the following topics: 1) perf_events/Perf resource limits and control management that describes RLIMIT_NOFILE and perf_event_mlock_kb settings for processes conducting performance monitoring; 2) categories of system and performance data that can be captured by perf_events/Perf with explicit designation of process sensitive data; 3) possible steps to create perf_event/Perf privileged users groups for the current implementations of perf_events syscall API [4] and Perf tool; --- Alexey Budankov (4): perf-security: document perf_events/Perf resource control perf-security: document collected perf_events/Perf data categories perf-security: elaborate on perf_events/Perf privileged users perf-security: wrap paragraphs on 72 columns Documentation/admin-guide/perf-security.rst | 247 +++++++++++++++----- 1 file changed, 187 insertions(+), 60 deletions(-) --- Changes in v2: - addressed comments for v1 - added fourth patch implementing 72 columns paragraph width --- [1] https://marc.info/?l=linux-kernel&m=153736008310781&w=2 [2] https://lkml.org/lkml/2018/5/21/156 [3] https://lkml.org/lkml/2018/11/27/604 [4] http://man7.org/linux/man-pages/man2/perf_event_open.2.html