drm/nouveau/svm: fix vma range check for migration
Ralph Campbell authored

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: default avatarRalph Campbell <rcampbell@nvidia.com>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
b92103b5
Name Last commit Last update
Documentation Merge tag 'drm-msm-next-2020-03-22' of https://gitlab.freedesktop.org/drm/msm into drm-next
LICENSES LICENSES: Rename other to deprecated
arch Merge v5.6 into drm-next
block block: Fix partition support for host aware zoned block devices
certs certs: Add wrapper function to check blacklisted binary hash
crypto Merge branch 'next-integrity' of git://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity
drivers drm/nouveau/svm: fix vma range check for migration
fs afs: Fix unpinned address list during probing
include Merge branch 'ttm-transhuge' of git://people.freedesktop.org/~thomash/linux into drm-next
init int128: fix __uint128_t compiler test in Kconfig
ipc Revert "ipc,sem: remove uneeded sem_undo_list lock usage in exit_sem()"
kernel Merge branch 'akpm' (patches from Andrew)
lib Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
mm Merge branch 'ttm-transhuge' of git://people.freedesktop.org/~thomash/linux into drm-next
net Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
samples Merge tag 'kbuild-v5.6-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
scripts Merge tag 'devicetree-fixes-for-5.6-4' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux
security Merge branch 'next-integrity' of git://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity
sound ALSA: hda/realtek - Enable the headset of Acer N50-600 with ALC662
tools Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
usr initramfs: restore default compression behavior
virt Merge tag 'kvmarm-fixes-5.6-1' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into HEAD
.clang-format clang-format: Update with the latest for_each macro list
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Opt out of scripts/get_maintainer.pl
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.