Reply-To: kernel-hardening@lists.openwall.com From: "PaX Team" Date: Tue, 23 Feb 2016 23:00:23 +0100 MIME-Version: 1.0 Message-ID: <56CCD677.1316.1C5E89E6@pageexec.freemail.hu> In-reply-to: References: <20160216214904.GA23723@www.outflux.net>, <56CB97EE.29381.17824260@pageexec.freemail.hu>, Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Subject: [kernel-hardening] Re: [PATCH] lkdtm: add test for executing .rodata To: Kees Cook Cc: Ard Biesheuvel , Laura Abbott , Greg Kroah-Hartman , Mark Rutland , Jeremy Linton , Arnd Bergmann , "kernel-hardening@lists.openwall.com" , LKML List-ID: On 23 Feb 2016 at 12:53, Kees Cook wrote: > I prefer using all the "regular" mechanisms so that I really know I'm > exercising the actual case I want to be testing. (i.e. I don't want to > bypass the linker.) > > If only there were some way to filter gcc output, like with plugins. ;) plugins can set/override section flags, initify and constify both do in fact but i guess that's little help for your generic case that has to work without them as well.