[PATCH 0/1] fix regression in hugetlbfs overflow checking
From: Mike Kravetz
Date: Thu Mar 29 2018 - 00:17:23 EST
Commit 63489f8e8211 ("hugetlbfs: check for pgoff value overflow")
introduced a regression in 32 bit kernels. When creating the mask
to check vm_pgoff, it incorrectly specified that the size of a loff_t
was the size of a long. This prevents mapping hugetlbfs files at
offsets greater than 4GB on 32 bit kernels.
The above is in the commit message. 63489f8e8211 has been sent upstream
and to stable, so cc'ing stable here as well.
I would appreciate some more eyes on this code. There have been several
fixes and we keep running into issues.
Mike Kravetz (1):
hugetlbfs: fix bug in pgoff overflow checking
fs/hugetlbfs/inode.c | 22 +++++++++++++++++-----
1 file changed, 17 insertions(+), 5 deletions(-)
--
2.13.6