summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/procfs/procfs_mem.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Replace procfs_domem() with a similar interface, process_domem(), which livesmiod2005-12-111-132/+0
| | | | | | | out of procfs and gets a ptrace request PT_{READ,WRITE}_{I,D} as argument; also procfs_checkioperm() becomes process_checkioperm(). From art@ some time ago; ok kettenis@ pedro@
* Add an extra flags argument to uvm_io(), to specify whether we want to fixmiod2005-11-041-2/+3
| | | | | | | | | the protection of the memory mapping we're doing I/O on, or if we want to leave them as they are. This should only be necessary for breakpoint insertion in code, so we'll only use it for ptrace requests. Initially from art@ after discussion with kettenis@ millert@ and I, tested by many.
* Properly flush instruction cache for ptrace(PT_WRTIE_{DI}, ...) on powerpckettenis2004-05-201-2/+10
| | | | | and m68k. ok drahn@, millert@
* make sure uio_offset is a safe value, with suggestions from millert@tedu2004-05-051-2/+1
| | | | | ok deraadt@ millert@ problem noticed by deprotect.com
* change arguments to suser. suser now takes the process, and a flagstedu2003-08-151-2/+2
| | | | | | | | | argument. old cred only calls user suser_ucred. this will allow future work to more flexibly implement the idea of a root process. looks like something i saw in freebsd, but a little different. use of suser_ucred vs suser in file system code should be looked at again, for the moment semantics remain unchanged. review and input from art@ testing and further review miod@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* Disallow ptrace if P_SUGIDEXEC flag is set (we already disallow if P_SUGIDmillert2003-03-091-1/+2
| | | | is set). deraadt@ and tholo@ OK.
* Move SET/CLR/ISSET macros to param.h. fgsch@ and millert@ oknordin2002-01-301-3/+1
|
* When a process is exec:ing mark it with a flag. Check that flag in ptraceart2002-01-201-1/+6
| | | | | | and procfs (and possibly more places in the future) and simply refuse to fiddle with the execing process. This is an ugly hack, but this far we haven't been successful in creating a race-free exec.
* redundant includes.art2001-11-061-3/+1
|
* No need to PHOLD/PRELE here, really.art2001-09-191-3/+1
|
* Don't include <vm/vm_kern.h> if you don't need foo_map.miod2001-09-111-2/+1
|
* Remove old vm.art2001-06-271-154/+1
|
* Garbage collect procfs_findtextvp().aaron2001-05-241-86/+1
|
* make procfs compile on non-uvm systemsericj2000-08-151-4/+2
|
* memory reads from other vmspace are different under uvmart1999-02-261-2/+22
|
* OK, this is another fix for the infamous i386 "PTDI panic". This fix is thepefo1998-08-301-2/+6
| | | | | | | | | | same as is used in 'vslock()'. The situation when this occurs is when a process tries to read or write to another process vm space and the _segment_ referenced have not yet been mapped. A certain way of crashing a system is to debug a program larger than 4 Mb (yes, those critters exist!). Set a break in an address above 4 Mb and pmap_enter panics because it can't fault in a new ptd page since it is not the process itself that calls pmap_enter. This is a fix, not a solution, but at least a user can't crash the kernel.
* Fix {KERNFS,NULLFS,UMAPFS,UNION}_DIAGNOSTIC kernel compilation errors.millert1997-09-111-4/+4
| | | | From Alan Barrett <apb@iafrica.com> with some changes.
* From NetBSD (thorpej):millert1997-08-291-7/+12
| | | | | Fix a reversed argument which caused procfs_checkioperm() to always return OK". Add a few comments to avoid further confusion.
* 1) pfs_mode should be mode_t, not u_shortmillert1997-08-161-3/+38
| | | | | | | | | | | 2) Fix procfs security hole. This is basically the NetBSD fix (which is based in part on Sean Eric Fagan's FreeBSD fix) with a few minor changes. The change creates as function, procfs_checkioperm(), that has check numbers 3 and 4 from sys_ptrace(). 3) Make procfs_control() use procfs_checkioperm() as well (it already had the same basic checks but some of them were incorrect). 4) Minor stylistic cleanups, including the use of the SET/CLR/ISSET macros to aid general grokability.
* Don't fault a page in twice (first prefault, then vm_fault); the first wastholo1997-01-221-5/+1
| | | | not neccecary (and actually caused some problems).
* Fix for final ptdi panic on i386tholo1997-01-071-2/+6
|
* From NetBSD: update to 960217 sourcesniklas1996-02-271-2/+6
|
* initial import of NetBSD treederaadt1995-10-181-0/+301