summaryrefslogtreecommitdiff
path: root/rust/kernel/ptr/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorAbhishek Dubey <adubey@linux.ibm.com>2026-04-01 11:21:30 -0400
committerMadhavan Srinivasan <maddy@linux.ibm.com>2026-04-03 14:14:25 +0530
commit1e4bac7eb95a5a1aed5b39971ef77dca5b0f8a9f (patch)
tree076d21383fe4766a183d1d0d67f82fd6c53cbad9 /rust/kernel/ptr/git@git.tavy.me:linux.git
parent92258b5bf1ec10204c23a793793a65dc92d17014 (diff)
powerpc/bpf: Add support for instruction array
On loading the BPF program, the verifier might adjust/omit some instructions. The adjusted instruction offset is accounted in the map containing original instruction -> xlated mapping. This patch add ppc64 JIT support to additionally build the xlated->jitted mapping for every instruction present in instruction array. This change is needed to enable support for indirect jumps, added in a subsequent patch. Invoke bpf_prog_update_insn_ptrs() with offset pair of xlated_offset and jited_offset. The offset mapping is already available, which is being used for bpf_prog_fill_jited_linfo() and can be directly used for bpf_prog_update_insn_ptrs() as well. Additional details present at: commit b4ce5923e780 ("bpf, x86: add new map type: instructions array") Signed-off-by: Abhishek Dubey <adubey@linux.ibm.com> Acked-by: Hari Bathini <hbathini@linux.ibm.com> Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com> Link: https://patch.msgid.link/20260401152133.42544-2-adubey@linux.ibm.com
Diffstat (limited to 'rust/kernel/ptr/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions