Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L linux-dm
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • linux-arm
  • linux-dm
  • Repository
Switch branch/tag
  • linux-dm
  • drivers
  • vhost
  • vhost.c
Find file BlameHistoryPermalink
  • Michael S. Tsirkin's avatar
    vhost: block speculation of translated descriptors · a89db445
    Michael S. Tsirkin authored Sep 08, 2019
    
    
    iovec addresses coming from vhost are assumed to be
    pre-validated, but in fact can be speculated to a value
    out of range.
    
    Userspace address are later validated with array_index_nospec so we can
    be sure kernel info does not leak through these addresses, but vhost
    must also not leak userspace info outside the allowed memory table to
    guests.
    
    Following the defence in depth principle, make sure
    the address is not validated out of node range.
    Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
    Cc: stable@vger.kernel.org
    Acked-by: default avatarJason Wang <jasowang@redhat.com>
    Tested-by: default avatarJason Wang <jasowang@redhat.com>
    a89db445

Replace vhost.c

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.