aboutsummaryrefslogtreecommitdiff
path: root/net/sctp/stream_interleave.c
diff options
context:
space:
mode:
authorGravatar Miaohe Lin <linmiaohe@huawei.com> 2022-07-12 21:05:42 +0800
committerGravatar Andrew Morton <akpm@linux-foundation.org> 2022-08-28 14:02:43 -0700
commitab74ef708dc51df7cf2b8a890b9c6990fac5c0c6 (patch)
tree37814102f0120a2780afde292a65e73c7e9d406d /net/sctp/stream_interleave.c
parentMerge branch 'linus' (diff)
downloadlinux-ab74ef708dc51df7cf2b8a890b9c6990fac5c0c6.tar.gz
linux-ab74ef708dc51df7cf2b8a890b9c6990fac5c0c6.tar.bz2
linux-ab74ef708dc51df7cf2b8a890b9c6990fac5c0c6.zip
mm/hugetlb: avoid corrupting page->mapping in hugetlb_mcopy_atomic_pte
In MCOPY_ATOMIC_CONTINUE case with a non-shared VMA, pages in the page cache are installed in the ptes. But hugepage_add_new_anon_rmap is called for them mistakenly because they're not vm_shared. This will corrupt the page->mapping used by page cache code. Link: https://lkml.kernel.org/r/20220712130542.18836-1-linmiaohe@huawei.com Fixes: f619147104c8 ("userfaultfd: add UFFDIO_CONTINUE ioctl") Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com> Cc: Axel Rasmussen <axelrasmussen@google.com> Cc: Peter Xu <peterx@redhat.com> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'net/sctp/stream_interleave.c')
0 files changed, 0 insertions, 0 deletions