Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10842611imu; Thu, 6 Dec 2018 07:37:47 -0800 (PST) X-Google-Smtp-Source: AFSGD/V+J3VQJdAKUhkOCM5y+7kchCwrJvswOlh6m9k530TjBe8i5ETp2IZeI18PTdaEVFkJXsA7 X-Received: by 2002:a17:902:27e6:: with SMTP id i35mr28107386plg.222.1544110667362; Thu, 06 Dec 2018 07:37:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544110667; cv=none; d=google.com; s=arc-20160816; b=Q951zGK7eSi7M7ARuhfaDpEqzOArp4/i+b4yiXFYePyImYRBx7Bfb3u9iPec1y0yUe vy9dX0MlnMxxzClJcDYsSnq8EjsC9dyg6dHWQ4TsT8AODx4P/LZNEhBJWtdoCzb63hCZ BoX5u0JopPrjXZIHBKBffyKcdr7LOVkL4am1tMs9AxBd8XW/F8HsIjfdZEIZmlVJ47r7 1hEzbFpl0oyIrMu8bIb8nIhcoPKeCMxxFOYD0i6bNdKsnY7B8idvJ0JKv7Xqya2+ptkP masyTTQsaCPHGr4uR5yxN1IDz1Ppc/O+NvqMt7giSBHjyxZlMOnNUaYTxCrym5U7pxEx LvzA== 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=EPvFlGwtf3ouZonNylTbHvWnQtnzTmxZeJhlUIPwVS4=; b=YtaE7wm1E+Apbt2rza3BU+wOIFS1xE+Ia0yrVsP3+dZKsoYWgoZs2YmClltABtc82r qpNLwYKwO3tzLgZ1FjlfwaVvyXK2pT+cMjPAm5cKnlxcqYkdRnGJEUbACUsazh9L2d6j momxX4Geporj+KVSaAWxWTuwvS3KnW0qfJlSXBYU/XxChDsvthJhVj7qJgjzhErGxeYK yLhW89q77ShzJgTVhdBV/GVdFrsmEsGkVxH6iPyHik8ZZ+kvbM1zF/CtGDkT+UHiMsr9 Ua9zxe4FFAXmKvk++8teqRteeNTYrULRxuXhuXX9W4awRfbN0D9ilEuNk6WPAResI6Ub 70xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maine.edu header.s=google header.b="WIeYS/3L"; 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 93si528183plc.2.2018.12.06.07.37.22; Thu, 06 Dec 2018 07:37:47 -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; dkim=pass header.i=@maine.edu header.s=google header.b="WIeYS/3L"; 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 S1726126AbeLFPfe (ORCPT + 99 others); Thu, 6 Dec 2018 10:35:34 -0500 Received: from mail-qt1-f193.google.com ([209.85.160.193]:39513 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725929AbeLFPfe (ORCPT ); Thu, 6 Dec 2018 10:35:34 -0500 Received: by mail-qt1-f193.google.com with SMTP id n21so952710qtl.6 for ; Thu, 06 Dec 2018 07:35:33 -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 :user-agent:mime-version; bh=EPvFlGwtf3ouZonNylTbHvWnQtnzTmxZeJhlUIPwVS4=; b=WIeYS/3LXFUDotVm0xxNlpL/u1lC/M8q9NDIMYm3BeTTRh0RajpSTtRF5bxeafgs6N veISQm/FWpIn5pXiJM1ZT9KXUbhFGrIEjFpEOV/csq9pptoVF7KL6QUMtvrchLcqUpga UeXGDRxoMFcDT3C2qUAjS90FngSC/FE+4EFjw= 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=EPvFlGwtf3ouZonNylTbHvWnQtnzTmxZeJhlUIPwVS4=; b=quSXYG4EC9XIzdM7OkHovOKJIQwpK4mDtAYpVqX1+RB5Ece7+HXw7JX6ik00JP74H4 A1SxvQ0wW1cZJ1upLji/K/EEA7BdaQ1bFdCiLIw/PElw4AasS2kvwPXVxLv9Zf2PFNpm i7KimzUccnZtP+zmIXQRefUgs629Bg17q0lg7NdUlK0Ik4n6dqQiM32DTO5rlKOD4t+L IiRPvdwrqHm5POYn4oABRe0lgCikCzU32BQ46e3Oezj1n2vAJJpbVw99smUV565TR6ZG EjNyMiBuzIDIKsgGIh6N8WFxkh4Jwn4ozk/VVtqX9EoRdg1wT+lvX2TAYC2o9ZTftQ4K Hbfw== X-Gm-Message-State: AA+aEWbOrKAXbBxM/qrGckpYswS+w2xpQ6e1KE5OqavPwimTWIw9TKgC 89CpO5M5wHI1H7k7UqDCorPpIA== X-Received: by 2002:a0c:f9c3:: with SMTP id j3mr28216976qvo.107.1544110532721; Thu, 06 Dec 2018 07:35:32 -0800 (PST) Received: from macbook-air (weaver.eece.maine.edu. [130.111.218.23]) by smtp.gmail.com with ESMTPSA id 3sm274960qkd.84.2018.12.06.07.35.31 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 06 Dec 2018 07:35:31 -0800 (PST) From: Vince Weaver X-Google-Original-From: Vince Weaver Date: Thu, 6 Dec 2018 10:35:28 -0500 (EST) X-X-Sender: vince@macbook-air To: Jiri Olsa cc: Vince Weaver , 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 In-Reply-To: <20181205183326.GE3836@krava> Message-ID: References: <20181205124538.GA19343@krava> <20181205163838.GA3836@krava> <20181205183326.GE3836@krava> 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, 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 Vince