Re: [PATCH v3 2/9] selftest/mremap_test: Avoid crash with static build

2021-04-12 Thread Kalesh Singh
On Mon, Mar 29, 2021 at 11:08 PM Aneesh Kumar K.V wrote: > > 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 Reviewed-by: Kalesh Si

[PATCH v3 2/9] selftest/mremap_test: Avoid crash with static build

2021-03-29 Thread Aneesh Kumar K.V
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 --- tools/testing/selftests/vm/mremap_test.c | 5 +++-- 1 file changed, 3 insertions(+), 2