Re: [PATCH v1 1/2] Add the initify gcc plugin

2016-06-29 Thread Emese Revfy
On Tue, 28 Jun 2016 23:05:56 +0200 Rasmus Villemoes wrote: > On Tue, Jun 28 2016, Emese Revfy wrote: > > > The kernel already has a mechanism to free up code and data memory that > > is only used during kernel or module initialization. > > This

Re: [PATCH v1 1/2] Add the initify gcc plugin

2016-06-29 Thread Emese Revfy
On Tue, 28 Jun 2016 23:05:56 +0200 Rasmus Villemoes wrote: > On Tue, Jun 28 2016, Emese Revfy wrote: > > > 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

Re: [PATCH v1 1/2] Add the initify gcc plugin

2016-06-29 Thread Kees Cook
On Tue, Jun 28, 2016 at 2:05 PM, Rasmus Villemoes wrote: > On Tue, Jun 28 2016, Emese Revfy wrote: > >> The kernel already has a mechanism to free up code and data memory that >> is only used during kernel or module initialization. >> This plugin

Re: [PATCH v1 1/2] Add the initify gcc plugin

2016-06-29 Thread Kees Cook
On Tue, Jun 28, 2016 at 2:05 PM, Rasmus Villemoes wrote: > On Tue, Jun 28 2016, Emese Revfy wrote: > >> 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

Re: [PATCH v1 1/2] Add the initify gcc plugin

2016-06-28 Thread Rasmus Villemoes
On Tue, Jun 28 2016, Emese Revfy wrote: > 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

Re: [PATCH v1 1/2] Add the initify gcc plugin

2016-06-28 Thread Rasmus Villemoes
On Tue, Jun 28 2016, Emese Revfy wrote: > 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. > It has two

[PATCH v1 1/2] Add the initify gcc plugin

2016-06-28 Thread 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. It has two passes. The first one tries to find all functions that

[PATCH v1 1/2] Add the initify gcc plugin

2016-06-28 Thread 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. It has two passes. The first one tries to find all functions that