summaryrefslogtreecommitdiffstats
path: root/scripts/checkstack.pl
diff options
context:
space:
mode:
authorAndrea Arcangeli2018-12-14 23:17:17 +0100
committerLinus Torvalds2018-12-15 00:05:45 +0100
commit01e881f5a1fca4677e82733061868c6d6ea05ca7 (patch)
tree104ce9922663f88b905b14ecacc2c710367b48a9 /scripts/checkstack.pl
parentfs/iomap.c: get/put the page in iomap_page_create/release() (diff)
downloadkernel-qcow2-linux-01e881f5a1fca4677e82733061868c6d6ea05ca7.tar.gz
kernel-qcow2-linux-01e881f5a1fca4677e82733061868c6d6ea05ca7.tar.xz
kernel-qcow2-linux-01e881f5a1fca4677e82733061868c6d6ea05ca7.zip
userfaultfd: check VM_MAYWRITE was set after verifying the uffd is registered
Calling UFFDIO_UNREGISTER on virtual ranges not yet registered in uffd could trigger an harmless false positive WARN_ON. Check the vma is already registered before checking VM_MAYWRITE to shut off the false positive warning. Link: http://lkml.kernel.org/r/20181206212028.18726-2-aarcange@redhat.com Cc: <stable@vger.kernel.org> Fixes: 29ec90660d68 ("userfaultfd: shmem/hugetlbfs: only allow to register VM_MAYWRITE vmas") Signed-off-by: Andrea Arcangeli <aarcange@redhat.com> Reported-by: syzbot+06c7092e7d71218a2c16@syzkaller.appspotmail.com Acked-by: Mike Rapoport <rppt@linux.ibm.com> Acked-by: Hugh Dickins <hughd@google.com> Acked-by: Peter Xu <peterx@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/checkstack.pl')
0 files changed, 0 insertions, 0 deletions