From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932718AbcFHH1i (ORCPT ); Wed, 8 Jun 2016 03:27:38 -0400 Received: from mail-wm0-f52.google.com ([74.125.82.52]:34871 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932478AbcFHH1g (ORCPT ); Wed, 8 Jun 2016 03:27:36 -0400 MIME-Version: 1.0 In-Reply-To: <20160606015935.GA9646@tassilo.jf.intel.com> References: <1464835323-33872-1-git-send-email-davidcc@google.com> <1464835323-33872-2-git-send-email-davidcc@google.com> <20160602160428.GR22049@tassilo.jf.intel.com> <20160606015935.GA9646@tassilo.jf.intel.com> From: Stephane Eranian Date: Wed, 8 Jun 2016 00:27:33 -0700 Message-ID: Subject: Re: [PATCH 1/3] perf/x86/intel: output LBR support statement after validation To: Andi Kleen Cc: David Carrillo-Cisneros , LKML , "x86@kernel.org" , Ingo Molnar , "Yan, Zheng" , Kan Liang , Peter Zijlstra Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Andi, On Sun, Jun 5, 2016 at 6:59 PM, Andi Kleen wrote: > > > It is not because you force LBR to ring3 only that you do not capture > > kernel addresses in the FROM field. > > Keep in mind that LBR priv level filtering applies to the target of > > the branch and not the source. You might > > still get a kernel address if returning from kernel. Now, in callstack > > mode, I think the return branch is never > > actually recorded in the LBR, it just causes a pop, so theoretically > > this should not happen. I'd like to be > > 100% sure of that, though. > > Far branches shouldn't be included in call stack LBR. Don't think > there is any other situation where the ring 0 address could leak either. > Ok, so you're saying that syscall and int are not causing LBR callstack to record an entry. If that is the case, then a rfi should not cause a pop of the last LBR entry. Is that right? > > -Andi > -- > ak@linux.intel.com -- Speaking for myself only