summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo.den2004-10-112-2/+2
|
* Handle a malloc() failure when allocating urgent portsbrian2004-10-111-3/+8
| | | | PR: 59995
* When harvesting entropy from an ethernet mbuf, do so before freeing therwatson2004-10-111-1/+1
| | | | | | mbuf. RELENG_5 candidate.
* Add a bunch of malloc() return checksbrian2004-10-119-25/+61
| | | | | PR: 71592 Submitted by: Dan Lukes <dan@obluda.cz> with further changes
* Add entropy harvest mutex to hard-coded spin lock witness lock order,rwatson2004-10-111-2/+1
| | | | | | | | remove previous entropy harvesting mutex names as they are no longer present. Commit to this file was ommitted when randomdev_soft.c:1.5 was made. Feet shot: Robert Huff <roberthuff at rcn dot com>
* Rework sofree() logic to take into account a possible race with accept().rwatson2004-10-111-5/+19
| | | | | | | | | | | | | | | | | | | | | | Sockets in the listen queues have reference counts of 0, so if the protocol decides to disconnect the pcb and try to free the socket, this triggered a race with accept() wherein accept() would bump the reference count before sofree() had removed the socket from the listen queues, resulting in a panic in sofree() when it discovered it was freeing a referenced socket. This might happen if a RST came in prior to accept() on a TCP connection. The fix is two-fold: to expand the coverage of the accept mutex earlier in sofree() to prevent accept() from grabbing the socket after the "is it really safe to free" tests, and to expand the logic of the "is it really safe to free" tests to check that the refcount is still 0 (i.e., we didn't race). RELENG_5 candidate. Much discussion with and work by: green Reported by: Marc UBM Bocklet <ubm at u-boot-man dot de> Reported by: Vlad <marchenko at gmail dot com>
* Add 'virtual scrolling' support to moused(8). When holding down the middlephilip2004-10-112-3/+109
| | | | | | | mouse button, motions are interpreted as scrolling. Submitted by: Jordan Sissel <psionic-AT-csh.rit.edu> Approved by: njl
* Assign pointer NULL, not 0.glebius2004-10-111-1/+1
| | | | Approved by: julian (mentor)
* Merge from English version 1.780den2004-10-111-8/+54
| | | | Obtained from: The FreeBSD Russian Documentation Project
* Notify the user when the battery is critically low. In the future, wenjl2004-10-111-0/+4
| | | | | | | may want to shut down here but the chance of BIOS vendors getting this wrong is high. They're only supposed to announce this when all batteries hit their critical level but past experience indicates we should be conservative about this for now.
* If bus mastering control is not available (PM2_BLK), don't just disablenjl2004-10-111-16/+27
| | | | | C3. Instead, flush caches before entering C3. This may be slower but provides good power savings.
* Match surrounding style, not style(msmith).njl2004-10-111-16/+16
|
* Move the code for halting the CPU (acpi_cpu_c1) into machdep files.njl2004-10-117-17/+25
| | | | | | This removes the last MD portion of acpi_cpu.c. MFC after: 2 weeks
* Fix conflicts I didn't fix before I committed my busspace changes.imp2004-10-112-8/+4
| | | | Noticed by: ru@ (and likely tinderbox, I haven't checked)
* Fix off-by-one error in fd_native_types that results in a panic on bootpeadar2004-10-101-0/+1
| | | | | | for machines with 2.88M floppies. Reviewed By: phk
* Rename thread args to be called "td" rather than "p" to bedwmalone2004-10-101-6/+6
| | | | | | | | consistent with other bits of this file. There should be no functional change. Submitted by: Andrea Campi (many moons ago) MFC after: 2 month
* Add an '-a' switch to only display providers that are at leastle2004-10-102-3/+13
| | | | | | 0.1% busy. OK'ed by: phk
* Add additional information on how to cope with the change.mtm2004-10-101-0/+4
|
* Dont sleep with lock held.sos2004-10-101-1/+1
|
* Revert last commit since it breaks API.glebius2004-10-103-22/+21
| | | | Requested by: sam
* The got_siginfo = 0 should have been got_sigalarm=0 to match the otherimp2004-10-101-1/+1
| | | | | | passes. Submitted by: Dworkin Muller
* Don't release the slot twice.. sched_rem() has already done it.julian2004-10-101-1/+0
| | | | | Submitted by: stephan uphoff (ups at tree dot com) MFC after: 3 days
* Remove duplicate line.julian2004-10-101-1/+0
|
* Convert to newbus. (chances are we could now move this to dev/pbioimp2004-10-102-92/+122
| | | | | | since I believe it is now MI, but that hasn't been done yet). Reviewed by: dds
* Modify entropy harvesting locking strategy:rwatson2004-10-091-50/+41
| | | | | | | | | | | | | | | | | | | | | | | | | - Trade off granularity to reduce overhead, since the current model doesn't appear to reduce contention substantially: move to a single harvest mutex protecting harvesting queues, rather than one mutex per source plus a mutex for the free list. - Reduce mutex operations in a harvesting event to 2 from 4, and maintain lockless read to avoid mutex operations if the queue is full. - When reaping harvested entries from the queue, move all entries from the queue at once, and when done with them, insert them all into a thread-local queue for processing; then insert them all into the empty fifo at once. This reduces O(4n) mutex operations to O(2) mutex operations per wakeup. In the future, we may want to look at re-introducing granularity, although perhaps at the granularity of the source rather than the source class; both the new and old strategies would cause contention between different instances of the same source (i.e., multiple network interfaces). Reviewed by: markm
* Add a simple C-based TCP connection generator, which generates andrwatson2004-10-092-0/+160
| | | | | | closes the specified number of TCP connections sequentially and synchronously. Useful for trying to trigger races in the accept code.
* Fix fsbtodb() for UFS1. This fixes an overflow for file sizes >1 TB,njl2004-10-091-1/+1
| | | | | | | allowing for sizes up to 4 TB. This doesn't affect UFS2 since b is already a 64 bit type, coincidental with daddr_t. Submitted by: bde
* Add a note to the man page warning users about possible lock ordercsjp2004-10-091-0/+10
| | | | | | | | | reversals+system lock ups if they are using ucred based rules while running with debug.mpsafenet=1. I am working on merging a shared locking mechanism into ipfw which should take care of this problem, but it still requires a bit more testing and review.
* In the previous revision, I did not intend to change the default valuegreen2004-10-091-1/+1
| | | | | | of "nosleepwithlocks." Submitted by: ru
* Use the FP_ILOG macros from <math.h> rather than hardcoded return values.stefanf2004-10-092-6/+13
| | | | | | Also be prepared for FP_ILOGBNAN != INT_MAX. Reviewed by: md5
* o Backout rev. 1.16, see 1.3 commit log for more info.maxim2004-10-091-6/+4
| | | | | | | | | | | Requested by: bde o Remove unneeded sys/types.h and netinet/in.h from the synopsis and the example. o We do have struct in_addr in arpa/inet.h, so no need for netinet/in.h. o Mention where AF_* constants defined are. Educated by: bde
* Acquire the send socket buffer lock around tcp_output() activitiesrwatson2004-10-091-2/+14
| | | | | | | | | | reaching into the socket buffer. This prevents a number of potential races, including dereferencing of sb_mb while unlocked leading to a NULL pointer deref (how I found it). Potentially this might also explain other "odd" TCP behavior on SMP boxes (although haven't seen it reported). RELENG_5 candidate.
* Add SOCKBUF_UNLOCK_ASSERT(), which asserts that the current thread doesrwatson2004-10-091-0/+1
| | | | not hold the mutex for a socket buffer.
* Flush the register windows before we start changing the context.kensmith2004-10-091-0/+2
| | | | | Submitted by: Andrew Belashov <bel (at) orel.ru> (slightly modified) Reviewed by: jake
* Add support for the ICH6 in legacy mode.sos2004-10-092-0/+6
| | | | | | The AHCI part is not supported yet, but is in the works. 5.3 RC1 candidate
* Make fsck WARNS=2 clean.le2004-10-092-17/+17
|
* Include <unistd.h> for {g,s}eteuid().stefanf2004-10-091-0/+1
|
* Return 0, not NULL, from a function declared as returning int.des2004-10-091-1/+1
|
* Forcibly create symlinked headers, otherwise the build process may failjoerg2004-10-091-1/+1
| | | | if the target link already existed (e. g. -DNO_KERNELCLEAN).
* Remove inlined m_tag_free(). Rename _m_tag_free() to m_tag_free()glebius2004-10-093-22/+23
| | | | | | | | | | | | and make it visible (same way as in OpenBSD). Describe usage in manpage. This change is useful for creating custom free methods, which call default free method at their end. While here, make malloc declaration for mbuf tags more informative. Approved by: julian (mentor), sam MFC after: 1 month
* style(9)obrien2004-10-092-114/+102
|
* Don't "implicitly order all sleep locks before spin locks" in witnessgreen2004-10-091-1/+1
| | | | | | when the spin lock in question isn't -- it's the critical_enter() that KDB set. No more panic in DDB for console -> syscons -> tty -> knote operations.
* Don't use matchlvl attach arg. It seems to be not initializedtakawata2004-10-091-0/+3
| | | | in FreeBSD probe mechanism.
* Port NetBSD auxio driver. The driver was modified to use led(4) and canyongari2004-10-099-0/+501
| | | | | | | | | | | be used to announce various system activity. The auxio device provides auxiliary I/O functions and is found on various SBus/EBus UltraSPARC models. At present, only front panel LED is controlled by this driver. Approved by: jake (mentor) Reviewed by: joerg Tested by: joerg
* Don't count RNBC (internal buffer full) towards the RX error count since it'sscottl2004-10-091-1/+1
| | | | | | not really an error. Submitted by: Gerrit Nagelhout
* Delete a .Fn that had no argument andkeramida2004-10-092-2/+2
| | | | | | properly terminate a .Bl with a matching .El MFC after: 3 days
* 3 important fixes for growfs:scottl2004-10-091-22/+42
| | | | | | | | | | | | | | | | | | | | | | | 1) ginode() is passed a cylinder group number and inode number. The inode number is relative to the cg. Use this relative number rather than the absolute inode number when searching the cg inode bitmap to see if the inode is allocated. Using the absolute number quickly runs the check off the end of the array and causes invalid inodes to be referenced. 2) ginode() checks the absolute indoe number to make sure that it is greater than ROOTINO. However, the caller loops through all of the possible inode numbers and directly passes in values that are < ROOTINO. Instead of halting the program with an error, just return NULL. 3) When allocating new cylinder groups, growfs was initializing all of the inodes in the group regardless of this only being required for UFS1. Not doing this for UFS2 provides a significant performance increase. These fixes allow growing a filesystem beyond a trivial amount and have been tested to grow an 8GB filesystem to 1.9TB. Much more testing would be appreciated. Obtained from: Sandvine, Inc.
* if system scope thread didn't set timeout, don't call clock_gettime syscalldavidxu2004-10-082-16/+18
| | | | | | before and after sleeping. Reviewed by: deischen
* Only do the geometry translations on ad* devices, other devices seems tosos2004-10-081-18/+22
| | | | | have their own way of life. Those other devices translations should be moved here as well.
* When send()ing to syslogd return ENOBUFS keep trying until success.glebius2004-10-081-8/+18
| | | | | | | | | | This fixes a case, when DoSed syslogd completely loses messages. PR: bin/72366 Discussed with: dwmalone, millert@OpenBSD.org Approved by: julian (mentor) Obtained from: OpenBSD (rev. 1.17, 1.21 by millert) MFC after: 3 months
OpenPOWER on IntegriCloud