Skip to content

Commit

Permalink
Don't allow MAP_FIXED_NOREPLACE mappings to be randomized in chaos mode.
Browse files Browse the repository at this point in the history
Fixes #3669
  • Loading branch information
khuey committed Dec 20, 2023
1 parent 825f098 commit a351573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/record_syscall.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3269,7 +3269,7 @@ static void prepare_mmap_register_params(RecordTask* t) {
}
}

intptr_t mask_flag = MAP_FIXED;
intptr_t mask_flag = MAP_FIXED | MAP_FIXED_NOREPLACE;
#ifdef MAP_32BIT
mask_flag |= MAP_32BIT;
#endif
Expand Down

0 comments on commit a351573

Please sign in to comment.