Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10851298imu; Thu, 6 Dec 2018 07:46:17 -0800 (PST) X-Google-Smtp-Source: AFSGD/VIAbUYrZoB9DFnc8QUdiE8t5I+xJuSU8pnjazju5CXDLVs985h574T9vKzOK53drnqSp3N X-Received: by 2002:a17:902:ab84:: with SMTP id f4mr27990949plr.207.1544111177406; Thu, 06 Dec 2018 07:46:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544111177; cv=none; d=google.com; s=arc-20160816; b=k6y2GrbuGVgm1DOn0JNwmqskt8+SFbttb5e6Wj6p25Cb2c5PdCFNiRRvN3UP5eW597 2h7PWFM1Uo8Stmr9rCWrNT/BjV5RtbXGJHfkNff0bnz3h/+3yQ7xy2gXg/eaR59XQRxI QfMwdRknW4FNJOSrp/8Z0wPIoJaMEJAX3m5vLE6Mi0eutdJ++4SqzP6Xk9kY70QpA+s/ fweTuOYycjHcE3npOImmbE9vRw5RiG+mrr5u00ootzgZA7hdMEHnvwo5BOwdd3PAhrHA 5An9X+0Hmdiz5DyVkGPcZXEJWgeGfqVAj+Li9Uc/zV2BXmVmxHb5npMrNYnWkvQx84Tq 1sUw== 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; bh=rXr3pj/N46ZxBX72mnLShwTlTCvlD6CJFtrg9ZNdW8g=; b=NNY6CbLhJK4w5ev3n1SqfULwtxRDIY0rlQ8lCnWLSJc5zDknz59TrD2mNtf7cKfAcX nm6KukJ6EitYubACFcvEJEO5PCz7Uc3QNu7kScoiLTTebsuEzOp/jjpmZSMgS/0sGEUr NI36WO1pzOng7RZuGqroDO1z10jVbxR2SS0Tujt8/zslbC589j6VVeIbBHyN2JqNQw1M FKgsoVagBN1C3vYnFu/DqHyQlIJAlyIV4eafAZHCZjCw5j6EVFDzIWjdZqKcO/4DXd04 XDeExAqHQmX9orLg8LKbBvIWrfmCyF/VKnE+Y38HdH2UtosE8c2bzD+6A9+OB+Gg2o+E 4a9g== 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 n33si462718pgl.336.2018.12.06.07.45.53; Thu, 06 Dec 2018 07:46:17 -0800 (PST) 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 S1726029AbeLFPo3 (ORCPT + 99 others); Thu, 6 Dec 2018 10:44:29 -0500 Received: from mx1.redhat.com ([209.132.183.28]:19576 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725849AbeLFPo2 (ORCPT ); Thu, 6 Dec 2018 10:44:28 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 75A6C30DDBC5; Thu, 6 Dec 2018 15:44:28 +0000 (UTC) Received: from krava (unknown [10.43.17.30]) by smtp.corp.redhat.com (Postfix) with SMTP id 6BAF56C1FC; Thu, 6 Dec 2018 15:44:26 +0000 (UTC) Date: Thu, 6 Dec 2018 16:44:25 +0100 From: Jiri Olsa To: Vince Weaver Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Alexander Shishkin , Namhyung Kim , Andi Kleen Subject: Re: perf: perf_fuzzer triggers GPF in perf_prepare_sample Message-ID: <20181206154425.GA21381@krava> References: <20181205124538.GA19343@krava> <20181205163838.GA3836@krava> <20181205183326.GE3836@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.49]); Thu, 06 Dec 2018 15:44:28 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 06, 2018 at 10:35:28AM -0500, Vince Weaver wrote: > On Wed, 5 Dec 2018, Jiri Olsa wrote: > > > On Wed, Dec 05, 2018 at 12:11:19PM -0500, Vince Weaver wrote: > > > On Wed, 5 Dec 2018, Jiri Olsa wrote: > > > > > > > On Wed, Dec 05, 2018 at 01:45:38PM +0100, Jiri Olsa wrote: > > > > > On Tue, Dec 04, 2018 at 10:54:55AM -0500, Vince Weaver wrote: > > > > > > Hello, > > > > > > > > > > > > I was able to trigger another oops with the perf_fuzzer with current git. > > > > > > > > > > > > This is 4.20-rc5 after the fix for the very similar oops I previously > > > > > > reported got committed. > > > > > > > > > > > > It seems to be pointing to the same location in the source as > > > > > > before, I guess maybe triggered a different way? > > > > > > > > > > nice.. yep, looks the same > > > > > > > > > > > > > > > > > Unfortunately this crash is not easily reproducible like the last one was. > > > > > > > > > > will check > > > > > > > > what model are hitting this on? > > > > > > Haswell. 6/60/3. > > > > > > While I can't deterministically trigger this, the fuzzer usually hits it > > > within an hour or two. Is there any debug or printk messages I can > > > add that would help figure out what's going on? > > > > I can't see how we could end up with that config other than > > some corruption.. the only way I see could be that we touch > > cpu->events array without checking its active_mask bit > > > > but that does not explain why the crash happened in the same > > place as before > > Maybe it is a corruption issue. I had applied my own debug patch that > would dump some info if data->callchain was NULL. > > But my debug code didn't trigger this time because it looks like > data->callchain was "1" rather than "0". > > [27764.840179] BUG: unable to handle kernel NULL pointer dereference at 0000000000000001 > [27764.840179] PGD 0 P4D 0 > [27764.840180] Oops: 0000 [#1] SMP PTI > [27764.840180] CPU: 1 PID: 18687 Comm: perf_fuzzer Tainted: G W 4.20.0-rc5+ #125 > [27764.840180] Hardware name: LENOVO 10AM000AUS/SHARKBAY, BIOS FBKT72AUS 01/26/2014 actually, you could try that patch from my previous email? thanks, jirka