Skip to content

PageTable is not mapped as writable #443

Closed
@Wasabi375

Description

@Wasabi375

Some frames in the kernel page table are not mapped as writable. I'm not sure that is intended.

For example when the gdt is identity mapped the frames that are used in the page table are mapped as read only.
The reason is that Mapper::map_to only maps the page table frames as writable if the mapped frame is also writable.

https://docs.rs/x86_64/latest/x86_64/structures/paging/mapper/trait.Mapper.html#method.map_to

I don't think there is any reason why the kernel page table should ever be mapped as read only.
The question is if this is a bug in bootloader or if this should be addressed in the x86_64 crate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions