]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years ago- Remove reference for unexisting ndisapi(9)
Gabor Kovesdan [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

17 years ago- The weekly periodic runs occur on Saturday mornings, not on Sunday mornings
Gabor Kovesdan [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)

17 years agoAdd the startup script for ftp-proxy(8) to the Makefile as well.
Max Laier [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

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

Approved by: re (blanket)

17 years agoPrepare for automatic hardware notes generation:
Christian 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)

17 years agoWe've been able to support EVFILT_VNODE filtering on non-UFS
Ruslan Ermilov [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

17 years agoBack out tcp_timer.c:1.93 and associated changes that reimplemented the many
Robert Watson [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

17 years ago- fix a bug that zyd_attach() returns 0 even if it encountered errors
Sam Leffler [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)

17 years agoAdd misc entries communilated over the year
Edwin Groothuis [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@)

17 years agoAdd a startup script for ftp-proxy(8) now that it is no longer started as
Max Laier [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

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

Approved by: re (blanket)

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

Approved by: re (blanket)

17 years agoNew release notes:
Christian 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)

17 years agoo Revamp the sparc64 interrupt code in order to be able to interface
Marius Strobl [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)

17 years agoAdd service entries for Sun Grid Engine's qmaster and execution service
Brooks Davis [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)

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

Approved by: re (kensmith)

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

Approved by: re (blanket wireless)

17 years agoFixup sta inactivity handling:
Sam Leffler [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)

17 years agoAdd missing bg scanning bits; update ic_lastdata and cancel any
Sam Leffler [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)

17 years agoAdd missing bits that made bg scanning lame:
Sam Leffler [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)

17 years agoo add 802.11 state machine states for DFS and client-side power save
Sam Leffler [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)

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

Approved by: re (blanket wireless)

17 years agoUpdate channel definition:
Sam Leffler [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)

17 years agoMiscellaneous fixups to 802.11 defs:
Sam Leffler [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)

17 years agoo add M_WEP mbuf flag so drivers can mark frames that are decrypted by the
Sam Leffler [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)

17 years agoAdd MLINKS entries for various SYSCTL_*() macros documented in sysctl.9.
Robert Watson [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

17 years agoensure the head entry of addrinfo chain has non-NULL ai_canonname to be
JINMEI Tatuya [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

17 years ago- Fix strange for loop.
Pawel Jakub Dawidek [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)

17 years agoPoint expand_number(3) at humanize_number(3) and nive versa.
Pawel Jakub Dawidek [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)

17 years agoThere's no need to re-read PCIR_COMMAND once we set it.
Olivier Houchard [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)

17 years agoRestore historical behavior where more(1) does not check for dumb terminals.
Xin LI [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)

17 years agoThis is an update to the new Intel 10G 82598 driver.
Jack F Vogel [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

17 years agoStart lockd after statd.
Mike Makonnen [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>

17 years agoInactive pages don't have to be dirty plus improve description of
Ruslan Ermilov [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)

17 years agoIn userland_sysctl(), call useracc() with the actual newlen value to be
Robert Watson [Sun, 2 Sep 2007 09:59:33 +0000 (09:59 +0000)]
In userland_sysctl(), call useracc() with the actual newlen value to be
used, rather than the one passed via 'req', which may not reflect a
rewrite.  This call to useracc() is redundant to validation performed by
later copyin()/copyout() calls, so there isn't a security issue here,
but this could technically lead to excessive validation of addresses if
the length in newlen is shorter than req.newlen.

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

17 years agoSort wlan entries by driver name.
Christian Brueffer [Sun, 2 Sep 2007 09:15:08 +0000 (09:15 +0000)]
Sort wlan entries by driver name.

Approved by: re (blanket)

17 years agoAutogenerate hardware notes for zyd(4).
Christian Brueffer [Sun, 2 Sep 2007 09:11:10 +0000 (09:11 +0000)]
Autogenerate hardware notes for zyd(4).

Approved by: re (blanket)

17 years agoConnect zyd.4 to the build.
Warner Losh [Sun, 2 Sep 2007 07:09:25 +0000 (07:09 +0000)]
Connect zyd.4 to the build.

Approved by: re@

17 years agoRemove extra copy of the man page that has been noted by many people.
Warner Losh [Sun, 2 Sep 2007 07:04:50 +0000 (07:04 +0000)]
Remove extra copy of the man page that has been noted by many people.

Approved by: re@

17 years agoFix a kernel panic due to a NULL pointer access on pc98.
Yoshihiro Takahashi [Sat, 1 Sep 2007 12:18:28 +0000 (12:18 +0000)]
Fix a kernel panic due to a NULL pointer access on pc98.

When any PnP device exists, isa_release_resource() is called with no
activated resource.  So a bushandle is not allocated yet.

Approved by: re (kensmith)

17 years agoAdd support for Camellia encryption algorithm.
Pawel Jakub Dawidek [Sat, 1 Sep 2007 06:33:02 +0000 (06:33 +0000)]
Add support for Camellia encryption algorithm.

PR: kern/113790
Submitted by: Yoshisato YANAGISAWA <yanagisawa@csg.is.titech.ac.jp>
Approved by: re (bmah)

17 years agoUse CTLFLAG_RDTUN for tunable sysctls.
Pawel Jakub Dawidek [Sat, 1 Sep 2007 06:23:42 +0000 (06:23 +0000)]
Use CTLFLAG_RDTUN for tunable sysctls.

Approved by: re (bmah)

17 years agoImplement expand_number(3), which is the opposite of humanize_number(3), ie.
Pawel Jakub Dawidek [Sat, 1 Sep 2007 06:19:11 +0000 (06:19 +0000)]
Implement expand_number(3), which is the opposite of humanize_number(3), ie.
a number in human-readable form is converted to int64_t, for example:
123b -> 123
10k -> 10240
16G -> 17179869184

First version submitted by: Eric Anderson <anderson@freebsd.org>
Approved by: re (bmah)

17 years agoFix the description of the "Cache" memory and clarify the
Ruslan Ermilov [Sat, 1 Sep 2007 05:52:39 +0000 (05:52 +0000)]
Fix the description of the "Cache" memory and clarify the
description of the "Inact" memory.  (They count pages in
the cache/inactive page queues, respectively.)

Approved by: re (kensmith)

17 years agoFix races in msdosfs_lookup() and msdosfs_readdir(). These functions
Bruce Evans [Fri, 31 Aug 2007 22:29:55 +0000 (22:29 +0000)]
Fix races in msdosfs_lookup() and msdosfs_readdir().  These functions
can easily block in bread(), and then there was nothing to prevent the
static buffer (nambuf_{ptr,len,last_id}) being clobbered by another
thread.

The effects of the bug seem to have been limited to failed lookups and
mangled names in readdir(), since Giant locking provides enough
serialization to prevent concurrent calls to the functions that access
the buffer.  They were very obvious for multiple concurrent tree walks,
especially with a small cluster size.

The bug was introduced in msdosfs_conv.c 1.34 and associated changes,
and is in all releases starting with 5.2.

The fix is to allocate the buffer as a local variable and pass around
pointers to it like "_r" functions in libc do.  Stack use from this
is large but not too large.  This also fixes a memory leak on module
unload.

Reviewed by: kib
Approved by: re (kensmith)

17 years agoFound some obsolete files in /rescue.
Yaroslav Tykhiy [Fri, 31 Aug 2007 19:41:27 +0000 (19:41 +0000)]
Found some obsolete files in /rescue.
The ipf related stuff was removed in rescue/Makefile rev. 1.43,
and vinum in rev. 1.30.

Approved by: re (bmah)

17 years agoClose a race that snuck in with the recent changes to fix a LOR between
John Baldwin [Fri, 31 Aug 2007 19:01:30 +0000 (19:01 +0000)]
Close a race that snuck in with the recent changes to fix a LOR between
the callout_lock spin lock and the sleepqueue spin locks.  In the fix,
callout_drain() has to drop the callout_lock so it can acquire the
sleepqueue lock.  The state of the callout can change while the
callout_lock is held however (for example, it can be rescheduled via
callout_reset()).  The previous code assumed that the only state change
that could happen is that the callout could finish executing.  This change
alters callout_drain() to effectively restart and recheck everything
after it acquires the sleepqueue lock thus handling all the possible
states that the callout could be in after any changes while callout_lock
was dropped.

Approved by: re (kensmith)
Tested by: kris

17 years agoAdd missing newline in the log message of the previous commit.
Diomidis Spinellis [Fri, 31 Aug 2007 13:56:26 +0000 (13:56 +0000)]
Add missing newline in the log message of the previous commit.

Approved by: re (kensmith) - implied

17 years agoDon't panic. When encountering a negative value call log(LOG_NOTICE, ...)
Diomidis Spinellis [Fri, 31 Aug 2007 13:36:58 +0000 (13:36 +0000)]
Don't panic.  When encountering a negative value call log(LOG_NOTICE, ...)
and record LONG_MAX, instead of calling KASSERT(...).

Reported by: rwatson
Approved by: re (kensmith)

17 years agoEvaluate _OSC on boot to indicate our OS capabilities to ACPI. This is
Nate Lawson [Thu, 30 Aug 2007 21:18:42 +0000 (21:18 +0000)]
Evaluate _OSC on boot to indicate our OS capabilities to ACPI.  This is
needed at least to convince the BIOS to give us access to CPU freq
control on MacBooks.

Submitted by: Rui Paulo <rpaulo / fnop.net>
Approved by: re
MFC after: 5 days

17 years agoShow the ACTIVE flag in ifconfig for the single interface that is actaully
Andrew Thompson [Thu, 30 Aug 2007 19:12:10 +0000 (19:12 +0000)]
Show the ACTIVE flag in ifconfig for the single interface that is actaully
active in failover mode rather than all interfaces with a link. This makes it
clear if the master interface is in use or one of the backup links.

Found by: Writing the Handbook section
Approved by: re (kensmith)

17 years ago- Fix include path, these functions were moved to sys/priv.h.
Daniel Gerzo [Thu, 30 Aug 2007 15:03:21 +0000 (15:03 +0000)]
- Fix include path, these functions were moved to sys/priv.h.

Approved by: re (bmah)
Submitted by: sbahra@hpcl.seas.gwu.edu (via #bsddocs@EFnet)
Pointy hat to: rwatson

17 years agoRemove the lock assert from iwi_newstate, this function does not need the lock
Andrew Thompson [Wed, 29 Aug 2007 21:52:03 +0000 (21:52 +0000)]
Remove the lock assert from iwi_newstate, this function does not need the lock
to be held and this will falsely trigger if called from net80211.

Reported by: Munehiro (haro) Matsuda
Reviewed by: sam
Approved by: re (kensmith)

17 years agoPartially revert the previous change. I failed to notice that where
John Baldwin [Wed, 29 Aug 2007 21:17:11 +0000 (21:17 +0000)]
Partially revert the previous change.  I failed to notice that where
ktruserret() is invoked, an unlocked check of  the per-process queue
is performed inline, thus, we don't lock the ktrace_sx on every userret().

Pointy hat to: jhb
Approved by: re (kensmith)
Pointy hat recovered from: rwatson

17 years agoA port of the zyd driver from NetBSD by . This supports the ZyDAS
Warner Losh [Wed, 29 Aug 2007 21:16:50 +0000 (21:16 +0000)]
A port of the zyd driver from NetBSD by .  This supports the ZyDAS
ZD1211/ZD1211B USB IEEE 802.11b/g wireless network devices.  Not (yet)
connected to the build process (next batch of commits once I've looped
the current back back).

Submitted by: Weongyo Jeong
Reviewed by: sam@
Approved by: re@

17 years agoBring in the man page for zyd, ported from NetBSD, complete with bogus
Warner Losh [Wed, 29 Aug 2007 21:08:14 +0000 (21:08 +0000)]
Bring in the man page for zyd, ported from NetBSD, complete with bogus
Bill Paul copyright.  Not sure what the right copyright is, but this
file has been through 22 reversions on OpenBSD and 1 on NetBSD.  This
isn't (yet) connected to the build, just in case I've done something
wrong (test builds worked, but better safe than sorry).

Submitted by: Weongyo Jeong
Approved by: re@

17 years agoMakefile for building zyd kernel module.
Warner Losh [Wed, 29 Aug 2007 21:04:26 +0000 (21:04 +0000)]
Makefile for building zyd kernel module.

Submitted by: Weongyo Jeong
Approved by: re@ (kensmith)

17 years agoAdd devices for the forthcoming zyd driver, ported from NetBSD, by
Warner Losh [Wed, 29 Aug 2007 21:00:57 +0000 (21:00 +0000)]
Add devices for the forthcoming zyd driver, ported from NetBSD, by
Weongyo Jeong.

Submitted by: Weongyo Jeong
Approved by: re@

17 years agoRepair ALTQ-tagging rules in IPFW which got broken in the last PF
Brian Feldman [Wed, 29 Aug 2007 19:34:28 +0000 (19:34 +0000)]
Repair ALTQ-tagging rules in IPFW which got broken in the last PF
import.  The PF mbuf-tagging support routines changed to link the
allocated tags into the provided mbuf themselves, so the left-over
m_tag_prepend() was trying to add a bogus (usually NULL) tag.

Reviewed by: mlaier
Approved by: re

17 years agoRework the routines to convert a 5.x+ statfs structure (with fixed-size
John Baldwin [Tue, 28 Aug 2007 20:28:12 +0000 (20:28 +0000)]
Rework the routines to convert a 5.x+ statfs structure (with fixed-size
64-bit counters) to a 4.x statfs structure (with long-sized counters).
- For block counters, we scale up the block size sufficiently large so
  that the resulting block counts fit into a the long-sized (long for the
  ABI, so 32-bit in freebsd32) counters.  In 4.x the NFS client's statfs
  VOP did this already.  This can lie about the block size to 4.x binaries,
  but it presents a more accurate picture of the ratios of free and
  available space.
- For non-block counters, fix the freebsd32 stats converter to cap the
  values at INT32_MAX rather than losing the upper 32-bits to match the
  behavior of the 4.x statfs conversion routine in vfs_syscalls.c

Approved by: re (kensmith)

17 years agoRegenerate.
Konstantin Belousov [Tue, 28 Aug 2007 12:36:23 +0000 (12:36 +0000)]
Regenerate.

Approved by: re (kensmith)

17 years agoImplement fake linux sched_getaffinity() syscall to enable java to work
Konstantin Belousov [Tue, 28 Aug 2007 12:26:35 +0000 (12:26 +0000)]
Implement fake linux sched_getaffinity() syscall to enable java to work
with Linux 2.6 emulation. This shall be reimplemented once FreeBSD gets
native scheduler affinity syscalls.

Submitted by: rdivacky
Reviewed by: jkim
Sponsored by: Google Summer of Code 2007
Approved by: re (kensmith)

17 years agoFix off-by-two errors.
Jung-uk Kim [Tue, 28 Aug 2007 00:09:12 +0000 (00:09 +0000)]
Fix off-by-two errors.
Both WWNN and WWPN are 64-bit unsigned integers and they are prefixed
with "0x", which requires two more bytes each.

Submitted by: Danny Braniss (danny at cs dot huji dot ac dot il)
via Matthew Jacob (lydianconcepts at gmail dot com)
Approved by: re (bmah)
MFC after: 3 days

17 years agoOutput keymap choice to stderr so it is easier to parse for apps chained to
Murray Stokely [Mon, 27 Aug 2007 21:56:42 +0000 (21:56 +0000)]
Output keymap choice to stderr so it is easier to parse for apps chained to
this curses based app.

Submitted by: ivoras
Approved by: re@ (bmah@)

17 years agoRegenerate src.conf.5 -after- the addition of WITHOUT_ZONEINFO, the way
Remko Lodder [Mon, 27 Aug 2007 20:22:59 +0000 (20:22 +0000)]
Regenerate src.conf.5 -after- the addition of WITHOUT_ZONEINFO, the way
I did this in the previous commit, leaves out the parsing of $FreeBSD$
which is actually required to be parsed.

Kindly reminded by: bmah
Approved by: re (bmah)
Approved by: imp (mentor, implicit)

17 years agoAdd WITHOUT_ZONEINFO to the build options and regenerate src.conf.5
Remko Lodder [Mon, 27 Aug 2007 20:01:08 +0000 (20:01 +0000)]
Add WITHOUT_ZONEINFO to the build options and regenerate src.conf.5

Reminded by: ceri
Approved by: re (bmah)
Approved by: imp (mentor)

17 years ago- During shutdown pending, when the last sack came in and
Randall Stewart [Mon, 27 Aug 2007 05:19:48 +0000 (05:19 +0000)]
- During shutdown pending, when the last sack came in and
  the last message on the send stream was "null" but still
  there, a state we allow, we could get hung and not clean
  it up and wait for the shutdown guard timer to clear the
  association without a graceful close. Fix this so that
  that we properly clean up.
- Added support for Multiple ASCONF per new RFC. We only
  (so far) accept input of these and cannot yet generate
  a multi-asconf.
- Sysctl'd support for experimental Fast Handover feature. Always
  disabled unless sysctl or socket option changes to enable.
- Error case in add-ip where the peer supports AUTH and ADD-IP
  but does NOT require AUTH of ASCONF/ASCONF-ACK. We need to
  ABORT in this case.
- According to the Kyoto summit of socket api developers
  (Solaris, Linux, BSD). We need to have:
   o non-eeor mode messages be atomic - Fixed
   o Allow implicit setup of an assoc in 1-2-1 model if
     using the sctp_**() send calls - Fixed
   o Get rid of HAVE_XXX declarations - Done
   o add a sctp_pr_policy in hole in sndrcvinfo structure - Done
   o add a PR_SCTP_POLICY_VALID type flag - yet to-do in a future patch!
- Optimize sctp6 calls to reuse code in sctp_usrreq. Also optimize
  when we close sending out the data and disabling Nagle.
- Change key concatenation order to match the auth RFC
- When sending OOTB shutdown_complete always do csum.
- Don't send PKT-DROP to a PKT-DROP
- For abort chunks just always checksums same for
  shutdown-complete.
- inpcb_free front state had a bug where in queue
  data could wedge an assoc. We need to just abandon
  ones in front states (free_assoc).
- If a peer sends us a 64k abort, we would try to
  assemble a response packet which may be larger than
  64k. This then would be dropped by IP. Instead make
  a "minimum" size for us 64k-2k (we want at least
  2k for our initack). If we receive such an init
  discard it early without all the processing.
- When we peel off we must increment the tcb ref count
  to keep it from being freed from underneath us.
- handling fwd-tsn had bugs that caused memory overwrites
  when given faulty data, fixed so can't happen and we
  also stop at the first bad stream no.
- Fixed so comm-up generates the adaption indication.
- peeloff did not get the hmac params copied.
- fix it so we lock the addr list when doing src-addr selection
  (in future we need to use a multi-reader/one writer lock here)
- During lowlevel output, we could end up with a _l_addr set
  to null if the iterator is calling the output routine. This
  means we would possibly crash when we gather the MTU info.
  Fix so we only do the gather where we have a src address
  cached.
- we need to be sure to set abort flag on conn state when
  we receive an abort.
- peeloff could leak a socket. Moved code so the close will
  find the socket if the peeloff fails (uipc_syscalls.c)

Approved by: re@freebsd.org(Ken Smith)

17 years agoo Fix bug I introduced in the previous commit (ipfw set extention):
Maxim Konovalov [Sun, 26 Aug 2007 18:38:31 +0000 (18:38 +0000)]
o Fix bug I introduced in the previous commit (ipfw set extention):
pack a set number correctly.

Submitted by: oleg

o Plug a memory leak.

Submitted by: oleg and Andrey V. Elsukov
Approved by: re (kensmith)
MFC after: 1 week

17 years agoAdd option to not fill second code image, this makes the full disk
Poul-Henning Kamp [Sun, 26 Aug 2007 14:57:08 +0000 (14:57 +0000)]
Add option to not fill second code image, this makes the full disk
image compress much better.

Respect pkg_add's internal 200 package limitation.

Approved by: re (bmah)
Spelling fixes by: bmah

17 years agoOff-by-one bug in country ie construction, which will make HOSTAP send out
Sepherosa Ziehau [Sun, 26 Aug 2007 11:34:51 +0000 (11:34 +0000)]
Off-by-one bug in country ie construction, which will make HOSTAP send out
malformatted beacons.

Reviewed by: sam
Approved by: re (bmah), sam (mentor)

17 years agoFix following nits:
Sepherosa Ziehau [Sun, 26 Aug 2007 11:32:56 +0000 (11:32 +0000)]
Fix following nits:
- Per ieee80211com sysctl ctx leakage on detach
- getmgtframe incorrectly adjusts mbuf.m_data

Reviewed by: sam
Approved by: re (bmah), sam (mentor)

17 years agoUpdate the MFI driver to support new "1078" series of hardware. This
Scott Long [Sat, 25 Aug 2007 23:58:45 +0000 (23:58 +0000)]
Update the MFI driver to support new "1078" series of hardware.  This
includes the upcoming Dell PERC6 series.  Many thanks to LSI for
contributing this code.

Submitted by: LSI
Approved by: re

17 years agoFixes for 4 port and small packet optimization
Kip Macy [Sat, 25 Aug 2007 21:07:37 +0000 (21:07 +0000)]
Fixes for 4 port and small packet optimization

- remove cpl->iff panic - we can't know the port number from the rspq on the 4-port
- pick the ifnet based on the interface in the CPL header
- switch to using qset 0 for egress on the 4-port for now - may change
  when we start using RSS
- move ether_ifdetach to before the port lock gets deinitialized to avoid
  hang in the case where there are BPF peers (cxgb_ioctl is called indirectly
  when BPF peers are present)
- don't call t3_mac_reset if multiport is set, this was causing tx errors
  by misconfiguring the MAC on the 4-port
- change V_TXPKT_INTF to use txpkt_intf as the interfaces are not contiguous
- free the mbuf immediately in the case where the payload is small enough to be copied
  into the rspq
- only update the coalesce timer if for a queue if packets were taken off of it
- add in missed 20ms DELAY in initializaton vsc8211

- prompt MFC as this only applies to the 4-port which is currently completely
  broken - OK'd by kensmith

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

17 years agosleep 2 seconds after having loaded g_uzip.ko. We need this because
Matteo Riondato [Sat, 25 Aug 2007 00:19:17 +0000 (00:19 +0000)]
sleep 2 seconds after having loaded g_uzip.ko. We need this because
otherwise the /dev/mdX.uzip won't be created immediately, which is
needed because we issue a mount right afterwards.

Approved by: re@ (bmah@)
MFC after: 2 days

17 years agodocument hw.realmem
Daniel Gerzo [Fri, 24 Aug 2007 20:38:09 +0000 (20:38 +0000)]
document hw.realmem

Submitted by: cnst@ (Constantine A. Murenin)
Sponsored by: Google Summer of Code 2007
Approved by: re@ (bmah)
MFC after: 1 week

17 years agoRemove old prototypes for addr2ascii() and ascii2addr(), functions which no
Bruce M Simpson [Fri, 24 Aug 2007 20:25:52 +0000 (20:25 +0000)]
Remove old prototypes for addr2ascii() and ascii2addr(), functions which no
longer exist in libc.

Requested by: Craig Rodrigues
Approved by: re (kensmith)

17 years agoFix stack overflow with too many items return list in 'dialog' program.
Andrey A. Chernov [Fri, 24 Aug 2007 16:26:24 +0000 (16:26 +0000)]
Fix stack overflow with too many items return list in 'dialog' program.
(Noticed in ghostscript-gpl core dump)

Approved by:    re@ (bmah)

17 years agodrop frames marked for encryption when no key is available
Sam Leffler [Fri, 24 Aug 2007 15:44:27 +0000 (15:44 +0000)]
drop frames marked for encryption when no key is available

Reviewed by: avatar
Approved by: re (kensmith)
Obtained from: madwifi

17 years agoNew release note: coretemp(4).
Bruce A. Mah [Fri, 24 Aug 2007 15:18:42 +0000 (15:18 +0000)]
New release note:  coretemp(4).

Updated release note:  tzdata2007g [1].

[1] Technically I should remove the &merged; entity here but the commit  has
a one-week MFC-after so I figure I can leave it this way for now.

Approved by: re (implicitly)

17 years agoMFV: tzdata2007g
Edwin Groothuis [Fri, 24 Aug 2007 13:36:20 +0000 (13:36 +0000)]
MFV: tzdata2007g

PR: conf/115706
Submitted by: edwin@
Approved by: re (bmah@)
Obtained from: ftp://elsie.nci.nih.gov/pub/
MFC after: 1 week

17 years agoThis commit was generated by cvs2svn to compensate for changes in r171945,
Edwin Groothuis [Fri, 24 Aug 2007 13:27:26 +0000 (13:27 +0000)]
This commit was generated by cvs2svn to compensate for changes in r171945,
which included commits to RCS files with non-trunk default branches.

17 years agoImport of timezone database from Arthur Olson et al.
Edwin Groothuis [Fri, 24 Aug 2007 13:27:26 +0000 (13:27 +0000)]
Import of timezone database from Arthur Olson et al.

Timezone data changes in the following locations:

- Egypt
- Australia (new DST rules for 2008 and following)
- Perry County, Indiana
- America/Indiana/Tell_City
- Pike County, Indiana

Also:

- City coordinates corrected.
- Layout of leapseconds is updated

PR: conf/115706
Approved by: re (bmah@)

17 years ago- Fix address add handling to clear cached routes and source addresses
Randall Stewart [Fri, 24 Aug 2007 00:53:53 +0000 (00:53 +0000)]
- Fix address add handling to clear cached routes and source addresses
  when peer acks the add in case the routing table changes.
- Fix sctp_lower_sosend to send shutdown chunk for mbuf send
  case when sndlen = 0 and sinfoflag = SCTP_EOF
- Fix sctp_lower_sosend for SCTP_ABORT mbuf send case with null data,
  So that it does not send the "null" data mbuf out and cause
  it to get freed twice.
- Fix so auto-asconf sysctl actually effect the socket's asconf state.
- Do not allow SCTP_AUTO_ASCONF option to be used on subset bound sockets.
- Memset bug in sctp_output.c (arguments were reversed) submitted
  found and reported by Dave Jones (davej@codemonkey.org.uk).
- PD-API point needs to be invoked >= not just > to conform to socket api
  draft this fixes sctp_indata.c in the two places need to be >=.
- move M_NOTIFICATION to use M_PROTO5.
- PEER_ADDR_PARAMS did not fail properly if you specify an address
  that is not in the association with a valid assoc_id. This meant
  you got or set the stcb level values instead of the destination
  you thought you were going to get/set. Now validate if the
  stcb is non-null and the net is NULL that the sa_family is
  set and the address is unspecified otherwise return an error.
- The thread based iterator could crash if associations were freed
  at the exact time it was running. rework the worker thread to
  use the increment/decrement to prevent this and no longer use
  the markers that the timer based iterator uses.
- Fix the memleak in sctp_add_addr_to_vrf() for the case when it is
  detected that ifa is already pointing to a ifn.
- Fix it so that if someone is so insane that they drop the
  send window below the minimal add mark, they still can send.
- Changed all state for associations to use mask safe macro.
- During front states in association freeing in sctp_inpcbfree, we
  had a locking problem where locks were not in place where they
  should have been.
- Free association calls were not testing the return value in
  sctp_inpcb_free() properly... others should be cast  void returns
  where we don't care about the return value.
- If a reference count is held on an assoc, even from the "force free"
  we should not do the actual free.. but instead let the timer
  free it.
- When we enter sctp_input(), if the SCTP_ASOC_ABOUT_TO_BE_FREED
  flag is set, we must NOT process the packet but handle it like
  ootb. This is because while freeing an assoc we release the
  locks to get all the higher order locks so we can purge all
  the hash tables. This leaves a hole if a packet comes in
  just at that point. Now sctp_common_input_processing() will
  call the ootb code in such a case.
- Change MBUF M_NOTIFICATION to use M_PROTO5 (per Sam L). This makes
  it so we don't have a conflict (I think this is a covertity change).
  We made this change AFTER some conversation and looking to make sure
  that M_PROTO5 does not have a problem between SCTP and the 802.11
  stuff (which is the only other place its used).
- Fixed lock order reversal and missing atomic protection around
  locked_tcb during association lookup and the 1-2-1 model.
- Added debug to source address selection.
- V6 output must always do checksum even for loopback.
- Remove more locks around inp that are not needed for an atomically
  added/subtracted ref count.
- slight optimization in the way we zero the array in sctp_sack_check()
- It was possible to respond to a ABORT() with bad checksum with
  a PKT-DROP. This lead to a PKT-DROP/ABORT war. Add code to NOT
  send a PKT-DROP to any ABORT().
- Add an option for local logging (useful for macintosh or when
  you need better performing during debugging). Note no commands
  are here to get the log info, you must just use kgdb.
- The timer code needs to be aware of if it needs to call
  sctp_sack_check() to slide the maps and adjust the cum-ack.
  This is because it may be out of sync cum-ack wise.
- Added threshold managment logging.
- If the user picked just the right size, that just filled the send
  window minus one mtu, we would enter a forever loop not copying and
  at the same time not blocking. Change from < to <= solves this.
- Sysctl added to control the fragment interleave level which defaults
  to 1.
- My rwnd control was not being used to control the rwnd properly (we
  did not add and subtract to it :-() this is now fixed so we handle
  small messages (1 byte etc) better to bring our rwnd down more
  slowly.

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

17 years ago- Fix typo in netstat's display of Nagle algorithm - refer to the RFC.
Randall Stewart [Fri, 24 Aug 2007 00:35:18 +0000 (00:35 +0000)]
- Fix typo in netstat's display of Nagle algorithm - refer to the RFC.

Submitted by: bruce@cran.org.uk
Approved by: re@freebsd.org (Bruce Mah)

17 years agoAdd PCI IDs for two cards:
Ed Maste [Thu, 23 Aug 2007 20:12:40 +0000 (20:12 +0000)]
Add PCI IDs for two cards:
- Adaptec RAID 3405
- Adaptec RAID 3805

Approved by: re (bmah)
Submitted by: John Marra  jmarra at nmu dot edu
MFC After: 1 week

17 years agoAdd man pages for coretemp(4) and ichwd(4).
Dag-Erling Smørgrav [Thu, 23 Aug 2007 20:05:09 +0000 (20:05 +0000)]
Add man pages for coretemp(4) and ichwd(4).

Approved by: re (bmah)

17 years agoReturn EADDRNOTAVAIL instead of EDESTADDRREQ error when
Maksim Yevmenkin [Thu, 23 Aug 2007 16:55:22 +0000 (16:55 +0000)]
Return EADDRNOTAVAIL instead of EDESTADDRREQ error when
listen(2) is called on improperly bound socket.

Suggested by: Iain Hibbert
Approved by: re (kensmith)
MFC after: 3 days

17 years agoExport 4Gbps Fibre Channel link speed correctly with inquiry commands.
Jung-uk Kim [Thu, 23 Aug 2007 15:57:13 +0000 (15:57 +0000)]
Export 4Gbps Fibre Channel link speed correctly with inquiry commands.

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

17 years agoFix pkg_add behaviour to preserve pathnames.
Kirill Ponomarev [Thu, 23 Aug 2007 13:05:10 +0000 (13:05 +0000)]
Fix pkg_add behaviour to preserve pathnames.

PR: bin/93915 bin/109134
Submitted by: Jason Heiss <heissj@yahoo-inc.com>, Constantin Stefanov<cstef@mail.ru>
Approved by: re@ (kensmith)
MFC after: 7 days

17 years agoStyle nits + more reliable Tj(max) detection + improved reporting of
Dag-Erling Smørgrav [Thu, 23 Aug 2007 10:53:03 +0000 (10:53 +0000)]
Style nits + more reliable Tj(max) detection + improved reporting of
critical temperature + sched_unbind() after rdmsr + initialize sc_dev.

Submitted by: Rui Paulo <rpaulo@fnop.net>, cnst
Approved by: re (kensmith)

17 years agoUse POSIX mutex instead of Solaris ones. This makes generation
Xin LI [Thu, 23 Aug 2007 09:39:40 +0000 (09:39 +0000)]
Use POSIX mutex instead of Solaris ones.  This makes generation
of threaded RPC servers to work out of the box.

Spotted by: Changming Sun <changming at staff.sina.com.cn>
Sponsored by: SINA Corporation
Approved by: re (kensmith)

17 years agosysent.h is installed as sys/sysent.h, so reflect it.
Xin LI [Thu, 23 Aug 2007 09:38:26 +0000 (09:38 +0000)]
sysent.h is installed as sys/sysent.h, so reflect it.

Approved by: re (kensmith)
Spotted by: Changming Sun <changming at staff.sina.com.cn>
Sponsored by: SINA Corporation

17 years agoWhen checking the sequence number of a TCP header embedded in an
Daniel Hartmeier [Thu, 23 Aug 2007 09:30:58 +0000 (09:30 +0000)]
When checking the sequence number of a TCP header embedded in an
ICMP error message, do not access th_flags. The field is beyond
the first eight bytes of the header that are required to be present
and were pulled up in the mbuf.

A random value of th_flags can have TH_SYN set, which made the
sequence number comparison not apply the window scaling factor,
which led to legitimate ICMP(v6) packets getting blocked with
"BAD ICMP" debug log messages (if enabled with pfctl -xm), thus
breaking PMTU discovery.

Triggering the bug requires TCP window scaling to be enabled
(sysctl net.inet.tcp.rfc1323, enabled by default) on both end-
points of the TCP connection. Large scaling factors increase
the probability of triggering the bug.

PR: kern/115413: [ipv6] ipv6 pmtu not working
Tested by: Jacek Zapala
Reviewed by: mlaier
Approved by: re (kensmith)

17 years agoForced commit to note repo-copy:
Yaroslav Tykhiy [Thu, 23 Aug 2007 05:09:31 +0000 (05:09 +0000)]
Forced commit to note repo-copy:

These files have been repo-copied from src/include/fts.h
and src/lib/libc/gen/fts.c to serve as a base for 4.4BSD
compatible versions of fts(3) functions to be preserved
through libc symbol versioning while the default versions
undergo ABI-breaking extension to support big file trees.

Approved by: re (kensmith)

17 years agoNMIs now come from 'nmi_calltrap' rather than 'calltrap', so teach 'kgdb'
John Baldwin [Wed, 22 Aug 2007 20:28:13 +0000 (20:28 +0000)]
NMIs now come from 'nmi_calltrap' rather than 'calltrap', so teach 'kgdb'
to treat the frame under 'nmi_calltrap' as a trapframe.

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

17 years agoBring in two fixes for TinyBSD:
Remko Lodder [Wed, 22 Aug 2007 18:45:00 +0000 (18:45 +0000)]
Bring in two fixes for TinyBSD:

- Add the bind mtree to the TinyBSD build so that files
  can be installed there (else the build fails)
- Change GEOM_GPT to GEOM_PART_GPT since that had been
  renamed in current. The kernel configuration provided
  by TinyBSD will not build without these changes.

PR: misc/115484
PR: misc/115405
Submitted by: Richard Arends <richard at unixguru dot nl>
Approved by: re (bmah)
Approved by: imp (mentor)

17 years ago- Fix origin of the portcheckout port as we have it in the port-mgmt
Gabor Kovesdan [Wed, 22 Aug 2007 18:07:41 +0000 (18:07 +0000)]
- Fix origin of the portcheckout port as we have it in the port-mgmt
  category now

PR: docs/115193
Submitted by: Tomas Mozes <hydrapolic at gmail dot com>
Approved by: re (bmah),
keramida (mentor)
MFC after: 0 days

17 years ago- Use mount -t msdosfs instead of mount_msdosfs
Gabor Kovesdan [Wed, 22 Aug 2007 18:04:08 +0000 (18:04 +0000)]
- Use mount -t msdosfs instead of mount_msdosfs

PR: docs/115571
Submitted by: rodrigc
Approved by: re (bmah),
keramida (mentor)
MFC after: 1 week

17 years ago- Fix a copy-paste bug in the list of supported chips
Gabor Kovesdan [Wed, 22 Aug 2007 18:02:01 +0000 (18:02 +0000)]
- Fix a copy-paste bug in the list of supported chips

PR: docs/115151
Submitted by: O. Hartmann <ohartman at zedat dot fu-berlin dot de>
Approved by: re (bmah),
keramida (mentor)

17 years ago- Fix a bug which could cause a panic when enabling LRO
Andrew Gallatin [Wed, 22 Aug 2007 13:22:12 +0000 (13:22 +0000)]
- Fix a bug which could cause a panic when enabling LRO
   on an down mxge interface
- Fix a bug where mxge reported the link state as
   active when it wasn't (after ifconfig down).
- Prevent spurious watchdog resets when link partner is not consuming
- Add support for CX4 and popular XFP media detection
- Update the firmware and associated header files to 1.4.25

Approved by: re (kensmith)