diff options
| author | Mohammed Mirza Mandayappurath Manzoor <quic_mmandaya@quicinc.com> | 2023-09-14 18:04:52 +0530 |
|---|---|---|
| committer | Harshitha Sai Neelati <quic_hsaineel@quicinc.com> | 2023-09-27 21:06:12 +0530 |
| commit | 8f26c4460d4e6f2476366f9ff771559d507dae06 (patch) | |
| tree | 4d3a9e577ab11eb1cebc283f08aafa1579712893 /scripts/tracing/draw_functrace.py | |
| parent | e1067566ad54a6a299c182b305449c060e3e8220 (diff) | |
msm: kgsl: Prevent wrap around during user address mapping
When setting svm region during the gpuobj import ioctl call for a usermem
address, there is a possibility of a very large input size causing the
region's 64-bit end address to wrap around. This can cause the region
to incorrectly be considered valid, ultimately allowing a use after free
scenario. To prevent this, detect the occurrence of a wrap and reject the
import.
Change-Id: I4a88f56c58b830d4342e47dc1d1f6290c78ab6b4
Signed-off-by: Mohammed Mirza Mandayappurath Manzoor <quic_mmandaya@quicinc.com>
Diffstat (limited to 'scripts/tracing/draw_functrace.py')
0 files changed, 0 insertions, 0 deletions
