linux/arch/riscv/kernel
Clément Léger 5cd900b8b7
riscv: use local label names instead of global ones in assembly
Local labels should be prefix by '.L' or they'll be exported in the
symbol table. Additionally, this messes up the backtrace by displaying
an incorrect symbol:

  ...
  [   12.751810] [<ffffffff80441628>] _copy_from_user+0x28/0xc2
  [   12.752035] [<ffffffff800152ca>] handle_misaligned_load+0x1ca/0x2fc
  [   12.752310] [<ffffffff80a033e8>] do_trap_load_misaligned+0x24/0xee
  [   12.752596] [<ffffffff80a0dcae>] _new_vmalloc_restore_context_a0+0xc2/0xce

After:
  ...
  [   10.243916] [<ffffffff804415e4>] _copy_from_user+0x28/0xc2
  [   10.244026] [<ffffffff800152ca>] handle_misaligned_load+0x1ca/0x2fc
  [   10.244150] [<ffffffff80a033a0>] do_trap_load_misaligned+0x24/0xee
  [   10.244268] [<ffffffff80a0dc66>] handle_exception+0x146/0x152

Signed-off-by: Clément Léger <cleger@rivosinc.com>
Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Fixes: 503638e0ba ("riscv: Stop emitting preventive sfence.vma for new vmalloc mappings")
Link: https://lore.kernel.org/r/20250103141814.508865-1-cleger@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
2025-01-08 10:46:14 -08:00
..
compat_vdso Makefile: remove redundant tool coverage variables 2024-05-14 23:35:48 +09:00
pi riscv: Do not use fortify in early code 2024-10-25 06:18:36 -07:00
probes riscv: kprobes: Fix incorrect address calculation 2025-01-08 10:39:39 -08:00
tests treewide: replace or remove redundant def_bool in Kconfig files 2024-02-20 20:47:45 +09:00
vdso RISC-V Paches for the 6.13 Merge Window, Part 1 2024-11-27 11:19:09 -08:00
vendor_extensions riscv: Make riscv_isa_vendor_ext_andes array static 2024-09-17 08:05:08 -07:00
.gitignore
acpi.c RISC-V: ACPI: fix early_ioremap to early_memremap 2024-10-25 06:18:31 -07:00
acpi_numa.c ACPI: NUMA: initialize all values of acpi_early_node_map to NUMA_NO_NODE 2024-09-20 01:31:26 -07:00
alternative.c asm-generic: introduce text-patching.h 2024-11-07 14:25:15 -08:00
asm-offsets.c ftrace updates for v6.13: 2024-11-20 11:34:10 -08:00
cacheinfo.c riscv: Prevent a bad reference count on CPU nodes 2024-10-25 06:18:39 -07:00
cfi.c bpf, riscv64/cfi: Support kCFI + BPF on riscv64 2024-03-06 15:18:16 -08:00
compat_signal.c
compat_syscall_table.c riscv: convert to generic syscall table 2024-07-10 14:23:38 +02:00
copy-unaligned.h RISC-V: Report vector unaligned access speed hwprobe 2024-10-18 12:38:34 -07:00
copy-unaligned.S
cpu-hotplug.c riscv: Use '%u' to format the output of 'cpu' 2024-10-25 06:18:40 -07:00
cpu.c riscv: Add vendor extensions to /proc/cpuinfo 2024-07-22 15:36:55 -07:00
cpu_ops.c
cpu_ops_sbi.c riscv: prevent pt_regs corruption for secondary idle threads 2024-05-30 09:42:51 -07:00
cpu_ops_spinwait.c riscv: prevent pt_regs corruption for secondary idle threads 2024-05-30 09:42:51 -07:00
cpufeature.c ARM: 2024-11-30 14:51:08 -08:00
crash_dump.c
crash_save_regs.S
efi-header.S riscv: efi: Set NX compat flag in PE/COFF header 2024-10-25 06:18:38 -07:00
efi.c
elf_kexec.c riscv/kexec_file: Fix relocation type R_RISCV_ADD16 and R_RISCV_SUB16 unknown 2024-08-14 17:44:33 -07:00
entry.S riscv: use local label names instead of global ones in assembly 2025-01-08 10:46:14 -08:00
fpu.S RISC-V: Replace RISCV_MISALIGNED with RISCV_SCALAR_MISALIGNED 2024-10-18 12:38:32 -07:00
ftrace.c - The series "zram: optimal post-processing target selection" from 2024-11-23 09:58:07 -08:00
head.h
head.S riscv: set trap vector earlier 2024-07-12 08:55:31 -07:00
hibernate-asm.S
hibernate.c
image-vars.h
irq.c
jump_label.c riscv: Fixup boot failure when CONFIG_DEBUG_RT_MUTEXES=y 2024-12-11 11:43:39 -08:00
kernel_mode_fpu.c riscv: add support for kernel-mode FPU 2024-05-19 14:36:19 -07:00
kernel_mode_vector.c
kexec_relocate.S
kgdb.c
machine_kexec.c riscv: kexec: Avoid deadlock in kexec crash path 2024-07-03 13:11:30 -07:00
machine_kexec_file.c
Makefile RISC-V Paches for the 6.13 Merge Window, Part 1 2024-11-27 11:19:09 -08:00
Makefile.syscalls syscalls: fix syscall macros for newfstat/newfstatat 2024-08-02 15:20:47 +02:00
mcount-dyn.S ftrace: riscv: move from REGS to ARGS 2024-05-22 16:12:48 -07:00
mcount.S riscv: remove MCOUNT_NAME workaround 2024-02-22 15:38:54 -08:00
module-sections.c
module.c riscv: module: remove relocation_head rel_entry member allocation 2025-01-08 10:22:52 -08:00
paravirt.c RISC-V: KVM: Rename the SBI_STA_SHMEM_DISABLE to a generic name 2024-04-22 11:13:52 +05:30
patch.c asm-generic: introduce text-patching.h 2024-11-07 14:25:15 -08:00
perf_callchain.c The biggest change here is eliminating the awful idea that KVM had, of 2024-11-23 16:00:50 -08:00
perf_regs.c
process.c riscv: Add support for the tagged address ABI 2024-10-24 14:12:56 -07:00
ptrace.c riscv: Allow ptrace control of the tagged address ABI 2024-10-24 14:12:57 -07:00
reset.c
return_address.c riscv: add CALLER_ADDRx support 2024-02-22 12:17:47 -08:00
riscv_ksyms.c riscv: Omit optimized string routines when using KASAN 2024-09-19 01:10:00 -07:00
sbi-ipi.c RISC-V: Enable the IPI before workqueue_online_cpu() 2024-08-01 07:15:43 -07:00
sbi.c riscv: Fix RISCV_ALTERNATIVE_EARLY 2024-09-03 07:57:55 -07:00
sbi_ecall.c riscv: Fix RISCV_ALTERNATIVE_EARLY 2024-09-03 07:57:55 -07:00
setup.c riscv: Fix wrong usage of __pa() on a fixmap address 2024-12-11 11:43:44 -08:00
signal.c riscv: signal: Remove unlikely() from WARN_ON() condition 2024-07-26 05:50:46 -07:00
smp.c RISC-V: Implement kgdb_roundup_cpus() to enable future NMI Roundup 2024-09-17 05:52:44 -07:00
smpboot.c riscv: Call riscv_user_isa_enable() only on the boot hart 2024-10-05 08:51:15 -07:00
soc.c
stacktrace.c riscv: stacktrace: fix backtracing through exceptions 2025-01-08 10:45:49 -08:00
suspend.c riscv: Enable cbo.zero only when all harts support Zicboz 2024-10-05 08:51:13 -07:00
suspend_entry.S
sys_hwprobe.c RISC-V Paches for the 6.13 Merge Window, Part 1 2024-11-27 11:19:09 -08:00
sys_riscv.c syscalls: mmap(): use unsigned offset type consistently 2024-06-25 15:57:38 +02:00
syscall_table.c riscv: convert to generic syscall table 2024-07-10 14:23:38 +02:00
time.c
traps.c riscv: Fix sleeping in invalid context in die() 2025-01-08 10:23:17 -08:00
traps_misaligned.c RISC-V Paches for the 6.13 Merge Window, Part 1 2024-11-27 11:19:09 -08:00
unaligned_access_speed.c RISC-V: Report vector unaligned access speed hwprobe 2024-10-18 12:38:34 -07:00
vdso.c riscv: vdso: Use only one single vvar mapping 2024-11-02 12:37:33 +01:00
vec-copy-unaligned.S RISC-V: Report vector unaligned access speed hwprobe 2024-10-18 12:38:34 -07:00
vector.c RISC-V: Detect unaligned vector accesses supported 2024-10-18 12:38:33 -07:00
vendor_extensions.c riscv: Fix out-of-bounds when accessing Andes per hart vendor extension array 2024-08-15 13:12:16 -07:00
vmcore_info.c riscv: don't export va_kernel_pa_offset in vmcoreinfo for XIP kernel 2024-09-12 07:22:56 -07:00
vmlinux-xip.lds.S riscv: remove limit on the size of read-only section for XIP kernel 2024-09-12 07:23:02 -07:00
vmlinux.lds.S