39a86fad18
support execute disabled stack
2014-04-11 14:59:47 +09:00
b31a1b6db2
add PTATTR_NO_EXECUTE
2014-04-11 14:59:47 +09:00
cf442e6a14
fork(): preliminary version (no wait()/waitpid() support yet)
2014-04-02 14:07:38 +09:00
76089e2682
add AT_PAGESZ to auxvec
2014-02-26 10:31:44 +09:00
f0a52d4519
implement mmap(MAP_POPULATE)
...
populate_process_memory() function is not efficient,
because whether every small page is present is checked.
2014-01-27 18:50:38 +09:00
e86ffb0b57
do write back only MAP_SHARED pages
...
Fix a problem that cause write reference to a MAP_PRIVATE mapping to
change the underlying file.
2014-01-14 18:48:43 +09:00
0465cc16b9
signal (part 2) sigpending
2014-01-07 19:52:06 +09:00
a8c249ddaf
signal (part 1)
2014-01-07 11:57:57 +09:00
03521e9c2c
add copyrights
2013-11-14 16:49:40 +09:00
bbbc6e1570
add shared mapped file (in progress)
...
implemented:
- Pages can be shared between maps.
- A change made to a map is written to the file, at munmap().
not yet implemented:
- VM operation during page IO execution.
Because page IO is executed with VM's lock.
- Page IO, which does not change a file size with any case.
When munmap() races with truncate(), the file size may be changed
illegally.
2013-11-11 18:18:33 +09:00
bdc02bb687
refuse the write to a read-only memory
...
It was able to change a read-only memory using a system call that
forwarded to host.
To fix this, when read-only mmap(), it places read-only vm_area in the
mcexec's space.
2013-11-06 16:06:58 +09:00
6e736f6248
change the stack size according to stack size limit
2013-10-30 12:33:03 +09:00
db45e11921
apply demand paging to stack area
2013-10-30 12:33:03 +09:00
27172ad413
support private mapped file
2013-10-15 12:30:41 +09:00
4fb6620f3a
sys_getrlimit: modified to return mcexec's RLIMIT_STACK
2013-10-11 22:36:16 +09:00
a171da1015
add a AT_ENTRY entry to the auxiliary vector
2013-10-11 22:23:22 +09:00
1d69225532
mcexec forward signal to MIC process.
2013-08-19 12:17:23 +09:00
480f6d4c2f
rewrite page_fault_handler()
2013-08-08 12:43:00 +09:00
78d9d3fcd2
Revert "trial implementation of private file mapping"
...
This reverts commit abe57218c4 .
2013-07-26 16:44:39 +09:00
abe57218c4
trial implementation of private file mapping
...
for review only. will soon be reverted.
2013-07-26 14:40:12 +09:00
deb9cd4e75
implement sys_munmap()
2013-07-18 09:25:58 +09:00
334662b7fe
implement sys_mprotect()
2013-07-18 09:25:58 +09:00
3749696d3e
simple signal handler and kill(2) support.
2013-07-18 08:53:28 +09:00
2aa5194958
rewrite sys_mmap() as sys_new_mmap()
2013-07-10 13:11:19 +09:00
43f4bb3e78
free_process_memory(): support demand paging
2013-07-10 13:11:18 +09:00
b59be07e9a
implementing demand paging to make it possible to run Intel OpenMP programs
2013-07-04 15:41:12 +09:00
be71505e87
fix remove_process_memory_range(): remove INIT_LIST_HEAD for on-list item
2013-06-24 13:29:33 +09:00
5369864551
fix warnings
2013-06-19 16:47:02 +09:00
ff5ee67d06
remove PTATTR_USER from the decision of ihk_mc_ap_flag in __set_pt_page
2013-06-19 12:07:40 +09:00
5fc0d90b7d
add ihk_mc_pt_clear_range()
2013-06-12 11:49:19 +09:00
8436f5a5ac
add remove_process_memory_range()
2013-06-12 11:49:19 +09:00
40ad744947
remove unused function add_process_large_range from source file
2013-06-02 19:38:29 +09:00
4a27a65cb0
resolved merge conflicts with futex code
2013-06-02 16:42:08 +09:00
5d9efa7241
add rollback when ihk_mc_pt_set_page returns error
2013-06-02 13:54:38 +09:00
248ba5acb8
add missing initialization in clone_process()
2013-05-31 19:08:08 +09:00
da3965be11
Merge branch 'master' of postpeta.pccluster.org:mckernel
...
Conflicts:
kernel/host.c
kernel/process.c
lib/include/ihk/mm.h
2013-05-28 12:49:13 +09:00
bb4caccf98
add memory allocation check
2013-05-28 12:06:41 +09:00
0b97235b9f
fix release leakage of extra pages
2013-05-28 11:39:42 +09:00
fa1be382c7
release the resources of the process at exit(2)/exit_group(2).
2013-05-28 11:31:23 +09:00
83db56a040
futex adaptation from Linux 2.6.34 (Intel MPSS Linux)
2013-05-10 14:23:14 +09:00
90d3d86c2c
use no IRQ disable spinlocks for page_table lock
2013-05-10 13:16:32 +09:00
e09160cce7
add generic system call forwarding
2013-04-17 20:32:33 +09:00
4693789608
change function names
2012-12-17 16:15:05 +09:00
0a808057eb
modify include lines and Makefiles
2012-12-17 16:10:56 +09:00
092069fd80
spin-wait based kernel timer (for futex() timeout) implementation
2012-11-28 15:22:53 +09:00
b79d20d7bf
modification for no_cache: extend_process_region(...,flag)
2012-11-27 16:38:05 +09:00
31098d3d75
add nocache for mmap. usage: void *va = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANONYMOUS | 0x40, -1, 0);
2012-11-27 14:56:40 +09:00
5e00aa5e19
increase stack size to 32MB
2012-11-27 13:28:55 +09:00
320b8e9851
large page aligned ANONYMOUS mapping length fix
2012-11-26 17:02:52 +09:00
a21fe11b00
use large page PTEs for allocations bigger than large page size, enforce alignment (USE_LARGE_PAGES)
2012-11-26 17:00:53 +09:00