summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Summer of Code 2005: improve libalias - part 1 of 2piso2006-09-2632-303/+2133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the first part of my previous Summer of Code work, we get: -made libalias modular: -support for 'particular' protocols (like ftp/irc/etcetc) is no more hardcoded inside libalias, but it's available through external modules loadable at runtime -modules are available both in kernel (/boot/kernel/alias_*.ko) and user land (/lib/libalias_*) -protocols/applications modularized are: cuseeme, ftp, irc, nbt, pptp, skinny and smedia -added logging support for kernel side -cleanup After a buildworld, do a 'mergemaster -i' to install the file libalias.conf in /etc or manually copy it. During startup (and after every HUP signal) user land applications running the new libalias will try to read a file in /etc called libalias.conf: that file contains the list of modules to load. User land applications affected by this commit are ppp and natd: if libalias.conf is present in /etc you won't notice any difference. The only kernel land bit affected by this commit is ng_nat: if you are using ng_nat, and it doesn't correctly handle ftp/irc/etcetc sessions anymore, remember to kldload the correspondent module (i.e. kldload alias_ftp). General information and details about the inner working are available in the libalias man page under the section 'MODULAR ARCHITECTURE (AND ipfw(4) SUPPORT)'. NOTA BENE: this commit affects _ONLY_ libalias, ipfw in-kernel nat support will be part of the next libalias-related commit. Approved by: glebius Reviewed by: glebius, ru
* The need to run a filter also implies that bouncing could be possible, soscottl2006-09-261-5/+4
| | | | | | just use the COULD_BOUNCE flag for both and retire the USE_FILTER flag. This fixes the problem that rev 1.81 introduced with the if_bfe driver (and possibly others).
* Fix a memory leak in ipmi_unload().jhb2006-09-261-1/+3
| | | | | CID: 1542 Found by: Coverity Prevent
* Only support the SMB_OLD_BREAD ioctl if one of COMPAT_FREEBSD[456] isjhb2006-09-261-0/+6
| | | | defined.
* PC98 would also like a trademark.rwatson2006-09-261-1/+2
| | | | | | | | Who would have thought that getting a kernel printf right would be so tricky? MFC after: 3 days Submitted by: Gavin Atkinson <gavin dot atkinson at ury dot york dot ac dot uk>
* Add a value to the define I forgot, for the purity's sake.ru2006-09-261-1/+1
|
* Now that we have COMPAT_FREEBSD6 officially, use it from opt_compat.h.ru2006-09-262-2/+6
|
* Added COMPAT_FREEBSD6 option.ru2006-09-268-1/+11
|
* Begin the process of moving info to sysctl stuff for FreeBSDmjacob2006-09-262-1/+47
| | | | by providing OIDs for WWNN/WWPN and Initiator ID.
* Protect change to bo_flag by holding the bufobj mutex.tegge2006-09-261-0/+2
|
* Reduce fluctuations of mnt_flag to allow unlocked readers to get ategge2006-09-262-8/+7
| | | | slightly more consistent view.
* Don't restore MNT_QUOTA bit in mnt_flag after snapshot creation,tegge2006-09-261-1/+1
| | | | closing a race between nmount() and quotactl().
* Don't restore MNT_QUOTA bit in mnt_flag after a failed mount withtegge2006-09-261-1/+2
| | | | MNT_UPDATE flag, closing a race between nmount() and quotactl().
* Increase mnt_noasync once in softdep_mount() to disallow async io,tegge2006-09-262-0/+6
| | | | | | | closing a window where a file system using softupdates could be async for a short while if both MNT_UPDATE and MNT_ASYNC were passed as flags to nmount(). Add MNTK_SOFTDEP flag to ensure that softdep_mount() doesn't increase mnt_noasync multiple times.
* Add mnt_noasync counter to better handle interleaved calls to nmount(),tegge2006-09-2610-18/+40
| | | | | | sync() and sync_fsync() without losing MNT_ASYNC. Add MNTK_ASYNC flag which is set only when MNT_ASYNC is set and mnt_noasync is zero, and check that flag instead of MNT_ASYNC before initiating async io.
* Don't restore mnt_kern_flag on failed MNT_UPDATE mount, it can racetegge2006-09-261-5/+2
| | | | with dounmount(), causing loss of MNTK_UNMOUNT flag.
* Use mount interlock to protect all changes to mnt_flag and mnt_kern_flag.tegge2006-09-2627-22/+174
| | | | | This eliminates a race where MNT_UPDATE flag could be lost when nmount() raced against sync(), sync_fsync() or quotactl().
* fix calculating to_tsecr... This prevents the rtt calculations fromjmg2006-09-262-2/+2
| | | | going all wonky...
* SI_ORDER_THIRD + 2, not SI_ORDER_FOURTH + 2.rwatson2006-09-261-1/+1
| | | | | MFC after: 3 days Submitted by: mlaier
* Add "FreeBSD" trademark statement to copyright section of boot messages.rwatson2006-09-252-3/+9
| | | | | MFC after: 3 days Approved by: core, board at FreeBSDFoundation dot org
* Merge OpenBSM 1.0 alpha 12 import changes into src/sys/bsm. New eventsrwatson2006-09-251-1/+5
| | | | | | | for the Linuxulator. MFC after: 3 days Obtained from: TrustedBSD Project
* Fix an incompatibility between CARP and IPv4 multicast routing, wherebybms2006-09-251-0/+1
| | | | | | | | | | | | | the VRRPv2 advertisements will originate from the wrong source address. This only affects kernels compiled with MROUTING and after the MRT_INIT ioctl() has been issued. Set imo_multicast_vif in carp's softc to the invalid value -1 after it is zeroed by softc allocation, to stop the ip_output() path looking up the incorrect source address thinking a vif is set. PR: kern/100532 Submitted by: Bohus Plucinsky MFC after: 1 week
* Splelingbms2006-09-251-1/+1
| | | | Submitted by: pjd
* Update the mfi module build with the mfi_debug.c file.scottl2006-09-251-1/+3
|
* Add the mfi_debug.c file and MFI_DEBUG option.scottl2006-09-252-0/+2
|
* Add a command debugging module and a periodic watchdog timer.scottl2006-09-253-0/+287
| | | | Sponsored by: IronPort
* add support for the ALI/ULI M5288 AHCI part.sos2006-09-251-0/+7
| | | | patch by: Sven Petai
* Account for output IP datagrams on the ifaddr where they originated from,bms2006-09-252-8/+26
| | | | | | | | *not* the first ifaddr on the ifp. This is similar to what NetBSD does. PR: kern/72936 Submitted by: alfred Reviewed by: andre
* if min is greater than max, prefer max over min... I managed to get ajmg2006-09-251-1/+1
| | | | | | retransmit timer that was going to take 19 days to trigger... Reviewed by: silby
* remove unnecessary NULL check...jmg2006-09-251-2/+1
| | | | Coverity ID: 1545
* Add a newline to the printf.imp2006-09-241-1/+1
|
* Fix uninitialized variable warning.netchild2006-09-241-0/+1
| | | | | Submitted by: dhw Reviewed by: ryanb
* Rework the way errors are handled with respect to how audit records arerwatson2006-09-241-100/+145
| | | | | | | | | | | | | | | | | | | | | | | | written to the audit trail file: - audit_record_write() now returns void, and all file system specific error handling occurs inside this function. This pushes error handling complexity out of the record demux routine that hands off to both the trail and audit pipes, and makes trail behavior more consistent with pipes as a record destination. - Rate limit kernel printfs associated with running low on space. Rate limit audit triggers for low space. Rate limit printfs for fail stop events. Rate limit audit worker write error printfs. - Document in detail the types of limits and space checks we perform, and combine common cases. This improves the audit subsystems tolerance to low space conditions by avoiding toasting the console with printfs are waking up the audit daemon continuously. MFC after: 3 days Obtained from: TrustedBSD Project
* Disable an overly-verbose warning message by default.hrs2006-09-241-3/+6
| | | | | Suggested by: njl MFC after: 3 days
* hide kqueue_register from public view, and replace it w/ kqfd_register...jmg2006-09-243-37/+38
| | | | this eliminates a possible race in aio registering a kevent..
* return EBADF instead of successfully attaching (and then panicing) whenjmg2006-09-241-1/+1
| | | | | | | an fd is dieing.. Convinced by: jhb PR: 103127
* add KTRACE hooks into kevent... This will help people debug their kqueuejmg2006-09-241-2/+38
| | | | | | | | | | programs to find out exactly which events were registered and which were returned... This should be lower in kern_kevent, but that would require special munging due to locks and the functions used to copyin/copyout kevents... If someone wants to teach ktrace how to output pretty kevents, I have a kevent prety printer that can be used...
* Cleanup sloppy ifdef.imp2006-09-241-5/+1
|
* MFp4 the sound Google Summer of Code project:netchild2006-09-2313-11/+2509
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The goal was to sync with the OSSv4 API 4Front Technologies uses in their proprietary OSS driver. This was successful as far as possible. The part of the API which is stable is implemented, for the rest there are some stubs already. New system ioctls: - SNDCTL_SYSINFO - obtain audio system info (version, # of audio/midi/ mixer devices, etc.) - SNDCTL_AUDIOINFO - fetch details about a specific audio device - SNDCTL_MIXERINFO - fetch details about a specific mixer device New audio ioctls: - Sync groups (SNDCTL_DSP_SYNCGROUP/SNDCTL_DSP_SYNCSTART) which allow triggered playback/recording on multiple devices (even across processes simultaneously). - Peak meters (SNDCTL_DSP_GETIPEAKS/SNDCTL_DSP_GETOPEAKS) - can query audio drivers for peak levels (needs driver support, disabled for now). - Per channel playback/recording levels - SNDCTL_DSP_{GET,SET}{PLAY,REC}VOL. Note that these are still in name only, just wrapping around the AC97-style mixer at the moment. The next step is to push them down to the drivers. Audio ioctls still under development by 4Front (for which stubs may exist in this commit): - SNDCTL_GETNAME, SNDCTL_{GET,SET}{SONG,LABEL} - SNDCTL_DSP_{GET,SET}_CHNORDER - SNDCTL_MIX_ENUMINFO, SNDCTL_MIX_EXTINFO - (might be documented enough in the OSS releases to work on this. These ioctls cover the cool "twiddle any knob on your card" features.) Missing: - SNDCTL_DSP_COOKEDMODE -- this ioctl is used to give applications direct access to a card's buffers, bypassing the feeder architecture. It's a toughy -- "someone" needs to decide : (a) if this is desireable, and (b) if it's reasonably feasible. Updates for driver writers: So far, only two routines to the channel class (in channel_if.m) are added. One is for fetching a list of discrete supported playback/recording rates of a channel, and the other is for fetching peak level info (useful for drawing peak meters). Interested parties may want to help pushing down SNDCTL_DSP_{GET,SET}{PLAY,REC}VOL into the drivers. To use the new stuff you need to rebuild the sound drivers or your kernel (depending on if you use modules or not) and to install soundcard.h (a buildworld/installworld handles this). Sponsored by: Google SoC 2006 Submitted by: ryanb Many thanks to: 4Front Technologies for their cooperation, explanations and the nice license of their soundcard.h.
* now that we don't automagicly increase the MTU of host routes, when we copyjmg2006-09-231-1/+3
| | | | | the loopback interface, copy it's mtu also.. This means that we again have large mtu support for local ip addresses...
* MFp4:netchild2006-09-232-3/+30
| | | | | | | | | | | | | | | - Linux returns ENOPROTOOPT in a case of not supported opt to setsockopt. - Return EISDIR in pread() when arg is a directory. - Return EINVAL instead of EFAULT when namelen is not correct in accept(). - Return EINVAL instead of EACCESS if invalid access mode is entered in access(). - Return EINVAL instead of EADDRNOTAVAIL in a case of bad salen param to bind(). Submitted by: rdivacky Tested with: LTP (vfork01 fails now, but it seems to be a race and not caused by those changes) MFC after: 1 week
* Allow the ASF feature to be disabled via a tunable. On one of my systems,scottl2006-09-231-2/+12
| | | | | bringing up the bge interface results in a complete system freeze when this feature is enabled. Leave it enabled by default.
* Protect enterpgrp() against another tty/proc race case until the tty locking ↵mbr2006-09-231-0/+3
| | | | | | | | work has been fixed. MFC after: 1 week
* Always set the IP version in the TCP input path, to preservebms2006-09-232-4/+0
| | | | | | | | | the header field for possible later IPSEC SPD lookup, even when the kernel is built without 'options INET6'. PR: kern/57760 MFC after: 1 week Submitted by: Joachim Schueth
* Check for tp->t_refcnt == 0 before doing anything in tty_open().mbr2006-09-232-0/+18
| | | | | PR: 103520 MFC after: 1 week
* If /dev/tty gets opened after your controlling terminal has been revokedmbr2006-09-231-1/+5
| | | | | | | | | | | | | you can't call tty_clone afterwords. OpenBSD and NetBSD both fail the open call in that case, so we should do so as well. This can be done in ctty_clone by returning with *dev==NULL. Admittedly this causes open to return ENOENT, instead of ENXIO as on the other BSDs, but this way requires the least touching of code. Submitted by: Nate Eldredge <nge@cs.hmc.edu> PR: 83375 MFC: 1 week
* Stop reloading %fs and %gs, since it causes the base address fromdavidxu2006-09-231-4/+0
| | | | | | | | GDT to be loaded into FS.base and GS.base, these values of course are not the values set by sysarch() with I386_SET_FSBASE and I386_SET_GSBASE, the change fixed a crash for 32bit libthr after signal handler returned and normal code is accessing thread pointer, for example: movl %gs:8, %eax.
* Regenerate.davidxu2006-09-234-6/+7
|
* Enable sigwait.davidxu2006-09-231-1/+2
|
* Map pmap_{un,}mapbios() to pmap_{un,}mapdev() on 6.x and earlier.jhb2006-09-221-0/+5
|
OpenPOWER on IntegriCloud