Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1209475yba; Thu, 4 Apr 2019 06:27:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqxrJ0sCLLFzR97f7i83zfPr2bSMTphawu35gz1zlnNtExEumx4Ki4RDWrD3YQsUTLhZqYal X-Received: by 2002:a65:420b:: with SMTP id c11mr5962473pgq.24.1554384437878; Thu, 04 Apr 2019 06:27:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554384437; cv=none; d=google.com; s=arc-20160816; b=TBn6Z8fBsOwAAWd/cESQdR2GY0DMLDQSjLxboeuQLhKWg/uguA0YECVCXS1fYRsPMk cKO3QmWQXawQclavCVzniSwR4KSVPAjdUFppWH8BBXOvMAAU7WHWQNOsCrjwEW+spHVS pbgH6vScPPan1efWMHqYOd1AoKV8brlca5WS3libgEPb8SEmPefBLfvJEtYL87l65loT 6AwK+ls28g9sP20+TYT/5klKJyphfzNiaxCAbf1v7aLpJfZtrsiMRlCbR0EYrtHwrJ6d uxQHzZw/4sqiW8oQntprOzUt/SlsuLH2kGpNFcDiduOac+ADY4JmHEYOgYONxiu2cbT+ QE/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:date:from:dkim-signature; bh=MoJEbnNU/V386aeTrabGdg0XpgK1f04Dz8sL2bmp6FQ=; b=c/q9PJpFCnsw5wXGpLpimBGuzwRLxn9CYzDgeHywsirPp88mmp1EdHKQGH7R3B+nAD OqHGwa9NVOLtYbK50laEGeuk2m6w2pUOQ58sYZqUsE+VnjyRDlfXcEik6QXao+//6Xjn MZZc0DhJEIwskCLf8FXwOMuhalU4K9HVpy5ExIXAXBx+V3SBnbRZiMmalpzHPLbSaK1a fQzUw3g5cAZPj2puq9OnAU8pHDi4nVakZ0F2U35ubDW9/XvcDbGxjL4P4taG4WEbeKo8 IpmcJqjf7BdQTGT6PXOTDAHLAsuW9Xshq3ZHbcZL03nNqm8F0imj58KDPQLCiQXUvPfX 2Lpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maine.edu header.s=google header.b=CWAB6vz2; 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 t69si16156309pfa.7.2019.04.04.06.27.01; Thu, 04 Apr 2019 06:27:17 -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=@maine.edu header.s=google header.b=CWAB6vz2; 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 S1729798AbfDDNZx (ORCPT + 99 others); Thu, 4 Apr 2019 09:25:53 -0400 Received: from mail-qt1-f174.google.com ([209.85.160.174]:33875 "EHLO mail-qt1-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725914AbfDDNZx (ORCPT ); Thu, 4 Apr 2019 09:25:53 -0400 Received: by mail-qt1-f174.google.com with SMTP id k2so3197016qtm.1 for ; Thu, 04 Apr 2019 06:25:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=maine.edu; s=google; h=from:date:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=MoJEbnNU/V386aeTrabGdg0XpgK1f04Dz8sL2bmp6FQ=; b=CWAB6vz2njn64UmaJTggQoDv4cwz9BQCqhbeTs4Fko0QH+Hj+6+GH6C0MOlvKj0Ed2 ORsOn6u5sO0VaIfF8yrQ/GKLTyH0XRYJ7xf4HkgxM1if/P22msm0cfR4dU6GFFcuA69E kJhM2tosbU02b0no8Rf34aEKpWoG0w40S6xQQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=MoJEbnNU/V386aeTrabGdg0XpgK1f04Dz8sL2bmp6FQ=; b=HAeYA0292i1RzpHJiim2xNKqxLeLYgoSX5Qenihcp9Ph2UTYfrvyB1ZZA4cnFvBrQO K1MQSlcORYc3ufEww+h6oAa+sPxokq1N/Ub5C4YfDVUZl1u/fCyif+/YkvMpqR/z7VwM TzNIg1vmQv+GI2oXUXTWFyHvKbwJKafxllXKT2fMT2LotVl0R8nCkk2pcWjGhSxaB9lX tLErnsD53HM5QeewMNmm1rZp9SneL3UPi3+getqxLOjwN8Sn9dCA/cJ/r9HgYgkp71fJ kf3RONSUM/ndqu8FJfZF85BFgY0XqK7NuUOz7SrMlxX636QsIvawWvvPywNbdXxIOG+k Jc6A== X-Gm-Message-State: APjAAAX1D43B/CajxJ8v8UgObQiujG5rX9a5zZ2ECWzE/osQhYXpx9VB QzSEMtToJarpOFpXmapyYkXAeA== X-Received: by 2002:ac8:2deb:: with SMTP id q40mr5214202qta.272.1554384352340; Thu, 04 Apr 2019 06:25:52 -0700 (PDT) Received: from macbook-air (weaver.eece.maine.edu. [130.111.218.23]) by smtp.gmail.com with ESMTPSA id l129sm10051154qkb.44.2019.04.04.06.25.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Apr 2019 06:25:51 -0700 (PDT) From: Vince Weaver X-Google-Original-From: Vince Weaver Date: Thu, 4 Apr 2019 09:25:47 -0400 (EDT) X-X-Sender: vince@macbook-air To: Cyrill Gorcunov cc: Vince Weaver , 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 In-Reply-To: <20190403203144.GI1421@uranus.lan> Message-ID: References: <20190403191944.GH1421@uranus.lan> <20190403203144.GI1421@uranus.lan> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 3 Apr 2019, Cyrill Gorcunov wrote: > On Wed, Apr 03, 2019 at 10:19:44PM +0300, Cyrill Gorcunov wrote: > > > > You know, seems I got what happened -- p4_general_events do > > not cover all general events, they stop at PERF_COUNT_HW_BUS_CYCLES, > > while more 3 general event left. This is 'cause I've not been following > > pmu evolution in code. I will try to cover this events hopefully more > > less soon and send you a patch to test (if you don't mind). > > Still this should not cause nil deref, continue investigating. Vince > could oyu please apply the patch below, I doubt if it help with nil > issue but worth having anyway It looks like there are at least two bugs here, one that's a full hardlockup with nothing on serial console. The other is the NULL dereference. Just ran with your patch applied and it hit the hard lockup case. I'll have to see if things are reproducible and I can try to see if I can get a reproducible value for what even caused the issue. perf_fuzzer has some infrastructure for determining that but it's hit or miss if you can get anything useful from it. I'll keep running things, but I'm a bit busy at work here the next few days so there might be some delay in the results. Vince