Commit Graph

4290 Commits

Author SHA1 Message Date
Linux Build Service Account
cea53c2dca Merge c011875a23 on remote branch
Change-Id: I9697716797135803ef82c69baddbc3ae77f46975
2023-09-10 12:58:14 -07:00
Linux Build Service Account
a991719120 Merge 7baccc0c3b on remote branch
Change-Id: I6be0b8e8dbac5209113d0aeda3dcb4016beaadfe
2023-08-28 00:45:31 -07:00
qctecmdr
c011875a23 Merge "ASoC: msm-audio-effects-q6-v2: Add BPF order check" 2023-08-23 04:09:20 -07:00
qctecmdr
7baccc0c3b Merge "Asoc: add functionality to get source Track data from FNN module" 2023-08-17 00:26:46 -07:00
Sandhya Mutha Naga Venkata
a225b1346d ASoC: msm-audio-effects-q6-v2: Add BPF order check
Added check for bandpassfilter order in order to avoid
coeff len going out of bounds thereby leading to
memory overflow issues.

Change-Id: I401f5f38a3d54d9d6af66e770d03629ed5e1a2bd
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
2023-08-16 22:11:43 -07:00
qctecmdr
bc70019600 Merge "dsp: add support to get Source Track data from FNN module" 2023-08-15 23:55:03 -07:00
qctecmdr
2ed57ce4a0 Merge "asoc: Add jitter cleaner external clock switch" 2023-08-15 23:55:03 -07:00
Hari Krishna Chowdary Yennana
20af3e7715 Asoc: add functionality to get source Track data from FNN module
- Add support to get Source track data from Adsp's FNN module

Change-Id: Icea13a0ab036d753a4343be04f4ff58bbe3b747c
2023-08-16 12:14:47 +05:30
Hari Krishna Chowdary Yennana
a1937b4242 dsp: add support to get Source Track data from FNN module
- Add support for both audio record and voip call usecases to get STT
  params from dsp.

Change-Id: Ifde484be0109ca25fb7cb9572abc506c1a70e4a4
2023-08-15 22:19:43 -07:00
Vijay Kumar Maddula
782c8273ed asoc: lahaina: add 16 channel support on tdm interface
Added support for 16 channel playback and capture support
on tdm interface

Change-Id: Idbfe55f5ee29c3f01a379e24e85288321dbeee3b
2023-08-13 23:29:40 -07:00
Jing Wang
69a16a0e0f asoc: Add jitter cleaner external clock switch
Add jitter cleaner external clock switch.

Change-Id: Iacdaef52ca0d00bb4423cb8a719ef5e955711619
Signed-off-by: Jing Wang <quic_c_jingwa@quicinc.com>
2023-08-11 04:00:11 -07:00
qctecmdr
7198399f4e Merge "ASoC: msm-pcm-host-voice: Check validity of session idx" 2023-08-11 00:27:08 -07:00
Soumya Managoli
9c91c3d179 dsp: q6asm: Add check for ADSP payload size
There is no check for the ADSP returned payload size
for ASM_SESSION_CMD_GET_MTMX_STRTR_PARAMS_V2 cmd response.
This can lead to buffer overread. Fix is to address this.

Change-Id: I0bd6ee7f19823addc5dde1dfbb32b8a9b102a725
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
2023-08-09 05:16:23 -07:00
qctecmdr
1c04162edc Merge "dsp: Address information leak in dsp drivers" 2023-08-07 22:28:10 -07:00
qctecmdr
7e844dff13 Merge "dsp: q6afe: Add check for fbsp state" 2023-08-07 04:32:12 -07:00
Soumya Managoli
eb692cb343 ASoC: msm-pcm-host-voice: Check validity of session idx
Added check for voice session index.

Change-Id: Ifff36add5d62f2fdc3395de1447075d297f2c2df
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
2023-08-04 20:03:16 -07:00
Soumya Managoli
56fd62a423 dsp: Address information leak in dsp drivers
Due to uninitialised variables used in q6voice
and q6usm drivers, there is a possibility of stack
information leak whenever lesser size data is copied.
Fix is to address this.

Change-Id: I6888b468ce50114be3139111ccf4696827540cfd
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
2023-08-04 12:05:44 +05:30
Soumya Managoli
79f709cdec dsp: q6lsm: Address use after free for mmap handle
The global declared mmap_handle can be left dangling
for case when the handle is freed by the calling function.
Fix is to address this. Also add a check to make sure
the mmap_handle is accessed legally.

