Re: [PATCH v4 1/4] gcc-plugins: Add the initify gcc plugin

2016-12-16 Thread PaX Team
On 16 Dec 2016 at 15:02, Kees Cook wrote: > >> static inline struct cgraph_node_hook_list > >> *cgraph_add_function_insertion_hook(cgraph_node_hook hook, void *data) > >> { > >> return symtab->add_cgraph_insertion_hook(hook, data); > > > > ...this one aren't needed by any plugins upstream so

Re: [PATCH v4 1/4] gcc-plugins: Add the initify gcc plugin

2016-12-16 Thread Kees Cook
On Fri, Dec 16, 2016 at 2:45 PM, PaX Team wrote: > On 16 Dec 2016 at 14:06, Kees Cook wrote: > >> diff --git a/scripts/gcc-plugins/gcc-common.h >> b/scripts/gcc-plugins/gcc-common.h >> index 950fd2e64bb7..369bfb471e58 100644 >> --- a/scripts/gcc-plugins/gcc-common.h >> +++ b/scripts/gcc-plugins/g

Re: [PATCH v4 1/4] gcc-plugins: Add the initify gcc plugin

2016-12-16 Thread PaX Team
On 16 Dec 2016 at 14:06, Kees Cook wrote: > diff --git a/scripts/gcc-plugins/gcc-common.h > b/scripts/gcc-plugins/gcc-common.h > index 950fd2e64bb7..369bfb471e58 100644 > --- a/scripts/gcc-plugins/gcc-common.h > +++ b/scripts/gcc-plugins/gcc-common.h > @@ -287,6 +287,26 @@ static inline struct cg

[PATCH v4 1/4] gcc-plugins: Add the initify gcc plugin

2016-12-16 Thread Kees Cook
From: Emese Revfy The kernel already has a mechanism to free up code and data memory that is only used during kernel or module initialization. This plugin will teach the compiler to find more such code and data that can be freed after initialization. The plugin runs in two passes. The first one