Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp320473imu; Thu, 8 Nov 2018 08:48:06 -0800 (PST) X-Google-Smtp-Source: AJdET5duhALqtqp26e+y+Rf0eZsJVZ8j+OgE8qLsOxSHQSeTO2rgjcJQcyj15ToblY0BxKO7TKXe X-Received: by 2002:a17:902:20b:: with SMTP id 11-v6mr5100542plc.147.1541695686192; Thu, 08 Nov 2018 08:48:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541695686; cv=none; d=google.com; s=arc-20160816; b=rW0pf9bxfHhyvoK0ZGcKB/YkEk/xiT4A04LnNro637I7BKKU8cquBrKw+BxBh4DLCV AsVkfB2jinJmT2oaor3bJI+O1jU65T15p1gEh36bNvUnroEaLzLUIhgre2zSRko+Bnpr aqsMqmejA/90YQubXAX4hl22evRxNVgXN4lUDvgyeFtBNuecoCIaq3pFM/dpjQdM09AW 7yLWV28nHTxHC4rOo0xtQMWT34vr5dnaORhVNxTsR7jfqzdIBQE9h4KpUiNnYEG0CZHW DvDRdRo3sUP+eOvrxoUPemdz6PD86TbajrObwN0kreWzUc4fiTNgLRr1IUH1t4sNrIVy Vo0w== 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=6zTe9U4eVMVGlN13E3lWnRN7lUZ4APDipeHnvMeFxRo=; b=NKSOee+1Ipr0fgFHjcH0ClAYkR7XClhKSLuUpUUgVMAvoQKiFj93S4May10/59qKnY LhKZln4+2ShdqHge8MlLXZjo7DvqjqfHmX9xI0qNtwNuP0cVeY/vGfBLm9NDomkfRm8n gzLdtIYxFIU9IygiYb0akqiB0ievUVZYqSxeNhkTzo5XwOSSmRFxowKYSvayZneJ09t+ TX0HtnBaOHUvYBXcSwcr+/jRHEhdUwS+td6IN3q2WgO9KDErrmlMX7CHucgSHB3OgmZW sODPtO4Dto3jT3C+4VGImLJGgmClopsIv8qgnw7r4M4CDJhpUjg+yEDDXVWUtfuG7Zjf D3yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@maine.edu header.s=google header.b=hQIyFQAd; 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 f4-v6si4137972pgc.482.2018.11.08.08.47.49; Thu, 08 Nov 2018 08:48:06 -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=hQIyFQAd; 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 S1726996AbeKICXH (ORCPT + 99 others); Thu, 8 Nov 2018 21:23:07 -0500 Received: from mail-qk1-f196.google.com ([209.85.222.196]:42245 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726585AbeKICXG (ORCPT ); Thu, 8 Nov 2018 21:23:06 -0500 Received: by mail-qk1-f196.google.com with SMTP id m5so3897671qka.9 for ; Thu, 08 Nov 2018 08:46:47 -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=6zTe9U4eVMVGlN13E3lWnRN7lUZ4APDipeHnvMeFxRo=; b=hQIyFQAdubwQXoXNLkX5N7iB/b3rGjkNzbFNHFHymv7+rICW53UzuNAcM8dYbtls9L z6W9okpDb3Vq2plb0JyjTOPu3EBeJejQ9I0MIsf/KnRhlMQnMCeOvCaSpnx6GP/UQCK4 0jUAqtv8PfPy27oI/bbFhSnnEIWbzL6p7uSCU= 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=6zTe9U4eVMVGlN13E3lWnRN7lUZ4APDipeHnvMeFxRo=; b=M5gRLcadg6hiDYt6V+GmLIGVUfL6R7gKVFwADAjGoeTnHWunU/8XWY2kt1K9Y+6rmg 9A08MGia0l/CZC+WyGJlnF1l9UFXRq11uMADSOquHClXrtryprjIyESK0W3E/iN53XPA r11SEOYCmLVwiuUmtBoTQklwVzVH4/hPYMsoJhytpykPPpM3E9wIW1wTH7CXRgXnwl9s Grn7FjKEyyJi+uYodv/y7QA/iVvpMPDfmR5ZUytljFlTt/G9sHi6CJ5wP8eYH8gwmoWW TIoGwonjVybnViyE8tvcbeEXA9IumuWTVAeE3mDt/EnE3sFGjj7xG/Fsjgu8+tfYCA6F Gv8g== X-Gm-Message-State: AGRZ1gI4WtR86YQVSOq9BPIolNLQ6+VdWhewqLe4SszqqDn2+gIddFgD UQ/gJNZeRScUjqTLvLNjFpcywA== X-Received: by 2002:ac8:2fdc:: with SMTP id m28mr5341848qta.202.1541695606558; Thu, 08 Nov 2018 08:46:46 -0800 (PST) Received: from macbook-air (weaver.eece.maine.edu. [130.111.218.23]) by smtp.gmail.com with ESMTPSA id 33sm3977679qto.14.2018.11.08.08.46.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Nov 2018 08:46:45 -0800 (PST) From: Vince Weaver X-Google-Original-From: Vince Weaver Date: Thu, 8 Nov 2018 11:46:41 -0500 (EST) X-X-Sender: vince@macbook-air To: Alexander Shishkin cc: Vince Weaver , linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Jiri Olsa , Namhyung Kim , torvalds@linux-foundation.org Subject: Re: perf: perf_fuzzer triggers NULL pointer dereference In-Reply-To: <87a7mj5yx4.fsf@ashishki-desk.ger.corp.intel.com> Message-ID: References: <87a7mj5yx4.fsf@ashishki-desk.ger.corp.intel.com> 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 Thu, 8 Nov 2018, Alexander Shishkin wrote: > Vince Weaver writes: > > > On Thu, 8 Nov 2018, Vince Weaver wrote: > > > >> [91760.326510] BUG: unable to handle kernel NULL pointer dereference at 0000000000000000 > >> [91760.334876] PGD 0 P4D 0 > >> [91760.337596] Oops: 0000 [#1] SMP PTI > >> [91760.341332] CPU: 6 PID: 0 Comm: swapper/6 Tainted: G W 4.20.0-rc1+ #119 > >> [91760.349816] Hardware name: LENOVO 10AM000AUS/SHARKBAY, BIOS FBKT72AUS 01/26/2014 > >> [91760.357723] RIP: 0010:perf_prepare_sample+0x82/0x4a0 > > > > so what's the best way to do the equivelent of addr2line on something like > > this, now that we aren't allowed to know the RIP anymore? > > scripts/decode_stacktrace.sh works most of the time. > > Sounds like BTS needs fixing up again. Thanks for looking at it though! In case it matters, it looks like the address of the oops comes down to linux.git/kernel/events/core.c:6393 size += data->callchain->nr; Vince