Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp478641imm; Fri, 15 Jun 2018 00:46:09 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIOkxvnjvv7SWJAEQHefzHZPecOp/5pvvrRh4SmhiMb/Ucl0bhjYzLJ5BfEKuZYBGlRGEmH X-Received: by 2002:a17:902:bc4c:: with SMTP id t12-v6mr724756plz.177.1529048769837; Fri, 15 Jun 2018 00:46:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529048769; cv=none; d=google.com; s=arc-20160816; b=o2IeP/UUuXmO7w1pg6UNoRQv8ejZr9lhhEff33XirJj97Bxsx9b7QWDlbBCnntnx+b HNWYflxj66NQf4ES2wrWO+rNjbEGm0czu2j6gw+FJqXgMByzDN0TcTDftactz9vOakYJ IEOHtaNTX4mcDVh2uSSnhAwxHjZIqewoaGJWSF6ZXaf0TInYf6SuFhSgcx2DEQO3dLQ5 xpzbnBEZGvrN3QPwiJNq25mY36vp8u2u81h3rHmUG5kfreSDY9Nvp65cyG7Ls4Lfv5AE ESIMJA60MOT8cBAz5Wi7AxMQEFE/gZ/d6Sgg2OpjYNN2rqCpPz4yGL6jU/HoH51M2Cdv ughg== 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:arc-authentication-results; bh=tuQhFlerIgYW+Pyntjohd18YxKK8bU5xgHtRqZmBctE=; b=DJGHeRfz1EXcnkB+W3IKckw6ztzDoPX9RS6LaU/3hzu+oj2b0j6ulKu2fNsLmjI2/E cU+ZpZq8nKYW3zn9V2K+Se0dJg8WhrLE3zxWquNW2AMI9z+C3EB9Nh25ieXandrYfjLR +m/Y91ANQ7eCqVuz26/7+AUCIabMlVR+t8BfTGatLCb62iKNW8zn1WblcMzmLHbiXEkE dsJtNrfKa/OkXjU8Du3yNEY5mPn2o1/b5V8YmQEpXRXNT8CY0qEQNdG96JyiV4qv34Rt tPHtsBl5YRO3zCwkMaM716+XwYnnZKa3EwJ0YpWpS/1bFc57oWbPPbD7xUoRcaLJ6WUj sE/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=jkNxR2LD; 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 e8-v6si6202899pgu.231.2018.06.15.00.45.54; Fri, 15 Jun 2018 00:46:09 -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=bombadil.20170209 header.b=jkNxR2LD; 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 S1755947AbeFOHpO (ORCPT + 99 others); Fri, 15 Jun 2018 03:45:14 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:40584 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755925AbeFOHpN (ORCPT ); Fri, 15 Jun 2018 03:45:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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=tuQhFlerIgYW+Pyntjohd18YxKK8bU5xgHtRqZmBctE=; b=jkNxR2LDOgiGWMaUjKT0hzmE2 jNDZA+EPXr6E/ALD+huweNPmV+lKPJY1QqcWvx98HuEz1Z1+4X7+u5po5Ok0kcw9IKDOFcq9OttBX 5CWr+KJIhI6XpZFzz6W19GX09dDKzL+g9LzCPUvRtG1oji3jPOCqMTN0YQqE9okbfVJB+WlMKLlSv cV/oVRWNGdGpO9XXWmQhje1H6CAHM1BmaEKHmLPqGVkjJQIXADmHMzuTCtjGTXvhocRq97l77POYS E4LQ06UPiKwlK25u/ZqsY0Mr12gO7GWUaI8dQmOYqjI1yjnjNPrYE5j6WZDKd54ST2j+A9Dqd8lwg seF5wQj5w==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fTjPu-0001q6-Gy; Fri, 15 Jun 2018 07:45:06 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 1721D2029FA11; Fri, 15 Jun 2018 09:45:04 +0200 (CEST) Date: Fri, 15 Jun 2018 09:45:04 +0200 From: Peter Zijlstra To: Jin Yao Cc: acme@kernel.org, jolsa@kernel.org, mingo@redhat.com, alexander.shishkin@linux.intel.com, me@kylehuey.com, Linux-kernel@vger.kernel.org, vincent.weaver@maine.edu, will.deacon@arm.com, eranian@google.com, namhyung@kernel.org, ak@linux.intel.com, kan.liang@intel.com, yao.jin@intel.com Subject: Re: [PATCH v1 0/2] perf: Drop leaked kernel samples Message-ID: <20180615074504.GA2458@hirez.programming.kicks-ass.net> References: <1529057003-2212-1-git-send-email-yao.jin@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1529057003-2212-1-git-send-email-yao.jin@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 Fri, Jun 15, 2018 at 06:03:21PM +0800, Jin Yao wrote: > On workloads that do a lot of kernel entry/exits we see kernel > samples, even though :u is specified. This is due to skid existing. > > This might be a security issue because it can leak kernel addresses even > though kernel sampling support is disabled. > > One patch "perf/core: Drop kernel samples even though :u is specified" > was posted in last year but it was reverted because it introduced a > regression issue that broke the rr-project. > > Now this patch set uses sysctl to control the dropping of leaked > kernel samples. So what happened to the suggestion of keeping the samples but 0-stuffing all the tricky bits?