]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
10 years agoBump __FreeBSD_version to 1000700, to set it higher than what is in
gjb [Sat, 7 Dec 2013 13:06:14 +0000 (13:06 +0000)]
Bump __FreeBSD_version to 1000700, to set it higher than what is in
releng/10.0 now.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

10 years agoSet stable/10 to -PRERELEASE, now that releng/10.0 has been branched.
gjb [Sat, 7 Dec 2013 11:33:07 +0000 (11:33 +0000)]
Set stable/10 to -PRERELEASE, now that releng/10.0 has been branched.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r258927: Fix a regression introduced by SVN r257842 that prevents
dteske [Sat, 7 Dec 2013 00:33:10 +0000 (00:33 +0000)]
MFC r258927: Fix a regression introduced by SVN r257842 that prevents
Encryption from being enabled.

Approved by: re (gjb)

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

10 years agoMFC r258948:
delphij [Fri, 6 Dec 2013 23:40:50 +0000 (23:40 +0000)]
MFC r258948:

Support Hyper-V on i386:

 - Add 'hyperv' module into build;
 - Allow building Hyper-V support as part of the kernel;
 - Hook Hyper-V build into NOTES.

Approved by: re (rodrigc)

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

10 years agoMFC r258941:
delphij [Fri, 6 Dec 2013 23:30:46 +0000 (23:30 +0000)]
MFC r258941:

Apply vendor improvements to oce(4) driver:

 - Add support to 40Gbps devices;
 - Add support to control adaptive interrupt coalescing (AIC)
   via sysctl;
 - Improve support of BE3 devices;

Many thanks to Emulex for their continued support of FreeBSD.

Submitted by: Venkata Duvvuru <VenkatKumar.Duvvuru Emulex Com>
Approved by: re (rodrigc)

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

10 years agoMFC r258894: Make rc(8) re-source rc.conf upon receipt of SIGALRM.
cperciva [Fri, 6 Dec 2013 20:48:53 +0000 (20:48 +0000)]
MFC r258894: Make rc(8) re-source rc.conf upon receipt of SIGALRM.

The rc system aggressively caches the contents of /etc/rc.conf in order to
improve boot performance; this produces arguably astonishing (non-)results
if /etc/rc.conf is modified during the boot process.  This commit provides
a mechanism for explicitly requesting that rc.conf be reloaded.

Approved by: re (rodrigc)

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

10 years agoMFC 258178:
royger [Thu, 5 Dec 2013 18:09:48 +0000 (18:09 +0000)]
MFC 258178:

Improve robustness of the Xen balloon driver.

sys/dev/xen/balloon/balloon.c:
Remove unused and commented out code.

Fix deadlock caused by performing a sleepable malloc
while holding the balloon mutex.

Perform proper accounting of the memory used by the domain.

Submitted by: Roger Pau Monné
Sponsored by: Citrix Systems R&D
Reviewed by: gibbs
Approved by: gibbs (mentor)
Approved by: re (gjb)

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

10 years agoMFC 258176:
royger [Thu, 5 Dec 2013 18:08:05 +0000 (18:08 +0000)]
MFC 258176:

Fix accounting for hw.realmem on the i386 and amd64 platforms.

sys/i386/i386/machdep.c:
sys/amd64/amd64/machdep.c:
The value reported by FreeBSD as "real memory" when booting
doesn't match what is later reported by sysctl as hw.realmem.
This is due to the fact that the value printed during the
boot process is fetched from smbios data (when possible),
and accounts for holes in physical memory. On the other
hand, the value of hw.realmem is unconditionally set to be
one larger than the highest page of the physical address
space.

Fix this by setting hw.realmem to the same value printed
during boot, this makes hw.realmem honour it's name and
account properly for physical memory present in the system.

Submitted by: Roger Pau Monné
Reviewed by: gibbs
Approved by: gibbs (mentor)
Approved by: re (gjb)

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

10 years agoMFC 257876:
royger [Thu, 5 Dec 2013 18:06:12 +0000 (18:06 +0000)]
MFC 257876:

On XenServer the "halt" message is used instead of "poweroff", which
makes FreeBSD halt but not poweroff (as expected when issuing a
shutdown from the VM manager). Fix this by using the same handler
for both "halt" and "poweroff".

NB: The "halt" signal seems to be used on XenServer only.  The OSS
    Xen toolstack (xl) uses "poweroff" instead.

Submitted by: Roger Pau Monné
Sponsored by: Citrix Systems R&D
Reviewed by: gibbs
Approved by: gibbs (mentor)
Approved by: re (gjb)

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

10 years agoMFC r257769 to stable/10
sbruno [Thu, 5 Dec 2013 17:57:51 +0000 (17:57 +0000)]
MFC r257769 to stable/10

Fix powerd/states on AMD cpus.  Resolves issues with system reporting:
hwpstate0: set freq failed, err 6

Tested on FX-8150 and others.

PR: kern/167018
Submitted by: avg@
Approved by: re (gjb)

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

10 years agoMFC r258842:
trasz [Thu, 5 Dec 2013 16:29:22 +0000 (16:29 +0000)]
MFC r258842:

Grammar fix.

Approved by: re (gjb)
Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r258841:
trasz [Thu, 5 Dec 2013 16:14:56 +0000 (16:14 +0000)]
MFC r258841:

Fix typos.

Approved by: re (gjb)
Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r258830:
yongari [Thu, 5 Dec 2013 06:13:59 +0000 (06:13 +0000)]
MFC r258830:
  Add support for BCM57764, BCM57767, BCM57782, BCM57786 and BCM57787.
  PR: 184304
  Approved by: re (rodrigc)

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

10 years agoMFC r258914
rodrigc [Thu, 5 Dec 2013 01:21:45 +0000 (01:21 +0000)]
MFC r258914

Update release notes.

Submitted by: skreuzer
Approved by: re (delphij)

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

10 years agoMFC r258854:
gjb [Thu, 5 Dec 2013 01:06:05 +0000 (01:06 +0000)]
MFC r258854:
  Fix PKG_ABI detection in bsdconfig(8) after pkg-1.2 is released, since
  the format of 'pkg -vv' output has changed.

