Skip to content

Commit f76ae8d

Browse files
committed
arm64: errata: Mitigate TLBI errata on various Arm CPUs
jira VULN-XXXXXX cve CVE-2025-10263 commit-author Mark Rutland <mark.rutland@arm.com> commit - commit-source https://lore.kernel.org/all/20260609101203.1512409-4-mark.rutland@arm.com/ upstream-diff silicon-errata.rst at different path (Documentation/arm64/ vs Documentation/arch/arm64/) and required manual conflict resolution due to condensed table formatting and missing entries in our branch. Content is identical. A number of CPUs developed by Arm suffer from errata whereby a broadcast TLBI;DSB sequence may complete before the global observation of writes which are translated by an affected TLB entry. These errata ONLY affect the completion of memory accesses which have been translated by an invalidated TLB entry, and these errata DO NOT affect the actual invalidation of TLB entries. TLB entries are removed correctly. This issue has been assigned CVE ID CVE-2025-10263. To mitigate this issue, Arm recommends that software follows any affected TLBI;DSB sequence with an additional TLBI;DSB, which will ensure that all memory write effects affected by the first TLBI have been globally observed. The additional TLBI can use any operation that is broadcast to affected CPUs, and the additional DSB can use any option that is sufficient to complete the additional TLBI. The ARM64_WORKAROUND_REPEAT_TLBI workaround is sufficient to mitigate the issue. Enable this workaround for affected CPUs, and update the silicon errata documentation accordingly. Note that due to the manner in which Arm develops IP and tracks errata, some CPUs share a common erratum number. Signed-off-by: Mark Rutland <mark.rutland@arm.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will@kernel.org> Signed-off-by: Brett Mastbergen <bmastbergen@ciq.com>
1 parent b906aa7 commit f76ae8d

3 files changed

Lines changed: 108 additions & 2 deletions

File tree

