Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2505864pxb; Thu, 11 Feb 2021 14:19:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJyUOhgY9BKd8nkf0TBkkxXXcHl1ZccM/NtqzUQLbrlXYWdEr0l2k2QTgIzYN9BDaZPuOnIA X-Received: by 2002:a17:906:bc99:: with SMTP id lv25mr10391606ejb.15.1613081953834; Thu, 11 Feb 2021 14:19:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613081953; cv=none; d=google.com; s=arc-20160816; b=prZ5DK7L95DCXtcQ30fWP/IZBj5Ycpe6VQZuysRzmMrhzqGrDQqGk1DcsUU09q5GwO ytsBjqHSTprQtJLTA6OFSPu27hbKkr4p6pCHmicNzR6OPKzT7uxN20mUHyn+VWIkauas JDM1zbwOJKnKbIA2TG3/biStgvF7r1iIi2gcQb3Dk000wlUEx+Oq9OOnU0Ate40m32kQ 3/vosnr+5TW7bFdpo0NYN60oFkTPPZnYxfe34tF93lVPATaTMu1NS+RHO1u7DFUWCQiD kGiZrpNNbWnYNUZurDV8MyOPMD81DTHY5U/aGOtR44mJueejjN3YljPFKX+dztiTBcHG e5nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:date:from:dkim-signature; bh=PODLmcensEfgZug2I/n2EdIPTP+oXQQxlxWqHaBSMvE=; b=kUQF2iZJFgce+hIP/W7kMNUxUjC4NFOjEq9FibVLeJFsNag2EqnZFwOlqNthBANBUm RkuouD9Kwz5fAB6mGT6Q4NydugErmoBOGkvuJ2IzT52Q9J7Ugwd/O22gxlex8Iu3528S Beui5rq2CpjM1ZZW7OXRBmbWdmQYN5Rrlj4EL3vOJYEp4qFV3o056mHTpSANfuqB8IDX 7VUDqJK6rsJ4iuLEhdgfbSpy7/PbTaDRewvIJmRW3gjuj9QJAr923guf3GrjN6+vPWgR PubtFiWa8t/KA82p/MyDlvnKcdfk2gB7US8zr4bZjhzf+Tw6L8UXoS6foWLPci4rGAQ0 57MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maine.edu header.s=google header.b=PGZpRXqZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp16si5310327ejc.564.2021.02.11.14.18.50; Thu, 11 Feb 2021 14:19:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@maine.edu header.s=google header.b=PGZpRXqZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230018AbhBKWPg (ORCPT + 99 others); Thu, 11 Feb 2021 17:15:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230029AbhBKWPd (ORCPT ); Thu, 11 Feb 2021 17:15:33 -0500 Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52D06C061756 for ; Thu, 11 Feb 2021 14:14:53 -0800 (PST) Received: by mail-qk1-x72c.google.com with SMTP id r77so6916358qka.12 for ; Thu, 11 Feb 2021 14:14:53 -0800 (PST) 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 :mime-version; bh=PODLmcensEfgZug2I/n2EdIPTP+oXQQxlxWqHaBSMvE=; b=PGZpRXqZz3v6ysEf+3RdCR+AXGNav6FdMGtcfgT8dORBSYB5QgjpmVMRu7/kPgZV7B Ac2t3N41OzIGGG6qrxHG7fIWuozDfJZIrU2iUH7zk7NcgC23ZMyyn6P7KETR/b3Unsat fuZgJ/nGYR22OGFgs9hD53JROgCmTo1bOxF2w= 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:mime-version; bh=PODLmcensEfgZug2I/n2EdIPTP+oXQQxlxWqHaBSMvE=; b=uIiXV50dM3MFs50dlLIQs7SPdfeuI8anAMnvnDkZo6gmdJU0OH7M6RF/RGwi8GKvGX KsWvVhHa6IOG/CTMYi8YGSsuN7S2xFmlm7p4WjfogEScCGBYlTIO1FvDj0PhOH+CkhXp MX0BwOTvIwChA2J+GlGG3/fkPRrnVRqOSkesVdIVBVDaJLVogfYbFDx5LpieSjzDF+Rb jYyveK+SU0HQLhvoMMQYYGyVTkHfiP2q9xiQHoQ9v/Cn0NSD+aA835BTldg7m/noyXLv OHlNLkcbm375tDqvMVwZqPbF+d6abZemr6OD7qogVyZnt9Cpv2QJqggqU4RDJM5ofCRL TlBQ== X-Gm-Message-State: AOAM532tJOMRYpItNwFK9uxOTXfyWKkS8b1ucZyu+yGC/yA/kRYyypil 31S58lDXA/II6M10yq8rR+vM1g== X-Received: by 2002:a05:620a:227:: with SMTP id u7mr8983263qkm.226.1613081692559; Thu, 11 Feb 2021 14:14:52 -0800 (PST) Received: from macbook-air.local (weaver.eece.maine.edu. [130.111.218.23]) by smtp.gmail.com with ESMTPSA id v18sm4844052qkv.62.2021.02.11.14.14.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Feb 2021 14:14:51 -0800 (PST) From: Vince Weaver X-Google-Original-From: Vince Weaver Date: Thu, 11 Feb 2021 17:14:50 -0500 (EST) To: "Liang, Kan" cc: Peter Zijlstra , Vince Weaver , linux-kernel@vger.kernel.org, Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Stephane Eranian Subject: Re: [perf] perf_fuzzer causes crash in intel_pmu_drain_pebs_nhm() In-Reply-To: Message-ID: <2a655469-de9d-c80-dd7f-26436d6f03a@maine.edu> References: <61a56699-aab4-ef6-ed8d-a22b6bf532d@maine.edu> <7170d3b-c17f-1ded-52aa-cc6d9ae999f4@maine.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 11 Feb 2021, Liang, Kan wrote: > > On Thu, Jan 28, 2021 at 02:49:47PM -0500, Vince Weaver wrote: > I'd like to reproduce it on my machine. > Is this issue only found in a Haswell client machine? > > To reproduce the issue, can I use ./perf_fuzzer under perf_event_tests/fuzzer? > Do I need to apply any parameters with ./perf_fuzzer? > > Usually how long does it take to reproduce the issue? On my machine if I run the commands echo 1 > /proc/sys/kernel/nmi_watchdog echo 0 > /proc/sys/kernel/perf_event_paranoid echo 1000 > /proc/sys/kernel/perf_event_max_sample_rate ./perf_fuzzer -s 30000 -r 1611784483 it is repeatable within a minute, but because of the nature of the fuzzer it probably won't work for you because the random events will diverge based on the different configs of the system. I can try to generate a simple reproducer, I've just been extremely busy here at work and haven't had the chance. If you want to try to reproduce it the hard way, run the ./fast_repro99.sh script in the perf_fuzzer directory. It will start fuzzing. My machine turned up the issue within a day or so. Vince