fork of 9front i guess
Go to file
cinap_lenrek 7bb1a9a185 pc64: map kernel text readonly and everything else no-execute
the idea is to catch bugs and make kernel exploitation
harder by mapping the kernel text section readonly
and everything else no-execute.

l.s maps the KZERO address space using 2MB pages so
to get the 4K granularity for the text section we use
the new ptesplit() function to split that mapping up.

we need to set EFER no-execute enable bit early
in apbootstrap so secondary application processors
will understand the NX bit in our shared kernel page
tables. also APBOOTSTRAP needs to be kept executable.

rebootjump() needs to mark REBOOTADDR page executable.
2019-08-29 07:35:22 +02:00
386 ape: floating point improvements (thanks spew) 2018-05-24 13:40:44 +01:00
68000 add signed fixed size integer typedefs 2018-05-12 19:19:52 +02:00
68020 ape: floating point improvements (thanks spew) 2018-05-24 13:40:44 +01:00
acme win: fix typo 2018-08-02 14:37:07 -04:00
adm/timezone timezones: add India (thanks joe9) 2019-05-11 01:23:59 +02:00
amd64 ape: floating point improvements (thanks spew) 2018-05-24 13:40:44 +01:00
arm ape: floating point improvements (thanks spew) 2018-05-24 13:40:44 +01:00
arm64 arm64: add mkfile 2019-05-03 21:12:31 +02:00
lib lib: update pci database 2019-05-05 14:36:11 -07:00
mips ape: floating point improvements (thanks spew) 2018-05-24 13:40:44 +01:00
power ape: floating point improvements (thanks spew) 2018-05-24 13:40:44 +01:00
power64 add signed fixed size integer typedefs 2018-05-12 19:19:52 +02:00
rc rc-httpd: serve markdown with text/plain content-type 2019-06-20 16:26:03 +09:30
sparc ape: floating point improvements (thanks spew) 2018-05-24 13:40:44 +01:00
sparc64 ape: floating point improvements (thanks spew) 2018-05-24 13:40:44 +01:00
spim add signed fixed size integer typedefs 2018-05-12 19:19:52 +02:00
sys pc64: map kernel text readonly and everything else no-execute 2019-08-29 07:35:22 +02:00
.hgignore remove accidentally pushed change to .hgignore 2017-04-19 10:16:00 +00:00