drm/amdgpu: prevent immediate PASID reuse case
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 02208441cc3a5110191996bb129db39ff10e7395 · < 14b81abe7bdc25f8097906fc2f91276ffedb2d26| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu: prevent immediate PASID reuse case
PASID resue could cause interrupt issue when process immediately runs into hw state left by previous process exited with the same PASID, it's possible that page faults are still pending in the IH ring buffer when the process exits and frees up its PASID. To prevent the case, it uses idr cyclic allocator same as kernel pid's.
(cherry picked from commit 8f1de51f49be692de137c8525106e0fce2d1912d)
From the CVE record · Linux
The Linux kernel's amdgpu driver can reuse a PASID immediately after a process exits, while page faults from that process are still pending. A subsequent local process assigned the same PASID may encounter interrupt issues caused by hardware state left by the previous process. The input does not specify authentication requirements or user interaction.
Engineers running Linux kernels with the amdgpu driver should check whether their kernel includes the PASID reuse fix; affected versions are not specified.