Merge tag 'loongarch-6.15' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuaca...
authorLinus Torvalds <torvalds@linux-foundation.org>
Wed, 2 Apr 2025 19:15:01 +0000 (12:15 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 2 Apr 2025 19:15:01 +0000 (12:15 -0700)
Pull LoongArch updates from Huacai Chen:

 - Always select HAVE_VIRT_CPU_ACCOUNTING_GEN

 - Enable UBSAN (Undefined Behavior Sanitizer)

 - Increase MAX_IO_PICS up to 8

 - Increase ARCH_DMA_MINALIGN up to 16

 - Fix and improve BPF JIT

 - Fix and improve vDSO implementation

 - Update the default config file

 - Some bug fixes and other small changes

* tag 'loongarch-6.15' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson:
  LoongArch: Update Loongson-3 default config file
  LoongArch: vDSO: Make use of the t8 register for vgetrandom-chacha
  LoongArch: vDSO: Remove --hash-style=sysv
  LoongArch: BPF: Don't override subprog's return value
  LoongArch: BPF: Use move_addr() for BPF_PSEUDO_FUNC
  LoongArch: BPF: Fix off-by-one error in build_prologue()
  LoongArch: Rework the arch_kgdb_breakpoint() implementation
  LoongArch: Fix device node refcount leak in fdt_cpu_clk_init()
  LoongArch: Increase ARCH_DMA_MINALIGN up to 16
  LoongArch: Increase MAX_IO_PICS up to 8
  LoongArch: Fix help text of CMDLINE_EXTEND in Kconfig
  LoongArch: Enable UBSAN (Undefined Behavior Sanitizer)
  LoongArch: Always select HAVE_VIRT_CPU_ACCOUNTING_GEN
  rust: Fix enabling Rust and building with GCC for LoongArch

1  2 
arch/loongarch/Kconfig
arch/loongarch/configs/loongson3_defconfig
arch/loongarch/vdso/Makefile
rust/Makefile

index 687502917ae27c444bb6d10a5cd896ff9a0a9721,02fc28020ddd6329956a9986c2763a7bf57d59a9..067c0b994648ccb65d65377ddecc26fcc4ce7cb1
@@@ -30,7 -30,7 +30,8 @@@ config LOONGARC
        select ARCH_HAS_SET_MEMORY
        select ARCH_HAS_SET_DIRECT_MAP
        select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
+       select ARCH_HAS_UBSAN
 +      select ARCH_HAS_VDSO_ARCH_DATA
        select ARCH_INLINE_READ_LOCK if !PREEMPTION
        select ARCH_INLINE_READ_LOCK_BH if !PREEMPTION
        select ARCH_INLINE_READ_LOCK_IRQ if !PREEMPTION
Simple merge
diff --cc rust/Makefile
index b9cc810764e9e5d480829ae728a151269005e713,2c57c624fe7df01c2d1030fb48d08c0c7781152a..2a8342e9c5b5faea296a77037b55a0f5756ea6e3
@@@ -274,7 -247,7 +275,8 @@@ bindgen_skip_c_flags := -mno-fp-ret-in-
  # Derived from `scripts/Makefile.clang`.
  BINDGEN_TARGET_x86    := x86_64-linux-gnu
  BINDGEN_TARGET_arm64  := aarch64-linux-gnu
+ BINDGEN_TARGET_loongarch      := loongarch64-linux-gnusf
 +BINDGEN_TARGET_um     := $(BINDGEN_TARGET_$(SUBARCH))
  BINDGEN_TARGET                := $(BINDGEN_TARGET_$(SRCARCH))
  
  # All warnings are inhibited since GCC builds are very experimental,