From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754923AbcHSPDh (ORCPT ); Fri, 19 Aug 2016 11:03:37 -0400 Received: from mail-it0-f51.google.com ([209.85.214.51]:38310 "EHLO mail-it0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753616AbcHSPDf (ORCPT ); Fri, 19 Aug 2016 11:03:35 -0400 From: Vince Weaver X-Google-Original-From: Vince Weaver Date: Fri, 19 Aug 2016 11:03:23 -0400 (EDT) X-X-Sender: vince@macbook-air To: Peter Zijlstra cc: Vince Weaver , linux-kernel@vger.kernel.org, Borislav Petkov , Ingo Molnar , Arnaldo Carvalho de Melo , Huang Rui Subject: Re: perf: fuzzer crashes immediately on AMD system In-Reply-To: <20160819100130.GD10121@twins.programming.kicks-ass.net> Message-ID: References: <20160819100130.GD10121@twins.programming.kicks-ass.net> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 19 Aug 2016, Peter Zijlstra wrote: > On Thu, Aug 18, 2016 at 10:46:31AM -0400, Vince Weaver wrote: > > On Thu, 18 Aug 2016, Vince Weaver wrote: > > > > > Tried the perf_fuzzer on my A10 fam15h/model13h system with 4.8-rc2 and it > > > falls over more or less immediately. > > > > > > This maps to variable_test_bit() > > > called by ctx = find_get_context(pmu, task, event); > > > in kernel/events/core.c:9467 > > > > > > It happens quickly enough I can probably track down the exact event that > > > causes this, if needed. > > > > I have a one line reproducer: > > > > perf stat -a -e amd_nb/config=0x37,config1=0x20/ /bin/ls > > OK, cannot reproduce on my fam15h/model1h. I'll go dig through the > various manuals to see if I can spot the fail. > > Huang could you either prod someone at AMD or do yourself, audit the AMD > perf code for all the various new models? OK, this is weird. I rebooted (didn't patch the kernel, just rebooted) and I can't reproduce the original problem at all. It was perfectly repeatable before I rebooted, dumped an OOPS message every time. Sadly I don't have the fuzzer logs that originally triggered the bug (need more serial/USB cables. Actually no, I need more null-modem adapters). Let me look into this a bit more. Vince