summaryrefslogtreecommitdiff
path: root/virt
diff options
context:
space:
mode:
authorRalph Campbell <rcampbell@nvidia.com>2020-03-04 03:13:36 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-04-23 11:38:13 +0300
commitbca4d36a2a112a6eede285f029a743bb2d805fe3 (patch)
tree1025de547cf7c7d9e86a1c2eb74421827b74092f /virt
parentded30f112b5e835f7d2245a4d2f5b24618e3099c (diff)
downloadlinux-bca4d36a2a112a6eede285f029a743bb2d805fe3.tar.xz
drm/nouveau/svm: fix vma range check for migration
[ Upstream commit b92103b559c77abc5f8b7bec269230a219c880b7 ] find_vma_intersection(mm, start, end) only guarantees that end is greater than or equal to vma->vm_start but doesn't guarantee that start is greater than or equal to vma->vm_start. The calculation for the intersecting range in nouveau_svmm_bind() isn't accounting for this and can call migrate_vma_setup() with a starting address less than vma->vm_start. This results in migrate_vma_setup() returning -EINVAL for the range instead of nouveau skipping that part of the range and migrating the rest. Signed-off-by: Ralph Campbell <rcampbell@nvidia.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions