ASLR(Address space layout randomization)是一种针对缓冲区溢出的安全保护技术,通过对栈、共享库映射等线性区布局的随机化,防止攻击者定位攻击代码位置,达到阻止溢出攻击的目的。ASLR可以有效的降低缓冲区溢出攻击的成功率,如今Linux、FreeBSD、Windows等主流操作系统都已采用了该技术,其中 Linux 在 2.6.12 版本之后默认启用这种策略,可以通过 less /proc/sys/kernel/randomize_va_space 查看。

 

/proc/sys/kernel/randomize_va_space 的取值意义如下:(see https://patchwork.kernel.org/patch/33832/

0 - Turn the process address space randomization off by default.
 1 - Make the addresses of mmap base, stack and VDSO page randomized.
2 - Additionally enable heap randomization.  This is the default if+    CONFIG_COMPAT_BRK is disabled.

相关文章:

  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
  • 2021-06-10
  • 2021-11-27
  • 2021-09-10
猜你喜欢
  • 2022-12-23
  • 2021-04-26
  • 2022-03-03
  • 2021-09-02
  • 2021-11-12
  • 2021-10-01
  • 2022-12-23
相关资源
相似解决方案