rust-osdev / bootloader

An experimental pure-Rust x86 bootloader
Apache License 2.0
1.39k stars 212 forks source link

Set `NO_EXECUTE` flag for all writable memory regions #409

Closed phil-opp closed 9 months ago

phil-opp commented 10 months ago

Including the kernel stack, the ramdisk, and the physical memory mapping.

Having mappings that are both writable and executable is discouraged since it makes it very easy to exploit vulnerabilities.