[LTP] [PATCH 8/8] Hugetlb: Migrating libhugetlbfs misaligned_offset

Richard Palethorpe rpalethorpe@suse.de
Mon Dec 12 15:33:08 CET 2022


Tarun Sahu <tsahu@linux.ibm.com> writes:

> Migrating the libhugetlbfs/testcases/misaligned_offset.c test
>
> Test Name: Misaligned offset
>
> Test Description: At one stage, a misconversion of hugetlb_vmtruncate_list
> to a prio_tree meant that on 32-bit machines, truncates at or above 4GB
> could truncate lower pages, resulting in BUG_ON()s.
>
> WARNING: The offsets and addresses used within are specifically
> calculated to trigger the bug as it existed.  Don't mess with them
> unless you *really* know what you're doing.
>
> The kernel bug in question was fixed with
> 'commit 856fc2950555 ("[PATCH] hugetlb: fix prio_tree unit")'.
>
> Signed-off-by: Tarun Sahu <tsahu@linux.ibm.com>
Reviewed-by: Richard Palethorpe <rpalethorpe@suse.com>


-- 
Thank you,
Richard.


More information about the ltp mailing list