7bba05cfa4
Revise use of iov_base in ptrace_read_regset() and ptrace_write_regset().
Susumu Komae
2015-03-20 20:33:40 +09:00
c2a1f933e8
Set tid (instead of pid) for ptrace event message of PTRACE_EVENT_{FORK,VFORK,CLONE,VFORKDONE}. Specify 2nd argument as pid (instead of -1) of function findthread_and_lock(), to find tracee process in ptrace subroutines. (gdb testsuite gdb.base/watch_thread_num.exp)
Susumu Komae
2015-03-20 13:22:00 +09:00
b66b950129
add x86_sregs into x86_user_context
NAKAMURA Gou
2015-02-25 18:25:39 +09:00
4aa8ba2eef
sort x86_basic_regs into user_regs_struct's order
NAKAMURA Gou
2015-02-25 21:22:48 +09:00
fab2c2aa97
wrap x86_regs with x86_user_context
NAKAMURA Gou
2015-02-25 13:49:44 +09:00
026164eda4
fix PTRACE_ATTACH, PTRACE_DETACH, detach at tracer process terminated. tracee process may have no parent, increment/decrement refcount.
Susumu Komae
2015-02-25 21:09:44 +09:00
e91d1e5b7b
stack of signal handler is not 16 byte align
Tomoki Shirasawa
2015-02-24 17:20:52 +09:00
b26fa4e87c
wrong send signal to sender process when kill other process group (LTP kill10)
Tomoki Shirasawa
2015-01-29 16:14:31 +09:00
bd5f43b119
support PTRACE_SINGLESTEP. support debug/int3 exception.
Susumu Komae
2015-01-29 15:48:05 +09:00
f97f8dbab3
support PTRACE_PEEKTEXT and PTRACE_PEEKDATA.
Susumu Komae
2015-01-29 15:02:15 +09:00
e30946f1f0
fix PTRACE_CONT may cause error. refs #369
Susumu Komae
2015-01-29 14:10:31 +09:00
c3ade864d9
fix PTRACE_PEEKUSER, PTRACE_POKEUSER, PTRACE_GETREGS. support PTRACE_SETREGS. In struct process, add 'unsigned long *ptrace_debugreg', instead of 'struct user *userp'. debug registers are read/written from/to ptrace_debugreg, save/restore in schedule(). most general registers are proc->uctx. fs_base is proc->thread.tlsblock_base. gs_base,ds,es,fs,gs and orig_rax are uncompleted. other members in 'struct user' are ignored, same as Linux implementation.
Susumu Komae
2015-01-29 14:08:38 +09:00
08cc31f9bf
support setrlimits/getrlimits, however this fix is these syscalls only. checking resource process must implement it separately.
Tomoki Shirasawa
2015-01-27 10:35:58 +09:00
cf2166f830
function enter_user_mode calls check_signal.
Tomoki Shirasawa
2015-01-16 14:28:28 +09:00
765de119dc
support PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK, PTRACE_O_TRACEVFORKDONE. to start with a SIGSTOP, do not set proc->ftn->status to PS_RUNNING in __runq_add_proc(). change vfork() set CLONE_VFORK.
Susumu Komae
2015-01-14 10:43:18 +09:00
d46110b4d9
support PTRACE_DETACH. change getppid() to use proc->ftn->ppid_parent->pid, for ptraced process.
Susumu Komae
2015-01-08 12:39:52 +09:00
74f0aec478
skip copy_to_user() when r->ret is negative error number in mckernel_procfs_read().
Susumu Komae
2015-01-08 12:38:06 +09:00
e3eb7e68bc
Fix need to modify ihk/cokernel/Makefile when a file has been added under mckernel/arch (Bug#365)
Tomoki Shirasawa
2014-12-26 16:05:23 +09:00
cd6e663f48
handle VM_RESERVED (non-existing since Linux 3.7.0) and do_mmap_pgoff() (unexported since Linux 3.5.0) in mcctrl's syscall.c
Balazs Gerofi
2014-11-10 18:28:30 +09:00
5f095b3952
McKernel IHK SMP-x86 support (build system and config files)
Balazs Gerofi
2014-11-04 15:47:16 +09:00
811a275176
build scripts: support for separate build and source directories
bgerofi@riken.jp
2014-10-20 17:47:12 +09:00
b388f59ebd
ihk_ikc_irq and ihk_ikc_irq_apicid
bgerofi@riken.jp
2014-10-20 16:11:15 +09:00
ff47261337
receive trampoline addr via parameter of arch_start()
bgerofi@riken.jp
2014-08-18 21:56:45 +09:00