Received: by 10.192.165.148 with SMTP id m20csp959824imm; Thu, 10 May 2018 03:30:39 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqBxq9GKbNAYDbhvrBsLyUEPta3Tnu/qd/UKVrpiFMbJwBckuTrUQIcDkT1IaXDmkMkeSZY X-Received: by 2002:a17:902:9a06:: with SMTP id v6-v6mr833694plp.21.1525948239564; Thu, 10 May 2018 03:30:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525948239; cv=none; d=google.com; s=arc-20160816; b=obGD/Nj6uAKGHTqWo30GKp16DNolMB2WwUvfEzK9MTTCpdO8i3xsfBFal2AMKs94Hl Y7RBQfYJaauhnwitiY4A+WS3dkGwjw2LpW+U1niykiaHU4CDUGXqGi337j7lJ8j0uart ooU4To9yQ0LaGQKpA1P2GDpwdE+V740Wy/xsCLwlX/S5ZtPjW4T0sgzUgcmO8tdSqUye uSPoE7ezeGu0MBODazMOFtH5kFARW7gb69FthWs8qX4P2HMpwoVFpfyySW1CMHr105h0 2Wo4KLz7xnjDbXoTUHOvZVX5Qce3r+28fV3DF9ovEe7mBzrz0M8QknVzgXCXsMvVBXs4 vV8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=nWUWvciks9FnpyVqqB4JQ0k72q7rrewBDYKmdtFG9Aw=; b=rgvpyRFeGfGZ+jDSQpZl1dx4WFjsAqVaPxP7xa43F6h+k4JLB0Z4O6MgwsUXs6qPyc Na9okE4QuMGgHhkngzSwejIvaJlwaWXeMnyhZNeN+kLSC/YrEdDtPnkZ9j2xwa1D4dtk Em00lcqasf/vGo0VNZRE4u6bszNBe/ygaZP1WBcWChoyKsjJIZ6zKYITQZRkqzFlpnm+ OLmQwgPfUzV1isk62zkRF5a+xtc0Jg0mnd+CMCcyU4AVurs5utSMAE5JaxBmzeY7b+4V oSshcmRhkQInF41QPkBbd662qozl7418fqBueB7FLVhBAiwtzD5LWJUFCmn/O+La+2C/ MW/w== 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 p66-v6si422923pga.180.2018.05.10.03.30.24; Thu, 10 May 2018 03:30:39 -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 S935126AbeEJK3h (ORCPT + 99 others); Thu, 10 May 2018 06:29:37 -0400 Received: from mga05.intel.com ([192.55.52.43]:11731 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935041AbeEJK3f (ORCPT ); Thu, 10 May 2018 06:29:35 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 May 2018 03:29:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,385,1520924400"; d="scan'208";a="40142670" Received: from linux.intel.com ([10.54.29.200]) by orsmga008.jf.intel.com with ESMTP; 10 May 2018 03:29:32 -0700 Received: from [10.125.252.154] (abudanko-mobl.ccr.corp.intel.com [10.125.252.154]) by linux.intel.com (Postfix) with ESMTP id C61E7580145; Thu, 10 May 2018 03:29:29 -0700 (PDT) Subject: Re: [PATCH v2]: perf/x86: store user space frame-pointer value on a sample To: Peter Zijlstra Cc: Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Andi Kleen , linux-kernel , linux-perf-users@vger.kernel.org, Andy Lutomirski References: <31205dc8-b756-e12b-0249-2ed06c2db9c9@linux.intel.com> <20180509145436.GV12217@hirez.programming.kicks-ass.net> <3ecedd91-1c01-6fc5-4648-89eaf5ff0930@linux.intel.com> <20180510101406.GA12217@hirez.programming.kicks-ass.net> From: Alexey Budankov Message-ID: <6be7739b-8c6c-bbd8-6866-a26d8d25266d@linux.intel.com> Date: Thu, 10 May 2018 13:29:28 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180510101406.GA12217@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 10.05.2018 13:14, Peter Zijlstra wrote: > On Thu, May 10, 2018 at 12:42:38PM +0300, Alexey Budankov wrote: >>> The Changelog needs to state that user_regs->bp is in fact valid and >> >> That actually was tested on binaries compiled without and with BP exposed >> and in the latter case proved the value of that change. > > Mostly works is not the same as 'always initialized', if there are entry > paths that do not store that register, then using the value might leak > values from the kernel stack, which would be bad. Yep, absolutely agree. Extra care needs to be taken here. > > But like said, I think much of the kernel entry code was sanitized with > the PTI effort and I suspect things are in fact fine now, but lets wait > for Andy to confirm. > Thanks, Alexey