Commit Graph

72424 Commits

Author SHA1 Message Date
quic_anane
2466bcf3ce msm: ADSPRPC: Avoid Out-Of-Bounds access
Currently, when adding duplicate sessions to an array that holds
session information, no check is performed to avoid going out of
bounds. Add a check to confirm that the index is not out of bounds.

Change-Id: Ib7abcc5347ba49a8c787ec32e8519a11085456d9
Signed-off-by: quic_anane <quic_anane@quicinc.com>
2024-07-31 03:00:55 -07:00
Faiz Kuchay
a1e8d2ab44 asoc: update init func for rxtx-rx1 virt dailink
The init func of rxtx-rx1 virt dailink should
be same with rxtx-rx1 dailink.

Change-Id: I62008bfb742d6c6b818b1b4dbce6d521229d0369
Signed-off-by: Faiz Kuchay <quic_fkuchay@quicinc.com>
2024-07-31 02:10:28 -07:00
Mohammed Ahmed
234bc26709 cnss2: Fix mbox_msg size calculated
Current code passes in mbox_msg max buffer
size to mailbox api rather than actual string
length. Resulting in KASAN detecting an out of
bound issue. Fix this by calculating the string
length, and passing that in.

CRs-Fixed: 3876948
Change-Id: I7d9be5466ca5bec81e181f47e278205d6d9a64ce
2024-07-31 00:17:30 -07:00
Ravindra Konda
17c45a2d4e Release 5.2.1.92Q
Release 5.2.1.92Q

Change-Id: Iecfe784a6e73cd0df365a3fed27d7883cf5f9141
CRs-Fixed: 774533
2024-07-30 17:36:48 -07:00
Asutosh Mohapatra
1e226d0968 qcacld-3.0: Add NLMSG_HDRLEN for each nest
Currently while calculating skb length for usable
channel list host doesn't consider space needed for
each nla_nest_start. Hence sometime seeing failure
in filling skb because less memory gets allocated.

To address this issue, add NLMSG_HDRLEN size for each
nest.

Change-Id: If630a48bb30e491651c775f5ffdb957626fdbfd9
CRs-Fixed: 3877033
2024-07-30 17:36:47 -07:00
Ravindra Konda
0c2a8ca0ca Release 5.2.1.92P
Release 5.2.1.92P

Change-Id: Ib84244b787a2802dabcfe2cbf758276c88ca4618
CRs-Fixed: 774533
2024-07-30 10:12:12 -07:00
Karthik Kantamneni
00c7b16cd1 qcacld-3.0: Do not aggregate checksum failure packets in FISA
When MSDU fails for checksum validation, do not aggregate those
packets and make sure current flow is flushed. Since checksum
failure packet data is not trust worthy it is not advisable to
build aggregated skb on top of checksum failure packets.

Change-Id: I09d8c4aeb656e6b0b5d268a60d72147534f2a2ab
CRs-Fixed: 3805053
2024-07-30 10:12:11 -07:00
Ravindra Konda
c660976ec1 Release 5.2.1.92O
Release 5.2.1.92O

Change-Id: I6a6c2272a5fcff3ed6aa114d28c62c5b10830191
CRs-Fixed: 774533
2024-07-30 08:55:33 -07:00
Aasir Rasheed
95fd9e15d6 qcacld-3.0: Enhance STA ds check with MLD address
1. Check if STA is present with MLD address,
this can happen if STA is non ML, so MLD address will be used as
address for connected STA.

2. Check if STA present with same MLD address as current SA,
this can happen if SAP is ML, so the MLD address will be
used as SA address for connected STA.

Change-Id: Id3f64a8937c257ea503a0e847f16e2b251b4ef81
CRs-Fixed: 3871110
2024-07-30 08:55:32 -07:00
Lin Bai
92b14cc478 cnss2: Return proper value when sending AOP msg
Positive return value from mbox_send_message() should be
treated as success, which indicate the index of
free mbox buffer obtained.

