diff options
author | Song Liu <[email protected]> | 2022-09-26 11:47:38 -0700 |
---|---|---|
committer | Alexei Starovoitov <[email protected]> | 2022-09-26 20:40:43 -0700 |
commit | 19c02415da2345d0dda2b5c4495bc17cc14b18b5 (patch) | |
tree | 64cebe945349bf772b0d4cdb212ee1fc55d38215 /fs/remap_range.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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'fs/remap_range.c')
0 files changed, 0 insertions, 0 deletions