Documentation/arm64/silicon-errata.rst

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,20 @@ stable kernels.
109109
+----------------+-----------------+-----------------+-----------------------------+
110110
| ARM | Cortex-A76 | #1463225 | ARM64_ERRATUM_1463225 |
111111
+----------------+-----------------+-----------------+-----------------------------+
112+
| ARM | Cortex-A76 | #4193800 | ARM64_ERRATUM_4118414 |
113+
+----------------+-----------------+-----------------+-----------------------------+
114+
| ARM | Cortex-A76AE | #4193801 | ARM64_ERRATUM_4118414 |
115+
+----------------+-----------------+-----------------+-----------------------------+
112116
| ARM | Cortex-A77 | #1508412 | ARM64_ERRATUM_1508412 |
113117
+----------------+-----------------+-----------------+-----------------------------+
118+
| ARM | Cortex-A77 | #4193798 | ARM64_ERRATUM_4118414 |
119+
+----------------+-----------------+-----------------+-----------------------------+
120+
| ARM | Cortex-A78 | #4193791 | ARM64_ERRATUM_4118414 |
121+
+----------------+-----------------+-----------------+-----------------------------+
122+
| ARM | Cortex-A78AE | #4193793 | ARM64_ERRATUM_4118414 |
123+
+----------------+-----------------+-----------------+-----------------------------+
124+
| ARM | Cortex-A78C | #4193794 | ARM64_ERRATUM_4118414 |
125+
+----------------+-----------------+-----------------+-----------------------------+
114126
| ARM | Cortex-A510 | #2051678 | ARM64_ERRATUM_2051678 |
115127
+----------------+-----------------+-----------------+-----------------------------+
116128
| ARM | Cortex-A510 | #2077057 | ARM64_ERRATUM_2077057 |
@@ -127,22 +139,52 @@ stable kernels.
127139
+----------------+-----------------+-----------------+-----------------------------+
128140
| ARM | Cortex-A715 | #2645198 | ARM64_ERRATUM_2645198 |
129141
+----------------+-----------------+-----------------+-----------------------------+
142+
| ARM | Cortex-A710 | #4193788 | ARM64_ERRATUM_4118414 |
143+
+----------------+-----------------+-----------------+-----------------------------+
144+
| ARM | Cortex-X1 | #4193791 | ARM64_ERRATUM_4118414 |
145+
+----------------+-----------------+-----------------+-----------------------------+
146+
| ARM | Cortex-X1C | #4193792 | ARM64_ERRATUM_4118414 |
147+
+----------------+-----------------+-----------------+-----------------------------+
130148
| ARM | Cortex-X2 | #2119858 | ARM64_ERRATUM_2119858 |
131149
+----------------+-----------------+-----------------+-----------------------------+
132150
| ARM | Cortex-X2 | #2224489 | ARM64_ERRATUM_2224489 |
133151
+----------------+-----------------+-----------------+-----------------------------+
152+
| ARM | Cortex-X2 | #4193788 | ARM64_ERRATUM_4118414 |
153+
+----------------+-----------------+-----------------+-----------------------------+
154+
| ARM | Cortex-X3 | #4193786 | ARM64_ERRATUM_4118414 |
155+
+----------------+-----------------+-----------------+-----------------------------+
156+
| ARM | Cortex-X4 | #4118414 | ARM64_ERRATUM_4118414 |
157+
+----------------+-----------------+-----------------+-----------------------------+
158+
| ARM | Cortex-X925 | #4193781 | ARM64_ERRATUM_4118414 |
159+
+----------------+-----------------+-----------------+-----------------------------+
134160
| ARM | Neoverse-N1 | #1188873,1418040| ARM64_ERRATUM_1418040 |
135161
+----------------+-----------------+-----------------+-----------------------------+
136162
| ARM | Neoverse-N1 | #1349291 | N/A |
137163
+----------------+-----------------+-----------------+-----------------------------+
138164
| ARM | Neoverse-N1 | #1542419 | ARM64_ERRATUM_1542419 |
139165
+----------------+-----------------+-----------------+-----------------------------+
166+
| ARM | Neoverse-N1 | #4193800 | ARM64_ERRATUM_4118414 |
167+
+----------------+-----------------+-----------------+-----------------------------+
140168
| ARM | Neoverse-N2 | #2139208 | ARM64_ERRATUM_2139208 |
141169
+----------------+-----------------+-----------------+-----------------------------+
142170
| ARM | Neoverse-N2 | #2067961 | ARM64_ERRATUM_2067961 |
143171
+----------------+-----------------+-----------------+-----------------------------+
144172
| ARM | Neoverse-N2 | #2253138 | ARM64_ERRATUM_2253138 |
145173
+----------------+-----------------+-----------------+-----------------------------+
174+
| ARM | Neoverse-N2 | #4193789 | ARM64_ERRATUM_4118414 |
175+
+----------------+-----------------+-----------------+-----------------------------+
176+
| ARM | Neoverse-V2 | #4193787 | ARM64_ERRATUM_4118414 |
177+
+----------------+-----------------+-----------------+-----------------------------+
178+
| ARM | Neoverse-V3 | #4193784 | ARM64_ERRATUM_4118414 |
179+
+----------------+-----------------+-----------------+-----------------------------+
180+
| ARM | Neoverse-V3AE | #4193784 | ARM64_ERRATUM_4118414 |
181+
+----------------+-----------------+-----------------+-----------------------------+
182+
| ARM | Neoverse-V1 | #4193790 | ARM64_ERRATUM_4118414 |
183+
+----------------+-----------------+-----------------+-----------------------------+
184+
| ARM | C1-Premium | #4193780 | ARM64_ERRATUM_4118414 |
185+
+----------------+-----------------+-----------------+-----------------------------+
186+
| ARM | C1-Ultra | #4193780 | ARM64_ERRATUM_4118414 |
187+
+----------------+-----------------+-----------------+-----------------------------+
146188
| ARM | MMU-500 | #841119,826419 | N/A |
147189
+----------------+-----------------+-----------------+-----------------------------+
148190
| ARM | MMU-600 | #1076982,1209401| N/A |

arch/arm64/Kconfig

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,6 +1021,42 @@ config ARM64_ERRATUM_2966298
10211021

10221022
If unsure, say Y.
10231023

