Skip to content

Commit e1fcc4d

Browse files
committed
Merge remote-tracking branch 'stable/linux-6.5.y' into v6.5+
2 parents 4eae25a + 121c6ad commit e1fcc4d

187 files changed

Lines changed: 2079 additions & 999 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Documentation/arch/arm64/silicon-errata.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ stable kernels.
6363
+----------------+-----------------+-----------------+-----------------------------+
6464
| ARM | Cortex-A510 | #1902691 | ARM64_ERRATUM_1902691 |
6565
+----------------+-----------------+-----------------+-----------------------------+
66+
| ARM | Cortex-A520 | #2966298 | ARM64_ERRATUM_2966298 |
67+
+----------------+-----------------+-----------------+-----------------------------+
6668
| ARM | Cortex-A53 | #826319 | ARM64_ERRATUM_826319 |
6769
+----------------+-----------------+-----------------+-----------------------------+
6870
| ARM | Cortex-A53 | #827319 | ARM64_ERRATUM_827319 |

Documentation/networking/ip-sysctl.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2287,6 +2287,14 @@ accept_ra_min_hop_limit - INTEGER
22872287

22882288
Default: 1
22892289

2290+
accept_ra_min_lft - INTEGER
2291+
Minimum acceptable lifetime value in Router Advertisement.
2292+
2293+
RA sections with a lifetime less than this value shall be
2294+
ignored. Zero lifetimes stay unaffected.
2295+
2296+
Default: 0
2297+
22902298
accept_ra_pinfo - BOOLEAN
22912299
Learn Prefix Information in Router Advertisement.
22922300

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0
22
VERSION = 6
33
PATCHLEVEL = 5
4-
SUBLEVEL = 6
4+
SUBLEVEL = 7
55
EXTRAVERSION =
66
NAME = Hurr durr I'ma ninja sloth
77

arch/arm64/Kconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,6 +1038,19 @@ config ARM64_ERRATUM_2645198
10381038

10391039
If unsure, say Y.
10401040

1041+
config ARM64_ERRATUM_2966298
1042+
bool "Cortex-A520: 2966298: workaround for speculatively executed unprivileged load"
1043+
default y
1044+
help
1045+
This option adds the workaround for ARM Cortex-A520 erratum 2966298.
1046+
1047+
On an affected Cortex-A520 core, a speculatively executed unprivileged
1048+
load might leak data from a privileged level via a cache side channel.
1049+
1050+
Work around this problem by executing a TLBI before returning to EL0.
1051+
1052+
If unsure, say Y.
1053+
10411054
config CAVIUM_ERRATUM_22375
10421055
bool "Cavium erratum 22375, 24313"
10431056
default y

arch/arm64/include/asm/cpufeature.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ static inline bool supports_clearbhb(int scope)
663663
isar2 = read_sanitised_ftr_reg(SYS_ID_AA64ISAR2_EL1);
664664

665665
return cpuid_feature_extract_unsigned_field(isar2,
666-
ID_AA64ISAR2_EL1_BC_SHIFT);
666+
ID_AA64ISAR2_EL1_CLRBHB_SHIFT);
667667
}
668668

669669
const struct cpumask *system_32bit_el0_cpumask(void);

arch/arm64/include/asm/cputype.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
#define ARM_CPU_PART_CORTEX_A78AE 0xD42
8080
#define ARM_CPU_PART_CORTEX_X1 0xD44
8181
#define ARM_CPU_PART_CORTEX_A510 0xD46
82+
#define ARM_CPU_PART_CORTEX_A520 0xD80
8283
#define ARM_CPU_PART_CORTEX_A710 0xD47
8384
#define ARM_CPU_PART_CORTEX_A715 0xD4D
8485
#define ARM_CPU_PART_CORTEX_X2 0xD48
@@ -148,6 +149,7 @@
148149
#define MIDR_CORTEX_A78AE MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A78AE)
149150
#define MIDR_CORTEX_X1 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_X1)
150151
#define MIDR_CORTEX_A510 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A510)
152+
#define MIDR_CORTEX_A520 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A520)
151153
#define MIDR_CORTEX_A710 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A710)
152154
#define MIDR_CORTEX_A715 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A715)
153155
#define MIDR_CORTEX_X2 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_X2)

arch/arm64/include/asm/hwcap.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@
138138
#define KERNEL_HWCAP_SME_B16B16 __khwcap2_feature(SME_B16B16)
139139
#define KERNEL_HWCAP_SME_F16F16 __khwcap2_feature(SME_F16F16)
140140
#define KERNEL_HWCAP_MOPS __khwcap2_feature(MOPS)
141+
#define KERNEL_HWCAP_HBC __khwcap2_feature(HBC)
141142

142143
/*
143144
* This yields a mask that user programs can use to figure out what

arch/arm64/include/uapi/asm/hwcap.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,6 @@
103103
#define HWCAP2_SME_B16B16 (1UL << 41)
104104
#define HWCAP2_SME_F16F16 (1UL << 42)
105105
#define HWCAP2_MOPS (1UL << 43)
106+
#define HWCAP2_HBC (1UL << 44)
106107

107108
#endif /* _UAPI__ASM_HWCAP_H */

arch/arm64/kernel/cpu_errata.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -730,6 +730,14 @@ const struct arm64_cpu_capabilities arm64_errata[] = {
730730
.cpu_enable = cpu_clear_bf16_from_user_emulation,
731731
},
732732
#endif
733+
#ifdef CONFIG_ARM64_ERRATUM_2966298
734+
{
735+
.desc = "ARM erratum 2966298",
736+
.capability = ARM64_WORKAROUND_2966298,
737+
/* Cortex-A520 r0p0 - r0p1 */
738+
ERRATA_MIDR_REV_RANGE(MIDR_CORTEX_A520, 0, 0, 1),
739+
},
740+
#endif
733741
#ifdef CONFIG_AMPERE_ERRATUM_AC03_CPU_38
734742
{
735743
.desc = "AmpereOne erratum AC03_CPU_38",

arch/arm64/kernel/cpufeature.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ static const struct arm64_ftr_bits ftr_id_aa64isar1[] = {
222222
static const struct arm64_ftr_bits ftr_id_aa64isar2[] = {
223223
ARM64_FTR_BITS(FTR_VISIBLE, FTR_NONSTRICT, FTR_LOWER_SAFE, ID_AA64ISAR2_EL1_CSSC_SHIFT, 4, 0),
224224
ARM64_FTR_BITS(FTR_VISIBLE, FTR_NONSTRICT, FTR_LOWER_SAFE, ID_AA64ISAR2_EL1_RPRFM_SHIFT, 4, 0),
225-
ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_HIGHER_SAFE, ID_AA64ISAR2_EL1_BC_SHIFT, 4, 0),
225+
ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, ID_AA64ISAR2_EL1_CLRBHB_SHIFT, 4, 0),
226+
ARM64_FTR_BITS(FTR_VISIBLE, FTR_STRICT, FTR_LOWER_SAFE, ID_AA64ISAR2_EL1_BC_SHIFT, 4, 0),
226227
ARM64_FTR_BITS(FTR_VISIBLE, FTR_STRICT, FTR_LOWER_SAFE, ID_AA64ISAR2_EL1_MOPS_SHIFT, 4, 0),
227228
ARM64_FTR_BITS(FTR_VISIBLE_IF_IS_ENABLED(CONFIG_ARM64_PTR_AUTH),
228229
FTR_STRICT, FTR_EXACT, ID_AA64ISAR2_EL1_APA3_SHIFT, 4, 0),
@@ -2844,6 +2845,7 @@ static const struct arm64_cpu_capabilities arm64_elf_hwcaps[] = {
28442845
HWCAP_CAP(ID_AA64ISAR2_EL1, RPRES, IMP, CAP_HWCAP, KERNEL_HWCAP_RPRES),
28452846
HWCAP_CAP(ID_AA64ISAR2_EL1, WFxT, IMP, CAP_HWCAP, KERNEL_HWCAP_WFXT),
28462847
HWCAP_CAP(ID_AA64ISAR2_EL1, MOPS, IMP, CAP_HWCAP, KERNEL_HWCAP_MOPS),
2848+
HWCAP_CAP(ID_AA64ISAR2_EL1, BC, IMP, CAP_HWCAP, KERNEL_HWCAP_HBC),
28472849
#ifdef CONFIG_ARM64_SME
28482850
HWCAP_CAP(ID_AA64PFR1_EL1, SME, IMP, CAP_HWCAP, KERNEL_HWCAP_SME),
28492851
HWCAP_CAP(ID_AA64SMFR0_EL1, FA64, IMP, CAP_HWCAP, KERNEL_HWCAP_SME_FA64),

0 commit comments

Comments
 (0)