[LTP] [PATCH v3] Hugetlb: Migrating libhugetlbfs shm-perms
Cyril Hrubis
chrubis@suse.cz
Wed Sep 11 16:14:21 CEST 2024
Hi!
> Test Description: Tests the behavior of shared memory when
> multiple threads attach to a segment with different permissions.
>
> At one point, reservation accounting of free hugepages between the parent
> and child processes may become inconsistent during memory operations.
> The parent creates 4 hugepages and a shared memory segment
> (size segment_size, permission 0640), attaches it, and initializes
> four parts with a pattern (0x55), then detaches it. Child processes
> are created in a loop, each reattaching the segment in read-only mode
> with SHM_RDONLY, detaching, and exiting. If attach/detach fails or
> if the reservation accounting of free hugepages doesn't match
> between parent and child, the test fails. If all child processes exit
> successfully and accounting matches, the test passes.
>
> Tested and verified the success of test case
>
> Signed-off-by: Spoorthy <spoorthy@linux.ibm.com>
Git complains that this patch is corrupted probably because the
"scissors" i.e. --- is missing after the Signed-off-by.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list