GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — gh-112301: Update disable safety and enable slow safety configure options documentation by nohlson · Pull Request #122758 · python/cpython Conversation
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| @@ -911,17 +911,31 @@ Security Options | |||
|
|
|||
| Disable compiler options that are recommended by `OpenSSF`_ for security reasons with no performance overhead. | |||
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| Disable compiler options that are recommended by `OpenSSF`_ for security reasons with no performance overhead. | |
| Disable compiler options that are `recommended by OpenSSF`_ for security reasons with no performance overhead. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Expanded link text
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| * `-fstack-protector-strong`_: Enable run-time checks for stack-based buffer overflows. | ||
| * `-Wtrampolines`_: Enable warnings about trampolines that require executable stacks. | ||
|
|
||
| .. _OpenSSF: https://github.com/ossf/wg-best-practices-os-developers/blob/main/docs/Compiler-Hardening-Guides/Compiler-Options-Hardening-Guide-for-C-and-C++.md |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| .. _OpenSSF: https://github.com/ossf/wg-best-practices-os-developers/blob/main/docs/Compiler-Hardening-Guides/Compiler-Options-Hardening-Guide-for-C-and-C++.md | |
| .. _recommended by OpenSSF: https://github.com/ossf/wg-best-practices-os-developers/blob/main/docs/Compiler-Hardening-Guides/Compiler-Options-Hardening-Guide-for-C-and-C++.md |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Changed link text
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| When this option is enabled, CPython will not be built with the compiler options listed below. | ||
|
|
||
| .. _OpenSSF: https://openssf.org/ | ||
| Compiler options that are disabled with this option: |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| Compiler options that are disabled with this option: | |
| The following compiler options are disabled with :option:`!--disable-safety`: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Re-worded sentence
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| If this option is not enabled, CPython will not be built based on safety compiler options which performance impact. | ||
| When this option is enabled, CPython will be built with the compiler options listed below. | ||
|
|
||
| Compiler options that are enabled with this option: |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| Compiler options that are enabled with this option: | |
| The following compiler options are enabled with :option:`!--enable-slower-safety`: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Re-worded sentence
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| * `-D_FORTIFY_SOURCE=3`_: Fortify sources with compile- and run-time checks for unsafe libc usage and buffer overflows. | ||
|
|
||
| .. _OpenSSF: https://openssf.org/ | ||
| .. _OpenSSF: https://github.com/ossf/wg-best-practices-os-developers/blob/main/docs/Compiler-Hardening-Guides/Compiler-Options-Hardening-Guide-for-C-and-C++.md |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
You don't need to (and shouldn't) redefine link targets in the same document
| .. _OpenSSF: https://github.com/ossf/wg-best-practices-os-developers/blob/main/docs/Compiler-Hardening-Guides/Compiler-Options-Hardening-Guide-for-C-and-C++.md |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Removed superfluous link
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| .. option:: --enable-slower-safety | ||
|
|
||
| Enable compiler options that are recommended by `OpenSSF`_ for security reasons which require overhead. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
| Enable compiler options that are recommended by `OpenSSF`_ for security reasons which require overhead. | |
| Enable compiler options that are `recommended by OpenSSF`_ for security reasons which require overhead. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Expanded link text
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Can we introduce the options here, too? or separate PR?
https://github.com/python/cpython/blob/main/Doc/whatsnew/3.14.rst
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
lgtm from the view of non-native speaker :)
Sorry, something went wrong.
There was an error while loading. Please reload this page.
We could probably do a separate PR. We will be enabling strictly warning options once the devguide is updated that can be included there as well. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@nohlson does this need backports? A |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
No we do not need to backport these changes |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ble-safety`` and ``--enable-slower-safety``) (python#122758) Co-authored-by: Adam Turner <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.