arch/linux: use syscall() instead of personality()
@@ -220,8 +220,8 @@ bool arch_launchChild(honggfuzz_t * hfuzz, char *fileName)
/*
* Disable ASLR
*/
- if (hfuzz->linux.disableRandomization && personality(ADDR_NO_RANDOMIZE) == -1) {
- PLOG_W("personality(ADDR_NO_RANDOMIZE) failed");
+ if (hfuzz->linux.disableRandomization && syscall(__NR_personality, ADDR_NO_RANDOMIZE) == -1) {
+ PLOG_D("personality(ADDR_NO_RANDOMIZE) failed");
}
#define ARGS_MAX 512
char *args[ARGS_MAX + 2];
