Re: [PATCH] powerpc/mm/book3s64: Implement STRICT_MODULE_RWX

2019-05-15 Thread Russell Currey
On Tue, 2019-05-14 at 23:41 -0700, Christoph Hellwig wrote: > > + * This program is free software; you can redistribute it and/or > > modify it > > + * under the terms of the GNU General Public License as published > > by the > > + * Free Software Foundation; either version 2 of the License, or > >

Re: [PATCH] powerpc/mm/book3s64: Implement STRICT_MODULE_RWX

2019-05-14 Thread Christoph Hellwig
> + * This program is free software; you can redistribute it and/or modify it > + * under the terms of the GNU General Public License as published by the > + * Free Software Foundation; either version 2 of the License, or (at your > + * option) any later version. This license boilerplate should no

Re: [PATCH] powerpc/mm/book3s64: Implement STRICT_MODULE_RWX

2019-05-14 Thread Christophe Leroy
Le 15/05/2019 à 03:30, Russell Currey a écrit : Strict module RWX is just like strict kernel RWX, but for modules - so loadable modules aren't marked both writable and executable at the same time. This is handled by the generic code in kernel/module.c, and simply requires the architecture to

[PATCH] powerpc/mm/book3s64: Implement STRICT_MODULE_RWX

2019-05-14 Thread Russell Currey
Strict module RWX is just like strict kernel RWX, but for modules - so loadable modules aren't marked both writable and executable at the same time. This is handled by the generic code in kernel/module.c, and simply requires the architecture to implement the set_memory() set of functions, declared