Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1391071yba; Thu, 4 Apr 2019 09:47:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqzKDQs40L1nltdlaMOGstxAjoH/Xe5X8/AZP57WlJnc3HpnGgK+hH6gCrqtEc+88LtBLoEn X-Received: by 2002:a63:e845:: with SMTP id a5mr7085038pgk.246.1554396476072; Thu, 04 Apr 2019 09:47:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554396476; cv=none; d=google.com; s=arc-20160816; b=kc9/SQzJq5VBKoKsTjKCOGWe3/wmA0nfIjzKDmNaOZ070Xw1Sr1KlukTYiF1Cg16D1 rG1xOfBclv9ptflS0huF+aQWh2ENHxBLDO6TfrFJHmvL4rhwyH+dWwP5nw9ktOP9f4yM rqQ0959lgPjVBKI5iaHJr+QGArTT4HytuSAD4XKG9ewOML0kxlqaGOA2MgTZnZqMnphR 3o5fk3vLLvRH+Hzn32D++6z3Cky0cX167MyaPMa7frw2e+4+8qJevrAHm/taaDzA66E+ Yj+Mwzmu4r/TsEmtu8d5NP5CjqVHnkJn7yo7e93ejAsaRRbdW6WjFIgD+TkKXpD49Qyb w7+Q== 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:dkim-signature; bh=EuUJCkkF8EMeJhXuUWpVcEjJ3aQNWsOOW9Ft9o4wkUw=; b=yYqEB0E9vCfGyuKMQwlwH+qy9st2pV//iG1UZWf+++LhTacNs/1bRJzcVh1JSb2axM koQco1aRW2HZx068+vecKZAfYX1mza56nHL0ZQka7qDnj5mo/CXfdNlSGo7WgILvwCAE Kwl3AG02FNFIeIrVicvCSxeYkOvL4K2ugycsgCAi+uOHXry0iliMzf98otAMllLlmZdt DfkKUPiyFPeoHQrmjE5qR8GyXREZ0llBt4tK/s9Iffr4kbzRV+oVhyw7gUU+z+PVG8/C zkf7aB6XyuiZEiCzm7sSNaXI76a/oSmD5LIqi+Edsv0TgoWzMulcsCiNkmflveB4Q8z/ fZ3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vT41n3az; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m17si17311882pff.130.2019.04.04.09.47.41; Thu, 04 Apr 2019 09:47:56 -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=@gmail.com header.s=20161025 header.b=vT41n3az; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729357AbfDDQrF (ORCPT + 99 others); Thu, 4 Apr 2019 12:47:05 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:36824 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727212AbfDDQrE (ORCPT ); Thu, 4 Apr 2019 12:47:04 -0400 Received: by mail-lj1-f195.google.com with SMTP id r24so2720305ljg.3 for ; Thu, 04 Apr 2019 09:47:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=EuUJCkkF8EMeJhXuUWpVcEjJ3aQNWsOOW9Ft9o4wkUw=; b=vT41n3azLBzPxsjuLtHLjhEXyWSoRrYcY8AOY4/ad1KCN3DBKMX3gZK+X+yigUPKUo rx6foXla0O3fYtS+m9Dfa03GpjfFELLvkGaTC8d2TbzYfmisEP/k7saD8BfKPDLe8UZV jGC+sjzPxo6lCGNdoOrvdBWMyVebByL2ZlDU/rKQNvBCRwFYiEZFtI8TyBsYf4xeqH6p 4O/XHAIRuwNNKBvyc9jcBHf6KQgiIZAKelygbp3jnr6ECDqM/oD90VA9HKJCZwZUe7i1 pyXP5Te5qbzyoxx8NHtzWjL/1fqYfHDcIPwvacC344nkbCmdraQYfXhczaBsbUox1Qbd EvxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=EuUJCkkF8EMeJhXuUWpVcEjJ3aQNWsOOW9Ft9o4wkUw=; b=NjYZbBsscexaoatQoqjHaGSDaO500jT9a3hosIm65SMpH7oB78UlMpN4kBnweKxfg8 gVZ9YM87Qh9bBK89B4u9tsYVwqrbsSjJ8lb31xkebJ3beZdW7jcR6MzlL+/axCjMpJDF uvHeLlEvKceoHmNwEknkJB/n3wHpL6mFOlWBLQ0VLSOMLyZ62oaRoZbHYpz2hzk9rphg nmuTxE0OJxd369GsjcbLu46iqAahaad5HLtzibyoxdSi0esS4HxlMTjWuoYhb5TgO4j9 oPvN3KGO0+JN/yOF7UlA3OicE9y/cKZ1M7WT785pFi6LU97Wg+dNSaSxkFwSgJBR6SHN JjJA== X-Gm-Message-State: APjAAAXuzA2LeTaSWD+vkU5B59LL6FllNlDGYehVutuiTVahFrGOQ7qT jBXYoRrc8BUGOU5hrC3qsrp6qcEh X-Received: by 2002:a2e:8648:: with SMTP id i8mr4086539ljj.166.1554396422353; Thu, 04 Apr 2019 09:47:02 -0700 (PDT) Received: from uranus.localdomain ([5.18.103.226]) by smtp.gmail.com with ESMTPSA id i66sm4079357lji.43.2019.04.04.09.47.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 04 Apr 2019 09:47:01 -0700 (PDT) Received: by uranus.localdomain (Postfix, from userid 1000) id 73C21460438; Thu, 4 Apr 2019 19:47:00 +0300 (MSK) Date: Thu, 4 Apr 2019 19:47:00 +0300 From: Cyrill Gorcunov To: Vince Weaver Cc: 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 Message-ID: <20190404164700.GR1421@uranus.lan> References: <20190403191944.GH1421@uranus.lan> <20190403203144.GI1421@uranus.lan> <20190404133327.GP1421@uranus.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 04, 2019 at 12:37:18PM -0400, Vince Weaver wrote: > On Thu, 4 Apr 2019, Cyrill Gorcunov wrote: > > > On Thu, Apr 04, 2019 at 09:25:47AM -0400, Vince Weaver wrote: > > > > > > 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. > > OK, it turns out the hard-lock and the null pointer dereference might be > the same, I have a random seed for the fuzzer from a hard-lock crash that > reproduces and it generated the null pointer crash. (This is with your > patch applied). I see. My patch simply eliminates wrong event for unimplemented general events, but it definitely won't help with nil deref, so it mostly to eliminate some potential side effects. > I can try to see if I can bisect down to a specific event sequence that > triggers this, but that can be tricky sometimes if things lock up so fast > that the event log doesn't get written out before the crash. Oh, Vince, I suspect such kind of bisection might consume a lot of your time :( Maybe we could update perf fuzzer so that it would send events to some net-storage first then write them to the counters, iow to automatize this all stuff somehow?