Commit f1c82d8
Enable Intel CET on x86-64 only
Before, Intel CET was enabled for both 32-bit and 64-bit targets.
However, this made sudo incompatible with semi-i686 non-Intel and non-AMD
processors, such as DM&P Vortex86 processors that are still in production,
and legacy VIA/Geode processors. On those, generated ENDBR32 instructions
are parsed as invalid opcodes, crashing sudo with a SIGILL.
Even for modern processors that support it, enabling it does not enhance
security as no kernel in 32-bit mode supports Intel CET (neither Linux nor
FreeBSD nor OpenBSD), so enabling it only increases the binary size at best
and prevents entirely from running at worst.
This commit changes the compilation process to enable it only on x86-64
targets.1 parent e2a2982 commit f1c82d8
1 file changed
+11
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
108 | 113 | | |
109 | | - | |
| 114 | + | |
110 | 115 | | |
111 | 116 | | |
112 | 117 | | |
| |||
0 commit comments