Change-Id: I367f8a41339aa0025b545b125ee820220efedeee
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
2023-08-03 03:11:49 -07:00
Soumya Managoli
48f5d8b079 dsp: q6afe: Add check for fbsp state
Added check for fbsp state in get_calib_data functions
to avoid OOB read issues.

Change-Id: I6e818892a6b76497aa41241db3849802f394160a
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
2023-08-03 14:59:41 +05:30
Soumya Managoli
01db7bcebc dsp: q6lsm: Add check for payload buffer
Check get_param_payload buffer ptr before accessing.

Change-Id: I5470983188dffeec14965a5cdec30747b98735e7
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
2023-08-03 00:00:06 -07:00
qctecmdr
5423d9ef23 Merge "ASoC: dsp: q6core: Avoid use after free" 2023-08-01 05:50:22 -07:00
qctecmdr
3523bb525a Merge "ASoC: Resolve use after free in listen sound client" 2023-08-01 05:50:22 -07:00
Soumya Managoli
a69e001b34 ASoC: Resolve use after free in listen sound client
Updated get_param_payload buffer ptr to NULL
after free to avoid use after free issue.

Change-Id: I86da8c12a0bdccce690f67b037198b67640e339b
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
2023-07-31 16:10:36 +05:30
Soumya Managoli
e3971c3e31 ASoC: dsp: q6core: Avoid use after free
Add check for AVCS_CMD_RSP_LOAD_MODULE response payload
to avoid its access after free.

Change-Id: I3023e6676a27fe33d2cc0f44a49813f0ed0ebe3b
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
2023-07-25 23:08:50 -07:00
Soumya Managoli
bbf1413556 ASoC: msm-lsm-client: Integer overflow check
Add integer overflow check for lsm_params_get_info size.

Change-Id: I1130b5294f5de65eb8c595030c4db221337b1c8a
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
2023-07-19 22:43:33 -07:00
Linux Build Service Account
43c4367cfa Merge f47869b550 on remote branch
Change-Id: I74a048c76fb5f41d4c05ded978e3862210293001
2023-07-19 01:43:00 -07:00
Shalini Manjunatha
ba56a64009 asoc:msm-lsm-client: check for param size before copying
check for the proper param size before copying,
to avoid OOB memory access of buffer.

Change-Id: I8e9bd3b4be9a2797e76dce403578c038fc07dd58
Signed-off-by: Shalini Manjunatha <quic_c_shalma@quicinc.com>
2023-07-13 05:19:47 -07:00
Shalini Manjunatha
f47869b550 ASoC: msm-pcm-q6-v2: Add dsp buf check
Fix is to add check for this ADSP returned buf offset + size,
if it is within the available buf size range

Change-Id: I400cc4f5c07164f0a9b405ebea144ea0ae4b6cf2
Signed-off-by: Shalini Manjunatha <quic_c_shalma@quicinc.com>
2023-06-27 16:30:54 +05:30
Boyuan Yan
1a53e0ded7 ASoC: Add the judgment for TDM
Add support to remove unnecessary TDM route where TDM is not need.

Change-Id: I56aee33cbb9ecbc190fc24bfa14a071263661292
Signed-off-by: Boyuan Yan <quic_boyuyan@quicinc.com>
2023-06-21 00:19:25 -07:00
Soumya Managoli
c3b67277c6 ASoC: msm-pcm-voip: Avoid interger underflow
There is no check for voip pkt pkt_len,if it contains the
min required data. This can lead to integer underflow.
Add check for the same.

Change-Id: I40242429542b6c32a0e6c3bbe03975c244c2f61a
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
2023-06-15 00:27:09 -07:00
qctecmdr
25d4369a38 Merge "asoc: swrm: disable bus reset based on swrm verison" 2023-06-02 20:48:35 -07:00
qctecmdr
2078a881a3 Merge "dsp: afe: Add check for num_channels" 2023-06-02 00:34:00 -07:00
Vijay Kumar Maddula
40946c4d07 asoc: swrm: disable bus reset based on swrm verison
Bus reset is creating mismatch in interrupt generation sequence
and leading to audio playback mute.
Disabling bus reset for soundwire master version 1.5

