In the Linux kernel, the following vulnerability has been resolved:
drm/amdkfd: skip GPUs without a VM when checkpointing the BO mappings
criu_checkpoint_bos() asks every device of the process whether a BO is
mapped there, passing its drm_priv, which is NULL for the devices the
process never acquired a VM on. On navi48 with its iGPU, checkpointing a
process which acquired the VM of the dGPU only:
Oops: general protection fault, probably for non-canonical address 0xdffffc000000002f: 0000 [#1] SMP KASAN NOPTI
KASAN: null-ptr-deref in range [0x0000000000000178-0x000000000000017f]
RIP: 0010:amdgpu_amdkfd_bo_mapped_to_dev+0x35/0x160 [amdgpu]
kfd_ioctl_criu+0x30d1/0x4aa0 [amdgpu]
kfd_ioctl+0x767/0xb10 [amdgpu]
Nothing can be mapped on such a device, skip it.
(cherry picked from commit 794381c358d344d8fcf8b9e6426aa2bac0a7d1f7)