Commit graph

598131 commits

Author SHA1 Message Date
Harsh Sahu
d24de74649 fbdev: msm: check buffer size before writing to user buffer
Check the number of bytes to copy against the size of the
user buffer before copy to user to avoid buffer overflow.

Change-Id: Icdd3d4e755deca19fa431e903620bd9e4c701c89
Signed-off-by: Harsh Sahu <hsahu@codeaurora.org>
2018-04-04 16:36:01 -07:00
Linux Build Service Account
7405e11851 Merge "ARM: dts: msm: remove modem region reserved on APQ8096 ADP" 2018-04-03 14:37:36 -07:00
Linux Build Service Account
96d58750b8 Merge "usb: gsi: Don't disable endpoints as part of flow control" 2018-04-03 14:37:35 -07:00
Linux Build Service Account
635513cc1a Merge "wcnss: update the regulator parsing and config method" 2018-04-03 14:37:32 -07:00
Linux Build Service Account
1afa9c51ce Merge "input: touchscreen: Fix uninitialized variable usage in Atmel driver" 2018-04-03 14:37:30 -07:00
Linux Build Service Account
aae13ca421 Merge "msm: sde: check buffer size before writing to user buffer" 2018-04-03 14:37:29 -07:00
Linux Build Service Account
38ce262d11 Merge "u_ctrl_qti: Increase MAX_QTI_PKT_SIZE to 8K" 2018-04-03 14:37:26 -07:00
Sarada Prasanna Garnayak
93a468587d wcnss: update the regulator parsing and config method
Use the resource managed regulator API for the wcnss
regulator parsing and configuration.

CRs-Fixed: 2214888
Change-Id: Ib376893c26bb9aa797e7e9df25cc7302a84a3726
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2018-04-03 04:35:33 -07:00
Sarada Prasanna Garnayak
ec3266a99d wcnss: fix the wcnss power up sequence after ssr
Update the voltage regulator enable/disable status
during proxy vote and unvote request by wcnss wlan
module.

CRs-Fixed: 2211050
Change-Id: I334df98612b0915fe00d5390fbcd37c95e9f6509
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
2018-04-03 04:35:28 -07:00
Linux Build Service Account
660f3d97f2 Merge "adv7481: Enable ADV7481 driver on Auto CDP" 2018-04-03 01:19:59 -07:00
Harsh Sahu
54f1b8b469 msm: sde: check buffer size before writing to user buffer
Check the number of bytes to copy against the size of the
user buffer before copy to user to avoid buffer overflow.

Change-Id: I95083227cfefaf1a81815296145b0c370127e061
Signed-off-by: Harsh Sahu <hsahu@codeaurora.org>
2018-04-03 00:05:53 -07:00
Venkata Prahlad Valluru
4ff082fbfa input: touchscreen: Fix uninitialized variable usage in Atmel driver
Initialize variables that are passed by reference, so that
they can be used safely afterwards, irrespective of the
called function actions.

Change-Id: Ib7fa26b0682c719cabdb9cb94f206a93e3eaaf63
Signed-off-by: Venkata Prahlad Valluru <vvalluru@codeaurora.org>
2018-04-03 11:55:52 +05:30
Yimin Peng
bb5f7ce39e ARM: dts: msm: remove modem region reserved on APQ8096 ADP
DRAM diet requires to remove reserved modem memory.

Change-Id: I919ee1b9cc003d9851a7ec92ba116020044742cf
Signed-off-by: Yimin Peng <yiminp@codeaurora.org>
2018-04-03 14:11:27 +08:00
Linux Build Service Account
225f40883b Merge "diag: Remove hdlc status dependeny on session_info" 2018-04-02 01:45:30 -07:00
Linux Build Service Account
d3f27d035d Merge "soc: qcom: hab: refine hab driver's header files" 2018-04-02 01:45:28 -07:00
Linux Build Service Account
d83747f35c Merge "drm: msm: fix potential NULL pointer dereference" 2018-04-02 01:45:27 -07:00
Suprith Malligere Shankaregowda
169f31f159 adv7481: Enable ADV7481 driver on Auto CDP
Add DTSI entries for ADV7481 on Auto CDP. This is the
HDMI-CSI conversion bridge chip. Also enable the required
CSIDs in camera sensor DTSI.

Change-Id: I972cd2cd538cddf9012fc52400b2980930f77775
Signed-off-by: Suprith Malligere Shankaregowda <supgow@codeaurora.org>
2018-04-01 23:10:37 -07:00
Linux Build Service Account
dd13676f45 Merge "spmi: msm: add virtual SPMI interrupt support" 2018-03-30 12:49:51 -07:00
Yong Ding
83681f8f7d soc: qcom: hab: refine hab driver's header files
Stuffs relevant with ioctl are only for hab driver
itself and hab clients in user space. Those hab clients
in kernel dose not need them. So here uapi/linux/habmm.h
is refined into two files as habmmid.h and hab_ioctl.h.

