aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
diff options
context:
space:
mode:
authorSebastian Ott <[email protected]>2025-05-05 17:31:48 +0000
committerOliver Upton <[email protected]>2025-05-05 19:12:27 +0000
commit157dbc4a321f5bb6f8b6c724d12ba720a90f1a7c (patch)
treeeec83e760417c9711a719ac8fa42a7e3924746be /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
parentLinux 6.15-rc4 (diff)
downloadkernel-157dbc4a321f5bb6f8b6c724d12ba720a90f1a7c.tar.gz
kernel-157dbc4a321f5bb6f8b6c724d12ba720a90f1a7c.zip
KVM: arm64: Fix uninitialized memcache pointer in user_mem_abort()
Commit fce886a60207 ("KVM: arm64: Plumb the pKVM MMU in KVM") made the initialization of the local memcache variable in user_mem_abort() conditional, leaving a codepath where it is used uninitialized via kvm_pgtable_stage2_map(). This can fail on any path that requires a stage-2 allocation without transition via a permission fault or dirty logging. Fix this by making sure that memcache is always valid. Fixes: fce886a60207 ("KVM: arm64: Plumb the pKVM MMU in KVM") Signed-off-by: Sebastian Ott <[email protected]> Reviewed-by: Marc Zyngier <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/kvmarm/[email protected]/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Oliver Upton <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions