Commit graph

606009 commits

Author SHA1 Message Date
Deepak Kumar Singh
fcc47ec62a soc: qcom: smem: validate fields of shared structures
Structures in shared memory that can be modified by remote
processors may have untrusted values, they should be validated
before use.

Adding proper validation before using fields of shared
structures.

CRs-Fixed: 2421611
Change-Id: Ifed71c506a26105eac3db9ee35f086d7dbf5a3a3
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
2019-06-27 10:32:41 +05:30
Linux Build Service Account
2f6ef8a30b Merge "usb: f_gsi: Increase max control transfer size to 8K" 2019-05-27 21:57:43 -07:00
Linux Build Service Account
cfb05dba82 Merge "msm: ipa_v2: Protect ipa default routing table" 2019-05-27 08:01:49 -07:00
Linux Build Service Account
44607545fc Merge "qcom: smcinvoke: Fix stack overflow for arr_filp" 2019-05-27 00:42:19 -07:00
Linux Build Service Account
b29d59a33d Merge "defconfig: msm8996: Enable radio configs" 2019-05-27 00:42:16 -07:00
Anmolpreet Kaur
fa9dbbba72 qcom: smcinvoke: Fix stack overflow for arr_filp
arr_filp is an alias to filp_to_release. It is exposed
to access indices greater than allotted space of 15 bytes,
equal to size of OBJECT_COUNTS_MAX_OO. This change fixes
the stack overflow by taking an independent variable to track
the number of output objects.

Change-Id: Idca9cef3c69693d27d4ca3d0e0b4845fc27c998a
Signed-off-by: Anmolpreet Kaur <anmolpre@codeaurora.org>
2019-05-26 23:22:34 -07:00
Linux Build Service Account
547234bc39 Merge "arm: dts: msm: Add usbin-vadc dt property for 8996" 2019-05-23 10:38:12 -07:00
Linux Build Service Account
fe304a42ba Merge "power: qpnp-smbcharger: Add voltage now property in usb psy" 2019-05-23 00:28:00 -07:00
Linux Build Service Account
01abac7367 Merge "soc: qcom: ipc_router_mhi_xprt: Handle error condition" 2019-05-23 00:27:56 -07:00
Linux Build Service Account
d1a5c03805 Merge "ARM: dts: msm: Enable HDMI audio support for 8996" 2019-05-22 07:31:16 -07:00
Linux Build Service Account
f5704ee3fc Merge "defconfig: Enable REGMAP_ALLOW_WRITE_DEBUGFS" 2019-05-22 07:31:14 -07:00
Kavya Nunna
726ccfec94 power: qpnp-smbcharger: Add voltage now property in usb psy
Add VOLTAGE_NOW power supply property to expose the USB voltage.

Change-Id: I3041aafaf365c205e53451a5d4ee79dcfe6b78bf
Signed-off-by: Kavya Nunna <knunna@codeaurora.org>
2019-05-22 14:56:32 +05:30
Linux Build Service Account
c77bbe6851 Merge "msm: ais: handle the error value returned during get clock" 2019-05-21 23:21:32 -07:00
E V Ravi
765d3befd4 msm: ais: handle the error value returned during get clock
currently only NULL pointer check is used to validate the return
value from clk_get, this change to handle all the failures.
This snapshot is taken from auto-kernel.lnx.4.4.c1
ported it from auto-kernel.lnx.4.4.c1 to 4.4

Change-Id: I275cb4717c675baf528e05c50058f2c6b0025011
Signed-off-by: E V Ravi <evenka@codeaurora.org>
2019-05-21 05:36:20 -07:00
Kavya Nunna
716a46317a power: qpnp-smbcharger: Add support for float charger detection
PMI8996 charger does not detect FLOAT adapter. To support it,
FLOAT detection is done by the USB driver and notified to PMIC
by reporting  -ETIMEDOUT through the CURRENT_MAX power-supply
property. Charger then configures the charge current to 1500mA.

Change-Id: I6abd4668b41988d98465f00402aa2be558054cdd
Signed-off-by: Kavya Nunna <knunna@codeaurora.org>
2019-05-21 16:27:43 +05:30
Linux Build Service Account
f228ed9095 Merge "ARM: dts: msm: Update avb flag and partition names for auto" 2019-05-21 03:35:36 -07:00
Kavya Nunna
fde6bcd6f6 arm: dts: msm: Add usbin-vadc dt property for 8996
Add usbin-vadc dt property for reading the usbin vadc voltage.

