aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorJisheng Zhang <[email protected]>2021-03-30 02:25:21 +0800
committerPalmer Dabbelt <[email protected]>2021-04-26 08:25:14 -0700
commitfc8504765ec5e812135b8ccafca7101069a0c6d8 (patch)
treea4b9d1f65e9bf35e0d6a2120363f108c7c07aca0 /lib/test_overflow.c
parent1d27d854425faec98f352cf88ec3e2a8844429a4 (diff)
riscv: bpf: Avoid breaking W^X
We allocate Non-executable pages, then call bpf_jit_binary_lock_ro() to enable executable permission after mapping them read-only. This is to prepare for STRICT_MODULE_RWX in following patch. Signed-off-by: Jisheng Zhang <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions