All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Peter Zijlstra <peterz@infradead.org>
Cc: Ingo Molnar <mingo@kernel.org>, Jiri Olsa <jolsa@kernel.org>,
	David Ahern <dsahern@gmail.com>,
	Namhyung Kim <namhyung@kernel.org>,
	Wang Nan <wangnan0@huawei.com>, Andi Kleen <andi@firstfloor.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: perf crash with tip/perf/core
Date: Fri, 3 Jun 2016 18:15:15 -0300	[thread overview]
Message-ID: <20160603211515.GC3095@kernel.org> (raw)

Hi Peter,

	I built what is in tip/perf/core to test the topdown patches
from Andi but it is crashing on me, 'perf stat' was ok, but then I tried
'perf trace' and got the NULL deref below, bet 'perf record' will do the same.

BUG: unable to handle kernel NULL pointer dereference at           (null)
IP: [<ffffffff813eb669>] __list_del_entry+0x29/0xc0
PGD 2007f7067 PUD 1ff01a067 PMD 0 
Oops: 0000 [#1] SMP
Modules linked in: hidp rfcomm fuse cmac xt_CHECKSUM ipt_MASQUERADE nf_nat_masquerade_ipv4 xt_addrtype br_netfilter tun nf_conntrack_netbios_ns nf_conntrack_broadcast dm_thin_pool dm_persistent_data dm_bio_prison libcrc32c loop ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 xt_conntrack ip_set nfnetlink ebtable_filter ebtable_nat ebtable_broute bridge stp llc ebtables ip6table_mangle ip6table_raw ip6table_security ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_filter ip6_tables iptable_mangle iptable_raw iptable_security iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack bnep arc4 iwlmvm intel_rapl x86_pkg_temp_thermal coretemp kvm_intel mac80211 kvm iTCO_wdt iTCO_vendor_support mei_wdt irqbypass uvcvideo crct10dif_pclmul crc32_pclmul ghash_clmulni_intel
 intel_cstate videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 iwlwifi videobuf2_core pcspkr snd_hda_codec_realtek snd_hda_codec_hdmi snd_hda_codec_generic btusb videodev intel_pch_thermal snd_hda_intel i2c_i801 btrtl snd_hda_codec btbcm mei_me btintel rtsx_pci_ms lpc_ich mei bluetooth snd_hda_core cfg80211 media memstick snd_seq shpchp joydev snd_hwdep snd_seq_device snd_pcm nfsd thinkpad_acpi snd_timer snd wmi intel_rst rfkill tpm_tis soundcore tpm auth_rpcgss nfs_acl lockd grace sunrpc binfmt_misc i915 rtsx_pci_sdmmc i2c_algo_bit mmc_core drm_kms_helper drm e1000e crc32c_intel serio_raw rtsx_pci ptp pps_core fjes video
CPU: 3 PID: 3132 Comm: trace Not tainted 4.6.0+ #2
Hardware name: LENOVO 20BX001LUS/20BX001LUS, BIOS JBET49WW (1.14 ) 05/21/2015
task: ffff8802320d8000 ti: ffff8801ff0cc000 task.ti: ffff8801ff0cc000
RIP: 0010:[<ffffffff813eb669>]  [<ffffffff813eb669>] __list_del_entry+0x29/0xc0
RSP: 0018:ffff8801ff0cfdd8  EFLAGS: 00010207
RAX: 0000000000000000 RBX: ffff8802337da800 RCX: dead000000000200
RDX: 0000000000000000 RSI: ffff88023dd9a820 RDI: ffff8802337dac68
RBP: ffff8801ff0cfdd8 R08: ffff8802337da810 R09: ffff8802337da820
R10: ffff880233995440 R11: ffff88022ece0c10 R12: ffff88023dd90980
R13: ffff8802320d8880 R14: ffff8802337daa68 R15: ffff8802337daa48
FS:  00007fa0cf7cc780(0000) GS:ffff88023dd80000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 0000000232271000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Stack:
 ffff8801ff0cfdf8 ffffffff811a6691 ffff8802337da800 ffff8802337daa20
 ffff8801ff0cfe08 ffffffff811a6c14 ffff8801ff0cfe50 ffffffff811a6e01
 ffff8802337daa48 ffff8802337da800 ffff88022ece0c00 0000000000000008
Call Trace:
 [<ffffffff811a6691>] _free_event+0x221/0x320
 [<ffffffff811a6c14>] put_event+0x14/0x20
 [<ffffffff811a6e01>] perf_event_release_kernel+0x1e1/0x260
 [<ffffffff811a6e90>] perf_release+0x10/0x20
 [<ffffffff812415bf>] __fput+0xdf/0x1f0
 [<ffffffff8124170e>] ____fput+0xe/0x10
 [<ffffffff810c2673>] task_work_run+0x73/0x90
 [<ffffffff81003242>] exit_to_usermode_loop+0xc2/0xd0
 [<ffffffff81003d21>] syscall_return_slowpath+0xa1/0xb0
 [<ffffffff817bdefa>] entry_SYSCALL_64_fastpath+0xa2/0xa4
Code: 66 90 55 48 8b 07 48 b9 00 01 00 00 00 00 ad de 48 8b 57 08 48 89 e5 48 39 c8 74 29 48 b9 00 02 00 00 00 00 ad de 48 39 ca 74 3a <4c> 8b 02 4c 39 c7 75 52 4c 8b 40 08 4c 39 c7 75 66 48 89 50 08 
RIP  [<ffffffff813eb669>] __list_del_entry+0x29/0xc0
 RSP <ffff8801ff0cfdd8>
CR2: 0000000000000000
---[ end trace 1be11b711a524060 ]---

- Arnaldo

             reply	other threads:[~2016-06-03 21:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-03 21:15 Arnaldo Carvalho de Melo [this message]
2016-06-03 21:27 ` perf crash with tip/perf/core Arnaldo Carvalho de Melo
2016-06-03 21:37   ` Peter Zijlstra
2016-06-03 21:55     ` Arnaldo Carvalho de Melo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160603211515.GC3095@kernel.org \
    --to=acme@kernel.org \
    --cc=andi@firstfloor.org \
    --cc=dsahern@gmail.com \
    --cc=jolsa@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=namhyung@kernel.org \
    --cc=peterz@infradead.org \
    --cc=wangnan0@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.