Skip to content

Commit 7902470

Browse files
authored
Rollup merge of #143961 - 1c3t3a:correct-exploit-mitigations, r=rcvalle
Correct which exploit mitigations are enabled by default This was brought up by ``@Noratrieb`` in [#project-exploit-mitigations > Incorrect table in the rustc book](https://rust-lang.zulipchat.com/#narrow/channel/343119-project-exploit-mitigations/topic/Incorrect.20table.20in.20the.20rustc.20book/with/523684203). Thanks! :) [Rendered](https://github.com/rust-lang/rust/blob/132a47e72316b60e99c3e5fefb9c3a06641138e4/src/doc/rustc/src/exploit-mitigations.md) r? ``@rcvalle``
2 parents 232bef3 + 132a47e commit 7902470

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/doc/rustc/src/exploit-mitigations.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,17 @@ Summary of exploit mitigations supported by the Rust compiler when building
5454
programs for the Linux operating system on the AMD64 architecture and
5555
equivalent.
5656

57-
| Exploit mitigation | Supported and enabled by default | Since |
58-
| - | - | - |
59-
| Position-independent executable | Yes | 0.12.0 (2014-10-09) |
60-
| Integer overflow checks | Yes (enabled when debug assertions are enabled, and disabled when debug assertions are disabled) | 1.1.0 (2015-06-25) |
61-
| Non-executable memory regions | Yes | 1.8.0 (2016-04-14) |
62-
| Stack clashing protection | Yes | 1.20.0 (2017-08-31) |
63-
| Read-only relocations and immediate binding | Yes | 1.21.0 (2017-10-12) |
64-
| Heap corruption protection | Yes | 1.32.0 (2019-01-17) (via operating system default or specified allocator) |
65-
| Stack smashing protection | Yes | Nightly |
66-
| Forward-edge control flow protection | Yes | Nightly |
67-
| Backward-edge control flow protection (e.g., shadow and safe stack) | Yes | Nightly |
57+
| Exploit mitigation | Supported | Enabled by default | Since |
58+
| - | - | - | - |
59+
| Position-independent executable | Yes | Yes | 0.12.0 (2014-10-09) |
60+
| Integer overflow checks | Yes | (enabled when debug assertions are enabled, and disabled when debug assertions are disabled) | 1.1.0 (2015-06-25) |
61+
| Non-executable memory regions | Yes | Yes | 1.8.0 (2016-04-14) |
62+
| Stack clashing protection | Yes | Yes | 1.20.0 (2017-08-31) |
63+
| Read-only relocations and immediate binding | Yes | Yes | 1.21.0 (2017-10-12) |
64+
| Heap corruption protection | Yes | Yes | 1.32.0 (2019-01-17) (via operating system default or specified allocator) |
65+
| Stack smashing protection | Yes | No, `-Z stack-protector` | Nightly |
66+
| Forward-edge control flow protection | Yes | No, `-Z sanitizer=cfi` | Nightly |
67+
| Backward-edge control flow protection (e.g., shadow and safe stack) | Yes | No, `-Z sanitizer=shadow-call-stack,safestack` | Nightly |
6868

6969
[^all-targets]: See <https://github.com/rust-lang/rust/tree/master/compiler/rustc_target/src/spec>
7070
for a list of targets and their default options.

0 commit comments

Comments
 (0)