Change-Id: I59b47a3a711468ef233b43c1191217f1f6911c1f
CRs-Fixed: 3878630
2024-07-30 07:45:26 -07:00
spuligil
ef5af6add5 fw-api: CL 27232968 - update fw common interface files
Change-Id: I400a57754dbb5d88a17a26b5a7a780ecbbcf5a52
CRs-Fixed: 3830439
2024-07-30 05:24:20 -07:00
spuligil
e9157e2d09 fw-api: CL 27213127 - update fw common interface files
Change-Id: Ibcebfab00140fb343642d5f8c5d75af3782ee232
CRs-Fixed: 3830439
2024-07-30 05:24:16 -07:00
spuligil
be6329d2c6 fw-api: CL 27205261 - update fw common interface files
Change-Id: Ibf2704bf0766ac8b9875ea4373b21936cc2769d2
CRs-Fixed: 3830439
2024-07-30 05:24:12 -07:00
spuligil
722c5c2814 fw-api: CL 27193005 - update fw common interface files
Change-Id: I1bc83e1341b9ff1b2603b0c9bf1dd50068ec1d8e
CRs-Fixed: 3830439
2024-07-30 05:24:06 -07:00
spuligil
f244de36c7 fw-api: CL 27179058 - update fw common interface files
Change-Id: Ib9a87bf61aa03c24652f8a41afe26dbf019ecc52
CRs-Fixed: 3830439
2024-07-30 05:24:02 -07:00
Akash Gajjar
8ce353ea46 disp: sde: override fal10 veto for milos target
This patch overrides the fal10 veto for the milos target.

Change-Id: I82310b63ff89aa44c03b97e4e7b6e87ac5c4569a
Signed-off-by: Akash Gajjar <quic_agajjar@quicinc.com>
2024-07-30 15:49:18 +05:30
Zhenbin Tan
dd441e0e97 touch: raydium: Disable IRQ wake on offload entry
Disable IRQ wake, it should not wakeup system
during touch-offload.

Change-Id: I0d493faec4569a8a006f7ca375bf460bf207b389
Signed-off-by: Zhenbin Tan <quic_zhentan@quicinc.com>
2024-07-30 14:12:53 +08:00
mingzh
d064f9840e dsp-kernel: use memcpy() instead of strcpy()
Current code uses strcpy() to copy strings, which has a problem with potential buffer overflows if the source string is longer than the destination buffer. We can improve this by using memcpy() with a specified length, because it allows us to control the number of bytes copied and thus prevent buffer overflows.

Change-Id: I9dd5da343bfd63e4e031a66fa26b103e3da573e0
Signed-off-by: mingzh <quic_mingzh@quicinc.com>
2024-07-29 02:41:52 -07:00
Jayaprakash Madisetty
da0c9886e7 disp: msm: sde: update fudgefactor during mdp clock calculation
Add changes to include qseed inefficiency factor during mdp
core clock calculation. This calculated value is sent to
mmrm driver to set with reserve only flag.

Change-Id: If19356ba36e7f9155fdfeeadead9260d1c56dc6b
Signed-off-by: Jayaprakash Madisetty <quic_jmadiset@quicinc.com>
2024-07-29 11:50:15 +05:30
Yash Upadhyay
edbbcb93c8 msm: camera: common: Stopping HW before stopping tasklet
Tasklet must be stopped after stopping HW. In current implementation
we are stopping same tasklet both in CSID and IFE/TFE stop call. This
change adds to stop both csid and ife/tfe HW first and then stopping
tasklet.

CRs-Fixed: 3855774
Change-Id: I93de831c45d2f61142db300140e36c17e0dd9b31
Signed-off-by: Yash Upadhyay <quic_yupadhya@quicinc.com>
2024-07-28 22:46:59 -07:00
QCTECMDR Service
2abf17e048 Merge "disp: msm: update seamless check for cwb + any modeset" 2024-07-27 11:45:03 -07:00
Ravindra Konda
096a377b13 Release 5.2.1.92N
Release 5.2.1.92N

Change-Id: I0b62ead38a14395ebf85df20b39fda6fed9b9115
CRs-Fixed: 774533
2024-07-26 04:31:31 -07:00
Ananya Gupta
ec6854defd qcacld-3.0: Set cdp_soc null in dp_ctx during detach
Currently, stale cdp_soc member in dp_ctx is being accessed
when interface is being added after wlan is detached during
idle shutdown.
To fix this, set cdp_soc NULL in dp_ctx when wlan is detaching.

