Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'loongarch-fixes-6.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson

Pull LoongArch fixes from Huacai Chen:
"Fix acpi_core_pic[] array overflow, fix earlycon parameter if KASAN
enabled, disable UBSAN instrumentation for vDSO build, and two Kconfig
cleanups"

* tag 'loongarch-fixes-6.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson:
LoongArch: vDSO: Disable UBSAN instrumentation
LoongArch: Fix earlycon parameter if KASAN enabled
LoongArch: Change acpi_core_pic[NR_CPUS] to acpi_core_pic[MAX_CORE_PIC]
LoongArch: Select HAVE_ARCH_SECCOMP to use the common SECCOMP menu
LoongArch: Select ARCH_ENABLE_THP_MIGRATION instead of redefining it

+10 -25
+2 -21
arch/loongarch/Kconfig
··· 12 12 select ARCH_DISABLE_KASAN_INLINE 13 13 select ARCH_ENABLE_MEMORY_HOTPLUG 14 14 select ARCH_ENABLE_MEMORY_HOTREMOVE 15 + select ARCH_ENABLE_THP_MIGRATION if TRANSPARENT_HUGEPAGE 15 16 select ARCH_HAS_ACPI_TABLE_UPGRADE if ACPI 16 17 select ARCH_HAS_CPU_FINALIZE_INIT 17 18 select ARCH_HAS_FORTIFY_SOURCE ··· 100 99 select HAVE_ARCH_KFENCE 101 100 select HAVE_ARCH_KGDB if PERF_EVENTS 102 101 select HAVE_ARCH_MMAP_RND_BITS if MMU 102 + select HAVE_ARCH_SECCOMP 103 103 select HAVE_ARCH_SECCOMP_FILTER 104 104 select HAVE_ARCH_TRACEHOOK 105 105 select HAVE_ARCH_TRANSPARENT_HUGEPAGE ··· 634 632 635 633 This is limited by the size of the lower address memory, 256MB. 636 634 637 - config SECCOMP 638 - bool "Enable seccomp to safely compute untrusted bytecode" 639 - depends on PROC_FS 640 - default y 641 - help 642 - This kernel feature is useful for number crunching applications 643 - that may need to compute untrusted bytecode during their 644 - execution. By using pipes or other transports made available to 645 - the process as file descriptors supporting the read/write 646 - syscalls, it's possible to isolate those applications in 647 - their own address space using seccomp. Once seccomp is 648 - enabled via /proc/<pid>/seccomp, it cannot be disabled 649 - and the task is only allowed to execute a few safe syscalls 650 - defined by each seccomp mode. 651 - 652 - If unsure, say Y. Only embedded should say N here. 653 - 654 635 endmenu 655 636 656 637 config ARCH_SELECT_MEMORY_MODEL ··· 651 666 for architectures which are either NUMA (Non-Uniform Memory Access) 652 667 or have huge holes in the physical address space for other reasons. 653 668 See <file:Documentation/mm/numa.rst> for more. 654 - 655 - config ARCH_ENABLE_THP_MIGRATION 656 - def_bool y 657 - depends on TRANSPARENT_HUGEPAGE 658 669 659 670 config ARCH_MEMORY_PROBE 660 671 def_bool y
+3 -1
arch/loongarch/include/asm/acpi.h
··· 32 32 return true; 33 33 } 34 34 35 + #define MAX_CORE_PIC 256 36 + 35 37 extern struct list_head acpi_wakeup_device_list; 36 - extern struct acpi_madt_core_pic acpi_core_pic[NR_CPUS]; 38 + extern struct acpi_madt_core_pic acpi_core_pic[MAX_CORE_PIC]; 37 39 38 40 extern int __init parse_acpi_topology(void); 39 41
+1 -3
arch/loongarch/kernel/acpi.c
··· 29 29 30 30 u64 acpi_saved_sp; 31 31 32 - #define MAX_CORE_PIC 256 33 - 34 32 #define PREFIX "ACPI: " 35 33 36 - struct acpi_madt_core_pic acpi_core_pic[NR_CPUS]; 34 + struct acpi_madt_core_pic acpi_core_pic[MAX_CORE_PIC]; 37 35 38 36 void __init __iomem * __acpi_map_table(unsigned long phys, unsigned long size) 39 37 {
+3
arch/loongarch/mm/kasan_init.c
··· 44 44 unsigned long xrange = (maddr >> XRANGE_SHIFT) & 0xffff; 45 45 unsigned long offset = 0; 46 46 47 + if (maddr >= FIXADDR_START) 48 + return (void *)(kasan_early_shadow_page); 49 + 47 50 maddr &= XRANGE_SHADOW_MASK; 48 51 switch (xrange) { 49 52 case XKPRANGE_CC_SEG:
+1
arch/loongarch/vdso/Makefile
··· 2 2 # Objects to go into the VDSO. 3 3 4 4 KASAN_SANITIZE := n 5 + UBSAN_SANITIZE := n 5 6 KCOV_INSTRUMENT := n 6 7 7 8 # Include the generic Makefile to check the built vdso.