[PATCH v3] arm64: mm: move zero page from .bss to right before swapper_pg_dir
mark.rutland at arm.com
Tue Sep 13 13:24:10 PDT 2016
On Tue, Sep 13, 2016 at 08:18:52PM +0100, Ard Biesheuvel wrote:
> On 13 September 2016 at 18:35, Mark Rutland <mark.rutland at arm.com> wrote:
> Thanks. But actually, I think it makes sense to make the first
> swapper_pg_dir page read-only as well, given that it is only modified
> via the fixmap, and we can trivially extend the r/o bss region to end
> at 'swapper_pg_dir + PAGE_SIZE'
I thought that we lazy-allocated the vmalloc region at runtime, and initialised
pgd level entries.
>From a quick dig it looks like a vmalloc() could eventually call
pgd_populate(), which seems to set a pgd entry without using a fixmap slot.
Is there some reason that won't happen at runtime?
More information about the linux-arm-kernel