All of lore.kernel.org
 help / color / mirror / Atom feed
* Eliminating kernel mixed page (code + data)
@ 2009-09-14 11:35 Eric Lacombe
  2009-09-14 12:34 ` Siarhei Liakh
  0 siblings, 1 reply; 2+ messages in thread
From: Eric Lacombe @ 2009-09-14 11:35 UTC (permalink / raw)
  To: Mel Gorman; +Cc: Greg KH, Ingo Molnar, linux-kernel, Eric Lacombe

Hello,

First, is there a kernel option to enforce kernel code and kernel data 
separation among pages ?

Otherwise, is it sufficient to enforce page alignment for the start address of 
all data segment, to achieve this goal ?
(on top of using CONFIG_RELOCATABLE)

Thanks in advance for your answer,

	Eric

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Eliminating kernel mixed page (code + data)
  2009-09-14 11:35 Eliminating kernel mixed page (code + data) Eric Lacombe
@ 2009-09-14 12:34 ` Siarhei Liakh
  0 siblings, 0 replies; 2+ messages in thread
From: Siarhei Liakh @ 2009-09-14 12:34 UTC (permalink / raw)
  To: Eric Lacombe; +Cc: Mel Gorman, Greg KH, Ingo Molnar, linux-kernel, Eric Lacombe

> First, is there a kernel option to enforce kernel code and kernel data
> separation among pages ?

I do not think so.

> Otherwise, is it sufficient to enforce page alignment for the start address of
> all data segment, to achieve this goal ?
> (on top of using CONFIG_RELOCATABLE)

AFAIK, this would be required but not sufficient. I am currently
working on a set of patches that:
1. eliminate mixed pages in kernel space
2. keep data as non-executable and code as read-only

As a starting point, you can search for my name in the mailing list to
see the patches and the discussion around them.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-09-14 12:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-14 11:35 Eliminating kernel mixed page (code + data) Eric Lacombe
2009-09-14 12:34 ` Siarhei Liakh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.