]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/log
FreeBSD/stable/8.git
13 years agoMFC of r220448
edwin [Sun, 17 Apr 2011 21:52:57 +0000 (21:52 +0000)]
MFC of r220448

When specifying the -t option (send tag in front of message), this tag
should also be forwarded to the remote logging host, not only when the
logging is done locally.

PR:             bin/154324
Submitted by:   Callum Gibson <callumgibson@optusnet.com.au>

git-svn-id: svn://svn.freebsd.org/base/stable/8@220757 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220556:
bz [Sat, 16 Apr 2011 23:38:35 +0000 (23:38 +0000)]
MFC r220556:

  If building (custom) FreeBSD images people tend to patch param.h.  In case
  this happens just before the build is started (within the same second)
  CHECK_TIME actually triggers thinking param.h is in the future (see f_Xtime,
  c_Xtime logi in find(1) sources for the details in !F_EXACTTIME case).
  Using the -mtime -0s (seconds, rather than no unit) avoids this 1s race.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220734 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218757:
bz [Sat, 16 Apr 2011 23:30:53 +0000 (23:30 +0000)]
MFC r218757:

  Mfp4 CH=177274,177280,177284-177285,177297,177324-177325

    VNET socket push back:
    try to minimize the number of places where we have to switch vnets
    and narrow down the time we stay switched.  Add assertions to the
    socket code to catch possibly unset vnets as seen in r204147.

    While this reduces the number of vnet recursion in some places like
    NFS, POSIX local sockets and some netgraph, .. recursions are
    impossible to fix.

    The current expectations are documented at the beginning of
    uipc_socket.c along with the other information there.

    Sponsored by: The FreeBSD Foundation
    Sponsored by: CK Software GmbH
    Reviewed by:  jhb
    Tested by:    zec

  Tested by:    Mikolaj Golub (to.my.trociny gmail.com)

git-svn-id: svn://svn.freebsd.org/base/stable/8@220733 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220506:
kib [Sat, 16 Apr 2011 12:45:09 +0000 (12:45 +0000)]
MFC r220506:
Implement a workaround for fdescfs to not panic when ncookies is not NULL.

PR: kern/156177

git-svn-id: svn://svn.freebsd.org/base/stable/8@220717 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220281:
kib [Sat, 16 Apr 2011 12:43:04 +0000 (12:43 +0000)]
MFC r220281:
Implement compat32 shims for PCIOCGETCONF.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220716 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220280:
kib [Sat, 16 Apr 2011 12:41:22 +0000 (12:41 +0000)]
MFC r220280:
Provide the structures and ioctl number definition for handling
PCIOCGETCONF compat32.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220714 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219524:
brucec [Sat, 16 Apr 2011 11:06:09 +0000 (11:06 +0000)]
MFC r219524:

Fix the build: we have snprintf(3).

git-svn-id: svn://svn.freebsd.org/base/stable/8@220709 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219522:
brucec [Sat, 16 Apr 2011 11:04:17 +0000 (11:04 +0000)]
MFC r219522:

Fix warnings and set WARNS to 6.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220708 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219511:
brucec [Sat, 16 Apr 2011 10:57:11 +0000 (10:57 +0000)]
MFC r219511:

Fix warnings and style(9) issues.
Set WARNS to 6.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220705 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219521:
brucec [Sat, 16 Apr 2011 10:42:22 +0000 (10:42 +0000)]
MFC r219521:

Fix warnings and set WARNS to 6.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220703 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219527:
brucec [Sat, 16 Apr 2011 10:20:45 +0000 (10:20 +0000)]
MFC r219527:

Fix warnings and style(9) issues.
Set WARNS to 6.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220698 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219568:
brucec [Sat, 16 Apr 2011 10:18:07 +0000 (10:18 +0000)]
MFC r219568:

Fix warnings and style(9) issues.
Set WARNS to 6.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220697 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219613:
brucec [Sat, 16 Apr 2011 09:56:27 +0000 (09:56 +0000)]
MFC r219613:

Fix typo.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220695 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220453:
rstone [Sat, 16 Apr 2011 00:10:55 +0000 (00:10 +0000)]
MFC r220453:
 Add tunables that mirror the functionality of sysctls machdep.panic_on_nmi
 and machdep.kdb_on_nmi.

Approved by: emaste (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@220684 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 220156:
jhb [Fri, 15 Apr 2011 20:42:27 +0000 (20:42 +0000)]
MFC 220156:
Clamp the initial advertised receive window when responding to a SYN/ACK
to the maximum allowed window.  Growing the window too large would cause
an underflow in the calculations in tcp_output() to decide if a window
update should be sent which would prevent the persist timer from being
started if data was pending and the other end of the connection advertised
an initial window size of 0.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220679 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 220451:
jhb [Fri, 15 Apr 2011 20:32:17 +0000 (20:32 +0000)]
MFC 220451:
Catch up to PCB_FULL_IRET becoming a pcb flag rather than a full field.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220675 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 220126:
jhb [Fri, 15 Apr 2011 20:28:38 +0000 (20:28 +0000)]
MFC 220126:
- Enable an extra debugging bootverbose printf when probing ISA PNP cards
  listing   each card as it is found on non-PC98 (PC98 already had this).
- Increase the length of the DELAY() used before timing out while reading
  PNP resource data.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220673 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 219276:
jhb [Fri, 15 Apr 2011 20:26:24 +0000 (20:26 +0000)]
MFC 219276:
Use ffs() to locate free bits in the inode bitmap rather than a loop with
bit shifts.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220671 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 219865:
jhb [Fri, 15 Apr 2011 20:19:50 +0000 (20:19 +0000)]
MFC 219865:
Add pci_find_cap() as an alias for pci_find_extcap() to ease driver
portability with 9+ where pci_find_extcap() has been renamed to
pci_find_cap().

git-svn-id: svn://svn.freebsd.org/base/stable/8@220669 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 219717,220363:
jhb [Fri, 15 Apr 2011 19:50:25 +0000 (19:50 +0000)]
MFC 219717,220363:
- Add more details to the 'show battery' command including more raw
  capacity values, charge cycle count, temperature, and more detailed
  status.
- Add the ability to manage the state of write caching when the battery
  back-up is missing or dead.  The current state of this field is reported
  in 'mfiutil cache <volume>' and can be adjusted via
  'mfiutil cache <volume> bad-bbu-write-cache <enable|disable>'.  This
  setting should generally be disabled to avoid data loss.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220665 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220376: Allow strerror(0) and strerror_r(0, ...).
jilles [Fri, 15 Apr 2011 19:46:25 +0000 (19:46 +0000)]
MFC r220376: Allow strerror(0) and strerror_r(0, ...).

Of course, strerror_r() may still fail with ERANGE.

Although the POSIX specification said this could fail with EINVAL and
doing this likely indicates invalid use of errno, most other
implementations permitted it, various POSIX testsuites require it to
work (matching the older sys_errlist array) and apparently some
applications depend on it.

PR: standards/151316

git-svn-id: svn://svn.freebsd.org/base/stable/8@220664 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220461:
kib [Fri, 15 Apr 2011 10:33:20 +0000 (10:33 +0000)]
MFC r220461:
Remove setting of PCB_FULL_IRET at the places where we are going to call
update_gdt_{f,g}sbase. The functions set the flag when td == curthread,
and sysarch is always called with curthread.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220651 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: 220624: add $FreeBSD$.
obrien [Thu, 14 Apr 2011 15:43:21 +0000 (15:43 +0000)]
MFC: 220624: add $FreeBSD$.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220625 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r210819: Add support for ATI Radeon HD 4250.
avg [Thu, 14 Apr 2011 15:25:27 +0000 (15:25 +0000)]
MFC r210819: Add support for ATI Radeon HD 4250.

On behalf of: olli

git-svn-id: svn://svn.freebsd.org/base/stable/8@220623 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r220370, r209136, r209219
obrien [Wed, 13 Apr 2011 23:09:36 +0000 (23:09 +0000)]
MFC: r220370, r209136, r209219

* Add the readline(3) API to libedit.  The libedit versions of
  {readline,history}.h are in /usr/include/edit so as to not conflict with
  the GNU libreadline versions.  To use the libedit readline(3) one should
  add "-I/usr/include/edit" to their Makefile
  (spelled "-I${DESTDIR}/${INCLUDEDIR}/edit" within the FreeBSD source tree).
* Enable its use in the BSD licensed utilities that support readline(3).
* histedit.h is moved into libedit's directory

* Add basic filename completion code.
* Allow simple quoting in filename completion.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220612 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220512:
dougb [Wed, 13 Apr 2011 19:54:54 +0000 (19:54 +0000)]
MFC r220512:

Update recommendation for mergemaster. The -a and -i options are exclusive.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220608 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: 220152
zack [Wed, 13 Apr 2011 19:34:58 +0000 (19:34 +0000)]
MFC: 220152
  This patch fixes the Experimental NFS client to properly deal with 32 bit or
  64 bit fileid's in NFSv2 and NFSv3. Without this fix, invalid casting (and sign
  extension) was creating problems for any fileid greater than 2^31.

  We discovered this because we have test clusters with more than 2 billion
  allocated files and 64-bit ino_t's (and friend structures).

