lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160603211515.GC3095@kernel.org>
Date:	Fri, 3 Jun 2016 18:15:15 -0300
From:	Arnaldo Carvalho de Melo <acme@...nel.org>
To:	Peter Zijlstra <peterz@...radead.org>
Cc:	Ingo Molnar <mingo@...nel.org>, Jiri Olsa <jolsa@...nel.org>,
	David Ahern <dsahern@...il.com>,
	Namhyung Kim <namhyung@...nel.org>,
	Wang Nan <wangnan0@...wei.com>,
	Andi Kleen <andi@...stfloor.org>,
	Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: perf crash with tip/perf/core

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