powerpc/bpf: implement bpf_arch_text_invalidate for bpf_prog_pack
authorHari Bathini <hbathini@linux.ibm.com>
Fri, 20 Oct 2023 14:13:56 +0000 (19:43 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 23 Oct 2023 09:33:19 +0000 (20:33 +1100)
commit033ffaf0af1f974ecf401db3f70aae6fe1a90fc5
tree38d47ece63167b26626246fb3531ab1ccc4247fe
parent6efc1675acb88eef45ef0156b93f95d66a8ee759
powerpc/bpf: implement bpf_arch_text_invalidate for bpf_prog_pack

Implement bpf_arch_text_invalidate and use it to fill unused part of
the bpf_prog_pack with trap instructions when a BPF program is freed.

Signed-off-by: Hari Bathini <hbathini@linux.ibm.com>
Acked-by: Song Liu <song@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231020141358.643575-4-hbathini@linux.ibm.com
arch/powerpc/net/bpf_jit_comp.c