Commit graph

578626 commits

Author SHA1 Message Date
John Dias
7ee4109d7e perf: protect group_leader from races that cause ctx double-free
When moving a group_leader perf event from a software-context
to a hardware-context, there's a race in checking and
updating that context. The existing locking solution
doesn't work; note that it tries to grab a lock inside
the group_leader's context object, which you can only
get at by going through a pointer that should be protected
from these races. To avoid that problem, and to produce
a simple solution, we can just use a lock per group_leader
to protect all checks on the group_leader's context.
The new lock is grabbed and released when no context locks
are held.

Bug: 30955111
Bug: 31095224
Change-Id: If37124c100ca6f4aa962559fba3bd5dbbec8e052
Git-repo: https://android.googlesource.com/kernel/msm
Git-commit: 5b87e00be9ca28ea32cab49b92c0386e4a91f730
Signed-off-by: Dennis Cagle <d-cagle@codeaurora.org>
2016-12-09 12:09:59 -08:00
Linux Build Service Account
368fecd7df Merge "leds: qpnp-wled: Fix the APIs to read/write WLED registers" 2016-12-06 21:03:16 -08:00
Linux Build Service Account
58dbcd1ada Merge "thermal-core: Use rcu for accessing sensor list" 2016-12-06 21:03:16 -08:00
Linux Build Service Account
9b1012bb48 Merge "msm: sensor: Validationg function pointers before using them" 2016-12-06 21:03:14 -08:00
Linux Build Service Account
8ae6b25770 Merge "msm: camera: Notify TZ App about changes of the HW security mode" 2016-12-06 21:03:14 -08:00
Linux Build Service Account
3d58f0ce86 Merge "msm: ipa: enable suspend pipe for ODU" 2016-12-06 21:03:13 -08:00
Linux Build Service Account
47adc88bf6 Merge "input: misc: add condition check for ddic reset" 2016-12-06 21:03:12 -08:00
Linux Build Service Account
cf4badde33 Merge "input: ft5x06_ts: fix uninitialized references in ft5x06_ts" 2016-12-06 21:03:12 -08:00
Linux Build Service Account
288f3e2429 Merge "coresight: fix 32-bit compilation issues" 2016-12-06 21:03:11 -08:00
Linux Build Service Account
1fd7bd2ceb Merge "ARM: dts: msm: Update GPUCC clock frequencies for MSMtriton" 2016-12-06 21:03:10 -08:00
Linux Build Service Account
ec3428344a Merge "Revert "wil6210: prevent XTAL off in device bootloader"" 2016-12-06 21:03:09 -08:00
Linux Build Service Account
0d3136dec2 Merge "clk: Add vdd_class support for handoff and use_max_uV" 2016-12-06 21:03:08 -08:00
Linux Build Service Account
17bd9847d3 Merge "ASoC: msm8998: Add support for HiFi amplifier" 2016-12-06 21:03:07 -08:00
Linux Build Service Account
69352ff8b4 Merge "soc: qcom: Check err_ready before returning from subsys_generic_handler()" 2016-12-06 14:33:56 -08:00
Linux Build Service Account
602d001468 Merge "ARM: dts: msm: Add BT node for QRD interposer msm8998" 2016-12-06 14:33:55 -08:00
Linux Build Service Account
e291dfcb9a Merge "soc: qcom: implement notify_tx_abort() callback" 2016-12-06 14:33:54 -08:00
Linux Build Service Account
3dc6ea3f90 Merge "soc: qcom: fix to avoid invalid memory access" 2016-12-06 14:33:53 -08:00
Linux Build Service Account
606a3e1dc0 Merge "ARM: dts: msm: Add the LCDB device node for PM2FALCON" 2016-12-06 14:33:52 -08:00
Linux Build Service Account
4aa28af5a2 Merge "defconfig: msm: falcon: enable LCDB driver" 2016-12-06 14:33:51 -08:00
Linux Build Service Account
86d36d1555 Merge "Revert "input: powerkey: don't send dummy release event"" 2016-12-06 14:33:49 -08:00
Linux Build Service Account
9e0498ae41 Merge "ARM: dts: msm: Add device tree for msmfalcon CDP, MTP & RCM" 2016-12-06 14:33:49 -08:00
Linux Build Service Account
83f201a4a0 Merge "iommu: dma-mapping-fast: add support for DMA sync single APIs" 2016-12-06 14:33:48 -08:00
Linux Build Service Account
71259362bc Merge "clk: qcom: Add additional delay while enabling votable clocks" 2016-12-06 14:33:47 -08:00
Linux Build Service Account
c643d9c2a0 Merge "ARM: dts: msm: set dcs commands in hs for mode switch in jdi panel" 2016-12-06 14:33:46 -08:00
Linux Build Service Account
39b5ad9b46 Merge "ARM: dts: msm: update micbias regulator in msmfalcon" 2016-12-06 14:33:42 -08:00
Linux Build Service Account
906c7de80a Merge "msm: camera: flash: Validate the power setting size" 2016-12-06 14:33:41 -08:00
Linux Build Service Account
528cc477ec Merge "msm: camera: sensor: Validate eeprom_name string length" 2016-12-06 14:33:40 -08:00
Linux Build Service Account
8811d36f95 Merge "msm: camera: eeprom: Validate the power setting size" 2016-12-06 14:33:39 -08:00
Linux Build Service Account
acfc1b3de1 Merge "msm: camera: sensor: Add boundary check for cci master" 2016-12-06 14:33:39 -08:00
Linux Build Service Account
79d4b5400d Merge "regulator: msm_gfx_ldo: Fix the CX voting logic" 2016-12-06 14:33:36 -08:00
Linux Build Service Account
ac55ab1f39 Merge "regulator: msm_gfx_ldo: Fix invalid memory accesses" 2016-12-06 14:33:36 -08:00
Linux Build Service Account
8546bd2252 Merge "regulator: msm_gfx_ldo: Enable CPR sensors in LDO bypass mode" 2016-12-06 14:33:35 -08:00
Linux Build Service Account
4a6dbc5070 Merge "regulator: msm_gfx_ldo: Add a property to adjust the open-loop voltage" 2016-12-06 14:33:35 -08:00
Linux Build Service Account
d3ee9f377e Merge "ARM: dts: msm: add mdss dsi nodes for msm8998 v2.1 interposer" 2016-12-06 14:33:34 -08:00
Linux Build Service Account
e04f979d11 Merge "ARM: dts: msm: update resource id of SSC regulator of PM2FALCON" 2016-12-06 14:33:30 -08:00
Linux Build Service Account
f5ab89af4e Merge "soc: qcom: Add support to restart user PD" 2016-12-06 14:33:29 -08:00
Linux Build Service Account
6edabbdef0 Merge "defconfig: Enable config IP_NF_MATCH_RPFILTER" 2016-12-06 14:33:29 -08:00
Linux Build Service Account
5a01cff2ae Merge "clk: qcom: Add RCG support for DP pixel source" 2016-12-06 14:33:28 -08:00
Linux Build Service Account
90bccf6c0b Merge "msm: kgsl: Dump VBIF and few GPU registers before crash dumper" 2016-12-06 14:33:27 -08:00
Linux Build Service Account
480bfd599a Merge "mpm-of: Support multiple mpm pin mapping to same gic interrupt" 2016-12-06 14:33:26 -08:00
Linux Build Service Account
f344e59c8c Merge "soc: qcom: Reduce halt acknowledgment timeout for mss axi port" 2016-12-06 14:33:25 -08:00
Linux Build Service Account
cf2fbde350 Merge "ARM: dts: msm: add the smmu nodes for msmtriton" 2016-12-06 14:33:24 -08:00
Linux Build Service Account
eeb2184f0d Merge "ARM: dts: msm: Enable PWM, Haptics and Flash for PM2FALCON" 2016-12-06 14:33:24 -08:00
Linux Build Service Account
ecef458e0d Merge "arm: dma-mapping: handle IOVA address zero" 2016-12-06 14:33:23 -08:00
Linux Build Service Account
bcc7fa77c0 Merge "ARM: dts: msm: Add aggre2_snoc_axi_clk handle in msmfalcon USB3 node" 2016-12-06 14:33:22 -08:00
Linux Build Service Account
e5bcc7113e Merge "USB: dwc3: msm: Add support for vote/devote aggre2_snoc_axi_clk" 2016-12-06 14:33:22 -08:00
Linux Build Service Account
40807f50b0 Merge "ARM: dts: msm: Add GPU properties for falcon GPU" 2016-12-06 14:33:21 -08:00
Linux Build Service Account
73f5809c8c Merge "ARM: dts: msm: Add qrng device node for msmfalcon" 2016-12-06 14:33:20 -08:00
Linux Build Service Account
72b5c8a1f4 Merge "ARM: dts: msm: Add tz-log device node for msmfalcon" 2016-12-06 14:33:19 -08:00
Linux Build Service Account
ed9342445a Merge "ARM: dts: msm: refactor smb138x device to its own dtsi" 2016-12-06 14:33:17 -08:00