Received: by 10.192.165.148 with SMTP id m20csp945417imm; Thu, 10 May 2018 03:14:56 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpSksJeXGGeANyCs2miko4tHoPlUfELDwtaYMnDShiSz1SagAXDEjBTIvWM4v5WAzxFy5wa X-Received: by 2002:a17:902:d891:: with SMTP id b17-v6mr825420plz.0.1525947295962; Thu, 10 May 2018 03:14:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525947295; cv=none; d=google.com; s=arc-20160816; b=T3BJRe0TeHcjTRDYRu3dyFvdJytaSGNpWvWj+d/ICnKR0beXCPSdSdPTV8IOrdnw6U w5B0vo1ar5C8kVVrTQ3l1pHxZDgsfPIQkz8EpKX8YY0amqMa1N/Q9biObPgNtPTciFxj jYuOyM2HRFa5YQLLE6e2/r00vnQzroD6YfL7Soc4JwYTqot+IUxfAHM9VkC7tUswmS1m TqvvubRVmRaLRn7X44oSeeW6EFOyqYSEyPQe6eE9nz3lXdZBjftkrErS71JG6zZuNzew IIZaKHz4K6FzM830L+2cMDq7Zk6eBnMG4VP+Pt6CW+Aj1B7tIYSM1/3dJaFxWfuag34c ts1Q== 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=AlKju270DgvOOrdhmt/ihDo4G5+VVGeLEspqWhCMKz8=; b=B9LBAFZthTGZ5qKDQgy/e/NCO84FMQ/yjLcfsWbmnSu9lfD39G1DqWMDOHhY36myug ROJThHVsww7g03vMiXtZh/t/xCIp5kRMulxJMnfm95C2YMxErRr9XJ6rd+sGbl1BxPln 21giX2EJWy9mTN7HHjRy+Et+M3xj1jx6CUo4UNugLTQDAuUJd4MmIGO/kj+lC6MvXs83 l8n8hvKQDlo7AIC31cK4Uo8ZZrv9ILtU3C8eTnqQh16nlfYamW9P2w9+ETOsLYhzFOjb nEMW1SkhpBMxoAhxLbdc7reB0roqxt+sD7PO2L6g02FTZj7Ri3x8VZK4H17htqSpInM7 p03Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=p77OJhGm; 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 v12-v6si467134plo.264.2018.05.10.03.14.41; Thu, 10 May 2018 03:14:55 -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=p77OJhGm; 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 S934870AbeEJKON (ORCPT + 99 others); Thu, 10 May 2018 06:14:13 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:48636 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934263AbeEJKOL (ORCPT ); Thu, 10 May 2018 06:14:11 -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=AlKju270DgvOOrdhmt/ihDo4G5+VVGeLEspqWhCMKz8=; b=p77OJhGmBxttubd5oGyUwRXYf MT3Lu9h5KSn1TJqRCt3rrKoZcyTlGsrkBYYljpaJPM0iHe2vuB4ZXdrpd9SqF7r4OrNJ+g0hveFUf t/D06rWB/zIRugLvnMBNiF26a2Rny/HSLfCLlksRLGKrKI25WyfUHzoOeOH2mDEzmDmamyM8v358h wU6fVTw1nIYv+O2BNTklW5dWY/hZM7p7gh3+dnydRbWKyeBa6z9CON2ag+FBIVFqyig028x3/+rsW kl6Vc8QUFmM/jt/FDRLK2hw1rAMDDjkQ/xXxot+2b9MzqRTfSVmsZCD72Cs7nVMe9ox7pNLw8d1rc ZYPcgVFOA==; 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 1fGiaO-0004Uo-Ie; Thu, 10 May 2018 10:14:08 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 56B3F2029FA13; Thu, 10 May 2018 12:14:06 +0200 (CEST) Date: Thu, 10 May 2018 12:14:06 +0200 From: Peter Zijlstra To: Alexey Budankov 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 Subject: Re: [PATCH v2]: perf/x86: store user space frame-pointer value on a sample Message-ID: <20180510101406.GA12217@hirez.programming.kicks-ass.net> References: <31205dc8-b756-e12b-0249-2ed06c2db9c9@linux.intel.com> <20180509145436.GV12217@hirez.programming.kicks-ass.net> <3ecedd91-1c01-6fc5-4648-89eaf5ff0930@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3ecedd91-1c01-6fc5-4648-89eaf5ff0930@linux.intel.com> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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.