Re: [PATCH] drm/amdgpu: Initialize SPM_VMID with 0xf

2020-02-27 Thread Christian König
Am 27.02.20 um 14:25 schrieb Jacob He: SPM_VMID is a global resource, SPM access the video memory according to SPM_VMID. The initial valude of SPM_VMID is 0 which is used by kernel. That means UMD can overwrite the memory of VMID0 by enabling SPM, that is really dangerous. Initialize SPM_VMID wi

[PATCH] drm/amdgpu: Initialize SPM_VMID with 0xf

2020-02-27 Thread Jacob He
SPM_VMID is a global resource, SPM access the video memory according to SPM_VMID. The initial valude of SPM_VMID is 0 which is used by kernel. That means UMD can overwrite the memory of VMID0 by enabling SPM, that is really dangerous. Initialize SPM_VMID with 0xf, it messes up other user mode proc