1024+
config ARM64_ERRATUM_4118414
1025+
bool "Cortex-*/Neoverse-*/C1-*: Completion of affected memory accesses might not be guaranteed by completion of a TLBI"
1026+
default y
1027+
select ARM64_WORKAROUND_REPEAT_TLBI
1028+
help
1029+
This option adds a workaround for the following errata:
1030+
1031+
* ARM C1-Premium erratum 4193780
1032+
* ARM C1-Ultra erratum 4193780
1033+
* ARM Cortex-A76 erratum 4193800
1034+
* ARM Cortex-A76AE erratum 4193801
1035+
* ARM Cortex-A77 erratum 4193798
1036+
* ARM Cortex-A78 erratum 4193791
1037+
* ARM Cortex-A78AE erratum 4193793
1038+
* ARM Cortex-A78C erratum 4193794
1039+
* ARM Cortex-A710 erratum 4193788
1040+
* ARM Cortex-X1 erratum 4193791
1041+
* ARM Cortex-X1C erratum 4193792
1042+
* ARM Cortex-X2 erratum 4193788
1043+
* ARM Cortex-X3 erratum 4193786
1044+
* ARM Cortex-X4 erratum 4118414
1045+
* ARM Cortex-X925 erratum 4193781
1046+
* ARM Neoverse-N1 erratum 4193800
1047+
* ARM Neoverse-N2 erratum 4193789
1048+
* ARM Neoverse-V1 erratum 4193790
1049+
* ARM Neoverse-V2 erratum 4193787
1050+
* ARM Neoverse-V3 erratum 4193784
1051+
* ARM Neoverse-V3AE erratum 4193784
1052+
1053+
On affected cores, some memory accesses might not be completed by
1054+
broadcast TLB invalidation.
1055+
1056+
This issue is also known as CVE-2025-10263.
1057+
1058+
If unsure, say Y.
1059+
10241060
config CAVIUM_ERRATUM_22375
10251061
bool "Cavium erratum 22375, 24313"
10261062
default y

arch/arm64/kernel/cpu_errata.c

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,35 @@ static const struct arm64_cpu_capabilities arm64_repeat_tlbi_list[] = {
241241
ERRATA_MIDR_RANGE(MIDR_CORTEX_A510, 0, 0, 1, 1),
242242
},
243243
#endif
244-
{},
244+
#ifdef CONFIG_ARM64_ERRATUM_4118414
245+
{
246+
ERRATA_MIDR_RANGE_LIST(((const struct midr_range[]) {
247+
MIDR_ALL_VERSIONS(MIDR_C1_PREMIUM),
248+
MIDR_ALL_VERSIONS(MIDR_C1_ULTRA),
249+
MIDR_ALL_VERSIONS(MIDR_CORTEX_A76),
250+
MIDR_ALL_VERSIONS(MIDR_CORTEX_A76AE),
251+
MIDR_ALL_VERSIONS(MIDR_CORTEX_A77),
252+
MIDR_ALL_VERSIONS(MIDR_CORTEX_A78),
253+
MIDR_ALL_VERSIONS(MIDR_CORTEX_A78AE),
254+
MIDR_ALL_VERSIONS(MIDR_CORTEX_A78C),
255+
MIDR_ALL_VERSIONS(MIDR_CORTEX_A710),
256+
MIDR_ALL_VERSIONS(MIDR_CORTEX_X1),
257+
MIDR_ALL_VERSIONS(MIDR_CORTEX_X1C),
258+
MIDR_ALL_VERSIONS(MIDR_CORTEX_X2),
259+
MIDR_ALL_VERSIONS(MIDR_CORTEX_X3),
260+
MIDR_ALL_VERSIONS(MIDR_CORTEX_X4),
261+
MIDR_ALL_VERSIONS(MIDR_CORTEX_X925),
262+
MIDR_ALL_VERSIONS(MIDR_NEOVERSE_N1),
263+
MIDR_ALL_VERSIONS(MIDR_NEOVERSE_N2),
264+
MIDR_ALL_VERSIONS(MIDR_NEOVERSE_V1),
265+
MIDR_ALL_VERSIONS(MIDR_NEOVERSE_V2),
266+
MIDR_ALL_VERSIONS(MIDR_NEOVERSE_V3),
267+
MIDR_ALL_VERSIONS(MIDR_NEOVERSE_V3AE),
268+
{}
269+
})),
270+
},
271+
#endif
272+
{}
245273
};
246274
#endif
247275

@@ -520,7 +548,7 @@ const struct arm64_cpu_capabilities arm64_errata[] = {
520548
#endif
521549
#ifdef CONFIG_ARM64_WORKAROUND_REPEAT_TLBI
522550
{
523-
.desc = "Qualcomm erratum 1009, or ARM erratum 1286807, 2441009",
551+
.desc = "Broken broadcast TLBI completion",
524552
.capability = ARM64_WORKAROUND_REPEAT_TLBI,
525553
.type = ARM64_CPUCAP_LOCAL_CPU_ERRATUM,
526554
.matches = cpucap_multi_entry_cap_matches,

0 commit comments

Comments
 (0)