23 Commits

Author SHA1 Message Date
Abinath S
7224a96968 asoc: codec: avoid out of bound write to map array
added check for port num and channel iteration are lessthan 8
to avoid out of bound write to 8x8 map array.

Change-Id: I4c6fe13a5eb09be623a1c40ce16c5a5e4246e021
Signed-off-by: Abinath S <quic_abins@quicinc.com>
2025-03-05 05:55:52 +02:00
Swami Reddy Reddy
e2ab79c4f8 msm: camera: sensor: TOCTOU error handling
- Change to dereference s_ctrl only after proper
  NULL Dereference Check.

CRs-Fixed: 3875406
Change-Id: I8e2c717b22efff2a7d6503d38c048e30eff230da
Signed-off-by: Swami Reddy Reddy <quic_swamired@quicinc.com>
2025-02-06 23:56:45 +02:00
Ramireddy KrishnaKanth Reddy
afabfd37d0 dsp: q6voice: Adds checks for an integer overflow
there is no check for cvs_voc_pkt[2],when recieves
0xffffffff from ADSP which results in an integer overflow
Fix is to address this.

Change-Id: Ie935dd8823981ec260d77f5117f4ef0b0fc08f60
Signed-off-by: Ramireddy KrishnaKanth Reddy <quic_ramikris@quicinc.com>
2024-11-07 12:34:02 +02:00
Michael Bestas
c450bda925 Merge tag 'android-14.0.0_r0.108' into staging/lineage-21_merge-android-14.0.0_r0.108
Android 14.0.0 release 0.108

# -----BEGIN PGP SIGNATURE-----
#
# iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZoRo0AAKCRDorT+BmrEO
# eDhKAJ9x3VBC6ndXvu6xHW8xlFV5BLZh5QCffUMjA6J90zqu7Gs8aXJdaieexXw=
# =Ck4b
# -----END PGP SIGNATURE-----
# gpg: Signature made Tue Jul  2 23:53:36 2024 EEST
# gpg:                using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78
# gpg: Good signature from "The Android Open Source Project <initial-contribution@android.com>" [marginal]
# gpg: initial-contribution@android.com: Verified 2576 signatures in the past
#      2 years.  Encrypted 4 messages in the past 2 years.
# gpg: WARNING: This key is not certified with sufficiently trusted signatures!
# gpg:          It is not certain that the signature belongs to the owner.
# Primary key fingerprint: 4340 D135 70EF 945E 8381  0964 E8AD 3F81 9AB1 0E78

# By Nick Chung
# Via Pindar Yang (1) and Sam Chang (1)
* tag 'android-14.0.0_r0.108':
  Fix multiple dmabuf kernel address UAF vulnerabilities

Change-Id: I893ce56bdd7418a32a8c114ef159dc37e4478d56
2024-07-03 08:48:44 +03:00
Michael Bestas
53a4ea8a26 Merge tag 'android-14.0.0_r0.78' into staging/lineage-21_merge-android-14.0.0_r0.78
Android 14.0.0 release 0.78

# -----BEGIN PGP SIGNATURE-----
#
# iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZjqGvQAKCRDorT+BmrEO
# eDgUAKCJ8+kmt3IncVhZtPS/0iY4ibuFEgCeKjWB8KIRqaBjbGfeMeRvRZsN2x4=
# =mis9
# -----END PGP SIGNATURE-----
# gpg: Signature made Tue May  7 22:53:33 2024 EEST
# gpg:                using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78
# gpg: Good signature from "The Android Open Source Project <initial-contribution@android.com>" [marginal]
# gpg: initial-contribution@android.com: Verified 2437 signatures in the past
#      2 years.  Encrypted 4 messages in the past 2 years.
# gpg: WARNING: This key is not certified with sufficiently trusted signatures!
# gpg:          It is not certain that the signature belongs to the owner.
# Primary key fingerprint: 4340 D135 70EF 945E 8381  0964 E8AD 3F81 9AB1 0E78

# By vincenttew
# Via Vincent Tew
* tag 'android-14.0.0_r0.78':
  dsp: add protection to prevent OOB for tas

Change-Id: Id81b53c50492aab8b46c8f04447b562e2f1f1d39
2024-05-08 02:15:25 +03:00
Michael Bestas
cf31b03062 Merge tag 'android-14.0.0_r0.58' into staging/lineage-21_merge-android-14.0.0_r0.58
Android 14.0.0 release 0.58

