summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Move implementation of hw.bus.rman sysctl to subr_rman.c so thatphk2005-03-243-87/+88
| | | | | | subr_bus.c doesn't need to peek inside struct resource. OK from: imp
* Compile errors are way more useful then panics later.brooks2005-03-241-3/+4
| | | | | | Replace a KASSERT of LINUX_IFNAMSIZ == IFNAMSIZ with a preprocessor check and #error message. This will prevent nasty suprises if users change IFNAMSIZ without updating the linux code appropriatly.
* Update copyright years.den2005-03-241-0/+1
|
* If "dangerous" environment variables (LD_PRELOAD, LD_LIBMAP,cperciva2005-03-241-1/+24
| | | | | | | | | | | | | LD_LIBMAP_DISABLE, LD_LIBRARY_PATH) are used, then make sure the libraries being loaded aren't on a noexec-mounted filesystem. This is a compromise position: I'm assuming that nobody will be silly enough to set the noexec mount flag on part of the default library path, in order to avoid adding extra overhead into the common case (where those environment variables aren't used). Discussed with: csjp, secteam MFC after: 1 week
* - Fail an assert if we attempt to return with any lockmgr locks held injeff2005-03-241-0/+2
| | | | | | userret(). Sponsored by: Isilon Systems, Inc.
* - Complete the implementation of td_locks. Track the number of outstandingjeff2005-03-241-0/+11
| | | | | | | lockmgr locks that this thread owns. This is complicated due to LK_KERNPROC and because lockmgr tolerates unlocking an unlocked lock. Sponsored by: Isilon Systes, Inc.
* - Update vfs_root implementations to match the new prototype. None ofjeff2005-03-248-8/+14
| | | | | | | | these filesystems will support shared locks until they are explicitly modified to do so. Careful review must be done to ensure that this is safe for each individual filesystem. Sponsored by: Isilon Systems, Inc.
* - Update vfs_root implementations to match the new prototype. None ofjeff2005-03-2415-19/+29
| | | | | | | | these filesystems will support shared locks until they are explicitly modified to do so. Careful review must be done to ensure that this is safe for each individual filesystem. Sponsored by: Isilon Systems, Inc.
* - Call VFS_ROOT() with LK_EXCLUSIVE.jeff2005-03-241-1/+1
| | | | Sponsored by: Isilon Systems, Inc.
* - Update the ufs_root() prototype.jeff2005-03-241-2/+3
| | | | | | | - Pass the ufs_root() flags argument to VFS_VGET() to allow callers to specify shared locks. Sponsored by: Isilon Systems, Inc.
* - Pass LK_EXCLUSIVE to VFS_ROOT() to satisfy the new flags argument. Forjeff2005-03-246-10/+12
| | | | | | now, all calls to VFS_ROOT() should still acquire exclusive locks. Sponsored by: Isilon Systems, Inc.
* - Fixup the default vfs_root function to match the new prototype.jeff2005-03-241-1/+2
| | | | Sponsored by: Isilon Systems, Inc.
* - Add a 'flags' parameter to VFS_ROOT(). This is intended to allowjeff2005-03-241-2/+4
| | | | | | | | lookup to do shared locks on the root. Filesystems are free to ignore flags and instead acquire an exclusive lock if they do not support shared locks. Sponsored by: Isilon Systems, Inc.
* - Grab the lock type that the caller requests in vfs_hash_insert().jeff2005-03-241-1/+1
| | | | Sponsored by: Isilon Systems, Inc.
* - If vput() is called with a shared lock it must upgrade to an exclusivejeff2005-03-242-3/+13
| | | | | | | | | | | before it can call VOP_INACTIVE(). This must use the EXCLUPGRADE path because we may violate some lock order with another locked vnode if we drop and reacquire the lock. If EXCLUPGRADE fails, we mark the vnode with VI_OWEINACT. This case should be very rare. - Clear VI_OWEINACT in vinactive() and vbusy(). - If VI_OWEINACT is set in vgone() do the VOP_INACTIVE call here as well. Sponsored by: Isilon Systems, Inc.
* - Remove some long dead LOOKUP_SHARED code that tracked the lock state.jeff2005-03-241-14/+0
| | | | | | | - Always pass LOCKSHARED and rely on namei() to ignore it when LOOKUP_SHARED is not set. Sponsored by: Isilon Systems, Inc.
* - Remove the #ifdef LOOKUP_SHARED from some calls to NDINIT. Thejeff2005-03-242-14/+2
| | | | | | | LOCKSHARED flag is simply ignored in namei() if LOOKUP_SHARED is not enabled. Sponsored by: Isilon Systems, Inc.
* - Clear LOCKSHARED if LOOKUP_SHARED is not enabled. This is not strictlyjeff2005-03-241-0/+3
| | | | | | | | necessary since we disable the shared locks in vfs_cache, but it is prefered that the option not leak out into filesystems when it is disabled. Sponsored by: Isilon Systems, Inc.
* - All of the bugs which lead to the complication of the LOOKUP_SHAREDjeff2005-03-241-52/+10
| | | | | | | config option have now been fixed. All filesystems are properly locked and checked via DEBUG_VFS_LOCKS. Remove the workaround code. Sponsored by: Isilon Systems, Inc.
* Add manual page for snd_via8233(4) and add it to the build.jcamou2005-03-242-0/+73
| | | | | | PR: docs/78322 Submitted by: Joel Dahl <joel@automatvapen.se> Approved by: trhodes (mentor)
* - Break after nested switch.mdodd2005-03-241-0/+2
| | | | - Default returns an error.
* Offer unhandled IOCTLS to fddi_ioctl().mdodd2005-03-241-8/+1
|
* POWERSTATECHANGE was misspelled.mdodd2005-03-241-1/+1
|
* - The NFS client was incorrectly masking SIGSTOP (which isps2005-03-231-19/+6
| | | | | | | | | | | non-maskable). - The NFS client needs to guard against spurious wakeups while waiting for the response. ltrace causes the process under question to wakeup (possibly from ptrace()), which causes NFS to wakeup from tsleep without the response being delivered. Submitted by: Mohan Srinivasan
* relocate the power state transition statements to thejmg2005-03-231-15/+5
| | | | | | | pci_set_powerstate_method function... Reviewed by: imp MFC after: 1 week
* MFC: BIND 9.3.1.hrs2005-03-232-2/+2
|
* fix kldloading of pci driver modules after boot on sparc64... sincejmg2005-03-231-1/+1
| | | | | | | we weren't using the pci module, we weren't restoring the pci state... Submitted by: imp MFC after: 5 days
* Unbreak buildworld on i386 when MODULES_WITH_WORLD is defined.cognet2005-03-231-0/+4
|
* Restore queue depth settings across tag disable events. The system oftengibbs2005-03-231-2/+13
| | | | | | | | | | | | | | | | disables tag queuing temporarily in order to allow controllers a window to safely perform transfer negotiation with non-compliant devices. Before this change, CAM would restore the queue depth to the controller specified maximum or device quirk level rather than any depth determined by reactions to QUEUE FULL/BUSY events or an explicit user setting. During device probe, initialize the flags field for XPT_SCAN_BUS. The uninitialized value often confused CAM into not bothering to issue an AC_FOUND_DEVICE async event for new devices. The reason this bug wasn't reported earlier is that CAM manually announces devices after the initial system bus scans. MFC: 3 days
* Style: de-lispify by removing extra parantheses in conditional expressions.harti2005-03-231-19/+18
|
* Document SEPARATE_LIVEFS (forgot this in previous commit).jhb2005-03-231-0/+3
|
* Style: make indentation 8 characters.harti2005-03-231-1600/+1679
|
* - Document the top-level package-split target.jhb2005-03-231-31/+36
| | | | | | | | | | | - Update the description of the cdrom.1 target and add notes for cdrom.2 and cdrom.3. - Document CD_PACKAGES_TREE (CD_EXTRA_BITS wasn't documented before). - Document CVSARGS. - Remove DISC[12]_{LABEL,NAME}. - Remove NOPORTREADMES. - Remove references to drivers.conf files and man page. - Update version number for a CURRENT snapshot to 6.0.
* Belatedly remove the drivers.conf(5) man page. The actual files andjhb2005-03-232-151/+0
| | | | supporting scripts were removed as part of the splitfs floppy rework.
* What should be the last major changes to the ISO layout:jhb2005-03-231-23/+34
| | | | | | | | | | | | | | | | | - When a separate livefs ISO is used, change the name of the tree directory to be R/cdrom/livefs and change the name of the iso to livefs.iso rather than using disc2. Instead, disc2 is now always going to be the packages disc regardless of the presence of a separate livefs which makes things simpler. - Build a very simple disc2 tree under R/cdrom that just includes the cdrom.inf file that the packages need. Also, build a disc2.iso image in the iso.1 target. Disc 2's volume label is "FreeBSD_Packages". - Retire CD_EXTRA_BITS and replace it with CD_PACKAGE_TREE. CD_EXTRA_BITS was specific to disc1, but CD_PACKAGE_TREE instead should point to a directory that has disc1 and disc2 subdirectories that contain the extra bits for each image. - Rename the bootonly volume label to "FreeBSD_bootonly" and just hardcode the disc1 and livefs volume names and iso suffixes.
* Make paths an explicite datatype instead of using the generic Lst.harti2005-03-2310-293/+273
| | | | | | A Path is now a TAILQ of PathElements each of which just points to a reference counted directory. Rename all functions dealing with Paths from the Dir_ prefix to a Path_ prefix.
* - Reword HOOKS paragraph also mentioning how data received on out* hooksglebius2005-03-231-1/+7
| | | | | is handled. - Xref flowctl.8
* Describe usage of newly implemented out* hooks.glebius2005-03-231-12/+20
|
* Implement "verbose" optional keyword for "show" command. This is analogglebius2005-03-232-6/+67
| | | | of Cisco's "show ip cache verbose flow" command.
* o Document net.inet.ip.portrange.random* sysctls.maxim2005-03-232-8/+26
| | | | | | | | o Correct a comment about random port allocation threshold implementation. Reviewed by: silby, ru MFC after: 3 days
* Document support for the ITE IT8212F.brueffer2005-03-231-1/+3
| | | | MFC after: 3 days
* Bounds check the user-supplied length used in a copyout() indas2005-03-231-0/+2
| | | | | | | | | | svr4_do_getmsg(). In principle this bug could disclose data from kernel memory, but in practice, the SVR4 emulation layer is probably not functional enough to cause the relevant code path to be executed. In any case, the emulator has been disconnected from the build since 5.0-RELEASE. Found by: Coverity Prevent analysis tool
* Bounds check the length parameter to i386_set_ldt() before passing itdas2005-03-231-0/+2
| | | | | | | | | to kmem_alloc(). Failure to do this made it possible for user processes to cause a hard lock on i386 kernels. I believe this only affects 6-CURRENT on or after 2005-01-26. Found by: Coverity Prevent analysis tool Security: Local DOS
* Reject packets larger than IP_MAXPACKET in linux_sendto() for socketsdas2005-03-231-2/+3
| | | | | | | | | | | with the IP_HDRINCL option set. Without this change, a Linux process with access to a raw socket could cause a kernel panic. Raw sockets must be created by root, and are generally not consigned to untrusted applications; hence, the security implications of this bug are minimal. I believe this only affects 6-CURRENT on or after 2005-01-30. Found by: Coverity Prevent analysis tool Security: Local DOS
* Make ps_nargvstr and ps_nenvstr unsigned. This fixes an inputdas2005-03-232-4/+4
| | | | | | | | | | | validation error in procfs/linprocfs that can be exploited by local users to cause a kernel panic. All versions of FreeBSD with the patch referenced in SA-04:17.procfs have this bug, but versions without that patch have a more serious bug instead. This problem only affects systems on which procfs or linprocfs is mounted. Found by: Coverity Prevent analysis tool Security: Local DOS
* 1. Annotate the rc.conf reference with a hint to the "cloned_interfaces"rse2005-03-231-11/+5
| | | | | | | | | | | | variable, because it might be not obvious how to configure carp(4) devices in rc.conf. 2. Remove the sentence about the not implemented "carpdev" option (this was not imported from OpenBSD according to our source code) to avoid confusion. Reviewed by: glebius@ MFC after: 3 days
* Add verbiage to the description of the noexec mount option clarifyingcperciva2005-03-231-0/+5
| | | | | | | that it really wasn't intended as a security feature. Wording mostly by: simon Discussed with: secteam
* The live CD itself no longer has /stand since a long time ago; however,avatar2005-03-231-0/+1
| | | | | | | | | | | | | | there are still a couple of places under src/release such like fixit.profile assumed that system binary can be retrivied from /stand(ex: boot with the live CD and run "disklabel -e" in the fixit CD shell). Since /stand is still functional in fixit floppy, and there are more than one places in src/release needs to be updated(document for example) if we want to make use of something like /mnt2/rescue/vi. This commit try to deal with aforementioned inconsistency with minimal effort by simply create a symbolic link to /rescue. Reviewed by: jhb, sam (mentor)
* Fix use of uninitialized buf[0].pjd2005-03-221-2/+2
| | | | | Reported by: stefanf MFC after: 3 days
* Add support for bus_delete_resource() and make acpi_bus_alloc_gas() donjl2005-03-221-0/+18
| | | | this before setting a new resource.
OpenPOWER on IntegriCloud