]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoThis commit was generated by cvs2svn to compensate for changes in r171945,
edwin [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.

16 years agoImport of timezone database from Arthur Olson et al.
edwin [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@)

16 years ago- Fix address add handling to clear cached routes and source addresses
rrs [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)

16 years ago- Fix typo in netstat's display of Nagle algorithm - refer to the RFC.
rrs [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)

16 years agoAdd PCI IDs for two cards:
emaste [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

16 years agoAdd man pages for coretemp(4) and ichwd(4).
des [Thu, 23 Aug 2007 20:05:09 +0000 (20:05 +0000)]
Add man pages for coretemp(4) and ichwd(4).

Approved by: re (bmah)

16 years agoReturn EADDRNOTAVAIL instead of EDESTADDRREQ error when
emax [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

16 years agoExport 4Gbps Fibre Channel link speed correctly with inquiry commands.
jkim [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

16 years agoFix pkg_add behaviour to preserve pathnames.
krion [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

16 years agoStyle nits + more reliable Tj(max) detection + improved reporting of
des [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)

16 years agoUse POSIX mutex instead of Solaris ones. This makes generation
delphij [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)

16 years agosysent.h is installed as sys/sysent.h, so reflect it.
delphij [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

16 years agoWhen checking the sequence number of a TCP header embedded in an
dhartmei [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)

16 years agoForced commit to note repo-copy:
yar [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)

16 years agoNMIs now come from 'nmi_calltrap' rather than 'calltrap', so teach 'kgdb'
jhb [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)

16 years agoBring in two fixes for TinyBSD:
remko [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)

16 years ago- Fix origin of the portcheckout port as we have it in the port-mgmt
gabor [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

16 years ago- Use mount -t msdosfs instead of mount_msdosfs
gabor [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

16 years ago- Fix a copy-paste bug in the list of supported chips
gabor [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)

16 years ago- Fix a bug which could cause a panic when enabling LRO
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)

16 years agoAssign sizes to assembly language support functions.
jkoshy [Wed, 22 Aug 2007 05:06:14 +0000 (05:06 +0000)]
Assign sizes to assembly language support functions.

Approved by: re (kensmith)

16 years agoDefine an END() macro for use in i386 and amd64 assembly code, akin
jkoshy [Wed, 22 Aug 2007 04:26:07 +0000 (04:26 +0000)]
Define an END() macro for use in i386 and amd64 assembly code, akin
to the one available on the ia64, sparc64, and sun4v architectures.

Approved by: re (kensmith)

16 years agoAdd thr_kill2 syscall.
davidxu [Wed, 22 Aug 2007 01:56:35 +0000 (01:56 +0000)]
Add thr_kill2 syscall.

Submitted by: Tijl Coosemans tijl at ulyssis dot org
Approved by: re (kensmith)

16 years agoAdd a HARDWARE section which lists supported devices.
sanpei [Tue, 21 Aug 2007 13:20:13 +0000 (13:20 +0000)]
Add a HARDWARE section which lists supported devices.
Kyocera AH-K3001V Mobile Phone(WILLCOM)
Kyocera WX320K Mobile Phone(WILLCOM)

Approved by:    re (bmah)

16 years agoProperly initialize the dev_priv before calling the i915_dma_cleanup().
kib [Tue, 21 Aug 2007 12:52:57 +0000 (12:52 +0000)]
Properly initialize the dev_priv before calling the i915_dma_cleanup().
This fixes my rev. 1.5.

Reviewed by: anholt
Approved by: re (kensmith)
MFC after: 2 weeks

16 years agoIn general, when we map a page into the kernel's address space, we no
alc [Tue, 21 Aug 2007 04:59:34 +0000 (04:59 +0000)]
In general, when we map a page into the kernel's address space, we no
longer create a pv entry for that mapping.  (The two exceptions are
mappings into the kernel's exec and pipe submaps.)  Consequently, there is
no reason for get_pv_entry() to dig deep into the free page queues, i.e.,
use VM_ALLOC_SYSTEM, by default.  This revision changes get_pv_entry() to
use VM_ALLOC_NORMAL by default, i.e., before calling pmap_collect() to
reclaim pv entries.

Approved by: re (kensmith)

16 years agoSome times ago, vfs_getopts() was changed, so that it would set error to
cognet [Mon, 20 Aug 2007 15:33:22 +0000 (15:33 +0000)]
Some times ago, vfs_getopts() was changed, so that it would set error to
ENOENT if the option wasn't provided, instead of setting it to 0.
xfs however didn't catch up on this, so it assumed something went bad if
vfs_getopts() sets the error to non-zero, and just returns the error.
Unbreak xfs mount by just ignoring the error if vfs_getopts() sets the
error to ENOENT, as we should have sane defaults.

Reviewed by:    kan
Approved by:    re (rwatson)
Tested by:      rpaulo

16 years agoDo not drop vm_map lock between doing vm_map_remove() and vm_map_insert().
kib [Mon, 20 Aug 2007 12:05:45 +0000 (12:05 +0000)]
Do not drop vm_map lock between doing vm_map_remove() and vm_map_insert().
For this, introduce vm_map_fixed() that does that for MAP_FIXED case.

Dropping the lock allowed for parallel thread to occupy the freed space.

Reported by: Tijl Coosemans <tijl ulyssis org>
Reviewed by: alc
Approved by: re (kensmith)
MFC after: 2 weeks

16 years agoDestroy the kaio_mtx on the freeing the struct kaioinfo in the
kib [Mon, 20 Aug 2007 11:53:26 +0000 (11:53 +0000)]
Destroy the kaio_mtx on the freeing the struct kaioinfo in the
aio_proc_rundown.

Do not allow for zero-length read to be passed to the fo_read file method
by aio.

Reported and tested by: Peter Holm
Approved by: re (kensmith)

16 years ago - Improve runq_findbit_from() which is used by ULE's circular queue. Mask
jeff [Mon, 20 Aug 2007 06:36:12 +0000 (06:36 +0000)]
 - Improve runq_findbit_from() which is used by ULE's circular queue.  Mask
   of the bits we want to ignore on the first pass rather than doing a
   linear scan.  This puts us within a few instructions of the cost of
   runq_findbit() and removes this function from the top of profiling output
   for context switch heavy workloads.

Approved by: re

16 years ago - Set steal_thresh to log2(ncpus). This improves idle-time load balancing
jeff [Mon, 20 Aug 2007 06:34:20 +0000 (06:34 +0000)]
 - Set steal_thresh to log2(ncpus).  This improves idle-time load balancing
   on 2cpu machines by reducing it to 1 by default.  This improves loaded
   operation on 8cpu machines by increasing it to 3 where the extra idle
   time is not as critical.

Approved by: re

16 years agoAlways call sched_bind(), even if on the CPU in question. It is wrong to
njl [Mon, 20 Aug 2007 06:28:26 +0000 (06:28 +0000)]
Always call sched_bind(), even if on the CPU in question.  It is wrong to
check if we're already on that cpu and skip the bind since the thread could
be migrated off in the meantime.

Suggested by: jeff
Approved by: re

16 years agoUse a different loop variable for the inner loop. This previous reuse could
njl [Sun, 19 Aug 2007 20:34:13 +0000 (20:34 +0000)]
Use a different loop variable for the inner loop.  This previous reuse could
have caused a hang, but we got lucky with the available multi-CPU states
on actual hardware.

Submitted by: Bjorn Koenig <bkoenig / alpha-tierchen.de>
Approved by: re
MFC after: 3 days

16 years agoThis commit updates libarchive to be compatible with
kientzle [Sat, 18 Aug 2007 21:53:25 +0000 (21:53 +0000)]
This commit updates libarchive to be compatible with
GNU tar 1.17's implementation of --posix --sparse,
at the cost of losing compatibility with GNU tar 1.16.
Fortunately, the 1.17 implementation actually makes sense,
so the libarchive code is now a bit more straightforward
than before.

Background:  GNU tar 1.16 defined a new way to store
sparse files in --posix archives.  Unfortunately,
the implementation incorrectly inserted several
blocks of null padding after each such entry.
As a result, non-GNU tar implementations saw the
archive as truncated after any sparse entry.
This was fixed in GNU tar 1.17 at the cost of
losing compatibility with GNU tar 1.16 for this
new format (which is not the default, so hopefully
rarely used).  Libarchive recently gained support
for reading the GNU tar 1.16 formats; this commit
updates it to read the GNU tar 1.17 variant instead.

Approved by: re (ksmith for libarchive portion)
Approved by: re (blanket for libarchive_test portion)
MFC after: 5 days

16 years agoRemove references to the now-deleted installation notes and add a
bmah [Sat, 18 Aug 2007 17:11:14 +0000 (17:11 +0000)]
Remove references to the now-deleted installation notes and add a
pointer to the installation chapter of the Handbook (it might be a
good idea to sprinkle a few more through this article).

De-emphasize the floppy disk part of installation media; it's
generally believed that most users install from CDROM or DVD
nowadays.

Use &arch.* entities where appropriate.

Bump copyright date while here.

Approved by: re (implicitly)

16 years agoJust wbinv if both PREREAD and PREWRITE are set.
cognet [Sat, 18 Aug 2007 16:47:28 +0000 (16:47 +0000)]
Just wbinv if both PREREAD and PREWRITE are set.
In PREREAD, just invalidate the cache lines, and do not write back them, if
the buffer is properly aligned.

Approved by: re (blanket)

16 years agoRemove comment that is no longer quite true.
kib [Sat, 18 Aug 2007 16:41:31 +0000 (16:41 +0000)]
Remove comment that is no longer quite true.

Noted by: alc
Approved by: re (kensmith)

16 years agoFactor out arch.* entities so we don't need to include them with
bmah [Sat, 18 Aug 2007 16:40:37 +0000 (16:40 +0000)]
Factor out arch.* entities so we don't need to include them with
every one of the release documents.

Approved by: re (implicitly)

16 years agoFix the phys_pager in the way similar to the rev. 1.83 of the
kib [Sat, 18 Aug 2007 16:40:33 +0000 (16:40 +0000)]
Fix the phys_pager in the way similar to the rev. 1.83 of the
sys/vm/device_pager.c:

Protect the creation of the phys pager with non-NULL handle with the
phys_pager_mtx. Lookup of phys pager in the pagers list by handle is now
synchronized with its removal from the list, and phys_pager_mtx is put
before vm object lock in lock order. Dispose the phys_pager_alloc_lock
and tsleep calls, together with acquiring Giant, since phys_pager_mtx
now covers the same block.

Reviewed by: alc
Approved by: re (kensmith)

16 years agoIf the STP state machine is stopped then clear the bridge-id and root-id.
thompsa [Sat, 18 Aug 2007 12:06:13 +0000 (12:06 +0000)]
If the STP state machine is stopped then clear the bridge-id and root-id.

Approved by: re (kensmith)

16 years agoAdd ng_send_fn() error handeling inside ng_con_nodes().
mav [Sat, 18 Aug 2007 11:59:17 +0000 (11:59 +0000)]
Add ng_send_fn() error handeling inside ng_con_nodes().
Without it some errors may left unnoticed and unhandeled
that will lead to hooks left in half-connected state.

Reviewed by: julian@
Approved by: re (kensmith), glebius (mentor)

16 years ago- Sweep the boot(8) man page after addition of boot.config(5).
danger [Sat, 18 Aug 2007 07:58:36 +0000 (07:58 +0000)]
- Sweep the boot(8) man page after addition of boot.config(5).

Reviewed by: keramida
Approved by: re (kensmith)

16 years agoMy forced commit to note the repo-copy (naturally) changed the $FreeBSD$ keyword...
mtm [Sat, 18 Aug 2007 04:08:53 +0000 (04:08 +0000)]
My forced commit to note the repo-copy (naturally) changed the $FreeBSD$ keyword line,
so that when I applied the patch to my check-in tree the top half of my patch failed to
apply.  Off course I saw what I *expected* to see (the bottom half succeeded) and
didn't notice that it had failed to apply cleanly.

Approved by: re (bmah)

16 years agoDon't pass RB_BOOTINFO to the kernel. There's no bootinfo actually
imp [Fri, 17 Aug 2007 18:22:31 +0000 (18:22 +0000)]
Don't pass RB_BOOTINFO to the kernel.  There's no bootinfo actually
passed into the kernel, and the kernel will soon grow that ability on
arm.

Approved by: re@ (blanket)

16 years agoFix the order in which we build subdirectories in a "make all" from the
bmah [Fri, 17 Aug 2007 14:16:59 +0000 (14:16 +0000)]
Fix the order in which we build subdirectories in a "make all" from the
top-level release/doc directory.  We were building in share/sgml first,
which caused us to autogenerate hardware notes entities in the wrong
format (we want to build these via ${RELNOTES_LANG}/hardware/Makefile,
in order to get the HWNOTES_MI variable).

Approved by: re (kensmith)

16 years agoRemove one more reference to the installation notes, this time in the
bmah [Fri, 17 Aug 2007 14:13:39 +0000 (14:13 +0000)]
Remove one more reference to the installation notes, this time in the
floppies directory.

Pointed out by: kensmith
Approved by: re (blanket for installation notes removal)

16 years agoThe rc.d/nfslocking file controls two servers: rpc.statd and rpc.lockd. It worked...
mtm [Fri, 17 Aug 2007 07:58:26 +0000 (07:58 +0000)]
The rc.d/nfslocking file controls two servers: rpc.statd and rpc.lockd. It worked well
in most cases, except one. The 'restart' case was not working as expected. Specifically,
it would stop both lockd and statd, but it would restart only statd (which appears first
in the script). This is because rc.subr(8) contains code to guard against infinite
recursion in the 'restart' casae.

To fix this use the traditional approach of controlling only one server from one script by
breaking out rc.d/nfslocking into its contituent parts: rc.d/lockd and rc.d/statd. Keep
rc.d/nfslocking around but don't include it in the boot rcorder(8)ing.

PR:      conf/107316
Approved by: re (bmah)
MFC after:   2 weeks

16 years agoRepo-copy from rc.d/nfslocking ver. 1.11.
mtm [Fri, 17 Aug 2007 07:41:36 +0000 (07:41 +0000)]
Repo-copy from rc.d/nfslocking ver. 1.11.

PR:      conf/107316
Approved by: re (bmah)

16 years agoforward port signedness fixes from RELENG_6
kmacy [Fri, 17 Aug 2007 05:57:04 +0000 (05:57 +0000)]
forward port signedness fixes from RELENG_6
fix compile error for case where MSI_SUPPORTED not defined

Approved by: re (blanket)

16 years agoWe don't need to call dcons_poll event handlers if KDB is not active.
simokawa [Fri, 17 Aug 2007 05:32:39 +0000 (05:32 +0000)]
We don't need to call dcons_poll event handlers if KDB is not active.

Approved by: re (kensmith)

16 years ago1. Remove root name servers from the list of possible masters in the
dougb [Fri, 17 Aug 2007 04:37:02 +0000 (04:37 +0000)]
1. Remove root name servers from the list of possible masters in the
commented out example who have either not responded, or specifically
asked not to participate because they do not view AXFR as "a production
service."

2. Add f.root-servers.net to the example after confirmation from
Paul Vixie.

3. Add a warning to the commented out "root zone slave" example to the
effect that it requires more attention than a hints file, and provides
more benefit to larger sites than individual hosts.

4. Correct a typo copied from RFC 2544 which was corrected in a later
errata, and confirmed in RFC 3330. Update the comment to reflect that
RFC 3330 got it right and to avoid confusion down the road. 3330 also
contains a reference back to 2544 for anyone interested in pursuing the
history. [1]

PR:             conf/115573 [1]
Submitted by:   Oliver Fromme <olli@secnetix.de> [1]

Approved by: re (kensmith)

16 years agoInstall etx/numeric_traits.h.
kan [Thu, 16 Aug 2007 23:02:00 +0000 (23:02 +0000)]
Install etx/numeric_traits.h.

PR: gnu/115250
Approved by: re (blanket)

16 years agoSome ZFS threads needs stack larger than the default 8kB, so use 16kB of
pjd [Thu, 16 Aug 2007 20:33:20 +0000 (20:33 +0000)]
Some ZFS threads needs stack larger than the default 8kB, so use 16kB of
alternate stack if the default is smaller than 16kB.

Approved by: re (rwatson)

16 years agoMFp4: rework tmpfs_readdir() logic in terms of correctness.
delphij [Thu, 16 Aug 2007 11:00:07 +0000 (11:00 +0000)]
MFp4: rework tmpfs_readdir() logic in terms of correctness.

Approved by: re (tmpfs blanket)
Tested with: fstest, fsx

16 years agoRegenerate.
davidxu [Thu, 16 Aug 2007 05:32:26 +0000 (05:32 +0000)]
Regenerate.

Approved by: re(kensmith)

16 years agoAdd thr_kill2 compat32 syscall.
davidxu [Thu, 16 Aug 2007 05:30:04 +0000 (05:30 +0000)]
Add thr_kill2 compat32 syscall.

Submitted by: Tijl Coosemans tijl at ulyssis dot org
Approved by: re (kensmith)

16 years agoAdd thr_kill2 syscall which sends a signal to a thread in another process.
davidxu [Thu, 16 Aug 2007 05:26:42 +0000 (05:26 +0000)]
Add thr_kill2 syscall which sends a signal to a thread in another process.

Submitted by: Tijl Coosemans tijl at ulyssis dot org
Approved by: re (kensmith)

16 years ago- Remove extra comment for 7.0 (no GIANT here).
rrs [Thu, 16 Aug 2007 01:51:22 +0000 (01:51 +0000)]
- Remove extra comment for 7.0 (no GIANT here).
- Remove unneeded WLOCK/UNLOCK of inp for getting TCB lock.
- Fix panic that may occur when freeing an assoc that has partial
  delivery in progress (may dereference null socket pointer when
  queuing partial delivery aborted notification)
- Some spacing and comment fixes.
- Fix address add handling to clear cached routes and source addresses
  when peer acks the add in case the routing table changes.
Approved by: re@freebsd.org (Bruce Mah)

16 years agoUse the sequence number comparison macro to compare
qingli [Thu, 16 Aug 2007 01:35:55 +0000 (01:35 +0000)]
Use the sequence number comparison macro to compare
projected_offset against isn_offset to account for
wrap around.

Reviewed by: gnn, kmacy, silby
Submitted by: yusheng.huang@bluecoat.com
Approved by: re
MFC: 3 days

16 years agoAdd a driver for the on-die digital thermal sensor found on Intel Core
des [Wed, 15 Aug 2007 19:26:03 +0000 (19:26 +0000)]
Add a driver for the on-die digital thermal sensor found on Intel Core
and newer CPUs (including Core 2 and Core / Core 2 based Xeons).  The
driver attaches to each cpu device and creates a sysctl node in that
device's sysctl context (dev.cpu.N.temperature).  When invoked, the
handler binds to the appropriate CPU to ensure a correct reading.

Submitted by: Rui Paulo <rpaulo@fnop.net>
Sponsored by: Google Summer of Code 2007
Tested by: des, marcus, Constantine A. Murenin, Ian FREISLICH
Approved by: re (kensmith)
MFC after: 3 weeks

16 years agoCleanup of old hardware notes source files. Somehow these didn't get
bmah [Wed, 15 Aug 2007 18:09:08 +0000 (18:09 +0000)]
Cleanup of old hardware notes source files.  Somehow these didn't get
removed in the hardware notes refactoring.

Approved by: re (implicitly)

16 years agoOn 6.x this works:
jhb [Wed, 15 Aug 2007 17:40:09 +0000 (17:40 +0000)]
On 6.x this works:

% mount | grep home
/dev/ad4s1e on /home (ufs, local, noatime, soft-updates)
% mount -u -o atime /home
% mount | grep home
/dev/ad4s1e on /home (ufs, local, soft-updates)

Restore this behavior for on 7.x for the following mount options:
noatime, noclusterr, noclusterw, noexec, nosuid, nosymfollow

In addition, on 7.x, the following are equivalent:
mount -u -o atime /home
mount -u -o nonoatime /home

Ideally, when we introduce new mount options, we should avoid
options starting with "no". :)

Requested by: jhb
Reported by: Karol Kwiat <karol.kwiat gmail com>, Scott Hetzel <swhetzel gmail com>
Approved by: re (bmah)
Proxy commit for: rodrigc

16 years agoThe /boot.config file is available only on i386 and amd64, so install
danger [Wed, 15 Aug 2007 06:41:08 +0000 (06:41 +0000)]
The /boot.config file is available only on i386 and amd64, so install
boot.config.5 only those architectures.

Approved by: re@ (bmah)
Reported by: simon

16 years agoAutogenerate hardware notes entities for ath(4) for all platforms
bmah [Wed, 15 Aug 2007 04:46:04 +0000 (04:46 +0000)]
Autogenerate hardware notes entities for ath(4) for all platforms
on which it's included in the GENERIC kernel.

PR 115403
Approved by: re (implicitly)
MFC after: 5 days

16 years agoRemove the installation notes, which have not truly been maintained
bmah [Wed, 15 Aug 2007 03:14:43 +0000 (03:14 +0000)]
Remove the installation notes, which have not truly been maintained
for quite some time.  All relevant content has been moved to the
installation chapter of the FreeBSD Handbook, which will be the
single source of FreeBSD installation instructions.

In addition to removing redundancy, this change also removes the last
of the machine-dependent documents in the release documentation
set (the release notes and hardware notes were unified to produce
machine-independent documents).

Approved by: re (blanket for installation notes removal)
Nods from: blackend, brueffer, simon, trhodes
No objections on: doc@
Helpful hints from: blackend

16 years agoModified release note: ng_h4(4) has been restored to the build
bmah [Wed, 15 Aug 2007 03:05:17 +0000 (03:05 +0000)]
Modified release note:  ng_h4(4) has been restored to the build
after MPSAFE modifications.

Approved by: re (implicitly)

16 years agoDisconnect installation notes from the release documentation build.
bmah [Wed, 15 Aug 2007 03:02:22 +0000 (03:02 +0000)]
Disconnect installation notes from the release documentation build.

Approved by: re (blanket for installation notes removal)

16 years agoRemove comment that was added by mistakes and which prevented _eprintf
kan [Tue, 14 Aug 2007 20:49:57 +0000 (20:49 +0000)]
Remove comment that was added by mistakes and which prevented _eprintf
and gcc_bcmp to be added to static libgcc.a.

Approved by: re (kensmith)

16 years agoDon't copy the installation guide to the release media (i.e.
bmah [Tue, 14 Aug 2007 20:02:55 +0000 (20:02 +0000)]
Don't copy the installation guide to the release media (i.e.
floppies or ISO images).  We retain the concept of MD
release documentation for now, although it's fairly unlikely
that we'll ever do this again.

Approved by: re (blanket for installation guide removal)

16 years agoMove callout initialization to the proper spot. This prevents panics during
scottl [Tue, 14 Aug 2007 19:17:35 +0000 (19:17 +0000)]
Move callout initialization to the proper spot.  This prevents panics during
error recovery.

Approved by: re
Found by: kan

16 years agoAdd the boot.config.5 manual page.
danger [Tue, 14 Aug 2007 15:25:32 +0000 (15:25 +0000)]
Add the boot.config.5 manual page.

Reviewed by: keramida
Approved by: re@ (bmah)
PR: docs/112307

16 years agoMention gcc 4.2.1 import.
delphij [Tue, 14 Aug 2007 14:49:46 +0000 (14:49 +0000)]
Mention gcc 4.2.1 import.

Approved by: re (bmah)

16 years agoChange the time of the first "EoL is coming soon, you should upgrade" warning
cperciva [Tue, 14 Aug 2007 14:48:46 +0000 (14:48 +0000)]
Change the time of the first "EoL is coming soon, you should upgrade" warning
from EoL minus 6 months to EoL minus 3 months, in order to increase the odds
of there actually being a more recent release to which users can upgrade.
(In particular, for releases which are only supported for 12 months, it's
quite likely that the next release will occur between 6 and 9 months later.)

Discussed with: kensmith
Approved by: re (bmah)
MFC after: 3 days

16 years agoRestore -O2 optimization after gcc 4.2.1 import, which has
delphij [Tue, 14 Aug 2007 13:44:08 +0000 (13:44 +0000)]
Restore -O2 optimization after gcc 4.2.1 import, which has
fixed the issue raised by gcc 4.2.0.

Tested with: test case found in gcc bug 32500
Approved by: re (kensmith), ache, kan

16 years agoUpdate locally changed files to GCC 4.2.1.
kan [Tue, 14 Aug 2007 03:04:42 +0000 (03:04 +0000)]
Update locally changed files to GCC 4.2.1.

Approved by: re (kensmith)

16 years agoMerge files that are no longer carry FreeBSD local changes.
kan [Tue, 14 Aug 2007 03:02:26 +0000 (03:02 +0000)]
Merge files that are no longer carry FreeBSD local changes.

Approved by: re (kensmith)

16 years agoDisconnect the soon-to-be removed installation notes from sysinstall(8)
bmah [Tue, 14 Aug 2007 02:58:33 +0000 (02:58 +0000)]
Disconnect the soon-to-be removed installation notes from sysinstall(8)
menus.

Approved by: re (blanket for installation notes removal)

16 years agoThis commit was generated by cvs2svn to compensate for changes in r171831,
kan [Tue, 14 Aug 2007 02:52:47 +0000 (02:52 +0000)]
This commit was generated by cvs2svn to compensate for changes in r171831,
which included commits to RCS files with non-trunk default branches.

16 years agoGCC 4.2.1 release miscellaneous support libraries.
kan [Tue, 14 Aug 2007 02:52:47 +0000 (02:52 +0000)]
GCC 4.2.1 release miscellaneous support libraries.

16 years agoThis commit was generated by cvs2svn to compensate for changes in r171829,
kan [Tue, 14 Aug 2007 02:51:20 +0000 (02:51 +0000)]
This commit was generated by cvs2svn to compensate for changes in r171829,
which included commits to RCS files with non-trunk default branches.

16 years agoGCC 4.2.1 release Objective C runtime support code.
kan [Tue, 14 Aug 2007 02:51:20 +0000 (02:51 +0000)]
GCC 4.2.1 release Objective C runtime support code.

16 years agoThis commit was generated by cvs2svn to compensate for changes in r171827,
kan [Tue, 14 Aug 2007 02:49:11 +0000 (02:49 +0000)]
This commit was generated by cvs2svn to compensate for changes in r171827,
which included commits to RCS files with non-trunk default branches.

16 years agoGCC 4.2.1 release C++ standard library and runtime support code.
kan [Tue, 14 Aug 2007 02:49:11 +0000 (02:49 +0000)]
GCC 4.2.1 release C++ standard library and runtime support code.

16 years agoThis commit was generated by cvs2svn to compensate for changes in r171825,
kan [Tue, 14 Aug 2007 02:45:23 +0000 (02:45 +0000)]
This commit was generated by cvs2svn to compensate for changes in r171825,
which included commits to RCS files with non-trunk default branches.

16 years agoGCC 4.2.1 release.
kan [Tue, 14 Aug 2007 02:45:23 +0000 (02:45 +0000)]
GCC 4.2.1 release.

16 years agoMake sure to take PHY out of power down mode in device attach.
yongari [Tue, 14 Aug 2007 02:00:04 +0000 (02:00 +0000)]
Make sure to take PHY out of power down mode in device attach.
Without this the PHY wouldn't work as expected. This should fix
dual-boot Windows XP machine where RealTek Windows drivers put the
PHY in power down mode during shutdown. The magic PHY register
accesses come from RealTek driver. No datasheets mention the magic
PHY registers.
In general, the PHY wakeup code should go into PHY driver. However it
seems that it only apply to RTL8169S single chip and it would be
another hack if we have rgephy(4) check what parent driver/chip model
is attached.

Reported by: lofi, Laurens Timmermans ( laurens AT timkapel DOT nl )
Tested by: lofi
Obtained from: RealTek FreeBSD driver
Approved by: re (Ken Smith)

16 years agoImprove vn_printf() by:
pjd [Mon, 13 Aug 2007 21:23:30 +0000 (21:23 +0000)]
Improve vn_printf() by:
- adding missing vnode flags,
- printing unknown flags as numbers,
- using strlcat() instead of strcat().

Approved by: re (bmah)

16 years agoFix a few nits relative to the previous changes:
jhb [Mon, 13 Aug 2007 21:14:16 +0000 (21:14 +0000)]
Fix a few nits relative to the previous changes:
- Don't leak the config lock if detach() fails due to the controller char
  dev being open.
- Close a race between detach() and a process opening the controller char
  dev.

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

16 years agoTeach the mfi(4) driver to handle requests from userland management
jhb [Mon, 13 Aug 2007 19:29:17 +0000 (19:29 +0000)]
Teach the mfi(4) driver to handle requests from userland management
applications to add and remove volumes.

MFC after: 1 week
Approved by: re (bmah)
Reviewed by: ambrisko, scottl

16 years agoUpdate to support ICH[678] chipsets (based on a patch by Takeharu KATO)
des [Mon, 13 Aug 2007 18:52:37 +0000 (18:52 +0000)]
Update to support ICH[678] chipsets (based on a patch by Takeharu KATO)
Fix a resource allocation bug (explained by jhb on -acpi)
Thanks for Mike Tancsa for testing and helping track down the bug.

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

16 years agoExpand the data structure returned by the ATA RAID status ioctl to include
jhb [Mon, 13 Aug 2007 18:46:31 +0000 (18:46 +0000)]
Expand the data structure returned by the ATA RAID status ioctl to include
detailed status on each of the backing subdisks.  This allows userland
to see which subdisks are online, failed, missing, or a hot spare.

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

16 years agoMake ng_h4(4) MPSAFE. Use similar to ng_tty(4) locking strategy.
emax [Mon, 13 Aug 2007 17:19:28 +0000 (17:19 +0000)]
Make ng_h4(4) MPSAFE. Use similar to ng_tty(4) locking strategy.
Reconnect ng_h(4) back to the build.

Reviewed by: kensmith
Approved by: re (kensmith)
MFC after: 1 month

16 years agoBe more careful handling no_init flag. It should be enforced
delphij [Mon, 13 Aug 2007 16:15:26 +0000 (16:15 +0000)]
Be more careful handling no_init flag.  It should be enforced
in *all* less_is_more cases, On the other hand, quit_if_one_screen
should apply iff less_is_more *and* -e.

This change revises the previous change further, which tried
to make less(1) not to send @ti:@te before and after view of
one file in more(1) mode, but affected less -e behavior by
accident.

This is essentially the same patch desichen@ has posted on
-current@.  I have adjusted it a bit in order to minimize
difference between our version and the vendor branch.

Approved by: re (bmah, earlier logically equivalent version)

16 years agoIf the mmap() call in rpc.statd fails, rpc.statd prints a warning
truckman [Mon, 13 Aug 2007 15:04:39 +0000 (15:04 +0000)]
If the mmap() call in rpc.statd fails, rpc.statd prints a warning
message and then dumps core because the subsequent code assumes that
mmap() succeeded.  Since rpc.statd does not have fallback code to
implement the functionality needed to operate on the status file if
it is not memory mapped, rpc.statd should use err() to force the process
to exit if the mmap() call fails.

PR: bin/115430 (mmap() failure previously fixed in statd.c 1.15)
Approved by: re (kensmith)
MFC after: 1 week

16 years agoCoalesce another very short section into its parent.
bmah [Sun, 12 Aug 2007 21:08:39 +0000 (21:08 +0000)]
Coalesce another very short section into its parent.

Approved by: re (implicitly)

16 years agoo You have to reboot the system after tuning softupdates on the root
maxim [Sun, 12 Aug 2007 20:08:07 +0000 (20:08 +0000)]
o You have to reboot the system after tuning softupdates on the root
filesystem on to make SU work.

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

16 years agoReplace three copies of the host controller reset sequence that
truckman [Sun, 12 Aug 2007 18:45:24 +0000 (18:45 +0000)]
Replace three copies of the host controller reset sequence that
differ in their details with calls to a new function, ehci_hcreset(),
that performs the reset.

The original sequences either had no delay or a 1ms delay between
telling the controller to stop and asserting the controller reset
bit.  One instance of the original reset sequence waited for the
controller to indicate that its reset was complete before continuing,
but the other two immediately let the subsequent code execute.  The
latter is a problem on some hardware, because a read of the HCCPARAMS
register returns an incorrect value while the reset is in progress,
which triggers an infinite loop in ehci_pci_givecontroller(), which
hangs the system on shutdown.

The reset sequence in ehci_hcreset() starts with the most complete
instance from the original code, which contains a loop to wait for
the controller to indicate that its reset is complete.   This appears
to be the correct thing to do according to "Enhanced Host Controller
Interface Specification for Universal Serial Bus" revision 1.0,
section 2.3.1.  Add another loop to wait for the controller to
indicate that it has stopped before setting the HCRESET bit.  This
is required by the section 2.3.1 in the specification, which says
that setting HCRESET before the controller has halted "will result
in undefined behaviour".

Reviewed by: imp (previous patch version without the extra wait loop)
Tested by: se  (previous patch version without the extra wait loop)
Approved by: re (bmah)
MFC after: 1 week

16 years agoMake suid/sgid restore be "opportunistic" if
kientzle [Sun, 12 Aug 2007 17:35:05 +0000 (17:35 +0000)]
Make suid/sgid restore be "opportunistic" if
owner restore is not requested.  If you ask
for permissions to be restored but not owner,
you will now get no error if suid/sgid bits
cannot be set.  (It's a security hole to restore
suid/sgid bits if the owner/group aren't restored.)

This fixes an obscure problem where a simple
"tar -xf" with no other options will sometimes
fail gratuitously because of suid/sgid bits.
This is causing occasional problems for people
using bsdtar as a drop-in replacement for
"that other tar program." ;-)

Note: If you do ask for owner restore, then suid/sgid
restore failures still issue an error.  This
only suppresses the error in the case where an
suid/sgid bit restore fails because of an owner
mismatch and owner restore was not requested.

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

16 years agoUse ttyu instead of ttyd for arm, since we will probably never use sio(4).
cognet [Sun, 12 Aug 2007 17:13:06 +0000 (17:13 +0000)]
Use ttyu instead of ttyd for arm, since we will probably never use sio(4).

Approved by: re (blanket)

16 years agoSync with the source code: NGM_FEC_MODE_(MAC|INET) should be
danger [Sun, 12 Aug 2007 16:02:30 +0000 (16:02 +0000)]
Sync with the source code: NGM_FEC_MODE_(MAC|INET) should be
NGM_FEC_SET_MODE_(MAC|INET).

Approved by: re@ (bmah)