Re: [PATCH] Move some more structures into "mostly_readonly"

From: Brian Gerst
Date: Tue Jun 07 2005 - 16:36:55 EST


Arjan van de Ven wrote:
On Tue, 2005-06-07 at 12:59 -0700, christoph wrote:

On Tue, 7 Jun 2005, Christoph Hellwig wrote:


On Tue, Jun 07, 2005 at 11:30:03AM -0700, christoph wrote:

Move syscall table, timer_hpet and the boot_cpu_data into the "mostly_readonly" section.

the syscall table should be completely readonly.

Why was it in .data in the first place? There must be some reason why it was writable?


probably a historic oversight.


It doesn't really matter. .rodata isn't actually mapped read-only. Doing so would break up the large pages used to map the kernel.

--
Brian Gerst
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/