Change-Id: I9344e3e3fec88a042ec1915a9c0d51a28cea6e9a
Signed-off-by: Yong Ding <yongding@codeaurora.org>
2018-03-30 03:16:43 -07:00
Linux Build Service Account
75409cea49 Merge "msm: pcie: Add proper check before accessing variables" 2018-03-29 21:37:15 -07:00
Linux Build Service Account
4502101297 Merge "msm: thermal: Initialize KTM interrupt mode at kernel late init level" 2018-03-29 02:54:11 -07:00
Vijayavardhan Vennapusa
28c73541e3 u_ctrl_qti: Increase MAX_QTI_PKT_SIZE to 8K
increase MAX_QTI_PKT_SIZE to 8KB to handle QMI messages of bigger
length of 8KB.

Change-Id: I479794c9563ae89b9062b75031b6cdc739a0f620
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2018-03-28 22:07:44 -07:00
Linux Build Service Account
9896df099c Merge "nf: xt_socket: Fix out-of-bounds in xt_socket_lookup_slow_v{4,6}" 2018-03-28 15:28:08 -07:00
Linux Build Service Account
c638be9b40 Merge "msm: ADSPRPC: Validate rpra to avoid Null pointer dereference" 2018-03-28 15:28:07 -07:00
Linux Build Service Account
2a5b9922bf Merge "drm/msm: check hpd_off flag only for pluggable displays" 2018-03-28 15:28:06 -07:00
Linux Build Service Account
ac5f95a1a7 Merge "soc: qcom: ipc_router_smd_xprt: Set pointer to NULL after free" 2018-03-28 15:28:04 -07:00
Linux Build Service Account
ca7292c0ff Merge "cnss2: Fix dereference before NULL check issue" 2018-03-28 15:28:03 -07:00
Linux Build Service Account
1ccccc02c1 Merge "cnss2: Support collecting firmware dump during driver load" 2018-03-28 15:28:02 -07:00
Linux Build Service Account
538e1c6d03 Merge "msm: vidc: Fix use after free issue in set_output_buffers" 2018-03-28 15:28:01 -07:00
Linux Build Service Account
09ff85fe7f Merge "defconfig: Add WLAN related defconfigs for msm8996_gvmq" 2018-03-28 15:27:59 -07:00
Linux Build Service Account
189db53495 Merge "ARM: dts: Add qcom,cnss for WLAN on vplatform msm8996_gvmq" 2018-03-28 15:27:58 -07:00
Linux Build Service Account
2b4db72cec Merge "ARM: dts: msm: add the hab entry into the msm8996 telematics vplatform" 2018-03-28 15:27:57 -07:00
Linux Build Service Account
905fb03643 Merge "sched: Export wake_to_idle API" 2018-03-28 15:27:56 -07:00
Linux Build Service Account
cce73b6eb4 Merge "crypto: msm: reset pointer before returning from the function" 2018-03-28 15:27:54 -07:00
Linux Build Service Account
4494f37ab3 Merge "soc: qcom: hab: add habmm_socket_query support" 2018-03-28 15:27:52 -07:00
Tejaswi Tanikella
b116697fb5 nf: xt_socket: Fix out-of-bounds in xt_socket_lookup_slow_v{4,6}
skb_header_pointer will copy data into the buffer if data is spread
across pages, else share pointer within skb->data. In
xt_socket_lookup_slow_v4, data is copied into udphdr, and later
th->doff is accessed, causing a out-of-bounds. This
access will only work if the data is not split across pages.

Copy data into tcphdr buffer for TCP packets instead.

Change-Id: Ifd6e15ece27fcf5bd02ae17571ab43f6df3ceb21
Fixes: a583636a ("inet: refactor inet[6]_lookup functions to take skb")
Signed-off-by: Tejaswi Tanikella <tejaswit@codeaurora.org>
2018-03-28 07:43:00 -07:00
Manaf Meethalavalappu Pallikunhi
255ce53eb8 msm: thermal: Initialize KTM interrupt mode at kernel late init level
KTM prolong KTM hotplug mitigation, cpu frequency mitigation etc. till
thermal-engine takes over. It is helping thermal runaway issues during
the boot time from KTM kernel late init level to thermal-engine
starts. Since BCL is also using KTM interface for mitigation, it
delays BCL mitigation till thermal-engine starts. Again target which
has LMH support enables Tj based mitigation very early in the boot.
So there is no risk of thermal runaway issues mentioned above.