# -----BEGIN PGP SIGNATURE-----
#
# iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZeZgDwAKCRDorT+BmrEO
# eOuNAJsEondpMvD5Sx5md/gc7YzVSJvV+wCdEcTRJXMFfDNG8za/f8iPHuO9lGw=
# =q75V
# -----END PGP SIGNATURE-----
# gpg: Signature made Tue Mar  5 01:58:07 2024 EET
# gpg:                using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78
# gpg: Good signature from "The Android Open Source Project <initial-contribution@android.com>" [marginal]
# gpg: initial-contribution@android.com: Verified 2419 signatures in the past
#      2 years.  Encrypted 4 messages in the past 2 years.
# gpg: WARNING: This key is not certified with sufficiently trusted signatures!
# gpg:          It is not certain that the signature belongs to the owner.
# Primary key fingerprint: 4340 D135 70EF 945E 8381  0964 E8AD 3F81 9AB1 0E78

# By Bubble Fang
# Via Bubble Fang
* tag 'android-14.0.0_r0.58':
  ASoC: msm-lsm-client: Integer overflow check
  dsp: q6asm: Add check for ADSP payload size
  ASoC: msm-audio-effects-q6-v2: Add BPF order check

Change-Id: I2260c183f2e5ece6725ebe118aeace0c4c4eddf7
2024-04-03 21:12:24 +03:00
Michael Bestas
fbd7678e71 Merge tag 'android-14.0.0_r0.32' into staging/lineage-21_merge-android-14.0.0_r0.32
Android 14.0.0 release 0.32

# -----BEGIN PGP SIGNATURE-----
#
# iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZZhTCAAKCRDorT+BmrEO
# eHZeAJ9o1TYIyE6SZLztmP3HPgrt6gnhXgCdGfczvYxTeGocXfdQ+Xuhb3rwfnw=
# =vYlU
# -----END PGP SIGNATURE-----
# gpg: Signature made Fri Jan  5 21:05:44 2024 EET
# gpg:                using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78
# gpg: Good signature from "The Android Open Source Project <initial-contribution@android.com>" [marginal]
# gpg: initial-contribution@android.com: Verified 2236 signatures in the past
#      2 years.  Encrypted 4 messages in the past 24 months.
# gpg: WARNING: This key is not certified with sufficiently trusted signatures!
# gpg:          It is not certain that the signature belongs to the owner.
# Primary key fingerprint: 4340 D135 70EF 945E 8381  0964 E8AD 3F81 9AB1 0E78

# By Bubble Fang
# Via Bubble Fang
* tag 'android-14.0.0_r0.32':
  ASoC: dsp: q6core: Avoid use after free
  ASoC: msm-pcm-host-voice: Check validity of session idx
  dsp: q6lsm: Address use after free for mmap handle
  dsp: q6afe: Add check for fbsp state

Change-Id: Iebf77705caaedc818b83a2a143054ea5cd030eb3
2024-01-06 15:17:19 +02:00
Michael Bestas
084d868c14 Merge tag 'android-14.0.0_r0.20' into staging/lineage-21_merge-android-14.0.0_r0.20
Android 14.0.0 Release 0.20 (UQ1A.231205.015,barbet)

# -----BEGIN PGP SIGNATURE-----
#
# iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZXDyyQAKCRDorT+BmrEO
# eJX9AJ46HesCK7rJeV/+SJC3O8vy6VawEwCfQNGWswAC8oaSShFmSeSCb0p3aXY=
# =Hmsz
# -----END PGP SIGNATURE-----
# gpg: Signature made Thu Dec  7 00:16:41 2023 EET
# gpg:                using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78
# gpg: Good signature from "The Android Open Source Project <initial-contribution@android.com>" [marginal]
# gpg: initial-contribution@android.com: Verified 2201 signatures in the past
#      2 years.  Encrypted 4 messages in the past 23 months.
# gpg: WARNING: This key is not certified with sufficiently trusted signatures!
# gpg:          It is not certain that the signature belongs to the owner.
# Primary key fingerprint: 4340 D135 70EF 945E 8381  0964 E8AD 3F81 9AB1 0E78

# By Bubble Fang
# Via Bubble Fang (1) and others
* tag 'android-14.0.0_r0.20':
  dsp: add lock in ion free to avoid use after free
  ASoC: msm-pcm-q6-v2: Add dsp buf check
  dsp: afe: Add check for num_channels
  dsp: q6voice: Add buf size check for cvs cal data
  dsp: asm: validate payload size before access
  dsp: q6core: Avoid OOB access in q6core
  ASoC: msm-pcm-host-voice: Handle OOB access in hpcm_start
  dsp: afe: Add check for sidetone iir config copy size

