diff options
| author | Zack Rusin <[email protected]> | 2024-08-16 18:32:06 +0000 |
|---|---|---|
| committer | Zack Rusin <[email protected]> | 2024-08-26 04:19:40 +0000 |
| commit | 50f1199250912568606b3778dc56646c10cb7b04 (patch) | |
| tree | 54dd6832aeb13e4189daa95ada6c3e0c658545f7 /security/selinux/hooks.c | |
| parent | drm/vmwgfx: Prevent unmapping active read buffers (diff) | |
| download | kernel-50f1199250912568606b3778dc56646c10cb7b04.tar.gz kernel-50f1199250912568606b3778dc56646c10cb7b04.zip | |
drm/vmwgfx: Fix prime with external buffers
Make sure that for external buffers mapping goes through the dma_buf
interface instead of trying to access pages directly.
External buffers might not provide direct access to readable/writable
pages so to make sure the bo's created from external dma_bufs can be
read dma_buf interface has to be used.
Fixes crashes in IGT's kms_prime with vgem. Regular desktop usage won't
trigger this due to the fact that virtual machines will not have
multiple GPUs but it enables better test coverage in IGT.
Signed-off-by: Zack Rusin <[email protected]>
Fixes: b32233acceff ("drm/vmwgfx: Fix prime import/export")
Cc: <[email protected]> # v6.6+
Cc: Broadcom internal kernel review list <[email protected]>
Cc: [email protected]
Cc: <[email protected]> # v6.9+
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Martin Krastev <[email protected]>
Reviewed-by: Maaz Mombasawala <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions
