Commit graph

602771 commits

Author SHA1 Message Date
Linux Build Service Account
6240792cda Merge "diag: Prevent out of bound access while getting build mask" 2019-06-18 00:25:17 -07:00
Haibin Liu
94835ff2d3 msm: sensor: actuator: fix out of bound read for bivcm region params
The region index for bivcm is not validated against the region size.
This causes out-of-bound read on the KASAN kernel.
Add restriction that region index smaller than region size.

CRs-Fixed: 2379514
Change-Id: I72c4a41a4b41c8fa70c174ffd3215a81eaa14355
Signed-off-by: Haibin Liu <haibinl@codeaurora.org>
2019-06-17 23:50:38 -07:00
Manoj Prabhu B
82caeda139 diag: Prevent out of bound access while getting build mask
Add check for minimum length before typecasting to build mask
structure to prevent out of bound access.

CRs-Fixed: 2431005
Change-Id: I97b439ead62c8a67869c9209442ef771308f2d3f
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2019-06-17 23:24:16 -07:00
Deepak Kumar Singh
166ba6a45b 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: 2421602
Change-Id: I947ed5b0fe5705e5223d75b0ea8aafb36113ca5a
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
2019-06-17 23:14:53 -07:00
Tharun Kumar Merugu
b9a42b4ce5 msm: adsprpc: maintain local copy of rpra offloaded to DSP
Since DSP is not supposed to modify the base pointer rpra of the
input/output arguments offloaded to DSP, maintain a local copy of
the pointer and use it after receiving interrupt from DSP.

Change-Id: I4afade7184cb2aca148060fb0cda06c6174f3b55
Acked-by: Maitreyi Gupta <maitreyi@qti.qualcomm.com>
Signed-off-by: Tharun Kumar Merugu <mtharu@codeaurora.org>
Signed-off-by: Mohammed Nayeem Ur Rahman <mohara@codeaurora.org>
2019-06-17 06:52:56 -07:00
LuK1337
c62e49afc1 Revert "qcacld-3.0: Fix OOB in wma_stats_event_handler"
* This change makes WiFi report invalid signal strength.

This reverts commit be468730d315e973e9936da275b06600d0ce276c.

Change-Id: I01094049520ea706c27e00f316539f9d9d53bbc7
2019-06-16 08:32:43 +02:00
Albert I
93e8af2c9d qcacld-3.0: Add packet capture feature option into Kconfig
* Needed after LA.UM.7.4.r1-05300-8x98.0 merge.

Signed-off-by: Albert I <kras@raphielgang.org>
Change-Id: I7af8ef790db303c8cb0d338479b85b12b4f86019
2019-06-16 08:26:34 +02:00
Luca Stefani
91261f4801 staging: qcacld-3.0: make debug functions configurable
Change-Id: If0643fc66aac1846fc5e1466d047ff31a5b175c3
2019-06-16 08:26:15 +02:00
Ethan Chen
96b2738d6b staging: qcacld-3.0: Fix Kconfig
* Correct badly named options
* Add missing options

Change-Id: I4a5cc2216fe36a07520827cdb9577a75ec09450a
2019-06-16 08:25:42 +02:00
Park Ju Hyung
a492739e39 staging: qcacld-3.0: fix an inconsistency between userspace and kernel options
Signed-off-by: Park Ju Hyung <qkrwngud825@gmail.com>
2019-06-16 08:22:12 +02:00
codeworkx
b2bfc56a41 Update wifi stack from LA.UM.7.4.r1-05300-8x98.0
Change-Id: I57425c2e97765519cb7c6b37c9ccbe351563fe9b
2019-06-16 08:19:06 +02:00
Max Weffers
ac0bcfe881 Revert "msm: mdss: hdmi: skip pan_display during handoff"
* Makes the device get stuck on splash screen
  when booting in offline charging mode.

This reverts commit b03b261cfc.

Change-Id: I79fc04a43a7995c1015464b2d3c481200ddcaf8d
2019-06-16 08:16:12 +02:00
codeworkx
15f81a19b5 Merge tag 'LA.UM.7.4.r1-05300-8x98.0' into lineage-16.0
"LA.UM.7.4.r1-05300-8x98.0"

Change-Id: I8e27939efccb7d0bda0ac7c4e32afdf3c6d62507
2019-06-16 08:15:21 +02:00
Linux Build Service Account
26b963c83a Merge "msm: ipa3: Fix to validate check for IP type" 2019-06-11 12:23:55 -07:00
Praveen Kurapati
53f933ef2d msm: ipa3: Fix to validate check for IP type
Add proper check for validating the IP type while
sending request for ul-filter-rule install.

Change-Id: I170230310884f176cf41d5ae20287f6d74a4bc29
Signed-off-by: Praveen Kurapati <pkurapat@codeaurora.org>
2019-06-11 05:08:24 -07:00
Linux Build Service Account
9c3d573678 Merge "dwc3-msm: Fix dwc3_drd_state_string for undefined state" 2019-06-11 04:12:19 -07:00
Linux Build Service Account
ebbd0af9c7 Merge "msm: camera: isp: Fix frame drop pattern" 2019-06-09 18:48:02 -07:00
Linux Build Service Account
84253b6fc6 Merge "asoc: Ratelimit error logs to avoid excessive logging" 2019-06-09 08:03:25 -07:00
Linux Build Service Account
220c735ef4 Merge "msm: ipa: fix to validate input parameters" 2019-06-09 08:03:24 -07:00
Linux Build Service Account
bb646b5795 Merge "msm: mdss: hdmi: fix 4 block EDID read failure" 2019-06-09 08:03:22 -07:00
Linux Build Service Account
1569dc4f6c Merge "msm: mdss: hdmi: parse extended EDID block map" 2019-06-09 00:24:38 -07:00
Linux Build Service Account
b901478900 Merge "soc: msm8998: Add 16ch playback and record support for TDM" 2019-06-08 11:26:05 -07:00
Linux Build Service Account
5e170b6a8d Merge "asoc: Update max channels for TDM ports" 2019-06-08 11:26:02 -07:00
Dhanalakshmi Siddani
5f7a491185 soc: msm8998: Add 16ch playback and record support for TDM
Add support for 16ch playback and record usecase support
for primary and quaternary TDM ports.
Add mixer controls to set slot width, slot mapping and
calculate bit clock dynamically. Set bit clock for all
TDM ports dynamically.

Change-Id: I9d356d61f29ba18dd77138bd895139042a3c01f6
Signed-off-by: Dhanalakshmi Siddani <dsiddani@codeaurora.org>
2019-06-08 07:47:03 -07:00
Abhishek Choubey
b308c9c029 msm: ipa: fix to validate input parameters
Validate the input parameters to avoid any unexpected
scenarios.

Change-Id: If77ac66470baf937b160800174ea14f1a8cb6408
Signed-off-by: Pooja Kumari <kumarip@codeaurora.org>
Signed-off-by: Abhishek Choubey <abchoube@codeaurora.org>
2019-06-07 03:56:50 -07:00
kunleiz
ae49a1758f dsp: q6core: validate payload size before memory copy
Payload size is not checked before memory copy.
Check payload size to avoid out-of-boundary memory
access.

Change-Id: I07857564d4e8ce415df3810b25f0e9e17a60993d
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2019-06-07 15:16:09 +05:30
Dhanalakshmi Siddani
8c174167dc asoc: Update max channels for TDM ports
Update max channels supported for TDM ports from 8 to 16.
Update pcm driver to support 32 channels and 32bit format.

Change-Id: I3d3b42983fff22e0102b9eb2aaca1a5698820605
Signed-off-by: Dhanalakshmi Siddani <dsiddani@codeaurora.org>
2019-06-06 21:57:27 -07:00
Aditya Bavanari
5bee717e43 asoc: Ratelimit error logs to avoid excessive logging
Ratelimit error logs of boundary check conditions
in audio effects driver to avoid excessive logging.

CRs-Fixed: 2426159
Change-Id: Iaf10eee281389773a21340997e3ffbe88c6e79f6
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2019-06-06 15:03:25 +05:30
Vamsi Krishna Samavedam
92e370e629 dwc3-msm: Fix dwc3_drd_state_string for undefined state
dwc3_drd_state_string() will return null for undefined state and
fix it by adding undefined name to state_names.

Change-Id: I40be0b14c098fe2e9d77df3ff1108c3d4d55a30f
Signed-off-by: Vamsi Krishna Samavedam <vskrishn@codeaurora.org>
2019-06-06 13:48:46 +05:30
Manu Gautam
7d34ffa6c3 usb: dwc3-msm: Ensure hardware is reset during role change
Introduce additional WAIT_FOR_LPM input flag to ensure USB
enters low power mode after stop_peripheral or stop_host.
This makes sure that USB hardware is reset after LPM for
cases where quick transition to host mode happens while
its child was still preventing dwc3 to enter low power mode.
In the absence of h/w reset after stop_peripheral, host mode
doesn't work.

Change-Id: I67e4fcdc11a3337e3e90b4ca8f461e328a6e8ecf
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
2019-06-06 13:48:35 +05:30
Manu Gautam
582ce26ce1 usb: dwc3-msm: add enum for drd_states to remove otg_state usage
otg_state enum defines states for USB OTG devices. Since, driver
supports only role change (DRD) and no OTG support, hence, instead
of using otg_states create separate drd_state enums.

Change-Id: Ifda1fac712e751c980ce51b60b473e5921f2001d
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
2019-06-06 13:47:35 +05:30
Anmolpreet Kaur
6dc4873f91 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-06-04 03:32:39 -07:00
Linux Build Service Account
56267aa801 Merge "msm: ais: handle the error value returned during get clock" into kernel.lnx.4.4.r35-rel 2019-06-03 11:54:49 -07:00
E V Ravi
8d1f0491ed 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-06-03 11:47:32 -07:00
Abhishek Choubey
cac305db85 msm: ipa: fix to validate input parameters
Validate the input parameters to avoid any unexpected
scenarios.

