Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp98415imm; Thu, 10 May 2018 16:17:19 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq0gR9mR3JVy1s6Xe93rAVDakOIaJYqIcp2dW7wgnIkwcRHdFtDMvSYmmwHTTN2Hk4sEy1T X-Received: by 2002:a63:710b:: with SMTP id m11-v6mr2554177pgc.326.1525994239771; Thu, 10 May 2018 16:17:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525994239; cv=none; d=google.com; s=arc-20160816; b=WXC+sbjKG5IAygKLDsXI092MBJksugN2N27cVD81PrahMFfcRBgFx/YSW3gnOTYhtV XOVaWgh1szuQ9jEXh98mDSqIQCSkh0m0qI4anbTBLt3OQYZN2eNCyX41ZYd2P+bjk66m kTraf67uWOaMvKKoFTIC7BEEKbvO/0G1ySKeVffjOe5xRLOAyp5AWjieUWLCBGEnhuQj pZGGvsQWk9DzVx+z+0H0QA4o9zAiEE1nfBqmo/sS8RR9Of8qi/JibzxaDPHrkjpZf8/X LdJL8vbfls2jVwAV2qkp33ZeS1cUrlB/YW4XyjOXC+5Or8Vpn99HGqmdzLitsIFh8G+H TgSA== 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:arc-authentication-results; bh=eE/KZlRvXK+RnrFTgSBwe6ndVLp9M9mDYC1MSPu2mdE=; b=ZUgSY88FPIv/PjKo6JEUx7jx35KkNGZcAfqfkEKtxl+/zRbv4Ow9doWIyLJIR7M8pp 2h2eJINKcGZVZkgLGrW/N2690qDJcEipc+pz+z3ly3CKX/O27GWmqaUVBDepnrI7JCC6 8cnTccKa1b4thDxTcfWFskWHXQrGv4RZRMVbOKh8Ss+hFJ08uv4fz/BwhGgqIOtMBW/7 j4gKD8iFa6QY+eL6F3qcE4laCh3iTdowhZTn5UgT3kLUscMW3RINVC93QUO3PaI3ygEF NoLNE1/lEOP0O9VLPmL3wwf9L2U3dP9pRxKlT+2YOm/bDC+jUx1QOHQP2ZqJ+T9APLbS zFrw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b34-v6si1757135plc.53.2018.05.10.16.17.05; Thu, 10 May 2018 16:17:19 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751927AbeEJXQz (ORCPT + 99 others); Thu, 10 May 2018 19:16:55 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:50340 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750758AbeEJXQw (ORCPT ); Thu, 10 May 2018 19:16:52 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3065E406F121; Thu, 10 May 2018 23:16:52 +0000 (UTC) Received: from treble (ovpn-120-130.rdu2.redhat.com [10.10.120.130]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AE1B963F5A; Thu, 10 May 2018 23:16:51 +0000 (UTC) Date: Thu, 10 May 2018 18:16:49 -0500 From: Josh Poimboeuf To: Peter Zijlstra Cc: Vince Weaver , Ingo Molnar , linux-kernel@vger.kernel.org, Arnaldo Carvalho de Melo , Thomas Gleixner , Andy Lutomirski Subject: Re: perf: fuzzer causes stack going in wrong direction warnings Message-ID: <20180510231649.a5p3cv3g653jai6a@treble> References: <20180501135850.enx4waqd5d7yowlj@treble> <20180501220458.p3rgwzh3jcqt4jmm@treble> <20180502205009.codkvscnh4j4hm6b@treble> <20180504162557.iodmglq3duomz6c2@treble> <20180505182912.llj7jb3v7yd43t5h@treble> <20180506234935.yq6zxjetlpldpzz7@treble> <20180510134841.GE12217@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20180510134841.GE12217@hirez.programming.kicks-ass.net> User-Agent: NeoMutt/20180323 X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Thu, 10 May 2018 23:16:52 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Thu, 10 May 2018 23:16:52 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'jpoimboe@redhat.com' RCPT:'' 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 03:48:41PM +0200, Peter Zijlstra wrote: > On Sun, May 06, 2018 at 06:49:35PM -0500, Josh Poimboeuf wrote: > > > Deja vu. Most of these are related to perf PEBS, similar to the > > following issue: > > > > b8000586c90b ("perf/x86/intel: Cure bogus unwind from PEBS entries") > > > > This is basically the ORC version of that. setup_pebs_sample_data() is > > assembling a franken-pt_regs which ORC isn't happy about. RIP is > > inconsistent with some of the other registers (like RSP and RBP). > > > > Peter, any ideas? > > Urgh.. > > Something like so perhaps? It's a bit of a hack, but I couldn't quickly > think of something nicer. I had to convert perf_callchain() to a global function to get it to compile, but it does seem to fix the issue. -- Josh