From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753009AbcFCVPW (ORCPT ); Fri, 3 Jun 2016 17:15:22 -0400 Received: from mail.kernel.org ([198.145.29.136]:60974 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751848AbcFCVPT (ORCPT ); Fri, 3 Jun 2016 17:15:19 -0400 Date: Fri, 3 Jun 2016 18:15:15 -0300 From: Arnaldo Carvalho de Melo To: Peter Zijlstra Cc: Ingo Molnar , Jiri Olsa , David Ahern , Namhyung Kim , Wang Nan , Andi Kleen , Linux Kernel Mailing List Subject: perf crash with tip/perf/core Message-ID: <20160603211515.GC3095@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Url: http://acmel.wordpress.com User-Agent: Mutt/1.6.1 (2016-04-27) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: [] __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:[] [] __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: [] _free_event+0x221/0x320 [] put_event+0x14/0x20 [] perf_event_release_kernel+0x1e1/0x260 [] perf_release+0x10/0x20 [] __fput+0xdf/0x1f0 [] ____fput+0xe/0x10 [] task_work_run+0x73/0x90 [] exit_to_usermode_loop+0xc2/0xd0 [] syscall_return_slowpath+0xa1/0xb0 [] 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 [] __list_del_entry+0x29/0xc0 RSP CR2: 0000000000000000 ---[ end trace 1be11b711a524060 ]--- - Arnaldo