]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
FreeBSD/stable/9.git
12 years agoMFH r225852: regenerate after hpn patch
des [Tue, 4 Oct 2011 15:06:11 +0000 (15:06 +0000)]
MFH r225852: regenerate after hpn patch

Approved by: re (kib)

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

12 years agoMFC r225885:
bz [Tue, 4 Oct 2011 12:45:24 +0000 (12:45 +0000)]
MFC r225885:

 Fix an obvious bug from r186196 shadowing a variable, not correctly
 appending the new mbuf to the chain reference but possibly causing an mbuf
 nextpkt loop leading to a memory used after handoff (or having been freed)
 and leaking an mbuf here.

 Reviewed by:   rwatson, brooks
Approved by: re (kib)

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

12 years agoMFC r225837:
bz [Tue, 4 Oct 2011 11:35:18 +0000 (11:35 +0000)]
MFC r225837:

 Pass the fibnum where we need filtering of the message on the
 rtsock allowing routing daemons to filter routing updates on an
 rtsock per FIB.

 Adjust raw_input() and split it into wrapper and a new function
 taking an optional callback argument even though we only have one
 consumer [1] to keep the hackish flags local to rtsock.c.

 Submitted by: multiple (see PR)
 Suggested by: rwatson [1]
 Reviewed by: rwatson
PR: kern/134931
Approved by: re (kib)

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

12 years agoMFC r225790:
kib [Tue, 4 Oct 2011 11:08:44 +0000 (11:08 +0000)]
MFC r225790:
Install ciss(4) ioctl header.

PR: kern/109813
Approved by: re (bz)

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

12 years agoMFC r225793:
bz [Tue, 4 Oct 2011 11:02:48 +0000 (11:02 +0000)]
MFC r225793:

 Unbreak no-ip and no-inet6 module builds with ipfw.  For now continue to
 build the ip_fw_pfil.c hooks and ipfw even in case of no-ip under the
 assumption that the private L2 hook (which hopefully eventually will be a
 pfil hook as well) can still be useful.

 Allow building the module without inet as well.

Approved by: re (kib)

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

12 years agoMFC 225953:
mav [Tue, 4 Oct 2011 10:02:14 +0000 (10:02 +0000)]
MFC 225953:
Revert r225875, r225877:
It is reported that on some chips (e.g. the 970MP) behavior of POW bit set
simultaneously with modifying other bits is undefined and may cause hangs.
The race should be handled in some other way, but for now just get back.

Reported by:    nwitehorn
Approved by: re (kib)

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

12 years agoMFC r225809:
trociny [Tue, 4 Oct 2011 10:00:28 +0000 (10:00 +0000)]
MFC r225809:

When script(1) reads EOF from input it starts spinning on zero-byte
reads eating 100% CPU. Fix this by skipping select on STDIN after
reading EOF -- permanently if STDIN is not terminal and for one second
if it is.

Also after reading EOF from STDIN we have to pass it to the program
being scripted. The previous approach was to write zero bytes into the
pseudo-terminal. This does not work because zero-byte write does not
have any effect on read. Fix this by sending VEOF instead.

Submitted by: Ronald Klop <ronald-freebsd8@klop.yi.org>
Discussed with: kib, Chris Torek <chris.torek@gmail.com>

Approved by: re (kib)

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

12 years agoMFC r225880:
dim [Mon, 3 Oct 2011 20:27:51 +0000 (20:27 +0000)]
MFC r225880:
Revive the LLVM and Clang license files, which were removed in my
too-thorough cleanup of unused files, in r213695.  Also make sure these
get installed under /usr/share/doc.

Submitted by: rwatson, brooks
Pointy hat to: dim
Approved by: re (kib)

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

12 years agoMFC r225869:
mav [Sun, 2 Oct 2011 12:15:15 +0000 (12:15 +0000)]
MFC r225869:
- Add special support for the MFI_CMD ioctl with MFI_CMD_STP command,
used by present MegaCLI version. It has some special meaning for the
first s/g list entry, while the main s/g list begins from the the second
entry, and those lists should remain separate after loading to the
busdma map.
 - Fix bug in 32bit ioctl compatibility shims when s/g list consists of
more then on element.

Approved by: re (kib)

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

12 years agoMFC r225875, r225877:
mav [Sun, 2 Oct 2011 11:13:28 +0000 (11:13 +0000)]
MFC r225875, r225877:
Handle the race in cpu_idle() when due to the critical section CPU could
get into sleep after receiving interrupt, delaying interrupt thread
execution indefinitely until the next interrupt arrive.

Reviewed by:    nwhitehorn
Approved by: re (kib)

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

12 years agoMFC r225906: Shut up warnings with Cyrus SASL 2.1.25.
ume [Sat, 1 Oct 2011 19:58:35 +0000 (19:58 +0000)]
MFC r225906: Shut up warnings with Cyrus SASL 2.1.25.

Approved by: re (kib)

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

12 years agoMFC: r225775
gabor [Sat, 1 Oct 2011 13:47:50 +0000 (13:47 +0000)]
MFC: r225775
  - Move misplaced reference
  - Sort references
  - s/Since/Because/

Approved by: re (kib)

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

12 years agoMFC r225789:
mav [Thu, 29 Sep 2011 10:37:59 +0000 (10:37 +0000)]
MFC r225789:
Add one more ID for the Marvell 88SE9128 6Gbps SATA controller.

Approved by: re (kib)

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

12 years agoMFC r225807:
mckusick [Wed, 28 Sep 2011 19:38:47 +0000 (19:38 +0000)]
MFC r225807:
This update eliminates a lock-order reversal warning discovered
whle tracking down the system hang reported in kern/160662 and
corrected in revision 225806 (MFC'ed as 225850). The LOR is not
the cause of the system hang and indeed cannot cause an actual
deadlock. However, it can be easily eliminated by defering the
acquisition of a buflock until after all the vnode locks have
been acquired.

As journaled soft updates first appeared in 9.0, this will be the
only MFC of this change.

Approved by:     re (kib)
Reported by:     Hans Ottevanger
PR:              kern/160662

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

12 years agoMFC: r225806:
mckusick [Wed, 28 Sep 2011 19:36:21 +0000 (19:36 +0000)]
MFC: r225806:
This update eliminates the system hang reported in kern/160662 when
taking a snapshot on a filesystem running with journaled soft updates.

As journaled soft updates first appeared in 9.0, this will be the
only MFC of this change.

Approved by:     re (kib)
Reported by:     Hans Ottevanger
Fix verified by: Hans Ottevanger
PR:              kern/160662

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

12 years agoFix handling of corrupt compress(1)ed data. [11:04]
bz [Wed, 28 Sep 2011 08:47:17 +0000 (08:47 +0000)]
Fix handling of corrupt compress(1)ed data. [11:04]

Add missing length checks on unix socket addresses. [11:05]

Approved by: so (cperciva)
Approved by: re (kensmith)
Security: FreeBSD-SA-11:04.compress
Security: CVE-2011-2895 [11:04]
Security: FreeBSD-SA-11:05.unix

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

12 years agoMFH r225805: use fseeko(2) instead of fseek(2).
des [Tue, 27 Sep 2011 19:08:27 +0000 (19:08 +0000)]
MFH r225805: use fseeko(2) instead of fseek(2).

Approved by: re (kib)

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

12 years ago- MFC r225778:
stas [Tue, 27 Sep 2011 18:40:13 +0000 (18:40 +0000)]
- MFC r225778:
  - Add missing interdependencies to kerberos libraries.  Some of the
    kerberos libraries were not linked properly (missing dependencies),
    which causes 3rd party applications linking to fail when --as-needed
    ld flag is used.  I also added the --no-undefined ld(1) flag to make
    sure that there're no missing dependencies.

Approved by: re (kib)

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

12 years agoMFC r225798: Improve battery capacity reporting
emaste [Tue, 27 Sep 2011 17:11:09 +0000 (17:11 +0000)]
MFC r225798: Improve battery capacity reporting

  When a status pointer is passed in mfi_dcmd_command does not return an
  errno (if the ioctl is successful), so move the test for NO_HW_PRESENT
  outside of the error case.  This should fix incorrect reporting for
  systems with a dead or no battery.

  Additionally, handle error codes other than NO_HW_PRESENT by omitting
  the battery capacity display.  LSI's supercap-based parts (CV series)
  report their data using the same interface as battery-based parts,
  except that they do not include the capacity stats (state of charge,
  cumulative charge cycles, etc.)

PR:           bin/160581
Approved by:  re

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

12 years agoMFH r225800: finally fix resume mode with non-cooperating server.
des [Tue, 27 Sep 2011 17:04:13 +0000 (17:04 +0000)]
MFH r225800: finally fix resume mode with non-cooperating server.

Approved by: re (kib)

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

12 years agoMFC r225788:
mav [Tue, 27 Sep 2011 15:08:59 +0000 (15:08 +0000)]
MFC r225788:
Fix interrupt counters dumping on SW_WATCHDOG fire.

Approved by: re (kib)

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

12 years agoBackout r225372.
attilio [Tue, 27 Sep 2011 14:00:32 +0000 (14:00 +0000)]
Backout r225372.
Eventhandler mutex cannot be acquired in kernel context.

Sponsored by: Sandvine Incorporated
Approved by: re (kib)

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

12 years agoReady for BETA3.
kensmith [Fri, 23 Sep 2011 16:37:28 +0000 (16:37 +0000)]
Ready for BETA3.

Approved by: re (implicit)

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

12 years agoCopy head to stable/9 as part of 9.0-RELEASE release cycle.
kensmith [Fri, 23 Sep 2011 00:51:37 +0000 (00:51 +0000)]
Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by: re (implicit)

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