Re: [PATCH v14 6/9] powerpc/bpf: Write protect JIT code

2021-05-19 Thread Jordan Niethe
On Mon, May 17, 2021 at 4:40 PM Christophe Leroy wrote: > > > > Le 17/05/2021 à 05:28, 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

Re: [PATCH v14 6/9] powerpc/bpf: Write protect JIT code

2021-05-16 Thread Christophe Leroy
Le 17/05/2021 à 05:28, 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 bpf_jit

[PATCH v14 6/9] powerpc/bpf: Write protect JIT code

2021-05-16 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(). Reviewed-by: Christophe Leroy S