Change-Id: If77ac66470baf937b160800174ea14f1a8cb6408
Signed-off-by: Pooja Kumari <kumarip@codeaurora.org>
Signed-off-by: Abhishek Choubey <abchoube@codeaurora.org>
2019-06-03 11:47:17 -07:00
Meera Gande
cc4d1a6cb1 msm: camera: isp: Fix frame drop pattern
In few scenarios, the request frame may get
delayed and current and request frame id may
become same. While user space is informed to
delay a frame in such scenarios, the pattern
shouldn't get reset.

Change-Id: I63f1301fbbe7cba024a686cbd783af25232f1293
Signed-off-by: Meera Gande <mgande@codeaurora.org>
2019-06-03 15:43:52 +05:30
Linux Build Service Account
10a5c5b618 Merge 96eca37071 on remote branch
Change-Id: Ib1b8db2b2d165effaca8114bd41c8afbec79f437
2019-06-01 22:21:22 -07:00
Manoj Prabhu B
96eca37071 diag: Check command size against the minimum before parsing
Add check for minimum length before typecasting to build mask
structure to prevent out of bound access while processing
get msg mask command.

CRs-Fixed: 2431047
Change-Id: I5b8341f278b0b46359800e43c604c5671261c728
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2019-05-30 02:04:29 -07:00
Narender Ankam
ad283e50ec msm: mdss: hdmi: parse extended EDID block map
As part of EDID parser, add support to parse extended EDID
Block Map (0xf0) block and parse all subsequent CEA (0x02)
extended EDID Blocks.

Change-Id: I581efae59dde3abf6f297d5a2519ac0088554b64
Signed-off-by: Narender Ankam <nankam@codeaurora.org>
2019-05-29 13:38:49 +05:30
Narender Ankam
639259bb32 msm: mdss: hdmi: fix 4 block EDID read failure
Only Block0 and Block1 of EDID are being read successfully.
Fix EDID segment read failure for Block2 and Block3.

Change-Id: I2d501878c6089b275e77587f3f41416aec2ef389
Signed-off-by: Narender Ankam <nankam@codeaurora.org>
2019-05-29 00:59:36 -07:00
Linux Build Service Account
10da01940d Merge "msm: adm: validate ADSP payload size before access" 2019-05-24 10:20:00 -07:00
Narender Ankam
526404d09d msm: mdss: assign block_id for INTF_3
As part of destination scalar on HDMI, INTF3 will be
configured as dual LM single display for higher video
timings. Assign block_id for HDMI INTF.

Change-Id: I09f5eb4136c4a8248f3dc9a36e2d94110419112d
Signed-off-by: Narender Ankam <nankam@codeaurora.org>
2019-05-24 00:41:02 -07:00
Vignesh Kulothungan
a935cbe437 msm: adm: validate ADSP payload size before access
Check the size of ADSP payload before accessing it.

CRs-Fixed: 2380694
Change-Id: Icdc19a85b39a397ba6d7177f42ece4626b901832
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2019-05-22 12:18:41 -07:00
E V Ravi
dabba2bc7b msm: ais : Lock Implementation for avoid race condition
Lock Implementation for avoid race condition leading
to out-of-bound write in "msm_vb2_queue_setup

Change-Id: I386f1709bdf3328ae0c1db44980db8453849babf
Signed-off-by: E V Ravi <evenka@codeaurora.org>
2019-05-22 02:29:29 -07:00
Linux Build Service Account
44d964e1d2 Merge "dsp: afe: check for minimum size before payload access" 2019-05-21 18:16:58 -07:00
Karthikeyan Mani
a919f50d96 dsp: afe: check for minimum size before payload access
Check if payload data is atleast the minimum expected size
before accessing the data in it.

Change-Id: Ia1295ca5ad5d002122e416fae53588681da687ea
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-05-21 10:37:29 -07:00
Linux Build Service Account
403885b338 Merge "msm: qdsp6v2: Check size of payload before access" 2019-05-21 10:20:09 -07:00
Vatsal Bucha
f455966ef0 msm: qdsp6v2: Check size of payload before access
Check size of payload array before access in qdsp_mvm_callback.

Change-Id: I81d945f963cfb4a3cb26155700b82880d891ec5e
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-05-21 05:43:31 -07:00
Linux Build Service Account
5bfaf959ac Merge "msm: mdss: hdmi: reset sink_caps before parsing EDID" 2019-05-21 02:24:45 -07:00
Narender Ankam
ee8a9362ca msm: mdss: hdmi: reset sink_caps before parsing EDID
Within EDID parser's data structure, sink_caps of previous
EDID are being retained. Reset sink_caps before parsing new
EDID.

Change-Id: I7927161256ec87ab77b26a9d7bc5e0cd1df5583b
Signed-off-by: Narender Ankam <nankam@codeaurora.org>
2019-05-21 00:41:10 -07:00