aboutsummaryrefslogtreecommitdiff
path: root/sys/miscfs
Commit message (Collapse)AuthorAgeFilesLines
* FreeBSD-SA-04:17.procfs:Colin Percival2004-12-011-1/+16
| | | | | | | | | | MFC (in the spirit of) revision 1.54 of src/sys/fs/procfs/procfs_status.c Approved by: so (nectar) Notes: svn path=/stable/4/; revision=138282
* Unbreak the build. I had this fix on my -STABLE test box, but itDavid Schultz2004-01-131-1/+1
| | | | | | | | | apparently never made it back to my local repository. Pointy hat to: das Notes: svn path=/stable/4/; revision=124496
* MFC:David Schultz2004-01-131-27/+21
| | | | | | | src/sys/fs/unionfs/union_vnops.c,v 1.103 Notes: svn path=/stable/4/; revision=124458
* Revision 1.10.2.4 introduced a regression: the offset was ignored.Jacques Vidrine2003-10-041-3/+1
| | | | | | | | | | | | | | | | | This could cause a reader of /proc/*/regs to spin, because read(2) would never return end-of-file. In practice, this has much less impact than I would expect. Tools such as truss(1) make only a single, fixed-size read (into a `struct reg'). (Similarly for write(2).) The cause was a sort of typo: `uiomove_frombuf' was spelled `uiomove'. Noticed by: David Rhodus <drhodus@catpa.com> Approved by: re (implicitly) Notes: svn path=/stable/4/; revision=120749
* MFC (the spirit of) procfs_dbregs.c 1.23, procfs_fpregs.c 1.29,Jacques Vidrine2003-10-025-72/+9
| | | | | | | | | | pseudofs_vnops.c 1.42, kern_subr.c 1.77, uio.h 1.28: Correct several integer underflows/overflows in procfs. Approved by: re Notes: svn path=/stable/4/; revision=120669
* MFC src/sys/kern/sys_process.c revisions 1.111 and 1.112:Tor Egge2003-08-121-31/+6
| | | | | | | | | Use kmem_alloc_nofault() rather than kmem_alloc_pageable() in procfs_rwmem(). Use vm_page_hold() in place of vm_page_wire() since the page can be freed. Don't hold extra reference to the containing vm object while page is mapped. Notes: svn path=/stable/4/; revision=118834
* MFC:David Schultz2003-06-183-43/+72
| | | | | | | | | | | | | | | | | Fix memory leak union_subr.c,v 1.71 Add union_dircache_free() union.h,v 1.27 union_subr.c,v 1.72 union_vnops.c,v 1.98 Add malloc types M_UNDCACHE and M_UNPATH union_subr.c,v 1.73 Fix panic when unionfs is mounted atop another unionfs, style union_vnops.c,v 1.99 union_vnops.c,v 1.100 Notes: svn path=/stable/4/; revision=116516
* MFC (fs/miscfs/fifo_vnops.c 1.79+1.85: don't loop in fifo_open() waitingBruce Evans2003-04-221-2/+12
| | | | | | | | | for another reader or writer if one arrived and departed while we were waiting (or a little earlier). This should fix some races, but it is reported to not actually fix the original problem with sendmail. Notes: svn path=/stable/4/; revision=113848
* Remove the kernfs source code and documentation.Dag-Erling Smørgrav2003-02-103-942/+0
| | | | Notes: svn path=/stable/4/; revision=110642
* Set f_mntonname so unmount(2) can succeed. This is taken care of by commonNate Lawson2002-08-231-0/+6
| | | | | | | | | | VFS code in -CURRENT so this change is only needed in -STABLE. PR: kern/41527 Reviewed by: Alfred "If it works, commit it. :)" Perlstein Notes: svn path=/stable/4/; revision=102319
* MFC: rev 1.53: Fix null_lock() not unlocking vp->v_interlock ifSemen Ustimenko2002-07-311-2/+6
| | | | | | | LK_THISLAYER. Notes: svn path=/stable/4/; revision=101000
* Don't allow group to read process memory.Dag-Erling Smørgrav2002-02-181-2/+1
| | | | Notes: svn path=/stable/4/; revision=90872
* Eliminate ptrace/exec race.Jacques Vidrine2002-01-228-2/+25
| | | | | | | | | | | | | | | | MFC 1.191 src/sys/sys/proc.h MFC 1.44 src/sys/kern/kern_exec.c (execve) Add P_INEXEC flag to indicate that a process is currently exec'ing. sys/kern/sys_process.c (ptrace) sys/miscfs/procfs/... Do not allow debugging of a process during exec. Submitted by: tegge Approved by: re Notes: svn path=/stable/4/; revision=89661
* MFC the following:Matthew Dillon2001-12-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * LK_TIMEOUT lock flag to separate lock acquisition with and without a timeout (dillon) * use of LK_TIMEOUT in BUF_TIMELOCK to avoid timeout race aginst BUF_LOCK (dillon) * use of LK_TIMEOUT in pageout vget() code to avoid deadlock (dillon) * move vnode reclaim into its own kthread to avoid deadlocks (Yahoo) * remove 'VXLOCK interlock avoided' messages.. they can occur under normal operation and create a choking hazzard on the console. * Adjust VMIGHTFREE macro used with vnode reclaim code to avoid eating large amounts of cpu with little to show for it in certain situations. * Add VREF/VRELE around UFS_UPDATE() call to avoid update/reclaim race (note: snuck in at last minute but I accidently did a partial commit a moment ago and the tree is broken until I commit the rest of it). This is minor and will be tested heavily. Approved by: Release Engineers Notes: svn path=/stable/4/; revision=88467
* MFC: don't fall through from PIOCGFL to PIOCSTATUS.Dag-Erling Smørgrav2001-10-291-0/+1
| | | | | | | (note: file has moved in -CURRENT) Notes: svn path=/stable/4/; revision=85708
* MFC change vnode list under mount point from LIST to TAILQ in preparationMatthew Dillon2001-10-251-3/+4
| | | | | | | for scaleability fixes for machines with >= 2G of ram coming down the pipe. Notes: svn path=/stable/4/; revision=85499
* Merge the fdesc changes from -CURRENT. This fixes at _least_ one bug,Chris Costello2001-10-223-493/+166
| | | | | | | | | and makes the code a lot nicer. PR: kern/25266 Notes: svn path=/stable/4/; revision=85332
* Add the necessary dependency information to the procfs and linprocfs modules.Dag-Erling Smørgrav2001-10-151-0/+1
| | | | | | | PR: 30706 Notes: svn path=/stable/4/; revision=85011
* MFC: Fix some signed/unsigned integer confusion, and add bounds checking ofKris Kennaway2001-09-111-0/+6
| | | | | | | | | arguments to some functions. Approved by: jkh Notes: svn path=/stable/4/; revision=83330
* MFC of procfs "kmem" cleanup. With the advent of an entirelyRobert Watson2001-08-123-46/+3
| | | | | | | | | | | | | | | | | | | | | sysctl-driven "ps" (and friends), special-casing of kmem gid in the procfs authorization is no longer needed. Clean up this morally ambiguous code. This MFC is from fs/procfs, as procfs has been repo-copied. Unlike -CURRENT, linprocfs required modification as in -STABLE, it has direct knowledge of the inter-process debugging authorization policy. In -CURRENT, this is abstracted behind p_cansignal(). procfs.h: 1.36, 1.37 procfs_mem.c: 1.53 procfs_subr.c: 1.35 procfs_vnops.c: 1.100, 1.101 Reviewed by: jedgar, tmm Approved by: re@FreeBSD.org Notes: svn path=/stable/4/; revision=81548
* Whitespace and style(9) diff reduction with -CURRENT.Robert Watson2001-08-046-5/+9
| | | | | | | Approved by: jkh Notes: svn path=/stable/4/; revision=81125
* MFC: Change the interface to vflush() so that it can deal withIan Dowse2001-07-266-98/+16
| | | | | | | | | | | | | | | | extra references on the filesystem root vnode. This fixes bugs in a number of filesystems that could cause forced umounts to erroneously return EBUSY, and it centralises a lot of xxx_unmount logic. This unfortunately requires the recompilation of any filesystem KLDs, although I have added an extra sanity check that should help to avoid panics if old modules are used (the filesystem may refuse to umount, and if so, a warning message will appear on the console). Not objected to by: -stable Notes: svn path=/stable/4/; revision=80411
* Removing old, broken DEVFS from -stable phase two: removeDima Dorfman2001-07-257-4037/+0
| | | | | | | | implementation, header files, and man pages (i.e., all files specific to DEVFS). Notes: svn path=/stable/4/; revision=80324
* MFC: the rest of fixes for nullfs. Please note, that for now onlyBoris Popov2001-06-263-71/+192
| | | | | | | | | | ufs mounts can be used for null mounts. msdosfs and cd9660fs fixes are trivial and will be committed shortly. Null mounts on top of nfs filesystem will cause problems after rename() operation. This issue also present in -current and can be fixed too. Notes: svn path=/stable/4/; revision=78800
* MFC: r1.54; hook up kq write filter to correct socket.Jonathan Lemon2001-06-151-4/+11
| | | | Notes: svn path=/stable/4/; revision=78298
* MFC: Do not leave an extra reference on vnode.Boris Popov2001-06-141-6/+2
| | | | | | | PR: kern/27250 Notes: svn path=/stable/4/; revision=78206
* MFC:Boris Popov2001-05-302-1/+68
| | | | | | | | | | o Overload vop_open() in order to catch MNT_NODEV case. o Overload null_rename() to avoid cross layer renames. They don't work well atm. o Use macros from queue.h. Notes: svn path=/stable/4/; revision=77482
* MFC: use VOP_*VOBJECT() to track a real VM object.Boris Popov2001-05-301-0/+59
| | | | Notes: svn path=/stable/4/; revision=77480
* Disable DEVFS in 4.xPoul-Henning Kamp2001-05-061-0/+1
| | | | Notes: svn path=/stable/4/; revision=76305
* MFC: sync kq up to current (extend to device layer, plus other fixes)Jonathan Lemon2001-02-262-31/+56
| | | | Notes: svn path=/stable/4/; revision=73061
* MFC 1.148, 1.149 - use mark/scan to avoid cpu loop waiting for interrupt whenMatthew Dillon2001-02-021-7/+29
| | | | | | | | a buffer is skipped due to being busy. Continue to ensure that a MNT_WAIT fsync drains all buffers to avoid panic in umount/vinvalbuf Notes: svn path=/stable/4/; revision=71941
* MFC vfs_bio.c 1.269 and friends. This MFC's the better launder limitingMatthew Dillon2000-12-302-0/+4
| | | | | | | solution. See commitlogs/sys '2000/12/26 11:41:38 PST' Notes: svn path=/stable/4/; revision=70504
* o MFC of procfs_ctl.c 1.22, tighten restrictions on the use ofRobert Watson2000-12-171-4/+14
| | | | | | | | | | | | /proc/pid/ctl. This is a backport of the -CURRENT patch to use the procfs CHECKIO() interface rather than the p_can interface available in -CURRENT. sef reviewed the patch for -CURRENT, and had proposed a less fascist version of the patch for -STABLE. Reviewed by: security-officer, alfred Notes: svn path=/stable/4/; revision=70107
* MFC 1.27, fix forgotten getsock()->holdsock() conversion.Matthew Dillon2000-11-261-2/+6
| | | | Notes: svn path=/stable/4/; revision=69189
* MFC: More overflow checking. This patch is ugly, but it works. A better fixEivind Eklund2000-11-161-18/+45
| | | | | | | | | will come later. Approved by: jkh Notes: svn path=/stable/4/; revision=68825
* Make /proc/<pid> appear as a directory rather than a regular file.Alfred Perlstein2000-11-071-1/+1
| | | | | | | | MFC: 1.85 Approved by: jkh Notes: svn path=/stable/4/; revision=68464
* Be much, much more paranoid on allowing I/O operations on procfs nodes.Sean Eric Fagan2000-11-017-7/+15
| | | | | | | | | | Do this by (for now, at least) re-instating the previously-removed CHECKIO() macro. Reviewed by: Robert Watson <rwatson@FreeBSD.org>, Kris Kennaway <kris@FreeBSD.org> Notes: svn path=/stable/4/; revision=68207
* MFC: Fix jail hostname overflowEivind Eklund2000-11-011-1/+1
| | | | Notes: svn path=/stable/4/; revision=68200
* MFC:Boris Popov2000-10-254-66/+94
| | | | | | | | | protect nullfs node hash with lockmgr(). properly release vnode if mount deadlock detected. give nullfs node its own malloc type. Notes: svn path=/stable/4/; revision=67546
* MFC: Get rid from the __P() macro. Replace 'extern' with function prototype.Boris Popov2000-10-254-38/+44
| | | | Notes: svn path=/stable/4/; revision=67545
* MFC: $FreeBSD$Peter Wemm2000-08-033-0/+6
| | | | Notes: svn path=/stable/4/; revision=64172
* MFC: textvp_fullpath(), revive /proc/pid/file.Dag-Erling Smørgrav2000-06-212-20/+60
| | | | Notes: svn path=/stable/4/; revision=61893
* MFC: kqueue() and kevent()Jonathan Lemon2000-05-051-0/+86
| | | | Notes: svn path=/stable/4/; revision=60020
* Remove linprocfs as pr -core's request.Søren Schmidt2000-04-185-1863/+0
| | | | | | | | Since -core has requested that linprocfs be moved into the linuxulator this never should have entered RELENG_4. Notes: svn path=/stable/4/; revision=59357
* MFC: attempt to provide real values for meminfo.Dag-Erling Smørgrav2000-03-251-19/+52
| | | | Notes: svn path=/stable/4/; revision=58569
* This commit was manufactured by cvs2svn to create branch 'RELENG_4'.cvs2svn2000-03-255-0/+1830
| | | | Notes: svn path=/stable/4/; revision=58557
* MFC: Remove MAX_PERF with extreme prejudice.Paul Saab2000-03-172-4/+0
| | | | Notes: svn path=/stable/4/; revision=58160
* Fix bde'isms in acl/extattr syscall interface, renaming syscalls toRobert Watson2000-01-192-3/+3
| | | | | | | | | prettier (?) names, adding some const's around here, et al. Reviewed by: bde Notes: svn path=/head/; revision=56272
* Give vn_isdisk() a second argument where it can return a suitable errno.Poul-Henning Kamp2000-01-102-6/+7
| | | | | | | Suggested by: bde Notes: svn path=/head/; revision=55756
* Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL"Peter Wemm1999-12-297-14/+14
| | | | | | | | | is an application space macro and the applications are supposed to be free to use it as they please (but cannot). This is consistant with the other BSD's who made this change quite some time ago. More commits to come. Notes: svn path=/head/; revision=55206