linux/arch
Puranjay Mohan 770546ae9f bpf: implement insn_is_cast_user() helper for JITs
Implement a helper function to check if an instruction is
addr_space_cast from as(0) to as(1). Use this helper in the x86 JIT.

Other JITs can use this helper when they add support for this instruction.

Signed-off-by: Puranjay Mohan <puranjay12@gmail.com>
Link: https://lore.kernel.org/r/20240324183226.29674-1-puranjay12@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2024-03-25 09:10:51 -07:00
..
alpha asm-generic updates for 6.9 2024-03-12 10:56:28 -07:00
arc asm-generic updates for 6.9 2024-03-12 10:56:28 -07:00
arm bpf: Take return from set_memory_rox() into account with bpf_jit_binary_lock_ro() 2024-03-14 19:28:52 -07:00
arm64 bpf: Check return from set_memory_rox() 2024-03-18 14:18:47 -07:00
csky asm-generic updates for 6.9 2024-03-12 10:56:28 -07:00
hexagon asm-generic updates for 6.9 2024-03-12 10:56:28 -07:00
loongarch bpf: Take return from set_memory_rox() into account with bpf_jit_binary_lock_ro() 2024-03-14 19:28:52 -07:00
m68k asm-generic updates for 6.9 2024-03-12 10:56:28 -07:00
microblaze arch: define CONFIG_PAGE_SIZE_*KB on all architectures 2024-03-06 19:29:09 +01:00
mips bpf: Take return from set_memory_rox() into account with bpf_jit_binary_lock_ro() 2024-03-14 19:28:52 -07:00
nios2 arch: define CONFIG_PAGE_SIZE_*KB on all architectures 2024-03-06 19:29:09 +01:00
openrisc asm-generic updates for 6.9 2024-03-12 10:56:28 -07:00
parisc bpf: Take return from set_memory_rox() into account with bpf_jit_binary_lock_ro() 2024-03-14 19:28:52 -07:00
powerpc Networking changes for 6.9. 2024-03-12 17:44:08 -07:00
riscv Networking changes for 6.9. 2024-03-12 17:44:08 -07:00
s390 bpf: Take return from set_memory_rox() into account with bpf_jit_binary_lock_ro() 2024-03-14 19:28:52 -07:00
sh hardening updates for v6.9-rc1 2024-03-12 14:49:30 -07:00
sparc bpf: Take return from set_memory_rox() into account with bpf_jit_binary_lock_ro() 2024-03-14 19:28:52 -07:00
um hardening updates for v6.9-rc1 2024-03-12 14:49:30 -07:00
x86 bpf: implement insn_is_cast_user() helper for JITs 2024-03-25 09:10:51 -07:00
xtensa asm-generic updates for 6.9 2024-03-12 10:56:28 -07:00
.gitignore
Kconfig arch: consolidate existing CONFIG_PAGE_SIZE_*KB definitions 2024-03-06 19:28:26 +01:00