lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090630062939.4878fcbe@infradead.org>
Date:	Tue, 30 Jun 2009 06:29:39 -0700
From:	Arjan van de Ven <arjan@...radead.org>
To:	Siarhei Liakh <sliakh.lkml@...il.com>
Cc:	James Morris <jmorris@...ei.org>,
	Andrew Morton <akpm@...ux-foundation.org>,
	linux-kernel@...r.kernel.org,
	linux-security-module@...r.kernel.org, Andi Kleen <ak@....de>,
	Rusty Russell <rusty@...tcorp.com.au>,
	Thomas Gleixner <tglx@...utronix.de>,
	"H. Peter Anvin" <hpa@...or.com>, Ingo Molnar <mingo@...e.hu>
Subject: Re: [PATCH v2] RO/NX protection for loadable kernel modules

On Tue, 30 Jun 2009 09:11:33 -0400
Siarhei Liakh <sliakh.lkml@...il.com> wrote:

> > (and one can still argue that making this an option is not even
> > worth that, and just always do it unconditional)
> >
> 
> I can make NX unconditional. However, it will not reduce the number
> of #ifdefs. There are two of them in the patch right now: one
> controls the inclusion of two extra fields (init_ro_size,
> core_ro_size) in struct module, and the other one controls the
> inclusion of ALL patch code. The *_ro_size fields are used only for
> RO, and are not used to set NX. Therefore, this #ifdef will stay even
> if NX is unconditional. Since the second #ifdef controls ALL of the
> patch's code it will also stay (to control RO part) when NX becomes
> unconditional.
> 
> Given that it will not reduce the number of #ifdefs, do you still
> think that NX should be made unconditional?

I think that not only NX should be made unconditional, I also think
that the RO code should be unconditional.

-- 
Arjan van de Ven 	Intel Open Source Technology Centre
For development, discussion and tips for power savings, 
visit http://www.lesswatts.org
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