Change-Id: I922f92cb7ba22bf84f39a44b6d78cd4b36bea058
CRs-Fixed: 3872183
2024-07-26 04:31:30 -07:00
cheese Service
789bc32bbd Merge "msm: camera: core: Add buffer length check to prevent overflow" into camera-kernel.lnx.7.0 2024-07-26 02:38:07 -07:00
cheese Service
47d88e467c Merge "msm: camera: ope: check cpu buffer offset and cmd buf idx" into camera-kernel.lnx.7.0 2024-07-26 02:37:47 -07:00
cheese Service
29bb30ec66 Merge "msm: camera: isp: Fix incorrect offset validation in __cam_isp_ctx_dump_event_record" into camera-kernel.lnx.7.0 2024-07-26 02:37:26 -07:00
cheese Service
4aef95eb42 Merge "msm: camera: icp: io buf config num validation" into camera-kernel.lnx.7.0 2024-07-26 02:37:06 -07:00
cheese Service
9242677094 Merge "msm: camera: icp: Add checking for invalid index" into camera-kernel.lnx.7.0 2024-07-26 02:36:47 -07:00
cheese Service
7e37e05f59 Merge "msm: camera: isp: Fix incorrect offset validation in __cam_isp_ctx_dump_in_top_state" into camera-kernel.lnx.7.0 2024-07-26 02:36:28 -07:00
cheese Service
179c50c49e Merge "msm: camera: jpeg: Avoid UAF in jpeg driver" into camera-kernel.lnx.7.0 2024-07-26 02:36:08 -07:00
cheese Service
e6a07b89d0 Merge "msm: camera: tfe: Add check for num_dev upper bound" into camera-kernel.lnx.7.0 2024-07-26 02:35:48 -07:00
cheese Service
c5925b09c8 Merge "msm: camera: isp: Fix incorrect bound check for ife out resource id" into camera-kernel.lnx.7.0 2024-07-26 02:35:29 -07:00
Anuj Khera
acef017b76 cnss2: Add support to check if IPA and WLAN share common dma pool
Add support to check if IPA and WLAN share a common dma pool
and based on that take descision to map the rx buffers or not
in IPA use case scenarios

Change-Id: I5d684db1cffc9f04b962cf7bdf0305b7d5e1df23
CRs-Fixed: 3878739
2024-07-25 16:38:52 -07:00
QCTECMDR Service
9721a792a0 Merge "video-driver: Made changes as per encoder configuration review" 2024-07-25 10:54:20 -07:00
Kaushal Sanadhya
cfe7735d45 kgsl: Enable AHB timeout detection for gen_8_3_0
Define noc_timeout_us for gen_8_3_0 GPU to enable AHB timeout detection.

Change-Id: I421c10b0cf5bb4b2b7b9e37f87ed0cf602b59f9a
Signed-off-by: Kaushal Sanadhya <quic_ksanadhy@quicinc.com>
2024-07-25 04:17:57 -07:00
Nijun Gong
bbf4e9cd00 cnss2: wait and cancel dms work before dms deinit
During cnss unload or error quit, cnss_dms_deinit() is called to
perform dms client deinit. When dms sever quit, modem also send event
to cnss to schedule dms client restart with dms_del_server(). The two
processes are asynchronous so qmi_handle_release() may be entered
twice and cause qmi->sock to be used after free.

To avoid this race condition, call cnss_cancel_dms_work() before
cnss_dms_deinit() to guarantee the two processes not run concurrently.

Change-Id: I291c1d0bdead190549dcbbb2c4b7aa65a68196d7
CRs-Fixed: 3875961
2024-07-25 04:09:49 -07:00
sarath varma ganapathiraju
0dbde6cfa3 asoc: lpass-cdc: disable clk when they are enabled
Check if clk is enabled before disabling it to avoid
warning log during adsp SSR.

Change-Id: I916af6f9efacfe3d08e0b05dcc0c6023944369d2
Signed-off-by: sarath varma ganapathiraju <quic_ganavarm@quicinc.com>
2024-07-25 03:23:52 -07:00
Gururaj Pandurangi
97f3bdc18e qcacmn: Modify length check for vendor IE in prb rsp parser
Reduce the OUI length to 2 bytes for vendor IE to include
just the OUI and the type and omit the body as it is not
mandatory.