Change-Id: I647253f2fffcaa69251f2f0a2a2ff9db7fe821da
2023-12-10 18:47:32 +02:00
Michael Bestas
dbd961ca7c Merge tag 'android-14.0.0_r0.12' into staging/lineage-21_merge-android-14.0.0_r0.12
Android 14.0.0 release 0.12

# -----BEGIN PGP SIGNATURE-----
#
# iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZUnYkQAKCRDorT+BmrEO
# eH8hAJ9ERt+p6IVkrzfZJ05vQwgaIPhBrwCZAdDerIFkgMfG/asEgx2TGwAGydA=
# =Fp9+
# -----END PGP SIGNATURE-----
# gpg: Signature made Tue Nov  7 08:26:25 2023 EET
# gpg:                using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78
# gpg: Good signature from "The Android Open Source Project <initial-contribution@android.com>" [marginal]
# gpg: initial-contribution@android.com: Verified 2056 signatures in the past
#      2 years.  Encrypted 4 messages in the past 22 months.
# gpg: WARNING: This key is not certified with sufficiently trusted signatures!
# gpg:          It is not certain that the signature belongs to the owner.
# Primary key fingerprint: 4340 D135 70EF 945E 8381  0964 E8AD 3F81 9AB1 0E78

# By Nick Chung (1) and Shivakumar Malke (1)
# Via Android Partner Code Review (1) and Nick Chung (1)
* tag 'android-14.0.0_r0.12':
  msm: camera: core: validation of session/device/link handle
  msm: camera: smmu: Use get_file to increase ref count

Change-Id: Idebd70f6ba3512c1495a1e222d9a32eea126f1ed
2023-11-08 01:52:08 +02:00
Michael Bestas
041bc5e041 Merge tag 'android-14.0.0_r0.12' into staging/lineage-21_merge-android-14.0.0_r0.12
Android 14.0.0 release 0.12

# -----BEGIN PGP SIGNATURE-----
#
# iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZUnYkQAKCRDorT+BmrEO
# eOFTAJ9LQjptmhoLSNDFu6mDXLuaMlVVIwCfRCu7yI8w1ihMN8ABMDSqw+X/3QI=
# =f8uh
# -----END PGP SIGNATURE-----
# gpg: Signature made Tue Nov  7 08:26:25 2023 EET
# gpg:                using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78
# gpg: Good signature from "The Android Open Source Project <initial-contribution@android.com>" [marginal]
# gpg: initial-contribution@android.com: Verified 2055 signatures in the past
#      2 years.  Encrypted 4 messages in the past 22 months.
# gpg: WARNING: This key is not certified with sufficiently trusted signatures!
# gpg:          It is not certain that the signature belongs to the owner.
# Primary key fingerprint: 4340 D135 70EF 945E 8381  0964 E8AD 3F81 9AB1 0E78

# By Bubble Fang
# Via Bubble Fang
* tag 'android-14.0.0_r0.12':
  dsp: q6core: validate payload size before access for AVCS
  ASoC: msm-pcm-host-voice: Address buffer overflow in hpcm copy
  ASoC: msm-pcm-voip: Avoid interger underflow

Change-Id: I980e7ea2a2bf3c3c1a0184aa3070071ef6969ee3
2023-11-08 01:50:32 +02:00
Soumya Managoli
cbeb24e259 dsp: q6adm: Resolve mem corruption in adm cb
Conversion of negative "num_modules" var value
will result in max possible unsigned int value
and hence can cause mem corruption when accessed.

Resolve this by assigning the same data type
to "num_modules" var as used in the calling fn.

