- 论坛徽章:
- 36
|
Enable -fstack-protector buffer overflow detection (EXPERIMENTAL) ───────────────────┐
│ CONFIG_CC_STACKPROTECTOR: │
│ │
│ This option turns on the -fstack-protector GCC feature. This │
│ feature puts, at the beginning of functions, a canary value on │
│ the stack just before the return address, and validates │
│ the value just before actually returning. Stack based buffer │
│ overflows (that need to overwrite this return address) now also │
│ overwrite the canary, which gets detected and the attack is then │
│ neutralized via a kernel panic.
这个配置选项应该就是内核态配置,告诉GCC不要优化指针的初始化和操作把。 |
|