nuttxs opened a new pull request, #17000:
URL: https://github.com/apache/nuttx/pull/17000
## Summary
Support selecting stack overflow protection mechanisms of different
strengths according to requirements.
Introduce a configurable stack-protection level for the existing
CONFIG_STACK_CANARIES, instead of hard-coding -fstack-protector-all.
Add a new Kconfig choice STACK_CANARIES_LEVEL that offers four selectable
levels:
```
-fstack-protector
-fstack-protector-strong
-fstack-protector-all (default)
-fstack-protector-explicit
```
## Impact
New Feature/Change: Yes
User Impact: The default is still -fstack-protector-all
Build Impact: Add a new Kconfig STACK_CANARIES_LEVEL.
Hardware Impact: No
Security: No
Compatibility: Backward-compatible; no breaking changes.
## Testing
After modifying STACK_CANARIES_LEVEL, check whether the stack-protector
configuration matches during the compilation process for architectures such as
Xtensa or ARM64.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]