summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Overhaul the entropy device:Mark Murray2003-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. Notes: svn path=/head/; revision=122871
* Add a sysctl, security.bsd.see_other_gids, similar in semanticsRobert Watson2003-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> Notes: svn path=/head/; revision=122869
* Staticize label_default_head to prevent it from leaking out of mac.c.Robert Watson2003-11-171-1/+1
| | | | | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=122868
* In rip_abort(), unlock the inpcb if we didn't detach it, or we mayOlivier Houchard2003-11-171-0/+2
| | | | | | | | | recurse on the lock before destroying the mutex. Submitted by: sam Notes: svn path=/head/; revision=122867
* move rate control change messages under ath_debugSam Leffler2003-11-171-2/+2
| | | | Notes: svn path=/head/; revision=122866
* Fixed two memory leaks.Ruslan Ermilov2003-11-171-1/+3
| | | | | | | Reviewed by: harti Notes: svn path=/head/; revision=122865
* Check the correct set of interface flags and fix a memory leak.Ruslan Ermilov2003-11-171-1/+2
| | | | | | | Reviewed by: harti Notes: svn path=/head/; revision=122864
* o fix WEP use in hostap mode; need to reset the pointer to theSam Leffler2003-11-171-1/+2
| | | | | | | 802.11 packet header after stripping the WEP header on input Notes: svn path=/head/; revision=122863
* on a beacon miss try to reassociate before starting a scanSam Leffler2003-11-171-2/+9
| | | | | | | Submitted by: Henry Qian Notes: svn path=/head/; revision=122862
* Add a MAC check for VOP_LOOKUP() in the Linux getwcd() implementation.Robert Watson2003-11-171-1/+5
| | | | | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=122861
* - Change the i386's sf_buf implementation so that it never allocatesAlan Cox2003-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/.) Notes: svn path=/head/; revision=122860
* Update hier(7) to reflect the world with respect to /lib and /libexec.Gordon Tetlow2003-11-171-0/+10
| | | | Notes: svn path=/head/; revision=122859
* Add an entry to the BUGS section indicating that Vinum cannot currentlyRobert Watson2003-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. Notes: svn path=/head/; revision=122858
* Don't attempt to make devices if we're using devfs. ThisRobert Watson2003-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 Notes: svn path=/head/; revision=122857
* No need for two copies of this file; there is already a distributionMark Murray2003-11-171-70/+0
| | | | | | | | | copy in src/crypto/heimdal/... Reported by: ru Notes: svn path=/head/; revision=122856
* * Auto-detect what device to use if none is specifiedEivind Eklund2003-11-172-18/+33
| | | | | | | | * Replace references to mcd0 with acd0 (doc only) * Remove references to the "c" partition (doc only - code was already fixed) Notes: svn path=/head/; revision=122855
* __FBSDID; remove duplicate <ctype.h>; try to reduce style inconsistencies.Dag-Erling Smørgrav2003-11-171-46/+43
| | | | Notes: svn path=/head/; revision=122854
* Sort includes, and remove superfluous <sys/types.h>Dag-Erling Smørgrav2003-11-171-15/+15
| | | | Notes: svn path=/head/; revision=122853
* Instead of blindly loading the ums module and bailing out if that fails,Dag-Erling Smørgrav2003-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> Notes: svn path=/head/; revision=122852
* Add SMP changes as should have been committed as rev 1.28Peter Wemm2003-11-171-26/+7
| | | | Notes: svn path=/head/; revision=122851
* Restore file accidently killed in the crossfire from the smp commit.Peter Wemm2003-11-171-0/+152
| | | | Notes: svn path=/head/; revision=122850
* Initial landing of SMP support for FreeBSD/amd64.Peter Wemm2003-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. Notes: svn path=/head/; revision=122849
* - Mark ksq_assigned as volatile so that when this code is used withoutJeff Roberson2003-11-171-3/+3
| | | | | | | sched_lock we can be sure that we'll pick up the new value. Notes: svn path=/head/; revision=122848
* - Remove long dead code. rslices hasn't been used in some time and neitherJeff Roberson2003-11-171-52/+4
| | | | | | | has sched_pickcpu(). Notes: svn path=/head/; revision=122847
* correct to look right interface.Hajimu UMEMOTO2003-11-171-1/+1
| | | | Notes: svn path=/head/; revision=122846
* Oh, how embarresing. I broke my own platform. :-)Peter Wemm2003-11-171-4/+4
| | | | Notes: svn path=/head/; revision=122845
* Tweaked the siointr1() so that it works better at 921600 bps, especiallyBruce Evans2003-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%. Notes: svn path=/head/; revision=122844
* Remove the BUGS section introduced in rev 1.11 now that the problemDavid Schultz2003-11-172-30/+0
| | | | | | | has been addressed. Notes: svn path=/head/; revision=122843
* Reimplement nologin(8) as a C program. This allows us to staticallyDavid Schultz2003-11-176-80/+58
| | | | | | | | | | link it at low cost and avoid environment poisoning attacks associated with LD_LIBRARY_PATH. Suggested by: rwatson Notes: svn path=/head/; revision=122842
* Widen the enable/disable helper function's argument in line with thePeter Wemm2003-11-1715-67/+45
| | | | | | | ithread_create() changes etc. This should be mostly a NOP. Notes: svn path=/head/; revision=122841
* Expand the argument to the ithread enable/disable helper hooks from anPeter Wemm2003-11-172-9/+9
| | | | | | | int to something big enough to hold a pointer. amd64 needs this. Notes: svn path=/head/; revision=122840
* Declare crc32 static. There's a copy in libz that conflicts for theMarcel Moolenaar2003-11-171-1/+1
| | | | | | | | | crunched binary. Found by: make release Notes: svn path=/head/; revision=122839
* Start turning on a few devices in the amd64 hardware notes, based onBruce A. Mah2003-11-172-16/+16
| | | | | | | | | things that I've observed to work. Obtained from: sledge, various dmesg(1) output messages from peter Notes: svn path=/head/; revision=122838
* Ignore errors on ln. This is a quick fix for the make depend twice inWarner Losh2003-11-171-1/+1
| | | | | | | | a row being broken. A better filx will come as soon as I have time to analyse things more deeply. Notes: svn path=/head/; revision=122837
* /rescue/b{,un}zip exists, so build this dynamically now.David E. O'Brien2003-11-171-2/+0
| | | | Notes: svn path=/head/; revision=122836
* /rescue/g{{,un}zip,zcat} exist, so build this dynamically now.David E. O'Brien2003-11-171-2/+0
| | | | Notes: svn path=/head/; revision=122835
* /rescue/tar exists, so build this dynamic now.David E. O'Brien2003-11-171-2/+0
| | | | Notes: svn path=/head/; revision=122834
* Fixed pedantic warnings for statement-expressions using __extension__Bruce Evans2003-11-172-8/+8
| | | | | | | | and by not using a statement-expression for the non-expression __PCPU_SET(). Notes: svn path=/head/; revision=122833
* Copy ukbdmap.h rules from .i386.Warner Losh2003-11-171-0/+6
| | | | | | | | | # maybe this should be in files. # This may fix sparc64 tinderbox. I'll kinow in a few hours. Notes: svn path=/head/; revision=122832
* Baby steps. Set WARNS=1 for libc.Jacques Vidrine2003-11-171-0/+1
| | | | Notes: svn path=/head/; revision=122831
* Detect range errors when using the %s specifier. Previously, LONG_MAXJacques Vidrine2003-11-171-3/+10
| | | | | | | | | | was rejected as a range error, while any values less than LONG_MIN were silently substituted with LONG_MIN. Furthermore, on some platforms `time_t' has less range than `long' (e.g. alpha), which may give incorrect results when parsing some strings. Notes: svn path=/head/; revision=122830
* Fixed a pedantic syntax error (a stray semicolon at the end ofBruce Evans2003-11-173-3/+3
| | | | | | | PCPU_MD_FIELDS). Notes: svn path=/head/; revision=122829
* Fix a few cases where MT_TAG-type "fake mbufs" are created on the stack, butBrian Feldman2003-11-172-0/+3
| | | | | | | | | | | | do not have mh_nextpkt initialized. Somtimes what's there is "1", and the ip_input() code pukes trying to m_free() it, rendering divert sockets and such broken. This really underscores the need to get rid of MT_TAG. Reviewed by: rwatson Notes: svn path=/head/; revision=122828
* Fixed pedantic syntax errors. Many macros didn't permit a semicolon afterBruce Evans2003-11-171-3/+6
| | | | | | | | their invocation in the !KLD_MODULE case, but a semicolon is provided after all invocations and is required in the KLD_MODULE case. Notes: svn path=/head/; revision=122827
* Avoid a warning for compiling with `gcc -Wbad-function cast'. (ThisBruce Evans2003-11-171-1/+5
| | | | | | | | | is the warning that points to the bug in `(char *)malloc(...)' where malloc() is implicitly declared as returning int. We do similar things here, but they work because u_int is the same as uintptr_t on i386's.) Notes: svn path=/head/; revision=122826
* Print the dirpref avgfilesize and avgfpdir parameters.Don Lewis2003-11-171-0/+2
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=122825
* Don't implement mpo_destroy() for Biba, LOMAC, and MLS, as theyRobert Watson2003-11-173-21/+0
| | | | | | | | | | aren't allowed to be unloaded. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=122824
* Update a comment about needing to fix NFS server credential useRobert Watson2003-11-171-1/+1
| | | | | | | | by 5.0-RELEASE: make it now read 5.3-RELEASE to be realistic. Still needs fixing... Notes: svn path=/head/; revision=122823
* Document nologin(8) as being insecure in conjunction with a dynamicDavid Schultz2003-11-172-0/+30
| | | | | | | root and suggest alternatives. Notes: svn path=/head/; revision=122822
* - Remove unnecessary synchronization from sf_buf_init(). (There is onlyAlan Cox2003-11-167-14/+0
| | | | | | | one active CPU when sf_buf_init() is performed.) Notes: svn path=/head/; revision=122821