Enable KTM interrupt mode mitigation back from kernel late init
itself. This reverts commit <07f3dcfc7f7c> ("msm: thermal: Prolong
KTM mitigation till thermal-engine takesover").

Change-Id: I7e4beaed2dd003c6ed36cc10e4bf003826fad827
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
2018-03-28 18:22:38 +05:30
Rahul Sharma
b86526c85e drm/msm: check hpd_off flag only for pluggable displays
This change will wrap the 'hpd_off' flag with pluggable displays.
In non-pluggable display case 'hpd_off' flag prevents disabling
of HPD clocks and hence display subsystem doesn't got into suspend
state.

Change-Id: I28ade8fb60a60a15f1d23009de63bbf9f10c7c77
Signed-off-by: Rahul Sharma <rahsha@codeaurora.org>
Signed-off-by: Suprith Malligere Shankaregowda <supgow@codeaurora.org>
2018-03-27 22:01:10 -07:00
Arun Kumar Neelakantam
8d26f80ebc soc: qcom: ipc_router_smd_xprt: Set pointer to NULL after free
in_pkt pointer is holding dangling pointer address even after calling
release_pkt() which causing use-after-free.

Set the in_pkt pointer to NULL after free.

CRs-Fixed: 2210859
Change-Id: If5e01c0109c947e52f3ff269c9b2b50ac0dc2bdf
Signed-off-by: Arun Kumar Neelakantam <aneela@codeaurora.org>
2018-03-28 10:30:26 +05:30
Ferry Zhou
008010a68b defconfig: Add WLAN related defconfigs for msm8996_gvmq
The WLAN driver qcacld-3.2 depends on CNSS2, CFG80211 and ralated
defconfigs.  So, add these defconfigs to enable WLAN over PCIe in
virtual platform msm8996_gvmq.

Change-Id: I3ade33ef26bc057b96b4b283669293a43a79b101
Signed-off-by: Ferry Zhou <tianguiz@codeaurora.org>
2018-03-28 08:59:44 +08:00
Ferry Zhou
f4d1f8db03 ARM: dts: Add qcom,cnss for WLAN on vplatform msm8996_gvmq
The device tree node qcom,cnss includes all WLAN related hardware
configurations including power supply regulators and pinctrl
configuration etc.  So, add qcom,cnss into the dts of Linux/Android
virtual platform msm8996_gvmq to enable WLAN over PCIe.

Change-Id: I0dbefbeefb7c6e843e55f32a8b33c4113a3a2e6e
Signed-off-by: Ferry Zhou <tianguiz@codeaurora.org>
2018-03-28 08:59:44 +08:00
Yue Ma
bde7c6fb4d cnss2: Support collecting firmware dump during driver load
When firmware crashes during WLAN host driver loads, collects
firmware dump and proceeds with SSR as normal cases.

Change-Id: If2ac7da3c2db4b4116949d092ad53299f23c87e0
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2018-03-27 17:04:25 -07:00
Yue Ma
fa138cc53c cnss2: Fix dereference before NULL check issue
In cnss_mhi_notify_status(), NULL check should be performed before
dereference for pci_priv.

Change-Id: Iea5a6e2b8be9b07c235b02bfe02292f24da882d8
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2018-03-27 15:20:26 -07:00
Chinmay Sawarkar
11685571ad msm: vidc: Fix use after free issue in set_output_buffers
When set_buffers fails, binfo is freed and again accessed
while freeing smem memory.

CRs-Fixed: 2118860
Change-Id: Ifdd683f907862665e34d6d39d5a8634984804c01
Signed-off-by: Chinmay Sawarkar <chinmays@codeaurora.org>
Signed-off-by: Sanjay Singh <sisanj@codeaurora.org>
2018-03-27 15:01:19 -04:00
Sriharsha Allenki
b8e7c7ca38 usb: gsi: Don't disable endpoints as part of flow control
Currently GSI endpoints are disabled when host enables
flow control for RNDIS function. When these endpoints are
enabled again as part of flow control disable, no transactions
are observed on these endpoints. Fix this by not disabling the
endpoints as part of flow control enable but just stop the
active transfers on these endpoints.

Change-Id: I391a7048188b2a63e2df993fcebf7a6e78eaef14
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
2018-03-27 23:07:18 +05:30
Yong Ding
3aa0551246 ARM: dts: msm: add the hab entry into the msm8996 telematics vplatform
In the msm8996 telematics vplatform, only these MMID groups
for QCPE, clock, FDE and test are added into its device node.

Change-Id: Ib527a4e3a79ebf84fd6f47db66baa324eedb5300
Signed-off-by: Yong Ding <yongding@codeaurora.org>
2018-03-27 01:55:43 -07:00
Parai Wang
7fcca62cb3 crypto: msm: reset pointer before returning from the function
Reset cipher_req.creq.dst and cipher_req.creq.src pointer to NULL
before returning from the function, and initialize scatterlist
variable before using it.

Change-Id: I5d5eee06a5213a05b20bf459ef0bf0c433fadbdd
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
Signed-off-by: Parai Wang <fpwang@codeaurora.org>
2018-03-27 01:10:29 -07:00
Guchun Chen
f42176b693 drm: msm: fix potential NULL pointer dereference
Add checker before using pointers, to avoid NULL pointer
dereference happens.

CRs-Fixed: 2202957
Change-Id: I99930e1e9477130fcfceadad3f3a2ff5c9e89cda
Signed-off-by: Guchun Chen <guchunc@codeaurora.org>
2018-03-27 12:37:35 +08:00
Linux Build Service Account
a56e768ca3 Merge "ARM: dts: msm: add audio ion vm dev node for msm8996 auto" 2018-03-26 18:57:02 -07:00
Linux Build Service Account
9b88bdd9cd Merge "mm-camera2:isp2: Avoid use after free buffer" 2018-03-26 18:57:01 -07:00