summaryrefslogtreecommitdiff
path: root/kernel/exec.c
AgeCommit message (Collapse)AuthorFilesLines
2022-08-23Use simple linker script to force data segment to be page alignedFrans Kaashoek1-8/+6
2022-08-15Compile user binary to map text without W and data without XFrans Kaashoek1-7/+20
Use the flags in elf header to set vm permissions Modify pgbug() so that usertests text segment is without W Add test to check app cannot write text segment
2022-08-12Experiment with being more precise setting permissions for user pages.Frans Kaashoek1-2/+2
Growing adds R|W pages (without X). Exec() marks the stack only R|W. Probably could setup permissions for text and data better if we call ld with --no-omagic instead of -N.
2022-08-10comment nitsRobert Morris1-0/+1
2021-08-31exec() only accepts MAXARG argumentsl0stman1-1/+1
The terminating NULL string is already included (see sys_exec()).
2021-08-10check for alignment just onceRobert Morris1-4/+1
2020-08-21usertest for exec() out of memory recoveryRobert Morris1-1/+3
and fix a few exec() bugs
2020-08-17fix a bug in the out-of-memory handling code in execRobert Morris1-3/+4
2020-08-10rename p->tf to p->trapframe, for consistency with p->contextRobert Morris1-3/+3
2019-10-03updated alarmtestRobert Morris1-0/+1
2019-07-24rationalize some vm function namesRobert Morris1-1/+1
2019-07-22Clear U bit for second stack page so that it functions as a guard pageFrans Kaashoek1-0/+1
2019-07-02Checkpoint switching to per-process locks, in attempt clarify xv6'sFrans Kaashoek1-1/+4
locking plan, which is a difficult to understand because ptable lock protects many invariants. This implementation has a bug: once in a while xv6 unlocks a proc lock that is locked by another core.
2019-06-11separate source into kernel/ user/ mkfs/Robert Morris1-0/+149