toaruos/kernel
K. Lange 00075494e6 kernel: aarch64: initial pass at clearing upper page structures on unmap
This still has thread issues, but a lot of other things need to be
redesigned to correct them.

Particularly, we have a lot of callers that use `mmu_get_page` without
acquiring any locks on the page directory, so in a multithreaded process
one core may be trying to acquire pages while another is unmapping. In
the normal sbrk setup, this shouldn't happen, especially with the locks
in userspace around malloc, and it shouldn't happen with shm as we avoid
dealing with shm pages in the unmap right now, but from the raw API we
provide it's possible for a crafted program to run into it.

The whole memory management API really needs a redesign, much of what we
expose comes from toaru32, and still leaks details about page size into
other code that shouldn't care.
2022-03-16 08:19:36 +09:00
..
arch kernel: aarch64: initial pass at clearing upper page structures on unmap 2022-03-16 08:19:36 +09:00
audio kernel: at least add full lead comments to everything 2021-11-26 11:31:10 +09:00
misc kernel: More lock fixes around pipes... 2022-03-04 22:01:13 +09:00
net kernel: at least add full lead comments to everything 2021-11-26 11:31:10 +09:00
sys kernel: improve comments in sys/ptrace.c 2022-03-13 16:07:53 +09:00
vfs procfs: expose heap break point in /proc/{PID}/status 2022-03-16 08:17:50 +09:00
video kernel: relocate some user virtual addresses 2022-03-06 15:58:08 +09:00
binfmt.c kernel: at least add full lead comments to everything 2021-11-26 11:31:10 +09:00
generic.c kernel: cleanup kernel/generic.c 2021-11-26 10:29:28 +09:00