Reviewed by:    rmacklem
Approved by:    zml (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@220607 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216391:
jh [Tue, 12 Apr 2011 16:43:29 +0000 (16:43 +0000)]
MFC r216391:

Handle the special ruleset 0 in devfs_ruleset_use(). An attempt set the
current ruleset to 0 with command "devfs ruleset 0" triggered a KASSERT
in devfs_ruleset_create().

PR: kern/125030

git-svn-id: svn://svn.freebsd.org/base/stable/8@220570 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r212502 (qingli):
bz [Tue, 12 Apr 2011 11:17:46 +0000 (11:17 +0000)]
MFC r212502 (qingli):

  Adding an address on an interface also requires the loopback route to
  that address be installed.

  Submitted by: Ingo Flaschberger <if at xip.at>
PR: kern/150481

git-svn-id: svn://svn.freebsd.org/base/stable/8@220564 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220358:
pluknet [Tue, 12 Apr 2011 08:54:49 +0000 (08:54 +0000)]
MFC r220358:

 Document -w for swapuse.

PR: docs/156089
Submitted by: Andrey Ignatov <rdna att rdna.ru>

git-svn-id: svn://svn.freebsd.org/base/stable/8@220561 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC of 220549, tzdata2011f:
edwin [Mon, 11 Apr 2011 21:59:13 +0000 (21:59 +0000)]
MFC of 220549, tzdata2011f:

- During 2011 the Falkland Islands will remain on Summer time.

Obtained from:  ftp://elsie.nci.nih.gov/pub/

git-svn-id: svn://svn.freebsd.org/base/stable/8@220550 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r197076,197191: apperture size printing changes
avg [Mon, 11 Apr 2011 17:49:26 +0000 (17:49 +0000)]
MFC r197076,197191: apperture size printing changes

Reduce diff to head.

On behalf of: n_hibma

git-svn-id: svn://svn.freebsd.org/base/stable/8@220544 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220328:
pluknet [Mon, 11 Apr 2011 09:06:11 +0000 (09:06 +0000)]
MFC r220328:

 Remove malloc type M_NETADDR unused since splitting into vfs_subr.c
 and vfs_export.c.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220537 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220100:
kib [Mon, 11 Apr 2011 08:25:25 +0000 (08:25 +0000)]
MFC r220100:
Promote ksyms_map() and ksyms_unmap() to general facility
copyout_map() and copyout_unmap() interfaces.

MFC r220101:
Handle zero length in copyout_unmap().

MFC r220102:
Trim white spaces, adjust style.

MFC r220114:
Fix the check for vm_map_remove() error.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220536 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220299:
trociny [Sun, 10 Apr 2011 19:31:00 +0000 (19:31 +0000)]
MFC r220299:

In g_eli_read_done() and g_eli_write_done(), for a bio with
bio_children > 1, g_destroy_bio() is never called and the bio
leaks. Fix this by calling g_destroy_bio() earlier, before the check.

Submitted by: Victor Balada Diaz <victor@bsdes.net> (initial version)

Approved by: pjd (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@220529 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220005, r220006, r220007, r220266, r220270, r220271, r220272,
trociny [Sun, 10 Apr 2011 15:48:16 +0000 (15:48 +0000)]
MFC r220005, r220006, r220007, r220266, r220270, r220271, r220272,
  r220273, r220274:

r220005 (pjd):

Use role2str() when setting process title.

r220006 (pjd):

Use timeout from configuration file not only when sending and receiving,
but also when establishing connection.

r220007 (pjd):

Add mapsize to the header just before sending the packet.
Before it could change later and we were sending invalid mapsize.
Some time ago I added optimization where when nodes are connected for the
first time and there were no writes to them yet, there is no initial full
synchronization. This bug prevented it from working.

r220266 (pjd):

Handle the problem described in r220264 by using GEOM GATE queue of unlimited
length. This should fix deadlocks reported by HAST users.

r220270 (pjd):

Allow to disable sends or receives on a socket using shutdown(2) by
interpreting NULL 'data' argument passed to proto_common_send() or
proto_common_recv() as a will to do so.

r220271 (pjd):

Declare directions for sockets between primary and secondary.
In HAST we use two sockets - one for only sending the data and one for only
receiving the data.

r220272 (pjd):

When we are operating on blocking socket and get EAGAIN on send(2) or recv(2)
this means that request timed out. Translate the meaningless EAGAIN to
ETIMEDOUT to give administrator a hint that he might need to increase timeout
in configuration file.

r220273 (pjd):

Handle ENOBUFS on send(2) by retrying for a while and logging the problem.

r220274 (pjd):

Increase default timeout from 5 seconds to 20 seconds. 5 seconds is definitely
to short under heavy load and I was experiencing those timeouts in my recent
tests.

Approved by: pjd (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@220525 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220264:
trociny [Sun, 10 Apr 2011 15:40:57 +0000 (15:40 +0000)]
MFC r220264:

r220264 (pjd):

GEOM has an internal mechanism to deal with ENOMEM errors returned via
g_io_deliver(). In such case it increases 'pace' counter on each ENOMEM and
reschedules the request. The 'pace' counter is decreased for each request going
down, but until 'pace' is greater than zero, GEOM will handle at most 10
requests per second. For GEOM GATE users that are proxy to local GEOM providers
(like ggatel(8) and HAST) we can end up with almost permanent slow down of GEOM
down queue. This is because once we reach GEOM GATE queue limit, we return
ENOMEM to the GEOM. This means that we have, eg. 1024 I/O requests in the GEOM
GATE queue. To make room in the queue and stop returning ENOMEM we need to
proceed the requests of course, but those requests are handled by userland
daemons that handle them by reading/writing also from/to local GEOM providers.
For example with HAST, a new requests comes to /dev/hast/data, which is GEOM
GATE provider. GEOM GATE passes the request to hastd(8) and hastd(8)
reads/writes from/to /dev/da0. Once we reach GEOM GATE queue limit, to free up
a slot in GEOM GATE queue, hastd(8) has to read/write from/to /dev/da0, but
this request will also be very slow, because GEOM now slows down all the
requests. We end up with full queue that we can unload at the speed of 10
requests per second. This simply looks like a deadlock.

Fix it by allowing userland daemons that work with both GEOM GATE and local
GEOM providers to specify unlimited queue size, so GEOM GATE will never return
ENOMEM to the GEOM.

Approved by: pjd (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@220524 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC: r220046, r220106
marius [Sun, 10 Apr 2011 09:35:42 +0000 (09:35 +0000)]
MFC: r220046, r220106

Wait until the DMA engine is stopped before unmapping buffers and
descriptors, which fixes DMA errors seen on sparc64.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220513 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220410
np [Sun, 10 Apr 2011 01:21:02 +0000 (01:21 +0000)]
MFC r220410

Modify read/write ioctls to work with 64 bit registers too.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220509 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 220432:
gjb [Sun, 10 Apr 2011 00:29:00 +0000 (00:29 +0000)]
MFC 220432:
- u3g.4:
- remove self-reference in SEE ALSO section (originally was to s/XR/Xr)

- cxgbe.4:
- remove blank line
- add closing .El

git-svn-id: svn://svn.freebsd.org/base/stable/8@220508 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 220382:
gjb [Sat, 9 Apr 2011 19:07:13 +0000 (19:07 +0000)]
MFC 220382:
Correct 'list scan' description in the examples.  The previous description
was incorrect - 'list scan' does not actually do a scan, but instead lists
the results of the background 'scan' cache.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220504 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218688:
bz [Sat, 9 Apr 2011 15:27:36 +0000 (15:27 +0000)]
MFC r218688:

  Mfp4 CH=177256:

    Catch a set vnet upon return to user space. This usually
    means return paths with CURVNET_RESTORE() missing.

    If VNET_DEBUG is turned on we can even tell the function
    that did the CURVNET_SET() which is really helpful; else
    we print "N/A".

    Sponsored by: The FreeBSD Foundation
    Sponsored by: CK Software GmbH
    Reviewed by:  jhb

git-svn-id: svn://svn.freebsd.org/base/stable/8@220503 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218567:
bz [Sat, 9 Apr 2011 14:27:27 +0000 (14:27 +0000)]
MFC r218567:

  Mfp4 CH=177255:

    Resort the CURVNET_SET* macros in the non-VNET_DEBUG case to match
    the call order of the VNET_DEBUG case.

    Add the VNET_ASSERT() to the non-VNET_DEBUG case as well so that
    INVARIANTS will still catch problems.

    Sponsored by: The FreeBSD Foundation
    Sponsored by: CK Software GmbH
    Reviewed by:  jhb

git-svn-id: svn://svn.freebsd.org/base/stable/8@220501 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218559:
bz [Sat, 9 Apr 2011 13:45:13 +0000 (13:45 +0000)]
MFC r218559:

  Mfp4 CH=177255:

    Make VNET_ASSERT() available with either VNET_DEBUG or INVARIANTS.

    Change the syntax to match KASSERT() to allow more flexible panic
    messages rather than having a printf with hardcoded arguments
    before panic.

    Adjust the few assertions we have to the new format (and enhance
    the output).

    Sponsored by: The FreeBSD Foundation
    Sponsored by: CK Software GmbH
    Reviewed by:  jhb

git-svn-id: svn://svn.freebsd.org/base/stable/8@220495 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218555:
bz [Sat, 9 Apr 2011 13:19:44 +0000 (13:19 +0000)]
MFC r218555:

  Mfp4 CH=177255:

    Use __func__ rather than __FUNCTION__.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220494 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217736:
bz [Sat, 9 Apr 2011 12:52:41 +0000 (12:52 +0000)]
MFC r217736:

  Add an svn:ignore property for _.{TARGETS,tinderbox}.* in the toplevel
  directory to ignore those file patters in svn status, add and import.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220492 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217735:
bz [Sat, 9 Apr 2011 12:42:40 +0000 (12:42 +0000)]
MFC r217735:

  Make `make tinderbox` work with MAKEOBJDIRPREFIX set (or in possibly other
  combinations) by forcing FAILFILE into .CURDIR as we do for all other
  universe output files. [1]  Similarly make FAILFILE start with "_." as well.

  Reviewed by:  silence-on-src [1]

git-svn-id: svn://svn.freebsd.org/base/stable/8@220491 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219570:
bz [Sat, 9 Apr 2011 12:35:08 +0000 (12:35 +0000)]
MFC r219570:

  Push a possible "unbind" in some situation from in6_pcbsetport() to
  callers.  This also fixes a problem when the prison call could set
  the inp->in6p_laddr (laddr) and a following priv_check_cred() call
  would return an error and will allow us to merge the IPv4 and IPv6
  implementation.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220489 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219562:
bz [Sat, 9 Apr 2011 12:11:19 +0000 (12:11 +0000)]
MFC r219562:

  Make sure the locally cached value of rt->rt_gateway stays stable,
  even after dropping the reference and unlocking. Previously we
  have dereferenced a NULL pointer (after r121765).
  Simply unlocking after the block does not work either because of
  lock ordering (see r121765) and in addition we would still hold
  a pointer to something that might be gone by the time we access it.
  Thus take a copy of the value rather than just caching the pointer.

  Submitted by: chenyl (netstar2008 126.com) (initial version)
PR: kern/151908

git-svn-id: svn://svn.freebsd.org/base/stable/8@220487 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219775:
bz [Sat, 9 Apr 2011 12:04:35 +0000 (12:04 +0000)]
MFC r219775:

  For now remove options FLOWTABLE from the remaining GENERIC kernel
  configurations and make it opt-in for those who want it.  LINT will
  still build it.

  While it may be a perfect win in some scenarios, it still troubles users
  (see PRs) in general cases.  In addition we are still allocating resources
  even if disabled by sysctl and still leak arp/nd6 entries in case of
  interface destruction.

  Discussed with: qingli (2010-11-24, just never executed)
  Discussed with: juli (OCTEON1)
PR: kern/148018, kern/155604, kern/144917, kern/146792

git-svn-id: svn://svn.freebsd.org/base/stable/8@220486 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220247:
bz [Sat, 9 Apr 2011 10:53:36 +0000 (10:53 +0000)]
MFC r220247:

  Do not allow directly recursive RFC3173 IPComp payload.

Security: CVE-2011-1547

git-svn-id: svn://svn.freebsd.org/base/stable/8@220483 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219597:
bz [Sat, 9 Apr 2011 10:45:22 +0000 (10:45 +0000)]
MFC r219597:

  Cross-reference ip(4) rather than sysctl(8) for the global, shared MIB
  values to control the various port ranges. ip(4) describes these in detail.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220482 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219580:
bz [Sat, 9 Apr 2011 10:44:01 +0000 (10:44 +0000)]
MFC r219580:

  INET6 for some time needed in_pcb.c so make sure we compile it in case of
  no inet.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220480 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219206:
bz [Sat, 9 Apr 2011 10:36:33 +0000 (10:36 +0000)]
MFC r219206:

  Hide the outer IP addresses of a tunnel interfaces (gif(4), gre(4))
  from processes inside jails if the addresses do not belong to the jail.

  Originally reported by: Pieter de Boer via remko
  Tested by: Piotr KUCHARSKI (nospam 42.pl) [gif]
PR: kern/151119

git-svn-id: svn://svn.freebsd.org/base/stable/8@220478 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219184:
bz [Sat, 9 Apr 2011 10:19:25 +0000 (10:19 +0000)]
MFC r219184:

  Prevent crashes from a race when (cloned) interfaces go away.

PR:             bin/152143
  Submitted by: Przemyslaw Frasunek (przemyslaw frasunek.com)
  Tested by:    Przemyslaw Frasunek (przemyslaw frasunek.com)

git-svn-id: svn://svn.freebsd.org/base/stable/8@220476 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220031: linux compat: improve and fix sendmsg/recvmsg compatibility
avg [Sat, 9 Apr 2011 08:52:22 +0000 (08:52 +0000)]
MFC r220031: linux compat: improve and fix sendmsg/recvmsg compatibility

PR: kern/149168

git-svn-id: svn://svn.freebsd.org/base/stable/8@220469 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220030: drop dummy definitions
avg [Sat, 9 Apr 2011 08:43:57 +0000 (08:43 +0000)]
MFC r220030: drop dummy definitions

PR: kern/149168

git-svn-id: svn://svn.freebsd.org/base/stable/8@220468 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoRegen for r220466
avg [Sat, 9 Apr 2011 08:31:50 +0000 (08:31 +0000)]
Regen for r220466

PR: kern/149168

git-svn-id: svn://svn.freebsd.org/base/stable/8@220467 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220028: linux compat: add non-dummy capget and capset system calls
avg [Sat, 9 Apr 2011 08:29:07 +0000 (08:29 +0000)]
MFC r220028: linux compat: add non-dummy capget and capset system calls

PR: kern/149168

git-svn-id: svn://svn.freebsd.org/base/stable/8@220466 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220249,220252:
yongari [Fri, 8 Apr 2011 19:06:01 +0000 (19:06 +0000)]
MFC r220249,220252:
r220249:
  64bit DMA caused data corruption. Unfortunately there is no known
  workaround to use 64bit DMA.
  Disable 64bit DMA on Attansic L1 controller.

  Tested by: Yamagi Burmeister (lists <> yamagi dot org)

r220252:
  Partially revert r184106. RX buffer ring also needs bus_dmamap_sync().

  Tested by: Yamagi Burmeister (lists <> yamagi dot org)

git-svn-id: svn://svn.freebsd.org/base/stable/8@220457 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFH r219446-219449:
uqs [Fri, 8 Apr 2011 18:31:01 +0000 (18:31 +0000)]
MFH r219446-219449:

- Remove bsdlabel.5
- Remove bsdlabel test-script that was full of broken assumptions
- Remove dead code depending on __alpha__
- Widen fields that display partition offset/length.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220455 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220004: rtld: eliminate double call to close(2) that may occur in load_object
avg [Fri, 8 Apr 2011 06:50:26 +0000 (06:50 +0000)]
MFC r220004: rtld: eliminate double call to close(2) that may occur in load_object

git-svn-id: svn://svn.freebsd.org/base/stable/8@220440 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220304.
hselasky [Fri, 8 Apr 2011 06:37:22 +0000 (06:37 +0000)]
MFC r220304.
- Fix for missing event if a libUSB USB transfer is started and
  stopped rapidly in succession.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220439 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219395.
hselasky [Fri, 8 Apr 2011 06:20:43 +0000 (06:20 +0000)]
MFC r219395.
- Bugfix: Root HUBs do not support re-enumeration.

Approved by: thompsa (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@220436 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220303
hselasky [Fri, 8 Apr 2011 06:13:19 +0000 (06:13 +0000)]
MFC r220303
- Correct EHCI interrupt disabling at detach.

Approved by: thompsa (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@220435 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219100
hselasky [Fri, 8 Apr 2011 05:48:51 +0000 (05:48 +0000)]
MFC r219100
- Add support for software pre-scaling of ISOCHRONOUS transfers.

Approved by: thompsa (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@220434 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r198374:
emaste [Thu, 7 Apr 2011 14:17:55 +0000 (14:17 +0000)]
MFC r198374:
  Rename default to default_function, for compatibility with GNU awk.
  (For cross-compiling out-of-tree kernel modules, for example.)

git-svn-id: svn://svn.freebsd.org/base/stable/8@220425 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220211:
ae [Thu, 7 Apr 2011 11:13:50 +0000 (11:13 +0000)]
MFC r220211:
  Fill up src_port and dst_port variables for SCTP over IPv4.

  PR: kern/153415

git-svn-id: svn://svn.freebsd.org/base/stable/8@220415 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC of r220172
edwin [Thu, 7 Apr 2011 07:34:01 +0000 (07:34 +0000)]
MFC of r220172

Add a menu entry for UTC in the main menu.

PR:             bin/156019
Submitted by:   Daniel O'Conner

git-svn-id: svn://svn.freebsd.org/base/stable/8@220411 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220204:
ae [Thu, 7 Apr 2011 06:02:21 +0000 (06:02 +0000)]
MFC r220204:
  Fix malloc types.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220409 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220203:
ae [Thu, 7 Apr 2011 06:01:09 +0000 (06:01 +0000)]
MFC r220203:
  Fix a memory leak. Memory that is allocated for schedulers hash table
  was not freed.

  PR: kern/156083

git-svn-id: svn://svn.freebsd.org/base/stable/8@220408 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220184:
ae [Thu, 7 Apr 2011 05:58:21 +0000 (05:58 +0000)]
MFC r220184:
  Remove unneeded checks, g_new_xxx functions can not return NULL.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220407 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFhead 220317:
glebius [Wed, 6 Apr 2011 18:03:49 +0000 (18:03 +0000)]
MFhead 220317:
  When removing ifnets, we should first remove the reference to ifnet
  from the interface index, then decrease refcount, not vice versa.

  Otherwise there is a race (reproducible) when if_free_internal()
  contests on IFNET_WLOCK(), and we got a zero-refed ifnet in the
  index for a long time. It may be picked by some other thread,
  that runs ifnet_byindex_ref(), who takes the ifnet from index,
  and bumps refcount. When reader drops the lock, if_free_internal()
  proceeds with free. Then reader tries to free it a second time.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220397 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFhead 219904:
glebius [Wed, 6 Apr 2011 18:00:26 +0000 (18:00 +0000)]
MFhead 219904:
  Fix SYNOPSIS.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220396 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFhead 219858:
glebius [Wed, 6 Apr 2011 17:58:59 +0000 (17:58 +0000)]
MFhead 219858:
  Give better URL to the list of available CVSup mirrors.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220395 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFhead 219827:
glebius [Wed, 6 Apr 2011 17:57:08 +0000 (17:57 +0000)]
MFhead 219827:

  Improve locking of creating and dropping links in the graph, acquiring
  the topology mutex in the following functions, that manipulate pointers
  to peer nodes:

  - ng_bypass()
  - ng_path2noderef() when switching to the next node in sequence.
    Rewrite the function a bit.
  - ng_address_hook()
  - ng_address_path()

  This patch improves stability of large mpd5 installations.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220394 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFhead 215790:
glebius [Wed, 6 Apr 2011 17:56:18 +0000 (17:56 +0000)]
MFhead 215790:

  Redo r166423. It is important not only skip freeing multicast
  entires when underlying interface is detached, but also purge
  pointers to them, to avoid double-free in future.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220393 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFhead r196527,204406,216296-216297:
glebius [Wed, 6 Apr 2011 17:54:10 +0000 (17:54 +0000)]
MFhead r196527,204406,216296-216297:

  ------------------------------------------------------------------------
  r196527 | charnier | 2009-08-25 08:09:09 +0400 (вт, 25 авг 2009) | 3 lines

  ANSIfy functions declarations, adjust prototypes. Rename local variable
  to not conflict with err().

  ------------------------------------------------------------------------
  r204406 | uqs | 2010-02-27 13:18:33 +0300 (сб, 27 фев 2010) | 12 lines

  route(8): make WARNS=3 clean

  - add static and const where appropriate
  - check pointers against NULL
  - minor styling nits
  - it is actually WARNS=6 clean for non-strict alignment platforms

  ------------------------------------------------------------------------
  r216296 | glebius | 2010-12-08 18:10:27 +0300 (ср, 08 дек 2010) | 5 lines

  Add RTM_IEEE80211 to array of route message descriptions.

  ------------------------------------------------------------------------
  r216297 | glebius | 2010-12-08 18:12:37 +0300 (ср, 08 дек 2010) | 7 lines

  - Fix array bounds checking. [1]
  - Add message length checking.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220391 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC 219850:
gjb [Wed, 6 Apr 2011 11:13:55 +0000 (11:13 +0000)]
MFC 219850:
s/buffer/buf as is used in the code.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220380 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoRegen
kib [Wed, 6 Apr 2011 11:12:51 +0000 (11:12 +0000)]
Regen

git-svn-id: svn://svn.freebsd.org/base/stable/8@220379 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220158:
kib [Wed, 6 Apr 2011 11:12:05 +0000 (11:12 +0000)]
MFC r220158:
Provide compat32 shims for kldstat(2).

git-svn-id: svn://svn.freebsd.org/base/stable/8@220378 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r218877 from head: Document our complex(3) support in libm.
murray [Tue, 5 Apr 2011 04:23:08 +0000 (04:23 +0000)]
MFC r218877 from head:  Document our complex(3) support in libm.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220353 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220124:
ae [Tue, 5 Apr 2011 04:18:42 +0000 (04:18 +0000)]
MFC r220124:
  Do not build ip_fw_nat.c for ipfw.ko. It can be build as separate module.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220352 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219938:
yongari [Mon, 4 Apr 2011 20:44:26 +0000 (20:44 +0000)]
MFC r219938:
  Remove unused DMA map/tag in softc.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220344 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220103:
yongari [Mon, 4 Apr 2011 20:40:39 +0000 (20:40 +0000)]
MFC r220103:
  Normally fxp(4) does not receive bad frames but promiscuous mode
  makes controller to receive bad frames and i82557 will also receive
  bad frames since fxp(4) have to receive VLAN oversized frames. If
  fxp(4) encounter DMA overrun error, the received frame size would
  be 0 so the actual frame size after checksum field extraction the
  length would be negative(-2). Due to signed/unsigned comparison
  used in driver, frame length check did not work for DMA overrun
  frames. Correct this by casting it to int.
  While I'm here explicitly check DMA overrun error and discard the
  frame regardless of result of received frame length check.

  Reported by: n_hibma
  Tested by: n_hibma

git-svn-id: svn://svn.freebsd.org/base/stable/8@220342 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219945, r219946, r220009
np [Mon, 4 Apr 2011 20:01:09 +0000 (20:01 +0000)]
MFC r219945, r219946, r220009

r219945:
T3C initialization should setup the parity fence too.

r219946:
t3_free_sge_resources should be given the number of qsets it needs to free.

r220009:
Update T3 firmware to 7.11.0

git-svn-id: svn://svn.freebsd.org/base/stable/8@220340 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220231, r220232
np [Mon, 4 Apr 2011 18:47:17 +0000 (18:47 +0000)]
MFC r220231, r220232

r220231:
Allow multiple modules within sys/modules/cxgbe.  The first one is if_cxgbe.

r220232:
Update header and related code for firmware 1.3.8

git-svn-id: svn://svn.freebsd.org/base/stable/8@220339 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220055: getlogin() may return NULL.
ume [Mon, 4 Apr 2011 14:54:52 +0000 (14:54 +0000)]
MFC r220055: getlogin() may return NULL.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220326 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219828:
pluknet [Mon, 4 Apr 2011 09:56:10 +0000 (09:56 +0000)]
MFC r219828:

 Reference ifaddr object before unlocking as it can be freed
 from another context at the moment of later access.

PR: kern/155555
Submitted by: Andrew Boyer <aboyer att averesystems.com>

git-svn-id: svn://svn.freebsd.org/base/stable/8@220322 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220157:
pluknet [Mon, 4 Apr 2011 09:36:29 +0000 (09:36 +0000)]
MFC r220157:

Use FD_CLOEXEC explicitly.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220320 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220253:
kib [Mon, 4 Apr 2011 08:04:32 +0000 (08:04 +0000)]
MFC r220253:
Fix mdoc errors.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220318 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219848.
hselasky [Sun, 3 Apr 2011 22:21:40 +0000 (22:21 +0000)]
MFC r219848.
- Update format of sysctl node.

Approved by: thompsa (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@220310 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219845, r219930, r219949 and r219983.
hselasky [Sun, 3 Apr 2011 22:15:00 +0000 (22:15 +0000)]
MFC r219845, r219930, r219949 and r219983.
- Use software to compute EHCI data toggle instead of hardware.
- Fix EHCI initialisation order with regard to debug prints.

Approved by: thompsa (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@220309 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r219048, r219004, r218475 and r204632.
hselasky [Sun, 3 Apr 2011 22:01:26 +0000 (22:01 +0000)]
MFC r219048, r219004, r218475 and r204632.
- The NetBSD Foundation has granted permission to remove clause 3 and 4 from
  their software.
- use device_printf() instead of printf() to give more accurate warnings.
- use memcpy() instead of bcopy().
- add missing #if's for non-FreeBSD compilation.
- Add missing xhci(4) manual page.
- Minor update in some USB manual pages.
- Correct USB 3.0 wire-speed to 5.0Gbps

Approved by: thompsa (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@220308 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r217374
hselasky [Sun, 3 Apr 2011 21:12:16 +0000 (21:12 +0000)]
MFC r217374
Add support for 64-byte contexts to XHCI driver.

Approved by: thompsa (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@220307 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r213434
hselasky [Sun, 3 Apr 2011 21:01:36 +0000 (21:01 +0000)]
MFC r213434
Add missing #if's

Approved by: thompsa (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@220306 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r213433
hselasky [Sun, 3 Apr 2011 20:54:32 +0000 (20:54 +0000)]
MFC r213433
Tighten USB string filtering.

Approved by: thompsa (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@220305 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r220062, r220173:
trociny [Sun, 3 Apr 2011 18:56:16 +0000 (18:56 +0000)]
MFC r220062, r220173:

r220062:

In g_gate_create() there is a window between when g_gate_softc is
registered in g_gate_units array and when its sc_provider field is
filled. If during this period g_gate_units is accessed by another
thread that is checking for provider name collision the crash is
possible.

Fix this by adding sc_name field to struct g_gate_softc. In
g_gate_create() when g_gate_softc is created but sc_provider is still
not sc_name points to provider name stored in the local array.

Reported by:    Freddie Cash <fjwcash@gmail.com>

r220173:

Increase debug level on g_gate device destruction and add message on
device creation.

Suggested by:   danger

Approved by: pjd (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/8@220300 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC r216224:
jh [Sun, 3 Apr 2011 08:44:57 +0000 (08:44 +0000)]
MFC r216224:

Don't write the terminating NUL past end of buffer.

PR: bin/152345

git-svn-id: svn://svn.freebsd.org/base/stable/8@220291 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

13 years agoMFC of 220286, tzdata2011e:
edwin [Sun, 3 Apr 2011 03:43:47 +0000 (03:43 +0000)]
MFC of 220286, tzdata2011e:

Change for Africa/Casablanca:
- The 3rd april 2011 at 00:00:00, [it] will be 3rd april 1:00:00
- The 31th july 2011 at 00:59:59,  [it] will be 31th July 00:00:00

Update for SouthAmerica/Chili:
- Chile's clocks will go back an hour this year on the 7th of May instead
  of this Saturday. They will go forward again the 3rd Saturday in
  August, not in October as they have since 1968. This is a pilot plan
  which will be reevaluated in 2012.

git-svn-id: svn://svn.freebsd.org/base/stable/8@220287 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f