Imbus
362d5adeb2
Type names (uint32 -> u32, e.t.c.)
2024-05-24 11:26:40 +02:00
Frans Kaashoek
4cd4d194b8
Use simple linker script to force data segment to be page aligned
2022-08-23 10:54:40 -04:00
Frans Kaashoek
cef1b57d4a
Compile user binary to map text without W and data without X
...
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-15 19:02:19 -04:00
Frans Kaashoek
899cc02660
Experiment with being more precise setting permissions for user pages.
...
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-12 13:22:10 -04:00
Robert Morris
f4b3edf5ab
comment nits
2022-08-10 06:00:40 -04:00
l0stman
19ff379661
exec() only accepts MAXARG arguments
...
The terminating NULL string is already included (see sys_exec()).
2021-08-31 14:26:43 -04:00
Robert Morris
6de0381d61
check for alignment just once
2021-08-10 07:12:41 -04:00
Robert Morris
5860dcd07d
usertest for exec() out of memory recovery
...
and fix a few exec() bugs
2020-08-21 11:00:45 -04:00
Robert Morris
f2ec6777bd
fix a bug in the out-of-memory handling code in exec
2020-08-17 08:18:23 -04:00
Robert Morris
5494c91705
rename p->tf to p->trapframe, for consistency with p->context
2020-08-10 11:19:10 -04:00
Robert Morris
56583b1402
updated alarmtest
2019-10-03 15:02:19 -04:00
Robert Morris
9a817bd134
rationalize some vm function names
2019-07-24 15:28:37 -04:00
Frans Kaashoek
b2e9c8eea5
Clear U bit for second stack page so that it functions as a guard page
2019-07-22 15:38:08 -04:00
Frans Kaashoek
67702cf706
Checkpoint switching to per-process locks, in attempt clarify xv6's
...
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-07-02 09:14:47 -04:00
Robert Morris
5753553213
separate source into kernel/ user/ mkfs/
2019-06-11 09:57:14 -04:00