]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoRemove the definition and implementation of 'CALLOUT_NETGIANT', a now- (and
rwatson [Sat, 15 Sep 2007 12:33:24 +0000 (12:33 +0000)]
Remove the definition and implementation of 'CALLOUT_NETGIANT', a now- (and
possibly always-) unused define.

Reported by: kmacy
Approved by: re (kensmith)

16 years agoAdd mention of libelf to 7.0's release notes.
jkoshy [Sat, 15 Sep 2007 05:37:31 +0000 (05:37 +0000)]
Add mention of libelf to 7.0's release notes.

Approved by: re (bmah)

16 years agoRemove DIAG code that discards oversized packets.
julian [Fri, 14 Sep 2007 06:57:28 +0000 (06:57 +0000)]
Remove DIAG code that discards oversized packets.
There has been general consensus that this was a bad idea/

Approved by:    re (bmah)

16 years agoDuring boot(before setting IP address) PHY can generate link state
yongari [Fri, 14 Sep 2007 05:12:25 +0000 (05:12 +0000)]
During boot(before setting IP address) PHY can generate link state
change interrupt if the link is established with link parter. However
interrupt handler didn't acknowledge the interrupt if nfe(4) was not
running at the time of interrupt delivery. This caused endless
interrupt generation. Fix the bug by acknowledging the interrupt
regardless of running state of the driver.

PR: kern/116295
Submitted by: Mark Derbyshire (mark At taom dot com)
Approved by: re (kensmith)

16 years agoFlush stdout at the end of the update phase to prevent possible
mpp [Fri, 14 Sep 2007 03:12:19 +0000 (03:12 +0000)]
Flush stdout at the end of the update phase to prevent possible
duplicate output when "quotacheck -a -v" is used.

Approved by: re (bmah)

16 years agoRemove the newly resurrected ar.5 manual page from the list of
jkoshy [Fri, 14 Sep 2007 03:07:22 +0000 (03:07 +0000)]
Remove the newly resurrected ar.5 manual page from the list of
obsolete files.

Noticed by: Michael Plass <mfp49_freebsd at plass-family dot net>
Herbert J. Skuhra <h dot skuhra at gmail dot com>
Approved by: re (bmah)

16 years agoFix typo.
yongari [Fri, 14 Sep 2007 01:28:18 +0000 (01:28 +0000)]
Fix typo.

Pointed out: marius
Approved by: re (bmah)

16 years agoCurrently the LO_NOPROFILE flag (which is masked on upper level code by
attilio [Fri, 14 Sep 2007 01:12:39 +0000 (01:12 +0000)]
Currently the LO_NOPROFILE flag (which is masked on upper level code by
per-primitive macros like MTX_NOPROFILE, SX_NOPROFILE or RW_NOPROFILE) is
not really honoured. In particular lock_profile_obtain_lock_failure() and
lock_profile_obtain_lock_success() are naked respect this flag.
The bug leads to locks marked with no-profiling to be profiled as well.
In the case of the clock_lock, used by the timer i8254 this leads to
unpredictable behaviour both on amd64 and ia32 (double faults panic,
sudden reboots, etc.). The amd64 clock_lock is also not marked as
not profilable as it should be.
Fix these bugs adding proper checks in the lock profiling code and at
clock_lock initialization time.

i8254 bug pointed out by: kris
Tested by: matteo, Giuseppe Cocomazzi <sbudella at libero dot it>
Approved by: jeff (mentor)
Approved by: re

16 years agoAdd support for a new device id (9). Mxge NICs with the new
gallatin [Thu, 13 Sep 2007 21:29:02 +0000 (21:29 +0000)]
Add support for a new device id (9).  Mxge NICs with the new
device id support MSI-X.

Approved by: re (bmah)

16 years agoAdd my ports mentor, his mentor, and their offsprings including me.
jkim [Thu, 13 Sep 2007 14:52:10 +0000 (14:52 +0000)]
Add my ports mentor, his mentor, and their offsprings including me.

Reviewed by: sobomax, glewis, hq, znerd, demon
Approved by: re (bmah)

16 years ago- DF bit was on for COOKIE-ECHO chunks. This is
rrs [Thu, 13 Sep 2007 14:43:54 +0000 (14:43 +0000)]
- DF bit was on for COOKIE-ECHO chunks. This is
  incorrect and should be OFF letting IP fragment
  large cookie-echos.
- Rename sysctl variable logging to log_level.
- Fix description of sysctl variable stats.
- Add sysctl variable log to make sctp_log readable via sysctl
  mechanism (this is by compile switch and targets non KTR platforms or
  when someone wants to do performance wise tracing).
 - Removed debug code

Approved by: re@freebsd.org (B Mah)

16 years ago- Incorrect error EAGAIN returned for invalid send on a locked
rrs [Thu, 13 Sep 2007 10:36:43 +0000 (10:36 +0000)]
- Incorrect error EAGAIN returned for invalid send on a locked
  stream (using EEOR mode). Changed to EINVAL (in sctp_output.c)
- Static analysis comments added
- fix in mobility code to return a value (static analysis found).
- sctp6_notify function made visible instead of
  static (this is needed for Panda).

Approved by: re@freebsd.org (B Mah)

16 years agosubr_sleepqueue.c presents a thread lock missing which leads to dangerous
attilio [Thu, 13 Sep 2007 09:12:36 +0000 (09:12 +0000)]
subr_sleepqueue.c presents a thread lock missing which leads to dangerous
races for some struct thread members.
More specifically, this bug seems responsible for some memory dumping
problems people were experiencing.

Fix this adding correct thread locking.

Tested by: rwatson
Submitted by: tegge
Approved by: jeff
Approved by: re

16 years agoMake the type of the memory used by the BPF filter unsigned, so it
dwmalone [Thu, 13 Sep 2007 09:00:32 +0000 (09:00 +0000)]
Make the type of the memory used by the BPF filter unsigned, so it
matches the BPF registers (which are the only thing that is assigned
to/from BPF memory). This is a pedantic change that shouldn't change
any behaviour.

PR: 115931
Submitted by: Matthew Luckie <mjl@luckie.org.nz>
Approved by: re (bmah)
MFC after: 3 weeks

16 years agoReject requests to start or ack a suspend sequence on platforms that do not
njl [Thu, 13 Sep 2007 01:37:17 +0000 (01:37 +0000)]
Reject requests to start or ack a suspend sequence on platforms that do not
support suspend/resume, currently all except i386.

Tested by: jkim
Approved by: re

16 years agoIt's probably time I learn C.
cognet [Wed, 12 Sep 2007 18:28:09 +0000 (18:28 +0000)]
It's probably time I learn C.
Fix a few while (!uart_getreg() & SR1_TNF) when
while (!(uart_getreg() & SR18TNF)) was really meant.
This driver should die anyway, it's awful, and uart_ns8250 should be fine
for the StrongArm 1110. I'll kill it later.

Submitted by: Mikhael Skvorts
Approved by: re (blanket)

16 years agoWhen restoring the mount after umount failed, the MNTK_UNMOUNT flag
kib [Wed, 12 Sep 2007 16:31:32 +0000 (16:31 +0000)]
When restoring the mount after umount failed, the MNTK_UNMOUNT flag
prevents insmntque() from placing reallocated syncer vnode on mount
list, that causes panic in vfs_allocate_syncvnode().

Introduce MNTK_NOINSMNTQ flag, that marks the period when instmntque is
not allowed to success, instead of MNTK_UNMOUNT. The MNTK_NOINSMNTQ is
set and cleared simultaneously with MNTK_UNMOUNT, except on umount error
path, where it is cleaned just before the syncer vnode is going to be
allocated.

Reported by: Peter Jeremy <peterjeremy optushome com au>
Suggested by: tegge
Approved by: re (rwatson)

16 years agoUpdate snd_emu10kx driver with recent perforce changes (and few
ariff [Wed, 12 Sep 2007 07:43:43 +0000 (07:43 +0000)]
Update snd_emu10kx driver with recent perforce changes (and few
other changes too).

(without any real order)

1. Use device_get_nameunit for mutex naming
2. Add timer for low-latency playback
3. Move most mixer controls from sysctls to mixer(8) controls.
   This is a largest part of this patch.
4. Add analog/digital switch (as a temporary sysctl)
5. Get back support for low-bitrate playback (with help of (2))
6. Change locking for exclusive I/O. Writing to non-PTR register
   is almost safe and does not need to be ordered with PTR operations.
7. Disable MIDI until we get it to detach properly and fix memory
   managment problems.
8. Enable multichannel playback by default. It is as stable as
   single-channel mode. Multichannel recording is still an
   experimental feature.
9. Multichannel options can be changed by loader tunables.
10. Add a way to disable card from a loader tunable.
11. Add new PCI IDs.
12. Debugger settings are loader tunables now.
14. Remove some unused variables.
15. Mark pcm sub-devices MPSAFE.
16. Partially revert (bus_setup_intr -> snd_setup_intr) since it need
    to be done independently

Submitted by: Yuriy Tsibizov (driver maintainer)
Approved by: re (bmah)

16 years agoFix for an infinite loop in processing ESP, IPv6 packets.
gnn [Wed, 12 Sep 2007 05:54:53 +0000 (05:54 +0000)]
Fix for an infinite loop in processing ESP, IPv6 packets.

The control input routine passes a NULL as its void argument when it
has reached the innermost header, which terminates the loop.

Reported by: Pawel Worach <pawel.worach@gmail.com>
Approved by: re

16 years agoEvidently setup_rss needs to happen whenever bind_qsets is done. This fixes
kmacy [Tue, 11 Sep 2007 23:49:27 +0000 (23:49 +0000)]
Evidently setup_rss needs to happen whenever bind_qsets is done. This fixes
a problem with jumbo frames when not using msi-x interrupts.

Supported by: Chelsio
Approved by: re (blanket)

16 years agoFix for missing punctuation in r1.1063.
bmah [Tue, 11 Sep 2007 23:31:14 +0000 (23:31 +0000)]
Fix for missing punctuation in r1.1063.

Approved by: re (implicitly)

16 years agoNew release notes: camcontrol(8) readcap, some mount_* programs
bmah [Tue, 11 Sep 2007 23:30:14 +0000 (23:30 +0000)]
New release notes:  camcontrol(8) readcap, some mount_* programs
removed [1].

Suggested by: rodrigc [1]
Approved by: re (implicitly)

16 years agoThis is a follow-up, cleaning-up commit about recent changes involving
attilio [Tue, 11 Sep 2007 22:54:09 +0000 (22:54 +0000)]
This is a follow-up, cleaning-up commit about recent changes involving
topology foo functions.
Working at the patch for topology problems in ia32/amd64 evicted some
problems regarding functions ordering in the SI_SUB_CPU family of
SYSINIT'ed subsystems.
In order to avoid problems with new modified to involved functions, a
correct ordering is not semantically specified for SI_SUB_CPU functions
(for a larger view of the issue please visit:
http://lists.freebsd.org/pipermail/freebsd-current/2007-July/075409.html )

Discussed with: peter
Tested by: kris, Rui Paulo <rpaulo@FreeBSD.org>
Approved by: jeff
Approved by: re

16 years ago- Stop computing %CPU for the imaginary idle process; we now
ru [Tue, 11 Sep 2007 07:51:03 +0000 (07:51 +0000)]
- Stop computing %CPU for the imaginary idle process; we now
  have real idle processes for that.

- Fix the display on SMP by not scaling the sum of %CPU down
  to 1.  Instead, display raw data as computed by the kernel,
  like in top(1).

Reviewed by: bde
Approved by: re (bmah)
MFC after: 1 week

16 years agoCheck return value of listen().
kevlo [Tue, 11 Sep 2007 01:59:00 +0000 (01:59 +0000)]
Check return value of listen().

Reviewed by: emax
Approved by: re (kensmith)

16 years agoA number of small fixes:
jfv [Mon, 10 Sep 2007 21:50:40 +0000 (21:50 +0000)]
A number of small fixes:
- duplicate #define in header, thanks to Kevin Lo for pointing out.
- incorrect BUSMASTER enable logic, thanks Patrick Oeschger
- 82543 fails due to bogus IO BAR logic
- Allow 82571 to use MSI interrupts
- Checksum Offload for UDP not working on 82575

Approved by:re

16 years ago- Removed debug code and more C++ style comments in the mobility
rrs [Mon, 10 Sep 2007 21:01:56 +0000 (21:01 +0000)]
- Removed debug code and more C++ style comments in the mobility
  code in sctp_asconf.c
Approved by: re@freebsd.org (B Mah)

16 years agoUpdate for ICH9 support.
brueffer [Mon, 10 Sep 2007 20:25:55 +0000 (20:25 +0000)]
Update for ICH9 support.

Submitted by: simon
Approved by: re (blanket)

16 years agoReduce the limit of vnodes on i386 when ZFS is loaded to 3/4 of the original
pjd [Mon, 10 Sep 2007 19:58:14 +0000 (19:58 +0000)]
Reduce the limit of vnodes on i386 when ZFS is loaded to 3/4 of the original
value, so we don't run out of KVA. The default vnodes limit fits better for
UFS, but ZFS allocated more file system specific memory for a vnode than UFS.

Don't touch vnodes limit if we detect it was tuned by system administrator
and restore original value when ZFS is unloaded.

This isn't final fix, but before we implement something better, this will
help to stabilize ZFS under heavy load on i386.

Approved by: re (bmah)

16 years agoAdd PCI IDs for Intel ICH9.
simon [Mon, 10 Sep 2007 19:16:39 +0000 (19:16 +0000)]
Add PCI IDs for Intel ICH9.

PR: kern/114473
Submitted by: Michael Fuckner <michael@fuckner.net>
MFC after: 2 weeks
OK'ed by: sos
Approved by: re (bmah)

16 years agozyd(4) needs this as well. While here, add a missing article.
brueffer [Mon, 10 Sep 2007 18:17:50 +0000 (18:17 +0000)]
zyd(4) needs this as well.  While here, add a missing article.

Approved by: re (blanket)

16 years agoAfter dfr@ vnode leak fix, we can allow ARC to consume more memory.
pjd [Mon, 10 Sep 2007 18:12:27 +0000 (18:12 +0000)]
After dfr@ vnode leak fix, we can allow ARC to consume more memory.

Tested by: kris
Approved by: re (bmah)

16 years agoAutogenerate hardware notes for ral(4) and ural(4).
brueffer [Mon, 10 Sep 2007 17:58:16 +0000 (17:58 +0000)]
Autogenerate hardware notes for ral(4) and ural(4).

Approved by: re (blanket)

16 years agoPrepare for automatic hardware notes generation:
brueffer [Mon, 10 Sep 2007 17:54:14 +0000 (17:54 +0000)]
Prepare for automatic hardware notes generation:

- mention the supported chipsets in the HARDWARE section
- remove unnecessary Li arguments

Approved by: re (blanket)

16 years agoAlso mention zyd(4) in the DESCRIPTION section.
brueffer [Mon, 10 Sep 2007 17:20:21 +0000 (17:20 +0000)]
Also mention zyd(4) in the DESCRIPTION section.

Approved by: re (blanket)

16 years ago- Added some comments to tell where the htcp
rrs [Mon, 10 Sep 2007 17:06:25 +0000 (17:06 +0000)]
- Added some comments to tell where the htcp
  code comes from.
- Fix a LOR on Mac OS X: Do not hold an stcb lock when
  calling soisconnected for a socket which has the
  SS_INCOMP bit set on so_state.
- fix a comment to be non c++ style.

Approved by: re@freebsd.org (B Mah)

16 years agoAdd information about hardware supported by ipw(4) and iwi(4).
brueffer [Mon, 10 Sep 2007 16:39:26 +0000 (16:39 +0000)]
Add information about hardware supported by ipw(4) and iwi(4).

Approved by: re (blanket)
MFC after: 3 days

16 years agoMake sure that either inp is NULL or we have obtained a lock on it before
kensmith [Mon, 10 Sep 2007 14:49:32 +0000 (14:49 +0000)]
Make sure that either inp is NULL or we have obtained a lock on it before
jumping to dropunlock to avoid a panic.  While here move the calls to
ipsec4_in_reject() and ipsec6_in_reject() so they are after we obtain
the lock on inp.

Original patch to avoid panic: pjd
Review of locking adjustments: gnn, sam
Approved by: re (rwatson)

16 years agoFurther UDPv4 cleanup:
rwatson [Mon, 10 Sep 2007 14:22:15 +0000 (14:22 +0000)]
Further UDPv4 cleanup:

- Resort includes a bit.
- Correct typos and wording problems in comments.
- Rename udpcksum to udp_cksum to be consistent with other UDP-related
  configuration variables.
- Remove indirection of udp_notify through local notify variable in
  udp_ctlinput(), which is presumably due to copying and pasting from TCP,
  where multiple notify routines exist.

Approved by: re (kensmith)

16 years agoFix a DIV0 in case a large value for fs_avgfilesize or fs_avgfpdir
bz [Mon, 10 Sep 2007 14:12:29 +0000 (14:12 +0000)]
Fix a DIV0 in case a large value for fs_avgfilesize or fs_avgfpdir
is given (with newfs or tunefs) and dirsize overflows.

In case dirsize is <= 0 because of an overflow set maxcontigdirs
to 0 so it will be 1 later. This is what would happen for large
fs_avgfilesize. [1]

Identified with help from: roberto, pjd
Submitted by: pjd [1]
Approved by: re (rwatson)
MFC after: 8 days

16 years agoFixing invalid channel display in ifconfig(8) by implementing required
avatar [Mon, 10 Sep 2007 12:53:34 +0000 (12:53 +0000)]
Fixing invalid channel display in ifconfig(8) by implementing required
ioctl().

Note that other information provided by ifconfig(8) such like "list chan"
or "list ap" are still not available at this moment.

Before an(4) is connected to wlan(4), users are encouraged to use
ancontrol(8) to retrieve aforementioned information.

Reported by: dhw (http://lists.freebsd.org/pipermail/freebsd-current/2007-July/074848.html)
Reviewed by: ambrisko
Tested by: dhw
Approved by: re (bmah)

16 years agopull in changes made to RELENG_6 version in the process of doing the MFC
kmacy [Mon, 10 Sep 2007 00:59:51 +0000 (00:59 +0000)]
pull in changes made to RELENG_6 version in the process of doing the MFC

Supported by: Chelsio
Approved by: re (blanket)

16 years agoCheck for multicast destination on bpf injected packets and update the M_*CAST
thompsa [Mon, 10 Sep 2007 00:03:06 +0000 (00:03 +0000)]
Check for multicast destination on bpf injected packets and update the M_*CAST
flags, the absense of these flags causes problems in other areas such as
bridging which expect them to be correct.

At the moment only Ethernet DLTs are checked.

Reviewed by: bms, csjp, sam
Approved by: re (bmah)

16 years agoRename mac_check_vnode_delete() MAC Framework and MAC Policy entry
rwatson [Mon, 10 Sep 2007 00:00:18 +0000 (00:00 +0000)]
Rename mac_check_vnode_delete() MAC Framework and MAC Policy entry
point to mac_check_vnode_unlink(), reflecting UNIX naming conventions.

This is the first of several commits to synchronize the MAC Framework
in FreeBSD 7.0 with the MAC Framework as it will appear in Mac OS X
Leopard.

Reveiwed by:    csjp, Samy Bahra <sbahra at gwu dot edu>
Submitted by:   Jacques Vidrine <nectar at apple dot com>
Obtained from:  Apple Computer, Inc.
Sponsored by:   SPARTA, SPAWAR
Approved by:    re (bmah)

16 years agoEnhance and expand kernel privilege regression tests in support of
rwatson [Sun, 9 Sep 2007 23:08:39 +0000 (23:08 +0000)]
Enhance and expand kernel privilege regression tests in support of
work present in FreeBSD 7.0 to refine the kernel privilege model:

- Introduce support for jail as a testing variable, in order to
  confirm that privileges are properly restricted in the jail
  environment.

- Restructure overall testing approach so that privilege and jail
  conditions are set in the testing infrastructure before tests
  are invoked, and done so in a custom-created process to isolate
  the impact of tests from each other in a more consistent way.

- Tests now provide setup and cleanup hooks that occur before and
  after the test runs.

- New privilege tests are now present for several audit
  privileges, several credential management privileges, dmesg
  buffer reading privilege, and netinet raw socket creation.

- Other existing tests are restructured and generally improved as
  a result of better framework structure and jail as a variable.
  For exampe, we now test that certain sysctls are writable only
  outside jail, while others are writable within jail.  On a
  similar note, privileges relating to setting UFS file flags are
  now better exercised, as with the right to chmod and utimes
  files.

Approved by: re (bmah)
Obtained from: TrustedBSD Project

16 years ago- Remove filter support
kmacy [Sun, 9 Sep 2007 20:26:02 +0000 (20:26 +0000)]
- Remove filter support

Supported by: Chelsio
Approved by: re(blanket)

16 years agoIn __bswap16_var(), make sure the 16 upper bits are cleared; while
cognet [Sun, 9 Sep 2007 11:58:38 +0000 (11:58 +0000)]
In __bswap16_var(), make sure the 16 upper bits are cleared; while
optimizing, gcc4 doesn't always do so.

Reported by: Nathan Whitehorn
Approved by: re (blanket)

16 years ago- Netstat warning removal for 64 bit aware platforms.
rrs [Sun, 9 Sep 2007 11:03:56 +0000 (11:03 +0000)]
- Netstat warning removal for 64 bit aware platforms.
Approved by: re@freebsd.org (B Mah)

16 years agoAdd back in support for normal mbuf chaining on RX under DISABLE_MBUF_IOVEC
kmacy [Sun, 9 Sep 2007 04:34:03 +0000 (04:34 +0000)]
Add back in support for normal mbuf chaining on RX under DISABLE_MBUF_IOVEC

Approved by: re(blanket)
Supported by: Chelsio

16 years agoFix last-minute typo in last commit caused by pre-commit scripts
kmacy [Sun, 9 Sep 2007 03:51:25 +0000 (03:51 +0000)]
Fix last-minute typo in last commit caused by pre-commit scripts

Approved by: re(blanket)

16 years agoDo not generate unneeded initializers.
jkoshy [Sun, 9 Sep 2007 02:10:53 +0000 (02:10 +0000)]
Do not generate unneeded initializers.

Approved by: re (bmah)

16 years agoMake the introduction to the hardware notes at least vaguely reflect
bmah [Sun, 9 Sep 2007 01:32:36 +0000 (01:32 +0000)]
Make the introduction to the hardware notes at least vaguely reflect
reality.

Approved by: re (implicitly)

16 years ago - fix qset to port binding as a proper fix for the problems encountered on the 4...
kmacy [Sun, 9 Sep 2007 01:28:03 +0000 (01:28 +0000)]
 - fix qset to port binding as a proper fix for the problems encountered on the 4-port
 - fix the use after free seen when sending packets small enough to fit as an immediate
   and bpf peers are present
 - update to firmware rev 4.7 along with various small vendor fixes

Supported by: Chelsio
Approved by: re (blanket)
MFC after: 3 days

16 years agoAdd --posix as a synonym for --format=pax, for GNU
kientzle [Sun, 9 Sep 2007 00:07:18 +0000 (00:07 +0000)]
Add --posix as a synonym for --format=pax, for GNU
tar compatibility.

Approved by: re (bmah)

16 years agoAdd a note about sparc64 needing to use serial consoles, due to
bmah [Sat, 8 Sep 2007 22:34:44 +0000 (22:34 +0000)]
Add a note about sparc64 needing to use serial consoles, due to
unusability of OFW consoles.  [1]

Try to use trademark entities where appropriate in the "Supported
Processors" section.

Submitted by: kris [1]
Approved by: re (implicitly)

16 years agoAdd SCSI READ CAPACITY support to camcontrol. The new 'readcap' subcommand
ken [Sat, 8 Sep 2007 20:24:12 +0000 (20:24 +0000)]
Add SCSI READ CAPACITY support to camcontrol.  The new 'readcap' subcommand
will automatically issue the 16 byte verison of read capacity if the device
in question is larger than 2TB.

There are also a number of output options here (last block, number of
blocks, human readable) that should meet most needs, and also aid in
scripting.

Approved by: re (bmah)
MFC after: 1 week

16 years agoDo not set the RTF_GATEWAY flag if RTF_LLINFO is set, it doesn't make much
cognet [Sat, 8 Sep 2007 19:28:45 +0000 (19:28 +0000)]
Do not set the RTF_GATEWAY flag if RTF_LLINFO is set, it doesn't make much
sense in that context, and leads to unusable routes.
This should unbreak bootpd.

Discussed with: glebius
Submitted by:   bms
Approved by:    re (bmah)

16 years ago- send call has a reference to uio->uio_resid in
rrs [Sat, 8 Sep 2007 17:48:46 +0000 (17:48 +0000)]
- send call has a reference to uio->uio_resid in
  the recent send code, but uio may be NULL on sendfile
  calls. Change to use sndlen variable.
- EMSGSIZE is not being returned in non-blocking mode
  and needs a small tweak to look if the msg would
  ever fit when returning EWOULDBLOCK.
- FWD-TSN has a bug in stream processing which could
  cause a panic. This is a follow on to the codenomicon
  fix.
- PDAPI level 1 and 2 do not work unless the reader
  gets his returned buffer full. Fix so we can break
  out when at level 1 or 2.
- Fix fast-handoff features to copy across properly on
  accepted sockets
- Fix sctp_peeloff() system call when no true system call
  exists to screen arguments for errors. In cases where a
  real system call exists the system call itself does this.
- Fix raddr leak in recent add-ip code change for bundled
  asconfs (even when non-bundled asconfs are received)
- Make sure ipi_addr lock is held when walking global addr
  list. Need to change this lock type to a rwlock().
- Add don't wake flag on both input and output when the
  socket is closing.
- When deleting an address verify the interface is correct
  before allowing the delete to process. This protects panda
  and unnumbered.
- Clean up old sysctl stuff and get rid of the old Open/Net
  BSD structures.
- Add a function to watch the ranges in the sysctl sets.
- When appending in the reassembly queue, validate that
  the assoc has not gone to about to be freed. If so
  (in the middle) abort out. Note this especially effects
  MAC I think due to the lock/unlock they do (or with
  LOCK testing in place).
- Netstat patch to get rid of warnings.
- Make sure that no data gets queued to inactive/unconfirmed
  destinations. This especially effect CMT but also makes a
  impact on regular SCTP as well.
- During init collision when we detect seq number out
  of sync we need to treat it like Case C and discard
  the cookie (no invarient needed here).
- Atomic access to the random store.
- When we declare a vtag good, we need to shove it
  into the time wait hash to prevent further use. When
  the tag is put into the assoc hash, we need to remove it
  from the twait hash (where it will surely be). This prevents
  duplicate tag assignments.
- Move decr-ref count to better protect sysctl out of
  data.
- ltrace error corrections in sctp6_usrreq.c
- Add hook for interface up/down to be sent to us.
- Make sysctl() exported structures independent of processor
  architecture.
- Fix route and src addr cache clearing for delete address case.
- Make sure address marked SCTP_DEL_IP_ADDRESS is never selected
  as src addr.
- in icmp handling fixed so we actually look at the icmp codes
  to figure out what to do.
- Modified mobility code.
  Reception of DELETE IP ADDRESS for a primary destination and
  SET PRIMARY for a new primary destination is used for
  retransmission trigger to the new primary destination.
  Also, in this case, destination of chunks in send_queue are
  changed to the new primary destination.
- Fix so that we disallow sending by mbuf to ever have EEOR
  mode set upon it.

Approved by: re@freebsd.org (B Mah)

16 years ago- Locking compatiability changes. This involves adding
rrs [Sat, 8 Sep 2007 11:35:11 +0000 (11:35 +0000)]
- Locking compatiability changes. This involves adding
  additional flags to many function calls. The flags only
  get used in BSD when we compile with lock testing. These
  flags allow apple to escape the "giant" lock it holds on
  the socket and have more fine-grained locking in the NKE.
  It also allows us to test (with witness) the locking used
  by apple via a compile switch (manually applied).

Approved by: re@freebsd.org(B Mah)

16 years agoAdd IANA assigned iscsi-target port as its the default port
mr [Sat, 8 Sep 2007 08:56:01 +0000 (08:56 +0000)]
Add IANA assigned iscsi-target port as its the default port
according RFC 3720.

Approved by: re (bmah)

16 years agoFix a bug that prevented applications from laying out ELF objects
jkoshy [Sat, 8 Sep 2007 08:20:12 +0000 (08:20 +0000)]
Fix a bug that prevented applications from laying out ELF objects
with section header tables residing in between other sections.

Introduce additional checks for overlaps between section data and
the section header table when the application is performing section
layout.

Document additional error returns.

Reported by: Kai Wang <kaiw27 at gmail dot com>
Approved by: re (rwatson)

16 years agoContinue UDP/UDPv6 synchronization project:
rwatson [Sat, 8 Sep 2007 08:18:24 +0000 (08:18 +0000)]
Continue UDP/UDPv6 synchronization project:

- Fix copyrights, comments in UDPv6.
- Remove macro defines for in6pcb and udp6stat.
- Consistently refer to inpcbs as 'inp' and not also 'in6p'.

Reviewed by: gnn, jinmei, bz
Approved by: re (bmah)

16 years agoCross reference ar(5) from elf(5).
jkoshy [Sat, 8 Sep 2007 08:12:31 +0000 (08:12 +0000)]
Cross reference ar(5) from elf(5).

Approved by: re (bmah)

16 years agoAdd a manual page documenting the format of `ar' archives.
jkoshy [Sat, 8 Sep 2007 08:04:28 +0000 (08:04 +0000)]
Add a manual page documenting the format of `ar' archives.

Reviewed by: Kai Wang <kaiw27 at gmail dot com>
Approved by: re (bmah)

16 years agoRemove stray comma left over from previous commit.
brueffer [Fri, 7 Sep 2007 22:19:29 +0000 (22:19 +0000)]
Remove stray comma left over from previous commit.

Approved by: re (blanket)

16 years ago- Remove info about the consumed space in base dir. This info is not
gabor [Fri, 7 Sep 2007 22:01:19 +0000 (22:01 +0000)]
- Remove info about the consumed space in base dir. This info is not
  relevant any more.

PR: docs/115335
Submitted by: Wayne Sierke <ws@au.dyndns.ws>
Reviewed by: keramida
Approved by: re (bmah)
MFC after: 3 days

16 years ago- Remove reference for unexisting ndisapi(9)
gabor [Fri, 7 Sep 2007 21:58:58 +0000 (21:58 +0000)]
- Remove reference for unexisting ndisapi(9)

PR: docs/113127
Submitted by: "O. Hartmann"<ohartman@mail.zedat.fu-berlin.de>
Reviewed by: keramida
Approved by: re (bmah)
MFC after: 3 days

16 years ago- The weekly periodic runs occur on Saturday mornings, not on Sunday mornings
gabor [Fri, 7 Sep 2007 21:54:45 +0000 (21:54 +0000)]
- The weekly periodic runs occur on Saturday mornings, not on Sunday mornings

PR: docs/113975
Submitted by: Marian Cerny <jojo@matfyz.cz>
Reviewed by: keramida
Approved by: re (bmah)

16 years agoAdd the startup script for ftp-proxy(8) to the Makefile as well.
mlaier [Fri, 7 Sep 2007 15:44:09 +0000 (15:44 +0000)]
Add the startup script for ftp-proxy(8) to the Makefile as well.

Approved by: re (bmah - implicit)
Reminded by: mtm

16 years agoAutogenerate hardware notes for rum(4).
brueffer [Fri, 7 Sep 2007 15:30:35 +0000 (15:30 +0000)]
Autogenerate hardware notes for rum(4).

Approved by: re (blanket)

16 years agoPrepare for automatic hardware notes generation:
brueffer [Fri, 7 Sep 2007 15:28:39 +0000 (15:28 +0000)]
Prepare for automatic hardware notes generation:

- mention the driver name and supported chipsets in the HARDWARE section
- remove unnecessary Li arguments

Approved by: re (blanket)

16 years agoWe've been able to support EVFILT_VNODE filtering on non-UFS
ru [Fri, 7 Sep 2007 13:10:09 +0000 (13:10 +0000)]
We've been able to support EVFILT_VNODE filtering on non-UFS
file systems since 2005.

Submitted by: Igor Sysoev
Approved by: re (bmah)
MFC after: 3 days

16 years agoBack out tcp_timer.c:1.93 and associated changes that reimplemented the many
rwatson [Fri, 7 Sep 2007 09:19:22 +0000 (09:19 +0000)]
Back out tcp_timer.c:1.93 and associated changes that reimplemented the many
TCP timers as a single timer, but retain the API changes necessary to
reintroduce this change.  This will back out the source of at least two
reported problems: lock leaks in certain timer edge cases, and TCP timers
continuing to fire after a connection has closed (a bug previously fixed and
then reintroduced with the timer rewrite).

In a follow-up commit, some minor restylings and comment changes performed
after the TCP timer rewrite will be reapplied, and a further change to allow
the TCP timer rewrite to be added back without disturbing the ABI.  The new
design is believed to be a good thing, but the outstanding issues are
leading to significant stability/correctness problems that are holding
up 7.0.

This patch was generated by silby, but is being committed by proxy due to
poor network connectivity for silby this week.

Approved by: re (kensmith)
Submitted by: silby
Tested by: rwatson, kris
Problems reported by: peter, kris, others

16 years ago- fix a bug that zyd_attach() returns 0 even if it encountered errors
sam [Fri, 7 Sep 2007 03:54:54 +0000 (03:54 +0000)]
- fix a bug that zyd_attach() returns 0 even if it encountered errors
  that can lead to a panic when the stick is yanked.
- make sure that zyd_attach() returns 0 or errno.

Submitted by: Weongyo Jeong <weongyo.jeong@gmail.com>
Reported by: Ted Lindgreen <ted@tednet.nl>
Reviewed by: sam
Approved by: re (blanket wireless)

16 years agoAdd misc entries communilated over the year
edwin [Fri, 7 Sep 2007 03:23:06 +0000 (03:23 +0000)]
Add misc entries communilated over the year

PR:             conf/113285, conf/113642, conf/70252 and conf/61641
Submitted by:   Edwin Groothuis <edwin@mavetju.org>, <acc107_3@acc.tula.ru>, Evan Dower <evantd@cs.washington.edu>
MFC after:      1 week
Approved by:    re (bmah@), mentor (grog@)

16 years agoAdd a startup script for ftp-proxy(8) now that it is no longer started as
mlaier [Thu, 6 Sep 2007 21:00:48 +0000 (21:00 +0000)]
Add a startup script for ftp-proxy(8) now that it is no longer started as
part of inetd(8).

Approved by: re (bmah)
Reviewed by: freebsd-rc (a while back)
Reminded by: kevlo

16 years agoXref zyd(4).
brueffer [Thu, 6 Sep 2007 20:15:04 +0000 (20:15 +0000)]
Xref zyd(4).

Approved by: re (blanket)

16 years agoReplace OpenBSD SYNOPSIS with our standard SYNPOPSIS.
brueffer [Thu, 6 Sep 2007 20:13:27 +0000 (20:13 +0000)]
Replace OpenBSD SYNOPSIS with our standard SYNPOPSIS.

Approved by: re (blanket)

16 years agoNew release notes:
brueffer [Thu, 6 Sep 2007 19:53:06 +0000 (19:53 +0000)]
New release notes:
- ng_h4(4) MPSAFE
- ng_ppp(4) MPSAFE + MFC
- zyd(4) added
- cpufreq(4) in GENERIC

Modified release notes:
- cached(8) renamed to nscd(8), also moved entry to now correct place
- Camellia is now supported in geli(8) as well

Approved by: re (blanket)

16 years agoo Revamp the sparc64 interrupt code in order to be able to interface
marius [Thu, 6 Sep 2007 19:16:30 +0000 (19:16 +0000)]
o Revamp the sparc64 interrupt code in order to be able to interface
  with the INTR_FILTER-enabled MI code. Basically this consists of
  registering an interrupt controller (of which there can be multiple
  and optionally different ones either per host-to-foo bridge or shared
  amongst host-to-foo bridges in any one machine) along with an interrupt
  vector as specific argument for all the interrupt vectors used by a
  given host-to-foo bridge (roughly similar to registering interrupt
  sources on amd64 and i386), providing functions to enable, clear and
  disable the interrupts of the children beneath the bridge.
  This also includes:
  - No longer entering a critical section in tl0_intr() and tl1_intr()
    for executing interrupt handlers but rather let the handlers enter
    it themselves so in the case of intr_event_handle() we don't enter
    a nested critical section.
  - Adding infrastructure for binding delivery of interrupt vectors to
    specific CPUs which later on can be interfaced with the code from
    amd64/i386 for binding interrupts to specific CPUs.
  - Getting rid of the wrapper hack introduced along the lines of the
    API changes for INTR_FILTER which as a side-effect caused interrupts
    associated with ithread handlers only to get the elevated priority
    of those associated with filters ("fast handlers") (this removes the
    hack also in the non-INTR_FILTER case).
  - Disabling (by not clearing) an interrupt in the interrupt controller
    until all associated handlers have been executed, which is crucial
    for the typical locking strategy of NIC drivers in order to work
    correctly in case of shared interrupts. This was a more or less
    theoretical problem on sparc64 though, as shared interrupts are
    rather uncommon there except for the on-board SCCs and UARTs.
  Note that due to the behavior of at least of some of the interrupt
  controllers used on sparc64 an enable+EOI instead of a disable+EOI
  approach (as implied by the INTR_FILTER MI code and implemented on
  other architectures) is used as the latter can cause lost interrupts
  or in the worst case interrupt starvation.
o Correct a typo in sbus_alloc_resource() which caused (pass-through)
  allocations to only work down to the grandchildren of the bus, which
  wasn't a real problem so far as we don't support any devices which are
  great-grandchildren or greater of a U2S bridge, yet.
o In fhc(4) use bus_{read,write}_4() instead of bus_space_{read,write}_4()
  in order to get rid of sc_bh and sc_bt in the fhc_softc. Also get rid
  of some other unneeded members in fhc_softc.

Reviewed by: marcel (earlier version)
Approved by: re (kensmith)

16 years agoAdd service entries for Sun Grid Engine's qmaster and execution service
brooks [Thu, 6 Sep 2007 19:04:47 +0000 (19:04 +0000)]
Add service entries for Sun Grid Engine's qmaster and execution service
as per IANA assignments to simplify the installation of the sysutils/sge
port.

Approved by: re (bmah)

16 years agoStyle(9) fix - use #define<tab> consistently.
marius [Thu, 6 Sep 2007 14:56:09 +0000 (14:56 +0000)]
Style(9) fix - use #define<tab> consistently.

Approved by: re (kensmith)

16 years agooops, add missing bit from last change
sam [Thu, 6 Sep 2007 00:08:02 +0000 (00:08 +0000)]
oops, add missing bit from last change

Approved by: re (blanket wireless)

16 years agoFixup sta inactivity handling:
sam [Thu, 6 Sep 2007 00:04:36 +0000 (00:04 +0000)]
Fixup sta inactivity handling:
o reset ni_inact when ni_inact_reload is changed so we're
  assured a valid setting
o never let ni_inact go negative
o add a knob to disable hostap sta idle handling (e.g. so it can be done
  by a user application)
o remove bogus reload on associate

Reviewed by: avatar
Approved by: re (blanket wireless)

16 years agoAdd missing bg scanning bits; update ic_lastdata and cancel any
sam [Wed, 5 Sep 2007 23:40:59 +0000 (23:40 +0000)]
Add missing bg scanning bits; update ic_lastdata and cancel any
bg scan when there's outbound traffic.

Approved by: re (blanket wireless)

16 years agoAdd missing bits that made bg scanning lame:
sam [Wed, 5 Sep 2007 23:00:27 +0000 (23:00 +0000)]
Add missing bits that made bg scanning lame:
o update ic_lastdata to reflect time of last outbound frame
o outbound traffic must preempt/cancel bg scanning to avoid delays

This stuff was somehow missed in the initial import.

Reviewed by: thompsa, avatar, sephe (earlier version)
Approved by: re (blanket wireless)

16 years agoo add 802.11 state machine states for DFS and client-side power save
sam [Wed, 5 Sep 2007 21:31:32 +0000 (21:31 +0000)]
o add 802.11 state machine states for DFS and client-side power save
o fixup drivers to ignore new states

Reviewed by: avatar (?)
Approved by: re (blanket wireless)

16 years agoadd defs just removed from ieee80211.h
sam [Wed, 5 Sep 2007 21:25:58 +0000 (21:25 +0000)]
add defs just removed from ieee80211.h

Approved by: re (blanket wireless)

16 years agoUpdate channel definition:
sam [Wed, 5 Sep 2007 20:37:39 +0000 (20:37 +0000)]
Update channel definition:
o add ic_extieee to hold the HT40 extension channel number
o add ic_state to track dynamic channel state for DFS
o add flags to mark regulatory channel requirements
o add state defs for DFS/radar support

Reviewed by: avatar
Approved by: re (blanket wireless)

16 years agoMiscellaneous fixups to 802.11 defs:
sam [Wed, 5 Sep 2007 20:29:51 +0000 (20:29 +0000)]
Miscellaneous fixups to 802.11 defs:
o update 11n definitions to D2.0 spec
o add IEEE80211_CAPINFO_SPECTRUM_MGMT for DFS support
o add CSA ie definition for DFS support
o purge some unused definitions
o correct 802.11 reason and status codes
o correct reason code returned when a sta tries to associate to an
  ap operating with WPA/RSN but without a WPA/RSN ie

Reviewed by: thompsa, avatar
Approved by: re (blanket wireless)

16 years agoo add M_WEP mbuf flag so drivers can mark frames that are decrypted by the
sam [Wed, 5 Sep 2007 20:22:59 +0000 (20:22 +0000)]
o add M_WEP mbuf flag so drivers can mark frames that are decrypted by the
  device and have had the crypto bits stripped from the 802.11 header
o strip mbuf flags in the rx path before passing up the stack

Reviewed by: thompsa, sephe, avatar
Approved by: re (blanket wireless)

16 years agoAdd MLINKS entries for various SYSCTL_*() macros documented in sysctl.9.
rwatson [Wed, 5 Sep 2007 19:46:23 +0000 (19:46 +0000)]
Add MLINKS entries for various SYSCTL_*() macros documented in sysctl.9.

Approved by: re (bmah)
Submitted by: Constantine A. Murenin <cnst+freebsd@bugmail.mojo.ru>
Sponsored by: Google Summer of Code 2007

16 years agoensure the head entry of addrinfo chain has non-NULL ai_canonname to be
jinmei [Wed, 5 Sep 2007 18:08:14 +0000 (18:08 +0000)]
ensure the head entry of addrinfo chain has non-NULL ai_canonname to be
compliant with RFC3493.

PR: standards/114910
Approved by:   ume (mentor)
Approved by:   re
MFC after:     1 week

16 years ago- Fix strange for loop.
pjd [Wed, 5 Sep 2007 14:27:13 +0000 (14:27 +0000)]
- Fix strange for loop.

  Reported by: phk

- While here, check the unit before calculating the actually number.
  This way we can return EINVAL for invalid unit instead of ERANGE.

Approved by: re (kensmith)

16 years agoPoint expand_number(3) at humanize_number(3) and nive versa.
pjd [Wed, 5 Sep 2007 14:25:16 +0000 (14:25 +0000)]
Point expand_number(3) at humanize_number(3) and nive versa.

Suggested by: trhodes
Approved by: re (kensmith)

16 years agoThere's no need to re-read PCIR_COMMAND once we set it.
cognet [Tue, 4 Sep 2007 18:45:27 +0000 (18:45 +0000)]
There's no need to re-read PCIR_COMMAND once we set it.

Approved by: re (blanket)

16 years agoRestore historical behavior where more(1) does not check for dumb terminals.
delphij [Tue, 4 Sep 2007 13:54:09 +0000 (13:54 +0000)]
Restore historical behavior where more(1) does not check for dumb terminals.

Reported by: rwatson on -current
Tested by: keramida, rwatson
Approved by: re (rwatson)

16 years agoThis is an update to the new Intel 10G 82598 driver.
jfv [Tue, 4 Sep 2007 02:31:35 +0000 (02:31 +0000)]
This is an update to the new Intel 10G 82598 driver.
The first drop was Beta, this code is expected to be the release version.
Note that this driver code will build in either 6.2 or 7. If you
use the code in 6.2 you will not get TSO or MSI/X support but it will
function in a legacy mode.

Approved by: re

16 years agoStart lockd after statd.
mtm [Mon, 3 Sep 2007 02:02:31 +0000 (02:02 +0000)]
Start lockd after statd.

Approved by: re (bmah)
Noticed by: Ted Faber <faber@ISI.EDU>

16 years agoInactive pages don't have to be dirty plus improve description of
ru [Sun, 2 Sep 2007 10:29:16 +0000 (10:29 +0000)]
Inactive pages don't have to be dirty plus improve description of
the cache queue.

Submitted by: alc
Approved by: re (kensmith)