summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/kvec/errors.rs
diff options
context:
space:
mode:
authorZack Rusin <zack.rusin@broadcom.com>2026-10-27 04:29:38 -0400
committerZack Rusin <zack.rusin@broadcom.com>2026-11-16 15:09:34 -0500
commit13e766130673ec3b9df8b72ff1dbe6826cac1dfe (patch)
tree5ddb77bc747ee3386947d83229da6f870e82929d /rust/kernel/alloc/kvec/errors.rs
parentc116d38c3ad3ccdc1153ee7713c0eafd62b1c235 (diff)
drm/vmwgfx: reserve dumb buffers while detaching their surfaces
vmw_bo_free() detaches the surface associated with a dumb buffer and clears its guest memory binding. It reserves the resource, but does not hold the buffer reservation required by vmw_resource_mob_detach(). TTM releases that reservation before invoking the buffer destructor. KMS clients destroying dumb buffers can therefore trigger the reservation assertion from vmw_resource_mob_detach(). GNOME reaches this path through DRM_IOCTL_MODE_DESTROY_DUMB during cursor and display updates. Reacquire the buffer reservation while detaching the surface and clearing its dirty tracking and guest memory binding. Acquire it after cmdbuf_mutex, following the command validation lock order, and release it before releasing the resource and GEM object. Fixes: d6667f0ddf46 ("drm/vmwgfx: Fix handling of dumb buffers") Cc: stable@vger.kernel.org Assisted-by: LLM Signed-off-by: Zack Rusin <zack.rusin@broadcom.com> Reviewed-by: Maaz Mombasawala <maaz.mombasawala@broadcom.com> Tested-by: fausten <yunfeng.li.nb@gmail.com> Link: https://patch.msgid.link/20261027211729.646988-5-zack.rusin@broadcom.com
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions