Skip to content

Commit 75b9cee

Browse files
committed
Merge remote-tracking branch 'stable/linux-6.14.y' into v6.14+
2 parents bc01d52 + aeaee19 commit 75b9cee

323 files changed

Lines changed: 3670 additions & 2042 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/admin-guide/kernel-parameters.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7255,6 +7255,8 @@
72557255
This is just one of many ways that can clear memory. Make sure your system
72567256
keeps the content of memory across reboots before relying on this option.
72577257

7258+
NB: Both the mapped address and size must be page aligned for the architecture.
7259+
72587260
See also Documentation/trace/debugging.rst
72597261

72607262

Documentation/bpf/bpf_devel_QA.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,14 @@ In case of new BPF instructions, once the changes have been accepted
382382
into the Linux kernel, please implement support into LLVM's BPF back
383383
end. See LLVM_ section below for further information.
384384

385+
Q: What "BPF_INTERNAL" symbol namespace is for?
386+
-----------------------------------------------
387+
A: Symbols exported as BPF_INTERNAL can only be used by BPF infrastructure
388+
like preload kernel modules with light skeleton. Most symbols outside
389+
of BPF_INTERNAL are not expected to be used by code outside of BPF either.
390+
Symbols may lack the designation because they predate the namespaces,
391+
or due to an oversight.
392+
385393
Stable submission
386394
=================
387395

Documentation/trace/debugging.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ kernel, so only the same kernel is guaranteed to work if the mapping is
136136
preserved. Switching to a different kernel version may find a different
137137
layout and mark the buffer as invalid.
138138

139+
NB: Both the mapped address and size must be page aligned for the architecture.
140+
139141
Using trace_printk() in the boot instance
140142
-----------------------------------------
141143
By default, the content of trace_printk() goes into the top level tracing

Makefile

Lines changed: 2 additions & 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 = 14
4-
SUBLEVEL = 4
4+
SUBLEVEL = 5
55
EXTRAVERSION =
66
NAME = Baby Opossum Posse
77

@@ -1069,6 +1069,7 @@ KBUILD_CFLAGS += -fno-builtin-wcslen
10691069
# change __FILE__ to the relative path to the source directory
10701070
ifdef building_out_of_srctree
10711071
KBUILD_CPPFLAGS += $(call cc-option,-fmacro-prefix-map=$(srcroot)/=)
1072+
KBUILD_RUSTFLAGS += --remap-path-prefix=$(srcroot)/=
10721073
endif
10731074

10741075
# include additional Makefiles when needed

arch/arm/crypto/Kconfig

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@
33
menu "Accelerated Cryptographic Algorithms for CPU (arm)"
44

55
config CRYPTO_CURVE25519_NEON
6-
tristate "Public key crypto: Curve25519 (NEON)"
6+
tristate
77
depends on KERNEL_MODE_NEON
8+
select CRYPTO_KPP
89
select CRYPTO_LIB_CURVE25519_GENERIC
910
select CRYPTO_ARCH_HAVE_LIB_CURVE25519
11+
default CRYPTO_LIB_CURVE25519_INTERNAL
1012
help
1113
Curve25519 algorithm
1214

@@ -45,9 +47,10 @@ config CRYPTO_NHPOLY1305_NEON
4547
- NEON (Advanced SIMD) extensions
4648

4749
config CRYPTO_POLY1305_ARM
48-
tristate "Hash functions: Poly1305 (NEON)"
50+
tristate
4951
select CRYPTO_HASH
5052
select CRYPTO_ARCH_HAVE_LIB_POLY1305
53+
default CRYPTO_LIB_POLY1305_INTERNAL
5154
help
5255
Poly1305 authenticator algorithm (RFC7539)
5356

@@ -212,9 +215,10 @@ config CRYPTO_AES_ARM_CE
212215
- ARMv8 Crypto Extensions
213216

214217
config CRYPTO_CHACHA20_NEON
215-
tristate "Ciphers: ChaCha20, XChaCha20, XChaCha12 (NEON)"
218+
tristate
216219
select CRYPTO_SKCIPHER
217220
select CRYPTO_ARCH_HAVE_LIB_CHACHA
221+
default CRYPTO_LIB_CHACHA_INTERNAL
218222
help
219223
Length-preserving ciphers: ChaCha20, XChaCha20, and XChaCha12
220224
stream cipher algorithms

arch/arm64/crypto/Kconfig

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,11 @@ config CRYPTO_NHPOLY1305_NEON
2626
- NEON (Advanced SIMD) extensions
2727

2828
config CRYPTO_POLY1305_NEON
29-
tristate "Hash functions: Poly1305 (NEON)"
29+
tristate
3030
depends on KERNEL_MODE_NEON
3131
select CRYPTO_HASH
3232
select CRYPTO_ARCH_HAVE_LIB_POLY1305
33+
default CRYPTO_LIB_POLY1305_INTERNAL
3334
help
3435
Poly1305 authenticator algorithm (RFC7539)
3536

@@ -186,11 +187,12 @@ config CRYPTO_AES_ARM64_NEON_BLK
186187
- NEON (Advanced SIMD) extensions
187188

188189
config CRYPTO_CHACHA20_NEON
189-
tristate "Ciphers: ChaCha (NEON)"
190+
tristate
190191
depends on KERNEL_MODE_NEON
191192
select CRYPTO_SKCIPHER
192193
select CRYPTO_LIB_CHACHA_GENERIC
193194
select CRYPTO_ARCH_HAVE_LIB_CHACHA
195+
default CRYPTO_LIB_CHACHA_INTERNAL
194196
help
195197
Length-preserving ciphers: ChaCha20, XChaCha20, and XChaCha12
196198
stream cipher algorithms

arch/loongarch/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ config LOONGARCH
7171
select ARCH_SUPPORTS_RT
7272
select ARCH_USE_BUILTIN_BSWAP
7373
select ARCH_USE_CMPXCHG_LOCKREF
74+
select ARCH_USE_MEMTEST
7475
select ARCH_USE_QUEUED_RWLOCKS
7576
select ARCH_USE_QUEUED_SPINLOCKS
7677
select ARCH_WANT_DEFAULT_BPF_JIT

arch/loongarch/include/asm/fpu.h

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,29 @@
2222
struct sigcontext;
2323

2424
#define kernel_fpu_available() cpu_has_fpu
25-
extern void kernel_fpu_begin(void);
26-
extern void kernel_fpu_end(void);
27-
28-
extern void _init_fpu(unsigned int);
29-
extern void _save_fp(struct loongarch_fpu *);
30-
extern void _restore_fp(struct loongarch_fpu *);
31-
32-
extern void _save_lsx(struct loongarch_fpu *fpu);
33-
extern void _restore_lsx(struct loongarch_fpu *fpu);
34-
extern void _init_lsx_upper(void);
35-
extern void _restore_lsx_upper(struct loongarch_fpu *fpu);
36-
37-
extern void _save_lasx(struct loongarch_fpu *fpu);
38-
extern void _restore_lasx(struct loongarch_fpu *fpu);
39-
extern void _init_lasx_upper(void);
40-
extern void _restore_lasx_upper(struct loongarch_fpu *fpu);
25+
26+
void kernel_fpu_begin(void);
27+
void kernel_fpu_end(void);
28+
29+
asmlinkage void _init_fpu(unsigned int);
30+
asmlinkage void _save_fp(struct loongarch_fpu *);
31+
asmlinkage void _restore_fp(struct loongarch_fpu *);
32+
asmlinkage int _save_fp_context(void __user *fpregs, void __user *fcc, void __user *csr);
33+
asmlinkage int _restore_fp_context(void __user *fpregs, void __user *fcc, void __user *csr);
34+
35+
asmlinkage void _save_lsx(struct loongarch_fpu *fpu);
36+
asmlinkage void _restore_lsx(struct loongarch_fpu *fpu);
37+
asmlinkage void _init_lsx_upper(void);
38+
asmlinkage void _restore_lsx_upper(struct loongarch_fpu *fpu);
39+
asmlinkage int _save_lsx_context(void __user *fpregs, void __user *fcc, void __user *fcsr);
40+
asmlinkage int _restore_lsx_context(void __user *fpregs, void __user *fcc, void __user *fcsr);
41+
42+
asmlinkage void _save_lasx(struct loongarch_fpu *fpu);
43+
asmlinkage void _restore_lasx(struct loongarch_fpu *fpu);
44+
asmlinkage void _init_lasx_upper(void);
45+
asmlinkage void _restore_lasx_upper(struct loongarch_fpu *fpu);
46+
asmlinkage int _save_lasx_context(void __user *fpregs, void __user *fcc, void __user *fcsr);
47+
asmlinkage int _restore_lasx_context(void __user *fpregs, void __user *fcc, void __user *fcsr);
4148

4249
static inline void enable_lsx(void);
4350
static inline void disable_lsx(void);

arch/loongarch/include/asm/lbt.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@
1212
#include <asm/loongarch.h>
1313
#include <asm/processor.h>
1414

15-
extern void _init_lbt(void);
16-
extern void _save_lbt(struct loongarch_lbt *);
17-
extern void _restore_lbt(struct loongarch_lbt *);
15+
asmlinkage void _init_lbt(void);
16+
asmlinkage void _save_lbt(struct loongarch_lbt *);
17+
asmlinkage void _restore_lbt(struct loongarch_lbt *);
18+
asmlinkage int _save_lbt_context(void __user *regs, void __user *eflags);
19+
asmlinkage int _restore_lbt_context(void __user *regs, void __user *eflags);
20+
asmlinkage int _save_ftop_context(void __user *ftop);
21+
asmlinkage int _restore_ftop_context(void __user *ftop);
1822

1923
static inline int is_lbt_enabled(void)
2024
{

arch/loongarch/include/asm/ptrace.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ struct pt_regs {
3333
unsigned long __last[];
3434
} __aligned(8);
3535

36-
static inline int regs_irqs_disabled(struct pt_regs *regs)
36+
static __always_inline bool regs_irqs_disabled(struct pt_regs *regs)
3737
{
38-
return arch_irqs_disabled_flags(regs->csr_prmd);
38+
return !(regs->csr_prmd & CSR_PRMD_PIE);
3939
}
4040

4141
static inline unsigned long kernel_stack_pointer(struct pt_regs *regs)

0 commit comments

Comments
 (0)