selftest-mremap_test-avoid-crash-with-static-build.patch removed from -mm tree
The patch titled
Subject: selftest/mremap_test: avoid crash with static build
has been removed from the -mm tree. Its filename was
selftest-mremap_test-avoid-crash-with-static-build.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: "Aneesh Kumar K.V" <[email protected]>
Subject: selftest/mremap_test: avoid crash with static build
With a large mmap map size, we can overlap with the text area and using MAP_FIXED results in unmapping that area. Switch to MAP_FIXED_NOREPLACE and handle the EEXIST error.
Signed-off-by Aneesh Kumar K.V <[email protected]>
Reviewed-by Kalesh Singh <[email protected]>
Cc Christophe Leroy <[email protected]>
Cc Hugh Dickins <[email protected]>
Cc Joel Fernandes <[email protected]>
Cc Kirill A. Shutemov <[email protected]>
Cc Michael Ellerman <[email protected]>
Cc Nicholas Piggin <[email protected]>
Cc Stephen Rothwell <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
tools/testing/selftests/vm/mremap_test.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
tools/testing/selftests/vm/mremap_test.c renamed from tools/testing/selftests/vm/mremap_test.c~selftest-mremap_test-avoid-crash-with-static-build +3 -2
@@ -75,9 +75,10 @@ static void *get_source_mapping(struct c retry: addr += c.src_alignment; src_addr =mmap ((void *) addr, c.region_size,PROT_READ |PROT_WRITE , -MAP_FIXED |MAP_ANONYMOUS |MAP_SHARED ,-1 ,0 ); +MAP_FIXED_NOREPLACE |MAP_ANONYMOUS |MAP_SHARED , +-1 ,0 );if (src_addr ==MAP_FAILED ) { -if (errno ==EPERM ) +if (errno ==EPERM || errno ==EEXIST ) goto retry; goto error; }
_
Patches currently in -mm which might be from [email protected] are