[PATCH bpf-next] bpf: Make trampolines W^X

Peter Zijlstra peterz at infradead.org
Mon Jan 6 08:23:15 UTC 2020

On Sat, Jan 04, 2020 at 09:49:10AM +0900, Andy Lutomirski wrote:

> > - Mark memory as non executable (set_memory_nx). While module_alloc for
> > x86 allocates the memory as PAGE_KERNEL and not PAGE_KERNEL_EXEC, not
> > all implementations of module_alloc do so
> How about fixing this instead?

We only care about STRICT_MODULE_RMW (iow, arm, arm64, s390, x86). Of
those only s390 seems to be 'off'.

More information about the Linux-security-module-archive mailing list