summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSteve Sistare <steven.sistare@oracle.com>2023-01-31 08:58:03 -0800
committerAlex Williamson <alex.williamson@redhat.com>2023-02-09 11:39:14 -0700
commitef3a3f6a294ba65fd906a291553935881796f8a5 (patch)
treed6b30055cb984403a0b05847271bba9d7dbfb045 /scripts
parent168a9c91fe0a1180959b6394f4566de7080244b6 (diff)
downloadlinux-stable-ef3a3f6a294ba65fd906a291553935881796f8a5.tar.gz
linux-stable-ef3a3f6a294ba65fd906a291553935881796f8a5.tar.bz2
linux-stable-ef3a3f6a294ba65fd906a291553935881796f8a5.zip
vfio/type1: exclude mdevs from VFIO_UPDATE_VADDR
Disable the VFIO_UPDATE_VADDR capability if mediated devices are present. Their kernel threads could be blocked indefinitely by a misbehaving userland while trying to pin/unpin pages while vaddrs are being updated. Do not allow groups to be added to the container while vaddr's are invalid, so we never need to block user threads from pinning, and can delete the vaddr-waiting code in a subsequent patch. Fixes: c3cbab24db38 ("vfio/type1: implement interfaces to update vaddr") Cc: stable@vger.kernel.org Signed-off-by: Steve Sistare <steven.sistare@oracle.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Link: https://lore.kernel.org/r/1675184289-267876-2-git-send-email-steven.sistare@oracle.com Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions