diff options
| author | Ryan Neph <[email protected]> | 2023-02-03 23:33:44 +0000 |
|---|---|---|
| committer | Dmitry Osipenko <[email protected]> | 2023-02-06 17:10:56 +0000 |
| commit | 8f20660f053cefd4693e69cfff9cf58f4f7c4929 (patch) | |
| tree | fb41c2678fefd55e0322d26fac74f8b7bd7dabe6 /tools/testing/selftests/bpf/prog_tests/autoload.c | |
| parent | drm/amdgpu: fix memory leak in amdgpu_cs_sync_rings (diff) | |
| download | kernel-8f20660f053cefd4693e69cfff9cf58f4f7c4929.tar.gz kernel-8f20660f053cefd4693e69cfff9cf58f4f7c4929.zip | |
drm/virtio: exbuf->fence_fd unmodified on interrupted wait
An interrupted dma_fence_wait() becomes an -ERESTARTSYS returned
to userspace ioctl(DRM_IOCTL_VIRTGPU_EXECBUFFER) calls, prompting to
retry the ioctl(), but the passed exbuf->fence_fd has been reset to -1,
making the retry attempt fail at sync_file_get_fence().
The uapi for DRM_IOCTL_VIRTGPU_EXECBUFFER is changed to retain the
passed value for exbuf->fence_fd when returning anything besides a
successful result from the ioctl.
Fixes: 2cd7b6f08bc4 ("drm/virtio: add in/out fence support for explicit synchronization")
Signed-off-by: Ryan Neph <[email protected]>
Reviewed-by: Rob Clark <[email protected]>
Reviewed-by: Dmitry Osipenko <[email protected]>
Signed-off-by: Dmitry Osipenko <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions
