]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
riscv: define ILLEGAL_POINTER_VALUE for 64bit
authorJisheng Zhang <jszhang@kernel.org>
Fri, 5 Jul 2024 17:02:10 +0000 (01:02 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:38 +0000 (15:11 +0200)
commitf47b1d5e596a4a05c51347be7dbb9880242b3e5b
tree3212184e22d794860d587e4054bf3258626599ac
parentaab0032d416edc77953328423afb5fe21d1b4c0c
riscv: define ILLEGAL_POINTER_VALUE for 64bit

commit 5c178472af247c7b50f962495bb7462ba453b9fb 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: 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/riscv/Kconfig