The patch titled Subject: mm, hugetlb: correct bit shift in hstate_sizelog() has been added to the -mm tree. Its filename is mm-hugetlb-correct-bit-shift-in-hstate_sizelog.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-hugetlb-correct-bit-shift-in-hstate_sizelog.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-hugetlb-correct-bit-shift-in-hstate_sizelog.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Sasha Levin <sasha.levin@xxxxxxxxxx> Subject: mm, hugetlb: correct bit shift in hstate_sizelog() hstate_sizelog() would shift left an int rather than long, triggering undefined behaviour and passing an incorrect value when the requested page size was more than 4GB, thus breaking >4GB pages. Signed-off-by: Sasha Levin <sasha.levin@xxxxxxxxxx> Cc: Andrea Arcangeli <aarcange@xxxxxxxxxx> Cc: Mel Gorman <mgorman@xxxxxxx> Cc: Andrey Ryabinin <a.ryabinin@xxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/hugetlb.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -puN include/linux/hugetlb.h~mm-hugetlb-correct-bit-shift-in-hstate_sizelog include/linux/hugetlb.h --- a/include/linux/hugetlb.h~mm-hugetlb-correct-bit-shift-in-hstate_sizelog +++ a/include/linux/hugetlb.h @@ -311,7 +311,8 @@ static inline struct hstate *hstate_size { if (!page_size_log) return &default_hstate; - return size_to_hstate(1 << page_size_log); + + return size_to_hstate(1UL << page_size_log); } static inline struct hstate *hstate_vma(struct vm_area_struct *vma) _ Patches currently in -mm which might be from sasha.levin@xxxxxxxxxx are mm-hugetlb-correct-bit-shift-in-hstate_sizelog.patch mm-introduce-do_shared_fault-and-drop-do_fault-fix-fix.patch do_shared_fault-check-that-mmap_sem-is-held.patch mm-replace-remap_file_pages-syscall-with-emulation.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html