1
linux/arch/loongarch/include/asm
Huacai Chen 3c252263be LoongArch: Make KASAN usable for variable cpu_vabits
Currently, KASAN on LoongArch assume the CPU VA bits is 48, which is
true for Loongson-3 series, but not for Loongson-2 series (only 40 or
lower), this patch fix that issue and make KASAN usable for variable
cpu_vabits.

Solution is very simple: Just define XRANGE_SHADOW_SHIFT which means
valid address length from VA_BITS to min(cpu_vabits, VA_BITS).

Cc: stable@vger.kernel.org
Signed-off-by: Kanglong Wang <wangkanglong@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
2024-10-23 22:15:30 +08:00
..
vdso LoongArch: vDSO: Wire up getrandom() vDSO implementation 2024-09-13 17:28:35 +02:00
acenv.h
acpi.h LoongArch: Give a chance to build with !CONFIG_SMP 2024-05-14 12:24:18 +08:00
addrspace.h LoongArch: Add writecombine support for DMW-based ioremap() 2024-07-20 22:40:59 +08:00
alternative-asm.h
alternative.h
asm-extable.h
asm-offsets.h
asm-prototypes.h LoongArch: Select ARCH_SUPPORTS_INT128 if CC_HAS_INT128 2024-05-14 12:24:18 +08:00
asm.h
asmmacro.h LoongArch: Add support for relocating the kernel with RELR relocation 2024-07-20 22:41:07 +08:00
atomic.h LoongArch: Improve hardware page table walker 2024-09-24 15:32:20 +08:00
barrier.h
bitops.h
bitrev.h
bootinfo.h LoongArch: Get correct cores_per_package for SMT systems 2024-10-21 22:11:18 +08:00
branch.h
bug.h LoongArch: Add ORC stack unwinder support 2024-03-11 22:23:47 +08:00
cache.h
cacheflush.h LoongArch: Remove superfluous flush_dcache_page() definition 2024-03-19 15:50:34 +08:00
cacheops.h
checksum.h
clocksource.h
cmpxchg.h
cpu-features.h LoongArch: Rework CPU feature probe from CPUCFG/IOCSR 2024-09-24 15:32:20 +08:00
cpu-info.h
cpu.h LoongArch: Rework CPU feature probe from CPUCFG/IOCSR 2024-09-24 15:32:20 +08:00
cpufeature.h
crash_reserve.h LoongArch: Fix Kconfig item and left code related to CRASH_CORE 2024-04-24 12:36:07 +08:00
delay.h
dma.h
dmi.h
efi.h efi/loongarch: Directly position the loaded image file 2023-12-19 11:16:37 +01:00
elf.h LoongArch: Fix and simplify fcsr initialization on execve() 2024-01-17 12:43:08 +08:00
entry-common.h
exception.h LoongArch: Add ORC stack unwinder support 2024-03-11 22:23:47 +08:00
exec.h
extable.h
fixmap.h
fpregdef.h
fpu.h LoongArch: implement ARCH_HAS_KERNEL_FPU_SUPPORT 2024-05-19 14:36:18 -07:00
ftrace.h function_graph: Everyone uses HAVE_FUNCTION_GRAPH_RET_ADDR_PTR, remove it 2024-06-11 11:18:24 -04:00
futex.h
gpr-num.h
hardirq.h LoongArch: Architectural preparation for AVEC irqchip 2024-08-23 20:40:27 +02:00
hugetlb.h LoongArch: Use accessors to page table entries instead of direct dereference 2024-08-07 17:37:11 +08:00
hw_breakpoint.h LoongArch: Trigger user-space watchpoints correctly 2024-06-21 10:18:40 +08:00
hw_irq.h LoongArch: Define ARCH_IRQ_INIT_FLAGS as IRQ_NOPROBE 2024-08-26 23:11:32 +08:00
idle.h
inst.h LoongArch: Make the users of larch_insn_gen_break() constant 2024-07-20 22:41:07 +08:00
io.h LoongArch: Add writecombine support for DMW-based ioremap() 2024-07-20 22:40:59 +08:00
irq_regs.h
irq_work.h LoongArch: Add irq_work support via self IPIs 2024-07-20 22:40:58 +08:00
irq.h irqchip/loongarch-avec: Add AVEC irqchip support 2024-08-23 20:40:27 +02:00
irqflags.h
jump_label.h work around gcc bugs with 'asm goto' with outputs 2024-02-09 15:57:48 -08:00
kasan.h LoongArch: Make KASAN usable for variable cpu_vabits 2024-10-23 22:15:30 +08:00
Kbuild ALong with the usual shower of singleton patches, notable patch series in 2024-09-21 07:29:05 -07:00
kdebug.h
kexec.h
kfence.h LoongArch: Use accessors to page table entries instead of direct dereference 2024-08-07 17:37:11 +08:00
kgdb.h LoongArch: Add basic KGDB & KDB support 2023-09-06 22:53:55 +08:00
kprobes.h
kvm_csr.h LoongArch: KVM: Add PMU support for guest 2024-09-12 20:53:40 +08:00
kvm_host.h LoongArch: KVM: Enable paravirt feature control from VMM 2024-09-12 20:53:40 +08:00
kvm_mmu.h LoongArch: KVM: Implement kvm mmu operations 2023-10-02 10:01:28 +08:00
kvm_para.h LoongArch: KVM: Implement function kvm_para_has_feature() 2024-09-12 22:56:14 +08:00
kvm_types.h LoongArch: KVM: Add kvm related header files 2023-10-02 10:01:20 +08:00
kvm_vcpu.h LoongArch: KVM: Enable paravirt feature control from VMM 2024-09-12 20:53:40 +08:00
lbt.h LoongArch: Add Loongson Binary Translation (LBT) extension support 2023-09-06 22:53:55 +08:00
linkage.h LoongArch: Use SYM_CODE_* to annotate exception handlers 2023-10-18 08:42:52 +08:00
local.h locking/local, arch: Rewrite local_add_unless() as a static inline function 2023-10-04 11:38:11 +02:00
loongarch.h LoongArch: Use "Exception return address" to comment ERA 2024-10-21 22:11:18 +08:00
loongson.h
mmu_context.h LoongArch: Improve hardware page table walker 2024-09-24 15:32:20 +08:00
mmu.h
module.h LoongArch: Add ORC stack unwinder support 2024-03-11 22:23:47 +08:00
module.lds.h
numa.h LoongArch: Add all CPUs enabled by fdt to NUMA node 0 2024-06-03 15:45:53 +08:00
orc_header.h LoongArch: Add ORC stack unwinder support 2024-03-11 22:23:47 +08:00
orc_lookup.h LoongArch: Add ORC stack unwinder support 2024-03-11 22:23:47 +08:00
orc_types.h LoongArch: Add ORC stack unwinder support 2024-03-11 22:23:47 +08:00
page.h LoongArch: Make {virt, phys, page, pfn} translation work with KFENCE 2024-04-10 21:08:51 +08:00
paravirt_api_clock.h LoongArch: KVM: Add PV IPI support on guest side 2024-05-06 22:00:47 +08:00
paravirt.h LoongArch: Revert qspinlock to test-and-set simple lock on VM 2024-09-11 23:26:32 +08:00
pci.h
percpu.h LoongArch: Simplify _percpu_read() and _percpu_write() 2024-09-24 15:32:20 +08:00
perf_event.h LoongArch: Fix callchain parse error with kernel tracepoint events again 2024-05-14 12:24:18 +08:00
pgalloc.h LoongArch: Set initial pte entry with PAGE_GLOBAL for kernel space 2024-10-21 22:11:19 +08:00
pgtable-bits.h LoongArch: Add ARCH_HAS_PTE_DEVMAP support 2024-07-20 22:40:59 +08:00
pgtable.h LoongArch: Set initial pte entry with PAGE_GLOBAL for kernel space 2024-10-21 22:11:19 +08:00
prefetch.h
processor.h LoongArch: Add Loongson Binary Translation (LBT) extension support 2023-09-06 22:53:55 +08:00
ptrace.h LoongArch: Add identifier names to arguments of die() declaration 2023-08-25 23:40:26 +08:00
qspinlock.h LoongArch: Revert qspinlock to test-and-set simple lock on VM 2024-09-11 23:26:32 +08:00
regdef.h
seccomp.h
serial.h
set_memory.h LoongArch: Add ARCH_HAS_SET_DIRECT_MAP support 2024-09-24 15:32:20 +08:00
setup.h LoongArch: Add support for relocating the kernel with RELR relocation 2024-07-20 22:41:07 +08:00
smp.h LoongArch: Architectural preparation for AVEC irqchip 2024-08-23 20:40:27 +02:00
sparsemem.h
spinlock_types.h
spinlock.h
stackframe.h LoongArch: Add writecombine support for DMW-based ioremap() 2024-07-20 22:40:59 +08:00
stackprotector.h
stacktrace.h
string.h LoongArch: Add KASAN (Kernel Address Sanitizer) support 2023-09-06 22:54:16 +08:00
suspend.h
switch_to.h LoongArch: Add Loongson Binary Translation (LBT) extension support 2023-09-06 22:53:55 +08:00
syscall.h
thread_info.h LoongArch: Add kernel livepatching support 2024-03-11 22:23:47 +08:00
time.h
timex.h
tlb.h LoongArch: Fix a build error due to __tlb_remove_tlb_entry() 2024-04-24 12:36:07 +08:00
tlbflush.h
topology.h arch, mm: move definition of node_data to generic code 2024-09-03 21:15:28 -07:00
types.h
uaccess.h
unistd.h LoongArch: Define __ARCH_WANT_NEW_STAT in unistd.h 2024-07-20 22:40:58 +08:00
unwind_hints.h LoongArch: Add ORC stack unwinder support 2024-03-11 22:23:47 +08:00
unwind.h LoongArch: Add ORC stack unwinder support 2024-03-11 22:23:47 +08:00
uprobes.h LoongArch: Make the users of larch_insn_gen_break() constant 2024-07-20 22:41:07 +08:00
vdso.h
vermagic.h
video.h arch: Rename fbdev header and source files 2024-05-03 17:07:50 +02:00
vmalloc.h
xor_simd.h LoongArch: Add SIMD-optimized XOR routines 2023-09-06 22:53:55 +08:00
xor.h LoongArch: Add SIMD-optimized XOR routines 2023-09-06 22:53:55 +08:00