summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | vp->v_id is a private field for the vfs namecache and it is a big mistakephk2005-02-221-13/+9
| | | | | | | | | | | | | | that NFS ever started using it. Long time ago I added the necessary vhold()/vdrop() calls to replace it, but forgot to remove the v_id code. Do it now.
* | Make dev_ref() require the dev_lock() to be held and use it fromphk2005-02-222-3/+2
| | | | | | | | devfs instead of directly frobbing the si_refcount.
* | When generating a phase II ARP lookup from aarpwhohas(), use arwatson2005-02-221-1/+1
| | | | | | | | | | | | non-sleeping mbuf allocation. MFC after: 1 week
* | In the ddp_output() path, which can be called in a variety of threadingrwatson2005-02-221-2/+2
| | | | | | | | | | | | and locking contexts, use a non-sleeping allocation for mbufs. MFC after: 1 week
* | - In if_link_state_change() extract function body from if-block, to improveglebius2005-02-221-19/+25
| | | | | | | | | | | | | | | | readability. - Call carp_carpdev_state() from if_link_state_change() if interface has associated CARP interface. Sponsored by: Rambler
* | Convert the aa_ifaddr timeout to a callout, and run the aarprobe calloutrwatson2005-02-224-14/+24
| | | | | | | | | | | | | | MPSAFE. Acquire the aarptab_mtx to make sure that the callout and msleep in the ioctl thread don't race. MFC after: 1 week
* | Remove vfinddev(), it is generally bogus when faced with jails andphk2005-02-222-21/+0
| | | | | | | | chroot and has no legitimate use(r)s in the tree.
* | Use afswch->af_other_status for carp_status() and pfsync_status().glebius2005-02-222-6/+6
| | | | | | | | Sponsored by: Rambler
* | Neuter DRM(mapbufs) until somebody finds time to try to fix it.phk2005-02-221-0/+4
| | | | | | | | | | | | It is _never_ OK to find a vnode from a struct cdev because you have no way of telling if you get the right one. You might be in jail or chroot for instance.
* | Add CARP to kernel build.glebius2005-02-221-0/+1
| |
* | Neuter linux_ustat() until somebody finds time to try to fix it.phk2005-02-221-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fundamental problem is that we get only the lower 8 bits of the minor device number so there is no guarantee that we can actually find the disk device in question at all. This was probably a bigger issue pre-GEOM where the upper bits signaled which slice were in use. The secondary problem is how we get from (partial) dev_t to vnode. The correct implementation will involve traversing the mount list looking for a perfect match or a possible match (for truncated minor).
* | New release notes:hrs2005-02-222-0/+10
| | | | | | | | CARP from OpenBSD.
* | When invoking callout_init(), spell '1' as "CALLOUT_MPSAFE".rwatson2005-02-221-1/+1
| | | | | | | | MFC after: 3 days
* | Add CARP (Common Address Redundancy Protocol), which allows multipleglebius2005-02-2228-12/+2796
| | | | | | | | | | | | | | | | | | | | | | | | | | hosts to share an IP address, providing high availability and load balancing. Original work on CARP done by Michael Shalayeff, with many additions by Marco Pfatschbacher and Ryan McBride. FreeBSD port done solely by Max Laier. Patch by: mlaier Obtained from: OpenBSD (mickey, mcbride)
* | New release notes:hrs2005-02-222-6/+36
| | | | | | | | | | | | | | | | | | 32MB memory allocation for legacy PCI bridges, pbio(4), and vge(4) polling support. MFC: IPv6 MTU feedback disabled.
* | We can make code simplier after last change.glebius2005-02-221-2/+2
| | | | | | | | Noticed by: Andrew Thompson
* | Fix the prototypes by addings some constness. This should have beenharti2005-02-221-2/+2
| | | | | | | | committed together with the commit to dir.c:1.48.
* | Do not print kernel debugging on console. In case of serial consoleglebius2005-02-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | this can cause a really heavy load on system. Several kernel debugging messages can be triggered even remotely (e.g. bad ARP replies). Use kern.warning instead, so that really significant messages still will be printed on console. Reviewed by: current@ MFC after: 1 week Security: this change fixes a DoS condition, when default system console is serial, and box is flooded with bogus ARP packets
* | Use the new LST_FOREACH macro throughout the file and replace calls toharti2005-02-221-70/+20
| | | | | | | | Lst_ForEach and Lst_Find.
* | Invent the LST_FOREACH macro for looping through a list. In contrastharti2005-02-221-0/+4
| | | | | | | | | | | | | | to the Lst_ForEach function this macro reduces the number of function calls per invocation by N + 1 (where N is the number of list elements) and increases code locality thereby increasing readability and (maybe) performance.
* | In in_pcbconnect_setup() jailed sockets are treated specially: if localglebius2005-02-221-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | address is not supplied, then jail IP is choosed and in_pcbbind() is called. Since udp_output() does not save local addr after call to in_pcbconnect_setup(), in_pcbbind() is called for each packet, and this is incorrect. So, we shall treat jailed sockets specially in udp_output(), we will save their local address. This fixes a long standing bug with broken sendto() system call in jails. PR: kern/26506 Reviewed by: rwatson MFC after: 2 weeks
* | In in_pcbconnect_setup() remove a check that route points atglebius2005-02-221-4/+2
| | | | | | | | | | | | | | | | | | loopback interface. Nobody have explained me sense of this check. It breaks connect() system call to a destination address which is loopback routed (e.g. blackholed). Reviewed by: silence on net@ MFC after: 2 weeks
* | Increase the maximum to wait for a transition from 1 to 10 ms. In somenjl2005-02-221-4/+16
| | | | | | | | | | | | | | modes, systems may take longer. If the status values don't match, try matching just the lowest 8 bits if no bits above 8 are set in the desired value. The IBM R32 has other bits set in the status register that are irrelevant to the expected value.
* | Support disabling individual cpufreq drivers with hints, e.g.,njl2005-02-224-0/+12
| | | | | | | | hint.ichss.0.disabled="1"
* | MFp4: Optimize in/out macros. Cache the handle and tag in softc andimp2005-02-222-44/+34
| | | | | | | | | | use them in the macros. Since the rman_get_bus{tag,handle} transitioned from macros to function calls, this unpessimizes that conversion.
* | Do not fail to initialize callouts (on SMP only) -- it leads to crashing.green2005-02-221-3/+4
| |
* | Minor optimization of calling enable_16bit. We always have to call itimp2005-02-221-7/+2
| | | | | | | | | | and error is going to be right for both forks of the if, so just return that.
* | MFS5: Minor style(9) tweak.delphij2005-02-221-1/+1
| |
* | remove dead codesam2005-02-221-2/+0
| | | | | | | | Submitted by: Coverity Prevent analysis tool
* | Set the start of the cooling time later on, when we're actually performingnjl2005-02-221-2/+2
| | | | | | | | | | | | | | | | | | the switch. Other interim tests (i.e., for minimum runtime) could invalidate the start time. This fixes transitions to cooler states in that now they go to the next active state (_AC0 -> _AC1) instead of going straight to off (_AC0 -> off). Submitted by: Alexandre "Sunny" Kovalenko (Alex.Kovalenko / verizon.net)
* | New release notes: SysV IPC objects with MAC support, auxio(4), pcii,bmah2005-02-222-0/+100
| | | | | | | | | | | | | | rtc (+MFC), uart(4) default tty driver for sparc64 (+MFC), snd_audiocs(4) (+MFC), cp(4)/ctau(4)/cx(4) MPSAFE (+MFC), em(4) hardware VLAN support disabled by default (+MFC), fxp(4) flow control disabled by default (+MFC), sppp(4) FR support (+MFC), libgpib.
* | Since the GPE handler is directly called by ACPI-CA and it may have unknownnjl2005-02-211-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | locks held, specify the ACPI_ISR flag to keep it from acquiring any more mutexes (which could potentially sleep.) This should fix "could sleep" warning messages on the following path: msleep() AcpiOsWaitSemaphore() AcpiUtAcquireMutex() AcpiDisableGpe() EcGpeHandler() AcpiEvGpeDispatch() AcpiEvGpeDetect() AcpiEvGpeDetect() AcpiEvSciXruptHandler()
* | In the current world order, solisten() implements the state transition ofrwatson2005-02-2111-60/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a socket from a regular socket to a listening socket able to accept new connections. As part of this state transition, solisten() calls into the protocol to update protocol-layer state. There were several bugs in this implementation that could result in a race wherein a TCP SYN received in the interval between the protocol state transition and the shortly following socket layer transition would result in a panic in the TCP code, as the socket would be in the TCPS_LISTEN state, but the socket would not have the SO_ACCEPTCONN flag set. This change does the following: - Pushes the socket state transition from the socket layer solisten() to to socket "library" routines called from the protocol. This permits the socket routines to be called while holding the protocol mutexes, preventing a race exposing the incomplete socket state transition to TCP after the TCP state transition has completed. The check for a socket layer state transition is performed by solisten_proto_check(), and the actual transition is performed by solisten_proto(). - Holds the socket lock for the duration of the socket state test and set, and over the protocol layer state transition, which is now possible as the socket lock is acquired by the protocol layer, rather than vice versa. This prevents additional state related races in the socket layer. This permits the dual transition of socket layer and protocol layer state to occur while holding locks for both layers, making the two changes atomic with respect to one another. Similar changes are likely require elsewhere in the socket/protocol code. Reported by: Peter Holm <peter@holm.cc> Review and fixes from: emax, Antoine Brodin <antoine.brodin@laposte.net> Philosophical head nod: gnn
* | Fixed compilation warnings.ru2005-02-211-1/+2
| |
* | MFR4_11: SA-04:16.fetch (+MFC), SA-04:17.procfs (+MFC).bmah2005-02-212-2/+70
| | | | | | | | | | | | | | | | | | New release notes: EN-05:01.nfs (+MFC), EN-05:02.sk (+MFC), EN-05:03.ipi (+MFC). To be consistent with other documentation, the release documentation will henceforth include the one-word keyword (e.g. "fetch", "procfs" above) in the names of advisories and errata.
* | New release notes: MemGuard, psm(4) improved Synaptics Touchpadbmah2005-02-212-12/+146
| | | | | | | | | | | | | | | | | | | | | | | | | | | | support, hme(4) MPSAFE (+MFC), random port number allocation fix, IPX/SPX locking, gshsec(8), dump(8) -n, some ipfw(8) abbreviated options deprecated, libarchive ISO and ZIP support, rpmatch(3), telnet(1)/telnetd(8) -S, manpage cleanup. MFCs noted: cd9660 less chatty, Modified release notes: Fix typo (s/icss/ichss/) [1], add missing "driver" in a couple of notes. Submitted by: njl [1]
* | Bump __FreeBSD_version for vswprintf(3) fix. Some ports depend on it.fjoe2005-02-211-1/+1
| |
* | Fix EOVERFLOW detection in vswprintf(3)fjoe2005-02-211-4/+5
| | | | | | | | | | Reviewed by: tjr MFC after: 2 weeks
* | Use hardware instructions for sqrt() and sqrtf().das2005-02-213-0/+69
| |
* | Use double arithmetic instead of simulating it with two floats. Thisdas2005-02-211-13/+8
| | | | | | | | | | | | | | results in a performance gain on the order of 10% for amd64 (sledge), ia64 (pluto1), i386+SSE (Pentium 4), and sparc64 (panther), and a negligible improvement for i386 without SSE. (The i386 port still uses the hardware instruction, though.)
* | Only send packet to bpf if we are committed to send it. Previously it wasmlaier2005-02-211-6/+10
| | | | | | | | | | | | | | | | | | possible that the same packet would show up multiple times. This poses some constraints on the TBD locking for snc(4) (see comment). Obtained from: DragonFlyBSD Submitted by: Joerg Sonnenberger Reviewed by: rwatson
* | Fix a terrible braino in pfi_maybe_destroy() and unbreak "$pfctl -Fall" withmlaier2005-02-211-2/+5
| | | | | | | | | | | | | | | | | | renamed interfaces. PR: kern/77645 Reported by: Harald Schmalzbauer <harryNOschmalzbauerSPAMde> Reviewed by: yongari MFC after: 3 days
* | Don't use the static CALLOUT_INITIALIZER for __FreeBSD_version >= 600000. Itmlaier2005-02-212-1/+9
| | | | | | | | | | | | | | | | | | | | | | was a bad idea, but since it is done like this in the vendor source we keep it around for older versions. As a safe guard against future misuse we don't even define CALLOUT_INITIALIZER anymore. This fixes ALTQ after callout_init_mtx() and takes altq_var.h off the vendor branch. Submitted by: Divacky Roman <xdivac02NOstud.fit.vutbrSPAMcz> (w/ changes)
* | New release notes:hrs2005-02-212-6/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | prompt parameter support in autoboot loader command, uplcom(4) CTS support, dc(4) ALTQ support, IPv6 MTU feedback disabled, ipfw(8) ALTQ classification and tagging, and newsyslog -d option. Update release notes: F/pc98 still uses OLDCARD[1], and fix some typos: s/compatability/compatibility s/behaviour/behavior/. Spotted by: nyan[1]
* | Remove the i387 versions of atan(), atan2(), and atan2f().das2005-02-214-106/+3
| | | | | | | | | | | | | | They are slower than the MI routines on modern hardware, except for degenerate cases such as the Pentium 4. PR: 67469
* | Fix an overflow when calculating the number of kilobytes from theps2005-02-212-2/+2
| | | | | | | | | | | | number of pages. Obtained from: Yahoo!
* | When aborting a UNIX domain socket bind() because VOP_CREATE() failed,rwatson2005-02-211-1/+3
| | | | | | | | | | | | make sure to call vn_finished_write(mp) before returning. MFC after: 3 days
* | Style: fix indendation to be 8 and use tabulators. Fix lines longer thanharti2005-02-211-693/+717
| | | | | | | | | | 80 characters and slightly reorder functions to get rid of static prototypes.
* | Document the terabyte "-s" parameter in the usage string.mr2005-02-211-1/+2
| | | | | | | | Split the usage line to not exceed 80 chars.
* | Forgot to set *freePtr to FALSE in another place.harti2005-02-211-0/+1
| | | | | | | | Submitted by: Max Okumoto <okumoto@ucsd.edu>
OpenPOWER on IntegriCloud