SVNews

NOTE: This service is experimental and subject to change! Use at your own risk!

Year:   Month: - or - Filter committers: - or -
Filter paths:
Include diffs if smaller than lines.

2014 - 09 - 30   (today)
21:28:05 - r272333
( 25 minutes ago)
by ian
Affects:  /head/sys/arm/arm/physmem.c
When building the lists of available memory, actually honor the exclusion
flags, like the comment says it does.

Pointy hat:     ian
Submitted by:   Svatopluk Kraus <onwahe@gmail.com>
21:03:17 - r272332
( 50 minutes ago)
by delphij
Affects: 
(3 files)
/stable/10/sys/cddl/boot/zfs/zfsimpl.h
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/dnode.h
MFC r271526: MFV r271510:

Enforce 4K as smallest indirect block size (previously the smallest
indirect block size was 1K but that was never used).

This makes some space estimates more accurate and uses less memory
for some data structures.

Illumos issue:
    5141 zfs minimum indirect block size is 4K

Approved by:    re (gjb)
20:57:25 - r272331
( 56 minutes ago)
by gnn
Affects:  /head/sys/dev/sfxge/sfxge_tx.c
/head/sys/dev/sfxge/sfxge_tx.h
Support tunable to control Tx deferred packet list limits

Also increase default for Tx queue get-list limit.
Too small limit results in TCP packets drops especiall when many
streams are running simultaneously.
Put list may be kept small enough since it is just a temporary
location if transmit function can't get Tx queue lock.

Submitted by:   Andrew Rybchenko <arybchenko at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
20:43:21 - r272330
(1 hour 10 minutes ago)
by gnn
Affects:  /head/sys/dev/sfxge/sfxge.h
/head/sys/dev/sfxge/sfxge_tx.c
/head/sys/dev/sfxge/sfxge_tx.h
The patch allows to check state of the software Tx queues at run time.

Submitted by:   Andrew Rybchenko <arybchenko at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
20:38:36 - r272329
(1 hour 14 minutes ago)
by gnn
Affects:  /head/share/man/man4/sfxge.4
Update SolarFlare driver manual page with new tunables.

