Tomoki Shirasawa
3b6056fb1a
add strace test cases and test result
2017-11-25 17:37:10 +09:00
Tomoki Shirasawa
5cc738d6bd
add test programs for strace
2017-11-25 14:35:17 +09:00
Tomoki Shirasawa
c9fa445f54
Merge branch 'development' of pccluster.org:mckernel into development
2017-11-22 10:53:33 +09:00
Tomoki Shirasawa
d273a2f58b
add strace bundled test cases
2017-11-22 10:52:30 +09:00
Ken Sato
4e7069d499
add: proc|sys fs format_checker (tool)
2017-11-22 09:39:48 +09:00
Masamichi Takagi
66f44e77af
mcstop+release.sh: Allow ihkmond to flush kmsg buffer
2017-11-20 18:28:48 +09:00
Balazs Gerofi
35f908b75c
mcexec: protect against incorrect partitioned execution argument (-n) using timeouts
2017-11-20 17:06:01 +09:00
Balazs Gerofi
2f0089dfb9
mcstop+release: use ihkconfig release mem all
2017-11-20 17:06:01 +09:00
Ken Sato
2af6d5115a
fix: depending arch futex_atomic_op_inuser() (a part of ARCH_DEP_8)
2017-11-20 16:42:47 +09:00
Ken Sato
ac25c5e1e7
fix: depending arch in Makefile (POSTK_DEBUG_ARCH_DEP_1)
2017-11-20 14:45:18 +09:00
Ken Sato
90c0355d90
add setting process of pgshift to remap_process_memory_range
...
refs #955
2017-11-20 14:17:03 +09:00
Ken Sato
43230eb623
fix: checking the return code of fork() in Linux.
...
refs #906
2017-11-15 15:46:47 +09:00
Ken Sato
f18dc8428d
fix: error code of perf_event_open, when unsupported event is specified.
...
refs #1030
2017-11-15 12:49:56 +09:00
Tomoki Shirasawa
ab53c8e0a4
execve: fix memory leak
...
refs #727
2017-11-09 16:44:31 +09:00
Masamichi Takagi
6c33e236d7
mcreboot: Fix umask for /proc and /sys files
2017-10-27 04:57:44 +09:00
Balazs Gerofi
85d36f1469
mcexec: check kernel version <= 3.10 for RHEL mcoverlayfs
2017-10-31 13:39:31 +09:00
Hitoshi Iizuka
0ecf31d896
modify:User space memory access(arm64)
1.4.0
2017-10-24 10:29:11 +09:00
Hitoshi Iizuka
08a625cc0d
modify:User space memory access
...
perf_event_open,futex,process_vm_readv,process_vm_writev,move_pages
2017-10-23 20:27:56 +09:00
Ken Sato
12840601e1
support PERF_TYPE_{HARDWARE|HW_CACHE} in perf_event_open
...
refs #829
2017-10-20 23:10:20 +09:00
Masamichi Takagi
2ae6883a8b
mcreboot.sh, mcstop+release.sh: Fix retry loop of shutdown
2017-10-19 01:54:46 +09:00
Balazs Gerofi
d5629606c5
mcexec: -m: interpret as numactl -m (i.e., MPOL_BIND)
...
Conflicts:
executer/include/uprotocol.h
executer/user/mcexec.c
kernel/include/syscall.h
2017-10-18 16:54:34 +09:00
Balazs Gerofi
285059e504
mcexec: use -M for --mpol-threshold
...
Conflicts:
executer/user/mcexec.c
2017-10-18 16:44:49 +09:00
Hannes Weisbach
5b6d0a887c
Add ARM64 arch_rusage header
2017-10-18 09:23:08 +09:00
Hannes Weisbach
3573b8649e
Guard call to gencore and freecore
...
The gencore() and freecore() code in gencore.c is guarded by
POSTK_DEBUG_ARCH_DEP_18, so the call to these functions should
also be guarded, otherwise linking fails.
2017-10-18 09:20:52 +09:00
Hannes Weisbach
d7523cdd84
Remove assignment of ns_per_tsc in struct monitor
...
struct member seems to have been removed or moved to struct
global_rusage
2017-10-18 09:20:52 +09:00
Hannes Weisbach
5753db5846
Add ihk_mc_syscall_number() for ARM by reading x8
2017-10-18 09:20:52 +09:00
Hannes Weisbach
2d7cb0af89
Add copy_fp_regs to ARM (same as for x86_64)
2017-10-18 09:20:52 +09:00
Hannes Weisbach
1cb9b435a9
Fix (?) build system
...
- disable -mno-red-zone for ARM
- add missing INCLUDEDIR
- make gencore.c compile
2017-10-18 09:20:52 +09:00
Balazs Gerofi
43ecf06e83
arch: x86 -> x86_64 and build system changes
2017-10-18 09:20:52 +09:00
Hannes Weisbach
51982de36b
Handle return value of mcctrl_ikc_send in mcexec_handle_prepare_image
2017-10-18 09:20:51 +09:00
Hannes Weisbach
0a22320a3c
Don't allocate memory for 0-page-sized requests
...
Previously the allocator would return all availble memory for a
request of 0 pages. This is rather counter-intuitive and left no
memory for subsequent allocations.
2017-10-18 09:20:51 +09:00
Takayuki Okamoto
8813e890c5
Fix the check routine for elf sections
2017-10-18 09:20:51 +09:00
Takayuki Okamoto
e664ffba18
Show context registers at the interrupt by SGI 6
2017-10-18 09:20:51 +09:00
Takayuki Okamoto
3bd0137c25
Fix some race condition on arm64
...
* move barrier() to architecture depended region
* add barrier() in issue_ipi, kprintf, map_virtual
* enable the workaround for cavium thunderx
2017-10-18 09:20:51 +09:00
Hannes Weisbach
4f2b4aa402
Round the allocation for cpu-local variables up PAGE_SIZE
...
Previously, this resulted in 0 pages being allocated.
2017-10-18 09:20:51 +09:00
Hannes Weisbach
682cd34b74
Make mcstop+release architecture independent
2017-10-18 09:20:51 +09:00
Hannes Weisbach
2bc4d06a48
Add empty definition of visit_pte_range_safe()
...
This is for linking only. visit_pte_range_safe() is required only
for memdump, as far as i can tell. Since memdump is disabled anyway
I think it's ok to leave this function empty for now.
2017-10-18 09:20:51 +09:00
Hannes Weisbach
4f2c1e07c1
Add ARCH variable to Makefiles
...
In some Makefiles the ARCH variable was not set, although it was used.
In executer/user/Makefile.in it was used before it was set.
2017-10-18 09:20:50 +09:00
Hannes Weisbach
77bb3038d3
Add PT_ENTRIES macro
2017-10-18 09:20:50 +09:00
Hannes Weisbach
931448a94d
Fix typo in page_align_up
2017-10-18 09:20:50 +09:00
Hannes Weisbach
c51bbbabc6
Change x86 to @ARCH@ in mcreboot-smp-x86.sh.in
...
since it is used for smp-x86 and smp-arm64
2017-10-18 09:20:50 +09:00
Masamichi Takagi
2ddc52e1a4
setitimer(): Fix error handling of copy_from_user()
...
This fixes POSTK_TEMP_FIX_40 (POSTK_DEBUG_TEMP_FIX_40)
2017-10-13 04:59:50 +09:00
Balazs Gerofi
3c93958c48
extend_process_region(): fix align_shift (POSTK_DEBUG_TEMP_FIX_68)
2017-10-17 15:07:57 +09:00
Tomoki Shirasawa
9763c40f64
set_robust_list: returns 0
...
refs #977
2017-10-16 09:54:23 +09:00
Dominique Martinet
3bf77446cc
mcreboot-smp-x86.sh: add extra_kopts param
...
This lets one specify arbitrary kernel parameters, instead of manually
fiddling with the script.
Could ultimately replace params like -t (turbo) and -d (dump_level) that
do not have any side effect (logmode starts a userland daemon)
2017-10-13 10:02:11 +09:00
Dominique Martinet
c3dfb1663d
page_fault_handler: do not try to fault addresses < 4k
...
There is no good reason to map these low addresses (userspace could with
mmap fixed, but that is grounds for many exploits...);
the main advantage however is if we do a null deref or close to (0->foo)
within a pagefault we will get a panic stack instead of getting a hang
because we cannot get some locks.
2017-10-13 10:02:11 +09:00
Dominique Martinet
217dd9c1e5
x86 set_signal: panic if interrupt came from kernel
...
This makes debugging errors e.g. FPE from kernel much easier,
we really shouldn't be taking a user level coredump blaming user
in that case anyway
2017-10-13 10:02:11 +09:00
Dominique Martinet
d4cd756a91
x86/cpu.c: unhandled page fault: print pre-fault stack
...
Do basic manual unwinding and print raw stack addresses, with a
suggested invocation of addr2line to pretty-print the result.
2017-10-13 10:02:11 +09:00
Dominique Martinet
b894619d1b
Speed up parallel builds
...
- make should be $(MAKE)
- add + in front of rules spawning long-lasted make process in a
subshell. (This would not be needed with $(MAKE) -C .. target, but our
makefiles do not handle that because they use $(PWD))
- split the main 'all' rule as all 4 targets are independant
- fix dependencies where appropriate for parallelism
Extra, not speed-related changes:
- remove some double-colon for targets as they do not need it
This cuts build time from 5s to 1.5s on a laptop with -j4, and more
importantly from 85s to 35s on a KNL node.
As a bonus, the fixed dependencies removes the need to clean before
rebuilding all the time. Probably.
2017-10-13 10:02:11 +09:00
Dominique Martinet
b962da700b
do_signal: ignore SIGWINCH
...
McKernel would terminate() running program on terminal resizing
It actually looks like there is nothing for us to do when we
get that anyway (tested with `dialog`)
2017-10-13 10:02:11 +09:00