diff options
author | Song Liu <song@kernel.org> | 2022-09-26 11:47:38 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2022-09-26 20:40:43 -0700 |
commit | 19c02415da2345d0dda2b5c4495bc17cc14b18b5 (patch) | |
tree | 64cebe945349bf772b0d4cdb212ee1fc55d38215 /crypto/cfb.c | |
parent | 30b8fdbbe31b2422f46fcd6d3960e563affe76d7 (diff) |
bpf: use bpf_prog_pack for bpf_dispatcher
Allocate bpf_dispatcher with bpf_prog_pack_alloc so that bpf_dispatcher
can share pages with bpf programs.
arch_prepare_bpf_dispatcher() is updated to provide a RW buffer as working
area for arch code to write to.
This also fixes CPA W^X warnning like:
CPA refuse W^X violation: 8000000000000163 -> 0000000000000163 range: ...
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20220926184739.3512547-2-song@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'crypto/cfb.c')
0 files changed, 0 insertions, 0 deletions