Question

I just read about how ASLR helps in preventing buffer overflow attacks and would like to have a look at its implementation.

Could someone offer a few pointers on where I could start looking? I would also love it if you could point me towards more reading material related to the same.

Was it helpful?

Solution

The implementation can naturally be found in the Linux kernel source tree. Even just grepping for.. randomize_va_space will turn up enough results to start on.

In the elf loader #ifdef arch_randomize_brk -> arch_randomize_brk -> randomize_range

OTHER TIPS

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top