Commit graph

588025 commits

Author SHA1 Message Date
Linux Build Service Account
39b4e0837f Merge "msm_11ad: reorder registration with memory dump table" 2017-04-24 06:47:51 -07:00
Linux Build Service Account
5e10c8152d Merge "ANDROID: fix acl leaks" 2017-04-24 06:47:50 -07:00
Linux Build Service Account
22efcf6c13 Merge "spcom: use mutex on spcom_unlock_ion_buf()" 2017-04-24 06:47:49 -07:00
Linux Build Service Account
cf8fb0ea2e Merge "soc: qcom: glink: Change GFP_ATOMIC flag for intentless rx" 2017-04-24 06:47:48 -07:00
Linux Build Service Account
8495c8f056 Merge "msm: mdss: fix a warning for unused value" 2017-04-24 06:47:47 -07:00
Linux Build Service Account
c0eb692e36 Merge "msm: mdss: Populate alpha for compat" 2017-04-24 06:47:46 -07:00
Linux Build Service Account
550a9f41ff Merge "ARM: dts: msm: Fix RX sensitivity issue for SSPHY for SDM660" 2017-04-24 06:47:45 -07:00
Linux Build Service Account
250b70e2cf Merge "wcnss: fix the potential memory leak and heap overflow" 2017-04-24 06:47:44 -07:00
Linux Build Service Account
f238d6bc0d Merge "msm: mdss: Separate PP programming to advanced and deferred modes" 2017-04-24 06:47:44 -07:00
Linux Build Service Account
0bdf562cc7 Merge "defconfig: msm8998: Use RCU_NOCB for RCU subsystem" 2017-04-23 23:13:01 -07:00
Amir Samuelov
b4968ee80c spcom: use mutex on spcom_unlock_ion_buf()
Only the channel owner app can lock/unlock a channel ion buf.
However, if the app share the ION buf FD with its child tasks,
they might wrongly free the same ion buf twice.
The ion driver panic if a non-valid ION buff handle is provided.

