linux/arch/riscv
Jisheng Zhang 9a2585ad17 riscv: define ILLEGAL_POINTER_VALUE for 64bit
commit 5c178472af upstream.

This is used in poison.h for poison pointer offset. Based on current
SV39, SV48 and SV57 vm layout, 0xdead000000000000 is a proper value
that is not mappable, this can avoid potentially turning an oops to
an expolit.

Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Fixes: fbe934d69e ("RISC-V: Build Infrastructure")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20240705170210.3236-1-jszhang@kernel.org
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-10-10 11:57:52 +02:00
..
boot riscv: dts: starfive: add assigned-clock* to limit frquency 2024-09-18 19:24:10 +02:00
configs Kbuild updates for v6.6 2023-09-05 11:01:47 -07:00
errata riscv: errata: andes: Probe for IOCP only once in boot stage 2023-12-13 18:45:19 +01:00
include RISC-V: KVM: Fix to allow hpmcounter31 from the guest 2024-10-04 16:28:51 +02:00
kernel riscv: Fix fp alignment bug in perf_callchain_user() 2024-10-04 16:29:34 +02:00
kvm RISC-V: KVM: Fix sbiret init before forwarding to userspace 2024-10-04 16:28:51 +02:00
lib riscv: uaccess: Return the number of bytes effectively not copied 2023-08-16 07:30:06 -07:00
mm membarrier: riscv: Add full memory barrier in switch_mm() 2024-09-12 11:11:45 +02:00
net riscv, bpf: make some atomic operations fully ordered 2024-06-12 11:11:54 +02:00
purgatory riscv/purgatory: Disable CFI 2023-08-23 14:16:40 -07:00
tools riscv: Check relocations at compile time 2023-04-19 07:46:32 -07:00
Kbuild kexec: rename ARCH_HAS_KEXEC_PURGATORY 2023-08-18 10:18:54 -07:00
Kconfig riscv: define ILLEGAL_POINTER_VALUE for 64bit 2024-10-10 11:57:52 +02:00
Kconfig.debug
Kconfig.errata riscv: only select DMA_DIRECT_REMAP from RISCV_ISA_ZICBOM and ERRATA_THEAD_PBMT 2023-10-26 09:42:38 +02:00
Kconfig.socs riscv: Kconfig: Add select ARM_AMBA to SOC_STARFIVE 2023-12-13 18:45:35 +01:00
Makefile kbuild: unify vdso_install rules 2024-06-12 11:12:32 +02:00
Makefile.postlink riscv: Use --emit-relocs in order to move .rela.dyn in init 2023-04-19 07:46:33 -07:00