android_kernel_lge_bullhead/arch/arm/mach-msm
Veena Sambasivan 32ddad53bc msm: perf: Do not allocate new hw_event if event is duplicate.
During a perf_event_enable, kernel/events/core.c calls pmu->add() which
is platform implementation(arch/arm/kernel/perf_event.c). Due to the
duplicate constraints, arch/arm/mach-msm/perf_event_msm_krait_l2.c
drivers marks the event as OFF but returns TRUE to perf_event.c which
goes ahead and allocates the hw_event and enables it.
Since event is marked OFF, kernel events core will try to enable this event
again during next perf_event_enable. Which results in same event enabled
on multiple hw_events. But during the perf_release, event struct is freed
and only one hw_event is released. This results in dereferencing the
invalid pointer and hence the crash.
Fix this by returning error in case of constraint event duplicate. Hence
avoiding the same event programmed on multiple hw event counters.

bug: 28172137
Change-Id: Ia3360be027dfe87ac753191ffe7e0bc947e72455
Signed-off-by: Arun KS <arunks@codeaurora.org>
Signed-off-by: Veena Sambasivan <veenas@codeaurora.org>
2016-05-25 00:31:10 +00:00
..
include/mach mach-msm:fsm9010: Update MSM_DEBUG_UART_BASE for fsm9010 2015-01-19 19:15:43 +05:30
Kconfig Merge "ARM: msm: vp-ipa simulation platform changes." 2014-12-21 06:52:20 -08:00
Makefile ARM: msm: vp-ipa simulation platform changes. 2014-12-17 11:01:35 +02:00
Makefile.boot ARM: msm: vp-ipa simulation platform changes. 2014-12-17 11:01:35 +02:00
acpuclock-cortex.h
acpuclock.c
acpuclock.h
bbif-fsm9900.c msm: bbif-fsm9900: Add ADC and PRI clock rate change 2014-05-07 09:56:58 -07:00
bms-batterydata-desay.c
bms-batterydata-oem.c
bms-batterydata-qrd-4v2-1300mah.c
bms-batterydata-qrd-4v35-2000mah.c
bms-batterydata.c
board-8084-gpiomux.c cnss: Migrate to pin control framework 2014-06-09 12:32:22 -07:00
board-8084.c msm: clock-8084: Create clock driver device 2014-05-27 12:02:11 -07:00
board-8226-gpiomux.c Revert "msm: wcnss: Add the support to access IRIS registers using bit-bang" 2014-05-23 23:52:28 +05:30
board-8226.c msm: clock-8226: Create clock driver device 2014-04-16 13:35:57 -07:00
board-8610-gpiomux.c Revert "msm: wcnss: Add the support to access IRIS registers using bit-bang" 2014-05-23 23:52:28 +05:30
board-8610.c msm: Remove memory hole scanning 2014-04-08 09:47:52 -07:00
board-8909.c ARM: dts: msm: Rename msmferrum to msm8909 2014-09-24 20:49:38 +05:30
board-8916.c msm: 8929: Add a dedicated DT_MACHINE for msm8929 2015-01-27 10:39:52 +05:30
board-8974-gpiomux.c Revert "msm: wcnss: Add the support to access IRIS registers using bit-bang" 2014-05-23 23:52:28 +05:30
board-8974.c msm: Remove memory hole scanning 2014-04-08 09:47:52 -07:00
board-9630-gpiomux.c msm: 9630: add gpiomux config for PCIe CLKREQ 2014-11-20 14:14:11 -08:00
board-9630.c msm: clock-9630: Add clock driver device for 9630 2014-04-17 12:49:54 -07:00
board-9640.c mdm9640: rename msmzirc to mdm9640 2014-11-24 18:27:32 -08:00
board-dt.c msm: scm: Move the scm driver to drivers/soc/qcom 2014-01-24 11:49:11 -08:00
board-dt.h
board-fsm9010.c msm: fsm9010: Enable multiple memory regions for uio access 2015-02-05 10:11:24 +05:30
board-fsm9900-gpiomux.c msm: fsm9900: Add support for GSM NL HW module 2014-09-30 16:42:13 -06:00
board-fsm9900.c msm: fsm9900: Enable uio access to FSM9900 only memory region 2014-12-12 18:05:34 -07:00
board-vpipa.c ARM: msm: vp-ipa simulation platform changes. 2014-12-17 11:01:35 +02:00
cache_erp.c msm: socinfo: Support multiplatform 2014-01-30 19:08:34 -08:00
clock-8084.c clock: msm: Remove usb2_phy_sleep_clk from SSUSB 2014-07-10 16:39:11 -07:00
clock-8226.c Merge "msm-camera: Reset ISPIF h/w" 2014-05-20 12:12:44 -07:00
clock-8610.c msm: clock-8610: Add support for 1094MHz CPU frequency 2014-06-09 13:41:40 +05:30
clock-9630.c arch: arm: mach-msm: Rename the hsic host node 2014-09-11 10:05:34 +03:00
clock-dsi-8610.c
clock-dsi-8610.h
clock-fsm9900.c Merge "msm: clock-fsm9900: Add measure for DDR clock" 2014-10-07 15:02:18 -07:00
clock-gcc-8974.c clock: msm: Remove usb2_phy_sleep_clk from SSUSB 2014-07-10 16:39:11 -07:00
clock-lpass-8974.c mach: msm: Move clock library headers to include/soc/qcom/ 2014-01-23 16:17:45 -08:00
clock-mdss-8974.c ARM: msm: remove support for MSMSAMARIUM and MPQ8092 2014-04-25 16:54:47 -07:00
clock-mdss-8974.h ARM: msm: remove support for MSMSAMARIUM and MPQ8092 2014-04-25 16:54:47 -07:00
clock-mmss-8974.c ARM:dts:msm:8974 update generic cam entries 2014-02-28 18:00:13 -08:00
clock-rpm-8974.c clk: qcom: Remove mux flag 2014-04-22 15:38:58 -07:00
clock.h msm: clock-8084: Create clock driver device 2014-05-27 12:02:11 -07:00
dma.c
dma_test.c
ext-buck-control.c msm: ext-buck-support: add external buck support driver 2014-02-18 08:43:00 +05:30
gpiomux-v2.c
gpiomux.c msm: gpiomux: Add msm_tlmm_misc_reg_read API 2014-01-17 11:51:31 -08:00
headsmp.S ARM: msm: Update MPIDR mask for ARMV8-32bit support 2014-03-03 17:24:04 +08:00
hotplug.c msm: hotplug: Do not skip the platform init for boot core 2015-01-07 15:27:52 +05:30
hsic_sysmon.c usb:misc: Add support for HSIC PID 0x909F 2014-03-19 09:36:03 -07:00
hsic_sysmon_test.c msm: hsic_sysmon: Move hsic_sysmon header to include/soc/msm 2014-01-29 15:02:22 -08:00
io.c ARM: msm: vp-ipa simulation platform changes. 2014-12-17 11:01:35 +02:00
kernel_test_service_v01.c qcom: qmi: Support multi-platform 2014-01-20 18:26:07 -07:00
kernel_test_service_v01.h qcom: qmi: Support multi-platform 2014-01-20 18:26:07 -07:00
keypad-surf-ffa.c
krait-regulator-pmic.c msm: krait-regulator-pmic: account for PWM_CL register security 2014-04-09 13:31:16 -07:00
krait-regulator.c msm: spm_devices: Update FTS/Phase APIs to support multiple cluster/rails. 2014-05-28 07:39:25 -07:00
krait-scm.c msm: scm: Move the scm driver to drivers/soc/qcom 2014-01-24 11:49:11 -08:00
memory.c ARM: constify machine_desc structure uses 2014-08-15 11:45:32 -07:00
msm-krait-l2-accessors.c msm: msm-krait-l2-accessors: Add RTB logging 2014-03-21 18:09:06 -07:00
msm_mem_hole.c
msm_mpmctr.c
msm_watchdog.h
pcie.c msm: pcie: add the support for PCIe bridge 2014-12-15 17:41:04 -08:00
pcie.h msm: pcie: add the support for PCIe bridge 2014-12-15 17:41:04 -08:00
pcie_irq.c msm: pcie: add the 2nd IPC logging buffer for PCIe 2014-07-29 15:03:25 -07:00
pcie_phy.c msm: pcie: add IPC logging for PCIe driver 2014-05-25 08:40:58 -07:00
pcie_phy.h mdm9630: rename msmkrypton to mdm9630 2014-01-10 10:03:08 -08:00
perf_debug.c msm: perf: add perf trace user 2014-11-03 07:36:11 -08:00
perf_event_msm_krait_l2.c msm: perf: Do not allocate new hw_event if event is duplicate. 2016-05-25 00:31:10 +00:00
perf_trace_counters.c msm: perf: Refine disable/enable in tracecounters 2014-10-03 12:15:11 -04:00
perf_trace_counters.h msm: perf: Refine disable/enable in tracecounters 2014-10-03 12:15:11 -04:00
perf_trace_user.c msm: perf: add perf trace user 2014-11-03 07:36:11 -08:00
perf_trace_user.h msm: perf: add perf trace user 2014-11-03 07:36:11 -08:00
perfmap.c
platsmp.c msm: platsmp: 8939: Add cpu_disable call back to smp operations 2014-12-22 15:17:25 +05:30
platsmp.h msm: board-8916: Add a dedicated DT_MACHINE for terbium 2014-11-25 12:11:21 -08:00
pp2s.c msm: pp2s: Add register access for SFN 2014-10-20 14:47:03 -07:00
rfic-fsm9900.c msm: fsm-rfic: Add PVC index write support 2014-10-07 11:36:52 +05:30
rpm_resources.h msm: move PM header to machine independent location 2014-02-08 19:14:36 +05:30
smcmod.c ion: msm: remove superfluous function argument 2014-05-27 15:28:48 -07:00
test-lpm.c msm: socinfo: Support multiplatform 2014-01-30 19:08:34 -08:00
test-lpm.h
test_qmi_client.c qcom: qmi: Support multi-platform 2014-01-20 18:26:07 -07:00
timer.c Merge branch '8916-dev-phase2' into msm-3.10. 2014-02-12 19:06:33 -08:00
timer.h