Change-Id: Ia8166df5ea314949090f7e94e90eff3a3ed78b19
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2017-04-23 13:53:27 +03:00
Linux Build Service Account
6cf6835d96 Merge "msm: mdss: check for audio support before notifying frameworks" 2017-04-21 17:57:37 -07:00
Linux Build Service Account
35cc04df55 Merge "msm: mdss: add debug bus support for dsi block" 2017-04-21 17:57:37 -07:00
Linux Build Service Account
0fc565ebdb Merge "FROMLIST: 9p: fix a potential acl leak" 2017-04-21 17:57:35 -07:00
Linux Build Service Account
038de1e53d Merge "soc: qcom: pil: Avoid possible buffer overflow during Modem boot" 2017-04-21 17:57:35 -07:00
Mark Salyzyn
1cfb211346 ANDROID: fix acl leaks
Fixes regressions associated with commit 073931017b49
("posix_acl: Clear SGID bit when setting file permissions")

Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Bug: 32458736
Change-Id: I6ee127dfdf3594d24ccd8560541ac554c5b05eb6
[d-cagle@codeaurora.org: Resolve merge conflicts]
Git-repo: https://android.googlesource.com/kernel/msm/
Git-commit: 74d0e4d3d96d0ca82d39635318a69d55e966b767
Signed-off-by: Dennis Cagle <d-cagle@codeaurora.org>
2017-04-21 11:11:43 -07:00
Cong Wang
bea6f1c779 FROMLIST: 9p: fix a potential acl leak
(https://lkml.org/lkml/2016/12/13/579)

posix_acl_update_mode() could possibly clear 'acl', if so
we leak the memory pointed by 'acl'. Save this pointer
before calling posix_acl_update_mode() and release the memory
if 'acl' really gets cleared.

Reported-by: Mark Salyzyn <salyzyn@android.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Greg Kurz <groug@kaod.org>
Cc: Eric Van Hensbergen <ericvh@gmail.com>
Cc: Ron Minnich <rminnich@sandia.gov>
Cc: Latchesar Ionkov <lucho@ionkov.net>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Bug: 32458736
Change-Id: Ia78da401e6fd1bfd569653bd2cd0ebd3f9c737a0
Git-repo: https://android.googlesource.com/kernel/msm/
Git-commit: 7c780387c931f63fe67830c817f65c1272512bb1
Signed-off-by: Dennis Cagle <d-cagle@codeaurora.org>
2017-04-21 11:09:12 -07:00
Linux Build Service Account
d44796d6ae Merge "arm: dma-mapping: add iova size alignment check" 2017-04-21 09:41:39 -07:00
Linux Build Service Account
f9da89f3ca Merge "lpm-levels: Select lpm for isolated cpu when sleep is disabled" 2017-04-21 09:41:38 -07:00
Linux Build Service Account
2fcd6d4d01 Merge "arm: dma-mapping: set the proper bitmap size" 2017-04-21 09:41:37 -07:00
Linux Build Service Account
3cbe2d2e4e Merge "staging: android: sync: Limit sync log dumping" 2017-04-21 09:41:36 -07:00
Linux Build Service Account
9b9651811b Merge "ARM: dts: msm: Add dts setting for a530 DRM on msm8996" 2017-04-21 09:41:35 -07:00
Linux Build Service Account
94d3609ffa Merge "iommu: iommu-debug: assign iova space for fastmap client" 2017-04-21 09:41:34 -07:00
Linux Build Service Account
377b645155 Merge "drivers: cpuidle: lpm-levels: add lpm_debug to Minidump" 2017-04-21 09:41:33 -07:00
Linux Build Service Account
c571b68a7c Merge "soc: qcom: Add Minidump support" 2017-04-21 09:41:32 -07:00
Sravan Kumar D.V.N
0afc86cab6 msm: mdss: Separate PP programming to advanced and deferred modes
Deferring all the PP features programming to post pingpong done
in command mode panels causing performance issues in certain
use cases. To fix this, defer only the programming of features
with single buffered registers and program features with double
buffered registers before wait for pingpong.

Change-Id: I6a1e8114b50c558f667bde4db5c0ba57009d6f50
Signed-off-by: Sravan Kumar D.V.N <sravank1@codeaurora.org>
2017-04-21 02:21:25 -07:00
Linux Build Service Account
c30ff10a70 Merge "ARM: dts: msm: Add overlay files for 8998 QRD boards" 2017-04-21 00:37:36 -07:00
Linux Build Service Account
8ab7fc2939 Merge "char: msm_smd_pkt: Add snapshot of SMD packet driver" 2017-04-21 00:37:35 -07:00
Linux Build Service Account
f1a91e13f2 Merge "clk: msm: clock-mmss-8998: Set non_local_children flag for mdp_clk_src" 2017-04-21 00:37:34 -07:00
Linux Build Service Account
c2b5adaf8a Merge "diag: Split data stream for User PDs on LPASS" 2017-04-21 00:37:34 -07:00
Linux Build Service Account
ee129a0667 Merge "ANDROID: ion: Fix uninitialized variable" 2017-04-21 00:37:32 -07:00
Linux Build Service Account
9cf7045fb6 Merge "ANDROID: ion: Protect kref from userspace manipulation" 2017-04-21 00:37:32 -07:00
Linux Build Service Account
d7eb0a4d7f Merge "scsi: ufs: fix issue with scaling up gear" 2017-04-21 00:37:31 -07:00
Linux Build Service Account
a171c21c8a Merge "Perf: arm64: disable irq for hotplug offline" 2017-04-21 00:37:30 -07:00
Vijayavardhan Vennapusa
a0894aeacc ARM: dts: msm: Fix RX sensitivity issue for SSPHY for SDM660
Fix RX sensitivity issue for SSPHY data lines for SDM660 by
writing zero value to PERIPH_SS_USB3PHY_QSERDES_RXA/B_RX_MODE_00
registers. Otherwise it could cause superspeed enumeration failure
with some Host machines.

Change-Id: I065c2a37f962e21809f9d810e1884e0eca08943e
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2017-04-21 12:47:45 +05:30
Charan Teja Reddy
ae4040d39a arm: dma-mapping: add iova size alignment check
On 32bit systems, bitmap storing the iova information is stored in per
page and each page represents the 128MB of IOVA. So, for the
alloc_iova() to return the requested range, iova size should be aligned
to 128MB.

Change-Id: I66eb15cdbb3d6730cc4d84cad9f0c652f91278d6
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2017-04-21 12:45:35 +05:30
Sarada Prasanna Garnayak
02d6710e2e wcnss: fix the potential memory leak and heap overflow
The wcnss platform driver update the wlan calibration data
by the user space wlan daemon. The wlan user space daemon store
the updated wlan calibration data reported by wlan firmware in
user space and write it back to the wcnss platform calibration
data buffer for the calibration data download and update.

During the wlan calibration data store and retrieve operation
there are some potential race condition which leads to memory leak
and buffer overflow during the context switch.

Fix the above issue by adding protection code and avoid usage of
global pointer during the device file read and write operation.

CRs-Fixed: 2015858
Change-Id: Ib5b57eb86dcb4e6ed799b5222d06396eaabfaad3
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2017-04-20 23:04:47 -07:00
Maulik Shah
ce47b1c984 lpm-levels: Select lpm for isolated cpu when sleep is disabled
Isolated cpu can enter to wfi if sleep is disabled and stay in
wfi until it wakes up and selects deeper lpm again.

Select cpu lpm for isolated cpu when sleep is disabled.

Change-Id: Id936ebaac0118d48d07e74aff7569f93b8b98b8b
Signed-off-by: Maulik Shah <mkshah@codeaurora.org>
2017-04-21 11:27:18 +05:30
Deepak Kumar
5ef49cfc5b staging: android: sync: Limit sync log dumping
Dump sync logs only when a fence is not signalled
for SYNC_DUMP_TIME_LIMIT or more. This is necessary
to reduce CPU hogging because of excessive sync logs
dumped due to fence timeouts which are less than
SYNC_DUMP_TIME_LIMIT and are harmless.

Change-Id: Id21a02925dd45a01361d096048a25d1879ebde9e
Signed-off-by: Deepak Kumar <dkumar@codeaurora.org>
2017-04-21 10:55:52 +05:30
Charan Teja Reddy
182caa19ec arm: dma-mapping: set the proper bitmap size
Set the size of bitmap area properly to ensure the proper iova address
to be returned by the bitmap_() API's through alloc_iova(). The current
implementation causes the bitmap index search out of bounds of a page
which can lead to the randomn corruption issues.

Change-Id: Ie57ca0b7465c91d318145ed270b7d47d822c8eeb
Fixes:I88ddd98a76b ("arm/arm64: dma-mapping: Fix iova region size")
Signed-off-by: Charan Teja Reddy <charante@codeaurora.org>
2017-04-21 10:01:15 +05:30
Sudarshan Rajagopalan
0c17028a92 iommu: iommu-debug: assign iova space for fastmap client
With fast mapping, the iova range is zero in the absence of
mapping object from the client. In such case, set the iova
space using the DOMAIN_ATTR_GEOMETRY dommain attribute.

CRs-Fixed: 2020868
Change-Id: I28790728c02ecb2d0a921bf5a218fb8b16662619
Signed-off-by: Sudarshan Rajagopalan <sudaraja@codeaurora.org>
2017-04-20 17:39:20 -07:00
Linux Build Service Account
1a2fe3d28e Merge "msm_11ad: set geometry attr when SMMU stage1 is enabled" 2017-04-20 16:10:37 -07:00
Linux Build Service Account
155c23df2a Merge "ARM: dts: msm: Add device tree for 8998 MTP with 4k display" 2017-04-20 16:10:36 -07:00
Linux Build Service Account
1d7b0bcc5f Merge "clk: msm: clock-local2: Fix get_rate ops for branch clock" 2017-04-20 16:10:35 -07:00
Linux Build Service Account
ccee2cb02c Merge "defconfig: arm64: msmcortex: Enable IP6_NF_IPTABLES_128" 2017-04-20 16:10:35 -07:00
Linux Build Service Account
a94dbcafdf Merge "msm: mdss: fix race condition during mdp debugfs release" 2017-04-20 16:10:34 -07:00
Linux Build Service Account
9d26a7fb14 Merge "msm: mdss: dp: gracefully handle cable disconnect" 2017-04-20 16:10:27 -07:00
Linux Build Service Account
e66fc6f5af Merge "msm: mdss: dp: fix HDCP 1.x state transitions" 2017-04-20 16:10:25 -07:00
Linux Build Service Account
ddc8181a46 Merge "msm: camera: isp: add bound check to handle array out of access" 2017-04-20 16:10:24 -07:00
Linux Build Service Account
68ddf4f0c2 Merge "msm: camera: Add spinlock protection for flags in CCI driver" 2017-04-20 16:10:22 -07:00