Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2260096yba; Sun, 7 Apr 2019 13:22:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqxA4q4dnd+IzcqdW/Vi2rMUcGqgurrM40pxw6o/kIbuL0DjpqC+o3iUXoYSiq2/hBk8aQoA X-Received: by 2002:a17:902:2d01:: with SMTP id o1mr26409659plb.155.1554668536295; Sun, 07 Apr 2019 13:22:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554668536; cv=none; d=google.com; s=arc-20160816; b=rmvJcgmtcXiZJQmAKaQdRk6urrKWk0NfI0bpI2HcesTwnwZy5RKKO7sNMg0UfQ5Atr MKFkT6oGudrrtExORc1RZ1vnlXDIxF0xB1upWDAV3IMqERWtkPtvDEp8VADxrFdyEjdl fHklqDpBMym9EMma5y2hbx1BfZMzMiCUeQ+dOcqlVzCsy70FUXiLuqRrcHH7mKguzGC5 NWsjBW6s/fKnHG5PJyMSVAPgxpeqebQnZDTRA+3h5fFZnzRXb3msgh/UmU53ogjF0+V2 AULqHH43xCKrrxaTaim5OvM/OjnP76GWAXi2IO4WrXnaKNPRnWoELpTvqjR+xD0DQy7+ exVw== 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; bh=2TGSbaHXR2pR397fNB4mOvKz5WSV1SP+1BggsWMPrTY=; b=w6SMNUe5kxMRb27+0+ou8PaELvQ+MBoq91fBJRvBxGwOOrKitbJx2SQOOAaOusUHf+ rdDoLbfL2c7xTi+ooFf5CaC+L0toq8cfqBgtQ89nAUKtxWeiGDlJy680nucHrCr6hcwd r6p00PcVgEFwsIV7UhgE3r+Cuu0iBaGERHmhxakL3PIvswlxA5XP3g89ERtyClTOH0ID aWRlnNqMv0aLW/KP7noyc0NUSOKigkeYQziot/foxuaEZNOZNnFWYUk0ifaVv2uSwK26 R+KpA2Y/9aVQhCbQ75+L2DmBQGOA+fLM8Fzb0kpRESIMKdvI0XOIWj8CgbvVkjfC4VKa 04xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Y/H0feId"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l98si24928018plb.165.2019.04.07.13.21.51; Sun, 07 Apr 2019 13:22:16 -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=pass header.i=@gmail.com header.s=20161025 header.b="Y/H0feId"; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726479AbfDGUU7 (ORCPT + 99 others); Sun, 7 Apr 2019 16:20:59 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:46222 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726396AbfDGUU7 (ORCPT ); Sun, 7 Apr 2019 16:20:59 -0400 Received: by mail-lf1-f65.google.com with SMTP id r25so7869004lfn.13 for ; Sun, 07 Apr 2019 13:20:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=2TGSbaHXR2pR397fNB4mOvKz5WSV1SP+1BggsWMPrTY=; b=Y/H0feId3BT8iySmnsOxh25NXVS0pS3cquqWO6wLTC116fF+xXQqn1wh4iVHz+EDEC TsoG6gI50s5mtklNdkN10F7w7uFLPOSfGTn9Jt8+yAk4eDRCIP/SzI7PalYBl9skBv/t bkf3HOgb6Nq6hHfvSKIT5Bx08b02JJu+hhuQWoQoYKRMDu54Mk3znQVATj3/ain1FLF3 OXBZbh8jwJAcifQYUatwC0tx0R4Y0FoSvp/joh/y3dXwO86oB6UUloCRtiQvHhHmH4Id UE7sOACCzezBBb510szzN5s8HtnENNVVQS0A8LcDBbLH2IrE512cFlteeBXcifzjMZco wClQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=2TGSbaHXR2pR397fNB4mOvKz5WSV1SP+1BggsWMPrTY=; b=sS1+FiL/ML2BzmMmDSy1JK6SqdjVCnEkTESLCu4H6cZ1LEyWUTUtEln1o/P8M5jUJ7 19lsSy79anXkxJ47i+hvMD/kyyCJxwNa6/+qT9FhyRYJNm1eU0dqH4snRhBfqNbmSuKJ VxEAbyzGmQOZZ6KKAuGXS1mpcGIjuxI5bZ0e0k52UVTGHMIqZqcdpa0qG3ZvqDCYNOWT nYt/Lq4rI8DrLwengNqjKTfH1OdeniqcTegujzhzNaMjH59YunwXtM/JajmGSby8dGLX c1KhmfylxQ57pX1YKZu6qoDgEP+Zlpl8AVw5dCIVv/iLR2rur1d5VPha2C6YpQV93ZVK 0zEw== X-Gm-Message-State: APjAAAVxPCWKlSUPg7wVqAC1VT6A2oS96upJ3IvVc6zOl96fLSmudqAI VCUFjJnxz+JNFhxyjzDrH00= X-Received: by 2002:ac2:592f:: with SMTP id v15mr13142350lfi.133.1554668457068; Sun, 07 Apr 2019 13:20:57 -0700 (PDT) Received: from uranus.localdomain ([5.18.103.226]) by smtp.gmail.com with ESMTPSA id q26sm6133025lfd.27.2019.04.07.13.20.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 07 Apr 2019 13:20:55 -0700 (PDT) Received: by uranus.localdomain (Postfix, from userid 1000) id 721644606EB; Sun, 7 Apr 2019 23:20:55 +0300 (MSK) Date: Sun, 7 Apr 2019 23:20:55 +0300 From: Cyrill Gorcunov To: Vince Weaver Cc: Peter Zijlstra , linux-kernel@vger.kernel.org, Arnaldo Carvalho de Melo , Alexander Shishkin , Ingo Molnar , Borislav Petkov , Namhyung Kim , Thomas Gleixner , Jiri Olsa , Stephane Eranian Subject: Re: perf: perf_fuzzer crashes on Pentium 4 systems Message-ID: <20190407202055.GX1421@uranus.lan> References: <20190403191944.GH1421@uranus.lan> <20190403203144.GI1421@uranus.lan> <20190404133327.GP1421@uranus.lan> <20190404164700.GR1421@uranus.lan> <20190404202038.GT1421@uranus.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190404202038.GT1421@uranus.lan> User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 04, 2019 at 11:20:38PM +0300, Cyrill Gorcunov wrote: > > the machine still crashes after this, but not right away. > > yes, exactly, if look into disasm code we will see that 0x158 > offset points to hwc from event. Vince, gimme some time, probably > the weekend so I would dive into the perf code more deeply and > will try to make some debugging patch for more precise tracking > of events. The kernel you're running is the latest -tip? Vince, could you please disable alias events and see if it change anything, once you have time? Note once we've aliases disabled the counter for cpu cycles get used for NMI watchdog so PERF_COUNT_HW_CPU_CYCLES won't be available in "perf" tool itself, but I guess perf_fuzzer uses direct kernel syscall. --- arch/x86/events/intel/p4.c | 2 ++ 1 file changed, 2 insertions(+) Index: linux-tip.git/arch/x86/events/intel/p4.c =================================================================== --- linux-tip.git.orig/arch/x86/events/intel/p4.c +++ linux-tip.git/arch/x86/events/intel/p4.c @@ -622,6 +622,8 @@ static u64 p4_get_alias_event(u64 config u64 config_match; int i; + return 0; + /* * Only event with special mark is allowed, * we're to be sure it didn't come as malformed