* Re: [kernel-hardening] [PATCH v5 1/4] gcc-plugins: Add the initify gcc plugin
[not found] ` <851a0c99-db08-c3a8-f5c6-2e567971e2eb@au1.ibm.com>
@ 2017-03-28 3:03 ` Andrew Donnellan
2017-03-28 19:00 ` Kees Cook
0 siblings, 1 reply; 2+ messages in thread
From: Andrew Donnellan @ 2017-03-28 3:03 UTC (permalink / raw)
To: Kees Cook, linux-kernel
Cc: Emese Revfy, Arnd Bergmann, Josh Triplett, pageexec,
yamada.masahiro, minipli, linux, catalin.marinas, linux,
david.brown, benh, tglx, akpm, jlayton, sam, kernel-hardening,
linuxppc-dev, Michael Ellerman
On 27/03/17 18:38, Andrew Donnellan wrote:
> On 01/02/17 07:24, Kees Cook wrote:
>> From: Emese Revfy <re.emese@gmail.com>
>>
>> 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.
>
> Currently checking whether we can wire this up for powerpc without too
> many problems...
Added "select HAVE_GCC_PLUGIN_INITIFY_INIT_EXIT if GCC_PLUGINS" to
arch/powerpc/Kconfig and have successfully compiled and booted a modular
and non-modular powernv_defconfig, it looks like we handle the .exit
sections correctly.
Could this be folded in for further testing when you get around to v6, Kees?
--
Andrew Donnellan OzLabs, ADL Canberra
andrew.donnellan@au1.ibm.com IBM Australia Limited
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [kernel-hardening] [PATCH v5 1/4] gcc-plugins: Add the initify gcc plugin
2017-03-28 3:03 ` [kernel-hardening] [PATCH v5 1/4] gcc-plugins: Add the initify gcc plugin Andrew Donnellan
@ 2017-03-28 19:00 ` Kees Cook
0 siblings, 0 replies; 2+ messages in thread
From: Kees Cook @ 2017-03-28 19:00 UTC (permalink / raw)
To: Andrew Donnellan
Cc: LKML, Emese Revfy, Arnd Bergmann, Josh Triplett, PaX Team,
Masahiro Yamada, minipli, Russell King, Catalin Marinas,
Rasmus Villemoes, David Brown, benh@kernel.crashing.org,
Thomas Gleixner, Andrew Morton, Jeff Layton, Sam Ravnborg,
kernel-hardening@lists.openwall.com, linuxppc-dev,
Michael Ellerman
On Mon, Mar 27, 2017 at 8:03 PM, Andrew Donnellan
<andrew.donnellan@au1.ibm.com> wrote:
> On 27/03/17 18:38, Andrew Donnellan wrote:
>>
>> On 01/02/17 07:24, Kees Cook wrote:
>>>
>>> From: Emese Revfy <re.emese@gmail.com>
>>>
>>> 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.
>>
>>
>> Currently checking whether we can wire this up for powerpc without too
>> many problems...
>
>
> Added "select HAVE_GCC_PLUGIN_INITIFY_INIT_EXIT if GCC_PLUGINS" to
> arch/powerpc/Kconfig and have successfully compiled and booted a modular and
> non-modular powernv_defconfig, it looks like we handle the .exit sections
> correctly.
>
> Could this be folded in for further testing when you get around to v6, Kees?
Awesome, thanks for testing! I'll get it queued for a v6...
-Kees
--
Kees Cook
Pixel Security
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-03-28 19:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1485894263-91051-1-git-send-email-keescook@chromium.org>
[not found] ` <1485894263-91051-2-git-send-email-keescook@chromium.org>
[not found] ` <851a0c99-db08-c3a8-f5c6-2e567971e2eb@au1.ibm.com>
2017-03-28 3:03 ` [kernel-hardening] [PATCH v5 1/4] gcc-plugins: Add the initify gcc plugin Andrew Donnellan
2017-03-28 19:00 ` Kees Cook
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).