summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/procfs (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Add an extra flags argument to uvm_io(), to specify whether we want to fixmiod2005-11-042-6/+7
| | | | | | | | | 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.
* Protect the run queues with SCHED_LOCK, not just spl (ot nothing at all inart2005-05-311-1/+8
| | | | | | | one case fixed here). miod@ "appears to be harmless" markus@ ok
* sched work by niklas and art backed out; causes panicsderaadt2005-05-291-8/+1
|
* This patch is mortly art's work and was done *a year* ago. Art wants to thankniklas2005-05-251-1/+8
| | | | | | | | | | | | | | | | everyone for the prompt review and ok of this work ;-) Yeah, that includes me too, or maybe especially me. I am sorry. Change the sched_lock to a mutex. This fixes, among other things, the infamous "telnet localhost &" problem. The real bug in that case was that the sched_lock which is by design a non-recursive lock, was recursively acquired, and not enough releases made us hold the lock in the idle loop, blocking scheduling on the other processors. Some of the other processors would hold the biglock though, which made it impossible for cpu 0 to enter the kernel... A nice deadlock. Let me just say debugging this for days just to realize that it was all fixed in an old diff noone ever ok'd was somewhat of an anti-climax. This diff also changes splsched to be correct for all our architectures.
* careful strlcpy and snprintf return handling; ok pedro beckderaadt2005-04-212-6/+15
|
* Remove regs and fpregs pseudo-files from procfs.kettenis2005-04-164-222/+2
| | | | ok deraadt@, miod@
* calling pfind() and checking that the process doesn't exist is notpedro2005-04-011-4/+5
| | | | | | enough to allow us to call vgone() from procfs_inactive(). to avoid a deadlock, check for VXLOCK as well, in case we were called from vclean(). problem report from Sho Fujita, okay tedu@.
* use queue.h provided macro when traversing the process list, no changespedro2004-10-191-3/+3
| | | | in generated object file. from Joris Vink.
* This moves access to wall and uptime variables in MI code,tholo2004-06-241-4/+2
| | | | | | | | | | | | | | encapsulating all such access into wall-defined functions that makes sure locking is done as needed. It also cleans up some uses of wall time vs. uptime some places, but there is sure to be more of these needed as well, particularily in MD code. Also, many current calls to microtime() should probably be changed to getmicrotime(), or to the {,get}microuptime() versions. ok art@ deraadt@ aaron@ matthieu@ beck@ sturm@ millert@ others "Oh, that is not your problem!" from miod@
* remove more caddr_ttedu2004-05-203-13/+11
|
* 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-057-27/+24
| | | | | ok deraadt@ millert@ problem noticed by deprotect.com
* repair status by not repeating fields. fixes pr2101 from jim razmustedu2004-03-031-5/+6
|
* save room for nul, so we can unmount later. pr2327 from peter wernertedu2004-03-031-2/+2
|
* Replace select backends with poll backends. selscan() and pollscan()millert2003-09-232-4/+17
| | | | | | | now call the poll backend. With this change we implement greater poll(2) functionality instead of emulating it via the select backend. Adapted from NetBSD and including some changes from FreeBSD. Tested by many, deraadt@ OK
* 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@
* constify vfsops; tedu@ okmickey2003-08-142-4/+4
|
* constify constant namesmickey2003-08-113-11/+10
|
* make procfs support statfs args. lossage noticed and patch tested by jolantedu2003-08-052-11/+5
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-0210-60/+20
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* call lockmgr a bit earlier to avoid a race.tedu2003-04-281-7/+8
|
* sprintf elimination from rohee.tedu2003-04-071-6/+6
|
* Disallow ptrace if P_SUGIDEXEC flag is set (we already disallow if P_SUGIDmillert2003-03-091-1/+2
| | | | is set). deraadt@ and tholo@ OK.
* use M_MISCFSMNT instead of M_UFSMNT for mount datatedu2003-02-241-3/+3
| | | | ok art@
* Sigh. I comitted the wrong diff in the last vfs changes.art2003-01-312-22/+8
| | | | These are the files that were ok:ed and tested.
* File system locking fixups, mostly from NetBSD:art2003-01-313-18/+65
| | | | | | | | | | | | | | | - cache_lookup move common code from various fs's here always return with vnode and parent locked adjust return codes - PDIRUNLOCK - new flag set if lookup couldn't lock parent vnode - kernfs and procfs lock vnode in get_root don't unlock (again) in kernfs_freevp fix memory leak in procfs From tedu@stanford.edu deraadt@ and various other ok
* Do not hide Pfpregs from a switch() if PT_[GS]ETFPREGS are not defined,miod2002-04-061-3/+3
| | | | | so that this compiles with option DIAGNOSTIC; fixes PR #2528 ok fgsch@
* First round of __P removal in sysmillert2002-03-144-69/+69
|
* Turn the ptrace(2) syscall into a kernel compile option, option PTRACE inmiod2002-03-144-6/+39
| | | | | | | | | | | | | your kernel configuration file. By default, GENERIC will enable this. When PTRACE is not enabled, several ptrace-like features of the procfs filesystem will be disabled as well (namely, the ability to read and write any process' registers, as well as attching, single stepping and detaching to/from processes). This should help paranoid people build better sandboxens, and us to build smaller ramdisks.
* Since all archs implement PT_GETREGS and PT_SETREGS, make then unoptional.art2002-03-112-12/+2
| | | | | | | | They still stay in MD code for backwards compatibility, but a check in ptrace.h checks if they are defined. Note - the same thing will be done with PT_{GET,SET}FPREGS once vax implements them and with PT_STEP when it's implemented by sparc, sparc64 and alpha.
* Move SET/CLR/ISSET macros to param.h. fgsch@ and millert@ oknordin2002-01-302-9/+2
|
* Add proc0 to the PIDHASH table. art@ oknordin2002-01-303-12/+11
|
* 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.
* Readd VOP_MMAP, will be used soon. Right now it's just a question toart2001-12-041-2/+2
| | | | the filesystem if we're allowed to mmap the file.
* uvm_vnp_setsizeart2001-11-151-2/+2
|
* lockmgr instead of rolling our own.art2001-11-151-16/+6
|
* Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.miod2001-11-064-10/+5
| | | | (Look ma, I might have broken the tree)
* 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-275-211/+5
|
* Get rid of several unused vnode operationscsapuntz2001-06-231-15/+1
|
* Garbage collect procfs_findtextvp().aaron2001-05-243-91/+5
|
* Initialize p to NULL in lookup.art2001-05-241-2/+2
| | | | How this could have ever worked without this is beyond me.
* No need to check M_WAIT/M_WAITOK malloc return values. (art@ ok)ho2001-05-161-3/+1
|
* Make PROCFS compile again on non-UVM systems, deraadt@ okmiod2001-04-131-1/+22
|
* Add emulation of Linux features to procfs; mostly from NetBSD. ok deraadt@tholo2001-04-097-27/+345
|
* use void * consistently in vfs_mount and sys_mount. ok @artassar2001-02-201-3/+3
|
* calculate length and allocate buffer for status. work by deraadt@ and meprovos2000-12-181-53/+92
|
* NUL not NULL; noted by Theo.jasoni2000-08-151-2/+2
|