Change-Id: If729e53a1c34ac173c728fc4d2435d6a5e60206d
Signed-off-by: Kavya Nunna <knunna@codeaurora.org>
2019-05-21 15:35:26 +05:30
Linux Build Service Account
f8572fa192 Merge "ASoC: msm: Update codec name in HDMI dai link" 2019-05-20 16:49:49 -07:00
Linux Build Service Account
64c7fea7a6 Merge "serial: msm_serial_hs: Align to HW assisted flow control support" 2019-05-20 09:12:57 -07:00
Mitul Golani
095ed32dd7 serial: msm_serial_hs: Align to HW assisted flow control support
If client enables HW AUTOCTS mode then set UPSTAT_AUTOCTS,otherwise
serial core disables TX fully at the framework layer and
no communication happens.

Signed-off-by: Mitul Golani <mgolani@codeaurora.org>
Change-Id: I13d6048fc2aeacd2f0078fc38f43e07cfd5a5850
2019-05-20 02:51:25 -07:00
Manu Gautam
a4cc4b94d2 usb: f_gsi: Increase max control transfer size to 8K
Max packet size that GNSS can use is 8K.
Increase the max buff size support in driver from 4K
to 8K so that transfers larger than 4K are not failed

Change-Id: If74a7d9994101a55d27ff92258b8ab7ef2d54a50
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
2019-05-20 02:36:25 -07:00
Linux Build Service Account
14ff0dc12e Merge "ARM: dts: msm: add support for apq8096pro CDP" 2019-05-20 00:44:10 -07:00
Rama Krishna Phani A
79e903bcd9 soc: qcom: ipc_router_mhi_xprt: Handle error condition
Handle error condition and clean up resources in case of
failure with mhi driver.

Change-Id: I6de1ebe9063bc0cf4492a8334f242bf34e352e70
Signed-off-by: Rama Krishna Phani A <rphani@codeaurora.org>
2019-05-20 10:21:54 +05:30
Linux Build Service Account
4efd54ad69 Merge "pwm: pwm-qpnp: Fix the order of configuring PWM value" 2019-05-17 06:09:27 -07:00
Linux Build Service Account
af0d3ed849 Merge "msm: camera: jpegdma: Added missing lock for dqbuf and streamon" 2019-05-16 23:53:24 -07:00
Linux Build Service Account
cd1e9004dd Merge "defconfig: msm8996: Enable PAN emulation" 2019-05-16 09:29:55 -07:00
Linux Build Service Account
a4b99d2c64 Merge "defconfig: msm8996: Disable DEVPORT" 2019-05-16 09:29:53 -07:00
Vijay kumar Tumati
b79e25fe58 msm: camera : Lock Implementation for avoid race condition
Lock Implementation for avoid race condition leading
to out-of-bound write in "msm_vb2_queue_setup

CRs-Fixed: 2362627
Change-Id: I7f7420c7437b9ac2f215929a8614b0846e890c98
Signed-off-by: Vijay kumar Tumati <vtumati@codeaurora.org>
Signed-off-by: Haibin Liu <haibinl@codeaurora.org>
2019-05-15 22:04:10 -07:00
Anirudh Ghayal
c9fa4db90a pwm: pwm-qpnp: Fix the order of configuring PWM value
The hardware expects the PWM MSB value to be written
before LSB to avoid glitches in the output. Fix this.

Change-Id: I048bdbd0c096a6d03501bdd5b1d2d4bb50d45dd7
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2019-05-15 09:03:34 +05:30
Rahul Sharma
592adc4849 drm/msm: ensure display driver probe completion
This change is done so that in non display platform
indefinite wait is not introduced, however for platforms where
display driver is probed asynchronously we still
wait for completion.

Change-Id: I14932ee2c0e52330975529ca0be34b6e2521d05e
Signed-off-by: Rahul Sharma <rahsha@codeaurora.org>
2019-05-13 22:09:04 -07:00
Linux Build Service Account
77c04577d9 Merge "msm: camera_v2: handle the error value returned during get clock" 2019-05-13 07:29:42 -07:00
Naman Padhiar
5e14415719 icnss: Add check on msa region
When icnss receive server arrive it send wlfw_msa_mem_info_send_sync_msg
QMI request to firmware and in response expect range of addresses and size
to be mapped. Add condition to check whether addresses in response falls
under valid range otherwise it asserts.

Change-Id: I9a8542cb6c3b3cefe112d1f08a76dd2eadf68d2f
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
2019-05-12 22:37:36 -07:00
Sumalatha Malothu
6183ceb8d1 msm: camera_v2: handle the error value returned during get clock
currently only NULL pointer check is used to validate the return
value from clk_get, this change to handle all the failures.
This snapshot is taken from msm-4.9
Ported it from 4.9 to 4.4

Change-Id: Icd8b7e33d0f235a7c5dde2307972a594908e6a60
Signed-off-by: Sumalatha Malothu <smalot@codeaurora.org>
2019-05-13 10:46:43 +05:30
Akshay Pandit
779dfa61f7 msm: ipa_v2: Protect ipa default routing table
Protect ipa default routing table from
addition, deletion and modification once after
default rule added by ipa driver.

Change-Id: I4b8fdd9208425c5eb0bceed0ce62fb7d7a075e36
Signed-off-by: Akshay Pandit <pandit@codeaurora.org>
2019-05-10 18:03:08 +05:30
Venkata Rao Kakani
8b5d9f6f8e ARM: dts: msm: add support for apq8096pro CDP
Add board-id support for APQ8096pro CDP in device tree.

Change-Id: I4d233ed465f0b59a695d9ba04a97571c771987b8
Signed-off-by: Venkata Rao Kakani <vkakani@codeaurora.org>
2019-05-10 16:14:50 +05:30
Soumya Managoli
59dda5e0dc ASoC: msm: Update codec name in HDMI dai link
Change HDMI codec name in dai link to
align with the hdmi codec driver name.

Change-Id: I77fa781bb5149a21d7f7aadd819dc0c0296ac4f2
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
2019-05-10 02:03:18 -07:00
Soumya Managoli
f32a4e2dec ARM: dts: msm: Enable HDMI audio support for 8996
Add missing entries in sound node
to enable HDMI audio.

Change-Id: Id748a06a28237c051f1410e9ae4d4492c4b038f1
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
2019-05-09 05:32:14 -07:00
vagdhan kumar kanukurthi
c44c78fab1 ARM: dts: msm: Update avb flag and partition names for auto
Update vendor avb flag and remove recovery partition from vbmeta
partition list as auto does not support recovery partition.

Change-Id: Idc6c5e2c2eb2cccd32223e77404fb06ef9e02908
Signed-off-by: Vagdhan Kanukurthi <vagdhank@codeaurora.org>
2019-05-09 13:43:54 +05:30
Linux Build Service Account
22dc337a69 Merge "msm: mdss: mdp: mixer allocation for pluggable primary display" 2019-05-08 18:49:44 -07:00
Linux Build Service Account
830b7b50b3 Merge "msm: kgsl: Fix race condition while making page as dirty" 2019-05-08 18:49:43 -07:00
Linux Build Service Account
cd6e1cd22b Merge "diag: Validate command length against size of command structure" 2019-05-08 18:49:42 -07:00
Linux Build Service Account
7939ca71f8 Merge "misc: ksbridge: Add support for sending uevent with pid/vid" 2019-05-08 18:49:41 -07:00
Linux Build Service Account
a4b2d7442d Merge "usb: misc: lvstest: allow specifying port for compliance mode" 2019-05-08 18:49:38 -07:00
Linux Build Service Account
0052d71715 Merge "usb: misc: lvstest: add entry to place port in compliance mode" 2019-05-08 18:49:38 -07:00
Linux Build Service Account
64baae1cd9 Merge "usb: xhci: Support enabling of compliance mode for xhci 1.1" 2019-05-08 18:49:37 -07:00
Linux Build Service Account
5ee084c812 Merge "drm/msm/sde: fix null pointer dereference" 2019-05-08 03:00:03 -07:00
Linux Build Service Account
40adef7ded Merge "Merge android-4.4.179 (aab9adb) into msm-4.4" 2019-05-08 03:00:02 -07:00
VijayaKumar T M
8e638383c1 msm: camera: jpegdma: Added missing lock for dqbuf and streamon
Added missing lock to avoid race conditon for dqbuf and
streamon

CRs-Fixed: 2376566
Change-Id: I1c0ef9014914a9892c4d443600618c52d0aeebfa
Signed-off-by: VijayaKumar T M <vtmuni@codeaurora.org>
2019-05-08 02:29:50 -07:00
Manoj Prabhu B
061ce1d939 diag: Validate command length against size of command structure
While processing a packet containing command request, buffer size
need to be checked against size of the command structures that is
being parsed to prevent possible out of bound access.

CRs-Fixed: 2432633
Change-Id: I048bdbd0c096a6d03501bdd5b1d2d4bb50d45dd6
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2019-05-08 14:12:28 +05:30
Vijayavardhan Vennapusa
2b163b082a misc: ksbridge: Add support for sending uevent with pid/vid
Add required support in ksbridge driver to send uevent with vendor id
and product id details.

Change-Id: I22974dfa63665e6ddcbda2f7d11c68f716c1c760
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
2019-05-08 11:32:46 +05:30