CRs-Fixed: 3842063
Change-Id: I42f1b2d6c57da82f859b9917a1e5229273f75263
2024-07-25 02:27:56 -07:00
QCTECMDR Service
cfd8b01ad3 Merge "dsp-kernel: Handle memory leak in fastrpc file free" 2024-07-25 02:06:23 -07:00
Akash Gajjar
841bca1984 disp: msm: sde: enable uidle support for milos target
This change enables the uidle feature support for milos target.

Change-Id: I3f8633b623d69467010639b48e47a2455f64c55b
Signed-off-by: Akash Gajjar <quic_agajjar@quicinc.com>
2024-07-24 22:53:46 -07:00
QCTECMDR Service
f60913a38d Merge "qcedev: fix UAF in qcedev_smmu" 2024-07-24 20:42:23 -07:00
QCTECMDR Service
7b4afec1e5 Merge "securemsm-kernel: smcinvoke: Decrement the server object ref count in mutex context" 2024-07-24 18:26:23 -07:00
Surya Prakash Sivaraj
fa75e6cc25 qcacmn: Add scan utility to get BV ML IE
Add a scan utility to get the basic variant ML IE
from the scan entry.

Change-Id: I741665ea7ca0d99014e37bddda50ae4eaa334b33
CRs-Fixed: 3857501
2024-07-24 06:59:34 -07:00
Ravindra Konda
d2812c25e5 Release 5.2.1.92M
Release 5.2.1.92M

Change-Id: Idf66dbeb8dd85d19d3d997c05bcad72c52fc16f1
CRs-Fixed: 774533
2024-07-24 06:58:48 -07:00
Surya Prakash Sivaraj
20838d9db3 qcacld-3.0: Do not send ML-probe to non-ML AP
This change reverts the hard-coded downgrade of non-ML
APs to 11ax from I9471c5b211f9480877c9c2475eaef93071b82734.

Instead, do not send ML-probe or ML IE in assoc request, if
the AP does not support MLO. This keeps the connection as
11be.

Also, cleanup the unused variables in bss description and
keep it 4-bytes aligned.

Change-Id: I1aa681ecce04615f88d563c07d9c7e2ef10c1b92
CRs-Fixed: 3857042
2024-07-24 06:58:47 -07:00
QCTECMDR Service
beff0c7ec3 Merge "asoc: update curr_micbias2 val with mb->micb2_mv" 2024-07-24 00:59:52 -07:00
QCTECMDR Service
b030905bec Merge "asoc: codec: wcd9378: increase delay for gpio reset" 2024-07-24 00:59:52 -07:00
QCTECMDR Service
b1ab81cc12 Merge "asoc: add logs for KPI test" 2024-07-24 00:59:52 -07:00
Ravindra Konda
d752daae23 Release 5.2.1.92L
Release 5.2.1.92L

Change-Id: I5888829e9278db916cd0bfec54621533ca8d209d
CRs-Fixed: 774533
2024-07-24 00:58:14 -07:00
Vijay Raj
6b467392ce qcacld-3.0: Add band check to differentiate between AP types during roaming
In the api cm_roam_mgmt_frame_event(), the received frame info
is differentiated between legacy and MLO AP on the basis whether
the current vdev is a ML vdev or not. This results in undesired
logging of result during MLo to legacy AP roam failure case as
the vdev is still the ML vdev as it is maintaining the current
connection with the ML AP while the frame info data received
from FW is for legacy AP.

Add a band check when processing the roam frame info data
received from the FW as band info in roam frame data follows
the following format:
1. 0: if the FW tried to roam to a legacy AP
2. when tried to a MLO AP, it will represent the link it forms
   association. The format as follows:
   * BIT 0: When it is associated on 2 GHz link
   * BIT 1: When it is associated on 5 GHz link
   * BIT 2: when it is associated on 6 GHz link

Change-Id: I7854ef368776ba11d4cdc8aca28ac86c8c2f4efa
CRs-Fixed: 3866223
2024-07-24 00:58:13 -07:00