diff options
| author | Jordan Niethe <[email protected]> | 2021-06-09 11:34:28 +1000 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2021-06-21 21:13:21 +1000 |
| commit | 62e3d4210ac9c35783d0e8fc306df4239c540a79 (patch) | |
| tree | 4cf3f9961c53c4a2b09f96c7840e3542f1b1a0cd /tools/perf/scripts/python | |
| parent | bc33cfdb0bb84d9e4b125a617a437c29ddcac4d9 (diff) | |
powerpc/bpf: Write protect JIT code
Add the necessary call to bpf_jit_binary_lock_ro() to remove write and
add exec permissions to the JIT image after it has finished being
written.
Without CONFIG_STRICT_MODULE_RWX the image will be writable and
executable until the call to bpf_jit_binary_lock_ro().
Signed-off-by: Jordan Niethe <[email protected]>
Reviewed-by: Christophe Leroy <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions