[PATCH v3 2/2] selftest: use mmap instead of posix_memalign to allocate memory