Change-Id: I1d41a8d11d1f86c8a538f0b8d234bb6d001268ad
Signed-off-by: Vijay Kumar Maddula <quic_vmaddula@quicinc.com>
2023-06-01 23:09:38 -07:00
qctecmdr
5b442f55ec Merge "ASoC: msm-pcm-voip: Avoid interger underflow" 2023-06-01 12:27:26 -07:00
qctecmdr
f84fb83ead Merge "dsp: afe: check for param size before copying" 2023-06-01 12:27:26 -07:00
qctecmdr
1ec47d24b6 Merge "dsp: afe: Add check for sidetone iir config copy size" 2023-06-01 12:27:26 -07:00
qctecmdr
e9cdb60d7b Merge "ASoC: msm-pcm-host-voice: Address buffer overflow in hpcm playback copy" 2023-06-01 12:27:25 -07:00
qctecmdr
b1e8cf3187 Merge "dsp: q6core: validate payload size before access for AVCS" 2023-06-01 12:27:25 -07:00
qctecmdr
6ca72c1cd0 Merge "dsp: asm: validate payload size before access" 2023-06-01 12:27:25 -07:00
qctecmdr
efbb81f9ad Merge "soc: swr-mstr-ctrl: add new lock to sync runtime_resume and runtime_suspend" 2023-05-31 20:48:04 -07:00
Linux Build Service Account
0ee16d423a Merge "dsp: q6core: validate payload size before access for AVCS" into audio-drivers.lnx.5.0.r1-rel 2023-05-31 03:06:37 -07:00
Linux Build Service Account
52fcad76d1 Merge "dsp: afe: check for param size before copying" into audio-drivers.lnx.5.0.r1-rel 2023-05-31 03:06:36 -07:00
Shalini Manjunatha
1d75d0dcb6 dsp: q6core: validate payload size before access for AVCS
Payload size is not checked before payload access for AVCS.
Check size to avoid out-of-boundary memory access.

Change-Id: I6de3342617bd4f3fb8849ad2230dd57c07469372
Signed-off-by: Shalini Manjunatha <quic_c_shalma@quicinc.com>
2023-05-31 00:25:28 -07:00
Shalini Manjunatha
17335ad139 dsp: afe: check for param size before copying
check for the proper param size before copying,
to avoid buffer overflow.

Change-Id: I70c52e6ab76f528ea3714784ab9013b070839c40
Signed-off-by: Shalini Manjunatha <quic_c_shalma@quicinc.com>
2023-05-31 00:24:21 -07:00
Soumya Managoli
7db940a090 dsp: afe: Add check for sidetone iir config copy size
Avoid OOB access of sidetone iir config array when
iir_num_biquad_stages returned from cal block is > 10

Change-Id: I45b95e8bdd1a993a526590c94cf2f9a85c12af37
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
2023-05-30 11:44:18 +05:30
Soumya Managoli
e21e857f42 ASoC: msm-pcm-host-voice: Address buffer overflow in hpcm playback copy
Add buf len check for the playback data before copy
to avoid OOB issues.

Change-Id: I737d09e275463292365cd183b9a43d09ff9ccbf2
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
2023-05-29 15:41:20 +05:30
Soumya Managoli
1a2e110c23 ASoC: msm-pcm-voip: Avoid interger underflow
There is no check for voip pkt pkt_len,if it contains the
min required data. This can lead to integer underflow.
Add check for the same.

Change-Id: I40242429542b6c32a0e6c3bbe03975c244c2f61a
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
2023-05-29 15:06:54 +05:30
Linux Build Service Account
6bdda76dfe Merge 98fd7ebdbc on remote branch
Change-Id: I6013b7afd4785d174da8a50628ce527f02e43d5d
2023-05-28 12:36:51 -07:00
Shalini Manjunatha
b7599b3751 dsp: asm: validate payload size before access
Payload size is not checked before payload access. Check size
to avoid out-of-boundary memory access.

Change-Id: I1bd8281ad263b8c0102335504a740312755b8d15
Signed-off-by: Shalini Manjunatha <quic_c_shalma@quicinc.com>
2023-05-25 00:03:31 -07:00
Shalini Manjunatha
2046b3b25b dsp: afe: check for param size before copying
check for the proper param size before copying,
to avoid buffer overflow.

Change-Id: I70c52e6ab76f528ea3714784ab9013b070839c40
Signed-off-by: Shalini Manjunatha <quic_c_shalma@quicinc.com>
2023-05-24 23:33:07 -07:00