riscv: define ILLEGAL_POINTER_VALUE for 64bit
authorJisheng Zhang <jszhang@kernel.org>
Fri, 5 Jul 2024 17:02:10 +0000 (01:02 +0800)
committerPalmer Dabbelt <palmer@rivosinc.com>
Mon, 16 Sep 2024 03:15:40 +0000 (20:15 -0700)
commit5c178472af247c7b50f962495bb7462ba453b9fb
treecd6616a4bd6d0912fdcbf799d50e6cd759d56230
parentd6a1928134a1c626ff369129d7a80951b2949a48
riscv: define ILLEGAL_POINTER_VALUE for 64bit

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: fbe934d69eb7 ("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>
arch/riscv/Kconfig