summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Off by one error in malloc.phk2003-11-191-1/+1
| | | | Approved by: re@
* Documented missing EINVAL errno valuedds2003-11-191-0/+6
| | | | | | | | kern_prot.c: if (ngrp > NGROUPS) return (EINVAL); MFC after: 2 weeks
* o Remove @- from the ln and change it to a -sf. This was bogus, andimp2003-11-199-9/+7
| | | | | | | | | | | | regocnized as such at the time. Now that the other bogons in the tree have been fixed, we can remove this ugly kludge. o Remove stale/bogus opt_foo.h files. These are left over from by-gone resources. And they point to the need, yet again, to improve the build system so meta information is only in one place. Submitted by: ru Reviewed by: bde Approved by: re@ (jhb)
* Fix vnode locking in fdesc_setattr. Lock vnode before invokingkan2003-11-191-5/+5
| | | | | | VOP_SETATTR on it. Approved by: re@ (rwatson)
* Do not call VOP_GETATTR in getdents function. It does not serve anykan2003-11-192-12/+0
| | | | | | | | | | purpose and the resulting vattr structure was ignored. In addition, the VOP_GETATTR call was made with no vnode lock held, resulting in vnode locking violation panic with debug kernels. Reported by: truckman Approved by: re@ (rwatson)
* Lower the maximum ACK timeout for GRE packets from 10 to 1 second.archie2003-11-181-1/+1
| | | | | | | | | In practice it seems that in situations of high packet loss the ACK timeout seems to hit this maximum (perhaps inappropriately, but the estimation algorithm is not perfect, so apparently it happens). In any case, 10 seconds is way too high a value so lower to 1 second. MFC after: 3 days
* Use the class->init() to hitch up preload devices, rather than rely onphk2003-11-181-2/+6
| | | | | | | | | the "old" SYSINIT. This makes sure things happen in the right order. XXX: md(4) needs to be fully geom-ified and in particluar /dev/md.ctl should be abandonded for the GEOM OaM api. Approved by: re@
* Call class->init() an class->fini() while the class is hooked up,phk2003-11-181-3/+5
| | | | | | | | | | | rather than right before and right after. This allows these routines to manipulate the mesh. KASSERT that nobody creates a geom on an alien class. Assert topology in g_valid_obj(). Approved by: re@
* Add support for the SiS964 ATA/SATA southbridge.sos2003-11-182-9/+19
| | | | | | This could not have been done without the support from kuriyama. Approved by: re@
* Work around the problem that some CDROM drives might return differentsos2003-11-181-3/+5
| | | | | | | | TOC's for the same media!! that borks up GEOM. Although this looks like bad HW the following patch removes the chance for GEOM panic'ing. Approved by: re@
* Hackfix to patch around a kernel panic I introduced. Real fix tomarkm2003-11-181-0/+4
| | | | | | follow. In the meanwhile, we are not harvesting interrupt entropy. Approved by: re (jhb)
* Install the user trap handlers that libc provides from a constructor, sojake2003-11-181-0/+2
| | | | | | | | that they will be installed before application constructors are invoked. Its possible to link applications such that this fails, application code is invoked before they are installed, but, well, Don't Do That. Approved by: re (jhb)
* Replace the dangerous strcpy() call with strlcpy(), instead of the safe onetjr2003-11-181-2/+2
| | | | | | that was incorrectly changed in rev. 1.61. Approved by: re
* Fix a harmless bug and add a ')' in a debugging printf.phk2003-11-181-2/+2
| | | | Submitted by: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
* Use UMA zone allocator for Biba and MLS labels rather than MALLOC(9).rwatson2003-11-182-12/+12
| | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Catch up with the latest in device naming.obrien2003-11-181-5/+5
|
* Revert a NOOP change to Makefile that slipped into the last commit.rwatson2003-11-181-1/+0
| | | | Pointed out by: tjr
* Introduce a MAC label reference in 'struct inpcb', which cachesrwatson2003-11-1839-40/+494
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | the MAC label referenced from 'struct socket' in the IPv4 and IPv6-based protocols. This permits MAC labels to be checked during network delivery operations without dereferencing inp->inp_socket to get to so->so_label, which will eventually avoid our having to grab the socket lock during delivery at the network layer. This change introduces 'struct inpcb' as a labeled object to the MAC Framework, along with the normal circus of entry points: initialization, creation from socket, destruction, as well as a delivery access control check. For most policies, the inpcb label will simply be a cache of the socket label, so a new protocol switch method is introduced, pr_sosetlabel() to notify protocols that the socket layer label has been updated so that the cache can be updated while holding appropriate locks. Most protocols implement this using pru_sosetlabel_null(), but IPv4/IPv6 protocols using inpcbs use the the worker function in_pcbsosetlabel(), which calls into the MAC Framework to perform a cache update. Biba, LOMAC, and MLS implement these entry points, as do the stub policy, and test policy. Reviewed by: sam, bms Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Document that the live dump command (`dump -L') creates its snapshotmckusick2003-11-181-1/+12
| | | | | | | in the .snap directory in the root of the filesystem being dumped. Document that if the .snap directory is missing that it must be created manually and that it should be owned by user root and group operator and set to mode 770 before a live dump can be run.
* Clarify UPDATING language: do buildworld before buildkernel, andrwatson2003-11-171-4/+4
| | | | | | | do installkernel before installworld, rather than don't make world before installkernel. Pointed out by: gad
* Merged from sys/dev/sio/sio.c revisions 1.415 and 1.416.bde2003-11-172-20/+26
| | | | | Approved by: nyan (Blanket approval for simple changes in sio.)
* Overhaul the entropy device:markm2003-11-175-123/+101
| | | | | | | | | | | | | | | | | | o Each source gets its own queue, which is a FIFO, not a ring buffer. The FIFOs are implemented with the sys/queue.h macros. The separation is so that a low entropy/high rate source can't swamp the harvester with low-grade entropy and destroy the reseeds. o Each FIFO is limited to 256 (set as a macro, so adjustable) events queueable. Full FIFOs are ignored by the harvester. This is to prevent memory wastage, and helps to keep the kernel thread CPU usage within reasonable limits. o There is no need to break up the event harvesting into ${burst} sized chunks, so retire that feature. o Break the device away from its roots with the memory device, and allow it to get its major number automagically.
* Add a sysctl, security.bsd.see_other_gids, similar in semanticsrwatson2003-11-171-2/+51
| | | | | | | to see_other_uids but with the logical conversion. This is based on (but not identical to) the patch submitted by Samy Al Bahra. Submitted by: Samy Al Bahra <samy@kerneled.com>
* Staticize label_default_head to prevent it from leaking out of mac.c.rwatson2003-11-171-1/+1
| | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* In rip_abort(), unlock the inpcb if we didn't detach it, or we maycognet2003-11-171-0/+2
| | | | | | recurse on the lock before destroying the mutex. Submitted by: sam
* move rate control change messages under ath_debugsam2003-11-171-2/+2
|
* Fixed two memory leaks.ru2003-11-171-1/+3
| | | | Reviewed by: harti
* Check the correct set of interface flags and fix a memory leak.ru2003-11-171-1/+2
| | | | Reviewed by: harti
* o fix WEP use in hostap mode; need to reset the pointer to thesam2003-11-171-1/+2
| | | | 802.11 packet header after stripping the WEP header on input
* on a beacon miss try to reassociate before starting a scansam2003-11-171-2/+9
| | | | Submitted by: Henry Qian
* Add a MAC check for VOP_LOOKUP() in the Linux getwcd() implementation.rwatson2003-11-171-1/+5
| | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* - Change the i386's sf_buf implementation so that it never allocatesalc2003-11-172-27/+50
| | | | | | | | | | | | | | | more than one sf_buf for one vm_page. To accomplish this, we add a global hash table mapping vm_pages to sf_bufs and a reference count to each sf_buf. (This is similar to the patches for RELENG_4 at http://www.cs.princeton.edu/~yruan/debox/.) For the uninitiated, an sf_buf is nothing more than a kernel virtual address that is used for temporary virtual-to-physical mappings by sendfile(2) and zero-copy sockets. As such, there is no reason for one vm_page to have several sf_bufs mapping it. In fact, using more than one sf_buf for a single vm_page increases the likelihood that sendfile(2) blocks, hurting throughput. (See http://www.cs.princeton.edu/~yruan/debox/.)
* Update hier(7) to reflect the world with respect to /lib and /libexec.gordon2003-11-171-0/+10
|
* Add an entry to the BUGS section indicating that Vinum cannot currentlyrwatson2003-11-171-0/+7
| | | | | | be used on devices with a block size other than DEV_BSIZE (512), which specifically includes being unable to run on a swap-backed md device. Swap-backed md devices use a 4k block size.
* Don't attempt to make devices if we're using devfs. Thisrwatson2003-11-171-5/+10
| | | | | | | substantially cleans up the output when running the vinum management tool, and also makes it work better. Long sustained silence from: grog
* No need for two copies of this file; there is already a distributionmarkm2003-11-171-70/+0
| | | | | | copy in src/crypto/heimdal/... Reported by: ru
* * Auto-detect what device to use if none is specifiedeivind2003-11-172-18/+33
| | | | | * Replace references to mcd0 with acd0 (doc only) * Remove references to the "c" partition (doc only - code was already fixed)
* __FBSDID; remove duplicate <ctype.h>; try to reduce style inconsistencies.des2003-11-171-46/+43
|
* Sort includes, and remove superfluous <sys/types.h>des2003-11-171-15/+15
|
* Instead of blindly loading the ums module and bailing out if that fails,des2003-11-171-2/+38
| | | | | | | | check if it's already loaded or compiled into the kernel, and only try to load it if it isn't. PR: bin/59368 Submitted by: Jens Rehsack <rehsack@liwing.de>
* Add SMP changes as should have been committed as rev 1.28peter2003-11-171-26/+7
|
* Restore file accidently killed in the crossfire from the smp commit.peter2003-11-171-0/+152
|
* Initial landing of SMP support for FreeBSD/amd64.peter2003-11-1750-2298/+1113
| | | | | | | | | | | | | | | | - This is heavily derived from John Baldwin's apic/pci cleanup on i386. - I have completely rewritten or drastically cleaned up some other parts. (in particular, bootstrap) - This is still a WIP. It seems that there are some highly bogus bioses on nVidia nForce3-150 boards. I can't stress how broken these boards are. I have a workaround in mind, but right now the Asus SK8N is broken. The Gigabyte K8NPro (nVidia based) is also mind-numbingly hosed. - Most of my testing has been with SCHED_ULE. SCHED_4BSD works. - the apic and acpi components are 'standard'. - If you have an nVidia nForce3-150 board, you are stuck with 'device atpic' in addition, because they somehow managed to forget to connect the 8254 timer to the apic, even though its in the same silicon! ARGH! This directly violates the ACPI spec.
* - Mark ksq_assigned as volatile so that when this code is used withoutjeff2003-11-171-3/+3
| | | | sched_lock we can be sure that we'll pick up the new value.
* - Remove long dead code. rslices hasn't been used in some time and neitherjeff2003-11-171-52/+4
| | | | has sched_pickcpu().
* correct to look right interface.ume2003-11-171-1/+1
|
* Oh, how embarresing. I broke my own platform. :-)peter2003-11-171-4/+4
|
* Tweaked the siointr1() so that it works better at 921600 bps, especiallybde2003-11-171-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | with multiple ports on a shared interrupt demultiplexed by the puc_intr() handler. siointr1() first read as much input as possible and then checked all possibly-relevant status registers, partly for robustness and partly for historical reasons. This is very bad if it is called for every port sharing an interrupt like puc_intr() does. It can spend too long reading all the input for some ports when the interrupt is for a more urgent event on another, or just too long checking all the status registers when there are lots of ports. The inter-character time is too long for reading all the input even when the interrupt is for a transmitter interrupt on the same port, and at 921600 bps the inter-char time is 10.85 usec and was often exceeded with just 2 ports, leaving the transmitters idle for about 6% of the time. The tweak is to break out of the read loop after reading 1 char if output can be done. This avoids most of the idle transmitter time for 2 active ports at 921600 bps bidirectional on the test system. It also reduces overhead by about 20%. More complete fixes use the programmable tx low watermark on 16950's and reduce overhead by another 65%.
* Remove the BUGS section introduced in rev 1.11 now that the problemdas2003-11-172-30/+0
| | | | has been addressed.
* Reimplement nologin(8) as a C program. This allows us to staticallydas2003-11-176-80/+58
| | | | | | | link it at low cost and avoid environment poisoning attacks associated with LD_LIBRARY_PATH. Suggested by: rwatson
OpenPOWER on IntegriCloud