Subject: Re: compartmentalization of kernel memory
To: Matt Thomas <email@example.com>
From: John Gordon <firstname.lastname@example.org>
Date: 04/03/2003 23:44:16
> It depends on the architecture. PowerPC is difficult to protect due to
> the need for exception code from 0x0100-0x2fff. Most others do the right
That's a weak excuse for PPC - I fixed this for a commercial (embedded)
operating system, and in fact it is very simple to make the exception handler
region totally inaccessible outside of the initial handling code on PowerPC.
That initial code must jump out of the lower pages, store critical registers
and then get the MMU back on (it was disabled automatically by the CPU when the
exception occurred for those not familiar with PPC).
Now, ARM is a different matter - on that one the best we managed was read-only.
If anybody knows how to make ARM's zero page inaccessible, I'd sure be
interested to hear it.
Rate Corporate America at http://exec-ratings.bluedonkey.org
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more