Approved by: re (hrs)
Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r258786, r258796, r258797, r258847, r258853, r258949:
gjb [Thu, 5 Dec 2013 00:59:29 +0000 (00:59 +0000)]
MFC r258786, r258796, r258797, r258847, r258853, r258949:

r258786:
  Move OPTIONS_UNSET outside of the PBUILD_FLAGS variable, otherwise
  the textproc/docproj port build fails.

r258796 (hrs):
  - Prevent TARGET and TARGET_ARCH from being defined as empty when
    TARGET="" and/or TARGET_ARCH="" is specified.
  - Remove extra ().

r258797 (hrs):
  Use standard CLEANFILES/CLEANDIRS and clean target in bsd.obj.mk.

r258847:
  Provide reproducibility between builds by building pkg(8) from ports,
  instead of using pkg-bootstrap.

  This should resolve a problem that was discovered during 10.0-BETA4
  freebsd-update(8) builds,

r258853:
  Turn off the dvdrom target by default.  dvd1.iso is now built by
  specifying 'WITH_DVD=1' during 'make release'.

  This caused some problems during the freebsd-update builds for
  10.0-BETA4.

r258949:
  Ensure WITH_DVD is not empty to prevent 'WITH_DVD= ' from evaluating
  to true.

Approved by: re (hrs)
Sponsored by: The FreeBSD Foundation

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

10 years agoMFC: r258718: fix emulated jail_v0 byte order
peter [Wed, 4 Dec 2013 18:25:04 +0000 (18:25 +0000)]
MFC: r258718: fix emulated jail_v0 byte order

Approved by: re (gjb)

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

10 years agoMFC r258495:
mav [Wed, 4 Dec 2013 10:54:23 +0000 (10:54 +0000)]
MFC r258495:
Update description of logical CPU handling in the latest releases and
remove obsolete sysctl variable machdep.hlt_logical_cpus.

Approved by: re (hrs)

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

10 years agoMFC r258790:
trasz [Wed, 4 Dec 2013 09:46:27 +0000 (09:46 +0000)]
MFC r258790:

Fix hang on reboot with active iSCSI connections.

Approved by: re (glebius)
Sponsored by: The FreeBSD Foundation

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

10 years agoMFC 258591
rodrigc [Wed, 4 Dec 2013 07:55:49 +0000 (07:55 +0000)]
MFC 258591
In vnet_route_uninit(), free some memory that is allocated in vnet_route_init().

To reproduce the problem:
  (1)  Take a GENERIC kernel config, and add options for: VIMAGE, WITNESS,
       INVARIANTS.
  (2)  Run this command in a loop:
       jail -l -u root -c path=/ name=foo persist vnet && jexec foo ifconfig lo0 127.0.0.1/8 && jail -r foo

       see: http://lists.freebsd.org/pipermail/freebsd-current/2010-November/021280.html
            http://lists.freebsd.org/pipermail/freebsd-current/2010-November/021291.html

This doesn't eliminate all the "Freed UMA keg was not empty" warning messages
on the console, but it helps.

Approved by: re (gjb)

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

10 years agoMFC r258588
rodrigc [Wed, 4 Dec 2013 07:50:18 +0000 (07:50 +0000)]
MFC r258588

In sys/netpfil/ipfw/ip_fw_nat.c:vnet_ipfw_nat_uninit() we call "IPFW_WLOCK(chain);".
This lock gets deleted in sys/netpfil/ipfw/ip_fw2.c:vnet_ipfw_uninit().

Therefore, vnet_ipfw_nat_uninit() *must* be called before vnet_ipfw_uninit(),
but this doesn't always happen, because the VNET_SYSINIT order is the same for both functions.
In sys/net/netpfil/ipfw/ip_fw2.c and sys/net/netpfil/ipfw/ip_fw_nat.c,
IPFW_SI_SUB_FIREWALL == IPFW_NAT_SI_SUB_FIREWALL == SI_SUB_PROTO_IFATTACHDOMAIN
and
IPFW_MODULE_ORDER == IPFW_NAT_MODULE_ORDER

Consequently, if VIMAGE is enabled, and jails are created and destroyed,
the system sometimes crashes, because we are trying to use a deleted lock.

