Commit afacb4a
authored
Remove pointer authentication from fibers (#13118)
* Remove pointer authentication from fibers
This commit removes the pointer authentication instructions from our
fiber implementation. There's more rationale in #12778 for this but the
basic problems are:
* Android uses the "A" key to sign return addresses, but the "A" key
differs between threads. This causes resuming fibers across threads to
crash.
* Rust does not provide the ability to know when pointer authentication
is enabled, nor does it have a way of enabling pointer authentication
for generated code on stable.
* We can't currently find reference documentation for which key should
be used ABI-wise for each target, nor why the Android "A" key is
changing across threads in the same process.
Overall it seems like we're a bit too far out on a limb trying to enable
this. In the future if all Rust code, except this inline assembly, uses
pointer authentication we'll be in a good spot to reevaluate this
perhaps. Until that day though it seems premature to enable this.
Closes #12778
* Fix compile on Windows
prtest:full
* Really fix error on windows1 parent d60f178 commit afacb4a
2 files changed
+22
-63
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
441 | 462 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | 10 | | |
21 | 11 | | |
22 | 12 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | 13 | | |
36 | 14 | | |
37 | 15 | | |
| |||
42 | 20 | | |
43 | 21 | | |
44 | 22 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | 23 | | |
50 | 24 | | |
51 | 25 | | |
| |||
80 | 54 | | |
81 | 55 | | |
82 | 56 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | 57 | | |
88 | 58 | | |
89 | 59 | | |
| |||
133 | 103 | | |
134 | 104 | | |
135 | 105 | | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
| 106 | + | |
155 | 107 | | |
156 | 108 | | |
157 | 109 | | |
158 | 110 | | |
159 | 111 | | |
160 | 112 | | |
161 | 113 | | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | 114 | | |
176 | 115 | | |
177 | 116 | | |
| |||
188 | 127 | | |
189 | 128 | | |
190 | 129 | | |
191 | | - | |
192 | 130 | | |
193 | 131 | | |
194 | 132 | | |
| |||
0 commit comments