Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • mesa mesa
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 3.2k
    • Issues 3.2k
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1k
    • Merge requests 1k
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MesaMesa
  • mesamesa
  • Merge requests
  • !10814

venus: Fix zero-initialized fd causing apps to hang/crash

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Joshua Ashton requested to merge JoshuaAshton/mesa:virtio-fd-fix into main May 15, 2021
  • Overview 7
  • Commits 1
  • Pipelines 11
  • Changes 1

Some apps such as Gamescope crash under the mere presence of the virtio Vulkan driver without using a device.

This is because virtgpu::fd is zero-initialized upon allocation, which causes fd 0 to be closed in virtgpu_destroy.

Cc: mesa-stable

Fixes: 247232d5 ("venus: add experimental renderers")

Signed-off-by: Joshua Ashton joshua@froggi.es

Edited May 15, 2021 by Joshua Ashton
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: virtio-fd-fix