From mboxrd@z Thu Jan 1 00:00:00 1970 From: mark.rutland@arm.com (Mark Rutland) Date: Mon, 3 Apr 2017 12:12:02 +0100 Subject: [PATCH 00/14] arm_pmu: ACPI support In-Reply-To: References: <1489143891-11596-1-git-send-email-mark.rutland@arm.com> <58CA8C8A.8080405@huawei.com> Message-ID: <20170403111202.GC18905@leverpostej> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi, On Mon, Apr 03, 2017 at 04:11:42PM +0530, Ganapatrao Kulkarni wrote: > On Wed, Mar 22, 2017 at 2:46 PM, Ganapatrao Kulkarni > wrote: > > i am not able to run with latest perf tool, i see issue with memory > > corruption in malloc > > is this seen from anyone else too? > > i am not sure, is this issue with my setup? > > > > root at VAL1-13>perf>> perf stat -e armv8_pmuv3_0/br_mis_pred/ sleep 1 > > > > Performance counter stats for 'sleep 1': > > > > 10,815 armv8_pmuv3_0/br_mis_pred/ > > > > 1.001232167 seconds time elapsed > > > > root at VAL1-13>perf>> ./perf stat -e armv8_pmuv3_0/br_mis_pred/ sleep 1 > > *** Error in `./perf': free(): invalid next size (fast): 0x00000000086a7a00 *** > > Aborted (core dumped) > > root at VAL1-13>perf>> ./perf -v > > perf version 4.11.rc3.g093b99 > > root at VAL1-13>perf>> perf -v > > perf version 4.8.rc6.g21c488 > > root at VAL1-13>perf>> uname -a > > Linux VAL1-13 4.11.0-rc2-12139-g3804e12 #1 SMP PREEMPT Wed Mar 22 > > 06:26:28 UTC 2017 aarch64 aarch64 aarch64 GNU/Linux > > root at VAL1-13>perf>> > > i did bisect, and i see your patch, > > 7e3fcffe955440101493cd8f32f75840ddf87b6f > perf pmu: Support alternative sysfs cpumask > > is causing this failure. if i suppress the call to function cpu_map__read > then memory corruption is not seen. Thanks for tracking this down. I can reproduce this on some machines; I'll try to see how this can be fixed shortly. Thanks, Mark.