summaryrefslogtreecommitdiffstats
path: root/sys/i386/linux/linux_ptrace.c
Commit message (Collapse)AuthorAgeFilesLines
* /* -> /*- for copyright notices, minor format tweaks as necessaryimp2005-01-061-1/+1
|
* Fix the following race:das2004-10-011-3/+4
| | | | | | | | | | | 1. Process p1 is currently being swapped in. 2. Process p2 calls linux_ptrace(PTRACE_GETFPXREGS, p1_pid, ...) 3. After acquiring a reference to FIRST_THREAD_IN_PROC(p1), p2 blocks in faultin() while p1 finishes being swapped in. This means p2 won't get back the lock on p1 until after p1's threads are runnable. 4. After p1 is swapped in, the first thread in p1 exits. 5. p2 now uses its dangling reference to p1's first thread.
* Consistently use __inline instead of __inline__ as the former is an empty macrostefanf2004-07-041-1/+1
| | | | in <sys/cdefs.h> for compilers without support for inline.
* Use __FBSDID().obrien2003-06-021-2/+3
|
* Prefer the proc lock to sched_lock when testing PS_INMEM now that it isjhb2003-04-221-16/+8
| | | | safe to do so.
* Sync up with changes to ptrace() and use P_SHOULDSTOP instead ofjhb2003-04-151-1/+1
| | | | | | a duplicate P_TRACED check. Submitted by: marcel
* Clean up whitespace and remove register keyword.des2003-03-031-3/+3
|
* More caddr_t removal, in conjunction with copy{in,out}(9) this time.des2003-03-031-10/+9
| | | | Also clean up some egregious casts and incorrect use of sizeof.
* Removed unused includes. Sorted includes. This is part of removingbde2002-09-151-5/+1
| | | | | includes of <sys/user.h> for its pollution only. <sys/user.h> wasn't even used for its pollution here.
* Include <machine/pcb.h> instead of depending on namespace pollution inbde2002-09-071-0/+1
| | | | <sys/user.h>.
* Automatically enable CPU_ENABLE_SSE (detect and enable SSE instructions)peter2002-09-071-1/+10
| | | | | | | | if compiling with I686_CPU as a target. CPU_DISABLE_SSE will prevent this from happening and will guarantee the code is not compiled in. I am still not happy with this, but gcc is now generating code that uses these instructions if you set CPUTYPE to p3/p4 or athlon-4/mp/xp or higher.
* Split up ptrace() into a wrapper that does the copying to and fromiedowse2002-09-051-95/+52
| | | | | | | user space and a kern_ptrace() implementation. Use the kern_*() version in the Linux emulation code to remove more stack gap uses. Approved by: des
* Part 1 of KSE-IIIjulian2002-06-291-1/+1
| | | | | | | | | | | | | The ability to schedule multiple threads per process (one one cpu) by making ALL system calls optionally asynchronous. to come: ia64 and power-pc patches, patches for gdb, test program (in tools) Reviewed by: Almost everyone who counts (at various times, peter, jhb, matt, alfred, mini, bernd, and a cast of thousands) NOTE: this is still Beta code, and contains lots of debugging stuff. expect slight instability in signals..
* o Fix race condition caused by doing ptrace() for permissionmarcel2002-05-191-24/+44
| | | | | | | | | | | checking, followed by a lookup of the process. Do not call ptrace() for permission checking, but do it inline. Spotted by: rwatson o While here, copy-in arguments before we lock. This fixes a possible permanent lock. Reviewed by: rwatson
* Sparkling new implementation of linux_ptrace. Slight tweaking bymarcel2002-05-191-0/+507
yours truly. PR: 33299 Submitted by: Alexander N. Kabaev <ak03@gte.com>
OpenPOWER on IntegriCloud