linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/1] hugetlbfs: prevent UFFDIO_COPY to fill beyond the end of i_size
@ 2017-10-16 22:39 Andrea Arcangeli
  2017-10-16 22:39 ` [PATCH 1/1] userfaultfd: " Andrea Arcangeli
  0 siblings, 1 reply; 4+ messages in thread
From: Andrea Arcangeli @ 2017-10-16 22:39 UTC (permalink / raw)
  To: Andrew Morton, linux-mm
  Cc: Mike Rapoport, Dr. David Alan Gilbert, Mike Kravetz

Hello,

The erratic mapping (as in page_mapped()) of hugetlbfs pages beyond
the end of the i_size, was found while testing some userfaultfd
backport. It can trigger a bugcheck as side effect.

Andrea Arcangeli (1):
  userfaultfd: hugetlbfs: prevent UFFDIO_COPY to fill beyond the end of
    i_size

 mm/hugetlb.c | 32 ++++++++++++++++++++++++++++++--
 1 file changed, 30 insertions(+), 2 deletions(-)

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-10-18 19:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-16 22:39 [PATCH 0/1] hugetlbfs: prevent UFFDIO_COPY to fill beyond the end of i_size Andrea Arcangeli
2017-10-16 22:39 ` [PATCH 1/1] userfaultfd: " Andrea Arcangeli
2017-10-16 23:14   ` Andrew Morton
2017-10-18 19:10     ` Andrea Arcangeli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).