Re: [PATCH v12 5/8] powerpc/bpf: Write protect JIT code

2021-05-06 Thread Christophe Leroy
Le 06/05/2021 à 04:34, Jordan Niethe a écrit : 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

[PATCH v12 5/8] powerpc/bpf: Write protect JIT code

2021-05-05 Thread Jordan Niethe
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