Masamichi Takagi
bbc39480d2
Fix test programs for "execve: fix memory leak"
...
* Fix README
Change-Id: I90fe1fbb26569bbab5a34638b5f357d7000eda5d
Refs: #727
2018-12-04 10:02:42 +00:00
Masamichi Takagi
dbe5e99cf9
Fix test of "make sure to context-switch to idle thread when therad's status is PS_EXITED"
...
Change-Id: I62ea813656805b6250b0465853e8fa2918b0c86b
Refs: #1029
Refs: #1227
2018-12-04 08:17:54 +00:00
Masamichi Takagi
6b293409e5
mbind: Fix test programs
...
Refs: #1226
Change-Id: I12bf807812d93b7eca8f452e70e70e7c4e32f6a3
2018-12-04 08:17:13 +00:00
Shiratori, Takehiro
b94247c478
Test "signal: When the process receives a termination signal, it first terminates mcexec." on arm64
...
Change-Id: I1be32b991a45f0892146d93a9e6d6be9199faf59
Refs: #870
2018-12-04 05:07:32 +00:00
Shiratori, Takehiro
556a64ac5e
Test "signal: When the process receives a termination signal, it first terminates mcexec." on arm64
...
Change-Id: I5c8ab90ffd5c5da30162d606f4d86dca9d387b5a
Refs: #863
2018-12-04 05:06:07 +00:00
Shiratori, Takehiro
3f11c1aee5
Test "Wait for LWK to run at shutdown." on arm64
...
Change-Id: I96785dda7a1a7eb36ceeb31401d71b4e40efb185
Refs: #898
Refs: #928
2018-12-03 20:06:37 +09:00
Masamichi Takagi
2b1b82b242
qlmpi: Refactor test programs
...
Change-Id: I3dd74eda1b77aea529f9cc044177b6c29185b6df
2018-11-29 10:33:11 +00:00
Masamichi Takagi
502463ed9e
test: Fix user_space, testing use of copy_from_user / copy_to_user
...
Change-Id: I2caef1ba6597f693dc4f773ef8fedbd837c45ce6
2018-11-29 19:32:04 +09:00
Masamichi Takagi
82a57d5f55
test: Add MCK_DIR to mck_test_config.sample.in
...
Change-Id: I9ed1b0433fc6b8eeb1cb024be2d33263e3283ab7
2018-11-29 12:50:29 +09:00
Masamichi Takagi
56abe988f3
test: Fix user_space, testing use of copy_from_user / copy_to_user
...
Change-Id: I2caef1ba6597f693dc4f773ef8fedbd837c45ce6
2018-11-29 11:32:42 +09:00
Masamichi Takagi
68c581f721
test: Fix 898 and 928
...
1. Catch up with the interface change in
ihk_os_destroy_pseudofs() and ihk_os_create_pseudofs()
2. Expect ihk_os_shutdown() to return zero when the OS had been shut
down
Refs: #898
Refs: #928
Change-Id: Ic430550ebfd5cd21164eefaed155fe769adf8395
2018-11-28 02:19:37 +00:00
Shiratori, Takehiro
b2a58ce3e3
Test "Confirm build ID of mcexec, ihk, mckernel" on arm64
...
Change-Id: Ia5fa6d6d062e8d845c7fedca1b6cc50fbeab1860
2018-11-27 08:12:28 +00:00
Shiratori, Takehiro
cfcf0137eb
Test "Exclude areas not assigned to Mckernel from direct map of all phys." on arm64
...
Change-Id: Ida0d1f13f4a14c2ee219325aaa4b2cac1476c991
2018-11-27 05:29:15 +00:00
Shiratori, Takehiro
00395d68d4
Test "mcexec additional options (h, m, n, O, stack-premap)" on arm64
...
Change-Id: I85d5deb0433cc1208e4b6837dcc6d6dc2a7b7b52
2018-11-27 05:12:43 +00:00
Shiratori, Takehiro
ddde519263
Test "rus_vm_fault: If page fault occurs in a thread that has not processed system call offloading, incorrectly return to normal." on arm64
...
Change-Id: I3dc98d8994228ad27cfdf9ca96a0a76e544bc947
Refs: #923
2018-11-22 05:27:56 +00:00
Shiratori, Takehiro
f240671fc8
Test "ptrace: support for attaching child_process to parent" on arm64
...
Change-Id: I752542b6bfbf023d22e91f909518660afbff813c
Refs: #885
2018-11-22 04:54:29 +00:00
Shiratori, Takehiro
cf113d392a
Test "/proc/PID/maps support add" on arm64.
...
Change-Id: I0585ae6257b5c0269760dd7f23ba75b83dd7ac2c
2018-11-22 04:53:04 +00:00
Shiratori, Takehiro
9e57db5427
Test "sigaction: support for SA_RESETHAND on x86_64" on arm64
...
Change-Id: I6154134d53d1ee0344e4bc344f302ffaf810c618
Refs: #1031
2018-11-22 04:51:36 +00:00
Shiratori, Takehiro
739472bd86
Test "xpmem: support for fork()" on arm64
...
Change-Id: I12c628312157f35e239d3c5e67fa38adf156406b
Refs #925
2018-11-22 04:50:58 +00:00
Ken Sato
6f9fef2b13
procfs: Make /proc/<PID>/mem unwritable
...
refs: #1177
Change-Id: Ibb319221155547febf9126e05a9e322bd9f140cc
2018-10-26 08:58:31 +00:00
Dominique Martinet
39f9d7fdff
Handle hugetlbfs file mapping
...
Hugetlbfs file mappings are handled differently than regular files:
- pager_req_create will tell us the file is in a hugetlbfs
- allocate memory upfront, we need to fail if not enough memory
- the memory needs to be given again if another process maps the same
file
This implementation still has some hacks, in particular, the memory
needs to be freed when all mappings are done and the file has been
deleted/closed by all processes.
We cannot know when the file is closed/unlinked easily, so clean up
memory when all processes have exited.
To test, install libhugetlbfs and link a program with the additional
LDFLAGS += -B /usr/share/libhugetlbfs -Wl,--hugetlbfs-align
Then run with HUGETLB_ELFMAP=RW set, you can check this works with
HUGETLB_DEBUG=1 HUGETLB_VERBOSE=2
Change-Id: I327920ff06efd82e91b319b27319f41912169af1
2018-10-11 08:54:13 +00:00
Tomoki Shirasawa
ed1edb152b
ptrace supports threads
...
Fujitsu: POSTK_DEBUG_TEMP_FIX_53, POSTK_DEBUG_ARCH_DEP_44
Refs: #771 , #1179 , #1143
Change-Id: Ie17ece6864f0eeb0c0e550f4e369abb77980a0d0
2018-10-01 03:57:16 +00:00
Masamichi Takagi
28c434a230
test: Fix test for 898 and 928
...
Change-Id: If939dda7ccdcf568abfa42ccab7ff6be2b983cc2
2018-09-28 02:55:55 +00:00
Ken Sato
e803698618
test: Refactor test programs
...
Change-Id: I77fec2f5f30f6fda3bda6f85ce00f1c2e7f7a9b3
2018-09-25 12:45:20 +09:00
Ken Sato
c862b29d65
sched_setaffinity: Check migration after decrementing in_interrupt
...
refs: #1180
Change-Id: I2b3fb03066812ecc802406297084977e757092fe
2018-09-25 01:52:54 +00:00
Ken Sato
dd58d366c3
procfs: Fix pread/pwrite to procfs fail when specified size is bigger than 4MB
...
Fujitsu: POSTK_DEBUG_TEMP_FIX_43
Refs: #1018
Change-Id: I736ac69885695ef8eeababc3fcfe69a6258b4e16
2018-09-20 02:06:17 +00:00
Ken Sato
ab284b0531
test: Add test programs for #1158
...
refs: #1158
Change-Id: I853dd84f5433a01da510813e9fb1276e5477f73f
2018-09-20 02:05:55 +00:00
Ken Sato
a269d96978
coredump: Exclude special areas
...
Fujitsu: POSTK_DEBUG_TEMP_FIX_38
Refs: #1005
Change-Id: I8934d2aecf06a09469afe131347e42b48b6f67f6
2018-09-20 01:48:17 +00:00
Masamichi Takagi
3df82d61ce
test: Fix tests of "user_space"
...
user_space/swapout/swapout_copy_to_01.sh:
* Use ~/.mck_test_config
* Fix checking if McKernel version is written in swap-file
user_space/futex/futex_test.sh:
* Use ~/.mck_test_config
user_space/perf_event_open/perf_event_open_test.sh
* Use ~/.mck_test_config
Change-Id: Id93b207ed0e3e9ebf307073db81b40335bc5b140
2018-09-19 08:54:08 +00:00
Masamichi Takagi
159092c58e
rusage: Refactor test programs
...
Change-Id: I846a6416acf903f7fa19db98d4d937c51c10b4af
2018-09-18 18:42:19 +09:00
Dominique Martinet
60011718d2
add common test framework
...
Add new file with common functions for tests to use.
- loads config file
- checks for mcexec etc
- checks for LTP and OSTEST if required
- handle mcstop / mcreboot if required, and provide function for it
At the same time, make a few changes to mck_test_config:
- move to ~/.mck_test_config
- add boot params to the config, tests the require specific params can
overwite it
- make the config "set-if-variable-is-empty", so someone can overwrite
any param by setting the environment value e.g. LTP=.... ./test.sh
will use the value given
Change-Id: Ib04112043e3eb89615dc7afaa8842a98571fab93
2018-09-14 03:30:06 +00:00
Tomoki Shirasawa
7e342751a2
do_syscall: Delegate system calls to the mcexec with the same pid
...
This includes the following fix:
send_syscall, do_syscall: remove argument pid
Fujitsu: POSTK_TEMP_FIX_26
Refs: #1165
Change-Id: I702362c07a28f507a5e43dd751949aefa24bc8c0
2018-09-13 16:59:47 +09:00
Ken Sato
c23bc8d401
syscall_time: Handle by McKernel
...
refs: #1036
Change-Id: Ifa81b613c7ee8d95ae7cdf3dd54643f60526fa73
2018-09-13 07:44:02 +00:00
Tomoki Shirasawa
5e760db417
syscall: the signal received during system call processing is not processed.
...
Refs: #1176
Fujitsu: POSTK_DEBUG_TEMP_FIX_56
Change-Id: I410160ccbcef3ef49a0e37611a608bc87c97e63b
2018-09-13 07:04:11 +00:00
Tomoki Shirasawa
e4da71010c
check_signal: system call restart is done only once
...
Fujitsu: POSTK_TEMP_FIX_66
Refs: #1009
Change-Id: Ic0f04ac6b7f6c6bb01b55fb389bf9befd56b1dd9
2018-09-13 07:00:49 +00:00
Masamichi Takagi
4438f994dc
uti: Add/Modify test programs
...
Change-Id: I27a39d6b11af5243f93d07c31c2ef80f6727dd53
2018-09-04 19:52:11 +09:00
Katsuya Horigome
38c3b2358a
Exclude areas not assigned to Mckernel from direct map of all phys. memory
...
It's enabled by adding -s to mcreboot.sh.
Cherry-pick of the following commit:
commit b5c13ce51a5a4926c2cf11c817cd0d369ac4402d
Author: Katsuya Horigome <katsuya.horigome.rj@ps.hitachi-solutions.com >
Date: Mon Nov 20 09:40:41 2017 +0900
Include measures to prevent memory destruction on Linux side (This is rebase commit for merging to development+hfi)
2018-09-04 19:51:10 +09:00
Tomoki Shirasawa
5fcbfa2eb5
page_fault_process_memory_range: Remove ihk_mc_map_virtual for CoW of device map
...
Device map with MAP_PRIVATE is copied when forking using copy_user_pte.
So the map isn't copied by those statements.
Futjitsu: POSTK_TEMP_FIX_14
Refs: #1039
Change-Id: I1a697ed2e003055d66a8eebd3e8d5e9e49d094ad
2018-08-30 02:21:42 +00:00
Ken Sato
9a20cfaefb
mem: Check if phys-mem is within the range of McKernel memory
...
Fujitsu: POSTK_DEBUG_TEMP_FIX_52
Refs: #1164
Change-Id: Idb9a6eac1d2e1df4c663c3171925c774421177fd
2018-08-30 02:18:37 +00:00
Ken Sato
f57b0c5d4f
wait: Delay wake-up parent within switch context
...
Fujitsu: POSTK_DEBUG_TEMP_FIX_41
Refs: #1006
Change-Id: Ia98e896505ad0f6549766604ade84550eee8bd2d
2018-08-30 02:13:51 +00:00
Tomoki Shirasawa
895a8c4099
procfs: Support multiple reads of e.g. /proc/*/maps
...
Refs: #1021
Change-Id: If36e1a0f3f41f0215868daf578e96775d96a59a3
2018-08-30 01:48:06 +00:00
Ken Sato
29a658716b
configure: Create config file for test programs
...
Change-Id: I3ec90fed348ff535b24c8116416c6b89636c532c
2018-08-02 02:29:19 +00:00
Ken Sato
a7c9988aeb
schedule: Don't reschedule immediately when wake up on migrate
...
Refs: #1027
Change-Id: Ibe563c45c42611170273f1e437566c20fbef68d3
2018-08-02 02:28:25 +00:00
Ken Sato
d4fa953975
test: Add testcase for #1001
...
Refs: #1001
Change-Id: I3edd750108bd3f887af1f0afe3f2651f1243062b
2018-08-02 02:24:41 +00:00
Tomoki Shirasawa
1387c9687b
Add test cases for #765
...
Refs: #765
Change-Id: I50d70a15d5d5ce31227cacbed4eccd49b218713b
2018-08-02 01:42:46 +00:00
Tomoki Shirasawa
ec99adde4a
Add test cases for #998 and #999
...
Refs: #998 #999
Change-Id: I86f8857594b2446c833c1e59d53b484ef022a9ee
2018-08-02 01:42:11 +00:00
Ken Sato
c716e87c53
execve: Clear sigaltstack and fp_regs
...
Fujitsu: POSTK_DEBUG_TEMP_FIX_19
Refs: #976
Change-Id: I16895eab13eecbb47b7e6da961fae82ee5e570ee
2018-08-01 15:11:05 +09:00
Tomoki Shirasawa
eae5c40f60
init_process_stack: Support "ulimit -s unlimited"
...
Refs: #1109
Change-Id: I395f012fd747cb6a2f93be71e34c7f6f3666ed67
2018-07-26 02:40:27 +00:00
Tomoki Shirasawa
0c7384f980
Add test cases for #840
...
Refs: #840
Change-Id: Ie29867d29ba6a25cfac77b95b8effc2f057aae14
2018-07-26 02:39:24 +00:00
Tomoki Shirasawa
67ebcca74d
Fix to VMAP virtual address leak
...
Fujitsu: POSTK_DEBUG_TEMP_FIX_51
Refs: #1024
Change-Id: I1692ee4f004cb4d1f725baf47a8ed31fce1bf42a
2018-07-26 02:17:55 +00:00