Submitted by:   Andrew Rybchenko <arybchenko at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
20:36:07 - r272328
(1 hour 17 minutes ago)
by gnn
Affects: 
(7 files)
/head/sys/dev/sfxge/*
Make size of Tx and Rx rings configurable

Required size of event queue is calculated now.

Submitted by:   Andrew Rybchenko <arybchenko at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
20:32:27 - r272327
(1 hour 20 minutes ago)
by brooks
Affects: 
(3 files)
/stable/10/share/man/man4/Makefile
/stable/10/share/man/man4/altera_atse.4
MFC the altera_atse.4.

This was intended to have been merged along with r256752.  This commit
contains the altera_atse.4 portions of r256752, r257656, and r270268.

Approved by:    re (gjb)
Sponsored by:   DARPA/AFRL
20:29:58 - r272326
(1 hour 23 minutes ago)
by tuexen
Affects:  /head/sys/netinet/udp_usrreq.c
UDPLite requires a checksum. Therefore, discard a received packet if
the checksum is 0.

MFC after: 3 days
20:18:10 - r272325
(1 hour 35 minutes ago)
by gnn
Affects: 
(11 files)
/head/sys/dev/sfxge/*
cleanup: code style fixes

Remove trailing whitespaces and tabs.
Enclose value in return statements in parentheses.
Use tabs after #define.
Do not skip comparison with 0/NULL in boolean expressions.

Submitted by:   Andrew Rybchenko <arybchenko at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
18:50:45 - r272324
(3 hours 2 minutes ago)
by delphij
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c
Fix a mismerge in r260183 which prevents snapshot zvol devices being
removed and re-instate the fix in r242862.

Reported by:    Leon Dang <ldang nahannisys com>, smh
MFC after:      3 days
18:17:28 - r272323
(3 hours 35 minutes ago)
by tuexen
Affects:  /head/sys/netinet/udp_usrreq.c
/head/sys/netinet6/udp6_usrreq.c
If the checksum coverage field in the UDPLITE header is the length
of the complete UDPLITE packet, the packet has full checksum coverage.
SO fix the condition.

Reviewed by: kevlo
MFC after: 3 days
17:54:57 - r272322
(3 hours 58 minutes ago)
by delphij
Affects: 
(25 files)
/stable/10/*
MFC r271493,271688-271689,271696,271854,272139-272143:

Import HyperV Key-Value Pair (KVP) driver and daemon code by Microsoft,
many thanks for their continued support of FreeBSD.

While I'm there, also implement a new build knob, WITHOUT_HYPERV to
disable building and installing of the HyperV utilities when necessary.

The HyperV utilities are only built for i386 and amd64 targets.

Approved by:    re (gjb)
17:41:16 - r272321
(4 hours 12 minutes ago)
by royger
Affects:  /head/sys/dev/xen/blkback/blkback.c
xen: fix blkback pushing responses before releasing internal resources

Fix a problem where the blockback driver could run out of requests,
despite the fact that we allocate enough request and reqlist
structures to satisfy the maximum possible number of requests.

The problem was that we were sending responses back to the other
end (blockfront) before freeing resources. The Citrix Windows
driver is pretty agressive about queueing, and would queue more I/O
to us immediately after we sent responses to it. We would run into
a resource shortage and stall out I/O until we freed resources.

It isn't clear whether the request shortage condition was an
indirect cause of the I/O hangs we've been seeing between Windows
with the Citrix PV drivers and FreeBSD's blockback, but the above
problem is certainly a bug.

Sponsored by: Spectra Logic
Submitted by: ken
Reviewed by: royger

dev/xen/blkback/blkback.c:
 - Break xbb_send_response() into two sub-functions,
   xbb_queue_response() and xbb_push_responses().
   Remove xbb_send_response(), because it is no longer
   used.

 - Adjust xbb_complete_reqlist() so that it calls the
   two new functions, and holds the mutex around both
   calls.  The mutex insures that another context
   can't come along and push responses before we've
   freed our resources.

 - Change xbb_release_reqlist() so that it requires
   the mutex to be held instead of acquiring the mutex
   itself.  Both callers could easily hold the mutex
   while calling it, and one really needs to hold the
   mutex during the call.

 - Add two new counters, accessible via sysctl
   variables.  The first one counts the number of
   I/Os that are queued and waiting to be pushed
   (reqs_queued_for_completion).  The second one
   (reqs_completed_with_error) counts the number of
   requests we've completed with an error status.
17:38:21 - r272320
(4 hours 15 minutes ago)
by royger
Affects:  /head/sys/dev/xen/balloon/balloon.c
xen/balloon: fix accounting of current memory pages on PVH

Using realmem on PVH is not realiable, since in this case the realmem value
is computed from Maxmem, which contains the higher memory address found. Use
HYPERVISOR_start_info->nr_pages instead, which is set by the hypervisor and
contains the exact number of memory pages assigned to the domain.

Sponsored by: Citrix Systems R&D
17:37:26 - r272319
(4 hours 16 minutes ago)
by royger
Affects:  /head/sys/conf/files
/head/sys/dev/xen/xenstore/xenstored_dev.c
xen: add xenstored user-space device

This device is used by the user-space daemon that runs xenstore
(xenstored). It allows xenstored to map the xenstore memory page, and
reports the event channel xenstore is using.

Sponsored by: Citrix Systems R&D

dev/xen/xenstore/xenstored_dev.c:
 - Add the xenstored character device that's used to map the xenstore
   memory into user-space, and to report the event channel used by
   xenstore.

conf/files:
 - Add the device to the build process.
17:31:04 - r272318
(4 hours 22 minutes ago)
by royger
Affects:  /head/sys/dev/xen/xenstore/xenstore.c
/head/sys/dev/xen/xenstore/xenstore_dev.c
/head/sys/xen/xenstore/xenstore_internal.h
xen: convert the xenstore user-space char device to a newbus device

Convert the xenstore user-space device (/dev/xen/xenstore) to a device
using the newbus interface. This allows us to make the device
initialization dependant on the initialization of xenstore itself in
the kernel.

Sponsored by: Citrix Systems R&D

dev/xen/xenstore/xenstore.c:
 - Convert to a newbus device, this removes the xs_dev_init function.

xen/xenstore/xenstore_internal.h:
 - Remove xs_dev_init prototype.

dev/xen/xenstore/xenstore.c:
 - Don't call xs_dev_init anymore, the device will attach itself when
   xenstore is started.
17:27:56 - r272317
(4 hours 25 minutes ago)
by royger
Affects:  /head/sys/dev/xen/xenstore/xenstore.c
xen: defer xenstore initialization until xenstored is started

The xenstore related devices in the kernel cannot be started until
xenstored is running, which will happen later in the Dom0 case. If
start_info_t doesn't contain a valid xenstore event channel, defer all
xenstore related devices attachment to later.

Sponsored by: Citrix Systems R&D

dev/xen/xenstore/xenstore.c:
 - Prevent xenstore from trying to attach it's descendant devices if
   xenstore is not initialized.
 - Add a callback in the xenstore interrupt filter that will trigger
   the plug of xenstore descendant devices on the first received
   interrupt. This interrupt is generated when xenstored attaches to
   the event channel, and serves as a notification that xenstored is
   running.
17:26:34 - r272316
(4 hours 26 minutes ago)
by jhb
Affects:  /head/sys/netinet/in_mcast.c
Only define the full inm_print() if KTR_IGMPV3 is enabled at compile time.
17:19:07 - r272315
(4 hours 34 minutes ago)
by jhb
Affects:  /head/tools/sched/schedgraph.py
Explicitly return None for negative event indices.  Prior to this,
eventat(-1) would return the next-to-last event causing the back button
to cycle back to the end of an event source instead of stopping at the
start.
17:14:11 - r272314
(4 hours 39 minutes ago)
by royger
Affects: 
(6 files)
/head/sys/conf/files
/head/sys/dev/xen/xenstore/*
/head/sys/xen/xenstore/*
xen: move xenstore devices

Move xenstore related devices (xenstore.c and xenstore_dev.c) from
xen/xenstore to dev/xen/xenstore. This is just code motion, no
functional changes.

Sponsored by: Citrix Systems R&D
16:55:19 - r272313
(4 hours 58 minutes ago)
by bz
Affects: 
(12 files)
/stable/10/sys/amd64/conf/*
/stable/10/sys/conf/*
/stable/10/sys/dev/ixl/*
MFC 271745,271834,271899,271900,271913,272022,272023:

  Revert changes to shared code of the ixl and ixlv drivers to allow
  for easier long-term maintainability.

  Restrict the drivers to building on amd64 for now as it is
  only tested on that 64bit architecture.

  Just depend on PCI and neither INET nor INET6; also make sure we
  can build individual drivers and they do not depend on each other
  anymore.

  Reviewed by:  gnn, eric.joyner intel.com
PR:             193824
Approved by:    re (gjb)
16:53:08 - r272312
(5 hours ago)
by royger
Affects:  /head/sys/dev/xen/balloon/balloon.c
xen: make xen balloon a driver that depends on xenstore

This is done so we can prevent the Xen Balloon driver from attaching
before xenstore is setup.

Sponsored by: Citrix Systems R&D

dev/xen/balloon/balloon.c:
 - Make xen balloon a driver that depends on xenstore.
16:49:17 - r272311
(5 hours 4 minutes ago)
by royger
Affects:  /head/sys/x86/xen/xen_pci.c
xen: add the Xen implementation of pci_child_added method

Add the Xen specific implementation of pci_child_added to the Xen PCI
bus. This is needed so FreeBSD can register the devices it finds with
the hypervisor.

Sponsored by: Citrix Systems R&D

x86/xen/xen_pci.c:
 - Add the Xen pci_child_added method.
16:46:45 - r272310
(5 hours 6 minutes ago)
by royger
Affects: 
(15 files)
/head/sys/*
msi: add Xen MSI implementation

This patch adds support for MSI interrupts when running on Xen. Apart
from adding the Xen related code needed in order to register MSI
interrupts this patch also makes the msi_init function a hook in
init_ops, so different MSI implementations can have different
initialization functions.

Sponsored by: Citrix Systems R&D

xen/interface/physdev.h:
 - Add the MAP_PIRQ_TYPE_MULTI_MSI to map multi-vector MSI to the Xen
   public interface.

x86/include/init.h:
 - Add a hook for setting custom msi_init methods.

amd64/amd64/machdep.c:
i386/i386/machdep.c:
 - Set the default msi_init hook to point to the native MSI
   initialization method.

x86/xen/pv.c:
 - Set the Xen MSI init hook when running as a Xen guest.

x86/x86/local_apic.c:
 - Call the msi_init hook instead of directly calling msi_init.

xen/xen_intr.h:
x86/xen/xen_intr.c:
 - Introduce support for registering/releasing MSI interrupts with
   Xen.
 - The MSI interrupts will use the same PIC as the IO APIC interrupts.

xen/xen_msi.h:
x86/xen/xen_msi.c:
 - Introduce a Xen MSI implementation.

x86/xen/xen_nexus.c:
 - Overwrite the default MSI hooks in the Xen Nexus to use the Xen MSI
   implementation.

x86/xen/xen_pci.c:
 - Introduce a Xen specific PCI bus that inherits from the ACPI PCI
   bus and overwrites the native MSI methods.
 - This is needed because when running under Xen the MSI messages used
   to configure MSI interrupts on PCI devices are written by Xen
   itself.

dev/acpica/acpi_pci.c:
 - Lower the quality of the ACPI PCI bus so the newly introduced Xen
   PCI bus can take over when needed.

conf/files.i386:
conf/files.amd64:
 - Add the newly created files to the build process.
16:36:50 - r272309
(5 hours 16 minutes ago)
by emaste
Affects: 
(2 files)
/stable/10/release/rc.local
MFC r271549 (nwhitehorn):

    Create /tmp/bsdinstall_etc even if we aren't starting the installer
    so that dhclient can write resolv.conf when used from the live
    environment.

PR:             176078
Approved by:    re
16:17:12 - r272308
(5 hours 36 minutes ago)
by mav
Affects:  /head/sys/dev/iscsi_initiator/isc_cam.c
Fix old iSCSI initiator to work with new CAM locking.

This switches code to using xpt_scan() routine, irrelevant to locking.
Using xpt_action() directly requires knowledge about higher level locks,
that SIM does not need to have.

This code is obsoleted, but that is not a reason to crash.

MFC after:      3 days
16:14:02 - r272307
(5 hours 39 minutes ago)
by rodrigc
Affects: 
(11 files)
/stable/10/contrib/atf/*
MFC r271875, r272046, r272049, r272056
 -> Reference the test case "packs" to fix warnings
 -> Delete mentions to removed manpages
 -> Minor fixes to docs

Approved by: re (gjb)
16:10:49 - r272306
(5 hours 42 minutes ago)
by melifaro
Affects:  /projects/routing
Project to implement fast,modular multipath routing.
15:27:49 - r272305
(6 hours 25 minutes ago)
by rodrigc
Affects:  /head/bin/pkill/tests/pgrep-j_test.sh
/head/bin/pkill/tests/pkill-j_test.sh
Fix pkill unit tests.

- use daemon(8) to write out a pid file for processes,
  and check for for the existence of that file after
  killing processes
- use explict named parameters to jail(8)
15:10:40 - r272304
(6 hours 42 minutes ago)
by emaste
Affects: 
(4 files)
/stable/9/contrib/llvm/patches/patch-r271282-clang-r200797-r200798-r200805-debug-info-crash.diff
/stable/9/contrib/llvm/tools/clang/lib/CodeGen/CGDebugInfo.cpp
MFC Clang debug info crash fix

271282: Merge Clang debug info crash fix rev 200797:

    Debug info: fix a crasher when when emitting debug info for
    not-yet-completed templated types. getTypeSize() needs a complete type.

    rdar://problem/15931354

271283: Add clang patch for r271282

  Note that r271282 contains only the src change from Clang rev 200797.
  This patch file includes two follow-on changes to the test case, which
  do not apply to the copy in the FreeBSD tree.

  Upstream Clang revisions:

  200797:

    Debug info: fix a crasher when when emitting debug info for
    not-yet-completed templated types. getTypeSize() needs a complete type.

    rdar://problem/15931354

  200798:

    Simplify testcase from r200797 some more.

  200805:

    Further simplify r200797 and add an explanatory comment.

PR:             193347
15:07:06 - r272303
(6 hours 46 minutes ago)
by emaste
Affects: 
(2 files)
/stable/9/contrib/llvm/patches/patch-r271432-clang-r205331-debug-info-crash.diff
MFC r271433: Add clang patch corresponding to r271432
15:05:27 - r272302
(6 hours 47 minutes ago)
by emaste
Affects: 
(3 files)
/stable/9/contrib/llvm/tools/clang/lib/CodeGen/CGDebugInfo.cpp
MFC r271432: Merge upstream Clang rev 205331 debuginfo crash fix:

    Debug info: fix a crash when emitting IndirectFieldDecls, which were
    previously not handled at all.
    rdar://problem/16348575
13:56:32 - r272301
(7 hours 56 minutes ago)
by emaste
Affects: 
(2 files)
/stable/10/sys/boot/efi/include/eficonsctl.h
MFC r272105: Remove duplicated header content

Approved by:    re (gjb, kib)
13:32:45 - r272300
(8 hours 20 minutes ago)
by andrew
Affects:  /head/sys/arm/include/sysreg.h
Make sure __ARM_ARCH is defined in sysreg.h by including acle-compat.h
13:15:19 - r272299
(8 hours 38 minutes ago)
by ae
Affects:  /head/sys/netinet6/ip6_forward.c
Remove redundant call to ipsec_getpolicybyaddr().
ipsec_hdrsiz() will call it internally.

Sponsored by:   Yandex LLC
12:00:50 - r272298
(9 hours 52 minutes ago)
by pjd
Affects:  /head/sys/geom/geom_dev.c
Be prepared that set_dumper() might fail even when resetting it or prefix
the call with (void) to document that we intentionally ignore the return
value - no way to handle an error in case of device disappearing.
11:51:32 - r272297
(10 hours 1 minute ago)
by pjd
Affects:  /head/sys/geom/geom_dev.c
Style fixes.
07:28:31 - r272296
(14 hours 24 minutes ago)
by kevlo
Affects:  /head/sys/netinet6/udp6_usrreq.c
When plen != ulen, it should only be checked when this is UDP.

Spotted by:     bryanv
05:50:34 - r272295
(16 hours 2 minutes ago)
by adrian
Affects:  /head/sys/dev/ath/if_ath_pci_devlist.h
Add a missing file from the last commit.

Noticed by: jhibbits
05:36:16 - r272294
(16 hours 17 minutes ago)
by gavin
Affects:  /head/share/man/man4/ipheth.4
Make clear in the ipheth(4) hardware notes that this driver is for the
tethering functionality only.  Add a "bugs" section to give a pointer
to usbconfig set_config if the device isn't automatically detected.

MFC after:      3 days
03:29:46 - r272293
(18 hours 23 minutes ago)
by adrian
Affects:  /head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_freebsd.c
Remove this stuff - it's no longer needed here.
03:19:29 - r272292
(18 hours 33 minutes ago)
by adrian
Affects: 
(23 files)
/head/sys/contrib/dev/ath/ath_hal/ar9300/*
/head/sys/dev/ath/*
Add initial support for the AR9485 CUS198 / CUS230 variants.

These variants have a few differences from the default AR9485 NIC,
namely:

* a non-default antenna switch config;
* slightly different RX gain table setup;
* an external XLNA hooked up to a GPIO pin;
* (and not yet done) RSSI threshold differences when
  doing slow diversity.

To make this possible:

* Add the PCI device list from Linux ath9k, complete with vendor and
  sub-vendor IDs for various things to be enabled;
* .. and until FreeBSD learns about a PCI device list like this,
  write a search function inspired by the USB device enumeration code;
* add HAL_OPS_CONFIG to the HAL attach methods; the HAL can use this
  to initialise its local driver parameters upon attach;
* copy these parameters over in the AR9300 HAL;
* don't default to override the antenna switch - only do it for
  the chips that require it;
* I brought over ar9300_attenuation_apply() from ath9k which is cleaner
  and easier to read for this particular NIC.

This is a work in progress.  I'm worried that there's some post-AR9380
NIC out there which doesn't work without the antenna override set as
I currently haven't implemented bluetooth coexistence for the AR9380
and later HAL.  But I'd rather have this code in the tree and fix it
up before 11.0-RELEASE happens versus having a set of newer NICs
in laptops be effectively RX deaf.

Tested:

* AR9380 (STA)
* AR9485 CUS198 (STA)

Obtained from:  Qualcomm Atheros, Linux ath9k
00:06:53 - r272291
(21 hours 46 minutes ago)
by bdrewery
Affects:  /head/lib/libc/sys/connect.2
Document [EPERM] for UNIX sockets.

MFC after:      2 weeks
2014 - 09 - 29   (yesterday)
23:59:19 - r272290
(21 hours 54 minutes ago)
by mjg
Affects:  /head/sys/kern/kern_exec.c
Use bzero instead of explicitly zeroing stuff in do_execve.

While strictly speaking this is not correct since some fields are pointers,
it makes no difference on all supported archs and we already rely on it doing
the right thing in other places.

No functional changes.
21:54:46 - r272289
(23 hours 58 minutes ago)
by delphij
Affects:  /head/usr.bin/at/at.c
Sigh, remove a line that needs to be removed along with previous commit.

Submitted by:   mjg
MFC after:      3 days
X-MFC-with:     272288
21:45:57 - r272288
(1 day ago)
by delphij
Affects:  /head/usr.bin/at/at.c
When setting environment variables in the atrun script, use the
"export foo=bar" form instead of "foo=bar; export foo" since the
former allows the shell to catch variable names that are not valid
shell identifiers.  This will cause /bin/sh to exit with an error
(which gets mailed to the at user) and it will not run the script.

Obtained from:  OpenBSD (r1.63 millert)
MFC after:      3 days
19:54:17 - r272287
(1 day 1 hour ago)
by jkim
Affects:  /vendor-sys/acpica/20140926
Tag ACPICA 20140926.
19:53:38 - r272286
(1 day 1 hour ago)
by jkim
Affects: 
(63 files)
/vendor-sys/acpica/dist/changes.txt
/vendor-sys/acpica/dist/generate/unix/*
/vendor-sys/acpica/dist/source/*
Import ACPICA 20140926.
17:51:39 - r272285
(1 day 4 hours ago)
by rstone
Affects:  /head/sys/dev/ixl/i40e_osdep.h
/head/sys/dev/ixl/if_ixl.c
/head/sys/dev/ixl/if_ixlv.c
Ensure that ixl_flush() uses a defined register on VFs

In some code that is shared between the ixl(4) and ixlv(4) drivers,
a macro hard-coded a register offset that was not valid on ixlv devices.
Fix this by having each driver define a variable that contains the correct
offset.

Reviewed by:    Eric Joyner <ricera10 AT gmail.com>
MFC after:      3 days
Sponsored by:   Sandvine Inc
17:38:50 - r272284
(1 day 4 hours ago)
by rstone
Affects:  /head/usr.bin/systat/ifstat.c
Fix integer truncation in affecting systat -ifstat

The "systat -ifstat" command was using a u_int to store byte counters.
With a 10Gbps or faster interface, this overflows within the default
5 second refresh period.  Switch to using a uint64_t across the board,
which matches the size used for all counters as of r263102.

PR:             182448
MFC after:      1 week
Sponsored by:   Sandvine Inc
16:24:48 - r272283
(1 day 5 hours ago)
by marcel
Affects:  /user/marcel/mkimg/image.c
o   In image_set_size(), don't truncate the swap file. It isn't holding
    the entire image data anymore.
o   Prepare for changes to image_write(): partitioning schemes call
    image_write() to fill in the sectors they reserved from themselves.
    Since we're talking about a handful of sectors, there's no need to
    have them in the swap file. Change struct chunk to accomodate for
    that. A chunk now has a type. That type can be "zeroes", "file" or
    "memory".
o   Flesh out the cleanup function: iterate over the chunks and close
    or free the corresponding data container. Free the chunk as well.
15:05:23 - r272282
(1 day 6 hours ago)
by will
Affects:  /head/share/mk/bsd.port.mk
/head/share/mk/bsd.port.subdir.mk
Search for the nearest PORTSDIR where Mk/bsd.ports.mk exists, from .CURDIR.
This will only take effect if PORTSDIR is not set, as previously supported.

Use .if exists(), for four specific possibilities relative to .CURDIR:
., .., ../.., and ../../..  The fourth possibility is primarily in case
ports ever grows a third level.  If none of these paths exist, fall back to
the old default of /usr/ports.

This removes the need to set PORTSDIR explicitly (or via wrapper script) if
one is running out of a ports tree that is not in /usr/ports, but in a
home directory.

Reviewed by:    bapt, bdrewery (older version)
CR:             D799
MFC after:      1 week
Sponsored by:   Spectra Logic
10:36:14 - r272281
(1 day 11 hours ago)
by bz
Affects:  /head/lib/libpam/modules/pam_login_access/pam_login_access.c
Hopefully fix build breakage with gcc passing void * instead of char *
to "%s" format string after r272280.

PR:             83099 193927
MFC after:      3 days
X-MFC with:     r272280
08:57:36 - r272280
(1 day 12 hours ago)
by des
Affects:  /head/lib/libpam/modules/pam_login_access/pam_login_access.c
Instead of failing when neither PAM_TTY nor PAM_RHOST are available, call
login_access() with "**unknown**" as the second argument.  This will allow
"ALL" rules to match.

Reported by:    Tim Daneliuk <tundra@tundraware.com>
Tested by:      dim@
PR:             83099 193927
MFC after:      3 days
01:17:42 - r272279
(1 day 20 hours ago)
by gjb
Affects:  /projects/release-vmimage/release/scripts/mk-vmimage.sh
Comment cleanup in panic() message when mkimg(1) does not support
the requested disk image format.

Sponsored by:   The FreeBSD Foundation
00:35:12 - r272278
(1 day 21 hours ago)
by dteske
Affects:  /head/usr.sbin/bsdinstall/distextract/distextract.c
/head/usr.sbin/bsdinstall/distfetch/distfetch.c
Use snprintf(3) in place of unbounded sprintf(3) (prevent buffer overflow).
Use adequately sized buffer for error(s) (512 -> PATH_MAX + 512).
Fix the following style(9) nits while here:
- distfetch.c uses PATH_MAX while distextract.c uses MAXPATHLEN;
  standardize on one (PATH_MAX)
- Move $FreeBSD$ from comment to __FBSDID()
- Sort included headers (alphabetically, sys/* at top)
- Add missing header includes (e.g., <stdlib.h> for getenv(3),
  calloc(3)/malloc(3)/free(3), and atoi(3); <string.h> for strdup(3),
  strrchr(3), strsep(3), and strcmp(3); <ctype.h> for isspace(3); and
  <unistd.h> for chdir(2), etc.)
- Remove rogue newline at end of distfetch.c
- Don't declare variables in if-, while-, or other statement
NB: To prevent masking of prior declarations atop function
- Perform stack alignment for variable declarations
- Add missing function prototype for count_files() in distextract.c
- Break out single-line multivariable-declarations
NB: Aligning similarly-named variables with one-char difference(s)
NB: Minimizes diffs and makes future diffs more clear
- Use err(3) family of functions (requires s/int err;/int retval;/g)

Reviewed by:    nwhitehorn, julian
2014 - 09 - 28   (2 days ago)
23:22:55 - r272277
(1 day 22 hours ago)
by gjb
Affects:  /projects/release-vmimage/release/scripts/mk-vmimage.sh
Remove the UFS label from the root filesystem since it is added
by mkimg(1) as a gpt label, consistent with the fstab(5) entry.

Sponsored by:   The FreeBSD Foundation
23:22:46 - r272276
(1 day 22 hours ago)
by wblock
Affects: 
(2 files)
/stable/9/etc/motd
MFC r272137:

Revised to better point to release notes and errata, security advisories,
and be more specific about the -questions list.
23:15:18 - r272275
(1 day 22 hours ago)
by wblock
Affects: 
(2 files)
/stable/10/etc/motd
MFC r272137:

Revised to better point to release notes and errata, security
advisories, and be more specific about the -questions list.

Approved by:    re (gjb)
21:44:23 - r272274
(2 days ago)
by allanjude
Affects:  /head/usr.sbin/bsdinstall/scripts/zfsboot
Change the /var dataset in the default ZFS layout to have the
ZFS property canmount=off so that /var/db/pkg and other such directories
are part of the / dataset, and only /var/mail, /var/log, and /var/crash
are excluded from the ZFS boot environment (beadm).

PR:             193971
Approved by:    jmg
MFC after:      ASAP
Relnotes:       yes
Sponsored by:   ScaleEngine Inc.
21:20:20 - r272273
(2 days ago)
by pfg
Affects:  /head/lib/libc/stdtime/strptime.c
Add strptime(3) support for %U and %W (take 2)

Add support for the missing POSIX-2001 %U and %W features: the
existing FreeBSD strptime code recognizes both directives and
validates that the week number lies in the permitted range,
but then simply discards the value.

Initial support for the feature was written by Paul Green.
David Carlier added the initial handling of tm_wday/tm_yday.
Major credit goes to Andrey Chernov for detecting much of the
brokenness, and rewriting/cleaning most of the code, making it
much more robust.

Tested independently with the strptime test from the GNU C
library.

PR:             137307
MFC after:      1 month
Relnotes:       yes
21:15:30 - r272272
(2 days ago)
by gjb
Affects:  /projects/release-vmimage/release/scripts/mk-vmimage.sh
Remove comments left in accidentally while testing, so the
VM /etc/fstab is actually created.

Sponsored by:   The FreeBSD Foundation
21:13:30 - r272271
(2 days ago)
by gjb
Affects:  /projects/release-vmimage/release/scripts/mk-vmimage.sh
Fix UFS label for the root filesystem.

Sponsored by:   The FreeBSD Foundation
21:12:23 - r272270
(2 days ago)
by neel
Affects:  /head/sys/kern/tty.c
tty_rel_free() can be called more than once for the same tty so make sure
that the tty is dequeued from 'tty_list' only the first time.

The panic below was seen when a revoke(2) was issued on an nmdm device.
In this case there was also a thread that was blocked on a read(2) on the
device. The revoke(2) woke up the blocked thread which would typically
return an error to userspace. In this case the reader also held the last
reference on the file descriptor so fdrop() ended up calling tty_rel_free()
via ttydev_close().

tty_rel_free() then tried to dequeue 'tp' again which led to the panic.

panic: Bad link elm 0xfffff80042602400 prev->next != elm
cpuid = 1
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00f9c90460
kdb_backtrace() at kdb_backtrace+0x39/frame 0xfffffe00f9c90510
vpanic() at vpanic+0x189/frame 0xfffffe00f9c90590
panic() at panic+0x43/frame 0xfffffe00f9c905f0
tty_rel_free() at tty_rel_free+0x29b/frame 0xfffffe00f9c90640
ttydev_close() at ttydev_close+0x1f9/frame 0xfffffe00f9c90690
devfs_close() at devfs_close+0x298/frame 0xfffffe00f9c90720
VOP_CLOSE_APV() at VOP_CLOSE_APV+0x13c/frame 0xfffffe00f9c90770
vn_close() at vn_close+0x194/frame 0xfffffe00f9c90810
vn_closefile() at vn_closefile+0x48/frame 0xfffffe00f9c90890
devfs_close_f() at devfs_close_f+0x2c/frame 0xfffffe00f9c908c0
_fdrop() at _fdrop+0x29/frame 0xfffffe00f9c908e0
sys_read() at sys_read+0x63/frame 0xfffffe00f9c90980
amd64_syscall() at amd64_syscall+0x2b3/frame 0xfffffe00f9c90ab0
Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfffffe00f9c90ab0
--- syscall (3, FreeBSD ELF64, sys_read), rip = 0x800b78d8a, rsp =
0x7fffffbfdaf8, rbp = 0x7fffffbfdb30 ---

CR:             https://reviews.freebsd.org/D851
Reviewed by:    glebius, ed
Reported by:    Leon Dang
Sponsored by:   Nahanni Systems
MFC after:      1 week
20:06:02 - r272269
(2 days 1 hour ago)
by gjb
Affects:  /projects/release-vmimage/release/Makefile
/projects/release-vmimage/release/scripts/mk-vmimage.sh
release/Makefile:
  Include .OBJDIR in DESTDIR in the vm-base target.

release/release.sh:
  Provide the full path to mddev.

Sponsored by:   The FreeBSD Foundation
19:55:21 - r272268
(2 days 1 hour ago)
by marcel
Affects:  /user/marcel/mkimg/image.c
When SEEK_HOLE and SEEK_DATA return -1, then the entire file is data.
Set hole and data accordingly and before acting on them.
While here: remove some debugging printfs; we're good so far.
19:17:33 - r272267
(2 days 2 hours ago)
by bryanv
Affects:  /projects/vxlan/sys/net/if_vxlan.c
 - Convert to if_inc_counter()
 - Replace rwlocks with rmlocks
 - Drop packets with any reserved bits set in the header
19:05:22 - r272266
(2 days 2 hours ago)
by melifaro
Affects: 
(5 files)
/head/sys/dev/*
Convert most BPF_TAP users to BPF_MTAP.

MFC after:      2 weeks
18:34:20 - r272265
(2 days 3 hours ago)
by marcel
Affects:  /user/marcel/mkimg/Makefile
/user/marcel/mkimg/image.c
Implement image_copyin_mapped():
1.  If we can't seek, then let image_copyin_stream() deal with it.
2.  Use SEEK_HOLE and SEEK_DATA to iterate over the regions of a
    sparse file.
3.  Round or truncate to the sector size based on whether it's a
    hold or data. We truncate for holes and round for data. This to
    make sure to handle sparse files correctly when the sector size
    is larger than the file system's block/fragment size. Since we
    detect runts of zeroes for mmap'd data (to handle streams), we
    correct ourselves if such is applicable. We never mishandle
    data, which is the most important.

I need to check with a file system that doesn't support sparse files
what SEEK_HOLE and SEEK_DATA return. I'm thinking -1, which is what
I don't handle yet. It's easy to do, because everything should be
treated as data and we'll find the holes the hard way.

While here: set DEBUG_FLAGS unconditionally to make sure I can always
debug a core.
17:53:10 - r272264
(2 days 4 hours ago)
by gjb
Affects:  /projects/release-vmimage/release/Makefile
/projects/release-vmimage/release/release.conf.sample
/projects/release-vmimage/release/release.sh
release/Makefile:
  Connect the virtual machine image build to the release
  target if WITH_VMIMAGES is set to a non-empty value.

release/release.sh:
  Add WITH_VMIMAGES to RELEASE_RMAKEFLAGS.

release/release.conf.sample:
  Add commented entries for tuning the release build if the
  WITH_VMIMAGES make(1) environment variable is set to
  a non-empty value.

Sponsored by:   The FreeBSD Foundation
17:22:45 - r272263
(2 days 4 hours ago)
by tuexen
Affects:  /head/sys/netinet/udp_usrreq.c
Checksum coverage values larger than 65535 for UDPLite are invalid.
Check for this when the user calls setsockopt using UDPLITE_{SEND,RECV}CSCOV.

Reviewed by: kevlo
MFC after: 3 days
17:16:45 - r272262
(2 days 4 hours ago)
by gjb
Affects:  /projects/release-vmimage/release/scripts/mk-vmimage.sh
Remove a 'set -x' that snuck in during testing.

Sponsored by:   The FreeBSD Foundation
17:09:40 - r272261
(2 days 4 hours ago)
by bz
Affects:  /head/sys/net/if_var.h
Move the unconditional #include of net/ifq.h to the very end of file.
This seems to allow us to pass a universe with either clang or gcc
after r272244 (and r272260) and probably makes it easier to untabgle
these chained #includes in the future.
15:38:21 - r272260
(2 days 6 hours ago)
by bz
Affects:  /head/sys/net/ifq.h
Remove duplicate declaraton of the if_inc_counter() function after r272244.
if_var.h has the expected on and if_var.h include ifq.h and thus we get
duplicates.  It seems only one cavium ethernet file actually includes ifq.h
directly which might be another cleanup to be done but need to test first.
14:39:11 - r272259
(2 days 7 hours ago)
by nyan
Affects:  /head/sys/pc98/conf/GENERIC
MFi386: Enable QUOTA, PRINTF_BUFR_SIZE and puc.
14:25:46 - r272258
(2 days 7 hours ago)
by nyan
Affects:  /head/sys/pc98/conf/GENERIC
- Cosmetic changes.
- Reduce diffs against i386.
14:05:18 - r272257
(2 days 7 hours ago)
by glebius
Affects: 
(8 files)
/head/sys/dev/*
/head/sys/kern/kern_poll.c
/head/sys/net/*
- Remove empty wrappers ether_poll_[de]register_drv(). [1]
- Move polling(9) declarations out of ifq.h back to if_var.h
  they are absolutely unrelated to queues.

Submitted by:   Mikhail <mp lenta.ru> [1]
13:34:43 - r272256
(2 days 8 hours ago)
by nyan
Affects:  /head/sys/boot/Makefile.pc98
/head/sys/boot/pc98/loader/Makefile
MFi386: r261567

  Switch from lib/libstand to sys/boot/libstand32.
13:13:18 - r272255
(2 days 8 hours ago)
by nyan
Affects:  /head/sys/boot/pc98/libpc98/Makefile
MFi386: r268974

  Supress clang warning for FreeBSD printf %b and %D formats.
12:55:13 - r272254
(2 days 8 hours ago)
by hselasky
Affects:  /head/sys/dev/sound/usb/uaudio.c
/head/sys/dev/sound/usb/uaudioreg.h
Instead of creating the full range of possible ports, try to figure
out the actual number of so-called "embedded jacks" which are present
when a USB MIDI device is attaching.

MFC after:      3 days
12:41:48 - r272253
(2 days 9 hours ago)
by hselasky
Affects:  /head/etc/devd/usb.conf
Regenerate usb.conf

MFC after:      3 days
12:25:27 - r272252
(2 days 9 hours ago)
by nyan
Affects:  /head/sys/boot/pc98/cdboot/cdboot.S
MFi386: r261520

  Drop the 3rd clause from all 3 clause BSD licenses.
12:18:21 - r272251
(2 days 9 hours ago)
by glebius
Affects: 
(9033 files)
/projects/ifnet/*
Merge head r256150 through r272245.
12:13:51 - r272250
(2 days 9 hours ago)
by nyan
Affects:  /head/sys/boot/pc98/boot2/Makefile
Reduce diffs against i386.
12:12:54 - r272249
(2 days 9 hours ago)
by nyan
Affects:  /head/sys/boot/i386/boot2/Makefile
Remove extra '\'.
11:32:46 - r272248
(2 days 10 hours ago)
by nyan
Affects:  /head/sys/sys/fdcio.h
/head/usr.sbin/fdread/fdutil.c
- Cleanups pc98 code.
- Remove unworked formats.
11:10:37 - r272247
(2 days 10 hours ago)
by mav
Affects:  /head/sys/cam/ctl/ctl.c
Do not transfer unneeded training zero bytes in INQUIRY response.

It is an addition to r269631.
11:08:32 - r272246
(2 days 10 hours ago)
by kib
Affects: 
(4 files)
/stable/10/sys/compat/freebsd32/freebsd32_misc.c
/stable/10/sys/kern/kern_descrip.c
/stable/10/sys/sys/syscallsubr.h
MFC r272132:
Fix fcntl(2) compat32 after r270691.

Approved by:    re (glebius)
08:59:38 - r272245
(2 days 12 hours ago)
by nyan
Affects:  /head/rescue/rescue/Makefile
Remove duplicate prog.
08:57:07 - r272244
(2 days 12 hours ago)
by glebius
Affects: 
(5 files)
/head/sys/net/*
Finally, convert counters in struct ifnet to counter(9).

Sponsored by:   Netflix
Sponsored by:   Nginx, Inc.
08:23:26 - r272243
(2 days 13 hours ago)
by nyan
Affects:  /head/sbin/fdisk_pc98/Makefile
Merged from r183296.

  Add missing library dependencies.
07:43:38 - r272242
(2 days 14 hours ago)
by glebius
Affects:  /head/sys/net/if_lagg.c
Convert to if_inc_counter() last remnantes of bare access to struct ifnet
counters.
07:40:26 - r272241
(2 days 14 hours ago)
by glebius
Affects:  /head/sys/dev/ixgb/if_ixgb.c
Provide ixgb_get_counter().
07:29:45 - r272240
(2 days 14 hours ago)
by glebius
Affects:  /head/sys/dev/ixgbe/ixgbe.c
Convert to if_get_counter().
07:27:58 - r272239
(2 days 14 hours ago)
by adrian
Affects:  /head/sys/mips/atheros/ar724x_pci.c
Fix the AR724x PCIe glue to correctly probe the BAR on AR7240 devices.

There's a bug in the AR7240 PCIe hardware where a correct BAR will end
up having the device disappear.

It turns out that for the device address it should be all 0's.

However, this meant that the PCI probe code would try writing 0xffffffff
in to see how big the window was, read back 0x0, and think the window
was 32 bits.  It then ended up calculating a resource size of 0 bytes,
failed to find anything via an rman call, and this would fail to attach.

I have quite absolutely no idea how in the various planes of existence
this particular bit of code and how it worked with the PCI bus code
ever worked.  But, well, it did.

Tested:

* Atheros AP93 - AR7240 + AR9280 reference board
07:19:32 - r272238
(2 days 14 hours ago)
by glebius
Affects:  /head/sys/dev/ixgbe/ixv.c
Mechanically switch ixv(4) to if_inc_counter().
05:28:11 - r272237
(2 days 16 hours ago)
by adrian
Affects:  /head/sys/mips/atheros/ar724x_pci.c
Fix the ar724x PCI config space register read.

It was doing incorrect things with masks.  This was fixed in the
AR71xx codebase but it wasn't yet fixed in the AR724x code.

This ended up having config space reads return larger/incorrect values
in some situations.

Tested:

* AR7240

TODO:

* test ar7241, AR7242, and AR934x.
01:53:02 - r272236
(2 days 20 hours ago)
by gjb
Affects:  /projects/release-vmimage/release/Makefile
Use VMBASE in place of a hard-coded filename in the CLEANFILES list.

Sponsored by:   The FreeBSD Foundation
01:52:04 - r272235
(2 days 20 hours ago)
by bryanv
Affects: 
(953 files)
/projects/vxlan/*
IFC @ r272233
01:45:20 - r272234
(2 days 20 hours ago)
by gjb
Affects:  /projects/release-vmimage/release/Makefile
/projects/release-vmimage/release/scripts/mk-vmimage.sh
Initial commit to include virtual machine images as part
of the FreeBSD release builds.

This adds a make(1) environment variable requirement,
WITH_VMIMAGES, which triggers the virtual machine image
targets when not defined to an empty value.

Relevant user-driven variables include:

 o VMFORMATS:   The virtual machine image formats to create.
   Valid formats are provided by running 'mkimg --formats'

 o VMSIZE:      The size of the resulting virtual machine
   image.  Typical compression is roughly 140Mb, regardless
   of the target size (10GB, 15GB, 20GB, 40GB sizes have been
   tested with the same result).

 o VMBASE:      The prefix of the virtual machine disk images.
   The VMBASE make(1) environment variable is suffixed with
   each format in VMFORMATS for each individual disk image, as
   well as '.img' for the source UFS filesystem passed to
   mkimg(1).

This also includes a new script, mk-vmimage.sh, based on how
the VM images for 10.0-RELEASE, 9.3-RELEASE, and 10.1-RELEASE
were created (mk-vmimage.sh in ^/user/gjb/thermite/).

With the order in which the stages need to occur, as well as
sanity-checking error cases, it makes much more sense to
execute a shell script called from make(1), using env(1) to
set specific parameters for the target image than it does to
do this in make(1) directly.

Sponsored by:   The FreeBSD Foundation
00:43:04 - r272233
(2 days 21 hours ago)
by marcel
Affects:  /user/marcel/mkimg/image.c
Start performance optimizations:
Output formats typically need to know whether a sequence of blocks has data
or not. They use this to determine whether to allocate disk space for them
or not. The image_data() function provides that functionality, but is
implemented by reading the amount of blocks from the temporary file and
comparing that with zeroes. The QCOW format needs to go over the image 3
times and every time we read from the temporary file.

We can speed this up by building a "chunk" list in memory while we read the
partition data. Each chunk is a sequence of blocks that is either defined
as a gap (i.e. all zeroes) or defined as containing data. For each chunk we
keep track of the file and the offset in that file where the chunk's data
comes from. This allows us handle regular files and in particular sparse
files more optimally.

For sparse files we can trivially build a chunk for each of the holes in
the parse file by using SEEK_HOLE and SEEK_DATA. The data regions still
need to be read to handle zeroe blocks for block sizes smaller that the
underlying file system's block size. However, we don't have to copy the
data into a temporary file anymore.

For anything but regular files, we still use the temporary file. We call it
a swap file now. With that all data can be mapped and unmapped as we need
to access it.

This commit implements the creation of the chunk list and the swap file
usage for non-regular files (i.e. streams). Mappable files are now handled
like streams, so that needs some work.

The big part that is missing is the use of the chunk list for determining
whether a sequence of blocks has data and all the handling of writing the
image data to the output file.

As such: this commit breaks mkimg and makes it useless. It's a good WIP
to safe thogh -- hence doing it on my branch.
00:24:01 - r272232
(2 days 21 hours ago)
by marcel
Affects:  /user/marcel/mkimg/Makefile
Work around broken make infrastructure. Sigh...
00:20:08 - r272231
(2 days 21 hours ago)
by marcel
Affects: 
(20 files)
/user/marcel/mkimg/*
Sync with ^head/usr.bin/mkimg@272217
2014 - 09 - 27   (3 days ago)
23:57:22 - r272230
(2 days 21 hours ago)
by dteske
Affects: 
(17 files)
/stable/10/usr.sbin/bsdconfig/*
MFC revisions 268999, 269027, 269351-269352, 269354, 269460, 270283,
270505, 270954, and 270989:
r268999: Add new bsdconfig example scripts; remove obsolete ones
r269027: Update bsdconfig dot module; fixes and enhancements
r269351: Add setvar() for non-FreeBSD platforms using bash as /bin/sh
r269352: Fix syntax error when run under bash
r269354: Update setvar() function introduced in r269351
r269460: Update f_xdialog_info() in bsdconfig's dialog.subr include
r270283: Add `-A' flag to pkg-install(8) when installing dependencies
r270505: Optimize f_which() to be slightly faster still (common.subr)
r270954: Update f_dialog_init() for safer getopts usage (dialog.subr)
r270989: Fix for previously mentioned r270954

Approved by:    re (gjb)
22:15:50 - r272229
(2 days 23 hours ago)
by neel
Affects: 
(357 files)
/projects/bhyve_svm/*
IFC @r272185
21:13:21 - r272228
(3 days ago)
by gjb
Affects:  /projects/release-vmimage
Copy head@r272227 to projects/release-vmimage.

This project branch will be used to add support for
building virtual machine disk images as part of the
release process.

Sponsored by:   The FreeBSD Foundation
20:54:57 - r272227
(3 days ago)
by glebius
Affects: 
(5 files)
/head/sys/dev/ixl/*
Convert driver to if_get_counter method.

Submitted by:   rstone
Reviewed by:    Eric Joyner <ricera10 gmail.com>
20:43:01 - r272226
(3 days 1 hour ago)
by glebius
Affects:  /head/sys/dev/dwc/if_dwc.c
Mechanically convert to if_inc_counter().
20:39:24 - r272225
(3 days 1 hour ago)
by glebius
Affects: 
(4 files)
/head/sys/ofed/drivers/infiniband/ulp/ipoib/*
Mechanically convert to if_inc_counter().
20:08:34 - r272224
(3 days 1 hour ago)
by mav
Affects:  /head/sys/cam/ctl/ctl.c
Fix page length reported for Block Limits VPD page.
19:14:22 - r272223
(3 days 2 hours ago)
by smh
Affects:  /head/sys/dev/ahci/ahci.c
Use a local STAILQ for unlocked done CCB processing in ahci direct mode

Previously it was possible for issues e.g. use after free, to result
from processing the done queue while not holding the channel lock.

While this should never happen in practice, unexpected code flows
which result in two threads processing from the same queue may
be possible.

We now use a local STAILQ to prevent this ever being an issue.

Sponsored by:   Multiplay
18:35:16 - r272222
(3 days 3 hours ago)
by np
Affects:  /head/sys/dev/cxgb/cxgb_adapter.h
/head/sys/dev/cxgb/cxgb_main.c
/head/sys/dev/cxgb/cxgb_sge.c
cxgb(4): implement if_get_counter.
18:20:45 - r272221
(3 days 3 hours ago)
by smh
Affects: 
(2 files)
/stable/10/sys/vm/vm_pageout.c
MFC r272071:
Fix ticks wrap issue of lowmem test in vm_pageout_scan

Approved by:    re (kib)
Sponsored by:   Multiplay
18:12:05 - r272220
(3 days 3 hours ago)
by hselasky
Affects: 
(5 files)
/stable/8/sys/dev/usb/serial/u3g.c
/stable/8/sys/dev/usb/usbdevs
MFC r271874:
Add new USB IDs.

PR:             193775
18:10:52 - r272219
(3 days 3 hours ago)
by hselasky
Affects: 
(4 files)
/stable/9/sys/dev/usb/serial/u3g.c
/stable/9/sys/dev/usb/usbdevs
MFC r271874:
Add new USB IDs.

PR:             193775
18:08:39 - r272218
(3 days 3 hours ago)
by hselasky
Affects: 
(3 files)
/stable/10/sys/dev/usb/serial/u3g.c
/stable/10/sys/dev/usb/usbdevs
MFC r271874:
Add new USB IDs.

PR:             193775
Approved by:    re, gjb
17:58:03 - r272217
(3 days 3 hours ago)
by marcel
Affects:  /head/usr.bin/mkimg/Makefile
/head/usr.bin/mkimg/mkimg.1
/head/usr.bin/mkimg/mkimg.c
Update the usage message and the man page to account for the new long
options. Bump the version number to 20140927.
While here, use explicit fputc() calls to skip a line in the output.
This to avoid having to hunt for extra '\n' characters in the printf
format strings.

MFC after:      1 week
Relnotes:       yes
17:11:51 - r272216
(3 days 4 hours ago)
by bz
Affects:  /head/sys/mips/conf/TP-MR3020
Disable the makeoption with MFS_IMAGE= set as we don't ship that file
and it thus breaks the default build.   You can still use various other
ways (tools) to embedd the image after the kernel build.
16:50:24 - r272215
(3 days 5 hours ago)
by kan
Affects:  /head/sys/dev/firewire/fwohci.c
Do not pass whole descriptor block size as align to fwdma_malloc_multiseg

Do not pass wrong alignment value to fwdma_malloc_multiseg and ultimately
to contigalloc. In addition to being wrong, this causes insta-panic in
certain cases due to safety assertion - the alignment is required to be
the power of two and the value we calculate here seldom is.

MFC after:  1 month
16:50:21 - r272214
(3 days 5 hours ago)
by kan
Affects: 
(20 files)
/head/sys/boot/i386/libfirewire/fwohcireg.h
/head/sys/dev/firewire/*
Remove obsolete compatibility glue and improve firewire code readability.

Commit my version of style(9) pass over the firewire code. Now that
other people have started changing the code carrying this is as a
local patch is not longer a viable option.

MFC after:      1 month
14:39:00 - r272213
(3 days 7 hours ago)
by kevlo
Affects:  /head/sys/arm/at91/at91sam9g45reg.h
Fix the definitioin of AT91SAM9G45_IRQ_PIOE and rename it to
AT91SAM9G45_IRQ_PIODE.  According to the data sheet, both PIOD and PIOE
use the same IRQ.

While here remove duplicate definitions.
14:24:43 - r272212
(3 days 7 hours ago)
by gjb
Affects:  /user/gjb/thermite/mk-vmimage.sh
Check if mkimg(1) reports back a version which can be used
to determine which disk formats can be created.  If the
version is not empty, use create_vmimage_mkimg() to create
the qcow2 format.

While here, use mkimg(1) instead of qemu-img to create the
raw disk format.

Many thanks to marcel@ for adding VHD and QCOW2 formats.

Sponsored by:   The FreeBSD Foundation
13:57:48 - r272211
(3 days 7 hours ago)
by melifaro
Affects:  /head/sys/net/if_lagg.c
/head/sys/net/if_lagg.h
/head/sys/net/if_var.h
Use underlying ports counters to get lagg statistics instead of
per-packet accounting.
This introduce user-visible changes like aggregating error counters.

Reviewed by:    asomers (prev.version), glebius
CR:             D781
MFC after:      2 weeks
Sponsored by:   Yandex LLC
10:57:34 - r272210
(3 days 10 hours ago)
by sbruno
Affects:  /head/games/factor/factor.c
Update factor for changes to types in primes, which is a dependency.

Fixes build-fail on mips32 introduced at 272207.
09:57:34 - r272209
(3 days 11 hours ago)
by andrew
Affects:  /head/sys/arm/arm/cpufunc_asm_armv7.S
/head/sys/arm/include/sysreg.h
Add machine/sysreg.h to simplify accessing the system control coprocessor
registers and use it in the ARMv7 CPU functions.

The sysreg.h file has been checked by hand, however it may contain errors
with the comments on when a register was first introduced. The ARMv7 cpu
functions have been checked by compiling both the previous and this version
and comparing the md5 of the object files.

Submitted by:   Svatopluk Kraus <onwahe at gmail.com>
Submitted by:   Michal Meloun <meloun at miracle.cz>
Reviewed by:    ian, rpaulo
Differential Revision: https://reviews.freebsd.org/D795
09:39:19 - r272208
(3 days 12 hours ago)
by delphij
Affects:  /head/cddl/lib/libzfs/Makefile
Revert r272189, the committed version was an old version and breaks build.

Pointy hat to:  delphij
09:00:38 - r272207
(3 days 12 hours ago)
by cperciva
Affects:  /head/games/factor/factor.6
/head/games/primes/primes.c
/head/games/primes/primes.h
Switch primes(6) from using unsigned long to using uint64_t.  This fixes
'limited range of type' warnings about comparisons on 32-bit systems, and
allows 32-bit systems to compute the full range of primes.
08:59:43 - r272206
(3 days 12 hours ago)
by sbruno
Affects:  /head/sys/mips/conf/TP-MR3020
/head/sys/mips/conf/TP-MR3020.hints
Add kernel support for the TP-LINK MR3020 Atheros MIPS 24k router.

AR9331 based system.

Phabric:        https://reviews.freebsd.org/D780
Reviewed by:    adrian
08:35:23 - r272205
(3 days 13 hours ago)
by mav
Affects: 
(3 files)
/stable/9/sys/compat/linux/linux_ioctl.c
MFC r272059:
Remake Linux' SOUND_MIXER_INFO IOCTL as a wrapper around new FreeBSD's one.

Submitted by:   Dmitry Luhtionov <dmitryluhtionov@gmail.com>
08:33:50 - r272204
(3 days 13 hours ago)
by mav
Affects: 
(2 files)
/stable/10/sys/compat/linux/linux_ioctl.c
MFC r272059:
Remake Linux' SOUND_MIXER_INFO IOCTL as a wrapper around new FreeBSD's one.

Submitted by:   Dmitry Luhtionov <dmitryluhtionov@gmail.com>

Approved by:    re (kib)
08:14:15 - r272203
(3 days 13 hours ago)
by mav
Affects: 
(5 files)
/stable/10/sys/cam/ctl/*
MFC r272040:
When reporting some major UNIT ATTENTION condition, like POWER ON OCCURRED
or I_T NEXUS LOSS, clear all minor UAs for the LUN, redundant in this case.

All SAM specifications tell that target MAY do it, but libiscsi initiator
seems require it to be done, terminating connection with error if some more
UAs happen to be reported during iSCSI connection.

Approved by:    re (gjb)
07:54:27 - r272202
(3 days 13 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/vm/vm_map.c
MFC r272036:
Avoid calling vm_map_pmap_enter() for the MADV_WILLNEED on the wired
entry, the pages must be already mapped.

Approved by:    re (gjb)
07:04:12 - r272201
(3 days 14 hours ago)
by melifaro
Affects:  /head/sys/netinet/tcp_subr.c
/head/sys/netinet/tcp_syncache.c
/head/sys/netinet/tcp_var.h
* Split tcp_signature_compute() into 2 pieces:
 - tcp_get_sav() - SADB key lookup
 - tcp_signature_do_compute() - actual computation
* Fix TCP signature case for listening socket:
  do not assume EVERY connection coming to socket
  with TCP_SIGNATURE set to be md5 signed regardless
  of SADB key existance for particular address. This
  fixes the case for routing software having _some_
  BGP sessions secured by md5.
* Simplify TCP_SIGNATURE handling in tcp_input()

MFC after:      2 weeks
05:50:31 - r272200
(3 days 16 hours ago)
by np
Affects:  /head/sys/dev/cxgbe/adapter.h
/head/sys/dev/cxgbe/t4_main.c
cxgbe(4): implement if_get_counter.
05:14:02 - r272199
(3 days 16 hours ago)
by adrian
Affects:  /head/sys/netinet/ip_input.c
Remove an un-needed bit of pre-processor work - it all lives inside
#ifdef RSS.
04:53:51 - r272198
(3 days 16 hours ago)
by marcel
Affects:  /head/usr.bin/mkimg/Makefile
/head/usr.bin/mkimg/mkimg.c
Add 3 long options for getting information about mkimg itself:
--version       print the version of mkimg and also whether it's
                64- or 32-bit.
--formats       list the supported output formats separated by space.
--schemes       list the supported partitioning schemes separated by
                space.

Inspired by a patch from: gjb@

MFC after:      1 week
Relnotes:       yes
03:43:49 - r272197
(3 days 18 hours ago)
by neel
Affects:  /head/usr.sbin/bhyvectl/bhyvectl.c
After r271635 mmap(2) requires either MAP_PRIVATE or MAP_SHARED
for non-anonymous mappings.

This gets 'bhyvectl --get-all' working again.

Reported by:    Anish Gupta (akgupt3@gmail.com)
02:15:45 - r272196
(3 days 19 hours ago)
by kevlo
Affects:  /head/sys/arm/at91/at91rm9200.c
Remove a bogus AIC.

Reviewed by:    imp
02:04:58 - r272195
(3 days 19 hours ago)
by neel
Affects: 
(4 files)
/projects/bhyve_svm/sys/amd64/vmm/amd/*
Simplify register state save and restore across a VMRUN:

- Host registers are now stored on the stack instead of a per-cpu host context.

- Host %FS and %GS selectors are not saved and restored across VMRUN.
  - Restoring the %FS/%GS selectors was futile anyways since that only updates
    the low 32 bits of base address in the hidden descriptor state.
  - GS.base is properly updated via the MSR_GSBASE on return from svm_launch().
  - FS.base is not used while inside the kernel so it can be safely ignored.

- Add function prologue/epilogue so svm_launch() can be traced with Dtrace's
  FBT entry/exit probes. They also serve to save/restore the host %rbp across
  VMRUN.

Reviewed by:    grehan
Discussed with: Anish Gupta (akgupt3@gmail.com)
01:50:03 - r272194
(3 days 20 hours ago)
by dteske
Affects: 
(2 files)
/stable/10/usr.sbin/bsdinstall/scripts/auto
MFC revisions 271553, 271567:
r271553: Rename choices in partitioning method dialog (nwhitehorn)
r271567: ZFS support isn't actually experimental anymore (nwhitehorn)

Approved by:    re (gjb)
01:15:24 - r272193
(3 days 20 hours ago)
by grehan
Affects:  /head/sys/amd64/vmm/io/vatpic.c
Allow the PIC's IMR register to be read before ICW initialisation.

As of git submit e179f6914152eca9, the Linux kernel does a simple
probe of the PIC by writing a pattern to the IMR and then reading it
back, prior to the init sequence of ICW words.

The bhyve PIC emulation wasn't allowing the IMR to be read until
the ICW sequence was complete. This limitation isn't required so
relax the test.

With this change, Linux kernels 3.15-rc2 and later won't hang
on boot when calibrating the local APIC.

Reviewed by:    tychon
MFC after:      3 days
2014 - 09 - 26   (4 days ago)
23:01:27 - r272192
(3 days 22 hours ago)
by dteske
Affects: 
(3 files)
/stable/10/usr.sbin/pw/pw_group.c
/stable/10/usr.sbin/pw/pw_user.c
MFC revisions 262864-262865, 263114, 267970:
r262864: Stop pw(8) from segfaulting when given certain input (julian)
r262865: Part 2 of bug 187310 (julian)
r263114: Fix pw(8) edge-case deletion of group "username" on userdel
r267970: Fix infinite-loop during deletion of users from groups

PR:             187310, 169471, 191427
Submitted by:   Voradesh Yenbut, Alexander Pyhalov, Kim Shrier
Obtained from:  bug
Approved by:    re (gjb)
22:54:10 - r272191
(3 days 22 hours ago)
by dteske
Affects: 
(3 files)
/stable/10/usr.sbin/sysrc/sysrc
/stable/10/usr.sbin/sysrc/sysrc.8
MFC revisions 268860, 268863:
r268860: Minor enhancements, bug fixes, and man-page adjustments.
r268863: Bump .Dd in manual

Reported by:    lme
Approved by:    re (gjb)
22:21:02 - r272190
(3 days 23 hours ago)
by np
Affects:  /head/sys/dev/cxgbe/t4_main.c
cxgbe(4): explicitly set various if_hw_tso* values.

MFC after:      3 days
21:46:32 - r272189
(4 days ago)
by delphij
Affects:  /head/cddl/lib/libzfs/Makefile
Add libuutil to dependency list.

Noticed by:     sef
MFC after:      3 days
21:14:52 - r272188
(4 days ago)
by bdrewery
Affects:  /svnadmin/hooks/scripts/notify_bz.sh
Use SSL for svnweb URL
20:05:28 - r272187
(4 days 1 hour ago)
by mjg
Affects: 
(4 files)
/stable/10/sys/kern/kern_descrip.c
/stable/10/sys/kern/vfs_vnops.c
/stable/10/sys/sys/file.h
MFC r270993:

Fix up proc_realparent to always return correct process.

Prior to the change it would always return initproc for non-traced processes.

This fixes a regression in inferior().

Approved by:    re (marius)
19:56:52 - r272186
(4 days 1 hour ago)
by gjb
Affects:  /user/gjb/thermite/mk-vmimage.sh
Fix devfs(5) mount path in create_vmimage_qemu().

Sponsored by:   The FreeBSD Foundation
19:48:47 - r272185
(4 days 2 hours ago)
by mjg
Affects:  /head/sys/kern/kern_descrip.c
/head/sys/sys/filedesc.h
Make do_dup() static and move relevant macros to kern_descrip.c

No functional changes.
19:13:13 - r272184
(4 days 2 hours ago)
by thomas
Affects:  /stable/9/tools/tools/nanobsd/nanobsd.sh
MFC rev. 258705 to stable/9:

Define NANO_MAKE (single threaded MAKE) and use it for installworld,
installkernel, and distribution.

Required in order to fix regression introduced by MFC rev. 265894
for kern/162736, since that change depends on this one.

PR:             193808
18:53:00 - r272183
(4 days 3 hours ago)
by np
Affects:  /head/sys/dev/cxgbe/t4_main.c
Make sure the adapter's management queue and the event queue are
available before any uppper layer driver (TOE, iWARP, or iSCSI)
registers with the base cxgbe(4) driver.

Submitted by:   Hariprasad at chelsio dot com
Reviewed by:    np@
18:37:49 - r272182
(4 days 3 hours ago)
by jhb
Affects:  /head/sys/kern/subr_bus.c
Don't panic if a resource is allocated twice.  Instead, print a warning and
fail the allocation request.  Allocations of "reserved" resources such as
PCI BARs already fail the request instead of panic'ing in this case.

MFC after:      1 week
15:16:53 - r272181
(4 days 6 hours ago)
by ian
Affects:  /head/sys/powerpc/ofw/ofw_pcibus.c
Fix a paste-o commited in r272109: we need to get the interrupts for the
child node, not the parent node.

Pointed out by: jhibbits@
13:12:00 - r272180
(4 days 8 hours ago)
by gavin
Affects:  /head/release/doc/en_US.ISO8859-1/hardware/article.xml
Add ipheth(4) to the hardware notes.

MFC after:      6 days
13:02:29 - r272179
(4 days 8 hours ago)
by glebius
Affects:  /head/sys/net/ieee8023ad_lacp.c
/head/sys/net/if_lagg.c
/head/sys/net/if_lagg.h
Remove macros that hide access to struct ifnet fields.
12:54:24 - r272178
(4 days 8 hours ago)
by glebius
Affects:  /head/sys/net/if_lagg.c
/head/sys/net/if_lagg.h
Make all lagg protocol methods live in lagg_protos, not in softc. All
interfaces of a same protocol, use the same methods.

Sponsored by:   Netflix
Sponsored by:   Nginx, Inc.
12:48:54 - r272177
(4 days 9 hours ago)
by jmg
Affects:  /head/sys/netinet/ip_ipsec.c
drop unnecessary ifdef IPSEC's.  This file is only compiled when IPSEC
is defined...

Differential Revision:  D839
Reviewed by:    bz, glebius, gnn
Sponsered by:   EuroBSDCon DevSummit
12:42:06 - r272176
(4 days 9 hours ago)
by ae
Affects:  /head/sys/net/if_lagg.c
Keep list of lagg ports sorted by if_index.

Obtained from:  Yandex LLC
MFC after:      1 week
Sponsored by:   Yandex LLC
12:35:58 - r272175
(4 days 9 hours ago)
by glebius
Affects: 
(4 files)
/head/sys/net/*
- Whitespace.
- Remove caddr_t.
11:48:29 - r272174
(4 days 10 hours ago)
by allanjude
Affects:  /head/usr.bin/man/man.1
Replace the macros used in the previous man(1) commit with literal text,
because the macros seem to be specific to groff, and do not render in
mandoc

Approved by:    bcr (mentor)
Sponsored by:   ScaleEngine Inc.
11:38:10 - r272173
(4 days 10 hours ago)
by des
Affects:  /head/usr.sbin/bsdinstall/scripts/services
Add a line to the post-installation configuration dialog to enable the
local_unbound service.

MFC after:      3 days
11:22:32 - r272172
(4 days 10 hours ago)
by brueffer
Affects:  /head/release/doc/en_US.ISO8859-1/hardware/article.xml
Add smsc(4) to the hardware notes.
11:13:19 - r272171
(4 days 10 hours ago)
by pluknet
Affects:  /head/share/man/man4/miibus.4
/head/share/man/man4/smsc.4
Add smsc(4) to the list of drivers use the miibus interface.

X-MFC with:     r272165
Sponsored by:   Nginx, Inc.
11:01:04 - r272170
(4 days 10 hours ago)
by glebius
Affects:  /head/sys/net/if_lagg.c
/head/sys/net/if_lagg.h
- Provide lagg_proto_attach(), lagg_proto_detach().
- Make detach a protocol method in lagg_protos.
- Simplify code to lookup protocols.

Sponsored by:   Netflix
Sponsored by:   Nginx, Inc.
10:47:57 - r272169
(4 days 11 hours ago)
by glebius
Affects:  /head/sys/dev/ti/if_ti.c
- Mechanically convert to if_inc_counter() the rest of counters.
- Do not set if_collisions on interrupt, read them in ti_get_counter().
- Add missing bus_dmamap_sync(BUS_DMASYNC_PREREAD) in ti_ioctl2(). [1]

Submitted by:   mav [1]
09:54:57 - r272168
(4 days 11 hours ago)
by gavin
Affects:  /head/share/man/man4/Makefile
Add MLINKS for if_ipheth(4) and if_smsc(4).

Submitted by:   brueffer
MFC after:      6 days
09:52:39 - r272167
(4 days 12 hours ago)
by gjb
Affects:  /stable/10/sys/conf/newvers.sh
Forced commit to mark the real 10.1-BETA3 point, after
r272152.

Approved by:    re (implicit)
Sponsored by:   The FreeBSD Foundation
09:40:48 - r272166
(4 days 12 hours ago)
by cperciva
Affects: 
(5 files)
/head/games/factor/factor.6
/head/games/primes/*
Correctly enumerate primes between 4295098369 and 3825123056546413050.

Prior to this commit, primes(6) relied solely on sieving with primes up
to 65537, with the effect that composite numbers which are the product
of two non-16-bit primes would be incorrectly identified as prime.  For
example,
# primes 1099511627800 1099511627820
would output
1099511627803
1099511627807
1099511627813
when in fact only the first of those values is prime.

This commit adds strong pseudoprime tests to validate the candidates
which pass the initial sieving stage, using bases of 2, 3, 5, 7, 11,
13, 17, 19, and 23.  Thanks to papers from C. Pomerance, J.L. Selfridge,
and S.S. Wagstaff, Jr.; G. Jaeschke; and Y. Jiang and Y. Deng, we know
that the smallest value which passes these tests is 3825123056546413051.

At present we do not know how many strong pseudoprime tests are required
to prove primality for values larger than 3825123056546413050, so we
force primes(6) to stop at that point.

Reviewed by:    jmg
Relnotes:       primes(6) now correctly enumerates primes up to
                3825123056546413050
MFC after:      7 days
Sponsored by:   EuroBSDCon devsummit
09:19:11 - r272165
(4 days 12 hours ago)
by gavin
Affects:  /head/share/man/man4/Makefile
/head/share/man/man4/smsc.4
Add very basic outline man page for smsc(4).

MFC after:      6 days
09:08:09 - r272164
(4 days 12 hours ago)
by kevlo
Affects:  /head/sys/arm/at91/at91sam9260reg.h
Fix the size of AT91SAM9260_PIT_SIZE.
09:07:02 - r272163
(4 days 12 hours ago)
by kevlo
Affects: 
(5 files)
/head/sys/arm/at91/*
Fix typos.
09:05:55 - r272162
(4 days 12 hours ago)
by royger
Affects:  /head/sys/x86/xen/pv.c
xen: add proper copyright attribution

Noted by:       jmallett
08:42:32 - r272161
(4 days 13 hours ago)
by glebius
Affects:  /head/sys/net/ieee8023ad_lacp.c
/head/sys/net/ieee8023ad_lacp.h
/head/sys/net/if_lagg.c
- When reconfiguring protocol on a lagg, first set it to LAGG_PROTO_NONE,
  then drop lock, run the attach routines, and then set it to specific
  proto. This removes tons of WITNESS warnings.
- Make lagg protocol attach handlers not failing and allocate memory
  with M_WAITOK.

Sponsored by:   Netflix
Sponsored by:   Nginx, Inc.
08:16:26 - r272160
(4 days 13 hours ago)
by gavin
Affects:  /head/sys/dev/usb/net/if_smsc.c
/head/sys/dev/usb/usbdevs
Add new (untested) device IDs to smsc(4)

MFC after:      1 week
08:12:12 - r272159
(4 days 13 hours ago)
by glebius
Affects:  /head/sys/net/if_lagg.h
Make lagg protos a enum.
07:12:40 - r272158
(4 days 14 hours ago)
by glebius
Affects: 
(4 files)
/head/sys/net/*
Make lagg protocols detach methods returning void.

Sponsored by:   Netflix
Sponsored by:   Nginx, Inc.
07:01:27 - r272157
(4 days 14 hours ago)
by markj
Affects:  /head/cddl/contrib/opensolaris/cmd/dtrace/dtrace.1
Fix the description of the -h option.

Reported by:    swills
MFC after:      3 days
06:41:33 - r272156
(4 days 15 hours ago)
by pho
Affects:  /user/pho/stress2/misc/mmap5.sh
/user/pho/stress2/misc/mmap6.sh
Simplify page stealer cleanup.

Sponsored by:    EMC / Isilon storage division
06:02:35 - r272155
(4 days 15 hours ago)
by pho
Affects:  /user/pho/stress2/misc/link.sh
Added a regression test.

Sponsored by:    EMC / Isilon storage division
05:05:34 - r272154
(4 days 16 hours ago)
by delphij
Affects:  /head/sbin/sysctl/sysctl.c
Refactor the code a little bit to reduce duplicated code.

Reviewed by:    mjg
MFC after:      2 weeks
04:33:27 - r272153
(4 days 17 hours ago)
by pluknet
Affects:  /head/lib/libthr/libthr.3
Fix description of mutex acquisition.

Reviewed by:    kib
X-MFC with:     r272070
Sponsored by:   Nginx, Inc.
03:03:58 - r272152
(4 days 18 hours ago)
by gjb
Affects: 
(24 files)
/stable/10/*
Properly revert r272128.

Approved by:    re (implicit)
Sponsored by:   The FreeBSD Foundation
02:30:47 - r272151
(4 days 19 hours ago)
by gjb
Affects: 
(24 files)
/stable/10/*
Revert r272149, which introduces obscure vestiges from the
r272128 reversal.

Approved by:    re (implicit)
Sponsored by:   The FreeBSD Foundation
01:14:11 - r272150
(4 days 20 hours ago)
by gjb
Affects:  /stable/10/sys/conf/newvers.sh
Forced commit to reflect the real 10.1-BETA3 point.

Approved by:    re (implicit)
Sponsored by:   The FreeBSD Foundation
01:08:31 - r272149
(4 days 20 hours ago)
by gjb
Affects: 
(24 files)
/stable/10/*
Revert r272128:
  Though this passes the buildworld test, this fails during
  installworld with:

  make[3]: "/releng/scripts-release/chroots/10/i386/release/etc/devd/Makefile"
  line 13: Malformed conditional (${MK_HYPERV} != "no")

Approved by:    re (implicit)
Sponsored by:   The FreeBSD Foundation
00:00:13 - r272148
(4 days 21 hours ago)
by gjb
Affects:  /stable/10/sys/conf/newvers.sh
Update stable/10 to -BETA3 as part of the 10.1-RELEASE
cycle.

Approved by:    re (implicit)
Sponsored by:   The FreeBSD Foundation
2014 - 09 - 25   (5 days ago)
23:09:35 - r272147
(4 days 22 hours ago)
by grehan
Affects: 
(2 files)
/stable/10/usr.sbin/bhyve/smbiostbl.c
MFC r272007

Correct display of bhyve SMBIOS UUIDs with dmidecode by bumping the version.

The mixed little/big-endianness of SMBIOS UUIDs was clarified in v2.6
of the SMBIOS spec. dmidecode uses the reported version of SMBIOS to
determine the layout and what to byte-swap.

bhyve's SMBIOS reported as 2.4 though it implemented the 2.6-style of
memory layout. This resulted in dmidecode reporting a different
UUID than one passed in via the -U option.

Fix by exporting a version of 2.6.

Approved by:    re (gjb)
23:04:37 - r272146
(4 days 22 hours ago)
by pfg
Affects:  /head/lib/libc/stdtime/strptime.c
Revert r272122

The patch still needs to be more robust and it broke the
build on MIPS so revert it for now while all the issues
are fixed.

Reported by:    ache, davide
PR:             137307
22:47:19 - r272145
(4 days 23 hours ago)
by delphij
Affects:  /head/sbin/sysctl/sysctl.c
Explicitly set errno to 0 before calling strto*.

Suggested by:   mjg
MFC after:      2 weeks
22:37:27 - r272144
(4 days 23 hours ago)
by delphij
Affects:  /head/sbin/sysctl/sysctl.c
The strtol(3) family of functions would set errno when it hits one.
Check errno and handle it as invalid input.

Obtained from:  HardenedBSD
Submitted by:   David CARLIER <devnexen@gmail.com>
MFC after:      2 weeks
22:22:57 - r272143
(4 days 23 hours ago)
by delphij
Affects:  /head/contrib/hyperv/tools/hv_kvp_daemon.c
Use a char * as iterator over a bounded string.

MFC after:      1 week
22:22:54 - r272142
(4 days 23 hours ago)
by delphij
Affects:  /head/contrib/hyperv/tools/hv_kvp_daemon.c
Use strlcpy(). I don't believe these are real problems but it's better
to use a safe idiom.

Reported by:    Coverity
CID:            1238914
MFC after:      1 week
22:22:51 - r272141
(4 days 23 hours ago)
by delphij
Affects:  /head/contrib/hyperv/tools/hv_kvp_daemon.c
Refactor the code a little bit to avoid NULL deference when
allocation was failed.

Reported by:    Coverity
CID:            1238915
MFC after:      1 week
22:22:48 - r272140
(4 days 23 hours ago)
by delphij
Affects:  /head/contrib/hyperv/tools/hv_kvp_daemon.c
Plug a file descriptor leak.

Reported by:    Coverity
CID:            1238916
MFC after:      1 week
22:22:43 - r272139
(4 days 23 hours ago)
by delphij
Affects:  /head/contrib/hyperv/tools/hv_kvp_daemon.c
Being able to access a path do not necessarily mean we have access
to a directory. So instead of doing this, we just call mkdir(2)
directly and test if the returned value is 0 or errno is EISDIR.

Reported by:    Coverity
CID:            1238925
MFC after:      1 week
22:15:10 - r272138
(4 days 23 hours ago)
by kargl
Affects:  /head/lib/msun/src/e_lgamma_r.c
* Whitespace.
21:57:35 - r272137
(4 days 23 hours ago)
by wblock
Affects:  /head/etc/motd
Revised to better point to release notes and errata, security advisories,
and be more specific about the -questions list.

MFC after:      3 days
21:45:07 - r272136
(5 days ago)
by delphij
Affects: 
(2 files)
/stable/10/cddl/contrib/opensolaris/cmd/zpool/zpool_vdev.c
MFC r271227: MFV r271225:

Iterate through all the children instead of returning error when we hit
the first error.  This makes the error message give more information
rather than just the first device that causes problem.

Illumos issue:
    5118 When verifying or creating a storage pool, error messages only
       show one device

Approved by:    re (gjb)
21:34:57 - r272135
(5 days ago)
by allanjude
Affects:  /head/usr.bin/man/man.1
Update man(1) to list the different sections of the manual

Add each of the intro sections to the 'Also See' list

PR:             193460
Differential Revision:  D834
Approved by:    bcr (mentor)
Sponsored by:   ScaleEngine Inc.
21:28:19 - r272134
(5 days ago)
by delphij
Affects: 
(3 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dnode.c
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
MFC r271536: MFV r271518:

Correctly report hole at end of file.

When asked to find a hole, the DMU sees that there are no holes in the
object, and returns ESRCH.  The ZPL interprets this as "no holes before
the end of the file", and therefore inserts the "virtual hole" at the
end of the file.  Because DMU and ZPL have different ideas of where the
end of an object/file is, we will end up returning the end of file,
which is generally larger, instead of returning the end of object.

The fix is to handle the "virtual hole" in the DMU. If no hole is found,
the DMU will return a hole at the end of the file, rather than an error.

Illumos issue:
    5139 SEEK_HOLE failed to report a hole at end of file

Approved by:    re (gjb)
21:07:30 - r272133
(5 days ago)
by delphij
Affects: 
(2 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zil.c
MFC r271534: MFV r271517:

In zil_claim, don't issue warning if we get EBUSY (inconsistent) when
opening an objset, instead, ignore it silently.

Illumos issue:

    5140 message about "%recv could not be opened" is printed when
         booting after crash

Approved by:    re (gjb)
21:07:20 - r272132
(5 days ago)
by kib
Affects:  /head/sys/compat/freebsd32/freebsd32_misc.c
/head/sys/kern/kern_descrip.c
/head/sys/sys/syscallsubr.h
Fix fcntl(2) compat32 after r270691.  The copyin and copyout of the
struct flock are done in the sys_fcntl(), which mean that compat32 used
direct access to userland pointers.

Move code from sys_fcntl() to new wrapper, kern_fcntl_freebsd(), which
performs neccessary userland memory accesses, and use it from both
native and compat32 fcntl syscalls.

Reported by:    jhibbits
Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
20:56:05 - r272131
(5 days ago)
by delphij
Affects:  /stable/10/share/man/man5/src.conf.5
Regen.

This is a direct commit to stable/10 instead of a MFC of
r271494.

Approved by:    re (gjb)
20:42:25 - r272130
(5 days 1 hour ago)
by kib
Affects:  /head/sys/kern/vfs_syscalls.c
In kern_linkat() and kern_renameat(), do not call namei(9) while
holding a write reference on the filesystem.  Try to get write
reference in unblocked way after all vnodes are resolved; if failed,
drop all locks and retry after waiting for suspension end.

The VFS_UNMOUNT() methods for UFS and tmpfs try to establish
suspension on unmount, while covered vnode is locked by VFS, which
prevents namei() from stepping over the mount point.  The thread doing
namei() sleeps on the covered vnode lock, owning the write ref.

Reported by:    bdrewery
Tested by:      bdrewery (previous version), pho
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
20:40:24 - r272129
(5 days 1 hour ago)
by jhb
Affects: 
(9 files)
/head/sys/*
Merge the PC98 fdc(4) driver into the MI driver.  While here, replace
the magic numbers used with NE7CMD_SPECIFY with invocations of the
NE7_SPEC_x() macros.

Approved by:    nyan
20:34:14 - r272128
(5 days 1 hour ago)
by delphij
Affects: 
(24 files)
/stable/10/*
MFC r271493,271688,271689,271696,271854:

Import HyperV Key-Value Pair (KVP) driver and daemon code by Microsoft,
many thanks for their continued support of FreeBSD.

While I'm there, also implement a new build knob, WITHOUT_HYPERV to
disable building and installing of the HyperV utilities when necessary.

The HyperV utilities are only built for i386 and amd64 targets.

Approved by:    re (gjb)
19:22:26 - r272127
(5 days 2 hours ago)
by pfg
Affects:  /head/usr.bin/grep/regex/tre-fastmatch.c
bsdgrep: Work-around for segmentation fault.

Fix by David Carlier.

Obtained from:  HardenedBSD
PR:             167921
MFC after:      1 month
19:10:32 - r272126
(5 days 2 hours ago)
by pfg
Affects:  /head/sys/gnu/fs/reiserfs/reiserfs_fs_i.h
reiserfs: Use signed i_nlink

Unlike Linux, FreeBSD's kernel doesn't like unsigned file link
count. This is consistent with our ext2fs implementation.

MFC after:      1 month
19:08:06 - r272125
(5 days 2 hours ago)
by markj
Affects:  /head/lib/libproc/proc_sym.c
Factor out some of the duplicated code in the symbol lookup functions, in
preparation for adding userland CTF support to DTrace.

MFC after:      1 month
Sponsored by:   EMC / Isilon Storage Division
18:54:36 - r272124
(5 days 2 hours ago)
by jhb
Affects:  /head/sys/pc98/cbus/olpt.c
Use callout(9) instead of timeout(9).

Approved by:    nyan
18:53:27 - r272123
(5 days 2 hours ago)
by jhb
Affects:  /head/sys/pc98/cbus/pckbd.c
Use callout() instead of timeout().  This is almost identical to the
changes in r271963.

Approved by:    nyan
18:52:17 - r272122
(5 days 3 hours ago)
by pfg
Affects:  /head/lib/libc/stdtime/strptime.c
Add strptime(3) support for %U and %W

Add support for the missing POSIX-2001 %U and %W features: the
existing  FreeBSD strptime code recognizes both directives and
validates that the week number lies in the permitted range,
but then simply discards the value.

Initial support for the feature was written by Paul Green with
important fixes by Andrey Chernov. Additional support for
handling tm_wday/tm_yday was written by David Carlier.

PR:             137307
MFC after:      1 month
18:43:52 - r272121
(5 days 3 hours ago)
by jhb
Affects:  /head/sys/conf/files
/head/sys/dev/ncr/ncr.c
Lock ncr(4) and mark it MPSAFE along with various other fixes:
- Use bus_*() instead of bus_space_*().
- Use device_printf().
- Remove unused global variables and the extra warning suppression
  they required.
- Use callout() instead of timeout().

Reviewed by:    se
18:03:14 - r272120
(5 days 3 hours ago)
by br
Affects: 
(7 files)
/head/sys/arm/*
/head/sys/boot/fdt/dts/arm/*
/head/sys/dev/dwc/*
Add driver for Synopsys DesignWare 3504-0 Universal 10/100/1000
Ethernet MAC.

Sponsored by:   DARPA, AFRL
17:59:00 - r272119
(5 days 3 hours ago)
by trasz
Affects: 
(2 files)
/stable/10/contrib/smbfs/lib/smb/ctx.c
MFC r271259:

Make it possible to use empty user name ("-U ''") for mount_smbfs(8).
It's just like "-U guest", except that it actually works, at least
with Samba 4, which seems to return authentication failure for "-U guest".

Approved by:    re (gjb)
Sponsored by:   The FreeBSD Foundation
17:47:26 - r272118
(5 days 4 hours ago)
by trasz
Affects: 
(2 files)
/stable/10/contrib/smbfs/mount_smbfs/mount_smbfs.c
MFC r271258:

Make mount_smbfs(8) preserve the "automounted" mount flag.

The issue here is that we have to pass this flag as a string,
in iov, because it doesn't fit in mntflags, which is an int.

Approved by:    re (gjb)
Sponsored by:   The FreeBSD Foundation
17:38:42 - r272117
(5 days 4 hours ago)
by trasz
Affects: 
(2 files)
/stable/10/usr.sbin/autofs/common.c
MFC r272037:

Fix thinko that, with two map entries like shown below, in that order,
made automountd(8) mix them up: trying to access the second one would
trigger mount for the first one.

foo             host:/foo
foobar          host:/foobar

PR:             193584
Approved by:    re (gjb)
Sponsored by:   The FreeBSD Foundation
17:28:29 - r272116
(5 days 4 hours ago)
by trasz
Affects: 
(2 files)
/stable/10/sys/fs/autofs/autofs_vnops.c
MFC r272025:

Fix thinko that, with two map entries like shown below, in that order,
made autofs mix them up: the second one wasn't visible in ls(1) output,
and trying to access it would trigger mount for the first one.

foobar          host:/foobar
foo             host:/foo

Approved by:    re (gjb)
Sponsored by:   The FreeBSD Foundation
16:48:23 - r272115
(5 days 5 hours ago)
by gjb
Affects:  /stable/10/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document r271947, OpenPAM updated to Ourouparia (20140912).

Approved by:    re (implicit)
Sponsored by:   The FreeBSD Foundation
16:48:21 - r272114
(5 days 5 hours ago)
by gjb
Affects:  /stable/10/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document r271943, Latest/pkg.txz symlink included on the DVD to
make bootstrapping pkg(8) easier.

Approved by:    re (implicit)
Sponsored by:   The FreeBSD Foundation
16:48:19 - r272113
(5 days 5 hours ago)
by gjb
Affects:  /stable/10/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document r271880, serial and null console support added to UEFI
boot loader.

Approved by:    re (implicit)
Sponsored by:   The FreeBSD Foundation
16:35:19 - r272112
(5 days 5 hours ago)
by se
Affects: 
(2 files)
/stable/10/etc/rc.d/syscons
MFC r271958:

Permit use of "no" as specification of a Norwegian keymap file.
Only "keymap=NO" (the default in defaults/rc.conf) or "keymap="
(an empty value) will prevent loading of a keymap file.

Approved by:    re (gjb)
16:22:32 - r272111
(5 days 5 hours ago)
by luigi
Affects:  /head/sys/dev/netmap/netmap.c
fix a panic when passing ifioctl from a netmap file descriptor to
the underlying device. This needs to be merged to 10.1

Reported by: Patrick Kelsey
MFC after:      3 days
15:57:57 - r272110
(5 days 5 hours ago)
by luigi
Affects:  /head/sys/dev/netmap/netmap_kern.h
adapt the code to different freebsd versions.
Not necessary to MFC
15:02:33 - r272109
(5 days 6 hours ago)
by ian
Affects: 
(9 files)
/head/sys/dev/*
/head/sys/mips/beri/beri_simplebus.c
/head/sys/powerpc/*
Replace multiple nearly-identical copies of code to walk through an FDT
node's interrupts=<...> property creating resource list entries with a
single common implementation.  This change makes ofw_bus_intr_to_rl() the
one true copy of that code and removes the copies of it from other places.

This also adds handling of the interrupts-extended property, which allows
specifying multiple interrupts for a node where each interrupt can have a
separate interrupt-parent.  The bindings for this state that the property
cells contain an xref phandle to the interrupt parent followed by whatever
interrupt info that parent normally expects.  This leads to having a
variable number of icells per interrupt in the property.  For example you
could have <&intc1 1 &intc2 26 9 0 &intc3 9 4>.

Differential Revision: https://reviews.freebsd.org/D803
14:25:38 - r272108
(5 days 7 hours ago)
by luigi
Affects:  /head/sys/modules/netmap/Makefile
add missing file

Submitted by:   Daniel Peyrolon
MFC after:      3 days
14:22:32 - r272107
(5 days 7 hours ago)
by gavin
Affects:  /head/share/man/man4/cdce.4
/head/share/man/man4/urndis.4
Cross reference cdce(4), ipheth(4) and urndis(4) from each other.

MFC after:      1 week
14:18:34 - r272106
(5 days 7 hours ago)
by gavin
Affects:  /head/share/man/man4/Makefile
/head/share/man/man4/ipheth.4
Add basic man page for ipheth(4).

MFC after:      1 week
13:31:08 - r272105
(5 days 8 hours ago)
by emaste
Affects:  /head/sys/boot/efi/include/eficonsctl.h
Remove duplicated header content

I fail at patch(1).

MFC after:      3 days
13:08:31 - r272104
(5 days 8 hours ago)
by ray
Affects: 
(2 files)
/stable/10/sys/dev/drm2/drm_fb_helper.c
MFC r268981
Remove #ifdef-s to reduce difference to upstream.

Pointed by:     kib
Approved by:    re (glebius)

Sponsored by:   The FreeBSD Foundation
11:38:26 - r272103
(5 days 10 hours ago)
by gavin
Affects: 
(21 files)
/head/sys/arm/*
/head/sys/dev/usb/controller/ohci_s3c24x0.c
Move the ARM Samsung s3c2xx0 support files into the samsung directory, to
match other platforms.

Discussed with: andrew
10:59:01 - r272102
(5 days 10 hours ago)
by pjd
Affects:  /head/lib/libnv/nv.3
Document the new nvlist_get_parent() function.

Submitted by:   Mariusz Zaborski
09:12:11 - r272101
(5 days 12 hours ago)
by mav
Affects: 
(2 files)
/stable/10/sys/cam/ctl/ctl_frontend_iscsi.c
MFC r271957:  Fix read overrun handling, broken by using wrong variable.

Approved by:    re (marius)
09:11:01 - r272100
(5 days 12 hours ago)
by mav
Affects: 
(2 files)
/stable/10/sys/cam/ctl/ctl.c
MFC r271949:
Fix UNMAP stuck if the last block descriptor in the list is empty.

Approved by:    re (glebius)
08:36:11 - r272099
(5 days 13 hours ago)
by glebius
Affects:  /head/sys/dev/vmware/vmxnet3/if_vmx.c
Provide vmxnet3_get_counter() to return counters that are not collected,
but taken from hardware.
08:28:10 - r272098
(5 days 13 hours ago)
by royger
Affects: 
(11 files)
/head/sys/*
ddb: allow specifying the exact address of the symtab and strtab

When the FreeBSD kernel is loaded from Xen the symtab and strtab are
not loaded the same way as the native boot loader. This patch adds
three new global variables to ddb that can be used to specify the
exact position and size of those tables, so they can be directly used
as parameters to db_add_symbol_table. A new helper is introduced, so callers
that used to set ksym_start and ksym_end can use this helper to set the new
variables.

It also adds support for loading them from the Xen PVH port, that was
previously missing those tables.

Sponsored by: Citrix Systems R&D
Reviewed by:    kib

ddb/db_main.c:
 - Add three new global variables: ksymtab, kstrtab, ksymtab_size that
   can be used to specify the position and size of the symtab and
   strtab.
 - Use those new variables in db_init in order to call db_add_symbol_table.
 - Move the logic in db_init to db_fetch_symtab in order to set ksymtab,
   kstrtab, ksymtab_size from ksym_start and ksym_end.

ddb/ddb.h:
 - Add prototype for db_fetch_ksymtab.
 - Declate the extern variables ksymtab, kstrtab and ksymtab_size.

x86/xen/pv.c:
 - Add support for finding the symtab and strtab when booted as a Xen
   PVH guest. Since Xen loads the symtab and strtab as NetBSD expects
   to find them we have to adapt and use the same method.

amd64/amd64/machdep.c:
arm/arm/machdep.c:
i386/i386/machdep.c:
mips/mips/machdep.c:
pc98/pc98/machdep.c:
powerpc/aim/machdep.c:
powerpc/booke/machdep.c:
sparc64/sparc64/machdep.c:
 - Use the newly introduced db_fetch_ksymtab in order to set ksymtab,
   kstrtab and ksymtab_size.
07:37:41 - r272097
(5 days 14 hours ago)
by hselasky
Affects: 
(2 files)
/stable/10/sys/dev/usb/controller/xhci.c
MFC r271953:
Some XHCI hardware requires dropping the endpoint context before
adding it again.

Approved by:    re, glebius
07:22:24 - r272096
(5 days 14 hours ago)
by glebius
Affects:  /head/sys/dev/bce/if_bce.c
/head/sys/dev/bce/if_bcereg.h
- Provide bce_get_counter() to return counters that are not collected,
  but taken from hardware.
- Mechanically convert to if_inc_counter() the rest of counters.
- While here fix 3 instances of the same bug, when error counter was ++
  in one place and then assigned in other place, losing the increment.
  Achieve that storing soft errors counters in softc.
07:00:31 - r272095
(5 days 14 hours ago)
by glebius
Affects:  /head/sys/dev/lmc/if_lmc.c
- Provide lmc_get_counter() to return counters that are not collected,
  but taken from hardware.
- Mechanically convert to if_inc_counter() the rest of counters.
06:47:38 - r272094
(5 days 15 hours ago)
by glebius
Affects:  /head/sys/dev/lmc/if_lmc.c
/head/sys/dev/lmc/if_lmc.h
Run through unifdef(1) with slight hand-editing after. It is obvious,
that the driver is not going to be ever improved in terms of hardware
support, it is going to be only maintained as our kernel APIs change.
Carrying all the compatibility with ancient versions of NetBSD, OpenBSD,
Linux and BSDI, as well as obsoleted FreeBSD versions has no reason.
06:00:31 - r272093
(5 days 15 hours ago)
by hselasky
Affects: 
(4 files)
/stable/8/sys/dev/usb/controller/xhci.c
MFC r271953:
Some XHCI hardware requires dropping the endpoint context before
adding it again.
05:59:12 - r272092
(5 days 15 hours ago)
by hselasky
Affects: 
(3 files)
/stable/9/sys/dev/usb/controller/xhci.c
MFC r271953:
Some XHCI hardware requires dropping the endpoint context before
adding it again.
05:47:33 - r272091
(5 days 16 hours ago)
by glebius
Affects:  /head/sys/dev/mxge/if_mxge.c
Whitespace cleanup.
05:45:52 - r272090
(5 days 16 hours ago)
by glebius
Affects:  /head/sys/dev/mxge/if_mxge.c
- Provide mxge_get_counter() to return counters that are not collected,
  but taken from hardware.
- Mechanically convert to if_inc_counter() the rest of counters.
02:26:05 - r272089
(5 days 19 hours ago)
by sbruno
Affects:  /head/sys/netpfil/ipfw/ip_dn_io.c
Fix NULL pointer deref in ipfw when using dummynet at layer 2.
Drop packet if pkg->ifp is NULL, which is the case here.

ref. https://github.com/HardenedBSD/hardenedBSD
commit 4eef3881c64f6e3aa38eebbeaf27a947a5d47dd7

PR 193861 --  DUMMYNET LAYER2: kernel panic

in this case a kernel panic occurs. Hence, when we do not get an interface,
we just drop the packet in question.

PR:             193681
Submitted by:   David Carlier <david.carlier@hardenedbsd.org>
Obtained from:  Hardened BSD
MFC after:      2 weeks
Relnotes:       yes
2014 - 09 - 24   (6 days ago)
22:58:10 - r272088
(5 days 22 hours ago)
by marcel
Affects: 
(29 files)
/head/usr.bin/mkimg/tests/*
Add baseline files for QCOW2.
22:51:16 - r272087
(5 days 23 hours ago)
by ngie
Affects: 
(23 files)
/head/contrib/pjdfstest/tests/*
Increase the memory disk size in the following testcases to avoid mount
failures, which would cause cascade failures in the rest of the test
run:

link/15.t, open/19.t, mkdir/11.t, mkfifo/11.t, symlink/11.t

Fail quickly in all of the testcases if mdconfig, mount, umount, etc
fails to avoid issues similar to this in the future

Submitted by: Casey Peel <cpeel@isilon.com>
MFC after: 2 weeks
X-MFC with: r272057
Sponsored by: EMC / Isilon Storage Division
22:45:03 - r272086
(5 days 23 hours ago)
by marcel
Affects:  /head/usr.bin/mkimg/qcow.c
Finish QCOW version 2 and stop making it conditional.

We have a different ordering for the RC block(s) and L2 tables.
This is expected to be a non-issue, because everything is found
through file offsets in the corresponding RC table and L1 table.
Files that grow organically have RC blocks and L2 tables scattered
all over the place anyway.

The reason for the difference is that mkimg needs to be able to
write to a pipe. We can't seek forward and backward to fill in
the bits in non-sequential order.
22:31:40 - r272085
(5 days 23 hours ago)
by jch
Affects:  /head/share/misc/committers-src.dot
/head/usr.bin/calendar/calendars/calendar.freebsd
Add myself (jch) to calendar.freebsd and committers-src.dot

Approved by:    jhb (mentor)
22:18:21 - r272084
(5 days 23 hours ago)
by ngie
Affects:  /head/contrib/pjdfstest/tests/ftruncate/00.t
Fix the executed testplan count

MFC after: 2 weeks
X-MFC with: r272057
Sponsored by: EMC / Isilon Storage Division
22:14:53 - r272083
(5 days 23 hours ago)
by ngie
Affects:  /head/contrib/pjdfstest/tests/open/16.t
Expect ELOOP on Darwin/Linux with "O_NOFOLLOW was specified and the target is a
symbolic link" case. Assume EMLINK on the rest of the OSes (FreeBSD, Solaris,
etc)

MFC after: 2 weeks
X-MFC with: r272057
Sponsored by: EMC / Isilon Storage Division
21:17:03 - r272082
(6 days ago)
by glebius
Affects:  /svnadmin/conf/mentors
Cy has proved that he can take care of ipfilter, thus release
him from mentorship.
20:12:40 - r272081
(6 days 1 hour ago)
by np
Affects:  /head/sys/netinet/toecore.c
Catch up with r271119.
20:08:43 - r272080
(6 days 1 hour ago)
by np
Affects:  /head/sys/dev/cxgbe/tom/t4_listen.c
Update comment (missed this bit in r272079).
20:04:11 - r272079
(6 days 1 hour ago)
by np
Affects:  /head/sys/dev/cxgbe/tom/t4_listen.c
cxgbe/tom:  Catch up with r271119, syncache_add doesn't need tcbinfo lock.
19:30:36 - r272078
(6 days 2 hours ago)
by peter
Affects: 
(2 files)
/stable/10/etc/defaults/rc.conf
MFC r269392: Add /usr/lib32/compat to the default ld-elf32.so.1 path.

Approved by:    re (gjb, delphij)
19:30:12 - r272077
(6 days 2 hours ago)
by gavin
Affects:  /svnadmin/conf/access
/svnadmin/conf/mentors
Take odeds bit into safekeeping.

Submitted by:   odeds via hselasky and jhb
Approved by:    core (implicit)
18:38:51 - r272076
(6 days 3 hours ago)
by peter
Affects: 
(12 files)
/head/contrib/apr-util/*
Merge apr-util 1.5.3 -> 1.5.4.  A minor bug fix update.
18:14:16 - r272075
(6 days 3 hours ago)
by peter
Affects:  /vendor/apr-util/apr-util-1.5.4
Tag vendor import of apr-util-1.5.4
18:12:23 - r272074
(6 days 3 hours ago)
by peter
Affects: 
(11 files)
/vendor/apr-util/dist/*
Vendor import apr-util-1.5.4 - a minor bug fix release.
15:15:14 - r272073
(6 days 6 hours ago)
by marcel
Affects: 
(28 files)
/head/usr.bin/mkimg/tests/*
Update the baseline for QCOW version 1. A bug was found that rendered
the baseline invalid.
15:14:01 - r272072
(6 days 6 hours ago)
by marcel
Affects:  /head/usr.bin/mkimg/qcow.c
Fix the creation of the L2 cluster table for version 1. The blkofs
variable was assigned the image offset in bytes and not in blocks
(i.e. sectors). This had image_data() return FALSE, which meant that
we didn't assign a cluster when we needed and also meant that we
didn't write parts of the L2 table when we should have. The result
being that the actual data clusters were written at the wrong offset.

Improve support for QCOW version 2. We're having the right layout
and even know how many refcnt blocks we need. All we need to do is
populate the refcnt blocks for every cluster we write and allocate
a cluster when we need a new refcnt block. The allocation part is
tricky in that it'll interleave with the assignment of clusters to
L2 tables and data. Since version 2 is not quite done, keep it
compiled out for now.
14:35:08 - r272071
(6 days 7 hours ago)
by smh
Affects:  /head/sys/vm/vm_pageout.c
Fix ticks wrap issue of lowmem test in vm_pageout_scan

Reviewed by:    jhb (D818)
MFC after:      3 days
Sponsored by:   Multiplay
12:41:39 - r272070
(6 days 9 hours ago)
by kib
Affects:  /head/lib/libthr/libthr.3
Expand the libthr(3) manpage to document knobs accepted by libthr.so
and explain some internal working of the library, neccessary to
understand the knobs effects.

Reviewed by:    bjk, pluknet
Sponsored by:   The FreeBSD Foundation
MFC after:      3 weeks
12:39:12 - r272069
(6 days 9 hours ago)
by kib
Affects:  /head/lib/libthr/thread/thr_init.c
Switch the defaults to not split the RLIMIT_STACK-sized initial thread
stack into the stacks of the created threads.  Add knob
LIBPTHREAD_SPLITSTACK_MAIN to restore the older behaviour.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 weeks
12:19:00 - r272068
(6 days 9 hours ago)
by glebius
Affects:  /head/sys/dev/wi/if_wi.c
- Provide wi_get_counter() to return counters that are not collected,
  but taken from hardware.
- Mechanically convert to if_inc_counter() the rest of counters.
11:58:23 - r272067
(6 days 9 hours ago)
by glebius
Affects:  /head/sys/dev/txp/if_txp.c
- Provide txp_get_counter() to return counters that are not collected,
  but taken from hardware.
- Mechanically convert to if_inc_counter() the rest of counters.
11:33:43 - r272066
(6 days 10 hours ago)
by glebius
Affects:  /head/sys/dev/jme/if_jme.c
Mechanically convert to if_inc_counter().
11:31:46 - r272065
(6 days 10 hours ago)
by glebius
Affects:  /head/sys/dev/vte/if_vte.c
- Provide vte_get_counter() to return counters that are not collected,
  but taken from hardware.
- Mechanically convert to if_inc_counter() the rest of counters.
11:23:55 - r272064
(6 days 10 hours ago)
by glebius
Affects:  /head/sys/dev/et/if_et.c
- Provide igb_get_counter() to return counters that are not collected,
  but taken from hardware.
- Mechanically convert to if_inc_counter() the rest of counters.
09:59:48 - r272063
(6 days 11 hours ago)
by smh
Affects: 
(2 files)
/stable/10/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
MFC r271934:
Output boot code warning when zpool upgrade -a is used to add features.

PR:             188328
Approved by:    re (marius)
Sponsored by:   Multiplay
09:28:37 - r272062
(6 days 12 hours ago)
by pho
Affects:  /user/pho/stress2/misc/mmap12.sh
/user/pho/stress2/misc/mmap13.sh
Added comments.

Sponsored by:    EMC / Isilon storage division
09:25:47 - r272061
(6 days 12 hours ago)
by pho
Affects:  /user/pho/stress2/misc/mmap19.sh
Style fixes.

Sponsored by:    EMC / Isilon storage division
08:28:34 - r272060
(6 days 13 hours ago)
by hselasky
Affects: 
(5 files)
/head/sys/ofed/drivers/net/mlx4/*
Update code to use new network counter API.
Fix some minor compile warnings while at it.

Sponsored by:   Mellanox Technologies
Suggested by:   glebius@
MFC after:      1 week
08:18:11 - r272059
(6 days 13 hours ago)
by mav
Affects:  /head/sys/compat/linux/linux_ioctl.c
Remake Linux' SOUND_MIXER_INFO IOCTL as a wrapper around new FreeBSD's one.

Submitted by:   Dmitry Luhtionov <dmitryluhtionov@gmail.com>
MFC after:      3 days
07:29:07 - r272058
(6 days 14 hours ago)
by rodrigc
Affects: 
(2 files)
/stable/10/share/examples/bhyve/vmrun.sh
MFC r271447, r271496
 - Attach the ISO to an ahci-cd emulated device
 - Propagate the error status of /usr/sbin/bhyve

Approved by:re (delphij)
07:00:35 - r272057
(6 days 14 hours ago)
by ngie
Affects: 
(4 files)
/head/UPDATING
/head/contrib/pjdfstest/FREEBSD-upgrade
/head/tools/regression/pjdfstest
Import pjdfstest from
^/vendor/pjdfstest/abf03c3a47745d4521b0e4aa141317553ca48f91

- Remove tools/regression/pjdfstest
- Add upgrade directions for contrib/pjdfstest
- Add a note to UPDATING for the move (the reachover Makefiles are coming
  soon)

Functional differences:
- ftruncate testcases are added from upstream (github)

Non-functional differences:
- The copyright for the project has been updated to 2012
- pjd's contact information has been updated

Discussed with: -testing, jmmv, pjd
MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
06:50:14 - r272056
(6 days 15 hours ago)
by ngie
Affects:  /head/contrib/atf/FREEBSD-upgrade
Fix a typo in the upgrade directions

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
04:45:35 - r272055
(6 days 17 hours ago)
by ngie
Affects:  /head/share/mk/bsd.progs.mk
Improve bsd.progs.mk compatibility with bsd.prog.mk

1. Do not install FILES/SCRIPTS multiple times if PROGS is specified; this is
   already handled via bsd.prog.mk when it's called recursively (PR: 191055,
   191955).
2. Some variables, like BINDIR and PROGNAME, default to a value if unset
   whereas others get appended to, like CFLAGS. Add support for the former case
   (PR: 191056)
3. Make "checkdpadd" and "clean" available targets for recursive execution.

Reviewed by: marcel, sjg
Phabric: D822
PR: 191055, 191056, 191955
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
04:17:29 - r272054
(6 days 17 hours ago)
by marcel
Affects:  /head/usr.bin/mkimg/tests/Makefile
Clean the generated baseline files by adding them to CLEANFILES.
04:06:54 - r272053
(6 days 17 hours ago)
by ngie
Affects:  /head/Makefile.inc1
Have distrib-dirs, distribution, hier, hierarchy, redistribute, and reinstall
depend on the .MAKE special target

This will allow users to do something like the following to print out the
results of the running the simulated make target with bmake, like some of the
other top-level make targets in Makefile.inc1:

  % make -f Makefile.inc1 -n distribution TARGET=i386 TARGET_ARCH=i386

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
01:21:31 - r272052
(6 days 20 hours ago)
by cy
Affects:  /head/sys/contrib/ipfilter/netinet/ip_frag.c
ipfilter bug #558 add in some missing frag table function comments.

Approved by:    glebius (mentor)
Obtained from:  ipfilter CVS repo (r1.36)

 


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 41 ms, 282 revisions printed. Current time is 2014-09-30 21:53:26. All times are in UTC/GMT.