Change-Id: I4c9d7215b9c7345637e1eb3a1992a41fef71c5cb
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
2023-10-10 18:20:07 +03:00
Alessandro Astone
23b7e457df Android: Remove Android.bp with header generation targets
Change-Id: I3e1e3286daa4a3c61d4cb9f14a338127c19f2502
2023-10-10 18:19:54 +03:00
Michael Bestas
2194e0e4fc treewide: Add .gitupstream
Change-Id: I41c0280e8d023a5242f2659eb3da0af02ee35789
2023-10-10 18:19:53 +03:00
Michael Bestas
993da5761e Add 'techpack/video/' from tag 'android-14.0.0_r0.1'
git-subtree-dir: techpack/video
git-subtree-mainline: dc0aa352cb
git-subtree-split: 44b578f702
Change-Id: Ic59f5391fd3b7acc232b7c4f2a5db54c495c2389
2023-10-10 18:15:44 +03:00
Michael Bestas
dc0aa352cb Add 'techpack/display/' from tag 'android-14.0.0_r0.1'
git-subtree-dir: techpack/display
git-subtree-mainline: 6a05e994b0
git-subtree-split: ca74909cd9
Change-Id: I4cc37c4db5a7f5acb85a2ef374e64b15e09627aa
2023-10-10 18:15:14 +03:00
Michael Bestas
6a05e994b0 Add 'techpack/dataipa/' from tag 'android-14.0.0_r0.1'
git-subtree-dir: techpack/dataipa
git-subtree-mainline: 27b2bf7858
git-subtree-split: 7063b704d5
Change-Id: I51597a430eaa2d3d26e43d1749d7e042b9be68d0
2023-10-10 18:14:45 +03:00
Michael Bestas
27b2bf7858 Add 'techpack/camera/' from tag 'android-14.0.0_r0.1'
git-subtree-dir: techpack/camera
git-subtree-mainline: 5755ee5bfb
git-subtree-split: 2577e90e94
Change-Id: Ice99c5978fdb370431f7f20f54d62e77b555964c
2023-10-10 18:14:09 +03:00
Michael Bestas
5755ee5bfb Add 'techpack/audio/' from tag 'android-14.0.0_r0.1'
git-subtree-dir: techpack/audio
git-subtree-mainline: 0bb5435b34
git-subtree-split: 52b069fc1d
Change-Id: I90e90db3f949d98fe16b497e9da328699bdab884
2023-10-10 18:13:38 +03:00
Adam Bickett
27009ef53b Revert "techpack: replace type with xtype while searching for sub-dirs"
Support build environments where find -xtype is not supported.

This reverts commit 5081f16b3d.

Change-Id: Ibb4a9f2429bad5e0bae690f60605887f01623a16
Signed-off-by: Adam Bickett <abickett@codeaurora.org>
2019-11-19 07:06:17 -08:00
Prakruthi Deepak Heragu
776ec744ee techpack: Kbuild: Fix to compile the techpack completely
Due to path being inaccurate, the techpack folder was not being
compiled completely. Using techpack fixes this issue.

Change-Id: Id06927e5b4bfad0d5c8208b199d9d217abbf6306
Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
Signed-off-by: Adam Bickett <abickett@codeaurora.org>
2019-11-18 18:26:04 -08:00
Satya Durga Srinivasu Prabhala
5081f16b3d techpack: replace type with xtype while searching for sub-dirs
To make sure sym links (if any) gets detected during search,
switch to xtype.

Change-Id: Idc0584b134f2ca4b395e53696e079337ff377f82
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2019-07-09 17:43:13 -07:00
Bryan Huntsman
8082260ee5 techpack: set configuration default to yes
Tech packages default configuration should be on.

Change-Id: I3cdf9276103f08db7130535aab1206a95a03b5a7
Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org>
2019-06-04 10:59:26 -07:00
Bryan Huntsman
917caa9433 techpack: add tech package support
Enable tech packages to have kernel drivers that are physically
located in the kernel source tree but not present in the kernel
repository. This is done via a manifest line item to fetch a
techpackage-module into $KERNEL/techpack/$techpackage-module.
$KERNEL/techpack/Kbuild will automatically detect any
subdirectories and link them to the kernel's kbuild system.

The resulting layout of techpack within kernel source would be as
follows :-

    kernel/
    ├── techpack/
        ├── Kbuild
        └── stub
        │    ├── Makefile
        │    ├── include
        │    │   └── uapi
        │    │       └── Kbuild
             └── stub.c
        ├── techpackage-module
            ├── Makefile
            ├── include
            │   └── uapi
            │       ├── Kbuild

$KERNEL/techpack only contains Kbuild (no Makefile) at the
toplevel and this Kbuild takes care of both compiling the
subdirectories and of exporting the needed header files therein.
The reason for having only Kbuild at the top is that Kbuild
and Makefile cannot exist together in same directory and Makefile
doesn't cater to uapi header installation.

stub is an empty techpackage-module which serves both as a sample
layout and satisfies the requirement of kernel build system, by
providing necessary buit-in.o, when no other techpackage-module has
been pulled under techpack/.

$KERNEL/techpack/techpackage-module should have a Makefile at the
top and Kbuild under $KERNEL/techpack/techpackage-module/include/uapi
directory. The uapi headers pertaining to a techpackage-module
should reside under $KERNEL/techpack/techpackage-module/include/uapi
and associated Kbuild should have necessary rules to export it.

Change-Id: I0d0ced38566907d2074831edde0934833f666eff
Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org>
Signed-off-by: Imran Khan <kimran@codeaurora.org>
[satyap@codeaurora.org: fix trivial merge conflict and add SPDX-License-Identifier]
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2019-03-21 10:18:12 -07:00