android_kernel_sony_sdm845/drivers/gpu/msm
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Mohammed Mirza Mandayappurath Manzoor 58c8b3aebd
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>
Signed-off-by: Puranam V G Tejaswi <quic_pvgtejas@quicinc.com>
2023-12-12 01:48:34 +02:00
..
a3xx_reg.h
a4xx_reg.h
a5xx_reg.h
a6xx_reg.h msm: kgsl: Zap performance counters across context switches 2022-03-21 13:36:41 +05:30
adreno-gpulist.h msm: kgsl: Disable graphics content protection for SDM429 2018-09-05 02:45:09 -07:00
adreno.c Merge tag 'LA.UM.8.3.c25-07000-sdm845.0' of https://git.codelinaro.org/clo/la/kernel/msm-4.9 into android13-4.9-sdm845 2022-10-13 02:32:26 +03:00
adreno.h msm: kgsl: Keep postamble packets in a privileged buffer 2023-04-18 23:22:17 -07:00
adreno_a3xx.c msm: kgsl: Add GPU speed-bin vector support for A3XX 2018-10-17 15:35:15 +05:30
adreno_a3xx.h
adreno_a3xx_snapshot.c
adreno_a4xx.c msm: kgsl: Correct the iommu protection ranges 2018-05-24 14:14:35 +05:30
adreno_a4xx.h
adreno_a4xx_preempt.c
adreno_a4xx_snapshot.c
adreno_a5xx.c msm: kgsl: Mark the scratch buffer as privileged 2020-08-05 19:25:37 +05:30
adreno_a5xx.h msm: kgsl: Mark the scratch buffer as privileged 2020-08-05 19:25:37 +05:30
adreno_a5xx_packets.h
adreno_a5xx_preempt.c msm: kgsl: Mark the scratch buffer as privileged 2020-08-05 19:25:37 +05:30
adreno_a5xx_snapshot.c msm: kgsl: Don't dump GPMU registers on non GPMU devices 2018-05-24 04:20:20 -07:00
adreno_a6xx.c Merge tag 'LA.UM.10.3.r1-00500-sdm845.0' of https://source.codeaurora.org/quic/la/kernel/msm-4.9 into lineage-18.1-caf-sdm845 2021-12-27 02:19:13 +02:00
adreno_a6xx.h msm: kgsl: Optimally reserve CP context record size for A6xx GPUs 2021-05-26 19:06:35 +03:00
adreno_a6xx_preempt.c Merge tag 'LA.UM.8.3.c25-08000-sdm845.0' of https://git.codelinaro.org/clo/la/kernel/msm-4.9 into android13-4.9-sdm845 2023-05-11 14:21:34 +03:00
adreno_a6xx_snapshot.c msm: kgsl: Dump both GMU and GPU state for GMU faults 2018-10-03 09:55:51 +05:30
adreno_compat.c msm: kgsl: Add a sysfs node to control performance counter reads 2022-03-21 13:32:45 +05:30
adreno_compat.h
adreno_coresight.c msm: kgsl: Add coresight support for Adreno 630 2017-11-28 16:04:50 -08:00
adreno_cp_parser.c msm: kgsl: Fix incomplete IB2 dump in the snapshot 2017-03-07 14:38:00 +05:30
adreno_cp_parser.h msm: kgsl: Fix incomplete IB2 dump in the snapshot 2017-03-07 14:38:00 +05:30
adreno_debugfs.c msm: kgsl: Compare pid pointer instead of TGID for a new process 2020-11-05 16:04:17 +05:30
adreno_dispatch.c msm: kgsl: Fix gpuaddr_in_range() to check upper bound 2022-05-11 14:59:18 +05:30
adreno_dispatch.h msm: kgsl: Keep dispatcher halted during SUSPEND state 2018-03-04 22:10:14 -08:00
adreno_drawctxt.c msm: kgsl: Fix possible use-after-free while adding context to active list 2020-09-12 07:57:42 -07:00
adreno_drawctxt.h msm: kgsl: Fix typo in ctxt_type_table traversal length 2018-11-20 11:55:14 +05:30
adreno_ioctl.c msm: kgsl: Add a sysfs node to control performance counter reads 2022-03-21 13:32:45 +05:30
adreno_iommu.c msm: kgsl: Zap performance counters across context switches 2022-03-21 13:36:41 +05:30
adreno_iommu.h
adreno_llc.h msm: kgsl: Add sysfs node to enable/disable GPUHTW LLC slice 2017-03-16 12:12:03 -07:00
adreno_perfcounter.c msm: kgsl: Zap performance counters across context switches 2022-03-21 13:36:41 +05:30
adreno_perfcounter.h msm: kgsl: Use spinlock for A6xx perfcounter updates 2017-11-17 16:00:59 -08:00
adreno_pm4types.h msm: kgsl: Zap performance counters across context switches 2022-03-21 13:36:41 +05:30
adreno_profile.c msm: kgsl: Compare pid pointer instead of TGID for a new process 2020-11-05 16:04:17 +05:30
adreno_profile.h
adreno_ringbuffer.c msm: kgsl: Zap performance counters across context switches 2022-03-21 13:36:41 +05:30
adreno_ringbuffer.h msm: kgsl: Mark the scratch buffer as privileged 2020-08-05 19:25:37 +05:30
adreno_snapshot.c msm: kgsl: Dump maximum possible IB1 size in snapshot 2020-01-30 21:06:04 -08:00
adreno_snapshot.h
adreno_sysfs.c msm: kgsl: Add a sysfs node to control performance counter reads 2022-03-21 13:32:45 +05:30
adreno_trace.c
adreno_trace.h msm: kgsl: Count inter-frame power collapses 2018-09-11 12:15:40 +05:30
Kconfig msm: kgsl: Use the new fence APIs for server side sync 2017-03-20 12:07:11 +05:30
kgsl.c Merge tag 'LA.UM.8.3.c25-08000-sdm845.0' of https://git.codelinaro.org/clo/la/kernel/msm-4.9 into android13-4.9-sdm845 2023-05-11 14:21:34 +03:00
kgsl.h msm: kgsl: Keep postamble packets in a privileged buffer 2023-04-18 23:22:17 -07:00
kgsl_compat.c msm: kgsl: Add Bind objects to dispatcher draw queue 2017-02-01 20:07:33 +05:30
kgsl_compat.h
kgsl_debugfs.c msm: kgsl: Stop using memdesc->usermem 2021-02-01 02:59:04 -08:00
kgsl_debugfs.h msm: kgsl: Clean up device debugfs files on removal 2017-03-14 11:20:08 +05:30
kgsl_device.h msm: kgsl: Compare pid pointer instead of TGID for a new process 2020-11-05 16:04:17 +05:30
kgsl_drawobj.c msm: kgsl: Fix out of bound write in adreno_profile_submit_time 2021-09-28 11:52:14 +05:30
kgsl_drawobj.h msm: kgsl: Get names of all fences 2018-12-13 15:47:00 +05:30
kgsl_events.c msm: kgsl: Use event workqueue for event work instead of RT Kthread worker 2019-09-25 11:31:28 +05:30
kgsl_gmu.c msm: kgsl: Remove dev_err() from fenced write loop 2020-10-22 21:35:37 +05:30
kgsl_gmu.h msm: kgsl: Add apb_pclk to the clock list and increase max clock count 2020-12-14 15:53:57 +05:30
kgsl_hfi.c msm: kgsl: Make GMU local functions to static 2018-03-14 19:16:04 -07:00
kgsl_hfi.h msm: kgsl: Move LM HFI after LM initialization 2017-12-07 14:41:14 -07:00
kgsl_ioctl.c msm: kgsl: Printk format fix for 32bit build error 2017-11-09 10:07:04 +08:00
kgsl_iommu.c msm: kgsl: Prevent wrap around during user address mapping 2023-12-12 01:48:34 +02:00
kgsl_iommu.h msm: kgsl: Update global memory base to 0XFC000000 for 64bit kernel 2018-01-29 17:55:01 +05:30
kgsl_log.h msm: kgsl: Limit the kgsl log frequency in kgsl_get_unmapped_area() 2017-09-25 16:09:20 +05:30
kgsl_mmu.c msm: kgsl: Fix gpuaddr_in_range() to check upper bound 2022-05-11 14:59:18 +05:30
kgsl_mmu.h msm: kgsl: Fix gpuaddr_in_range() to check upper bound 2022-05-11 14:59:18 +05:30
kgsl_pool.c msm: kgsl: Make sure that pool pages don't have any extra references 2023-05-02 20:36:07 +03:00
kgsl_pool.h msm: kgsl: Return supported page size based on available memory pools 2017-10-12 03:41:45 -07:00
kgsl_pwrctrl.c msm: kgsl: Add apb_pclk to the clock list and increase max clock count 2020-12-14 15:53:57 +05:30
kgsl_pwrctrl.h msm: kgsl: Add apb_pclk to the clock list and increase max clock count 2020-12-14 15:53:57 +05:30
kgsl_pwrscale.c Merge "msm: kgsl: Specify context aware target power level for each speed bin" 2018-03-16 03:15:39 -07:00
kgsl_pwrscale.h msm: kgsl: Specify context aware target power level for each speed bin 2018-03-08 12:57:00 +05:30
kgsl_sharedmem.c msm: kgsl: Fix memory leak for anonymous buffers 2021-12-23 18:45:24 +05:30
kgsl_sharedmem.h msm: kgsl: Use a common sharedmem init function 2018-05-01 12:27:51 +05:30
kgsl_snapshot.c msm: kgsl: Check snapshot objs size before saving to memory 2020-04-29 13:57:15 +05:30
kgsl_snapshot.h msm: kgsl: Dump the A6XX SQE firmware version in the snapshot 2017-03-31 12:25:47 +05:30
kgsl_sync.c msm: kgsl: Get names of all fences 2018-12-13 15:47:00 +05:30
kgsl_sync.h msm: kgsl: Get names of all fences 2018-12-13 15:47:00 +05:30
kgsl_trace.c
kgsl_trace.h msm: kgsl: Stop using memdesc->usermem 2021-02-01 02:59:04 -08:00
Makefile msm: kgsl: Add A6XX preemption support 2017-06-23 12:22:51 -06:00