To reproduce the problem:
  (1)  Take a GENERIC kernel config, and add options for: VIMAGE, WITNESS,
       INVARIANTS.
  (2)  Run this command in a loop:
       jail -l -u root -c path=/ name=foo persist vnet && jexec foo ifconfig lo0 127.0.0.1/8 && jail -r foo

       (see http://lists.freebsd.org/pipermail/freebsd-current/2010-November/021280.html )

Fix the problem by increasing the value of IPFW_NAT_SI_SUB_FIREWALL,
so that vnet_ipfw_nat_uninit() runs after vnet_ipfw_uninit().

Approved by: re (gjb)

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

10 years agoMFC r258737
rodrigc [Wed, 4 Dec 2013 07:46:53 +0000 (07:46 +0000)]
MFC r258737

In keg_dtor(), print out the keg name in the "Freed UMA keg was not empty"
message printed to the console.  This makes it easier to track down
the source of certain memory leaks.

Suggested by: adrian
Approved by: re (gjb)

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

10 years agoMFC r258738
rodrigc [Wed, 4 Dec 2013 07:45:08 +0000 (07:45 +0000)]
MFC r258738

Also mention that drill(1) can be used, now that nslookup and dig are no
longer in the base system.

Suggested by: peter
Approved by: re (gjb)

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

10 years agoMFC r258574:
tuexen [Tue, 3 Dec 2013 20:55:37 +0000 (20:55 +0000)]
MFC r258574:

Only initialize some mutexes for the default VNET.

In r208160, sctp_it_ctl was made a global variable, across all VNETs.
However, sctp_init() is called for every VNET that is created.  This results
in the same global mutexes which are part of sctp_it_ctl being initialized.  This can result
in crashes if many jails are created.

To reproduce the problem:
  (1)  Take a GENERIC kernel config, and add options for: VIMAGE, WITNESS,
       INVARIANTS.
  (2)  Run this command in a loop:
       jail -l -u root -c path=/ name=foo persist vnet && jexec foo ifconfig lo0 127.0.0.1/8 && jail -r foo

       (see http://lists.freebsd.org/pipermail/freebsd-current/2010-November/021280.html )

Witness will warn about the same mutex being initialized.

Fix the problem by only initializing these mutexes in the default VNET.

MFC r258765:

In
http://svnweb.freebsd.org/changeset/base/258221
I introduced a bug which initialized global locks
whenever the SCTP stack initialized. This was fixed in
http://svnweb.freebsd.org/changeset/base/258574
by rodrigc@. He just initialized the locks for
the default vnet. This fix reverts to the old
behaviour before r258221, which explicitly makes
sure it is only called once, because this works also on
other platforms.

Approved by: re@ (gjb)

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

10 years agoMFC r258663:
kib [Tue, 3 Dec 2013 19:42:46 +0000 (19:42 +0000)]
MFC r258663:
Use sysctl KERN_PROC_SIGTRAMP to retrieve the signal trampoline
location for the native amd64 ABI.  This fixes unwinding over the
signal frame after trampoline was moved to the shared page.

Approved by: re (gjb)

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

10 years agoMFC r258660:
kib [Tue, 3 Dec 2013 19:41:48 +0000 (19:41 +0000)]
MFC r258660:
Fix sys/sysctl.h use for cc -m32 on amd64.

Approved by: re (gjb)

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

10 years agoMFC r258661:
kib [Tue, 3 Dec 2013 19:40:32 +0000 (19:40 +0000)]
MFC r258661:
Add sysctl KERN_PROC_SIGTRAMP to retrieve signal trampoline location for the
given process.

Approved by: re (gjb)

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

10 years agoMFC r258043:
trasz [Tue, 3 Dec 2013 18:35:17 +0000 (18:35 +0000)]
MFC r258043:

Fix typo.

Approved by: re (gjb)
Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r258042:
trasz [Tue, 3 Dec 2013 18:28:18 +0000 (18:28 +0000)]
MFC r258042:

Fix description to actually make sense.

Approved by: re (gjb)
Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r258041:
trasz [Tue, 3 Dec 2013 18:18:35 +0000 (18:18 +0000)]
MFC r258041:

Mention acl_get_brand_np(3).

Approved by: re (gjb)
Sponsored by: The FreeBSD Foundation

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

10 years agoUpdate stable/10 to BETA4 as part of the 10.0-RELEASE cycle.
gjb [Sat, 30 Nov 2013 17:40:48 +0000 (17:40 +0000)]
Update stable/10 to BETA4 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r258550:
gjb [Sat, 30 Nov 2013 17:33:49 +0000 (17:33 +0000)]
MFC r258550:
  Do not create pkg.conf, as it is not necessary anymore
  and packagesite is deprecated

Approved by: re (glebius)
Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r258499:
kib [Sat, 30 Nov 2013 14:36:32 +0000 (14:36 +0000)]
MFC r258499:
Fix for the spurious signal handler call with zero signo in the threaded
process.

Approved by: re (hrs)

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

10 years agoMFC r258664:
delphij [Sat, 30 Nov 2013 07:03:18 +0000 (07:03 +0000)]
MFC r258664:

Create /var/cache with mode 0755 instead of 0750.

This directory is used by many third party applications and having
permission 0750 makes it impossible to drop group privileges.

Approved by: re (glebius)

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

10 years agoMFC r258669:
gjb [Sat, 30 Nov 2013 03:31:40 +0000 (03:31 +0000)]
MFC r258669:
  Document the dvdrom target and NODVD variable.

Approved by: re (delphij)
Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r258347,r258349:
bdrewery [Fri, 29 Nov 2013 21:13:30 +0000 (21:13 +0000)]
MFC r258347,r258349:

  Support SNI in libfetch

  SNI is Server Name Indentification which is a protocol for TLS that
  indicates the host that is being connected to at the start of the
  handshake. It allows to use Virtual Hosts on HTTPS.

PR: kern/183583
Approved by: bapt (implicit)
Approved by: re (gjb)

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

10 years agoMFC r258348:
bdrewery [Fri, 29 Nov 2013 21:12:35 +0000 (21:12 +0000)]
MFC r258348:

  Document 'enabled' as boolean instead of string.

Approved by: bapt (implicit)
Approved by: re (gjb)

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

10 years agoMFC r258537, r258587:
gjb [Fri, 29 Nov 2013 19:44:30 +0000 (19:44 +0000)]
MFC r258537, r258587:

r258537 (hrs):
  Add ICONV_{GET,SET}_ILSEQ_INVALID iconvctl.  GNU iconv returns
  EILSEQ when there is an invalid character in the output codeset
  while it is valid in the input.  However, POSIX requires iconv()
  to perform an implementation-defined conversion on the character.
  So, Citrus iconv converts such a character to a special character
  which means it is invalid in the output codeset.

  This is not a problem in most cases but some software like libxml2
  depends on GNU's behavior to determine if a character is output
  as-is or another form such as a character entity (&#NNN;).

r258587 (peter):
  Move the iconv wrapper source from libc_nonshared to libc/iconv so
  that it is all in the one place again.  Rename libc/iconv/iconv.c
  to bsd_iconv.c. Compile the wrappers into libc.a so that
  WITHOUT_DYNAMICROOT works again.

Approved by: re (kib)
Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r258620:
dim [Fri, 29 Nov 2013 18:06:02 +0000 (18:06 +0000)]
MFC r258620:

Pull in r195558 from upstream clang trunk:

  Fix a SSE2 intrinsics typo

  Full discourse at:

   http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20131104/092514.html
   http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-November/068124.html

  Patch by Dimitry Andric and Alexey Dokuchaev!

Reported by: danfe
Approved by: re (gjb)

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

10 years agoMFC r258714
rodrigc [Fri, 29 Nov 2013 07:12:10 +0000 (07:12 +0000)]
MFC r258714
  Add some text to clarify that nslookup and dig are no longer in the
  base system after the removal of BIND.

Approved by: re (delphij)

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

10 years agoMFC r257879:
delphij [Thu, 28 Nov 2013 22:06:37 +0000 (22:06 +0000)]
MFC r257879:

Fix typo in r256646: We want to generate lists of directories in
INDEX-OLD and INDEX-NEW and compare them, not generate the same
list of directories from INDEX-OLD twice...

Pointy hats to: cperciva & everybody who didn't proofread
EN-13:04 enough
Errata Notice: FreeBSD-EN-13:05.freebsd-update
Approved by: re (gjb)

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

10 years agoMFC r258227 (bapt):
gjb [Thu, 28 Nov 2013 14:24:26 +0000 (14:24 +0000)]
MFC r258227 (bapt):
 Enabled should be a boolean, not a string

Approved by: re (glebius)
Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r258549 and r258553:
dumbbell [Thu, 28 Nov 2013 10:04:53 +0000 (10:04 +0000)]
MFC r258549 and r258553:

drm: Dereference pointers given to qsort_r()'s cmp callback

drm_le_cmp() (qsort_r()'s callback) receives pointers to elements in the
array passed to qsort_r(), not the elements themselves.

Before this fix, the use of qsort_r() shuffled the array, not sorted it,
because the compare callback accessed random memory locations, not the
expected elements.

This bug triggered an infinite loop in KDE/xserver:

    1. KDE has a kded module called "randrmonitor" which queries xserver
       for current monitors at startup and then listens to RandR
       notifications from xserver.

    2. xserver handles the query from "randrmonitor" by polling the
       video device using the "drm_mode_getconnector()" ioctl. This
       ioctl returns a list of connectors and, for those with a
       connected monitor, the available modes. Each modes list is sorted
       by the kernel before returning. When xserver gets the connectors
       list, it sorts the modes lists again.

       In the case of this bug, when two modes are equal (in xserver's
       compare function PoV), their order is kept stable (ie. the
       kernel order is kept for those two modes). And because the list
       was shuffled by the kernel, the order of two equal modes was
       frequently changed in the final modes list in xserver.

    3. xserver compares the returned connectors list with the list
       obtained earlier. In particular, it compares the sorted
       modes lists for each connector. If a property of a connector
       changes (eg. modes), xserver sends a "RRNotify_OutputChange"
       notification.

       Because of the change of order between equal modes, xserver sent
       a notification after each polling of the connectors.

    4. "randrmonitor" receives a notification, triggered by its query. The
       notification doesn't contain the new connectors list, therefore, it
       asks for the new list using the same function: go back to step #2.

Approved by: re (kib)

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

10 years agoMFC r258262:
dumbbell [Thu, 28 Nov 2013 09:30:05 +0000 (09:30 +0000)]
MFC r258262:

drm: Support DRM_CAP_TIMESTAMP_MONOTONIC capability

This fixes DPMS with KDE and radeonkms. Without this, the display would
freeze when the monitor is put into sleep state, and only resumes after
several dozens of minutes once the monitor is powered on again.

Tested by: Mathias Picker <Mathias.Picker@virtual-earth.de>
Approved by: re (kib)

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

10 years agoMFC: r258456
brooks [Tue, 26 Nov 2013 16:13:48 +0000 (16:13 +0000)]
MFC: r258456

Fix mergemaster -U by forcing FreeBSD 9 compatiblity in mtree when mtree is
nmtree.

The mtree output used by mergemaster in this case was clearly not meant for
computer consumption and an approach based on -f <file1> -f <file2> would
probably be a better idea, but this is a minimal change.

Approved by: re (glebius)

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

10 years agoMFC r258437:
brooks [Tue, 26 Nov 2013 16:12:40 +0000 (16:12 +0000)]
MFC r258437:

Sync with NetBSD.  The functional change is to make the output when
comparing a directory to an mtree file more compatible with fmtree when
FreeBSD 9 compatiblity mode is on.  This output is clearly intended for
humans not computers, but some tools such as mergemaster's -U option rely
on it.

Approved by: re (glebius)

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

10 years ago[Forced commit to correct checkin comment for r256757]
gibbs [Tue, 26 Nov 2013 14:50:39 +0000 (14:50 +0000)]
[Forced commit to correct checkin comment for r256757]

MFC: r256423

Allow FreeBSD to be booted from CDROM media on XenServer 6.2 and
prior releases.

Submitted by: Roger Pau Monné
Sponsored by: Citrix Systems R&D
Reviewed by: gibbs
Approved by: re (gjb)

sys/dev/xen/blkfront/blkfront.c:
On XenServer versions up to an including 6.2, paravirtualized
CDROM support is broken.  When running in an HVM domain,
ignore paravirtualized instances of CDROM media, and instead
rely on native drivers attaching to emulated hardware.  This
functions correctly on all currently known Xen based
platforms.
------------------------------------------------------------------------

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

10 years agoMFC r258399,258492:
jmg [Tue, 26 Nov 2013 08:46:39 +0000 (08:46 +0000)]
MFC r258399,258492:
mark aesni module _SYNC, improves performance ~27%...

Approved by: re (glebius)

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

10 years agoMFC r258350:
dim [Mon, 25 Nov 2013 22:56:46 +0000 (22:56 +0000)]
MFC r258350:

Pull in r191896 from upstream llvm trunk:

  CaptureTracking: Plug a loophole in the "too many uses" heuristic.

  The heuristic was added to avoid spending too much compile time in a
  specially crafted test case (PR17461, PR16474) with many uses on a
  select or bitcast instruction can still trigger the slow case. Add a
  check for that case.

  This only affects compile time, don't have a good way to test it.

This fixes the excessive compile time spent on a specific file of the
graphics/rawtherapee port.

Reported by: mandree
Approved by: re (gjb)

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

10 years agoMFC r258294:
smh [Mon, 25 Nov 2013 20:47:37 +0000 (20:47 +0000)]
MFC r258294:
Fix ZFS deadlock when sending a snapshot which is mounted.

Approved by: re (glebius)
Sponsored by: Multiplay

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

10 years agoMFC 258570
rodrigc [Mon, 25 Nov 2013 20:39:09 +0000 (20:39 +0000)]
MFC 258570

Change sysinstall.8 references to bsdinstall.8.

Submitted by: skreuzer
Approved by: re (delphij)

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

10 years agoMFV r258378: 4089 NULL pointer dereference in arc_read()
avg [Mon, 25 Nov 2013 17:30:18 +0000 (17:30 +0000)]
MFV r258378: 4089 NULL pointer dereference in arc_read()

illumos/illumos-gate@57815f6b95a743697e148327725b7f568e75e6ea

Tested by: adrian
Approved by: re (gjb)

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

10 years agoMFV r258377: 4088 use after free in arc_release()
avg [Mon, 25 Nov 2013 17:19:05 +0000 (17:19 +0000)]
MFV r258377: 4088 use after free in arc_release()

illumos/illumos-gate@ccc22e130479b5bd7c0002267fee1e0602d3f772

Approved by: re (gjb)

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

10 years agoMFC r258353: zfs page_busy: fix the boundaries of the cleared range
avg [Mon, 25 Nov 2013 16:31:31 +0000 (16:31 +0000)]
MFC r258353: zfs page_busy: fix the boundaries of the cleared range

This is a fix for a regression introduced in r246293.

vm_page_clear_dirty expects the range to have DEV_BSIZE aligned boundaries,
otherwise it extends them.  Thus it can happen that the whole page is
marked clean while actually having some small dirty region(s).
This commit makes the range properly aligned and ensures that only
the clean data is marked as such.

It would interesting to evaluate how much benefit clearing with DEV_BSIZE
granularity produces.  Perhaps instead we should clear the whole page
when it is completely overwritten and don't bother clearing any bits
if only a portion a page is written.

Reviewed by: kib
Approved by: re (gjb)

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

10 years agoMFC r258135: x86: Allow users to change PSL_RF via ptrace(PT_SETREGS...)
emaste [Mon, 25 Nov 2013 15:58:48 +0000 (15:58 +0000)]
MFC r258135: x86: Allow users to change PSL_RF via ptrace(PT_SETREGS...)

  Debuggers may need to change PSL_RF. Note that tf_eflags is already stored
  in the signal context during signal handling and PSL_RF previously could
  be modified via sigreturn, so this change should not provide any new
  ability to userspace.

  For background see the thread at:
  http://lists.freebsd.org/pipermail/freebsd-i386/2007-September/005910.html

  Reviewed by: jhb, kib

Sponsored by: DARPA, AFRL
Approved by: re (gjb)

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

10 years agoMFC r258426: libexecinfo: Include terminating null in byte count
emaste [Mon, 25 Nov 2013 15:54:18 +0000 (15:54 +0000)]
MFC r258426: libexecinfo: Include terminating null in byte count

  Otherwise, a formatted string with a strlen equal to the remaining
  buffer space would have the last character omitted (because vsnprintf
  always null-terminates), and later the assert in backtrace_symbols_fmt
  would fail.

Sponsored by: DARPA, AFRL
Approved by: re (gjb)

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

10 years agoMFC: r258387,r258425
gber [Mon, 25 Nov 2013 15:34:57 +0000 (15:34 +0000)]
MFC: r258387,r258425
Split raw reading/programming into smaller chunks to avoid allocating too
big chunk of kernel memory. Validate size of data. Add error handling to
avoid calling copyout() when data has not been read correctly. Also MFC of
change r258425 which fixes problem introduced by r258387.

Reviewed by:    zbb
Reported by:    x90c <geinblues@gmail.com>
Approved by:    re

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

10 years agoMFC r258086:
cperciva [Sun, 24 Nov 2013 23:30:23 +0000 (23:30 +0000)]
MFC r258086:
  Strip the -pN patch level from the VERSION string which gets encoded into
  CTF data.  Otherwise FreeBSD Update builds think every kernel file has
  changed every time there's a security advisory, since the FreeBSD Update
  build code isn't smart enough to look inside CTF data to ignore those
  changes.

Approved by: re (gjb)

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

10 years agoMFC r256951:
mjg [Sat, 23 Nov 2013 23:54:38 +0000 (23:54 +0000)]
MFC r256951:
gnop: make sure that newly allocated memory for softc is zeroed

This prevents mtx_init from encountering non-zeros and panicking
the kernel as a result.

Approved by: re

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

10 years agoMFC r258316:
tijl [Sat, 23 Nov 2013 12:17:05 +0000 (12:17 +0000)]
MFC r258316:

Bug fixes in iconv(3) UTF-7 support.

- Add ' to the list of directly encoded characters and * to the list of
  optionally directly encoded characters as per RFC 2152.

- In _citrus_UTF7_mbtoutf16 on end of input when the next output character
  has only been partially decoded, save a copy of the buffer of input
  characters (not just its length).  On the next call with more input
  characters this buffer is reprocessed together with the new input to
  form a fully decoded output character.

- At the end of a base64 encoded sequence fully discard '-' (BASE64_OUT)
  by decrementing psenc->chlen and i.  This is needed to make room in
  psenc->ch (input buffer) in case the next input character starts a new
  base64 encoded sequence.  And also, if this is the end of input and no
  output character can be returned, this brings the encoder in the initial
  state as indicated by _citrus_UTF7_stdenc_get_state_desc_generic which
  is used by the caller to distinguish between no output and partial
  output.

- In _citrus_UTF7_mbrtowc_priv pass the s parameter (input pointer)
  directly to _citrus_UTF7_mbtoutf16 instead of a copy (s0).  This way s
  is updated correctly in case of errors.

- In _citrus_UTF7_mbrtowc_priv when called with psenc->surrogate set
  (previous call did not have enough input), retrieve the previously
  decoded UTF-16 character from (psenc->cache >> psenc->bits) instead of
  (psenc->cache >> 2).

Approved by: re (kib)

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

10 years agoMFC r258432, r258433
rodrigc [Sat, 23 Nov 2013 01:20:17 +0000 (01:20 +0000)]
MFC r258432, r258433

Update text related to Intel CPU support and Apple hardware support.
Update copyrights

Submitted by: skreuzer
Approved by: re (hrs, delphij)

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

10 years agoMerge r258128 from head:
glebius [Fri, 22 Nov 2013 19:27:17 +0000 (19:27 +0000)]
Merge r258128 from head:
  Fix a very bad typo from r248887.

Approved by: re (kib)

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

10 years agoMerge r258122 from head:
glebius [Fri, 22 Nov 2013 19:26:52 +0000 (19:26 +0000)]
Merge r258122 from head:
  Emphasize that pf(4) in FreeBSD doesn't match pf(4) in
  OpenBSD 4.5, but is derived from it, and got some
  important local changes.

Approved by: re (kib)

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

10 years agoMerge r256769 by des from head:
glebius [Fri, 22 Nov 2013 19:26:04 +0000 (19:26 +0000)]
Merge r256769 by des from head:
  Last few remnants of BIND (hopefully...)

Approved by: re (kib)

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

10 years agoMFC r258318:
tijl [Fri, 22 Nov 2013 12:51:55 +0000 (12:51 +0000)]
MFC r258318:

Also delete lib32 libiconv.

Reported by: Tomoaki AOKI <junchoon@dec.sakura.ne.jp>

MFC r258345:

One more BIND remnant: /etc/mtree/BIND.chroot.dist

Discussed with: des

Approved by: re (kib)

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

10 years agoMFC r258155
davidcs [Fri, 22 Nov 2013 00:26:21 +0000 (00:26 +0000)]
MFC r258155
ql_hw.[c,h]: set minimum thresholds on pkt size for lro path.
ql_ioctl.c: validate the length and address of buffer passed to QL_RD_FW_DUMP
MFC r258156
qls_ioctl.c: Validate the buffer and its length passed to QLA_MPI_DUMP.
             copyout dump only if qls_mpi_core_dump() is successful.
(like to credit x90c for pointing the issue)

Approved by: re (delphij)

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

10 years agoMFC r256556:
tuexen [Thu, 21 Nov 2013 23:00:09 +0000 (23:00 +0000)]
MFC r256556:
Remove a buggy comparision when setting manually the path MTU.
After fixing, the comparision would have become redundant.
Thanks to Andrew Galante for reporting the issue.

MFC r257272:
Fix compilation if SCTP_DONT_DO_PRIVADDR_SCOPE is defined.
The issue was reported by Andrew Galante.

MFC r257274:
Fix the value of *optlen when calling getsockopt() for
SCTP_REMOTE_UDP_ENCAPS_PORT.
This issue was reported by Andrew Galante.

MFC r257359:
Terminate a debug output with a \n.

MFC r257555:
Changes from upstream to improve compilation when INET or INET6
or none of them is defined.

MFC r257574:
Unlock the lock before destroying it.
This issue was reported by Andrew Galante.

MFC r257800:
Use htons()/ntohs() appropriately.
These issues were reported by Andrew Galante.

MFC r257803:
Make sure that we don't try to build an ASCONF-ACK chunk
larger than what fits in the the mbuf cluster.
This issue was reported by Andrew Galante.

MFC r257804:
Get rid of the artification limitation enforced by
SCTP_AUTH_RANDOM_SIZE_MAX.
This was suggested by Andrew Galante.

MFC r258221:
Cleanups which result in fixes which have been made upstream
and where partially suggested by Andrew Galante.
There is no functional change in FreeBSD.

MFC r258224:
When determining if an address belongs to an stcb, take the address family
into account for wildcard bound endpoints.

MFC r258228:
Remove a stray write operation.

MFC r258235:
Use SCTP_PR_SCTP_TTL when the user provides a positive
timetolive in sctp_sendmsg().

Approved by: re@

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

10 years agoMFC Revisions:
dteske [Thu, 21 Nov 2013 03:40:52 +0000 (03:40 +0000)]
MFC Revisions:
256549: man-page updates
256551: .Dd bump in manpage
256553: bootenv -> ROOT fix
257842: monster list of fixes
257843: minor touchup
257844: copy install log
257845: fixup to last
257872: mdoc fixup
257939: debug check
258021: MBR bootcode fixup

Reviewed by: many
Discussed on: -current
Approved by: re (hrs)

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

10 years agoMFC r257755-257756,257780-257785,257787-257793, and
dteske [Thu, 21 Nov 2013 03:38:47 +0000 (03:38 +0000)]
MFC r257755-257756,257780-257785,257787-257793, and
257795,257817,257819,257937-257938,258029,258263-258267:
257755: SRV records
257756: fix spurious error message
257780: Whitespace
257781: Comments and funny syntax
257782: Debug file truncation is optional
257783: f_show_err for debugging
257784: f_eval_catch for debugging
257785: fix size calculations bug
257787: fix broken HTTP "any" media type
257788: more debugging
257789: Comments
257790: fix printf usage bug
257791: f_[v]sprintf added
257792: Comments
257793: fix off-by-one error in size calcs
257795: Replace pkg-tools with pkgng
257817: fix cosmetic typos
257819: Use `pkg -vv' to get ABI
257937: Adjustment to last
257938: Adjustment to last
258029: Comments
258263: Shuffle code around
258264: Remove unused code
258265: Debugging. Use f_eval_catch with pkg
258266: Shutdown media on exit from packages
258267: Fix pkg install from DVD

Reviewed by: many
Discussed on: -current
Approved by: re (hrs)

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

10 years agoMFC r258305, r258307, r258308, r258309, r258310, r258314, r258317,
gjb [Thu, 21 Nov 2013 02:45:36 +0000 (02:45 +0000)]
MFC r258305, r258307, r258308, r258309, r258310, r258314, r258317,
r258319, r258320:

r258305:
  Use the IMAGES variable to determine which image files to remove
  as part of 'make -C /usr/src/release clean'.

r258307:
  Add a script and configuration files to fetch pre-built packages
  from pkg.FreeBSD.org for inclusion on release medium (dvd1.iso).

r258308:
  Unconditionally copy the build host /etc/resolv.conf into
  the chroot directory, since hostname resolution may be
  needed in the case of building a dvd image (with packages)
  and also setting 'NOPORTS=1'.

r258309:
  Set the PKG_CACHEDIR directory to 'dvd/' instead of 'release/'
  in preparation of adding a 'dvd1.iso' target.

r258310:
  Add the 'dvd1.iso' target.  This mimics the 'release.iso' target,
  with the additional step of fetching packages for inclusion on the
  dvd image.

  The 'pkg-stage' target is used to run 'scripts/pkg-stage.sh' if
  the '${TARGET}/pkg-stage.conf' configuration file exists (currently
  only amd64 and i386).

  Allow dvd1.iso to be skipped if NODVD=1.

r258314:
  Fix how ABI is evaluated so it matches more than a dot-zero
  case.

r258317:
  Document the 'dvdrom' target.

r258319:
  Remove WITHOUT_PROFILE=1 for the dvd1.iso medium.

r258320:
  Simplify PKG_ABI for pkg-stage.sh.

Approved by: re (hrs)
Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r258283 - move iconv* symbols out of libc.so.7 namespace with
peter [Wed, 20 Nov 2013 20:24:59 +0000 (20:24 +0000)]
MFC r258283 - move iconv* symbols out of libc.so.7 namespace with
compatibility symbols to aid transition for existing 10.x installs.

Approved by: re (kib)

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

10 years agoMFC r258254 - teach iconv about a WCHAR_T pseudo-type
peter [Wed, 20 Nov 2013 18:58:07 +0000 (18:58 +0000)]
MFC r258254 - teach iconv about a WCHAR_T pseudo-type

Approved by: re (kib)

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

10 years agoMFC r256557: add uname flags to access userland's __FreeBSD_version more
peter [Wed, 20 Nov 2013 17:46:23 +0000 (17:46 +0000)]
MFC r256557: add uname flags to access userland's __FreeBSD_version more
conveniently than the traditional way of scripts parsing #include files.

Approved by: re (hrs)

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

10 years agoMFC: 257695
oleg [Tue, 19 Nov 2013 14:24:25 +0000 (14:24 +0000)]
MFC: 257695

- Fix link loss on vlan reconfiguration.
- Fix issues with 'vlanhwfilter'.

Approved by: re (glebius)

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

10 years agoMFH (r257954): upgrade to OpenSSH 6.4p1
des [Tue, 19 Nov 2013 11:47:30 +0000 (11:47 +0000)]
MFH (r257954): upgrade to OpenSSH 6.4p1

Approved by: re (kib)

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

10 years agoMFC r257874:
pluknet [Tue, 19 Nov 2013 10:39:48 +0000 (10:39 +0000)]
MFC r257874:

Fix extattr(2) MLINKS.

Approved by: re (kib)

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

10 years agoPre-zero the MAC context.
des [Tue, 19 Nov 2013 09:35:20 +0000 (09:35 +0000)]
Pre-zero the MAC context.

Security: CVE-2013-4548
Security: FreeBSD-SA-13:14.openssh
Approved by: re (implicit)

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

10 years agoMFC r258148,r258149,r258150,r258152,r258153,r258154,r258181,r258182:
pjd [Mon, 18 Nov 2013 22:37:01 +0000 (22:37 +0000)]
MFC r258148,r258149,r258150,r258152,r258153,r258154,r258181,r258182:

r258148:

Add a note that this file is compiled as part of the kernel and libc.

Requested by: kib

r258149:

Change cap_rights_merge(3) and cap_rights_remove(3) to return pointer
to the destination cap_rights_t structure.

This already matches manual page.

r258150:

Sync return value with actual implementation.

r258151:

Style.

r258152:

Precisely document capability rights here too (they are already documented
in rights(4)).

r258153:

The CAP_LINKAT, CAP_MKDIRAT, CAP_MKFIFOAT, CAP_MKNODAT, CAP_RENAMEAT,
CAP_SYMLINKAT and CAP_UNLINKAT capability rights make no sense without
the CAP_LOOKUP right, so include this rights.

r258154:

- Move CAP_EXTATTR_* and CAP_ACL_* rights to index 1 to have more room
  in index 0 for the future.
- Move CAP_BINDAT and CAP_CONNECTAT rights to index 0 so we can include
  CAP_LOOKUP right in them.
- Shuffle the bits around so there are no gaps. This is last chance to do
  that as all moved rights are not used yet.

r258181:

Replace CAP_POLL_EVENT and CAP_POST_EVENT capability rights (which I had
a very hard time to fully understand) with much more intuitive rights:

CAP_EVENT - when set on descriptor, the descriptor can be monitored
with syscalls like select(2), poll(2), kevent(2).

CAP_KQUEUE_EVENT - When set on a kqueue descriptor, the kevent(2)
syscall can be called on this kqueue to with the eventlist
argument set to non-NULL value; in other words the given
kqueue descriptor can be used to monitor other descriptors.
CAP_KQUEUE_CHANGE - When set on a kqueue descriptor, the kevent(2)
syscall can be called on this kqueue to with the changelist
argument set to non-NULL value; in other words it allows to
modify events monitored with the given kqueue descriptor.

Add alias CAP_KQUEUE, which allows for both CAP_KQUEUE_EVENT and
CAP_KQUEUE_CHANGE.

Add backward compatibility define CAP_POLL_EVENT which is equal to CAP_EVENT.

r258182:

Correct right names.

Sponsored by: The FreeBSD Foundation
Approved by: re (kib)

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

10 years agoMFC r258016:
dim [Mon, 18 Nov 2013 15:13:58 +0000 (15:13 +0000)]
MFC r258016:

Disable building the ctl module for the i386 XEN kernel configuration
for now, since it causes gcc warnings about casting 64 bit bus_addr_t's
to 32 bit pointers, and vice versa.

Reviewed by: ken
Approved by: re (gjb)

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

10 years agoMFC 257636:
hrs [Mon, 18 Nov 2013 04:42:58 +0000 (04:42 +0000)]
MFC 257636:

Fix EUC ESDB and JIS CS-mapper.

Approved by: re (delphij)

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

10 years agoMFC: 258276
alfred [Sun, 17 Nov 2013 22:24:34 +0000 (22:24 +0000)]
MFC:  258276

Fix creating a vlan over lagg over mlxen crash.

PR:             181931
Submitted by:   Shahar Klein (shahark mellanox.com)

Approved by: re

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

10 years agoMFC r258101:
gjb [Sun, 17 Nov 2013 15:58:13 +0000 (15:58 +0000)]
MFC r258101:
  Since the doc/ toolchain conversion to docbook 5.0, JADETEX
  is no longer a valid option, so remove 'WITHOUT_JADETEX=yes'
  from PBUILD_FLAGS.

  While here, also remove 'WITHOUT_X11=yes', since it will
  cause a dependency conflict by requiring both print/ghostscript9
  and print/ghostscript9-nox11.

  Switch to OPTIONSNG format (WITHOUT_* -> OPTIONS_UNSET='FOO'),
  and unset the FOP option, which requires Java (although it is
  disabled by default).  Also unset the 'IGOR' option, since
  textproc/igor is a validation tool, not necessarily a dependency
  of the doc/ build itself.

  While here, reduce the line length of PBUILD_FLAGS.

Approved by: re (kib)

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC: 257542
alfred [Sun, 17 Nov 2013 01:07:46 +0000 (01:07 +0000)]
MFC: 257542

Fix API mismatch exposed by lagg.

When destroying a lagg the driver tries to restore the old mac and
fails due to API mismatch.

Submitted by:   Shahar Klein (shahark at mellanox.com)
Approved by:     re

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

10 years agoMFC r257999 (peter):
gjb [Sat, 16 Nov 2013 19:22:13 +0000 (19:22 +0000)]
MFC r257999 (peter):
 Merge nvi-2.1.1 -> 2.1.2

Approved by: re (???)

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r257583, r258012, r258013:
gjb [Sat, 16 Nov 2013 18:40:44 +0000 (18:40 +0000)]
MFC r257583, r258012, r258013:

 r257583 (peter):
 Remove the WITH_LIBICONV_COMPAT hack that seems to do more harm
 than good.  This caused libc to spoof the ports libiconv namespace
 and provide a colliding libiconv.so.3 to fool rtld.  This should
 have been removed some time ago.

 r258012:
 Remove WITH_LIBICONV_COMPAT file to chase after r257583.

 r258013:
 Regenerate src.conf.5 after removal of WITH_LIBICONV_COMPAT.

Approved by: re (kib)
Sponsored by: The FreeBSD Foundation

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r257757:
jmg [Sat, 16 Nov 2013 09:01:24 +0000 (09:01 +0000)]
MFC r257757:
fix issues w/ AES-NI on unaligned data blocks...

Approved by: re (kib)

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

10 years agoMerge r258187 from head.
edavis [Sat, 16 Nov 2013 00:31:32 +0000 (00:31 +0000)]
Merge r258187 from head.

Approved by: re@ (delphij)
Approved by: davidch (mentor)

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

10 years agoMFC r257856:
kib [Fri, 15 Nov 2013 07:10:42 +0000 (07:10 +0000)]
MFC r257856:
Add bits for the AMD features from CPUID function 0x80000001 ECX,
described in the rev. 3.0 of the Kabini BKDG, document 48751.pdf.

Approved by: re (gjb)

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

10 years agoMFC r257858:
kib [Fri, 15 Nov 2013 07:09:24 +0000 (07:09 +0000)]
MFC r257858:
Fix signal delivery for the iBCS2 binaries.

Approved by: re (gjb)

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

10 years agoMFC r257917:
trasz [Thu, 14 Nov 2013 13:33:22 +0000 (13:33 +0000)]
MFC r257917:

Fix typo in "iscsictl -v".

Approved by: re (gjb)
Sponsored by: The FreeBSD Foundation

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

10 years agoFix typo.
trasz [Thu, 14 Nov 2013 12:14:27 +0000 (12:14 +0000)]
Fix typo.

Approved by: re (gjb)
Sponsored by: The FreeBSD Foundation

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

10 years agoMerge r257996,r258001,r258069 from head: fixes for HyperV guest.
pluknet [Thu, 14 Nov 2013 09:33:54 +0000 (09:33 +0000)]
Merge r257996,r258001,r258069 from head: fixes for HyperV guest.

- Set description string for VM_GUEST_HV (HyperV guest).
- Add a brief comment about VM_GUEST and vm_guest_sysctl_names relationship.
- CTASSERT that vm_guest range is covered by vm_guest_sysctl_names.

Approved by: re (glebius)

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

10 years agoMerge r257945 from head:
glebius [Thu, 14 Nov 2013 09:26:52 +0000 (09:26 +0000)]
Merge r257945 from head:

  Do not use just freed memory.

Approved by: re (kib)

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

10 years agoMerge r257888, r258049 from head:
glebius [Thu, 14 Nov 2013 09:25:29 +0000 (09:25 +0000)]
Merge r257888, r258049 from head:

  - Use system libiconv, instead of trying to dlopen() it.
  - Just disable recoding support in libsmb if built WITHOUT_ICONV.

PR: 183153
Approved by: re (kib)

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

10 years agoMerge r257841 from head:
glebius [Thu, 14 Nov 2013 09:19:50 +0000 (09:19 +0000)]
Merge r257841 from head:

  Catch up with sb_timeo type change in r255138. This fixes
  smbfs operation.

PR: kern/182963
Approved by: re (kib)

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

10 years agoMerge r257694 from head:
glebius [Thu, 14 Nov 2013 09:14:33 +0000 (09:14 +0000)]
Merge r257694 from head:

  Remove remnants of BIND from /etc, since there is no BIND in base now.

  Sorry, that would break users running head and BIND from ports, since
  ports rely on these scripts. The ports will be fixed soon.

Approved by: re (kib)

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

10 years agoMerge r257421 from head:
glebius [Thu, 14 Nov 2013 09:11:54 +0000 (09:11 +0000)]
Merge r257421 from head:

  Provide a crutch that prevents watchdog to interrupt dumping
  on a box with IPMI enabled.

Approved by: re (kib)

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

10 years agoMFC r257870:
dumbbell [Tue, 12 Nov 2013 20:00:51 +0000 (20:00 +0000)]
MFC r257870:

drm/radeon: Wake up userland after page flip

For instance, this caused issues in KDE, such as stuttered animations
(with desktop effects enabled).

Approved by: re (kib)

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

10 years agoMFC r257869:
dumbbell [Tue, 12 Nov 2013 19:10:28 +0000 (19:10 +0000)]
MFC r257869:

drm: Initialize "handle" to 0 before calling drm_gem_handle_create()

This is variable is being checked in drm_gem_name_create() before being
set.

Approved by: re (delphij)

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

10 years agoMFC r257680:
kib [Tue, 12 Nov 2013 08:01:58 +0000 (08:01 +0000)]
MFC r257680:
Do not coalesce if the swap object belongs to tmpfs vnode.

Approved by: re (glebius)

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