[Freedreno] [PATCH] drm/msm: Fix use-after-free in msm_gem with carveout

2020-11-26 Thread Iskren Chernev
When using gem with vram carveout the page allocation is managed via drm_mm. The necessary drm_mm_node is allocated in add_vma, but it freed before the drm_mm_node has been deallocated leading to use-after-free on every single vram allocation. Currently put_iova is called before free_object.

[Freedreno] [PATCH v2] drm/msm: Fix use-after-free in msm_gem with carveout

2020-11-26 Thread Iskren Chernev
When using gem with vram carveout the page allocation is managed via drm_mm. The necessary drm_mm_node is allocated in add_vma, but it is referenced in msm_gem_object as well. It is freed before the drm_mm_node has been deallocated leading to use-after-free on every single vram allocation. Current

Re: [Freedreno] [PATCH] drm/msm: adreno: Make speed-bin support generic

2020-11-26 Thread Akhil P Oommen
On 11/16/2020 9:52 PM, Rob Clark wrote: On Mon, Nov 16, 2020 at 6:34 AM Akhil P Oommen wrote: On 11/12/2020 10:07 PM, Rob Clark wrote: On Thu, Nov 12, 2020 at 7:49 AM Akhil P Oommen wrote: So far a530v2 gpu has support for detecting its supported opps based on a fuse value called speed-bin

[Freedreno] [PATCH 15/40] drm/msm/disp/dpu1/dpu_hw_interrupts: Demote kernel-doc formatting misuse

2020-11-26 Thread Lee Jones
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c:246: error: Cannot parse struct or union! drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c:756: error: Cannot parse struct or union! Cc: Rob Clark Cc: Sean Paul Cc: David Airlie Cc: Daniel V

[Freedreno] [PATCH 00/40] [Set 10] Rid W=1 warnings from GPU

2020-11-26 Thread Lee Jones
This set is part of a larger effort attempting to clean-up W=1 kernel builds, which are currently overwhelmingly riddled with niggly little warnings. 500 out of 5000 left! Lee Jones (40): drm/amd/pm/powerplay/smumgr/tonga_smumgr: Remove set but unused variable 'res' drm/amd/pm/powerplay/s

Re: [Freedreno] [PATCH] drm/msm: Fix use-after-free in msm_gem with carveout

2020-11-26 Thread kernel test robot
m_gem-with-carveout/20201126-163426 base:9d3e48f20e1159a7bb2ff5de96594b6375157fe0 config: arm-defconfig (attached as .config) compiler: arm-linux-gnueabi-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross