Skip to contentSkip to conversation

Linux 6.8.5

DISCUSSION Greg Kroah-Hartman 1 participant 2 messages Apr 10, 2024 Stable branch

lore
Share & tools
lore
author maintainer
#1 lore raw
In reply to Greg Kroah-Hartman
Documentation/admin-guide/hw-vuln/spectre.rst +42 -6
index 32a8893e5617..9edb2860a3e1 100644
@@ -138,11 +138,10 @@ associated with the source address of the indirect branch. Specifically,
 the BHB might be shared across privilege levels even in the presence of
 Enhanced IBRS.
 
-Currently the only known real-world BHB attack vector is via
-unprivileged eBPF. Therefore, it's highly recommended to not enable
-unprivileged eBPF, especially when eIBRS is used (without retpolines).
-For a full mitigation against BHB attacks, it's recommended to use
-retpolines (or eIBRS combined with retpolines).
+Previously the only known real-world BHB attack vector was via unprivileged
+eBPF. Further research has found attacks that don't require unprivileged eBPF.
+For a full mitigation against BHB attacks it is recommended to set BHI_DIS_S or
+use the BHB clearing sequence.
 
 Attack scenarios
 ----------------
@@ -430,6 +429,23 @@ The possible values in this file are:
   'PBRSB-eIBRS: Not affected'  CPU is not affected by PBRSB
   ===========================  =======================================================
 
+  - Branch History Injection (BHI) protection status:
+
+.. list-table::
+
+ * - BHI: Not affected
+   - System is not affected
+ * - BHI: Retpoline
+   - System is protected by retpoline
+ * - BHI: BHI_DIS_S
+   - System is protected by BHI_DIS_S
+ * - BHI: SW loop; KVM SW loop
+   - System is protected by software clearing sequence
+ * - BHI: Syscall hardening
+   - Syscalls are hardened against BHI
+ * - BHI: Syscall hardening; KVM: SW loop
+   - System is protected from userspace attacks by syscall hardening; KVM is protected by software clearing sequence
+
 Full mitigation might require a microcode update from the CPU
 vendor. When the necessary microcode is not available, the kernel will
 report vulnerability.
@@ -484,7 +500,11 @@ Spectre variant 2
 
    Systems which support enhanced IBRS (eIBRS) enable IBRS protection once at
    boot, by setting the IBRS bit, and they're automatically protected against
-   Spectre v2 variant attacks.
+   some Spectre v2 variant attacks. The BHB can still influence the choice of
+   indirect branch predictor entry, and although branch predictor entries are
+   isolated between modes when eIBRS is enabled, the BHB itself is not isolated
+   between modes. Systems which support BHI_DIS_S will set it to protect against
+   BHI attacks.
 
    On Intel's enhanced IBRS systems, this includes cross-thread branch target
    injections on SMT systems (STIBP). In other words, Intel eIBRS enables
@@ -638,6 +658,22 @@ kernel command line.
 		spectre_v2=off. Spectre variant 1 mitigations
 		cannot be disabled.
 
+	spectre_bhi=
+
+		[X86] Control mitigation of Branch History Injection
+		(BHI) vulnerability. Syscalls are hardened against BHI
+		regardless of this setting. This setting affects the deployment
+		of the HW BHI control and the SW BHB clearing sequence.
+
+		on
+			unconditionally enable.
+		off
+			unconditionally disable.
+		auto
+			enable if hardware mitigation
+			control(BHI_DIS_S) is available, otherwise
+			enable alternate mitigation in KVM.
+
 For spectre_v2_user see Documentation/admin-guide/kernel-parameters.txt
 
 Mitigation selection guide
Documentation/admin-guide/kernel-parameters.txt +12 -0
index d2150bd3acc5..95efaccca453 100644
@@ -6031,6 +6031,18 @@
 	sonypi.*=	[HW] Sony Programmable I/O Control Device driver
 			See Documentation/admin-guide/laptops/sonypi.rst
 
+	spectre_bhi=	[X86] Control mitigation of Branch History Injection
+			(BHI) vulnerability. Syscalls are hardened against BHI
+			reglardless of this setting. This setting affects the
+			deployment of the HW BHI control and the SW BHB
+			clearing sequence.
+
+			on   - unconditionally enable.
+			off  - unconditionally disable.
+			auto - (default) enable hardware mitigation
+			       (BHI_DIS_S) if available, otherwise enable
+			       alternate mitigation in KVM.
+
 	spectre_v2=	[X86] Control mitigation of Spectre variant 2
 			(indirect branch speculation) vulnerability.
 			The default operation protects the kernel from
Makefile +1 -1
index c436247d750c..f29a75b75861 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 6
 PATCHLEVEL = 8
-SUBLEVEL = 4
+SUBLEVEL = 5
 EXTRAVERSION =
 NAME = Hurr durr I'ma ninja sloth
 
arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi +2 -0
index 46aaeba28604..ebe37678102f 100644
@@ -943,6 +943,8 @@ bluetooth: bluetooth {
 		vddrf-supply = <&pp1300_l2c>;
 		vddch0-supply = <&pp3300_l10c>;
 		max-speed = <3200000>;
+
+		qcom,local-bd-address-broken;
 	};
 };
 
arch/arm64/kernel/ptrace.c +1 -4
index e3bef38fc2e2..964d0446dae9 100644
@@ -729,7 +729,6 @@ static void sve_init_header_from_task(struct user_sve_header *header,
 {
 	unsigned int vq;
 	bool active;
-	bool fpsimd_only;
 	enum vec_type task_type;
 
 	memset(header, 0, sizeof(*header));
@@ -745,12 +744,10 @@ static void sve_init_header_from_task(struct user_sve_header *header,
 	case ARM64_VEC_SVE:
 		if (test_tsk_thread_flag(target, TIF_SVE_VL_INHERIT))
 			header->flags |= SVE_PT_VL_INHERIT;
-		fpsimd_only = !test_tsk_thread_flag(target, TIF_SVE);
 		break;
 	case ARM64_VEC_SME:
 		if (test_tsk_thread_flag(target, TIF_SME_VL_INHERIT))
 			header->flags |= SVE_PT_VL_INHERIT;
-		fpsimd_only = false;
 		break;
 	default:
 		WARN_ON_ONCE(1);
@@ -758,7 +755,7 @@ static void sve_init_header_from_task(struct user_sve_header *header,
 	}
 
 	if (active) {
-		if (fpsimd_only) {
+		if (target->thread.fp_type == FP_STATE_FPSIMD) {
 			header->flags |= SVE_PT_REGS_FPSIMD;
 		} else {
 			header->flags |= SVE_PT_REGS_SVE;
arch/arm64/kvm/hyp/nvhe/tlb.c +2 -1
index a60fb13e2192..2fc68da4036d 100644
@@ -154,7 +154,8 @@ void __kvm_tlb_flush_vmid_range(struct kvm_s2_mmu *mmu,
 	/* Switch to requested VMID */
 	__tlb_switch_to_guest(mmu, &cxt, false);
 
-	__flush_s2_tlb_range_op(ipas2e1is, start, pages, stride, 0);
+	__flush_s2_tlb_range_op(ipas2e1is, start, pages, stride,
+				TLBI_TTL_UNKNOWN);
 
 	dsb(ish);
 	__tlbi(vmalle1is);
arch/arm64/kvm/hyp/pgtable.c +7 -4
index ab9d05fcf98b..ce5cef7d73c4 100644
@@ -829,12 +829,15 @@ static bool stage2_try_break_pte(const struct kvm_pgtable_visit_ctx *ctx,
 		 * Perform the appropriate TLB invalidation based on the
 		 * evicted pte value (if any).
 		 */
-		if (kvm_pte_table(ctx->old, ctx->level))
-			kvm_tlb_flush_vmid_range(mmu, ctx->addr,
-						kvm_granule_size(ctx->level));
-		else if (kvm_pte_valid(ctx->old))
+		if (kvm_pte_table(ctx->old, ctx->level)) {
+			u64 size = kvm_granule_size(ctx->level);
+			u64 addr = ALIGN_DOWN(ctx->addr, size);
+
+			kvm_tlb_flush_vmid_range(mmu, addr, size);
+		} else if (kvm_pte_valid(ctx->old)) {
 			kvm_call_hyp(__kvm_tlb_flush_vmid_ipa, mmu,
 				     ctx->addr, ctx->level);
+		}
 	}
 
 	if (stage2_pte_is_counted(ctx->old))
arch/arm64/kvm/hyp/vhe/tlb.c +2 -1
index b32e2940df7d..1a60b95381e8 100644
@@ -171,7 +171,8 @@ void __kvm_tlb_flush_vmid_range(struct kvm_s2_mmu *mmu,
 	/* Switch to requested VMID */
 	__tlb_switch_to_guest(mmu, &cxt);
 
-	__flush_s2_tlb_range_op(ipas2e1is, start, pages, stride, 0);
+	__flush_s2_tlb_range_op(ipas2e1is, start, pages, stride,
+				TLBI_TTL_UNKNOWN);
 
 	dsb(ish);
 	__tlbi(vmalle1is);
arch/arm64/kvm/mmu.c +1 -1
index d14504821b79..92270acfc00d 100644
@@ -1631,7 +1631,7 @@ int kvm_handle_guest_abort(struct kvm_vcpu *vcpu)
 	fault_ipa = kvm_vcpu_get_fault_ipa(vcpu);
 	is_iabt = kvm_vcpu_trap_is_iabt(vcpu);
 
-	if (esr_fsc_is_permission_fault(esr)) {
+	if (esr_fsc_is_translation_fault(esr)) {
 		/* Beyond sanitised PARange (which is the IPA limit) */
 		if (fault_ipa >= BIT_ULL(get_kvm_ipa_limit())) {
 			kvm_inject_size_fault(vcpu);
arch/arm64/net/bpf_jit_comp.c +2 -2
index 8955da5c47cf..00217d8d034b 100644
@@ -876,7 +876,7 @@ static int build_insn(const struct bpf_insn *insn, struct jit_ctx *ctx,
 			emit(A64_UXTH(is64, dst, dst), ctx);
 			break;
 		case 32:
-			emit(A64_REV32(is64, dst, dst), ctx);
+			emit(A64_REV32(0, dst, dst), ctx);
 			/* upper 32 bits already cleared */
 			break;
 		case 64:
@@ -1189,7 +1189,7 @@ static int build_insn(const struct bpf_insn *insn, struct jit_ctx *ctx,
 			} else {
 				emit_a64_mov_i(1, tmp, off, ctx);
 				if (sign_extend)
-					emit(A64_LDRSW(dst, src_adj, off_adj), ctx);
+					emit(A64_LDRSW(dst, src, tmp), ctx);
 				else
 					emit(A64_LDR32(dst, src, tmp), ctx);
 			}
arch/powerpc/mm/book3s64/pgtable.c +1 -1
index 3438ab72c346..d975fb5d7cbe 100644
@@ -130,7 +130,7 @@ void set_pud_at(struct mm_struct *mm, unsigned long addr,
 
 	WARN_ON(pte_hw_valid(pud_pte(*pudp)));
 	assert_spin_locked(pud_lockptr(mm, pudp));
-	WARN_ON(!(pud_large(pud)));
+	WARN_ON(!(pud_leaf(pud)));
 #endif
 	trace_hugepage_set_pud(addr, pud_val(pud));
 	return set_pte_at(mm, addr, pudp_ptep(pudp), pud_pte(pud));
arch/riscv/include/asm/uaccess.h +2 -2
index ec0cab9fbddd..72ec1d9bd3f3 100644
@@ -319,7 +319,7 @@ unsigned long __must_check clear_user(void __user *to, unsigned long n)
 
 #define __get_kernel_nofault(dst, src, type, err_label)			\
 do {									\
-	long __kr_err;							\
+	long __kr_err = 0;						\
 									\
 	__get_user_nocheck(*((type *)(dst)), (type *)(src), __kr_err);	\
 	if (unlikely(__kr_err))						\
@@ -328,7 +328,7 @@ do {									\
 
 #define __put_kernel_nofault(dst, src, type, err_label)			\
 do {									\
-	long __kr_err;							\
+	long __kr_err = 0;						\
 									\
 	__put_user_nocheck(*((type *)(src)), (type *)(dst), __kr_err);	\
 	if (unlikely(__kr_err))						\
arch/riscv/include/uapi/asm/auxvec.h +1 -1
index 10aaa83db89e..95050ebe9ad0 100644
@@ -34,7 +34,7 @@
 #define AT_L3_CACHEGEOMETRY	47
 
 /* entries in ARCH_DLINFO */
-#define AT_VECTOR_SIZE_ARCH	9
+#define AT_VECTOR_SIZE_ARCH	10
 #define AT_MINSIGSTKSZ		51
 
 #endif /* _UAPI_ASM_RISCV_AUXVEC_H */
arch/riscv/kernel/patch.c +8 -0
index 37e87fdcf6a0..30e12b310cab 100644
@@ -80,6 +80,8 @@ static int __patch_insn_set(void *addr, u8 c, size_t len)
 	 */
 	lockdep_assert_held(&text_mutex);
 
+	preempt_disable();
+
 	if (across_pages)
 		patch_map(addr + PAGE_SIZE, FIX_TEXT_POKE1);
 
@@ -92,6 +94,8 @@ static int __patch_insn_set(void *addr, u8 c, size_t len)
 	if (across_pages)
 		patch_unmap(FIX_TEXT_POKE1);
 
+	preempt_enable();
+
 	return 0;
 }
 NOKPROBE_SYMBOL(__patch_insn_set);
@@ -122,6 +126,8 @@ static int __patch_insn_write(void *addr, const void *insn, size_t len)
 	if (!riscv_patch_in_stop_machine)
 		lockdep_assert_held(&text_mutex);
 
+	preempt_disable();
+
 	if (across_pages)
 		patch_map(addr + PAGE_SIZE, FIX_TEXT_POKE1);
 
@@ -134,6 +140,8 @@ static int __patch_insn_write(void *addr, const void *insn, size_t len)
 	if (across_pages)
 		patch_unmap(FIX_TEXT_POKE1);
 
+	preempt_enable();
+
 	return ret;
 }
 NOKPROBE_SYMBOL(__patch_insn_write);
arch/riscv/kernel/process.c +1 -4
index 92922dbd5b5c..e4bc61c4e58a 100644
@@ -27,8 +27,6 @@
 #include <asm/vector.h>
 #include <asm/cpufeature.h>
 
-register unsigned long gp_in_global __asm__("gp");
-
 #if defined(CONFIG_STACKPROTECTOR) && !defined(CONFIG_STACKPROTECTOR_PER_TASK)
 #include <linux/stackprotector.h>
 unsigned long __stack_chk_guard __read_mostly;
@@ -37,7 +35,7 @@ EXPORT_SYMBOL(__stack_chk_guard);
 
 extern asmlinkage void ret_from_fork(void);
 
-void arch_cpu_idle(void)
+void noinstr arch_cpu_idle(void)
 {
 	cpu_do_idle();
 }
@@ -207,7 +205,6 @@ int copy_thread(struct task_struct *p, const struct kernel_clone_args *args)
 	if (unlikely(args->fn)) {
 		/* Kernel thread */
 		memset(childregs, 0, sizeof(struct pt_regs));
-		childregs->gp = gp_in_global;
 		/* Supervisor/Machine, irqs on: */
 		childregs->status = SR_PP | SR_PIE;
 
arch/riscv/kernel/signal.c +8 -7
index 501e66debf69..5a2edd7f027e 100644
@@ -119,6 +119,13 @@ static long __restore_v_state(struct pt_regs *regs, void __user *sc_vec)
 	struct __sc_riscv_v_state __user *state = sc_vec;
 	void __user *datap;
 
+	/*
+	 * Mark the vstate as clean prior performing the actual copy,
+	 * to avoid getting the vstate incorrectly clobbered by the
+	 *  discarded vector state.
+	 */
+	riscv_v_vstate_set_restore(current, regs);
+
 	/* Copy everything of __sc_riscv_v_state except datap. */
 	err = __copy_from_user(&current->thread.vstate, &state->v_state,
 			       offsetof(struct __riscv_v_ext_state, datap));
@@ -133,13 +140,7 @@ static long __restore_v_state(struct pt_regs *regs, void __user *sc_vec)
 	 * Copy the whole vector content from user space datap. Use
 	 * copy_from_user to prevent information leak.
 	 */
-	err = copy_from_user(current->thread.vstate.datap, datap, riscv_v_vsize);
-	if (unlikely(err))
-		return err;
-
-	riscv_v_vstate_set_restore(current, regs);
-
-	return err;
+	return copy_from_user(current->thread.vstate.datap, datap, riscv_v_vsize);
 }
 #else
 #define save_v_state(task, regs) (0)
arch/riscv/kernel/traps.c +1 -1
index a1b9be3c4332..142f5f5168fb 100644
@@ -121,7 +121,7 @@ void do_trap(struct pt_regs *regs, int signo, int code, unsigned long addr)
 		print_vma_addr(KERN_CONT " in ", instruction_pointer(regs));
 		pr_cont("\n");
 		__show_regs(regs);
-		dump_instr(KERN_EMERG, regs);
+		dump_instr(KERN_INFO, regs);
 	}
 
 	force_sig_fault(signo, code, (void __user *)addr);
arch/riscv/kernel/vdso/Makefile +1 -0
index 9b517fe1b8a8..272c431ac5b9 100644
@@ -37,6 +37,7 @@ endif
 
 # Disable -pg to prevent insert call site
 CFLAGS_REMOVE_vgettimeofday.o = $(CC_FLAGS_FTRACE) $(CC_FLAGS_SCS)
+CFLAGS_REMOVE_hwprobe.o = $(CC_FLAGS_FTRACE) $(CC_FLAGS_SCS)
 
 # Disable profiling and instrumentation for VDSO code
 GCOV_PROFILE := n
arch/riscv/kvm/aia_aplic.c +31 -6
index 39e72aa016a4..b467ba5ed910 100644
@@ -137,11 +137,21 @@ static void aplic_write_pending(struct aplic *aplic, u32 irq, bool pending)
 	raw_spin_lock_irqsave(&irqd->lock, flags);
 
 	sm = irqd->sourcecfg & APLIC_SOURCECFG_SM_MASK;
-	if (!pending &&
-	    ((sm == APLIC_SOURCECFG_SM_LEVEL_HIGH) ||
-	     (sm == APLIC_SOURCECFG_SM_LEVEL_LOW)))
+	if (sm == APLIC_SOURCECFG_SM_INACTIVE)
 		goto skip_write_pending;
 
+	if (sm == APLIC_SOURCECFG_SM_LEVEL_HIGH ||
+	    sm == APLIC_SOURCECFG_SM_LEVEL_LOW) {
+		if (!pending)
+			goto skip_write_pending;
+		if ((irqd->state & APLIC_IRQ_STATE_INPUT) &&
+		    sm == APLIC_SOURCECFG_SM_LEVEL_LOW)
+			goto skip_write_pending;
+		if (!(irqd->state & APLIC_IRQ_STATE_INPUT) &&
+		    sm == APLIC_SOURCECFG_SM_LEVEL_HIGH)
+			goto skip_write_pending;
+	}
+
 	if (pending)
 		irqd->state |= APLIC_IRQ_STATE_PENDING;
 	else
@@ -187,16 +197,31 @@ static void aplic_write_enabled(struct aplic *aplic, u32 irq, bool enabled)
 
 static bool aplic_read_input(struct aplic *aplic, u32 irq)
 {
-	bool ret;
-	unsigned long flags;
+	u32 sourcecfg, sm, raw_input, irq_inverted;
 	struct aplic_irq *irqd;
+	unsigned long flags;
+	bool ret = false;
 
 	if (!irq || aplic->nr_irqs <= irq)
 		return false;
 	irqd = &aplic->irqs[irq];
 
 	raw_spin_lock_irqsave(&irqd->lock, flags);
-	ret = (irqd->state & APLIC_IRQ_STATE_INPUT) ? true : false;
+
+	sourcecfg = irqd->sourcecfg;
+	if (sourcecfg & APLIC_SOURCECFG_D)
+		goto skip;
+
+	sm = sourcecfg & APLIC_SOURCECFG_SM_MASK;
+	if (sm == APLIC_SOURCECFG_SM_INACTIVE)
+		goto skip;
+
+	raw_input = (irqd->state & APLIC_IRQ_STATE_INPUT) ? 1 : 0;
+	irq_inverted = (sm == APLIC_SOURCECFG_SM_LEVEL_LOW ||
+			sm == APLIC_SOURCECFG_SM_EDGE_FALL) ? 1 : 0;
+	ret = !!(raw_input ^ irq_inverted);
+
+skip:
 	raw_spin_unlock_irqrestore(&irqd->lock, flags);
 
 	return ret;
arch/riscv/mm/tlbflush.c +2 -2
index 893566e004b7..07d743f87b3f 100644
@@ -99,7 +99,7 @@ static void __ipi_flush_tlb_range_asid(void *info)
 	local_flush_tlb_range_asid(d->start, d->size, d->stride, d->asid);
 }
 
-static void __flush_tlb_range(struct cpumask *cmask, unsigned long asid,
+static void __flush_tlb_range(const struct cpumask *cmask, unsigned long asid,
 			      unsigned long start, unsigned long size,
 			      unsigned long stride)
 {
@@ -200,7 +200,7 @@ void flush_tlb_range(struct vm_area_struct *vma, unsigned long start,
 
 void flush_tlb_kernel_range(unsigned long start, unsigned long end)
 {
-	__flush_tlb_range((struct cpumask *)cpu_online_mask, FLUSH_TLB_NO_ASID,
+	__flush_tlb_range(cpu_online_mask, FLUSH_TLB_NO_ASID,
 			  start, end - start, PAGE_SIZE);
 }
 
arch/s390/boot/vmem.c +1 -1
index e3a4500a5a75..47e1f54c587a 100644
@@ -366,7 +366,7 @@ static void pgtable_pud_populate(p4d_t *p4d, unsigned long addr, unsigned long e
 			}
 			pmd = boot_crst_alloc(_SEGMENT_ENTRY_EMPTY);
 			pud_populate(&init_mm, pud, pmd);
-		} else if (pud_large(*pud)) {
+		} else if (pud_leaf(*pud)) {
 			continue;
 		}
 		pgtable_pmd_populate(pud, addr, next, mode);
arch/s390/include/asm/pgtable.h +2 -2
index 1299b56e43f6..12a7b8678925 100644
@@ -730,7 +730,7 @@ static inline int pud_bad(pud_t pud)
 {
 	unsigned long type = pud_val(pud) & _REGION_ENTRY_TYPE_MASK;
 
-	if (type > _REGION_ENTRY_TYPE_R3 || pud_large(pud))
+	if (type > _REGION_ENTRY_TYPE_R3 || pud_leaf(pud))
 		return 1;
 	if (type < _REGION_ENTRY_TYPE_R3)
 		return 0;
@@ -1398,7 +1398,7 @@ static inline unsigned long pud_deref(pud_t pud)
 	unsigned long origin_mask;
 
 	origin_mask = _REGION_ENTRY_ORIGIN;
-	if (pud_large(pud))
+	if (pud_leaf(pud))
 		origin_mask = _REGION3_ENTRY_ORIGIN_LARGE;
 	return (unsigned long)__va(pud_val(pud) & origin_mask);
 }
arch/s390/kernel/entry.S +1 -0
index 49a11f6dd7ae..26c08ee87740 100644
@@ -653,6 +653,7 @@ SYM_DATA_START_LOCAL(daton_psw)
 SYM_DATA_END(daton_psw)
 
 	.section .rodata, "a"
+	.balign	8
 #define SYSCALL(esame,emu)	.quad __s390x_ ## esame
 SYM_DATA_START(sys_call_table)
 #include "asm/syscall_table.h"
arch/s390/kernel/perf_pai_crypto.c +7 -3
index 522a5ea0a9f4..335e3f5d71f7 100644
@@ -90,7 +90,6 @@ static void paicrypt_event_destroy(struct perf_event *event)
 						 event->cpu);
 	struct paicrypt_map *cpump = mp->mapptr;
 
-	cpump->event = NULL;
 	static_branch_dec(&pai_key);
 	mutex_lock(&pai_reserve_mutex);
 	debug_sprintf_event(cfm_dbg, 5, "%s event %#llx cpu %d users %d"
@@ -348,10 +347,15 @@ static int paicrypt_add(struct perf_event *event, int flags)
 
 static void paicrypt_stop(struct perf_event *event, int flags)
 {
-	if (!event->attr.sample_period)	/* Counting */
+	struct paicrypt_mapptr *mp = this_cpu_ptr(paicrypt_root.mapptr);
+	struct paicrypt_map *cpump = mp->mapptr;
+
+	if (!event->attr.sample_period) {	/* Counting */
 		paicrypt_read(event);
-	else				/* Sampling */
+	} else {				/* Sampling */
 		perf_sched_cb_dec(event->pmu);
+		cpump->event = NULL;
+	}
 	event->hw.state = PERF_HES_STOPPED;
 }
 
arch/s390/kernel/perf_pai_ext.c +7 -3
index 95d1a890640a..db37c38ddcee 100644
@@ -121,7 +121,6 @@ static void paiext_event_destroy(struct perf_event *event)
 	struct paiext_map *cpump = mp->mapptr;
 
 	mutex_lock(&paiext_reserve_mutex);
-	cpump->event = NULL;
 	if (refcount_dec_and_test(&cpump->refcnt))	/* Last reference gone */
 		paiext_free(mp);
 	paiext_root_free();
@@ -355,10 +354,15 @@ static int paiext_add(struct perf_event *event, int flags)
 
 static void paiext_stop(struct perf_event *event, int flags)
 {
-	if (!event->attr.sample_period)	/* Counting */
+	struct paiext_mapptr *mp = this_cpu_ptr(paiext_root.mapptr);
+	struct paiext_map *cpump = mp->mapptr;
+
+	if (!event->attr.sample_period) {	/* Counting */
 		paiext_read(event);
-	else				/* Sampling */
+	} else {				/* Sampling */
 		perf_sched_cb_dec(event->pmu);
+		cpump->event = NULL;
+	}
 	event->hw.state = PERF_HES_STOPPED;
 }
 
arch/s390/mm/gmap.c +1 -1
index 8da39deb56ca..08a7eca03daf 100644
@@ -596,7 +596,7 @@ int __gmap_link(struct gmap *gmap, unsigned long gaddr, unsigned long vmaddr)
 	pud = pud_offset(p4d, vmaddr);
 	VM_BUG_ON(pud_none(*pud));
 	/* large puds cannot yet be handled */
-	if (pud_large(*pud))
+	if (pud_leaf(*pud))
 		return -EFAULT;
 	pmd = pmd_offset(pud, vmaddr);
 	VM_BUG_ON(pmd_none(*pmd));
arch/s390/mm/hugetlbpage.c +2 -2
index 297a6d897d5a..5f64f3d0fafb 100644
@@ -224,7 +224,7 @@ pte_t *huge_pte_offset(struct mm_struct *mm,
 		if (p4d_present(*p4dp)) {
 			pudp = pud_offset(p4dp, addr);
 			if (pud_present(*pudp)) {
-				if (pud_large(*pudp))
+				if (pud_leaf(*pudp))
 					return (pte_t *) pudp;
 				pmdp = pmd_offset(pudp, addr);
 			}
@@ -240,7 +240,7 @@ int pmd_huge(pmd_t pmd)
 
 int pud_huge(pud_t pud)
 {
-	return pud_large(pud);
+	return pud_leaf(pud);
 }
 
 bool __init arch_hugetlb_valid_size(unsigned long size)
arch/s390/mm/pageattr.c +1 -1
index 631e3a4ee2de..739185fc39ea 100644
@@ -274,7 +274,7 @@ static int walk_pud_level(p4d_t *p4d, unsigned long addr, unsigned long end,
 		if (pud_none(*pudp))
 			return -EINVAL;
 		next = pud_addr_end(addr, end);
-		if (pud_large(*pudp)) {
+		if (pud_leaf(*pudp)) {
 			need_split  = !!(flags & SET_MEMORY_4K);
 			need_split |= !!(addr & ~PUD_MASK);
 			need_split |= !!(addr + PUD_SIZE > next);
arch/s390/mm/pgtable.c +1 -1
index 99422926efe1..3ff07b6bcd65 100644
@@ -470,7 +470,7 @@ static int pmd_lookup(struct mm_struct *mm, unsigned long addr, pmd_t **pmdp)
 		return -ENOENT;
 
 	/* Large PUDs are not supported yet. */
-	if (pud_large(*pud))
+	if (pud_leaf(*pud))
 		return -EFAULT;
 
 	*pmdp = pmd_offset(pud, addr);
arch/s390/mm/vmem.c +3 -3
index 186a020857cf..84e173c02ab9 100644
@@ -323,7 +323,7 @@ static int modify_pud_table(p4d_t *p4d, unsigned long addr, unsigned long end,
 		if (!add) {
 			if (pud_none(*pud))
 				continue;
-			if (pud_large(*pud)) {
+			if (pud_leaf(*pud)) {
 				if (IS_ALIGNED(addr, PUD_SIZE) &&
 				    IS_ALIGNED(next, PUD_SIZE)) {
 					pud_clear(pud);
@@ -344,7 +344,7 @@ static int modify_pud_table(p4d_t *p4d, unsigned long addr, unsigned long end,
 			if (!pmd)
 				goto out;
 			pud_populate(&init_mm, pud, pmd);
-		} else if (pud_large(*pud)) {
+		} else if (pud_leaf(*pud)) {
 			continue;
 		}
 		ret = modify_pmd_table(pud, addr, next, add, direct);
@@ -591,7 +591,7 @@ pte_t *vmem_get_alloc_pte(unsigned long addr, bool alloc)
 		if (!pmd)
 			goto out;
 		pud_populate(&init_mm, pud, pmd);
-	} else if (WARN_ON_ONCE(pud_large(*pud))) {
+	} else if (WARN_ON_ONCE(pud_leaf(*pud))) {
 		goto out;
 	}
 	pmd = pmd_offset(pud, addr);
arch/s390/net/bpf_jit_comp.c +20 -26

96 lines not on this page · raw message

arch/sparc/mm/init_64.c +1 -1
index f83017992eaa..d7db4e737218 100644
@@ -1665,7 +1665,7 @@ bool kern_addr_valid(unsigned long addr)
 	if (pud_none(*pud))
 		return false;
 
-	if (pud_large(*pud))
+	if (pud_leaf(*pud))
 		return pfn_valid(pud_pfn(*pud));
 
 	pmd = pmd_offset(pud, addr);
arch/x86/Kconfig +25 -0
index 184730705650..890ba8e48bc3 100644
@@ -2612,6 +2612,31 @@ config MITIGATION_RFDS
 	  stored in floating point, vector and integer registers.
 	  See also <file:Documentation/admin-guide/hw-vuln/reg-file-data-sampling.rst>
 
+choice
+	prompt "Clear branch history"
+	depends on CPU_SUP_INTEL
+	default SPECTRE_BHI_ON
+	help
+	  Enable BHI mitigations. BHI attacks are a form of Spectre V2 attacks
+	  where the branch history buffer is poisoned to speculatively steer
+	  indirect branches.
+	  See <file:Documentation/admin-guide/hw-vuln/spectre.rst>
+
+config SPECTRE_BHI_ON
+	bool "on"
+	help
+	  Equivalent to setting spectre_bhi=on command line parameter.
+config SPECTRE_BHI_OFF
+	bool "off"
+	help
+	  Equivalent to setting spectre_bhi=off command line parameter.
+config SPECTRE_BHI_AUTO
+	bool "auto"
+	help
+	  Equivalent to setting spectre_bhi=auto command line parameter.
+
+endchoice
+
 endif
 
 config ARCH_HAS_ADD_PAGES
arch/x86/boot/compressed/Makefile +1 -1
index f19c038409aa..e9522c6893be 100644
@@ -84,7 +84,7 @@ LDFLAGS_vmlinux += -T
 hostprogs	:= mkpiggy
 HOST_EXTRACFLAGS += -I$(srctree)/tools/include
 
-sed-voffset := -e 's/^\([0-9a-fA-F]*\) [ABCDGRSTVW] \(_text\|__bss_start\|_end\)$$/\#define VO_\2 _AC(0x\1,UL)/p'
+sed-voffset := -e 's/^\([0-9a-fA-F]*\) [ABCDGRSTVW] \(_text\|__start_rodata\|__bss_start\|_end\)$$/\#define VO_\2 _AC(0x\1,UL)/p'
 
 quiet_cmd_voffset = VOFFSET $@
       cmd_voffset = $(NM) $< | sed -n $(sed-voffset) > $@
arch/x86/boot/compressed/misc.c +16 -0
index b99e08e6815b..ee0fac468e7f 100644
@@ -330,6 +330,7 @@ static size_t parse_elf(void *output)
 	return ehdr.e_entry - LOAD_PHYSICAL_ADDR;
 }
 
+const unsigned long kernel_text_size = VO___start_rodata - VO__text;
 const unsigned long kernel_total_size = VO__end - VO__text;
 
 static u8 boot_heap[BOOT_HEAP_SIZE] __aligned(4);
@@ -357,6 +358,19 @@ unsigned long decompress_kernel(unsigned char *outbuf, unsigned long virt_addr,
 	return entry;
 }
 
+/*
+ * Set the memory encryption xloadflag based on the mem_encrypt= command line
+ * parameter, if provided.
+ */
+static void parse_mem_encrypt(struct setup_header *hdr)
+{
+	int on = cmdline_find_option_bool("mem_encrypt=on");
+	int off = cmdline_find_option_bool("mem_encrypt=off");
+
+	if (on > off)
+		hdr->xloadflags |= XLF_MEM_ENCRYPTION;
+}
+
 /*
  * The compressed kernel image (ZO), has been moved so that its position
  * is against the end of the buffer used to hold the uncompressed kernel
@@ -387,6 +401,8 @@ asmlinkage __visible void *extract_kernel(void *rmode, unsigned char *output)
 	/* Clear flags intended for solely in-kernel use. */
 	boot_params_ptr->hdr.loadflags &= ~KASLR_FLAG;
 
+	parse_mem_encrypt(&boot_params_ptr->hdr);
+
 	sanitize_boot_params(boot_params_ptr);
 
 	if (boot_params_ptr->screen_info.orig_video_mode == 7) {
arch/x86/boot/compressed/sev.c +3 -0
index 454acd7a2daf..4c9b75281417 100644
@@ -116,6 +116,9 @@ static bool fault_in_kernel_space(unsigned long address)
 #undef __init
 #define __init
 
+#undef __head
+#define __head
+
 #define __BOOT_COMPRESSED
 
 /* Basic instruction decoding support needed */
arch/x86/coco/core.c +41 -0

57 lines not on this page · raw message

arch/x86/entry/common.c +5 -5
index 6356060caaf3..6de50b80702e 100644
@@ -49,7 +49,7 @@ static __always_inline bool do_syscall_x64(struct pt_regs *regs, int nr)
 
 	if (likely(unr < NR_syscalls)) {
 		unr = array_index_nospec(unr, NR_syscalls);
-		regs->ax = sys_call_table[unr](regs);
+		regs->ax = x64_sys_call(regs, unr);
 		return true;
 	}
 	return false;
@@ -66,7 +66,7 @@ static __always_inline bool do_syscall_x32(struct pt_regs *regs, int nr)
 
 	if (IS_ENABLED(CONFIG_X86_X32_ABI) && likely(xnr < X32_NR_syscalls)) {
 		xnr = array_index_nospec(xnr, X32_NR_syscalls);
-		regs->ax = x32_sys_call_table[xnr](regs);
+		regs->ax = x32_sys_call(regs, xnr);
 		return true;
 	}
 	return false;
@@ -162,7 +162,7 @@ static __always_inline void do_syscall_32_irqs_on(struct pt_regs *regs, int nr)
 
 	if (likely(unr < IA32_NR_syscalls)) {
 		unr = array_index_nospec(unr, IA32_NR_syscalls);
-		regs->ax = ia32_sys_call_table[unr](regs);
+		regs->ax = ia32_sys_call(regs, unr);
 	} else if (nr != -1) {
 		regs->ax = __ia32_sys_ni_syscall(regs);
 	}
@@ -189,7 +189,7 @@ static __always_inline bool int80_is_external(void)
 }
 
 /**
- * int80_emulation - 32-bit legacy syscall entry
+ * do_int80_emulation - 32-bit legacy syscall C entry from asm
  *
  * This entry point can be used by 32-bit and 64-bit programs to perform
  * 32-bit system calls.  Instances of INT $0x80 can be found inline in
@@ -207,7 +207,7 @@ static __always_inline bool int80_is_external(void)
  *   eax:				system call number
  *   ebx, ecx, edx, esi, edi, ebp:	arg1 - arg 6
  */
-DEFINE_IDTENTRY_RAW(int80_emulation)
+__visible noinstr void do_int80_emulation(struct pt_regs *regs)
 {
 	int nr;
 
arch/x86/entry/entry_64.S +61 -0

70 lines not on this page · raw message

arch/x86/entry/entry_64_compat.S +16 -0
index eabf48c4d4b4..c779046cc3fe 100644
@@ -92,6 +92,7 @@ SYM_INNER_LABEL(entry_SYSENTER_compat_after_hwframe, SYM_L_GLOBAL)
 
 	IBRS_ENTER
 	UNTRAIN_RET
+	CLEAR_BRANCH_HISTORY
 
 	/*
 	 * SYSENTER doesn't filter flags, so we need to clear NT and AC
@@ -206,6 +207,7 @@ SYM_INNER_LABEL(entry_SYSCALL_compat_after_hwframe, SYM_L_GLOBAL)
 
 	IBRS_ENTER
 	UNTRAIN_RET
+	CLEAR_BRANCH_HISTORY
 
 	movq	%rsp, %rdi
 	call	do_fast_syscall_32
@@ -276,3 +278,17 @@ SYM_INNER_LABEL(entry_SYSRETL_compat_end, SYM_L_GLOBAL)
 	ANNOTATE_NOENDBR
 	int3
 SYM_CODE_END(entry_SYSCALL_compat)
+
+/*
+ * int 0x80 is used by 32 bit mode as a system call entry. Normally idt entries
+ * point to C routines, however since this is a system call interface the branch
+ * history needs to be scrubbed to protect against BHI attacks, and that
+ * scrubbing needs to take place in assembly code prior to entering any C
+ * routines.
+ */
+SYM_CODE_START(int80_emulation)
+	ANNOTATE_NOENDBR
+	UNWIND_HINT_FUNC
+	CLEAR_BRANCH_HISTORY
+	jmp do_int80_emulation
+SYM_CODE_END(int80_emulation)
arch/x86/entry/syscall_32.c +19 -2
index 8cfc9bc73e7f..c2235bae17ef 100644
@@ -18,8 +18,25 @@
 #include <asm/syscalls_32.h>
 #undef __SYSCALL
 
+/*
+ * The sys_call_table[] is no longer used for system calls, but
+ * kernel/trace/trace_syscalls.c still wants to know the system
+ * call address.
+ */
+#ifdef CONFIG_X86_32
 #define __SYSCALL(nr, sym) __ia32_##sym,
-
-__visible const sys_call_ptr_t ia32_sys_call_table[] = {
+const sys_call_ptr_t sys_call_table[] = {
 #include <asm/syscalls_32.h>
 };
+#undef __SYSCALL
+#endif
+
+#define __SYSCALL(nr, sym) case nr: return __ia32_##sym(regs);
+
+long ia32_sys_call(const struct pt_regs *regs, unsigned int nr)
+{
+	switch (nr) {
+	#include <asm/syscalls_32.h>
+	default: return __ia32_sys_ni_syscall(regs);
+	}
+};
arch/x86/entry/syscall_64.c +17 -2
index be120eec1fc9..33b3f09e6f15 100644
@@ -11,8 +11,23 @@
 #include <asm/syscalls_64.h>
 #undef __SYSCALL
 
+/*
+ * The sys_call_table[] is no longer used for system calls, but
+ * kernel/trace/trace_syscalls.c still wants to know the system
+ * call address.
+ */
 #define __SYSCALL(nr, sym) __x64_##sym,
-
-asmlinkage const sys_call_ptr_t sys_call_table[] = {
+const sys_call_ptr_t sys_call_table[] = {
 #include <asm/syscalls_64.h>
 };
+#undef __SYSCALL
+
+#define __SYSCALL(nr, sym) case nr: return __x64_##sym(regs);
+
+long x64_sys_call(const struct pt_regs *regs, unsigned int nr)
+{
+	switch (nr) {
+	#include <asm/syscalls_64.h>
+	default: return __x64_sys_ni_syscall(regs);
+	}
+};
arch/x86/entry/syscall_x32.c +7 -3
index bdd0e03a1265..03de4a932131 100644
@@ -11,8 +11,12 @@
 #include <asm/syscalls_x32.h>
 #undef __SYSCALL
 
-#define __SYSCALL(nr, sym) __x64_##sym,
+#define __SYSCALL(nr, sym) case nr: return __x64_##sym(regs);
 
-asmlinkage const sys_call_ptr_t x32_sys_call_table[] = {
-#include <asm/syscalls_x32.h>
+long x32_sys_call(const struct pt_regs *regs, unsigned int nr)
+{
+	switch (nr) {
+	#include <asm/syscalls_x32.h>
+	default: return __x64_sys_ni_syscall(regs);
+	}
 };
arch/x86/events/intel/ds.c +4 -4
index d49d661ec0a7..807de7b596ab 100644
@@ -1236,11 +1236,11 @@ pebs_update_state(bool needed_cb, struct cpu_hw_events *cpuc,
 	struct pmu *pmu = event->pmu;
 
 	/*
-	 * Make sure we get updated with the first PEBS
-	 * event. It will trigger also during removal, but
-	 * that does not hurt:
+	 * Make sure we get updated with the first PEBS event.
+	 * During removal, ->pebs_data_cfg is still valid for
+	 * the last PEBS event. Don't clear it.
 	 */
-	if (cpuc->n_pebs == 1)
+	if ((cpuc->n_pebs == 1) && add)
 		cpuc->pebs_data_cfg = PEBS_UPDATE_DS_SW;
 
 	if (needed_cb != pebs_needs_sched_cb(cpuc)) {
arch/x86/include/asm/boot.h +1 -0
index a38cc0afc90a..a3e0be0470a4 100644
@@ -81,6 +81,7 @@
 
 #ifndef __ASSEMBLY__
 extern unsigned int output_len;
+extern const unsigned long kernel_text_size;
 extern const unsigned long kernel_total_size;
 
 unsigned long decompress_kernel(unsigned char *outbuf, unsigned long virt_addr,
arch/x86/include/asm/coco.h +2 -0
index 18bbdda05322..3dd052bfefc5 100644
@@ -21,6 +21,7 @@ static inline void cc_set_mask(u64 mask)
 
 u64 cc_mkenc(u64 val);
 u64 cc_mkdec(u64 val);
+void cc_random_init(void);
 #else
 #define cc_vendor (CC_VENDOR_NONE)
 
@@ -33,6 +34,7 @@ static inline u64 cc_mkdec(u64 val)
 {
 	return val;
 }
+static inline void cc_random_init(void) { }
 #endif
 
 #endif /* _ASM_X86_COCO_H */
arch/x86/include/asm/cpufeature.h +6 -2
index a1273698fc43..686e92d2663e 100644
@@ -33,6 +33,8 @@ enum cpuid_leafs
 	CPUID_7_EDX,
 	CPUID_8000_001F_EAX,
 	CPUID_8000_0021_EAX,
+	CPUID_LNX_5,
+	NR_CPUID_WORDS,
 };
 
 #define X86_CAP_FMT_NUM "%d:%d"
@@ -91,8 +93,9 @@ extern const char * const x86_bug_flags[NBUGINTS*32];
 	   CHECK_BIT_IN_MASK_WORD(REQUIRED_MASK, 18, feature_bit) ||	\
 	   CHECK_BIT_IN_MASK_WORD(REQUIRED_MASK, 19, feature_bit) ||	\
 	   CHECK_BIT_IN_MASK_WORD(REQUIRED_MASK, 20, feature_bit) ||	\
+	   CHECK_BIT_IN_MASK_WORD(REQUIRED_MASK, 21, feature_bit) ||	\
 	   REQUIRED_MASK_CHECK					  ||	\
-	   BUILD_BUG_ON_ZERO(NCAPINTS != 21))
+	   BUILD_BUG_ON_ZERO(NCAPINTS != 22))
 
 #define DISABLED_MASK_BIT_SET(feature_bit)				\
 	 ( CHECK_BIT_IN_MASK_WORD(DISABLED_MASK,  0, feature_bit) ||	\
@@ -116,8 +119,9 @@ extern const char * const x86_bug_flags[NBUGINTS*32];
 	   CHECK_BIT_IN_MASK_WORD(DISABLED_MASK, 18, feature_bit) ||	\
 	   CHECK_BIT_IN_MASK_WORD(DISABLED_MASK, 19, feature_bit) ||	\
 	   CHECK_BIT_IN_MASK_WORD(DISABLED_MASK, 20, feature_bit) ||	\
+	   CHECK_BIT_IN_MASK_WORD(DISABLED_MASK, 21, feature_bit) ||	\
 	   DISABLED_MASK_CHECK					  ||	\
-	   BUILD_BUG_ON_ZERO(NCAPINTS != 21))
+	   BUILD_BUG_ON_ZERO(NCAPINTS != 22))
 
 #define cpu_has(c, bit)							\
 	(__builtin_constant_p(bit) && REQUIRED_MASK_BIT_SET(bit) ? 1 :	\
arch/x86/include/asm/cpufeatures.h +13 -1
index 8511aad59581..76b3b00ff102 100644
@@ -13,7 +13,7 @@
 /*
  * Defines x86 CPU feature bits
  */
-#define NCAPINTS			21	   /* N 32-bit words worth of info */
+#define NCAPINTS			22	   /* N 32-bit words worth of info */
 #define NBUGINTS			2	   /* N 32-bit bug flags */
 
 /*
@@ -456,6 +456,17 @@
 #define X86_FEATURE_IBPB_BRTYPE		(20*32+28) /* "" MSR_PRED_CMD[IBPB] flushes all branch type predictions */
 #define X86_FEATURE_SRSO_NO		(20*32+29) /* "" CPU is not affected by SRSO */
 
+/*
+ * Extended auxiliary flags: Linux defined - for features scattered in various
+ * CPUID levels like 0x80000022, etc and Linux defined features.
+ *
+ * Reuse free bits when adding new feature flags!
+ */
+#define X86_FEATURE_CLEAR_BHB_LOOP	(21*32+ 1) /* "" Clear branch history at syscall entry using SW loop */
+#define X86_FEATURE_BHI_CTRL		(21*32+ 2) /* "" BHI_DIS_S HW control available */
+#define X86_FEATURE_CLEAR_BHB_HW	(21*32+ 3) /* "" BHI_DIS_S HW control enabled */
+#define X86_FEATURE_CLEAR_BHB_LOOP_ON_VMEXIT (21*32+ 4) /* "" Clear branch history at vmexit using SW loop */
+
 /*
  * BUG word(s)
  */
@@ -504,4 +515,5 @@
 #define X86_BUG_SRSO			X86_BUG(1*32 + 0) /* AMD SRSO bug */
 #define X86_BUG_DIV0			X86_BUG(1*32 + 1) /* AMD DIV0 speculation bug */
 #define X86_BUG_RFDS			X86_BUG(1*32 + 2) /* CPU is vulnerable to Register File Data Sampling */
+#define X86_BUG_BHI			X86_BUG(1*32 + 3) /* CPU is affected by Branch History Injection */
 #endif /* _ASM_X86_CPUFEATURES_H */
arch/x86/include/asm/disabled-features.h +2 -1
index 702d93fdd10e..88fcf08458d9 100644
@@ -143,6 +143,7 @@
 #define DISABLED_MASK18	(DISABLE_IBT)
 #define DISABLED_MASK19	0
 #define DISABLED_MASK20	0
-#define DISABLED_MASK_CHECK BUILD_BUG_ON_ZERO(NCAPINTS != 21)
+#define DISABLED_MASK21	0
+#define DISABLED_MASK_CHECK BUILD_BUG_ON_ZERO(NCAPINTS != 22)
 
 #endif /* _ASM_X86_DISABLED_FEATURES_H */
arch/x86/include/asm/mem_encrypt.h +4 -4
index b31eb9fd5954..f922b682b9b4 100644
@@ -47,8 +47,8 @@ void __init sme_unmap_bootdata(char *real_mode_data);
 
 void __init sme_early_init(void);
 
-void __init sme_encrypt_kernel(struct boot_params *bp);
-void __init sme_enable(struct boot_params *bp);
+void sme_encrypt_kernel(struct boot_params *bp);
+void sme_enable(struct boot_params *bp);
 
 int __init early_set_memory_decrypted(unsigned long vaddr, unsigned long size);
 int __init early_set_memory_encrypted(unsigned long vaddr, unsigned long size);
@@ -81,8 +81,8 @@ static inline void __init sme_unmap_bootdata(char *real_mode_data) { }
 
 static inline void __init sme_early_init(void) { }
 
-static inline void __init sme_encrypt_kernel(struct boot_params *bp) { }
-static inline void __init sme_enable(struct boot_params *bp) { }
+static inline void sme_encrypt_kernel(struct boot_params *bp) { }
+static inline void sme_enable(struct boot_params *bp) { }
 
 static inline void sev_es_init_vc_handling(void) { }
 
arch/x86/include/asm/msr-index.h +8 -1
index d1b5edaf6c34..d65f8ce6b7cf 100644
@@ -50,10 +50,13 @@
 #define SPEC_CTRL_SSBD			BIT(SPEC_CTRL_SSBD_SHIFT)	/* Speculative Store Bypass Disable */
 #define SPEC_CTRL_RRSBA_DIS_S_SHIFT	6	   /* Disable RRSBA behavior */
 #define SPEC_CTRL_RRSBA_DIS_S		BIT(SPEC_CTRL_RRSBA_DIS_S_SHIFT)
+#define SPEC_CTRL_BHI_DIS_S_SHIFT	10	   /* Disable Branch History Injection behavior */
+#define SPEC_CTRL_BHI_DIS_S		BIT(SPEC_CTRL_BHI_DIS_S_SHIFT)
 
 /* A mask for bits which the kernel toggles when controlling mitigations */
 #define SPEC_CTRL_MITIGATIONS_MASK	(SPEC_CTRL_IBRS | SPEC_CTRL_STIBP | SPEC_CTRL_SSBD \
-							| SPEC_CTRL_RRSBA_DIS_S)
+							| SPEC_CTRL_RRSBA_DIS_S \
+							| SPEC_CTRL_BHI_DIS_S)
 
 #define MSR_IA32_PRED_CMD		0x00000049 /* Prediction Command */
 #define PRED_CMD_IBPB			BIT(0)	   /* Indirect Branch Prediction Barrier */
@@ -152,6 +155,10 @@
 						 * are restricted to targets in
 						 * kernel.
 						 */
+#define ARCH_CAP_BHI_NO			BIT(20)	/*
+						 * CPU is not affected by Branch
+						 * History Injection.
+						 */
 #define ARCH_CAP_PBRSB_NO		BIT(24)	/*
 						 * Not susceptible to Post-Barrier
 						 * Return Stack Buffer Predictions.
arch/x86/include/asm/nospec-branch.h +17 -0
index 93c3e28dd8e0..3ff081a74ab2 100644
@@ -335,6 +335,19 @@
 	ALTERNATIVE "", __stringify(verw _ASM_RIP(mds_verw_sel)), X86_FEATURE_CLEAR_CPU_BUF
 .endm
 
+#ifdef CONFIG_X86_64
+.macro CLEAR_BRANCH_HISTORY
+	ALTERNATIVE "", "call clear_bhb_loop", X86_FEATURE_CLEAR_BHB_LOOP
+.endm
+
+.macro CLEAR_BRANCH_HISTORY_VMEXIT
+	ALTERNATIVE "", "call clear_bhb_loop", X86_FEATURE_CLEAR_BHB_LOOP_ON_VMEXIT
+.endm
+#else
+#define CLEAR_BRANCH_HISTORY
+#define CLEAR_BRANCH_HISTORY_VMEXIT
+#endif
+
 #else /* __ASSEMBLY__ */
 
 #define ANNOTATE_RETPOLINE_SAFE					\
@@ -377,6 +390,10 @@ extern void srso_alias_return_thunk(void);
 extern void entry_untrain_ret(void);
 extern void entry_ibpb(void);
 
+#ifdef CONFIG_X86_64
+extern void clear_bhb_loop(void);
+#endif
+
 extern void (*x86_return_thunk)(void);
 
 #ifdef CONFIG_CALL_DEPTH_TRACKING
arch/x86/include/asm/required-features.h +2 -1
index 7ba1726b71c7..e9187ddd3d1f 100644
@@ -99,6 +99,7 @@
 #define REQUIRED_MASK18	0
 #define REQUIRED_MASK19	0
 #define REQUIRED_MASK20	0
-#define REQUIRED_MASK_CHECK BUILD_BUG_ON_ZERO(NCAPINTS != 21)
+#define REQUIRED_MASK21	0
+#define REQUIRED_MASK_CHECK BUILD_BUG_ON_ZERO(NCAPINTS != 22)
 
 #endif /* _ASM_X86_REQUIRED_FEATURES_H */
arch/x86/include/asm/sev.h +5 -5
index 36f905797075..75a5388d4068 100644
@@ -199,15 +199,15 @@ static inline int pvalidate(unsigned long vaddr, bool rmp_psize, bool validate)
 struct snp_guest_request_ioctl;
 
 void setup_ghcb(void);
-void __init early_snp_set_memory_private(unsigned long vaddr, unsigned long paddr,
-					 unsigned long npages);
-void __init early_snp_set_memory_shared(unsigned long vaddr, unsigned long paddr,
-					unsigned long npages);
+void early_snp_set_memory_private(unsigned long vaddr, unsigned long paddr,
+				  unsigned long npages);
+void early_snp_set_memory_shared(unsigned long vaddr, unsigned long paddr,
+				 unsigned long npages);
 void snp_set_memory_shared(unsigned long vaddr, unsigned long npages);
 void snp_set_memory_private(unsigned long vaddr, unsigned long npages);
 void snp_set_wakeup_secondary_cpu(void);
 bool snp_init(struct boot_params *bp);
-void __init __noreturn snp_abort(void);
+void __noreturn snp_abort(void);
 void snp_dmi_setup(void);
 int snp_issue_guest_request(u64 exit_code, struct snp_req_data *input, struct snp_guest_request_ioctl *rio);
 void snp_accept_memory(phys_addr_t start, phys_addr_t end);
arch/x86/include/asm/syscall.h +5 -6
index f44e2f9ab65d..2fc7bc3863ff 100644
@@ -16,19 +16,17 @@
 #include <asm/thread_info.h>	/* for TS_COMPAT */
 #include <asm/unistd.h>
 
+/* This is used purely for kernel/trace/trace_syscalls.c */
 typedef long (*sys_call_ptr_t)(const struct pt_regs *);
 extern const sys_call_ptr_t sys_call_table[];
 
-#if defined(CONFIG_X86_32)
-#define ia32_sys_call_table sys_call_table
-#else
 /*
  * These may not exist, but still put the prototypes in so we
  * can use IS_ENABLED().
  */
-extern const sys_call_ptr_t ia32_sys_call_table[];
-extern const sys_call_ptr_t x32_sys_call_table[];
-#endif
+extern long ia32_sys_call(const struct pt_regs *, unsigned int nr);
+extern long x32_sys_call(const struct pt_regs *, unsigned int nr);
+extern long x64_sys_call(const struct pt_regs *, unsigned int nr);
 
 /*
  * Only the low 32 bits of orig_ax are meaningful, so we return int.
@@ -127,6 +125,7 @@ static inline int syscall_get_arch(struct task_struct *task)
 }
 
 bool do_syscall_64(struct pt_regs *regs, int nr);
+void do_int80_emulation(struct pt_regs *regs);
 
 #endif	/* CONFIG_X86_32 */
 
arch/x86/include/uapi/asm/bootparam.h +1 -0
index 01d19fc22346..eeea058cf602 100644
@@ -38,6 +38,7 @@
 #define XLF_EFI_KEXEC			(1<<4)
 #define XLF_5LEVEL			(1<<5)
 #define XLF_5LEVEL_ENABLED		(1<<6)
+#define XLF_MEM_ENCRYPTION		(1<<7)
 
 #ifndef __ASSEMBLY__
 
arch/x86/kernel/cpu/bugs.c +108 -13

172 lines not on this page · raw message

arch/x86/kernel/cpu/common.c +16 -8
index 40d8c110bb32..785fedddb5f0 100644
@@ -1163,6 +1163,7 @@ static void identify_cpu_without_cpuid(struct cpuinfo_x86 *c)
 #define NO_SPECTRE_V2		BIT(8)
 #define NO_MMIO			BIT(9)
 #define NO_EIBRS_PBRSB		BIT(10)
+#define NO_BHI			BIT(11)
 
 #define VULNWL(vendor, family, model, whitelist)	\
 	X86_MATCH_VENDOR_FAM_MODEL(vendor, family, model, whitelist)
@@ -1225,18 +1226,18 @@ static const __initconst struct x86_cpu_id cpu_vuln_whitelist[] = {
 	VULNWL_INTEL(ATOM_TREMONT_D,		NO_ITLB_MULTIHIT | NO_EIBRS_PBRSB),
 
 	/* AMD Family 0xf - 0x12 */
-	VULNWL_AMD(0x0f,	NO_MELTDOWN | NO_SSB | NO_L1TF | NO_MDS | NO_SWAPGS | NO_ITLB_MULTIHIT | NO_MMIO),
-	VULNWL_AMD(0x10,	NO_MELTDOWN | NO_SSB | NO_L1TF | NO_MDS | NO_SWAPGS | NO_ITLB_MULTIHIT | NO_MMIO),
-	VULNWL_AMD(0x11,	NO_MELTDOWN | NO_SSB | NO_L1TF | NO_MDS | NO_SWAPGS | NO_ITLB_MULTIHIT | NO_MMIO),
-	VULNWL_AMD(0x12,	NO_MELTDOWN | NO_SSB | NO_L1TF | NO_MDS | NO_SWAPGS | NO_ITLB_MULTIHIT | NO_MMIO),
+	VULNWL_AMD(0x0f,	NO_MELTDOWN | NO_SSB | NO_L1TF | NO_MDS | NO_SWAPGS | NO_ITLB_MULTIHIT | NO_MMIO | NO_BHI),
+	VULNWL_AMD(0x10,	NO_MELTDOWN | NO_SSB | NO_L1TF | NO_MDS | NO_SWAPGS | NO_ITLB_MULTIHIT | NO_MMIO | NO_BHI),
+	VULNWL_AMD(0x11,	NO_MELTDOWN | NO_SSB | NO_L1TF | NO_MDS | NO_SWAPGS | NO_ITLB_MULTIHIT | NO_MMIO | NO_BHI),
+	VULNWL_AMD(0x12,	NO_MELTDOWN | NO_SSB | NO_L1TF | NO_MDS | NO_SWAPGS | NO_ITLB_MULTIHIT | NO_MMIO | NO_BHI),
 
 	/* FAMILY_ANY must be last, otherwise 0x0f - 0x12 matches won't work */
-	VULNWL_AMD(X86_FAMILY_ANY,	NO_MELTDOWN | NO_L1TF | NO_MDS | NO_SWAPGS | NO_ITLB_MULTIHIT | NO_MMIO | NO_EIBRS_PBRSB),
-	VULNWL_HYGON(X86_FAMILY_ANY,	NO_MELTDOWN | NO_L1TF | NO_MDS | NO_SWAPGS | NO_ITLB_MULTIHIT | NO_MMIO | NO_EIBRS_PBRSB),
+	VULNWL_AMD(X86_FAMILY_ANY,	NO_MELTDOWN | NO_L1TF | NO_MDS | NO_SWAPGS | NO_ITLB_MULTIHIT | NO_MMIO | NO_EIBRS_PBRSB | NO_BHI),
+	VULNWL_HYGON(X86_FAMILY_ANY,	NO_MELTDOWN | NO_L1TF | NO_MDS | NO_SWAPGS | NO_ITLB_MULTIHIT | NO_MMIO | NO_EIBRS_PBRSB | NO_BHI),
 
 	/* Zhaoxin Family 7 */
-	VULNWL(CENTAUR,	7, X86_MODEL_ANY,	NO_SPECTRE_V2 | NO_SWAPGS | NO_MMIO),
-	VULNWL(ZHAOXIN,	7, X86_MODEL_ANY,	NO_SPECTRE_V2 | NO_SWAPGS | NO_MMIO),
+	VULNWL(CENTAUR,	7, X86_MODEL_ANY,	NO_SPECTRE_V2 | NO_SWAPGS | NO_MMIO | NO_BHI),
+	VULNWL(ZHAOXIN,	7, X86_MODEL_ANY,	NO_SPECTRE_V2 | NO_SWAPGS | NO_MMIO | NO_BHI),
 	{}
 };
 
@@ -1473,6 +1474,13 @@ static void __init cpu_set_bug_bits(struct cpuinfo_x86 *c)
 	if (vulnerable_to_rfds(ia32_cap))
 		setup_force_cpu_bug(X86_BUG_RFDS);
 
+	/* When virtualized, eIBRS could be hidden, assume vulnerable */
+	if (!(ia32_cap & ARCH_CAP_BHI_NO) &&
+	    !cpu_matches(cpu_vuln_whitelist, NO_BHI) &&
+	    (boot_cpu_has(X86_FEATURE_IBRS_ENHANCED) ||
+	     boot_cpu_has(X86_FEATURE_HYPERVISOR)))
+		setup_force_cpu_bug(X86_BUG_BHI);
+
 	if (cpu_matches(cpu_vuln_whitelist, NO_MELTDOWN))
 		return;
 
arch/x86/kernel/cpu/mce/core.c +3 -1
index bc39252bc54f..c17f9403cf6c 100644
@@ -2474,12 +2474,14 @@ static ssize_t set_bank(struct device *s, struct device_attribute *attr,
 		return -EINVAL;
 
 	b = &per_cpu(mce_banks_array, s->id)[bank];
-
 	if (!b->init)
 		return -ENODEV;
 
 	b->ctl = new;
+
+	mutex_lock(&mce_sysfs_mutex);
 	mce_restart();
+	mutex_unlock(&mce_sysfs_mutex);
 
 	return size;
 }
arch/x86/kernel/cpu/scattered.c +1 -0
index 0dad49a09b7a..0ebca40dfd74 100644
@@ -28,6 +28,7 @@ static const struct cpuid_bit cpuid_bits[] = {
 	{ X86_FEATURE_EPB,		CPUID_ECX,  3, 0x00000006, 0 },
 	{ X86_FEATURE_INTEL_PPIN,	CPUID_EBX,  0, 0x00000007, 1 },
 	{ X86_FEATURE_RRSBA_CTRL,	CPUID_EDX,  2, 0x00000007, 2 },
+	{ X86_FEATURE_BHI_CTRL,		CPUID_EDX,  4, 0x00000007, 2 },
 	{ X86_FEATURE_CQM_LLC,		CPUID_EDX,  1, 0x0000000f, 0 },
 	{ X86_FEATURE_CQM_OCCUP_LLC,	CPUID_EDX,  0, 0x0000000f, 1 },
 	{ X86_FEATURE_CQM_MBM_TOTAL,	CPUID_EDX,  1, 0x0000000f, 1 },
arch/x86/kernel/mpparse.c +5 -5
index 15c700d35870..b223922248e9 100644
@@ -196,12 +196,12 @@ static int __init smp_read_mpc(struct mpc_table *mpc, unsigned early)
 	if (!smp_check_mpc(mpc, oem, str))
 		return 0;
 
-	if (early) {
-		/* Initialize the lapic mapping */
-		if (!acpi_lapic)
-			register_lapic_address(mpc->lapic);
+	/* Initialize the lapic mapping */
+	if (!acpi_lapic)
+		register_lapic_address(mpc->lapic);
+
+	if (early)
 		return 1;
-	}
 
 	/* Now process the configuration blocks. */
 	while (count < mpc->length) {
arch/x86/kernel/setup.c +2 -0
index 97dd70285741..3998109195da 100644
@@ -35,6 +35,7 @@
 #include <asm/bios_ebda.h>
 #include <asm/bugs.h>
 #include <asm/cacheinfo.h>
+#include <asm/coco.h>
 #include <asm/cpu.h>
 #include <asm/efi.h>
 #include <asm/gart.h>
@@ -993,6 +994,7 @@ void __init setup_arch(char **cmdline_p)
 	 * memory size.
 	 */
 	mem_encrypt_setup_arch();
+	cc_random_init();
 
 	efi_fake_memmap();
 	efi_find_mirror();
arch/x86/kernel/sev-shared.c +10 -13
index 0b04e3bfd72a..be2fa2fc02f3 100644
@@ -89,7 +89,8 @@ static bool __init sev_es_check_cpu_features(void)
 	return true;
 }
 
-static void __noreturn sev_es_terminate(unsigned int set, unsigned int reason)
+static void __head __noreturn
+sev_es_terminate(unsigned int set, unsigned int reason)
 {
 	u64 val = GHCB_MSR_TERM_REQ;
 
@@ -326,13 +327,7 @@ static int sev_cpuid_hv(struct ghcb *ghcb, struct es_em_ctxt *ctxt, struct cpuid
  */
 static const struct snp_cpuid_table *snp_cpuid_get_table(void)
 {
-	void *ptr;
-
-	asm ("lea cpuid_table_copy(%%rip), %0"
-	     : "=r" (ptr)
-	     : "p" (&cpuid_table_copy));
-
-	return ptr;
+	return &RIP_REL_REF(cpuid_table_copy);
 }
 
 /*
@@ -391,7 +386,7 @@ static u32 snp_cpuid_calc_xsave_size(u64 xfeatures_en, bool compacted)
 	return xsave_size;
 }
 
-static bool
+static bool __head
 snp_cpuid_get_validated_func(struct cpuid_leaf *leaf)
 {
 	const struct snp_cpuid_table *cpuid_table = snp_cpuid_get_table();
@@ -528,7 +523,8 @@ static int snp_cpuid_postprocess(struct ghcb *ghcb, struct es_em_ctxt *ctxt,
  * Returns -EOPNOTSUPP if feature not enabled. Any other non-zero return value
  * should be treated as fatal by caller.
  */
-static int snp_cpuid(struct ghcb *ghcb, struct es_em_ctxt *ctxt, struct cpuid_leaf *leaf)
+static int __head
+snp_cpuid(struct ghcb *ghcb, struct es_em_ctxt *ctxt, struct cpuid_leaf *leaf)
 {
 	const struct snp_cpuid_table *cpuid_table = snp_cpuid_get_table();
 
@@ -570,7 +566,7 @@ static int snp_cpuid(struct ghcb *ghcb, struct es_em_ctxt *ctxt, struct cpuid_le
  * page yet, so it only supports the MSR based communication with the
  * hypervisor and only the CPUID exit-code.
  */
-void __init do_vc_no_ghcb(struct pt_regs *regs, unsigned long exit_code)
+void __head do_vc_no_ghcb(struct pt_regs *regs, unsigned long exit_code)
 {
 	unsigned int subfn = lower_bits(regs->cx, 32);
 	unsigned int fn = lower_bits(regs->ax, 32);
@@ -1016,7 +1012,8 @@ struct cc_setup_data {
  * Search for a Confidential Computing blob passed in as a setup_data entry
  * via the Linux Boot Protocol.
  */
-static struct cc_blob_sev_info *find_cc_blob_setup_data(struct boot_params *bp)
+static __head
+struct cc_blob_sev_info *find_cc_blob_setup_data(struct boot_params *bp)
 {
 	struct cc_setup_data *sd = NULL;
 	struct setup_data *hdr;
@@ -1043,7 +1040,7 @@ static struct cc_blob_sev_info *find_cc_blob_setup_data(struct boot_params *bp)
  * mapping needs to be updated in sync with all the changes to virtual memory
  * layout and related mapping facilities throughout the boot process.
  */
-static void __init setup_cpuid_table(const struct cc_blob_sev_info *cc_info)
+static void __head setup_cpuid_table(const struct cc_blob_sev_info *cc_info)
 {
 	const struct snp_cpuid_table *cpuid_table_fw, *cpuid_table;
 	int i;
arch/x86/kernel/sev.c +8 -6
index 0f58242b54b8..eb2873b5eb1b 100644
@@ -26,6 +26,7 @@
 #include <linux/dmi.h>
 #include <uapi/linux/sev-guest.h>
 
+#include <asm/init.h>
 #include <asm/cpu_entry_area.h>
 #include <asm/stacktrace.h>
 #include <asm/sev.h>
@@ -683,8 +684,9 @@ static u64 __init get_jump_table_addr(void)
 	return ret;
 }
 
-static void early_set_pages_state(unsigned long vaddr, unsigned long paddr,
-				  unsigned long npages, enum psc_op op)
+static void __head
+early_set_pages_state(unsigned long vaddr, unsigned long paddr,
+		      unsigned long npages, enum psc_op op)
 {
 	unsigned long paddr_end;
 	u64 val;
@@ -740,7 +742,7 @@ static void early_set_pages_state(unsigned long vaddr, unsigned long paddr,
 	sev_es_terminate(SEV_TERM_SET_LINUX, GHCB_TERM_PSC);
 }
 
-void __init early_snp_set_memory_private(unsigned long vaddr, unsigned long paddr,
+void __head early_snp_set_memory_private(unsigned long vaddr, unsigned long paddr,
 					 unsigned long npages)
 {
 	/*
@@ -2045,7 +2047,7 @@ bool __init handle_vc_boot_ghcb(struct pt_regs *regs)
  *
  * Scan for the blob in that order.
  */
-static __init struct cc_blob_sev_info *find_cc_blob(struct boot_params *bp)
+static __head struct cc_blob_sev_info *find_cc_blob(struct boot_params *bp)
 {
 	struct cc_blob_sev_info *cc_info;
 
@@ -2071,7 +2073,7 @@ static __init struct cc_blob_sev_info *find_cc_blob(struct boot_params *bp)
 	return cc_info;
 }
 
-bool __init snp_init(struct boot_params *bp)
+bool __head snp_init(struct boot_params *bp)
 {
 	struct cc_blob_sev_info *cc_info;
 
@@ -2093,7 +2095,7 @@ bool __init snp_init(struct boot_params *bp)
 	return true;
 }
 
-void __init __noreturn snp_abort(void)
+void __head __noreturn snp_abort(void)
 {
 	sev_es_terminate(SEV_TERM_SET_GEN, GHCB_SNP_UNSUPPORTED);
 }
arch/x86/kvm/mmu/mmu.c +1 -1
index 0544700ca50b..e2c3573f53e4 100644
@@ -3126,7 +3126,7 @@ static int host_pfn_mapping_level(struct kvm *kvm, gfn_t gfn,
 	if (pud_none(pud) || !pud_present(pud))
 		goto out;
 
-	if (pud_large(pud)) {
+	if (pud_leaf(pud)) {
 		level = PG_LEVEL_1G;
 		goto out;
 	}
arch/x86/kvm/reverse_cpuid.h +4 -1
index aadefcaa9561..2f4e155080ba 100644
@@ -52,7 +52,7 @@ enum kvm_only_cpuid_leafs {
 #define X86_FEATURE_IPRED_CTRL		KVM_X86_FEATURE(CPUID_7_2_EDX, 1)
 #define KVM_X86_FEATURE_RRSBA_CTRL	KVM_X86_FEATURE(CPUID_7_2_EDX, 2)
 #define X86_FEATURE_DDPD_U		KVM_X86_FEATURE(CPUID_7_2_EDX, 3)
-#define X86_FEATURE_BHI_CTRL		KVM_X86_FEATURE(CPUID_7_2_EDX, 4)
+#define KVM_X86_FEATURE_BHI_CTRL	KVM_X86_FEATURE(CPUID_7_2_EDX, 4)
 #define X86_FEATURE_MCDT_NO		KVM_X86_FEATURE(CPUID_7_2_EDX, 5)
 
 /* CPUID level 0x80000007 (EDX). */
@@ -102,10 +102,12 @@ static const struct cpuid_reg reverse_cpuid[] = {
  */
 static __always_inline void reverse_cpuid_check(unsigned int x86_leaf)
 {
+	BUILD_BUG_ON(NR_CPUID_WORDS != NCAPINTS);
 	BUILD_BUG_ON(x86_leaf == CPUID_LNX_1);
 	BUILD_BUG_ON(x86_leaf == CPUID_LNX_2);
 	BUILD_BUG_ON(x86_leaf == CPUID_LNX_3);
 	BUILD_BUG_ON(x86_leaf == CPUID_LNX_4);
+	BUILD_BUG_ON(x86_leaf == CPUID_LNX_5);
 	BUILD_BUG_ON(x86_leaf >= ARRAY_SIZE(reverse_cpuid));
 	BUILD_BUG_ON(reverse_cpuid[x86_leaf].function == 0);
 }
@@ -126,6 +128,7 @@ static __always_inline u32 __feature_translate(int x86_feature)
 	KVM_X86_TRANSLATE_FEATURE(CONSTANT_TSC);
 	KVM_X86_TRANSLATE_FEATURE(PERFMON_V2);
 	KVM_X86_TRANSLATE_FEATURE(RRSBA_CTRL);
+	KVM_X86_TRANSLATE_FEATURE(BHI_CTRL);
 	default:
 		return x86_feature;
 	}
arch/x86/kvm/svm/sev.c +28 -17

108 lines not on this page · raw message

arch/x86/kvm/trace.h +5 -5
index 83843379813e..b82e6ed4f024 100644
@@ -732,13 +732,13 @@ TRACE_EVENT(kvm_nested_intr_vmexit,
  * Tracepoint for nested #vmexit because of interrupt pending
  */
 TRACE_EVENT(kvm_invlpga,
-	    TP_PROTO(__u64 rip, int asid, u64 address),
+	    TP_PROTO(__u64 rip, unsigned int asid, u64 address),
 	    TP_ARGS(rip, asid, address),
 
 	TP_STRUCT__entry(
-		__field(	__u64,	rip	)
-		__field(	int,	asid	)
-		__field(	__u64,	address	)
+		__field(	__u64,		rip	)
+		__field(	unsigned int,	asid	)
+		__field(	__u64,		address	)
 	),
 
 	TP_fast_assign(
@@ -747,7 +747,7 @@ TRACE_EVENT(kvm_invlpga,
 		__entry->address	=	address;
 	),
 
-	TP_printk("rip: 0x%016llx asid: %d address: 0x%016llx",
+	TP_printk("rip: 0x%016llx asid: %u address: 0x%016llx",
 		  __entry->rip, __entry->asid, __entry->address)
 );
 
arch/x86/kvm/vmx/vmenter.S +2 -0
index 2bfbf758d061..f6986dee6f8c 100644
@@ -275,6 +275,8 @@ SYM_INNER_LABEL_ALIGN(vmx_vmexit, SYM_L_GLOBAL)
 
 	call vmx_spec_ctrl_restore_host
 
+	CLEAR_BRANCH_HISTORY_VMEXIT
+
 	/* Put return value in AX */
 	mov %_ASM_BX, %_ASM_AX
 
arch/x86/kvm/x86.c +1 -1
index ffe580169c93..8e4e48840290 100644
@@ -1624,7 +1624,7 @@ static bool kvm_is_immutable_feature_msr(u32 msr)
 	 ARCH_CAP_PSCHANGE_MC_NO | ARCH_CAP_TSX_CTRL_MSR | ARCH_CAP_TAA_NO | \
 	 ARCH_CAP_SBDR_SSDP_NO | ARCH_CAP_FBSDP_NO | ARCH_CAP_PSDP_NO | \
 	 ARCH_CAP_FB_CLEAR | ARCH_CAP_RRSBA | ARCH_CAP_PBRSB_NO | ARCH_CAP_GDS_NO | \
-	 ARCH_CAP_RFDS_NO | ARCH_CAP_RFDS_CLEAR)
+	 ARCH_CAP_RFDS_NO | ARCH_CAP_RFDS_CLEAR | ARCH_CAP_BHI_NO)
 
 static u64 kvm_get_arch_capabilities(void)
 {
arch/x86/lib/Makefile +0 -13
index ea3a28e7b613..f0dae4fb6d07 100644
@@ -14,19 +14,6 @@ ifdef CONFIG_KCSAN
 CFLAGS_REMOVE_delay.o = $(CC_FLAGS_FTRACE)
 endif
 
-# Early boot use of cmdline; don't instrument it
-ifdef CONFIG_AMD_MEM_ENCRYPT
-KCOV_INSTRUMENT_cmdline.o := n
-KASAN_SANITIZE_cmdline.o  := n
-KCSAN_SANITIZE_cmdline.o  := n
-
-ifdef CONFIG_FUNCTION_TRACER
-CFLAGS_REMOVE_cmdline.o = -pg
-endif
-
-CFLAGS_cmdline.o := -fno-stack-protector -fno-jump-tables
-endif
-
 inat_tables_script = $(srctree)/arch/x86/tools/gen-insn-attr-x86.awk
 inat_tables_maps = $(srctree)/arch/x86/lib/x86-opcode-map.txt
 quiet_cmd_inat_tables = GEN     $@
arch/x86/lib/retpoline.S +5 -1
index 1e59367b4681..5b26a952e2fa 100644
@@ -229,8 +229,12 @@ SYM_CODE_END(srso_return_thunk)
 #define JMP_SRSO_UNTRAIN_RET "ud2"
 /* Dummy for the alternative in CALL_UNTRAIN_RET. */
 SYM_CODE_START(srso_alias_untrain_ret)
-	RET
+	ANNOTATE_UNRET_SAFE
+	ANNOTATE_NOENDBR
+	ret
+	int3
 SYM_FUNC_END(srso_alias_untrain_ret)
+__EXPORT_THUNK(srso_alias_untrain_ret)
 #endif /* CONFIG_CPU_SRSO */
 
 #ifdef CONFIG_CPU_UNRET_ENTRY
arch/x86/mm/fault.c +2 -2
index d6375b3c633b..b01df023de04 100644
@@ -376,7 +376,7 @@ static void dump_pagetable(unsigned long address)
 		goto bad;
 
 	pr_cont("PUD %lx ", pud_val(*pud));
-	if (!pud_present(*pud) || pud_large(*pud))
+	if (!pud_present(*pud) || pud_leaf(*pud))
 		goto out;
 
 	pmd = pmd_offset(pud, address);
@@ -1037,7 +1037,7 @@ spurious_kernel_fault(unsigned long error_code, unsigned long address)
 	if (!pud_present(*pud))
 		return 0;
 
-	if (pud_large(*pud))
+	if (pud_leaf(*pud))
 		return spurious_kernel_fault_check(error_code, (pte_t *) pud);
 
 	pmd = pmd_offset(pud, address);
arch/x86/mm/ident_map.c +5 -18
index f50cc210a981..968d7005f4a7 100644
@@ -26,31 +26,18 @@ static int ident_pud_init(struct x86_mapping_info *info, pud_t *pud_page,
 	for (; addr < end; addr = next) {
 		pud_t *pud = pud_page + pud_index(addr);
 		pmd_t *pmd;
-		bool use_gbpage;
 
 		next = (addr & PUD_MASK) + PUD_SIZE;
 		if (next > end)
 			next = end;
 
-		/* if this is already a gbpage, this portion is already mapped */
-		if (pud_large(*pud))
-			continue;
-
-		/* Is using a gbpage allowed? */
-		use_gbpage = info->direct_gbpages;
-
-		/* Don't use gbpage if it maps more than the requested region. */
-		/* at the begining: */
-		use_gbpage &= ((addr & ~PUD_MASK) == 0);
-		/* ... or at the end: */
-		use_gbpage &= ((next & ~PUD_MASK) == 0);
-
-		/* Never overwrite existing mappings */
-		use_gbpage &= !pud_present(*pud);
-
-		if (use_gbpage) {
+		if (info->direct_gbpages) {
 			pud_t pudval;
 
+			if (pud_present(*pud))
+				continue;
+
+			addr &= PUD_MASK;
 			pudval = __pud((addr - info->offset) | info->page_flag);
 			set_pud(pud, pudval);
 			continue;
arch/x86/mm/init_64.c +2 -2
index a0dffaca6d2b..534436c9d399 100644
@@ -617,7 +617,7 @@ phys_pud_init(pud_t *pud_page, unsigned long paddr, unsigned long paddr_end,
 		}
 
 		if (!pud_none(*pud)) {
-			if (!pud_large(*pud)) {
+			if (!pud_leaf(*pud)) {
 				pmd = pmd_offset(pud, 0);
 				paddr_last = phys_pmd_init(pmd, paddr,
 							   paddr_end,
@@ -1163,7 +1163,7 @@ remove_pud_table(pud_t *pud_start, unsigned long addr, unsigned long end,
 		if (!pud_present(*pud))
 			continue;
 
-		if (pud_large(*pud) &&
+		if (pud_leaf(*pud) &&
 		    IS_ALIGNED(addr, PUD_SIZE) &&
 		    IS_ALIGNED(next, PUD_SIZE)) {
 			spin_lock(&init_mm.page_table_lock);
arch/x86/mm/kasan_init_64.c +1 -1
index 0302491d799d..fcf508c52bdc 100644
@@ -115,7 +115,7 @@ static void __init kasan_populate_p4d(p4d_t *p4d, unsigned long addr,
 	pud = pud_offset(p4d, addr);
 	do {
 		next = pud_addr_end(addr, end);
-		if (!pud_large(*pud))
+		if (!pud_leaf(*pud))
 			kasan_populate_pud(pud, addr, next, nid);
 	} while (pud++, addr = next, addr != end);
 }
arch/x86/mm/mem_encrypt_identity.c +21 -55

197 lines not on this page · raw message

arch/x86/mm/pat/memtype.c +35 -14

79 lines not on this page · raw message

arch/x86/mm/pat/set_memory.c +3 -3
index 102880404046..135bb594df8b 100644
@@ -684,7 +684,7 @@ pte_t *lookup_address_in_pgd(pgd_t *pgd, unsigned long address,
 		return NULL;
 
 	*level = PG_LEVEL_1G;
-	if (pud_large(*pud) || !pud_present(*pud))
+	if (pud_leaf(*pud) || !pud_present(*pud))
 		return (pte_t *)pud;
 
 	pmd = pmd_offset(pud, address);
@@ -743,7 +743,7 @@ pmd_t *lookup_pmd_address(unsigned long address)
 		return NULL;
 
 	pud = pud_offset(p4d, address);
-	if (pud_none(*pud) || pud_large(*pud) || !pud_present(*pud))
+	if (pud_none(*pud) || pud_leaf(*pud) || !pud_present(*pud))
 		return NULL;
 
 	return pmd_offset(pud, address);
@@ -1278,7 +1278,7 @@ static void unmap_pud_range(p4d_t *p4d, unsigned long start, unsigned long end)
 	 */
 	while (end - start >= PUD_SIZE) {
 
-		if (pud_large(*pud))
+		if (pud_leaf(*pud))
 			pud_clear(pud);
 		else
 			unmap_pmd_range(pud, start, start + PUD_SIZE);
arch/x86/mm/pgtable.c +1 -1
index 0cbc1b8e8e3d..a67bb8f982bd 100644
@@ -777,7 +777,7 @@ int pmd_set_huge(pmd_t *pmd, phys_addr_t addr, pgprot_t prot)
  */
 int pud_clear_huge(pud_t *pud)
 {
-	if (pud_large(*pud)) {
+	if (pud_leaf(*pud)) {
 		pud_clear(pud);
 		return 1;
 	}
arch/x86/mm/pti.c +1 -1
index 669ba1c345b3..912b1da7ed80 100644
@@ -217,7 +217,7 @@ static pmd_t *pti_user_pagetable_walk_pmd(unsigned long address)
 
 	pud = pud_offset(p4d, address);
 	/* The user page tables do not use large mappings: */
-	if (pud_large(*pud)) {
+	if (pud_leaf(*pud)) {
 		WARN_ON(1);
 		return NULL;
 	}
arch/x86/net/bpf_jit_comp.c +1 -1
index 919f647c740f..df484885ccd4 100644
@@ -466,7 +466,7 @@ static int emit_call(u8 **pprog, void *func, void *ip)
 static int emit_rsb_call(u8 **pprog, void *func, void *ip)
 {
 	OPTIMIZER_HIDE_VAR(func);
-	x86_call_depth_emit_accounting(pprog, func);
+	ip += x86_call_depth_emit_accounting(pprog, func);
 	return emit_patch(pprog, func, ip, 0xE8);
 }
 
arch/x86/power/hibernate.c +1 -1
index 6f955eb1e163..d8af46e67750 100644
@@ -170,7 +170,7 @@ int relocate_restore_code(void)
 		goto out;
 	}
 	pud = pud_offset(p4d, relocated_restore_code);
-	if (pud_large(*pud)) {
+	if (pud_leaf(*pud)) {
 		set_pud(pud, __pud(pud_val(*pud) & ~_PAGE_NX));
 		goto out;
 	}
arch/x86/xen/mmu_pv.c +2 -2
index 72af496a160c..994aef4473a6 100644
@@ -1082,7 +1082,7 @@ static void __init xen_cleanmfnmap_pud(pud_t *pud, bool unpin)
 	pmd_t *pmd_tbl;
 	int i;
 
-	if (pud_large(*pud)) {
+	if (pud_leaf(*pud)) {
 		pa = pud_val(*pud) & PHYSICAL_PAGE_MASK;
 		xen_free_ro_pages(pa, PUD_SIZE);
 		return;
@@ -1863,7 +1863,7 @@ static phys_addr_t __init xen_early_virt_to_phys(unsigned long vaddr)
 	if (!pud_present(pud))
 		return 0;
 	pa = pud_val(pud) & PTE_PFN_MASK;
-	if (pud_large(pud))
+	if (pud_leaf(pud))
 		return pa + (vaddr & ~PUD_MASK);
 
 	pmd = native_make_pmd(xen_read_phys_ulong(pa + pmd_index(vaddr) *
block/bdev.c +3 -3
index e9f1b12bd75c..678807bcd003 100644
@@ -738,17 +738,17 @@ void blkdev_put_no_open(struct block_device *bdev)
 
 static bool bdev_writes_blocked(struct block_device *bdev)
 {
-	return bdev->bd_writers == -1;
+	return bdev->bd_writers < 0;
 }
 
 static void bdev_block_writes(struct block_device *bdev)
 {
-	bdev->bd_writers = -1;
+	bdev->bd_writers--;
 }
 
 static void bdev_unblock_writes(struct block_device *bdev)
 {
-	bdev->bd_writers = 0;
+	bdev->bd_writers++;
 }
 
 static bool bdev_may_open(struct block_device *bdev, blk_mode_t mode)
drivers/acpi/acpica/dbnames.c +6 -2
index b91155ea9c34..c9131259f717 100644
@@ -550,8 +550,12 @@ acpi_db_walk_for_fields(acpi_handle obj_handle,
 	ACPI_FREE(buffer.pointer);
 
 	buffer.length = ACPI_ALLOCATE_LOCAL_BUFFER;
-	acpi_evaluate_object(obj_handle, NULL, NULL, &buffer);
-
+	status = acpi_evaluate_object(obj_handle, NULL, NULL, &buffer);
+	if (ACPI_FAILURE(status)) {
+		acpi_os_printf("Could Not evaluate object %p\n",
+			       obj_handle);
+		return (AE_OK);
+	}
 	/*
 	 * Since this is a field unit, surround the output in braces
 	 */
drivers/ata/sata_mv.c +31 -32

87 lines not on this page · raw message

drivers/ata/sata_sx4.c +2 -4
index b51d7a9d0d90..a482741eb181 100644
@@ -957,8 +957,7 @@ static void pdc20621_get_from_dimm(struct ata_host *host, void *psource,
 
 	offset -= (idx * window_size);
 	idx++;
-	dist = ((long) (window_size - (offset + size))) >= 0 ? size :
-		(long) (window_size - offset);
+	dist = min(size, window_size - offset);
 	memcpy_fromio(psource, dimm_mmio + offset / 4, dist);
 
 	psource += dist;
@@ -1005,8 +1004,7 @@ static void pdc20621_put_to_dimm(struct ata_host *host, void *psource,
 	readl(mmio + PDC_DIMM_WINDOW_CTLR);
 	offset -= (idx * window_size);
 	idx++;
-	dist = ((long)(s32)(window_size - (offset + size))) >= 0 ? size :
-		(long) (window_size - offset);
+	dist = min(size, window_size - offset);
 	memcpy_toio(dimm_mmio + offset / 4, psource, dist);
 	writel(0x01, mmio + PDC_GENERAL_CTLR);
 	readl(mmio + PDC_GENERAL_CTLR);
drivers/base/core.c +23 -3
index 9828da9b933c..7f39c813ce52 100644
@@ -44,6 +44,7 @@ static bool fw_devlink_is_permissive(void);
 static void __fw_devlink_link_to_consumers(struct device *dev);
 static bool fw_devlink_drv_reg_done;
 static bool fw_devlink_best_effort;
+static struct workqueue_struct *device_link_wq;
 
 /**
  * __fwnode_link_add - Create a link between two fwnode_handles.
@@ -532,12 +533,26 @@ static void devlink_dev_release(struct device *dev)
 	/*
 	 * It may take a while to complete this work because of the SRCU
 	 * synchronization in device_link_release_fn() and if the consumer or
-	 * supplier devices get deleted when it runs, so put it into the "long"
-	 * workqueue.
+	 * supplier devices get deleted when it runs, so put it into the
+	 * dedicated workqueue.
 	 */
-	queue_work(system_long_wq, &link->rm_work);
+	queue_work(device_link_wq, &link->rm_work);
 }
 
+/**
+ * device_link_wait_removal - Wait for ongoing devlink removal jobs to terminate
+ */
+void device_link_wait_removal(void)
+{
+	/*
+	 * devlink removal jobs are queued in the dedicated work queue.
+	 * To be sure that all removal jobs are terminated, ensure that any
+	 * scheduled work has run to completion.
+	 */
+	flush_workqueue(device_link_wq);
+}
+EXPORT_SYMBOL_GPL(device_link_wait_removal);
+
 static struct class devlink_class = {
 	.name = "devlink",
 	.dev_groups = devlink_groups,
@@ -4098,9 +4113,14 @@ int __init devices_init(void)
 	sysfs_dev_char_kobj = kobject_create_and_add("char", dev_kobj);
 	if (!sysfs_dev_char_kobj)
 		goto char_kobj_err;
+	device_link_wq = alloc_workqueue("device_link_wq", 0, 0);
+	if (!device_link_wq)
+		goto wq_err;
 
 	return 0;
 
+ wq_err:
+	kobject_put(sysfs_dev_char_kobj);
  char_kobj_err:
 	kobject_put(sysfs_dev_block_kobj);
  block_kobj_err:
drivers/base/regmap/regcache-maple.c +3 -3
index 41edd6a430eb..55999a50ccc0 100644
@@ -112,7 +112,7 @@ static int regcache_maple_drop(struct regmap *map, unsigned int min,
 	unsigned long *entry, *lower, *upper;
 	unsigned long lower_index, lower_last;
 	unsigned long upper_index, upper_last;
-	int ret;
+	int ret = 0;
 
 	lower = NULL;
 	upper = NULL;
@@ -145,7 +145,7 @@ static int regcache_maple_drop(struct regmap *map, unsigned int min,
 			upper_index = max + 1;
 			upper_last = mas.last;
 
-			upper = kmemdup(&entry[max + 1],
+			upper = kmemdup(&entry[max - mas.index + 1],
 					((mas.last - max) *
 					 sizeof(unsigned long)),
 					map->alloc_flags);
@@ -244,7 +244,7 @@ static int regcache_maple_sync(struct regmap *map, unsigned int min,
 	unsigned long lmin = min;
 	unsigned long lmax = max;
 	unsigned int r, v, sync_start;
-	int ret;
+	int ret = 0;
 	bool sync_needed = false;
 
 	map->cache_bypass = true;
drivers/bluetooth/btqca.c +6 -2
index b40b32fa7f1c..19cfc342fc7b 100644
@@ -826,11 +826,15 @@ EXPORT_SYMBOL_GPL(qca_uart_setup);
 
 int qca_set_bdaddr(struct hci_dev *hdev, const bdaddr_t *bdaddr)
 {
+	bdaddr_t bdaddr_swapped;
 	struct sk_buff *skb;
 	int err;
 
-	skb = __hci_cmd_sync_ev(hdev, EDL_WRITE_BD_ADDR_OPCODE, 6, bdaddr,
-				HCI_EV_VENDOR, HCI_INIT_TIMEOUT);
+	baswap(&bdaddr_swapped, bdaddr);
+
+	skb = __hci_cmd_sync_ev(hdev, EDL_WRITE_BD_ADDR_OPCODE, 6,
+				&bdaddr_swapped, HCI_EV_VENDOR,
+				HCI_INIT_TIMEOUT);
 	if (IS_ERR(skb)) {
 		err = PTR_ERR(skb);
 		bt_dev_err(hdev, "QCA Change address cmd failed (%d)", err);
drivers/bluetooth/hci_qca.c +9 -10
index 8a60ad7acd70..ecbc52eaf101 100644
@@ -7,7 +7,6 @@
  *
  *  Copyright (C) 2007 Texas Instruments, Inc.
  *  Copyright (c) 2010, 2012, 2018 The Linux Foundation. All rights reserved.
- *  Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  *  Acknowledgements:
  *  This file is based on hci_ll.c, which was...
@@ -226,6 +225,7 @@ struct qca_serdev {
 	struct qca_power *bt_power;
 	u32 init_speed;
 	u32 oper_speed;
+	bool bdaddr_property_broken;
 	const char *firmware_name;
 };
 
@@ -1843,6 +1843,7 @@ static int qca_setup(struct hci_uart *hu)
 	const char *firmware_name = qca_get_firmware_name(hu);
 	int ret;
 	struct qca_btsoc_version ver;
+	struct qca_serdev *qcadev;
 	const char *soc_name;
 
 	ret = qca_check_speeds(hu);
@@ -1904,16 +1905,11 @@ static int qca_setup(struct hci_uart *hu)
 	case QCA_WCN6750:
 	case QCA_WCN6855:
 	case QCA_WCN7850:
+		set_bit(HCI_QUIRK_USE_BDADDR_PROPERTY, &hdev->quirks);
 
-		/* Set BDA quirk bit for reading BDA value from fwnode property
-		 * only if that property exist in DT.
-		 */
-		if (fwnode_property_present(dev_fwnode(hdev->dev.parent), "local-bd-address")) {
-			set_bit(HCI_QUIRK_USE_BDADDR_PROPERTY, &hdev->quirks);
-			bt_dev_info(hdev, "setting quirk bit to read BDA from fwnode later");
-		} else {
-			bt_dev_dbg(hdev, "local-bd-address` is not present in the devicetree so not setting quirk bit for BDA");
-		}
+		qcadev = serdev_device_get_drvdata(hu->serdev);
+		if (qcadev->bdaddr_property_broken)
+			set_bit(HCI_QUIRK_BDADDR_PROPERTY_BROKEN, &hdev->quirks);
 
 		hci_set_aosp_capable(hdev);
 
@@ -2295,6 +2291,9 @@ static int qca_serdev_probe(struct serdev_device *serdev)
 	if (!qcadev->oper_speed)
 		BT_DBG("UART will pick default operating speed");
 
+	qcadev->bdaddr_property_broken = device_property_read_bool(&serdev->dev,
+			"qcom,local-bd-address-broken");
+
 	if (data)
 		qcadev->btsoc_type = data->soc_type;
 	else
drivers/dma-buf/st-dma-fence-chain.c +3 -3
index 9c2a0c082a76..ed4b323886e4 100644
@@ -84,11 +84,11 @@ static int sanitycheck(void *arg)
 		return -ENOMEM;
 
 	chain = mock_chain(NULL, f, 1);
-	if (!chain)
+	if (chain)
+		dma_fence_enable_sw_signaling(chain);
+	else
 		err = -ENOMEM;
 
-	dma_fence_enable_sw_signaling(chain);
-
 	dma_fence_signal(f);
 	dma_fence_put(f);
 
drivers/dpll/Kconfig +1 -1
index a4cae73f20d3..20607ed54243 100644
@@ -4,4 +4,4 @@
 #
 
 config DPLL
-  bool
+	bool
drivers/firmware/efi/libstub/efi-stub-helper.c +8 -0
index bfa30625f5d0..3dc2f9aaf08d 100644
@@ -24,6 +24,8 @@ static bool efi_noinitrd;
 static bool efi_nosoftreserve;
 static bool efi_disable_pci_dma = IS_ENABLED(CONFIG_EFI_DISABLE_PCI_DMA);
 
+int efi_mem_encrypt;
+
 bool __pure __efi_soft_reserve_enabled(void)
 {
 	return !efi_nosoftreserve;
@@ -75,6 +77,12 @@ efi_status_t efi_parse_options(char const *cmdline)
 			efi_noinitrd = true;
 		} else if (IS_ENABLED(CONFIG_X86_64) && !strcmp(param, "no5lvl")) {
 			efi_no5lvl = true;
+		} else if (IS_ENABLED(CONFIG_ARCH_HAS_MEM_ENCRYPT) &&
+			   !strcmp(param, "mem_encrypt") && val) {
+			if (parse_option_str(val, "on"))
+				efi_mem_encrypt = 1;
+			else if (parse_option_str(val, "off"))
+				efi_mem_encrypt = -1;
 		} else if (!strcmp(param, "efi") && val) {
 			efi_nochunk = parse_option_str(val, "nochunk");
 			efi_novamap |= parse_option_str(val, "novamap");
drivers/firmware/efi/libstub/efistub.h +1 -1
index c04b82ea40f2..fc18fd649ed7 100644
@@ -37,8 +37,8 @@ extern bool efi_no5lvl;
 extern bool efi_nochunk;
 extern bool efi_nokaslr;
 extern int efi_loglevel;
+extern int efi_mem_encrypt;
 extern bool efi_novamap;
-
 extern const efi_system_table_t *efi_system_table;
 
 typedef union efi_dxe_services_table efi_dxe_services_table_t;
drivers/firmware/efi/libstub/x86-stub.c +13 -1
index dd80082aac1a..19b51dc34f67 100644
@@ -238,6 +238,15 @@ efi_status_t efi_adjust_memory_range_protection(unsigned long start,
 	rounded_end = roundup(start + size, EFI_PAGE_SIZE);
 
 	if (memattr != NULL) {
+		status = efi_call_proto(memattr, set_memory_attributes,
+					rounded_start,
+					rounded_end - rounded_start,
+					EFI_MEMORY_RO);
+		if (status != EFI_SUCCESS) {
+			efi_warn("Failed to set EFI_MEMORY_RO attribute\n");
+			return status;
+		}
+
 		status = efi_call_proto(memattr, clear_memory_attributes,
 					rounded_start,
 					rounded_end - rounded_start,
@@ -818,7 +827,7 @@ static efi_status_t efi_decompress_kernel(unsigned long *kernel_entry)
 
 	*kernel_entry = addr + entry;
 
-	return efi_adjust_memory_range_protection(addr, kernel_total_size);
+	return efi_adjust_memory_range_protection(addr, kernel_text_size);
 }
 
 static void __noreturn enter_kernel(unsigned long kernel_addr,
@@ -890,6 +899,9 @@ void __noreturn efi_stub_entry(efi_handle_t handle,
 		}
 	}
 
+	if (efi_mem_encrypt > 0)
+		hdr->xloadflags |= XLF_MEM_ENCRYPTION;
+
 	status = efi_decompress_kernel(&kernel_entry);
 	if (status != EFI_SUCCESS) {
 		efi_err("Failed to decompress kernel\n");
drivers/gpio/gpiolib-cdev.c +50 -8

125 lines not on this page · raw message

drivers/gpio/gpiolib.c +18 -13
index 3ad09d219333..d9da0331e834 100644
@@ -2402,6 +2402,11 @@ char *gpiochip_dup_line_label(struct gpio_chip *gc, unsigned int offset)
 }
 EXPORT_SYMBOL_GPL(gpiochip_dup_line_label);
 
+static inline const char *function_name_or_default(const char *con_id)
+{
+	return con_id ?: "(default)";
+}
+
 /**
  * gpiochip_request_own_desc - Allow GPIO chip to request its own descriptor
  * @gc: GPIO chip
@@ -2430,10 +2435,11 @@ struct gpio_desc *gpiochip_request_own_desc(struct gpio_chip *gc,
 					    enum gpiod_flags dflags)
 {
 	struct gpio_desc *desc = gpiochip_get_desc(gc, hwnum);
+	const char *name = function_name_or_default(label);
 	int ret;
 
 	if (IS_ERR(desc)) {
-		chip_err(gc, "failed to get GPIO descriptor\n");
+		chip_err(gc, "failed to get GPIO %s descriptor\n", name);
 		return desc;
 	}
 
@@ -2443,8 +2449,8 @@ struct gpio_desc *gpiochip_request_own_desc(struct gpio_chip *gc,
 
 	ret = gpiod_configure_flags(desc, label, lflags, dflags);
 	if (ret) {
-		chip_err(gc, "setup of own GPIO %s failed\n", label);
 		gpiod_free_commit(desc);
+		chip_err(gc, "setup of own GPIO %s failed\n", name);
 		return ERR_PTR(ret);
 	}
 
@@ -4119,19 +4125,17 @@ static struct gpio_desc *gpiod_find_by_fwnode(struct fwnode_handle *fwnode,
 					      enum gpiod_flags *flags,
 					      unsigned long *lookupflags)
 {
+	const char *name = function_name_or_default(con_id);
 	struct gpio_desc *desc = ERR_PTR(-ENOENT);
 
 	if (is_of_node(fwnode)) {
-		dev_dbg(consumer, "using DT '%pfw' for '%s' GPIO lookup\n",
-			fwnode, con_id);
+		dev_dbg(consumer, "using DT '%pfw' for '%s' GPIO lookup\n", fwnode, name);
 		desc = of_find_gpio(to_of_node(fwnode), con_id, idx, lookupflags);
 	} else if (is_acpi_node(fwnode)) {
-		dev_dbg(consumer, "using ACPI '%pfw' for '%s' GPIO lookup\n",
-			fwnode, con_id);
+		dev_dbg(consumer, "using ACPI '%pfw' for '%s' GPIO lookup\n", fwnode, name);
 		desc = acpi_find_gpio(fwnode, con_id, idx, flags, lookupflags);
 	} else if (is_software_node(fwnode)) {
-		dev_dbg(consumer, "using swnode '%pfw' for '%s' GPIO lookup\n",
-			fwnode, con_id);
+		dev_dbg(consumer, "using swnode '%pfw' for '%s' GPIO lookup\n", fwnode, name);
 		desc = swnode_find_gpio(fwnode, con_id, idx, lookupflags);
 	}
 
@@ -4147,6 +4151,7 @@ struct gpio_desc *gpiod_find_and_request(struct device *consumer,
 					 bool platform_lookup_allowed)
 {
 	unsigned long lookupflags = GPIO_LOOKUP_FLAGS_DEFAULT;
+	const char *name = function_name_or_default(con_id);
 	struct gpio_desc *desc;
 	int ret;
 
@@ -4162,7 +4167,7 @@ struct gpio_desc *gpiod_find_and_request(struct device *consumer,
 	}
 
 	if (IS_ERR(desc)) {
-		dev_dbg(consumer, "No GPIO consumer %s found\n", con_id);
+		dev_dbg(consumer, "No GPIO consumer %s found\n", name);
 		return desc;
 	}
 
@@ -4183,15 +4188,14 @@ struct gpio_desc *gpiod_find_and_request(struct device *consumer,
 		 *
 		 * FIXME: Make this more sane and safe.
 		 */
-		dev_info(consumer,
-			 "nonexclusive access to GPIO for %s\n", con_id);
+		dev_info(consumer, "nonexclusive access to GPIO for %s\n", name);
 		return desc;
 	}
 
 	ret = gpiod_configure_flags(desc, con_id, lookupflags, flags);
 	if (ret < 0) {
-		dev_dbg(consumer, "setup of GPIO %s failed\n", con_id);
 		gpiod_put(desc);
+		dev_dbg(consumer, "setup of GPIO %s failed\n", name);
 		return ERR_PTR(ret);
 	}
 
@@ -4307,6 +4311,7 @@ EXPORT_SYMBOL_GPL(gpiod_get_optional);
 int gpiod_configure_flags(struct gpio_desc *desc, const char *con_id,
 		unsigned long lflags, enum gpiod_flags dflags)
 {
+	const char *name = function_name_or_default(con_id);
 	int ret;
 
 	if (lflags & GPIO_ACTIVE_LOW)
@@ -4350,7 +4355,7 @@ int gpiod_configure_flags(struct gpio_desc *desc, const char *con_id,
 
 	/* No particular flag request, return here... */
 	if (!(dflags & GPIOD_FLAGS_BIT_DIR_SET)) {
-		gpiod_dbg(desc, "no flags found for %s\n", con_id);
+		gpiod_dbg(desc, "no flags found for GPIO %s\n", name);
 		return 0;
 	}
 
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +2 -0
index 94bdb5fa6ebc..1fbaf7b81d69 100644
@@ -4524,6 +4524,8 @@ int amdgpu_device_prepare(struct drm_device *dev)
 	if (r)
 		goto unprepare;
 
+	flush_delayed_work(&adev->gfx.gfx_off_delay_work);
+
 	for (i = 0; i < adev->num_ip_blocks; i++) {
 		if (!adev->ip_blocks[i].status.valid)
 			continue;
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c +12 -13
index 3db46bdc71a3..9cbab880c623 100644
@@ -384,19 +384,6 @@ static void dcn35_enable_pme_wa(struct clk_mgr *clk_mgr_base)
 	dcn35_smu_enable_pme_wa(clk_mgr);
 }
 
-void dcn35_init_clocks(struct clk_mgr *clk_mgr)
-{
-	uint32_t ref_dtbclk = clk_mgr->clks.ref_dtbclk_khz;
-
-	memset(&(clk_mgr->clks), 0, sizeof(struct dc_clocks));
-
-	// Assumption is that boot state always supports pstate
-	clk_mgr->clks.ref_dtbclk_khz = ref_dtbclk;	// restore ref_dtbclk
-	clk_mgr->clks.p_state_change_support = true;
-	clk_mgr->clks.prev_p_state_change_support = true;
-	clk_mgr->clks.pwr_state = DCN_PWR_STATE_UNKNOWN;
-	clk_mgr->clks.zstate_support = DCN_ZSTATE_SUPPORT_UNKNOWN;
-}
 
 bool dcn35_are_clock_states_equal(struct dc_clocks *a,
 		struct dc_clocks *b)
@@ -421,7 +408,19 @@ static void dcn35_dump_clk_registers(struct clk_state_registers_and_bypass *regs
 		struct clk_mgr_dcn35 *clk_mgr)
 {
 }
+void dcn35_init_clocks(struct clk_mgr *clk_mgr)
+{
+	uint32_t ref_dtbclk = clk_mgr->clks.ref_dtbclk_khz;
 
+	memset(&(clk_mgr->clks), 0, sizeof(struct dc_clocks));
+
+	// Assumption is that boot state always supports pstate
+	clk_mgr->clks.ref_dtbclk_khz = ref_dtbclk;	// restore ref_dtbclk
+	clk_mgr->clks.p_state_change_support = true;
+	clk_mgr->clks.prev_p_state_change_support = true;
+	clk_mgr->clks.pwr_state = DCN_PWR_STATE_UNKNOWN;
+	clk_mgr->clks.zstate_support = DCN_ZSTATE_SUPPORT_UNKNOWN;
+}
 static struct clk_bw_params dcn35_bw_params = {
 	.vram_type = Ddr4MemType,
 	.num_channels = 1,
drivers/gpu/drm/amd/display/dc/dce110/Makefile +1 -1
index f0777d61c2cb..c307f040e48f 100644
@@ -23,7 +23,7 @@
 # Makefile for the 'controller' sub-component of DAL.
 # It provides the control and status of HW CRTC block.
 
-CFLAGS_$(AMDDALPATH)/dc/dce110/dce110_resource.o = $(call cc-disable-warning, override-init)
+CFLAGS_$(AMDDALPATH)/dc/dce110/dce110_resource.o = -Wno-override-init
 
 DCE110 = dce110_timing_generator.o \
 dce110_compressor.o dce110_opp_regamma_v.o \
drivers/gpu/drm/amd/display/dc/dce112/Makefile +1 -1
index 7e92effec894..683866797709 100644
@@ -23,7 +23,7 @@
 # Makefile for the 'controller' sub-component of DAL.
 # It provides the control and status of HW CRTC block.
 
-CFLAGS_$(AMDDALPATH)/dc/dce112/dce112_resource.o = $(call cc-disable-warning, override-init)
+CFLAGS_$(AMDDALPATH)/dc/dce112/dce112_resource.o = -Wno-override-init
 
 DCE112 = dce112_compressor.o
 
drivers/gpu/drm/amd/display/dc/dce120/Makefile +1 -1
index 1e3ef68a452a..8f508e662748 100644
@@ -24,7 +24,7 @@
 # It provides the control and status of HW CRTC block.
 
 
-CFLAGS_$(AMDDALPATH)/dc/dce120/dce120_resource.o = $(call cc-disable-warning, override-init)
+CFLAGS_$(AMDDALPATH)/dc/dce120/dce120_resource.o = -Wno-override-init
 
 DCE120 = dce120_timing_generator.o
 
drivers/gpu/drm/amd/display/dc/dce60/Makefile +1 -1
index fee331accc0e..eede83ad91fa 100644
@@ -23,7 +23,7 @@
 # Makefile for the 'controller' sub-component of DAL.
 # It provides the control and status of HW CRTC block.
 
-CFLAGS_$(AMDDALPATH)/dc/dce60/dce60_resource.o = $(call cc-disable-warning, override-init)
+CFLAGS_$(AMDDALPATH)/dc/dce60/dce60_resource.o = -Wno-override-init
 
 DCE60 = dce60_timing_generator.o dce60_hw_sequencer.o \
 	dce60_resource.o
drivers/gpu/drm/amd/display/dc/dce80/Makefile +1 -1
index 7eefffbdc925..fba189d26652 100644
@@ -23,7 +23,7 @@
 # Makefile for the 'controller' sub-component of DAL.
 # It provides the control and status of HW CRTC block.
 
-CFLAGS_$(AMDDALPATH)/dc/dce80/dce80_resource.o = $(call cc-disable-warning, override-init)
+CFLAGS_$(AMDDALPATH)/dc/dce80/dce80_resource.o = -Wno-override-init
 
 DCE80 = dce80_timing_generator.o
 
drivers/gpu/drm/amd/display/dc/resource/dcn35/dcn35_resource.c +1 -1
index 5fdcda8f8602..04d230aa8861 100644
@@ -701,7 +701,7 @@ static const struct dc_plane_cap plane_cap = {
 
 	// 6:1 downscaling ratio: 1000/6 = 166.666
 	.max_downscale_factor = {
-			.argb8888 = 167,
+			.argb8888 = 250,
 			.nv12 = 167,
 			.fp16 = 167
 	},
drivers/gpu/drm/drm_prime.c +6 -1
index 7352bde299d5..03bd3c7bd0dc 100644
@@ -582,7 +582,12 @@ int drm_gem_map_attach(struct dma_buf *dma_buf,
 {
 	struct drm_gem_object *obj = dma_buf->priv;
 
-	if (!obj->funcs->get_sg_table)
+	/*
+	 * drm_gem_map_dma_buf() requires obj->get_sg_table(), but drivers
+	 * that implement their own ->map_dma_buf() do not.
+	 */
+	if (dma_buf->ops->map_dma_buf == drm_gem_map_dma_buf &&
+	    !obj->funcs->get_sg_table)
 		return -ENOSYS;
 
 	return drm_gem_pin(obj);
drivers/gpu/drm/i915/Makefile +4 -3
index c13f14edb508..2d08baa91da0 100644
@@ -33,9 +33,9 @@ endif
 subdir-ccflags-$(CONFIG_DRM_I915_WERROR) += -Werror
 
 # Fine grained warnings disable
-CFLAGS_i915_pci.o = $(call cc-disable-warning, override-init)
-CFLAGS_display/intel_display_device.o = $(call cc-disable-warning, override-init)
-CFLAGS_display/intel_fbdev.o = $(call cc-disable-warning, override-init)
+CFLAGS_i915_pci.o = -Wno-override-init
+CFLAGS_display/intel_display_device.o = -Wno-override-init
+CFLAGS_display/intel_fbdev.o = -Wno-override-init
 
 # Support compiling the display code separately for both i915 and xe
 # drivers. Define I915 when building i915.
@@ -118,6 +118,7 @@ gt-y += \
 	gt/intel_ggtt_fencing.o \
 	gt/intel_gt.o \
 	gt/intel_gt_buffer_pool.o \
+	gt/intel_gt_ccs_mode.o \
 	gt/intel_gt_clock_utils.o \
 	gt/intel_gt_debugfs.o \
 	gt/intel_gt_engines_debugfs.o \
drivers/gpu/drm/i915/display/g4x_dp.c +0 -2
index dfe0b07a122d..06ec04e667e3 100644
@@ -717,7 +717,6 @@ static void g4x_enable_dp(struct intel_atomic_state *state,
 {
 	intel_enable_dp(state, encoder, pipe_config, conn_state);
 	intel_edp_backlight_on(pipe_config, conn_state);
-	encoder->audio_enable(encoder, pipe_config, conn_state);
 }
 
 static void vlv_enable_dp(struct intel_atomic_state *state,
@@ -726,7 +725,6 @@ static void vlv_enable_dp(struct intel_atomic_state *state,
 			  const struct drm_connector_state *conn_state)
 {
 	intel_edp_backlight_on(pipe_config, conn_state);
-	encoder->audio_enable(encoder, pipe_config, conn_state);
 }
 
 static void g4x_pre_enable_dp(struct intel_atomic_state *state,
drivers/gpu/drm/i915/display/intel_display_device.h +1 -0
index fe4268813786..9b1bce2624b9 100644
@@ -47,6 +47,7 @@ struct drm_printer;
 #define HAS_DPT(i915)			(DISPLAY_VER(i915) >= 13)
 #define HAS_DSB(i915)			(DISPLAY_INFO(i915)->has_dsb)
 #define HAS_DSC(__i915)			(DISPLAY_RUNTIME_INFO(__i915)->has_dsc)
+#define HAS_DSC_MST(__i915)		(DISPLAY_VER(__i915) >= 12 && HAS_DSC(__i915))
 #define HAS_FBC(i915)			(DISPLAY_RUNTIME_INFO(i915)->fbc_mask != 0)
 #define HAS_FPGA_DBG_UNCLAIMED(i915)	(DISPLAY_INFO(i915)->has_fpga_dbg)
 #define HAS_FW_BLC(i915)		(DISPLAY_VER(i915) >= 3)
drivers/gpu/drm/i915/display/intel_dp.c +6 -3
index 94d2a15d8444..360e90601ff9 100644
@@ -1422,7 +1422,8 @@ static bool intel_dp_source_supports_fec(struct intel_dp *intel_dp,
 	if (DISPLAY_VER(dev_priv) >= 12)
 		return true;
 
-	if (DISPLAY_VER(dev_priv) == 11 && encoder->port != PORT_A)
+	if (DISPLAY_VER(dev_priv) == 11 && encoder->port != PORT_A &&
+	    !intel_crtc_has_type(pipe_config, INTEL_OUTPUT_DP_MST))
 		return true;
 
 	return false;

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/i915/display/intel_dp_mst.c +1 -1
index a01a59f57ae5..2151e916ccfa 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/i915/display/intel_sdvo.c +0 -4
index 2915d7afe5cc..cc978ee6d130 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/i915/display/skl_universal_plane.c +3 -0
index 511dc1544854..8bba6c2e5098 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/i915/gt/gen8_engine_cs.c +2 -2
index 86a04afff64b..e1bf13e3d307 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/i915/gt/gen8_ppgtt.c +3 -0
index fa46d2308b0e..81bf2216371b 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/i915/gt/intel_engine_cs.c +17 -0
index 40687806d22a..84be97f959fa 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/i915/gt/intel_gt.c +6 -0
index a425db5ed3a2..6a2c2718bcc3 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/i915/gt/intel_gt.h +5 -4
index 608f5c872928..003eb93b826f 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/i915/gt/intel_gt_ccs_mode.c new file +39 -0
new file mode 100644
index 000000000000..044219c5960a

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/i915/gt/intel_gt_ccs_mode.h new file +13 -0
new file mode 100644
index 000000000000..9e5549caeb26

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/i915/gt/intel_gt_regs.h +6 -0
index 50962cfd1353..743fe3566722 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/i915/gt/intel_workarounds.c +44 -11

55 lines not on this page · raw message

drivers/gpu/drm/i915/i915_driver.c +1 -1
index c7d7c3b7ecc6..9967148aedf1 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/i915/i915_perf.c +1 -1
index 2d695818f006..bd9d812b1afa 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/nouveau/nouveau_uvmm.c +3 -3
index 0a0a11dc9ec0..ee02cd833c5e 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/panfrost/panfrost_gpu.c +3 -3
index 9063ce254642..fd8e44992184 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/rockchip/rockchip_vop2_reg.c +0 -2
index 48170694ac6b..18efb3fe1c00 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/xe/Makefile +2 -2
index 802c807c782c..1c9e6906b06a 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/xe/xe_bo.c +9 -50

59 lines not on this page · raw message

drivers/gpu/drm/xe/xe_bo_types.h +0 -19
index 64c2249a4e40..81dca15315d5 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/xe/xe_device.h +2 -2
index 08d8b72c7731..bf8efb44edf6 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/xe/xe_exec.c +3 -28
index 222209b0d690..2cd4ad2fcffa 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/xe/xe_exec_queue.c +3 -1
index 49223026c89f..5093c56d60ab 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/xe/xe_exec_queue_types.h +7 -0
index 36f4901d8d7e..22e1dffd0649 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/xe/xe_guc_submit.c +1 -1
index f22ae717b0b2..bd1079aa8849 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/xe/xe_pt.c +5 -3
index 6653c045f3c9..c1a833b1cb3d 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/xe/xe_ring_ops.c +4 -7
index 1e4c06eacd98..68495f885879 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/xe/xe_sched_job.c +10 -0
index 4e2ccad0e52f..d07b9ee0eaa5 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/xe/xe_sched_job_types.h +2 -0
index 71213ba9735b..46ead6345956 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/xe/xe_vm.c +9 -18
index a2397f232efc..a2024247bec1 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/xe/xe_vm.h +1 -1
index 9654a0612fc2..40188a28c547 100644

Lines of this file are not shown. View the raw message.

drivers/gpu/drm/xe/xe_vm_types.h +5 -3
index 5b9654947950..4027da3a10b3 100644

Lines of this file are not shown. View the raw message.

drivers/iommu/iommu.c +10 -1
index cd1210026ac5..ad33161f2374 100644

Lines of this file are not shown. View the raw message.

drivers/md/dm-integrity.c +1 -1
index 47cf1ab34941..3b4218a2e750 100644

Lines of this file are not shown. View the raw message.

drivers/net/dsa/mv88e6xxx/chip.c +5 -1
index 614cabb5c1b0..7de8a9c9e457 100644

Lines of this file are not shown. View the raw message.

drivers/net/dsa/sja1105/sja1105_mdio.c +1 -1
index 833e55e4b961..52ddb4ef259e 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c +19 -9
index 6ad1366270f7..78901e2e7303 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/freescale/fec_main.c +9 -2
index 432523b2c789..8decb1b072c5 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_tqp_stats.c +1 -1
index f3c9395d8351..618f66d9586b 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c +17 -2
index 999a0ee162a6..941cb529d671 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +4 -0
index 609d3799d773..a3b7723a97bb 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/e1000e/hw.h +2 -0
index 1fef6bb5a5fb..4b6e7536170a 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/e1000e/ich8lan.c +26 -12
index 19e450a5bd31..f9e94be36e97 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/e1000e/netdev.c +21 -3
index af5d9d97a0d6..3692fce20195 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/e1000e/phy.c +113 -69

182 lines not on this page · raw message

drivers/net/ethernet/intel/e1000e/phy.h +2 -0
index c48777d09523..049bb325b4b1 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/i40e/i40e.h +1 -0
index 9b701615c7c6..4d2b05de6c63 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/i40e/i40e_main.c +11 -2
index 89a3401d20ab..bb4ab3a9576b 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/i40e/i40e_register.h +3 -0
index 14ab642cafdb..432afbb64201 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/i40e/i40e_txrx.c +61 -21

82 lines not on this page · raw message

drivers/net/ethernet/intel/i40e/i40e_txrx.h +1 -0
index abf15067eb5d..2cdc7de6301c 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c +22 -23

45 lines not on this page · raw message

drivers/net/ethernet/intel/ice/ice_adminq_cmd.h +2 -1
index 8040317c9561..1f3e7a6903e5 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/ice/ice_lag.c +2 -2
index 467372d541d2..a7a342809935 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/ice/ice_lib.c +9 -9
index fc23dbe302b4..cfc20684f25a 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/ice/ice_switch.c +14 -10
index f84bab80ca42..ba0ef91e4c19 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/ice/ice_switch.h +2 -2
index db7e501b7e0a..89ffa1b51b5a 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/ice/ice_vf_vsi_vlan_ops.c +8 -10
index 80dc4bcdd3a4..b3e1bdcb80f8 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/idpf/idpf_txrx.c +2 -2
index 2f8ad79ae3f0..017a081d8580 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/igc/igc_main.c +0 -4
index e447ba037056..23bed58a9d82 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c +8 -8
index 13a6fca31004..866024f2b9ee 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/marvell/octeontx2/af/cgx.c +5 -0
index 3c0f55b3e48e..b86f3224f0b7 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c +2 -0
index 72e060cf6b61..e9bf9231b018 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c +1 -1
index 516adb50f9f6..42b5ed02bc87 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c +1 -1
index b40bd0e46751..3f46d5e0fb2e 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c +22 -9
index 3d09fa54598f..ba303868686a 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/microchip/lan743x_main.c +18 -0
index 45e209a7d083..6bf3367404eb 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/microchip/lan743x_main.h +4 -0
index be79cb0ae5af..645bc048e52e 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/microsoft/mana/mana_en.c +1 -1
index 59287c6e6cee..d8af5e7e15b4 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/realtek/r8169_main.c +36 -4
index dd73df6b17b0..4b6c28576a51 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/renesas/ravb_main.c +14 -19
index f7566cfa45ca..1bdf0abb256c 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/renesas/sh_eth.c +1 -1
index 475e1e8c1d35..0786eb0da391 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c +31 -9
index 6b6d0de09619..cef25efbdff9 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c +31 -7
index 1af2f89a0504..e841e312077e 100644

Lines of this file are not shown. View the raw message.

drivers/net/ethernet/wangxun/txgbe/txgbe_phy.c +5 -3
index 29997e4b2d6c..8cddc9ddb339 100644

Lines of this file are not shown. View the raw message.

drivers/net/phy/micrel.c +24 -7
index dad720138baa..1f950c824418 100644

Lines of this file are not shown. View the raw message.

drivers/net/usb/ax88179_178a.c +2 -0
index d837c1887416..e0e9b4c53cb0 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/intel/iwlwifi/mvm/rfi.c +6 -2
index 2ecd32bed752..045c862a8fc4 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c +8 -12
index 7bf2a5947e5e..481dfbbe4616 100644

Lines of this file are not shown. View the raw message.

drivers/net/wireless/intel/iwlwifi/mvm/time-event.c +2 -3
index da00ef6e4fbc..3d96a824dbd6 100644

Lines of this file are not shown. View the raw message.

drivers/net/wwan/t7xx/t7xx_cldma.c +2 -2
index 9f43f256db1d..f0a4783baf1f 100644

Lines of this file are not shown. View the raw message.

drivers/net/wwan/t7xx/t7xx_hif_cldma.c +5 -4
index cc70360364b7..554ba4669cc8 100644

Lines of this file are not shown. View the raw message.

drivers/net/wwan/t7xx/t7xx_pcie_mac.c +4 -4
index 76da4c15e3de..f071ec7ff23d 100644

Lines of this file are not shown. View the raw message.

drivers/net/xen-netfront.c +1 -0
index ad29f370034e..8d2aee88526c 100644

Lines of this file are not shown. View the raw message.

drivers/of/dynamic.c +12 -0
index 3bf27052832f..4d57a4e34105 100644

Lines of this file are not shown. View the raw message.

drivers/of/module.c +8 -0
index 0e8aa974f0f2..f58e624953a2 100644

Lines of this file are not shown. View the raw message.

drivers/perf/riscv_pmu.c +4 -0
index c78a6fd6c57f..b4efdddb2ad9 100644

Lines of this file are not shown. View the raw message.

drivers/pinctrl/aspeed/Makefile +1 -1
index 489ea1778353..db2a7600ae2b 100644

Lines of this file are not shown. View the raw message.

drivers/s390/net/qeth_core_main.c +36 -2
index cf8506d0f185..601d00e09de4 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/myrb.c +10 -10
index ca2e932dd9b7..f684eb5e0489 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/myrs.c +12 -12
index a1eec65a9713..e824be9d9bbb 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/sd.c +1 -1
index d5d3eea006c1..35200a7a7355 100644

Lines of this file are not shown. View the raw message.

drivers/spi/spi-pci1xxxx.c +2 -0
index 5b2d3e4e21b7..5a4226682052 100644

Lines of this file are not shown. View the raw message.

drivers/spi/spi-s3c64xx.c +57 -23

80 lines not on this page · raw message

drivers/thermal/gov_power_allocator.c +5 -9
index 81e061f183ad..38581583ad28 100644

Lines of this file are not shown. View the raw message.

fs/aio.c +1 -1
index 9cdaa2faa536..0f4f531c9780 100644

Lines of this file are not shown. View the raw message.

fs/bcachefs/mean_and_variance_test.c +1 -27
index 019583c3ca0e..51093fa84820 100644

Lines of this file are not shown. View the raw message.

fs/nfsd/nfs4state.c +2 -5
index 7d6c657e0409..692ede488254 100644

Lines of this file are not shown. View the raw message.

fs/nfsd/vfs.c +2 -1
index b7c7a9273ea0..4ed1e83defa2 100644

Lines of this file are not shown. View the raw message.

fs/proc/Makefile +1 -1
index bd08616ed8ba..7b4db9c56e6a 100644

Lines of this file are not shown. View the raw message.

fs/smb/client/cached_dir.c +4 -2
index a0017724d523..13a9d7acf8f8 100644

Lines of this file are not shown. View the raw message.

fs/smb/client/cifs_debug.c +6 -0
index 23d2622b969f..aa95fa95ca11 100644

Lines of this file are not shown. View the raw message.

fs/smb/client/cifsfs.c +11 -0
index 0c269396ae15..501bfd3afdc6 100644

Lines of this file are not shown. View the raw message.

fs/smb/client/cifsglob.h +15 -4
index 06e81afe31c1..844afda090d0 100644

Lines of this file are not shown. View the raw message.

fs/smb/client/cifsproto.h +10 -10
index 58cfbd450a55..996ca413dd8b 100644

Lines of this file are not shown. View the raw message.

fs/smb/client/connect.c +98 -55

153 lines not on this page · raw message

fs/smb/client/dfs.c +24 -27

51 lines not on this page · raw message

fs/smb/client/dfs.h +21 -12
index 875ab7ae57fc..e5c4dcf83750 100644

Lines of this file are not shown. View the raw message.

fs/smb/client/dfs_cache.c +24 -29

53 lines not on this page · raw message

fs/smb/client/dir.c +15 -0
index 89333d9bce36..37897b919dd5 100644

Lines of this file are not shown. View the raw message.

fs/smb/client/file.c +95 -16

111 lines not on this page · raw message

fs/smb/client/fs_context.c +3 -3
index 415e87635d5a..d9fe17b2ba37 100644

Lines of this file are not shown. View the raw message.

fs/smb/client/fs_context.h +12 -0
index 182ce11cbe93..b3d51b345eae 100644

Lines of this file are not shown. View the raw message.

fs/smb/client/fscache.c +15 -1
index c4a3cb736881..340efce8f052 100644

Lines of this file are not shown. View the raw message.

fs/smb/client/fscache.h +6 -0
index a3d73720914f..1f2ea9f5cc9a 100644

Lines of this file are not shown. View the raw message.

fs/smb/client/inode.c +2 -0
index 7f28edf4b20f..4c3dec384f92 100644

Lines of this file are not shown. View the raw message.

fs/smb/client/ioctl.c +5 -1
index e2f92c21fff5..682eabdd1d6c 100644

Lines of this file are not shown. View the raw message.

fs/smb/client/misc.c +2 -6
index 0748d7b757b9..74627d647818 100644

Lines of this file are not shown. View the raw message.

fs/smb/client/smb1ops.c +2 -2
index a9eaba8083b0..212ec6f66ec6 100644

Lines of this file are not shown. View the raw message.

fs/smb/client/smb2misc.c +4 -0
index 82b84a4941dd..cc72be5a93a9 100644

Lines of this file are not shown. View the raw message.

fs/smb/client/smb2ops.c +7 -4
index 3b8896987197..ab77ecb2d4f0 100644

Lines of this file are not shown. View the raw message.

fs/smb/client/smb2pdu.c +1 -1
index 92c3710df615..b71e32d66eba 100644

Lines of this file are not shown. View the raw message.

fs/smb/server/ksmbd_netlink.h +2 -1
index 0ebf91ffa236..4464a62228cf 100644

Lines of this file are not shown. View the raw message.

fs/smb/server/mgmt/share_config.c +6 -1
index 328a412259dc..a2f0a2edceb8 100644

Lines of this file are not shown. View the raw message.

fs/smb/server/smb2ops.c +5 -5
index 27a9dce3e03a..8600f32c981a 100644

Lines of this file are not shown. View the raw message.

fs/smb/server/smb2pdu.c +2 -1
index 88db6e207e0e..cd2ed345c3d3 100644

Lines of this file are not shown. View the raw message.

fs/smb/server/transport_ipc.c +37 -0
index f29bb03f0dc4..8752ac82c557 100644

Lines of this file are not shown. View the raw message.

fs/vboxsf/super.c +2 -1
index 1fb8f4df60cb..9848af78215b 100644

Lines of this file are not shown. View the raw message.

include/kvm/arm_pmu.h +1 -1
index 4b9d8fb393a8..df32355e3e38 100644

Lines of this file are not shown. View the raw message.

include/linux/bpf.h +15 -1
index e30100597d0a..7d719976b564 100644

Lines of this file are not shown. View the raw message.

include/linux/device.h +1 -0
index 97c4b046c09d..b9f5464f44ed 100644

Lines of this file are not shown. View the raw message.

include/linux/io_uring_types.h +0 -1
index 854ad67a5f70..73de1f6f0ab1 100644

Lines of this file are not shown. View the raw message.

include/linux/secretmem.h +2 -2
index 35f3a4a8ceb1..acf7e1a3f3de 100644

Lines of this file are not shown. View the raw message.

include/linux/skbuff.h +1 -6
index d9a1ccfb5708..227f4514476b 100644

Lines of this file are not shown. View the raw message.

include/linux/stackdepot.h +46 -0

46 lines not on this page · raw message

include/linux/udp.h +28 -0
index d04188714dca..94e63b269540 100644

Lines of this file are not shown. View the raw message.

include/net/bluetooth/hci.h +9 -0
index 0d231024570a..03e68a8e229f 100644

Lines of this file are not shown. View the raw message.

include/net/inet_connection_sock.h +1 -0
index 9ab4bf704e86..ccf171f7eb60 100644

Lines of this file are not shown. View the raw message.

include/net/mana/mana.h +0 -1
index 76147feb0d10..4eeedf14711b 100644

Lines of this file are not shown. View the raw message.

include/net/sock.h +7 -0
index 54ca8dcbfb43..4afb4376c97e 100644

Lines of this file are not shown. View the raw message.

include/net/xdp_sock.h +2 -0
index 3cb4dc9bd70e..3d54de168a6d 100644

Lines of this file are not shown. View the raw message.

include/sound/hdaudio_ext.h +3 -0
index a8bebac1e4b2..957295364a5e 100644

Lines of this file are not shown. View the raw message.

io_uring/io_uring.c +10 -8
index adf944bb5a2f..572effd0af53 100644

Lines of this file are not shown. View the raw message.

io_uring/kbuf.c +41 -77

118 lines not on this page · raw message

io_uring/kbuf.h +5 -3
index 53dfaa71a397..038091a0047d 100644

Lines of this file are not shown. View the raw message.

io_uring/rw.c +8 -1
index 2b84ce8a8a67..dd6fe3b328f4 100644

Lines of this file are not shown. View the raw message.

kernel/bpf/Makefile +1 -1
index f526b7573e97..418a8188a8e8 100644

Lines of this file are not shown. View the raw message.

kernel/bpf/syscall.c +32 -3
index a1f18681721c..0f90b6b27430 100644

Lines of this file are not shown. View the raw message.

kernel/bpf/verifier.c +5 -0
index ddea9567f755..19e575e6b7fe 100644

Lines of this file are not shown. View the raw message.

kernel/trace/bpf_trace.c +5 -5
index 7ac6c52b25eb..c8d1ebc43838 100644

Lines of this file are not shown. View the raw message.

lib/stackdepot.c +2 -45

47 lines not on this page · raw message

mm/Makefile +1 -2
index e4b5b75aaec9..4abb40b911ec 100644

Lines of this file are not shown. View the raw message.

mm/memory.c +4 -0
index 0bfc8b007c01..296e4f05e877 100644

Lines of this file are not shown. View the raw message.

net/9p/client.c +5 -5
index e265a0ca6bdd..f7e90b4769bb 100644

Lines of this file are not shown. View the raw message.

net/ax25/ax25_dev.c +1 -1
index c5462486dbca..282ec581c072 100644

Lines of this file are not shown. View the raw message.

net/bluetooth/hci_debugfs.c +32 -16

48 lines not on this page · raw message

net/bluetooth/hci_event.c +25 -0
index 6275b14b5692..3b63513f57ba 100644

Lines of this file are not shown. View the raw message.

net/bluetooth/hci_sync.c +4 -1
index 44ca5ea223e3..824ce03bb361 100644

Lines of this file are not shown. View the raw message.

net/bridge/netfilter/ebtables.c +6 -0
index 99d82676f780..cbd0e3586c3f 100644

Lines of this file are not shown. View the raw message.

net/core/gro.c +2 -1
index 0759277dc14e..cefddf65f7db 100644

Lines of this file are not shown. View the raw message.

net/core/sock_map.c +6 -0
index 27d733c0f65e..8598466a3805 100644

Lines of this file are not shown. View the raw message.

net/hsr/hsr_slave.c +2 -1
index e5742f2a2d52..1b6457f357bd 100644

Lines of this file are not shown. View the raw message.

net/ipv4/inet_connection_sock.c +34 -10

44 lines not on this page · raw message

net/ipv4/inet_fragment.c +57 -13

70 lines not on this page · raw message

net/ipv4/ip_fragment.c +1 -1
index a4941f53b523..fb947d1613fe 100644

Lines of this file are not shown. View the raw message.

net/ipv4/ip_gre.c +5 -0
index 6b9cf5a24c19..1954a56fec6b 100644

Lines of this file are not shown. View the raw message.

net/ipv4/netfilter/arp_tables.c +4 -0
index 2407066b0fec..b150c9929b12 100644

Lines of this file are not shown. View the raw message.

net/ipv4/netfilter/ip_tables.c +4 -0
index 7da1df4997d0..487670759578 100644

Lines of this file are not shown. View the raw message.

net/ipv4/tcp.c +2 -0
index a4f418592314..5887eac87bd2 100644

Lines of this file are not shown. View the raw message.

net/ipv4/udp.c +7 -0
index 17231c0f8830..a505ba383863 100644

Lines of this file are not shown. View the raw message.

net/ipv4/udp_offload.c +13 -10
index 6c95d28d0c4a..c3d67423ae18 100644

Lines of this file are not shown. View the raw message.

net/ipv6/ip6_fib.c +7 -7
index 4fc2cae0d116..54294f6a8ec5 100644

Lines of this file are not shown. View the raw message.

net/ipv6/ip6_gre.c +3 -0
index 070d87abf7c0..26c3287beb29 100644

Lines of this file are not shown. View the raw message.

net/ipv6/netfilter/ip6_tables.c +4 -0
index fd9f049d6d41..636b360311c5 100644

Lines of this file are not shown. View the raw message.

net/ipv6/netfilter/nf_conntrack_reasm.c +1 -1
index b2dd48911c8d..efbec7ee27d0 100644

Lines of this file are not shown. View the raw message.

net/ipv6/udp.c +1 -1
index 3f2249b4cd5f..26d9bd287b23 100644

Lines of this file are not shown. View the raw message.

net/ipv6/udp_offload.c +1 -7
index 6b95ba241ebe..626d7b362dc7 100644

Lines of this file are not shown. View the raw message.

net/mptcp/protocol.c +0 -2
index 7833a49f6214..2b921af2718d 100644

Lines of this file are not shown. View the raw message.

net/mptcp/sockopt.c +4 -0
index c40f1428e602..ef3edba754a3 100644

Lines of this file are not shown. View the raw message.

net/mptcp/subflow.c +2 -0
index 71ba86246ff8..13f66d11b7a0 100644

Lines of this file are not shown. View the raw message.

net/netfilter/nf_tables_api.c +72 -20

92 lines not on this page · raw message

net/nfc/nci/core.c +5 -0
index cdad47b140fa..0d26c8ec9993 100644

Lines of this file are not shown. View the raw message.

net/rds/rdma.c +1 -1
index a4e3c5de998b..00dbcd4d28e6 100644

Lines of this file are not shown. View the raw message.

net/sched/act_skbmod.c +5 -5
index bcb673ab0008..001539391082 100644

Lines of this file are not shown. View the raw message.

net/sched/sch_api.c +1 -1
index 36b025cc4fd2..31e38a614f33 100644

Lines of this file are not shown. View the raw message.

net/sunrpc/svcsock.c +1 -9
index 545017a3daa4..6b3f01beb294 100644

Lines of this file are not shown. View the raw message.

net/tls/tls_sw.c +5 -2
index 211f57164cb6..b783231668c6 100644

Lines of this file are not shown. View the raw message.

net/vmw_vsock/virtio_transport.c +2 -1
index 1748268e0694..ee5d306a96d0 100644

Lines of this file are not shown. View the raw message.

scripts/Makefile.extrawarn +3 -7
index 2f25a1de129d..5660b96213e4 100644

Lines of this file are not shown. View the raw message.

scripts/bpf_doc.py +2 -2
index 0669bac5e900..3f899cc7e99a 100755

Lines of this file are not shown. View the raw message.

scripts/mod/modpost.c +5 -2
index 267b9a0a3abc..6568f8177e39 100644

Lines of this file are not shown. View the raw message.

security/selinux/selinuxfs.c +7 -5
index 0619a1cbbfbe..074d6c2714eb 100644

Lines of this file are not shown. View the raw message.

sound/pci/emu10k1/emu10k1_callback.c +2 -5
index d36234b88fb4..941bfbf812ed 100644

Lines of this file are not shown. View the raw message.

sound/pci/hda/cs35l41_hda_property.c +6 -0
index 86ddaff915de..4d1f8734d13f 100644

Lines of this file are not shown. View the raw message.

sound/pci/hda/cs35l56_hda.c +2 -2
index 75a14ba54fcd..43a445bd961f 100644

Lines of this file are not shown. View the raw message.

sound/pci/hda/cs35l56_hda_i2c.c +11 -2
index a9ef6d86de83..09a810a50a12 100644

Lines of this file are not shown. View the raw message.

sound/pci/hda/cs35l56_hda_spi.c +11 -2
index 080426de9083..04f9fe6197dc 100644

Lines of this file are not shown. View the raw message.

sound/pci/hda/patch_realtek.c +5 -2
index 1dc5eb92ddca..f4a02bf1abb1 100644

Lines of this file are not shown. View the raw message.

sound/soc/amd/acp/acp-pci.c +7 -6
index 8c8b1dcac628..5f35b90eab8d 100644

Lines of this file are not shown. View the raw message.

sound/soc/codecs/cs42l43.c +8 -4
index a97ccb512deb..a24b52c9dda6 100644

Lines of this file are not shown. View the raw message.

sound/soc/codecs/rt5682-sdw.c +2 -2
index e67c2e19cb1a..1fdbef5fd6cb 100644

Lines of this file are not shown. View the raw message.

sound/soc/codecs/rt711-sdca-sdw.c +2 -2
index 935e597022d3..b8471b2d8f4f 100644

Lines of this file are not shown. View the raw message.

sound/soc/codecs/rt711-sdw.c +2 -2
index 3f5773310ae8..988451f24a75 100644

Lines of this file are not shown. View the raw message.

sound/soc/codecs/rt712-sdca-sdw.c +3 -2
index 6b644a89c589..ba877432cea6 100644

Lines of this file are not shown. View the raw message.

sound/soc/codecs/rt722-sdca-sdw.c +2 -2
index e24b9cbdc10c..e33836fffd5f 100644

Lines of this file are not shown. View the raw message.

sound/soc/codecs/wm_adsp.c +2 -1
index 36ea0dcdc7ab..9cb9068c0462 100644

Lines of this file are not shown. View the raw message.

sound/soc/soc-ops.c +1 -1
index 2d25748ca706..b27e89ff6a16 100644

Lines of this file are not shown. View the raw message.

sound/soc/sof/amd/acp.c +4 -4
index 4db8cdc91daa..2c242ef9f23c 100644

Lines of this file are not shown. View the raw message.

sound/soc/sof/intel/hda-common-ops.c +3 -0
index 26105d8f1bdc..88c236b9a045 100644

Lines of this file are not shown. View the raw message.

sound/soc/sof/intel/hda-dai-ops.c +11 -0
index 55ce75db23e5..92ec5db4677d 100644

Lines of this file are not shown. View the raw message.

sound/soc/sof/intel/hda-pcm.c +29 -0
index 18f07364d219..d7b446f3f973 100644

Lines of this file are not shown. View the raw message.

sound/soc/sof/intel/hda-stream.c +70 -0

70 lines not on this page · raw message

sound/soc/sof/intel/hda.h +6 -0
index 1592e27bc14d..efb42117df79 100644

Lines of this file are not shown. View the raw message.

sound/soc/sof/intel/lnl.c +0 -2
index 30712ea05a7a..555a51c688dc 100644

Lines of this file are not shown. View the raw message.

sound/soc/sof/intel/mtl.c +0 -14
index df05dc77b8d5..060c34988e90 100644

Lines of this file are not shown. View the raw message.

sound/soc/sof/intel/mtl.h +0 -10
index cc5a1f46fd09..ea8c1b83f712 100644

Lines of this file are not shown. View the raw message.

sound/soc/sof/ipc4-pcm.c +155 -36

191 lines not on this page · raw message

sound/soc/sof/ipc4-priv.h +0 -14
index 1d39836d5efa..9db9002b44d6 100644

Lines of this file are not shown. View the raw message.

sound/soc/sof/ipc4-topology.c +21 -1
index f779156fe0e6..4d3d415179c0 100644

Lines of this file are not shown. View the raw message.

sound/soc/sof/ops.h +19 -5
index 6538d9f4fe96..2505a1e1ce34 100644

Lines of this file are not shown. View the raw message.

sound/soc/sof/pcm.c +8 -0
index 33d576b17647..f03cee94bce6 100644

Lines of this file are not shown. View the raw message.

sound/soc/sof/sof-audio.h +8 -1
index 8874ee5f557f..85b26e3fefa8 100644

Lines of this file are not shown. View the raw message.

sound/soc/sof/sof-priv.h +18 -6
index 6d7897bf9607..09eb2de445fe 100644

Lines of this file are not shown. View the raw message.

tools/net/ynl/ynl-gen-c.py +5 -2
index 7fc1aa788f6f..c19dec239491 100755

Lines of this file are not shown. View the raw message.

tools/testing/selftests/mm/vm_util.h +1 -1
index c02990bbd56f..9007c420d52c 100644

Lines of this file are not shown. View the raw message.

tools/testing/selftests/net/mptcp/mptcp_connect.sh +82 -52

134 lines not on this page · raw message

tools/testing/selftests/net/mptcp/mptcp_join.sh +18 -16
index e4581b0dfb96..24be952b4d4a 100755

Lines of this file are not shown. View the raw message.

tools/testing/selftests/net/reuseaddr_conflict.c +1 -1
index 7c5b12664b03..bfb07dc49518 100644

Lines of this file are not shown. View the raw message.

tools/testing/selftests/net/test_vxlan_mdb.sh +128 -77

205 lines not on this page · raw message

tools/testing/selftests/net/udpgro_fwd.sh +2 -8
index 9cd5e885e91f..f4549e6894dd 100755

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.

Greg Kroah-Hartman

author maintainer
#0 lore raw

I'm announcing the release of the 6.8.5 kernel.

All users of the 6.8 kernel series must upgrade.

The updated 6.8.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-6.8.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary

thanks,

greg k-h

------------

 Documentation/admin-guide/hw-vuln/spectre.rst                          |   48 ++
 Documentation/admin-guide/kernel-parameters.txt                        |   12 
 Makefile                                                               |    2 
 arch/arm64/boot/dts/qcom/sc7180-trogdor.dtsi                           |    2 
 arch/arm64/kernel/ptrace.c                                             |    5 
 arch/arm64/kvm/hyp/nvhe/tlb.c                                          |    3 
 arch/arm64/kvm/hyp/pgtable.c                                           |   11 
 arch/arm64/kvm/hyp/vhe/tlb.c                                           |    3 
 arch/arm64/kvm/mmu.c                                                   |    2 
 arch/arm64/net/bpf_jit_comp.c                                          |    4 
 arch/powerpc/mm/book3s64/pgtable.c                                     |    2 
 arch/riscv/include/asm/uaccess.h                                       |    4 
 arch/riscv/include/uapi/asm/auxvec.h                                   |    2 
 arch/riscv/kernel/patch.c                                              |    8 
 arch/riscv/kernel/process.c                                            |    5 
 arch/riscv/kernel/signal.c                                             |   15 
 arch/riscv/kernel/traps.c                                              |    2 
 arch/riscv/kernel/vdso/Makefile                                        |    1 
 arch/riscv/kvm/aia_aplic.c                                             |   37 +
 arch/riscv/mm/tlbflush.c                                               |    4 
 arch/s390/boot/vmem.c                                                  |    2 
 arch/s390/include/asm/pgtable.h                                        |    4 
 arch/s390/kernel/entry.S                                               |    1 
 arch/s390/kernel/perf_pai_crypto.c                                     |   10 
 arch/s390/kernel/perf_pai_ext.c                                        |   10 
 arch/s390/mm/gmap.c                                                    |    2 
 arch/s390/mm/hugetlbpage.c                                             |    4 
 arch/s390/mm/pageattr.c                                                |    2 
 arch/s390/mm/pgtable.c                                                 |    2 
 arch/s390/mm/vmem.c                                                    |    6 
 arch/s390/net/bpf_jit_comp.c                                           |   46 --
 arch/sparc/mm/init_64.c                                                |    2 
 arch/x86/Kconfig                                                       |   25 +
 arch/x86/boot/compressed/Makefile                                      |    2 
 arch/x86/boot/compressed/misc.c                                        |   16 
 arch/x86/boot/compressed/sev.c                                         |    3 
 arch/x86/coco/core.c                                                   |   41 ++
 arch/x86/entry/common.c                                                |   10 
 arch/x86/entry/entry_64.S                                              |   61 ++
 arch/x86/entry/entry_64_compat.S                                       |   16 
 arch/x86/entry/syscall_32.c                                            |   21 -
 arch/x86/entry/syscall_64.c                                            |   19 
 arch/x86/entry/syscall_x32.c                                           |   10 
 arch/x86/events/intel/ds.c                                             |    8 
 arch/x86/include/asm/boot.h                                            |    1 
 arch/x86/include/asm/coco.h                                            |    2 
 arch/x86/include/asm/cpufeature.h                                      |    8 
 arch/x86/include/asm/cpufeatures.h                                     |   14 
 arch/x86/include/asm/disabled-features.h                               |    3 
 arch/x86/include/asm/mem_encrypt.h                                     |    8 
 arch/x86/include/asm/msr-index.h                                       |    9 
 arch/x86/include/asm/nospec-branch.h                                   |   17 
 arch/x86/include/asm/required-features.h                               |    3 
 arch/x86/include/asm/sev.h                                             |   10 
 arch/x86/include/asm/syscall.h                                         |   11 
 arch/x86/include/uapi/asm/bootparam.h                                  |    1 
 arch/x86/kernel/cpu/bugs.c                                             |  121 +++++
 arch/x86/kernel/cpu/common.c                                           |   24 -
 arch/x86/kernel/cpu/mce/core.c                                         |    4 
 arch/x86/kernel/cpu/scattered.c                                        |    1 
 arch/x86/kernel/mpparse.c                                              |   10 
 arch/x86/kernel/setup.c                                                |    2 
 arch/x86/kernel/sev-shared.c                                           |   23 -
 arch/x86/kernel/sev.c                                                  |   14 
 arch/x86/kvm/mmu/mmu.c                                                 |    2 
 arch/x86/kvm/reverse_cpuid.h                                           |    5 
 arch/x86/kvm/svm/sev.c                                                 |   45 +-
 arch/x86/kvm/trace.h                                                   |   10 
 arch/x86/kvm/vmx/vmenter.S                                             |    2 
 arch/x86/kvm/x86.c                                                     |    2 
 arch/x86/lib/Makefile                                                  |   13 
 arch/x86/lib/retpoline.S                                               |    6 
 arch/x86/mm/fault.c                                                    |    4 
 arch/x86/mm/ident_map.c                                                |   23 -
 arch/x86/mm/init_64.c                                                  |    4 
 arch/x86/mm/kasan_init_64.c                                            |    2 
 arch/x86/mm/mem_encrypt_identity.c                                     |   76 +--
 arch/x86/mm/pat/memtype.c                                              |   49 +-
 arch/x86/mm/pat/set_memory.c                                           |    6 
 arch/x86/mm/pgtable.c                                                  |    2 
 arch/x86/mm/pti.c                                                      |    2 
 arch/x86/net/bpf_jit_comp.c                                            |    2 
 arch/x86/power/hibernate.c                                             |    2 
 arch/x86/xen/mmu_pv.c                                                  |    4 
 block/bdev.c                                                           |    6 
 drivers/acpi/acpica/dbnames.c                                          |    8 
 drivers/ata/sata_mv.c                                                  |   63 +--
 drivers/ata/sata_sx4.c                                                 |    6 
 drivers/base/core.c                                                    |   26 +
 drivers/base/regmap/regcache-maple.c                                   |    6 
 drivers/bluetooth/btqca.c                                              |    8 
 drivers/bluetooth/hci_qca.c                                            |   19 
 drivers/dma-buf/st-dma-fence-chain.c                                   |    6 
 drivers/dpll/Kconfig                                                   |    2 
 drivers/firmware/efi/libstub/efi-stub-helper.c                         |    8 
 drivers/firmware/efi/libstub/efistub.h                                 |    2 
 drivers/firmware/efi/libstub/x86-stub.c                                |   14 
 drivers/gpio/gpiolib-cdev.c                                            |   58 ++
 drivers/gpio/gpiolib.c                                                 |   31 -
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c                             |    2 
 drivers/gpu/drm/amd/display/dc/clk_mgr/dcn35/dcn35_clk_mgr.c           |   25 -
 drivers/gpu/drm/amd/display/dc/dce110/Makefile                         |    2 
 drivers/gpu/drm/amd/display/dc/dce112/Makefile                         |    2 
 drivers/gpu/drm/amd/display/dc/dce120/Makefile                         |    2 
 drivers/gpu/drm/amd/display/dc/dce60/Makefile                          |    2 
 drivers/gpu/drm/amd/display/dc/dce80/Makefile                          |    2 
 drivers/gpu/drm/amd/display/dc/resource/dcn35/dcn35_resource.c         |    2 
 drivers/gpu/drm/drm_prime.c                                            |    7 
 drivers/gpu/drm/i915/Makefile                                          |    7 
 drivers/gpu/drm/i915/display/g4x_dp.c                                  |    2 
 drivers/gpu/drm/i915/display/intel_display_device.h                    |    1 
 drivers/gpu/drm/i915/display/intel_dp.c                                |    9 
 drivers/gpu/drm/i915/display/intel_dp_mst.c                            |    2 
 drivers/gpu/drm/i915/display/intel_sdvo.c                              |    4 
 drivers/gpu/drm/i915/display/skl_universal_plane.c                     |    3 
 drivers/gpu/drm/i915/gt/gen8_engine_cs.c                               |    4 
 drivers/gpu/drm/i915/gt/gen8_ppgtt.c                                   |    3 
 drivers/gpu/drm/i915/gt/intel_engine_cs.c                              |   17 
 drivers/gpu/drm/i915/gt/intel_gt.c                                     |    6 
 drivers/gpu/drm/i915/gt/intel_gt.h                                     |    9 
 drivers/gpu/drm/i915/gt/intel_gt_ccs_mode.c                            |   39 +
 drivers/gpu/drm/i915/gt/intel_gt_ccs_mode.h                            |   13 
 drivers/gpu/drm/i915/gt/intel_gt_regs.h                                |    6 
 drivers/gpu/drm/i915/gt/intel_workarounds.c                            |   55 ++
 drivers/gpu/drm/i915/i915_driver.c                                     |    2 
 drivers/gpu/drm/i915/i915_perf.c                                       |    2 
 drivers/gpu/drm/nouveau/nouveau_uvmm.c                                 |    6 
 drivers/gpu/drm/panfrost/panfrost_gpu.c                                |    6 
 drivers/gpu/drm/rockchip/rockchip_vop2_reg.c                           |    2 
 drivers/gpu/drm/xe/Makefile                                            |    4 
 drivers/gpu/drm/xe/xe_bo.c                                             |   59 --
 drivers/gpu/drm/xe/xe_bo_types.h                                       |   19 
 drivers/gpu/drm/xe/xe_device.h                                         |    4 
 drivers/gpu/drm/xe/xe_exec.c                                           |   31 -
 drivers/gpu/drm/xe/xe_exec_queue.c                                     |    4 
 drivers/gpu/drm/xe/xe_exec_queue_types.h                               |    7 
 drivers/gpu/drm/xe/xe_guc_submit.c                                     |    2 
 drivers/gpu/drm/xe/xe_pt.c                                             |    8 
 drivers/gpu/drm/xe/xe_ring_ops.c                                       |   11 
 drivers/gpu/drm/xe/xe_sched_job.c                                      |   10 
 drivers/gpu/drm/xe/xe_sched_job_types.h                                |    2 
 drivers/gpu/drm/xe/xe_vm.c                                             |   27 -
 drivers/gpu/drm/xe/xe_vm.h                                             |    2 
 drivers/gpu/drm/xe/xe_vm_types.h                                       |    8 
 drivers/iommu/iommu.c                                                  |   11 
 drivers/md/dm-integrity.c                                              |    2 
 drivers/net/dsa/mv88e6xxx/chip.c                                       |    6 
 drivers/net/dsa/sja1105/sja1105_mdio.c                                 |    2 
 drivers/net/ethernet/broadcom/asp2/bcmasp_intf.c                       |   28 -
 drivers/net/ethernet/freescale/fec_main.c                              |   11 
 drivers/net/ethernet/hisilicon/hns3/hns3_common/hclge_comm_tqp_stats.c |    2 
 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c                     |   19 
 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c                |    4 
 drivers/net/ethernet/intel/e1000e/hw.h                                 |    2 
 drivers/net/ethernet/intel/e1000e/ich8lan.c                            |   38 +
 drivers/net/ethernet/intel/e1000e/netdev.c                             |   24 +
 drivers/net/ethernet/intel/e1000e/phy.c                                |  182 +++++---
 drivers/net/ethernet/intel/e1000e/phy.h                                |    2 
 drivers/net/ethernet/intel/i40e/i40e.h                                 |    1 
 drivers/net/ethernet/intel/i40e/i40e_main.c                            |   13 
 drivers/net/ethernet/intel/i40e/i40e_register.h                        |    3 
 drivers/net/ethernet/intel/i40e/i40e_txrx.c                            |   82 ++--
 drivers/net/ethernet/intel/i40e/i40e_txrx.h                            |    1 
 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c                     |   45 +-
 drivers/net/ethernet/intel/ice/ice_adminq_cmd.h                        |    3 
 drivers/net/ethernet/intel/ice/ice_lag.c                               |    4 
 drivers/net/ethernet/intel/ice/ice_lib.c                               |   18 
 drivers/net/ethernet/intel/ice/ice_switch.c                            |   24 -
 drivers/net/ethernet/intel/ice/ice_switch.h                            |    4 
 drivers/net/ethernet/intel/ice/ice_vf_vsi_vlan_ops.c                   |   18 
 drivers/net/ethernet/intel/idpf/idpf_txrx.c                            |    4 
 drivers/net/ethernet/intel/igc/igc_main.c                              |    4 
 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c                         |   16 
 drivers/net/ethernet/marvell/octeontx2/af/cgx.c                        |    5 
 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c                    |    2 
 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c                    |    2 
 drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c                   |    2 
 drivers/net/ethernet/mellanox/mlxbf_gige/mlxbf_gige_main.c             |   31 +
 drivers/net/ethernet/microchip/lan743x_main.c                          |   18 
 drivers/net/ethernet/microchip/lan743x_main.h                          |    4 
 drivers/net/ethernet/microsoft/mana/mana_en.c                          |    2 
 drivers/net/ethernet/realtek/r8169_main.c                              |   40 +
 drivers/net/ethernet/renesas/ravb_main.c                               |   33 -
 drivers/net/ethernet/renesas/sh_eth.c                                  |    2 
 drivers/net/ethernet/stmicro/stmmac/dwmac4_core.c                      |   40 +
 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c                    |   38 +
 drivers/net/ethernet/wangxun/txgbe/txgbe_phy.c                         |    8 
 drivers/net/phy/micrel.c                                               |   31 +
 drivers/net/usb/ax88179_178a.c                                         |    2 
 drivers/net/wireless/intel/iwlwifi/mvm/rfi.c                           |    8 
 drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c                          |   20 
 drivers/net/wireless/intel/iwlwifi/mvm/time-event.c                    |    5 
 drivers/net/wwan/t7xx/t7xx_cldma.c                                     |    4 
 drivers/net/wwan/t7xx/t7xx_hif_cldma.c                                 |    9 
 drivers/net/wwan/t7xx/t7xx_pcie_mac.c                                  |    8 
 drivers/net/xen-netfront.c                                             |    1 
 drivers/of/dynamic.c                                                   |   12 
 drivers/of/module.c                                                    |    8 
 drivers/perf/riscv_pmu.c                                               |    4 
 drivers/pinctrl/aspeed/Makefile                                        |    2 
 drivers/s390/net/qeth_core_main.c                                      |   38 +
 drivers/scsi/myrb.c                                                    |   20 
 drivers/scsi/myrs.c                                                    |   24 -
 drivers/scsi/sd.c                                                      |    2 
 drivers/spi/spi-pci1xxxx.c                                             |    2 
 drivers/spi/spi-s3c64xx.c                                              |   80 ++-
 drivers/thermal/gov_power_allocator.c                                  |   14 
 fs/aio.c                                                               |    2 
 fs/bcachefs/mean_and_variance_test.c                                   |   28 -
 fs/nfsd/nfs4state.c                                                    |    7 
 fs/nfsd/vfs.c                                                          |    3 
 fs/proc/Makefile                                                       |    2 
 fs/smb/client/cached_dir.c                                             |    6 
 fs/smb/client/cifs_debug.c                                             |    6 
 fs/smb/client/cifsfs.c                                                 |   11 
 fs/smb/client/cifsglob.h                                               |   19 
 fs/smb/client/cifsproto.h                                              |   20 
 fs/smb/client/connect.c                                                |  153 ++++---
 fs/smb/client/dfs.c                                                    |   51 +-
 fs/smb/client/dfs.h                                                    |   33 +
 fs/smb/client/dfs_cache.c                                              |   53 +-
 fs/smb/client/dir.c                                                    |   15 
 fs/smb/client/file.c                                                   |  111 ++++-
 fs/smb/client/fs_context.c                                             |    6 
 fs/smb/client/fs_context.h                                             |   12 
 fs/smb/client/fscache.c                                                |   16 
 fs/smb/client/fscache.h                                                |    6 
 fs/smb/client/inode.c                                                  |    2 
 fs/smb/client/ioctl.c                                                  |    6 
 fs/smb/client/misc.c                                                   |    8 
 fs/smb/client/smb1ops.c                                                |    4 
 fs/smb/client/smb2misc.c                                               |    4 
 fs/smb/client/smb2ops.c                                                |   11 
 fs/smb/client/smb2pdu.c                                                |    2 
 fs/smb/server/ksmbd_netlink.h                                          |    3 
 fs/smb/server/mgmt/share_config.c                                      |    7 
 fs/smb/server/smb2ops.c                                                |   10 
 fs/smb/server/smb2pdu.c                                                |    3 
 fs/smb/server/transport_ipc.c                                          |   37 +
 fs/vboxsf/super.c                                                      |    3 
 include/kvm/arm_pmu.h                                                  |    2 
 include/linux/bpf.h                                                    |   16 
 include/linux/device.h                                                 |    1 
 include/linux/io_uring_types.h                                         |    1 
 include/linux/secretmem.h                                              |    4 
 include/linux/skbuff.h                                                 |    7 
 include/linux/stackdepot.h                                             |   46 ++
 include/linux/udp.h                                                    |   28 +
 include/net/bluetooth/hci.h                                            |    9 
 include/net/inet_connection_sock.h                                     |    1 
 include/net/mana/mana.h                                                |    1 
 include/net/sock.h                                                     |    7 
 include/net/xdp_sock.h                                                 |    2 
 include/sound/hdaudio_ext.h                                            |    3 
 io_uring/io_uring.c                                                    |   18 
 io_uring/kbuf.c                                                        |  118 ++---
 io_uring/kbuf.h                                                        |    8 
 io_uring/rw.c                                                          |    9 
 kernel/bpf/Makefile                                                    |    2 
 kernel/bpf/syscall.c                                                   |   35 +
 kernel/bpf/verifier.c                                                  |    5 
 kernel/trace/bpf_trace.c                                               |   10 
 lib/stackdepot.c                                                       |   47 --
 mm/Makefile                                                            |    3 
 mm/memory.c                                                            |    4 
 net/9p/client.c                                                        |   10 
 net/ax25/ax25_dev.c                                                    |    2 
 net/bluetooth/hci_debugfs.c                                            |   48 +-
 net/bluetooth/hci_event.c                                              |   25 +
 net/bluetooth/hci_sync.c                                               |    5 
 net/bridge/netfilter/ebtables.c                                        |    6 
 net/core/gro.c                                                         |    3 
 net/core/sock_map.c                                                    |    6 
 net/hsr/hsr_slave.c                                                    |    3 
 net/ipv4/inet_connection_sock.c                                        |   44 +-
 net/ipv4/inet_fragment.c                                               |   70 ++-
 net/ipv4/ip_fragment.c                                                 |    2 
 net/ipv4/ip_gre.c                                                      |    5 
 net/ipv4/netfilter/arp_tables.c                                        |    4 
 net/ipv4/netfilter/ip_tables.c                                         |    4 
 net/ipv4/tcp.c                                                         |    2 
 net/ipv4/udp.c                                                         |    7 
 net/ipv4/udp_offload.c                                                 |   23 -
 net/ipv6/ip6_fib.c                                                     |   14 
 net/ipv6/ip6_gre.c                                                     |    3 
 net/ipv6/netfilter/ip6_tables.c                                        |    4 
 net/ipv6/netfilter/nf_conntrack_reasm.c                                |    2 
 net/ipv6/udp.c                                                         |    2 
 net/ipv6/udp_offload.c                                                 |    8 
 net/mptcp/protocol.c                                                   |    2 
 net/mptcp/sockopt.c                                                    |    4 
 net/mptcp/subflow.c                                                    |    2 
 net/netfilter/nf_tables_api.c                                          |   92 +++-
 net/nfc/nci/core.c                                                     |    5 
 net/rds/rdma.c                                                         |    2 
 net/sched/act_skbmod.c                                                 |   10 
 net/sched/sch_api.c                                                    |    2 
 net/sunrpc/svcsock.c                                                   |   10 
 net/tls/tls_sw.c                                                       |    7 
 net/vmw_vsock/virtio_transport.c                                       |    3 
 scripts/Makefile.extrawarn                                             |   10 
 scripts/bpf_doc.py                                                     |    4 
 scripts/mod/modpost.c                                                  |    7 
 security/selinux/selinuxfs.c                                           |   12 
 sound/pci/emu10k1/emu10k1_callback.c                                   |    7 
 sound/pci/hda/cs35l41_hda_property.c                                   |    6 
 sound/pci/hda/cs35l56_hda.c                                            |    4 
 sound/pci/hda/cs35l56_hda_i2c.c                                        |   13 
 sound/pci/hda/cs35l56_hda_spi.c                                        |   13 
 sound/pci/hda/patch_realtek.c                                          |    7 
 sound/soc/amd/acp/acp-pci.c                                            |   13 
 sound/soc/codecs/cs42l43.c                                             |   12 
 sound/soc/codecs/rt5682-sdw.c                                          |    4 
 sound/soc/codecs/rt711-sdca-sdw.c                                      |    4 
 sound/soc/codecs/rt711-sdw.c                                           |    4 
 sound/soc/codecs/rt712-sdca-sdw.c                                      |    5 
 sound/soc/codecs/rt722-sdca-sdw.c                                      |    4 
 sound/soc/codecs/wm_adsp.c                                             |    3 
 sound/soc/soc-ops.c                                                    |    2 
 sound/soc/sof/amd/acp.c                                                |    8 
 sound/soc/sof/intel/hda-common-ops.c                                   |    3 
 sound/soc/sof/intel/hda-dai-ops.c                                      |   11 
 sound/soc/sof/intel/hda-pcm.c                                          |   29 +
 sound/soc/sof/intel/hda-stream.c                                       |   70 +++
 sound/soc/sof/intel/hda.h                                              |    6 
 sound/soc/sof/intel/lnl.c                                              |    2 
 sound/soc/sof/intel/mtl.c                                              |   14 
 sound/soc/sof/intel/mtl.h                                              |   10 
 sound/soc/sof/ipc4-pcm.c                                               |  191 +++++++--
 sound/soc/sof/ipc4-priv.h                                              |   14 
 sound/soc/sof/ipc4-topology.c                                          |   22 +
 sound/soc/sof/ops.h                                                    |   24 -
 sound/soc/sof/pcm.c                                                    |    8 
 sound/soc/sof/sof-audio.h                                              |    9 
 sound/soc/sof/sof-priv.h                                               |   24 -
 tools/net/ynl/ynl-gen-c.py                                             |    7 
 tools/testing/selftests/mm/vm_util.h                                   |    2 
 tools/testing/selftests/net/mptcp/mptcp_connect.sh                     |  134 ++++--
 tools/testing/selftests/net/mptcp/mptcp_join.sh                        |   34 -
 tools/testing/selftests/net/reuseaddr_conflict.c                       |    2 
 tools/testing/selftests/net/test_vxlan_mdb.sh                          |  205 ++++++----
 tools/testing/selftests/net/udpgro_fwd.sh                              |   10 
 342 files changed, 3575 insertions(+), 1727 deletions(-)

Aleksandr Loktionov (2):
i40e: fix i40e_count_filters() to count only active/new filters
i40e: fix vf may be used uninitialized in this function warning

Aleksandr Mishin (2):
net: phy: micrel: Fix potential null pointer dereference
octeontx2-af: Add array index check

Alexandra Winter (1):
s390/qeth: handle deferred cc1

Alexandre Ghiti (2):
riscv: Fix warning by declaring arch_cpu_idle() as noinstr
riscv: Disable preemption when using patch_map()

Andi Shyti (4):
drm/i915/gt: Limit the reserved VM space to only the platforms that need it drm/i915/gt: Disable HW load balancing for CCS
drm/i915/gt: Do not generate the command streamer for all the CCS drm/i915/gt: Enable only one CCS for compute workload

Andreas Schwab (1):
riscv: use KERN_INFO in do_trap

Andrei Matei (1):
bpf: Protect against int overflow for stack access size

Andrii Nakryiko (2):
bpf: put uprobe link's path and task in release callback
bpf: support deferring bpf_link dealloc to after RCU grace period

Andy Shevchenko (1):
gpiolib: Fix debug messaging in gpiod_find_and_request()

Andy Yan (1):
drm/rockchip: vop2: Remove AR30 and AB30 format support

Ankit Nautiyal (1):
drm/i915/dp: Fix the computation for compressed_bpp for DISPLAY < 13

Antoine Tenart (5):
selftests: net: gro fwd: update vxlan GRO test expectations
gro: fix ownership transfer
udp: do not accept non-tunnel GSO skbs landing in a tunnel
udp: do not transition UDP GRO fraglist partial checksums to unnecessary
udp: prevent local UDP tunnel packets from being GROed

Anup Patel (2):
RISC-V: KVM: Fix APLIC setipnum_le/be write emulation
RISC-V: KVM: Fix APLIC in_clrip[x] read emulation

Ard Biesheuvel (5):
efi/libstub: Add generic support for parsing mem_encrypt= x86/boot: Move mem_encrypt= parsing to the decompressor x86/sme: Move early SME kernel encryption handling into .head.text x86/sev: Move early startup code into .head.text section x86/efistub: Remap kernel text read-only before dropping NX attribute

Arnd Bergmann (5):
dm integrity: fix out-of-range warning
kbuild: make -Woverride-init warnings more consistent
ata: sata_sx4: fix pdc20621_get_from_dimm() on 64-bit
scsi: mylex: Fix sysfs buffer lengths
ata: sata_mv: Fix PCI device ID table declaration compilation warning

Artem Savkov (1):
arm64: bpf: fix 32bit unconditional bswap

Ashish Kalra (1):
KVM: SVM: Add support for allowing zero SEV ASIDs

Atlas Yu (1):
r8169: skip DASH fw status checks when DASH is disabled

Bartosz Golaszewski (2):
gpio: cdev: sanitize the label before requesting the interrupt
gpio: cdev: check for NULL labels when sanitizing them for irqs

Bastien Nocera (1):
Bluetooth: Fix TOCTOU in HCI debugfs implementation

Benjamin Berg (1):
wifi: iwlwifi: mvm: include link ID when releasing frames

Björn Töpel (1):
riscv: Fix vector state restore in rt_sigreturn()

Bjørn Mork (1):
net: wwan: t7xx: Split 64bit accesses to fix alignment issues

Borislav Petkov (AMD) (3):
x86/retpoline: Do the necessary fixup to the Zen3/4 srso return thunk for !SRSO x86/retpoline: Add NOENDBR annotation to the SRSO dummy return thunk x86/mce: Make sure to grab mce_sysfs_mutex in set_bank()

Brian Welty (1):
drm/xe: Add exec_queue.sched_props.job_timeout_ms

Charlene Liu (1):
drm/amd/display: Update P010 scaling cap

Charles Keepax (1):
ASoC: cs42l43: Correct extraction of data pointer in suspend/resume

Christian Bendiksen (1):
ALSA: hda/realtek: Add sound quirks for Lenovo Legion slim 7 16ARHA7 models

Christian Brauner (1):
block: count BLK_OPEN_RESTRICT_WRITES openers

Christian Göttsche (1):
selinux: avoid dereference of garbage after mount failure

Christian Hewitt (1):
drm/panfrost: fix power transition timeout warnings

Christoffer Sandberg (1):
ALSA: hda/realtek - Fix inactive headset mic jack

Christophe JAILLET (2):
vboxsf: Avoid an spurious warning if load_nls_xxx() fails
net: dsa: sja1105: Fix parameters order in sja1110_pcs_mdio_write_c45()

Chuck Lever (1):
SUNRPC: Fix a slow server-side memory leak with RPC-over-TCP

Claudiu Beznea (1):
net: ravb: Let IP-specific receive function to interrogate descriptors

Daniel Sneddon (2):
x86/bhi: Define SPEC_CTRL_BHI_DIS_S
KVM: x86: Add BHI_NO

Dave Airlie (1):
nouveau/uvmm: fix addr/range calcs for remap operations

David Hildenbrand (2):
x86/mm/pat: fix VM_PAT handling in COW mappings mm/secretmem: fix GUP-fast succeeding on secretmem folios

David Howells (2):
cifs: Fix duplicate fscache cookie warnings
cifs: Fix caching to try to do open O_WRONLY as rdwr on server

David Thompson (3):
mlxbf_gige: stop PHY during open() error paths
mlxbf_gige: call request_irq() after NAPI initialized
mlxbf_gige: stop interface during shutdown

Davide Caratti (1):
mptcp: don't account accept() of non-MPC client as fallback to TCP

Dominique Martinet (1):
9p: Fix read/write debug statements to report server reply

Duanqiang Wen (1):
net: txgbe: fix i2c dev name cannot match clkdev

Duoming Zhou (1):
ax25: fix use-after-free bugs caused by ax25_ds_del_timer

Edward Liaw (1):
selftests/mm: include strings.h for ffsl

Emmanuel Grumbach (1):
wifi: iwlwifi: mvm: pick the version of SESSION_PROTECTION_NOTIF

Eric Dumazet (5):
tcp: properly terminate timers for kernel sockets
netfilter: validate user input for expected length net/sched: act_skbmod: prevent kernel-infoleak net/sched: fix lockdep splat in qdisc_tree_reduce_backlog()
erspan: make sure erspan_base_hdr is present in skb->head

Florian Westphal (1):
inet: inet_defrag: prevent sk release while still in use

Gabe Teeger (1):
Revert "drm/amd/display: Send DTBCLK disable message on first commit"

Geliang Tang (2):
selftests: mptcp: join: fix dev in check_endpoint
selftests: mptcp: use += operator to append strings

Greg Kroah-Hartman (3):
Revert "x86/mpparse: Register APIC address only once"
x86: set SPECTRE_BHI_ON as default
Linux 6.8.5

Guenter Roeck (1):
mean_and_variance: Drop always failing tests

Haiyang Zhang (1):
net: mana: Fix Rx DMA datasize and skb_over_panic

Hangbin Liu (1):
scripts/bpf_doc: Use silent mode when exec make cmd

Hariprasad Kelam (2):
Octeontx2-af: fix pause frame configuration in GMP mode
octeontx2-af: Fix issue with loading coalesced KPU profiles

Heiner Kallweit (1):
r8169: fix issue caused by buggy BIOS on certain boards with RTL8168d

Herve Codina (2):
driver core: Introduce device_link_wait_removal()
of: dynamic: Synchronize of_changeset_destroy() with the devlink removals

Horatiu Vultur (1):
net: phy: micrel: lan8814: Fix when enabling/disabling 1-step timestamping

Huai-Yuan Liu (1):
spi: mchp-pci1xxx: Fix a possible null pointer dereference in pci1xxx_spi_probe

Hui Wang (1):
Bluetooth: hci_event: set the conn encrypted before conn establishes

I Gede Agastya Darma Laksana (1):
ALSA: hda/realtek: Update Panasonic CF-SZ6 quirk to support headset with microphone

Ido Schimmel (1):
selftests: vxlan_mdb: Fix failures with old libnet

Ilya Leoshkevich (1):
s390/bpf: Fix bpf_plt pointer arithmetic

Imre Deak (1):
drm/i915/dp: Fix DSC state HW readout for SST connectors

Ingo Molnar (1):
Revert "x86/mm/ident_map: Use gbpages only where full GB page should be mapped."

Ivan Vecera (2):
i40e: Fix VF MAC filter removal
i40e: Enforce software interrupt during busy-poll exit

Jaewon Kim (1):
spi: s3c64xx: Use DMA mode from fifo size

Jakub Kicinski (2):
tools: ynl: fix setting presence bits in simple nests
selftests: reuseaddr_conflict: add missing new line at the end of the output

Jakub Sitnicki (1):
bpf, sockmap: Prevent lock inversion deadlock in map delete elem

Jan Kara (1):
nfsd: Fix error cleanup path in nfsd_rename()

Jason A. Donenfeld (1):
x86/coco: Require seeding RNG with RDRAND on CoCo systems

Jason Gunthorpe (1):
iommu: Validate the PASID in iommu_attach_device_pasid()

Jeff Layton (1):
nfsd: hold a lighter-weight client reference over CB_RECALL_ANY

Jens Axboe (6):
io_uring/kbuf: get rid of lower BGID lists io_uring/kbuf: get rid of bl->is_ready io_uring/kbuf: protect io_buffer_list teardown with a reference io_uring/rw: don't allow multishot reads without NOWAIT support
io_uring: use private workqueue for exit work io_uring/kbuf: hold io_buffer_list reference over mmap

Jesper Dangaard Brouer (1):
xen-netfront: Add missing skb_mark_for_recycle

Jesse Brandeburg (1):
ice: fix memory corruption bug with suspend and rebuild

Jian Shen (1):
net: hns3: mark unexcuted loopback test result as UNEXECUTED

Jie Wang (1):
net: hns3: fix index limit to support all queue stats

Johan Hovold (4):
Revert "Bluetooth: hci_qca: Set BDA quirk bit if fwnode exists in DT"
arm64: dts: qcom: sc7180-trogdor: mark bluetooth address as broken
Bluetooth: qca: fix device-address endianness
Bluetooth: add quirk for broken address properties

Johannes Berg (1):
wifi: iwlwifi: mvm: rfi: fix potential response leaks

Jose Ignacio Tornos Martinez (1):
net: usb: ax88179_178a: avoid the interface always configured as random address

Josh Poimboeuf (1):
x86/bugs: Change commas to semicolons in 'spectre_v2' sysfs file

Joshua Hay (1):
idpf: fix kernel panic on unknown packet types

José Roberto de Souza (1):
drm/i915: Do not print 'pxp init failed with 0' when it succeed

Juha-Pekka Heikkila (1):
drm/i915/display: Disable AuxCCS framebuffers if built for Xe

Justin Chen (1):
net: bcmasp: Bring up unimac after PHY link up

Kan Liang (1):

      perf/x86/intel/ds: Don't clear ->pebs_data_cfg for the last PEBS event

Kent Gibson (1):
gpio: cdev: fix missed label sanitizing in debounce_setup()

Kent Overstreet (1):
aio: Fix null ptr deref in aio_complete() wakeup

Kuniyuki Iwashima (3):
tcp: Fix bind() regression for v6-only wildcard and v4-mapped-v6 non-wildcard addresses.
tcp: Fix bind() regression for v6-only wildcard and v4(-mapped-v6) non-wildcard addresses.
ipv6: Fix infinite recursion in fib6_dump_done().

Kurt Kanzenbach (1):
igc: Remove stale comment about Tx timestamping

Li Nan (1):
scsi: sd: Unregister device if device_add_disk() failed in sd_probe()

Linus Torvalds (1):
x86/syscall: Don't force use of indirect calls for system calls

Luke D. Jones (1):
ALSA: hda/realtek: cs35l41: Support ASUS ROG G634JYR

Mahmoud Adam (1):
net/rds: fix possible cp null dereference

Marco Pinna (1):
vsock/virtio: fix packet delivery to tap device

Mario Limonciello (1):
drm/amd: Flush GFXOFF requests in prepare stage

Mark Brown (1):
arm64/ptrace: Use saved floating point state type to determine SVE layout

Masahiro Yamada (1):
modpost: do not make find_tosym() return NULL

Matt Roper (1):
drm/i915/xelpg: Extend some workarounds/tuning to gfx version 12.74

Matthew Auld (4):
drm/xe/guc_submit: use jiffies for job timeout drm/xe/queue: fix engine_class bounds check drm/xe/device: fix XE_MAX_GT_PER_TILE check drm/xe/device: fix XE_MAX_TILES_PER_DEVICE check

Matthieu Baerts (NGI0) (1):
selftests: mptcp: connect: fix shellcheck warnings

Michael Krummsdorf (1):
net: dsa: mv88e6xxx: fix usable ports on 88e6020

Namjae Jeon (3):
ksmbd: don't send oplock break if rename fails
ksmbd: validate payload size in ipc response
ksmbd: do not set SMB2_GLOBAL_CAP_ENCRYPTION for SMB 3.1.1

Nikita Kiryushin (1):
ACPICA: debugger: check status of acpi_evaluate_object() in acpi_db_walk_for_fields()

Nikita Travkin (2):
thermal: gov_power_allocator: Allow binding without cooling devices
thermal: gov_power_allocator: Allow binding without trip points

Nirmoy Das (1):

      drm/xe: Remove unused xe_bo->props struct

Oliver Upton (1):
KVM: arm64: Fix host-programmed guest events in nVHE

Oscar Salvador (1):
lib/stackdepot: move stack_record struct definition into the header

Oswald Buddenhagen (1):
Revert "ALSA: emu10k1: fix synthesizer sample playback position and caching"

Pablo Neira Ayuso (8):
netfilter: nf_tables: reject destroy command to remove basechain hooks
netfilter: nf_tables: reject table flag and netdev basechain updates
netfilter: nf_tables: skip netdev hook unregistration if table is dormant
netfilter: nf_tables: release batch on table validation from abort path
netfilter: nf_tables: release mutex after nft_gc_seq_end from abort path
netfilter: nf_tables: reject new basechain after table flag update
netfilter: nf_tables: flush pending destroy work before exit_net release
netfilter: nf_tables: discard table flag update with pending basechain deletion

Paolo Abeni (1):
mptcp: prevent BPF accessing lowat from a subflow socket.

Paul Barker (2):
net: ravb: Always process TX descriptor ring
net: ravb: Always update error counters

Paulo Alcantara (14):
smb: client: fix UAF in smb2_reconnect_server()
smb: client: guarantee refcounted children from parent session
smb: client: refresh referral without acquiring refpath_lock
smb: client: handle DFS tcons in cifs_construct_tcon()
smb: client: serialise cifs_construct_tcon() with cifs_mount_mutex
smb: client: fix potential UAF in cifs_debug_files_proc_show()
smb: client: fix potential UAF in cifs_stats_proc_write()
smb: client: fix potential UAF in cifs_stats_proc_show()
smb: client: fix potential UAF in cifs_dump_full_key()
smb: client: fix potential UAF in smb2_is_valid_oplock_break()
smb: client: fix potential UAF in smb2_is_valid_lease_break()
smb: client: fix potential UAF in is_valid_oplock_break()
smb: client: fix potential UAF in smb2_is_network_name_deleted()
smb: client: fix potential UAF in cifs_signal_cifsd_for_reconnect()

Pavel Sakharov (1):
dma-buf: Fix NULL pointer dereference in sanitycheck()

Pawan Gupta (4):
x86/bhi: Add support for clearing branch history at syscall entry x86/bhi: Enumerate Branch History Injection (BHI) bug x86/bhi: Add BHI mitigation knob
x86/bhi: Mitigate KVM by default

Peter Collingbourne (1):
stackdepot: rename pool_index to pool_index_plus_1

Peter Ujfalusi (17):
ALSA: hda: Add pplcllpl/u members to hdac_ext_stream
ASoC: SOF: Add dsp_max_burst_size_in_ms member to snd_sof_pcm_stream
ASoC: SOF: ipc4-topology: Save the DMA maximum burst size for PCMs
ASoC: SOF: Intel: hda-pcm: Use dsp_max_burst_size_in_ms to place constraint
ASoC: SOF: Intel: hda: Implement get_stream_position (Linear Link Position)
ASoC: SOF: Intel: mtl/lnl: Use the generic get_stream_position callback
ASoC: SOF: Introduce a new callback pair to be used for PCM delay reporting
ASoC: SOF: Intel: Set the dai/host get frame/byte counter callbacks
ASoC: SOF: Intel: hda-common-ops: Do not set the get_stream_position callback
ASoC: SOF: ipc4-pcm: Use the snd_sof_pcm_get_dai_frame_counter() for pcm_delay
ASoC: SOF: Remove the get_stream_position callback
ASoC: SOF: ipc4-pcm: Move struct sof_ipc4_timestamp_info definition locally
ASoC: SOF: ipc4-pcm: Combine the SOF_IPC4_PIPE_PAUSED cases in pcm_trigger
ASoC: SOF: ipc4-pcm: Invalidate the stream_start_offset in PAUSED state
ASoC: SOF: sof-pcm: Add pointer callback to sof_ipc_pcm_ops
ASoC: SOF: ipc4-pcm: Correct the delay calculation
ASoC: SOF: Intel: hda: Compensate LLP in case it is not reset

Peter Xu (1):
mm/treewide: replace pud_large() with pud_leaf()

Petr Oros (1):
ice: fix enabling RX VLAN filtering

Pierre-Louis Bossart (5):
ASoC: rt5682-sdw: fix locking sequence
ASoC: rt711-sdca: fix locking sequence
ASoC: rt711-sdw: fix locking sequence
ASoC: rt712-sdca-sdw: fix locking sequence
ASoC: rt722-sdca-sdw: fix locking sequence

Piotr Wejman (1):
net: stmmac: fix rx queue priority assignment

Prasad Pandit (1):
dpll: indent DPLL option type by a tab

Przemek Kitszel (1):
ixgbe: avoid sleeping allocation in ixgbe_ipsec_vf_add_sa()

Pu Lehui (1):
drivers/perf: riscv: Disable PERF_SAMPLE_BRANCH_* while not supported

Puranjay Mohan (1):
bpf, arm64: fix bug in BPF_LDX_MEMSX

Raju Lakkaraju (1):
net: lan743x: Add set RFE read fifo threshold for PCI1x1x chips

Ravi Gunasekaran (1):
net: hsr: hsr_slave: Fix the promiscuous mode in offload mode

Richard Fitzgerald (3):
ASoC: wm_adsp: Fix missing mutex_lock in wm_adsp_write_ctl()
regmap: maple: Fix cache corruption in regcache_maple_drop()
regmap: maple: Fix uninitialized symbol 'ret' warnings

Ritvik Budhiraja (1):
smb3: retrying on failed server close

Rob Clark (1):
drm/prime: Unbreak virtgpu dma-buf export

Ryosuke Yasuoka (1):
nfc: nci: Fix uninit-value in nci_dev_up and nci_ntf_packet

Sabrina Dubroca (3):
tls: recv: process_rx_list shouldn't use an offset with kvec
tls: adjust recv return with async crypto and failed copy to userspace
tls: get psock ref after taking rxlock to avoid leak

Sam Protsenko (1):
spi: s3c64xx: Extract FIFO depth calculation to a dedicated macro

Samuel Holland (2):
riscv: mm: Fix prototype to avoid discarding const
riscv: Fix spurious errors from __get/put_kernel_nofault

Sandipan Das (1):
x86/cpufeatures: Add new word for scattered features

Sean Christopherson (2):
x86/cpufeatures: Add CPUID_LNX_5 to track recently added Linux-defined word
KVM: SVM: Use unsigned integers when dealing with ASIDs

Sergey Shtylyov (1):
of: module: prevent NULL pointer dereference in vsnprintf()

Simon Trimmer (2):
ALSA: hda: cs35l56: Set the init_done flag before component_add()
ALSA: hda: cs35l56: Add ACPI device match tables

Stanislav Fomichev (1):
xsk: Don't assume metadata is always requested in TX completion

Stefan O'Rear (1):
riscv: process: Fix kernel gp leakage

Stephen Lee (1):
ASoC: ops: Fix wraparound for mask in snd_soc_get_volsw

Steven Zou (1):
ice: Refactor FW data type and fix bitmap casting issue

Su Hui (1):
octeontx2-pf: check negative error code in otx2_open()

Sumanth Korikkar (1):
s390/entry: align system call table on 8 bytes

Taimur Hassan (1):
drm/amd/display: Send DTBCLK disable message on first commit

Tejas Upadhyay (1):

      drm/i915/mtl: Update workaround 14018575942

Thomas Hellström (2):
drm/xe: Use ring ops TLB invalidation for rebinds drm/xe: Rework rebinding

Thomas Richter (1):
s390/pai: fix sampling event removal for PMU device driver

Tudor Ambarus (6):
spi: s3c64xx: sort headers alphabetically
spi: s3c64xx: explicitly include <linux/bits.h>
spi: s3c64xx: remove else after return
spi: s3c64xx: define a magic value
spi: s3c64xx: allow full FIFO masks
spi: s3c64xx: determine the fifo depth only once

Uros Bizjak (1):
x86/bpf: Fix IP after emitting call depth accounting

Victor Isaev (1):
RISC-V: Update AT_VECTOR_SIZE_ARCH for new AT_MINSIGSTKSZ

Vijendar Mukunda (3):
ASoC: amd: acp: fix for acp pdm configuration check
ASoC: amd: acp: fix for acp_init function error handling
ASoC: SOF: amd: fix for false dsp interrupts

Ville Syrjälä (3):
drm/i915: Stop doing double audio enable/disable on SDVO and g4x+ DP drm/i915/mst: Limit MST+DSC to TGL+
drm/i915/mst: Reject FEC+MST on ICL

Vitaly Lifshits (3):
e1000e: Workaround for sporadic MDI error on Meteor Lake systems
e1000e: Minor flow correction in e1000_shutdown function
e1000e: move force SMBUS from enable ulp function to avoid PHY loss issue

Vladimir Isaev (1):
riscv: hwprobe: do not produce frtace relocation

Wei Fang (1):
net: fec: Set mac_managed_pm during probe

Will Deacon (2):
KVM: arm64: Use TLBI_TTL_UNKNOWN in __kvm_tlb_flush_vmid_range()
KVM: arm64: Ensure target address is granule-aligned for range TLBI

Wujie Duan (1):
KVM: arm64: Fix out-of-IPA space translation fault handling

Yonglong Liu (1):
net: hns3: fix kernel crash when devlink reload during pf initialization

Ziyang Xuan (1):
netfilter: nf_tables: Fix potential data-race in __nft_flowtable_type_get()