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 - 24   (today)
01:21:31 - r272052
(1 hour 2 minutes 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)
2014 - 09 - 23   (yesterday)
22:57:11 - r272051
(3 hours 26 minutes ago)
by np
Affects:  /head/sys/dev/cxgbe/t4_main.c
cxgbe(4):  Verify that the addresses in if_multiaddrs really are multicast
addresses.  (The chip doesn't really care, it's just that it needs to be
told explicitly if unicast DMACs are checked for "hits" in the hash that
is used after the TCAM entries are all used up).
22:38:10 - r272050
(3 hours 45 minutes ago)
by ngie
Affects: 
(1023 files)
/user/ngie/add-pjdfstest/*
MFhead @ r272049
22:29:03 - r272049
(3 hours 54 minutes ago)
by rodrigc
Affects: 
(7 files)
/head/contrib/atf/*
Delete mentions to removed manpages

Obtained from:  atf (git 23c570d6f393c76dff041360bb5f7779900c7191)
22:27:34 - r272048
(3 hours 56 minutes ago)
by pjd
Affects: 
(2 files)
/stable/9/sys/kern/capabilities.conf
MFC r236360,r236361:

- Add missing system calls.
- Remove rmdirat system call which doesn't exist.
22:23:58 - r272047
(3 hours 59 minutes ago)
by ngie
Affects:  /user/ngie/add-pjdfstest/contrib/pjdfstest/pjdfstest.c
Revert r271574 to avoid changing vendor code
22:20:19 - r272046
(4 hours 3 minutes ago)
by rodrigc
Affects:  /head/contrib/atf/FREEBSD-upgrade
The ATF source code is now hosted on GitHub.
22:15:04 - r272045
(4 hours 8 minutes ago)
by ngie
Affects:  /user/ngie/add-pjdfstest/tests/sys/pjdfstest/pjdfstest/Makefile
Go the path of least resistance and disable -Werror
22:15:00 - r272044
(4 hours 8 minutes ago)
by delphij
Affects:  /head/sbin/sysctl/sysctl.c
Constify a parameter of name2oid.  No functional change.

MFC after:      2 months
22:07:08 - r272043
(4 hours 16 minutes ago)
by ngie
Affects:  /head/etc/rc.d/Makefile
/head/tools/build/mk/OptionalObsoleteFiles.inc
Don't install /etc/rc.d/keyserv unless MK_OPENSSL == yes

Sponsored by: EMC / Isilon Storage Division
21:56:15 - r272042
(4 hours 27 minutes ago)
by pjd
Affects: 
(2 files)
/stable/9/contrib/openbsm/bin/auditdistd/subr.c
MFC r271577:

Fix descriptors leak.

PR:             bin/191002
Reported by:    Ryan Steinmetz
Submitted by:   mjg
21:38:05 - r272041
(4 hours 45 minutes ago)
by smh
Affects: 
(5 files)
/stable/10/usr.sbin/mfiutil/*
MFC r271429, r271882:
Add support for controlling mfi(4) controller properties

Approved by:    re (glebius)
Sponsored by:   Multiplay
20:35:48 - r272040
(5 hours 48 minutes ago)
by mav
Affects: 
(4 files)
/head/sys/cam/ctl/*
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.

MFC after:      3 days
19:32:42 - r272039
(6 hours 51 minutes ago)
by bz
Affects:  /stable/9/sys/modules/Makefile
After r266269 unbreak the pc98 builds by only building the xenhvm
module for amd64 and i386 but not for pc98.
19:24:13 - r272038
(6 hours 59 minutes ago)
by bdrewery
Affects:  /head/sys/conf/NOTES
Note KBI breakage with DEBUG_LOCKS.

It specifically modifies struct lock, which many other structures embed.

Noted by:       kib
MFC after:      3 days
X-MFC-with:     r272032
19:12:06 - r272037
(7 hours 11 minutes ago)
by trasz
Affects:  /head/usr.sbin/autofs/common.c
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
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
18:54:23 - r272036
(7 hours 29 minutes ago)
by kib
Affects:  /head/sys/vm/vm_map.c
vm_map_pmap_enter() and pmap_enter_object() are currently not aware of
the wired attribute of the mapping.  As result, some pmap
implementations clear the wired state of the page table entries, which
breaks invariants and allows the entries to be lost.  Avoid calling
vm_map_pmap_enter() for the MADV_WILLNEED on the wired entry, the
pages must be already mapped.

Noted and reviewed by:  alc
Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
18:38:06 - r272035
(7 hours 45 minutes ago)
by markj
Affects:  /head/etc/defaults/periodic.conf
Remove settings for pkg_* scripts which are no longer present.

MFC after:      1 week
18:22:40 - r272034
(8 hours 1 minute ago)
by rpaulo
Affects:  /head/cddl/usr.sbin/Makefile
Build plockstat if WITH_PLOCKSTAT is defined.
17:30:00 - r272033
(8 hours 53 minutes ago)
by mav
Affects:  /head/sys/cam/ctl/ctl_error.c
Fix ASCQ for "Logical unit not ready, manual intervention required" error.
17:04:21 - r272032
(9 hours 19 minutes ago)
by bdrewery
Affects:  /head/sys/conf/NOTES
DEBUG_LOCKS no longer modifies 'struct vnode', nor does fstat(1) use it.
fstat(1) now uses libprocstat(9).  There is no userland impact to using this.

MFC after:      3 days
16:06:28 - r272031
(10 hours 17 minutes ago)
by bz
Affects: 
(10 files)
/stable/9/sys/amd64/linux32/*
/stable/9/sys/i386/linux/*
 This is a direct commit rather than an MFC of r271744.

   Re-gen after r272029 (r271743 in head) implementing most of
   timer_{create,settime,gettime,getoverrun,delete}.

Sponsored by:   DARPA/AFRL
16:05:23 - r272030
(10 hours 18 minutes ago)
by marcel
Affects: 
(11 files)
/stable/10/usr.bin/mkimg/*
MFC 271881: Fix partition alignment and image rounding when any of
-P (block size),  -T (track size) or -H (number of heads) is given.

Approved by:    re@ (gjb)
16:03:57 - r272029
(10 hours 19 minutes ago)
by bz
Affects: 
(18 files)
/stable/9/sys/*
MFC r269669,271743:

 Split up sys_ktimer_getoverrun() into a sys_ and a kern_ variant
 and export the kern_ version needed by an upcoming linuxolator change.

 Implement most of timer_{create,settime,gettime,getoverrun,delete}
 for amd64/linux32.  Fix the entirely bogus (untested) version from
 r161310 for i386/linux using the same shared code in compat/linux.

 Reviewed by:           jhb
 Differential Revision: D784
Sponsored by:   DARPA/AFRL
13:58:39 - r272028
(12 hours 25 minutes ago)
by bdrewery
Affects:  /head/usr.sbin/newsyslog/newsyslog.8
Make it more explicitly clear that -t will not change filename.

MFC after:      3 days
12:37:01 - r272027
(13 hours 46 minutes ago)
by hselasky
Affects: 
(55 files)
/head/contrib/ofed/*
/head/sys/*
Hardware driver update from Mellanox Technologies, including:
 - improved performance
 - better stability
 - new features
 - bugfixes

Supported HCAs:
 - ConnectX-2
 - ConnectX-3
 - ConnectX-3 Pro

Sponsored by:   Mellanox Technologies
MFC after:      1 week
11:41:09 - r272026
(14 hours 42 minutes ago)
by mjg
Affects:  /head/usr.bin/xinstall/xinstall.c
install: re-check failed mkdir for EEXIST

Since the code stats and mkdirs in 2 separate steps, it is possible that
the directory will be created in the meantime by something else (e.g.
concurrent install).[1]

While here alter the code to properly report stat failure, previously it
would always claim it was mkdir which failed.

Noted by: royger [1]
MFC after:      1 week
11:27:43 - r272025
(14 hours 56 minutes ago)
by trasz
Affects:  /head/sys/fs/autofs/autofs_vnops.c
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

MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
10:56:42 - r272024
(15 hours 27 minutes ago)
by jceel
Affects:  /user/jceel/soc2014_evdev/head/sys/amd64/conf/EVDEV
/user/jceel/soc2014_evdev/head/sys/dev/evdev/cdev.c
/user/jceel/soc2014_evdev/head/sys/dev/evdev/uinput.c
Changes as follows:

* Added vt(4) to EVDEV kernel config
* Fixed /dev/input/event%d device numbering
* Fixed uinput evdev_alloc()/evdev_free() to prevent memory leaks
08:39:08 - r272023
(17 hours 44 minutes ago)
by bz
Affects:  /head/sys/dev/ixl/i40e_common.c
Given we are restricting ixl(4) to 64bit platforms now backout the change
r270820 to common (shared) Intel code no longer needed.

MFC after:      3 days
08:33:03 - r272022
(17 hours 50 minutes ago)
by bz
Affects: 
(6 files)
/head/sys/amd64/conf/*
/head/sys/conf/*
/head/sys/modules/Makefile
As per [1] Intel only supports this driver on 64bit platforms.
For now restrict it to amd64.  Other architectures might be
re-added later once tested.

Remove the drivers from the global NOTES and files files and move
them to the amd64 specifics.
Remove the drivers from the i386 modules build and only leave the
amd64 version.

Rather than depending on "inet" depend on "pci" and make sure that
ixl(4) and ixlv(4) can be compiled independently [2].  This also
allows the drivers to build properly on IPv4-only or IPv6-only
kernels.

PR:             193824 [2]
Reviewed by:    eric.joyner intel.com
MFC after:      3 days

References:
[1] http://lists.freebsd.org/pipermail/svn-src-all/2014-August/090470.html
07:53:32 - r272021
(18 hours 30 minutes ago)
by bz
Affects: 
(10 files)
/stable/10/sys/amd64/linux32/*
/stable/10/sys/i386/linux/*
This is a direct commit rather than an MFC of r271744.

  Re-gen after r272020 (r271743 in head) implementing most of
  timer_{create,settime,gettime,getoverrun,delete}.

Approved by:    re (gjb)
Sponsored by:   DARPA/AFRL
07:50:04 - r272020
(18 hours 33 minutes ago)
by bz
Affects: 
(13 files)
/stable/10/sys/*
MFC r271743:

  Implement most of timer_{create,settime,gettime,getoverrun,delete}
  for amd64/linux32.  Fix the entirely bogus (untested) version from
  r161310 for i386/linux using the same shared code in compat/linux.

  It is unclear to me if we could support more clock mappings but
  the current set allows me to successfully run commercial
  32bit linux software under linuxolator on amd64.

  Reviewed by:                  jhb
  Differential Revision:        D784
Sponsored by:                   DARPA, AFRL
Approved by:                    re (gjb)
06:32:19 - r272019
(19 hours 51 minutes ago)
by rpaulo
Affects:  /head/sys/Makefile
Remove "pci" from CSCOPEDIRS.
06:31:46 - r272018
(19 hours 52 minutes ago)
by rpaulo
Affects:  /head/sys/pci
Remove the empty sys/pci directory.
06:31:15 - r272017
(19 hours 52 minutes ago)
by rpaulo
Affects: 
(19 files)
/head/sys/*
Move all the power management (SMBus) drivers to their own directory,
away from sys/pci.
05:54:18 - r272016
(20 hours 29 minutes ago)
by rpaulo
Affects: 
(9 files)
/head/sys/*
Move amdsmb and nfsmb from dev/pci to their own device directory.
05:37:17 - r272015
(20 hours 46 minutes ago)
by rpaulo
Affects: 
(12 files)
/head/sys/*
Move pci/ncr to dev/ncr.
04:13:21 - r272014
(22 hours 10 minutes ago)
by nwhitehorn
Affects:  /head/sys/powerpc/aim/locore64.S
We should have an isync after switching MSR[SF] in bootstrap.

Submitted by:   Mark Millard
MFC after:      3 days
02:56:40 - r272013
(23 hours 27 minutes ago)
by jhibbits
Affects: 
(5 files)
/head/sys/dev/pci/*
/head/sys/kern/*
/head/sys/sys/bus.h
Stage one of multipass suspend/resume

Summary:
Add the beginnings of multipass suspend/resume, by introducing
BUS_SUSPEND_CHILD/BUS_RESUME_CHILD, and move the PCI driver to this.

Reviewers: jhb

Reviewed By: jhb

Differential Revision: https://reviews.freebsd.org/D590
01:18:18 - r272012
(1 day 1 hour ago)
by gjb
Affects:  /stable/10/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document r272006, GEOM_ELI passphrase caching on boot with multiple
providers.

Approved by:    re (implicit)
Sponsored by:   The FreeBSD Foundation
01:18:16 - r272011
(1 day 1 hour ago)
by gjb
Affects:  /stable/10/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document r271967, mkimg(1) empty partition support.

Approved by:    re (implicit)
Sponsored by:   The FreeBSD Foundation
01:18:13 - r272010
(1 day 1 hour ago)
by gjb
Affects:  /stable/10/release/doc/en_US.ISO8859-1/relnotes/article.xml
Add sponsor attribution for r271470

Approved by:    re (implicit)
Sponsored by:   The FreeBSD Foundation
01:18:11 - r272009
(1 day 1 hour ago)
by gjb
Affects:  /stable/10/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document r271816, drm/i915 HW context support.

Approved by:    re (implicit)
Sponsored by:   The FreeBSD Foundation
01:18:09 - r272008
(1 day 1 hour ago)
by gjb
Affects:  /stable/10/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document r271470, addition of BIOS- and UEFI-capable CDROM images.

Approved by:    re (implicit)
Sponsored by:   The FreeBSD Foundation
01:17:22 - r272007
(1 day 1 hour ago)
by grehan
Affects:  /head/usr.sbin/bhyve/smbiostbl.c
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.

Reviewed by:    tychon
Reported by:    julian
MFC after:      1 day
00:43:18 - r272006
(1 day 1 hour ago)
by cperciva
Affects: 
(2 files)
/stable/10/sys/geom/eli/g_eli.c
MFC r271664:
  Cache GELI passphrases entered at the console during the boot process,
  in order to improve user-friendliness when a system has multiple disks
  encrypted using the same passphrase.

Relnotes:       yes
Approved by:    re (gjb)
2014 - 09 - 22   (2 days ago)
22:38:54 - r272005
(1 day 3 hours ago)
by ian
Affects:  /projects/arm_intrng/sys/arm/arm/intrng.c
Use the right variable for determining that we exited the loop without
finding an interrupt handler.
21:12:30 - r272004
(1 day 5 hours ago)
by davidcs
Affects: 
(2 files)
/stable/10/sys/dev/bxe/ecore_sp.h
MFC r271728
For ECORE_DBG_BREAK_IF() ECORE_BUG() ECORE_BUG_ON() check bxe_debug flag before
printing error message.

Approved by:    re(gjb)
21:09:30 - r272003
(1 day 5 hours ago)
by markj
Affects:  /head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c
Remove an incorrect close(2) call that was added in r271413.

Reported by:    Coverity
CID:            1238923
X-MFC-With:     r271413
21:02:38 - r272002
(1 day 5 hours ago)
by markj
Affects:  /head/cddl/contrib/opensolaris/lib/libdtrace/common/drti.c
Remove some variables that are no longer used as of r271413.

Reported by:    Coverity
CID:            1238924
X-MFC-With:     r271413
20:53:17 - r272001
(1 day 5 hours ago)
by davidcs
Affects: 
(2 files)
/stable/10/sys/modules/bce/Makefile
MFC r271727
remove clean option from Makefile

Approved by:    re(gjb)
20:38:01 - r272000
(1 day 5 hours ago)
by jhb
Affects: 
(6 files)
/head/sys/dev/tws/*
Switch from timeout(9) to callout(9).  In addition, do not teardown the
IRQ handler while resetting the controller and add some missing teardown
actions in detach.

Reviewed by:    delphij
20:34:36 - r271999
(1 day 5 hours ago)
by jhb
Affects: 
(13 files)
/stable/10/sys/amd64/*
/stable/10/sys/i386/*
/stable/10/sys/x86/acpica/acpi_wakeup.c
MFC 270850,271053,271192,271717:
Save and restore FPU state across suspend and resume on i386.
- Create a separate structure for per-CPU state saved across suspend and
  resume that is a superset of a pcb.
- Store the FPU state for suspend and resume in the new structure
  (for amd64, this moves it out of the PCB)
- On both i386 and amd64, all of the FPU suspend/resume handling is now
  done in C.

Approved by:    re (hrs)
20:10:45 - r271998
(1 day 6 hours ago)
by marcel
Affects:  /stable/10/sys/ia64/ia64/machdep.c
Make sure all memory updates are made visible before we let go
of the thread in cpu_switch(). It's otherwise possible that on
another CPU the thread continues from stale context data.

Note that this is prominent on newer CPUs, like the Montecito,
that really take advantage of the weak memory ordering. First
generation Itanium 2 is not that aggressive and does not need
this.

This is a direct commit to stable/10.

Approved by:    re@ (gjb)
20:04:59 - r271997
(1 day 6 hours ago)
by brueffer
Affects:  /stable/10/release/doc/en_US.ISO8859-1/relnotes/article.xml
Spelling, grammar and punctuation fixes.

Approved by:    re (gjb)
19:56:21 - r271996
(1 day 6 hours ago)
by emaste
Affects: 
(4 files)
/stable/10/sys/boot/amd64/boot1.efi/boot1.c
/stable/10/sys/boot/efi/include/eficonsctl.h
/stable/10/sys/boot/efi/libefi/libefi.c
MFC r271762: Switch to text mode in UEFI boot

    The loader previously failed to display on MacBooks and other
    systems where the UEFI firmware remained in graphics mode.

    Submitted by:       Rafael Espindola

Approved by:    re
19:42:18 - r271995
(1 day 6 hours ago)
by davidcs
Affects: 
(4 files)
/stable/9/sys/dev/bxe/ecore_sp.h
MFC r271728
For ECORE_DBG_BREAK_IF() ECORE_BUG() ECORE_BUG_ON() check bxe_debug flag before
printing error message.
19:37:03 - r271994
(1 day 6 hours ago)
by davidcs
Affects: 
(4 files)
/stable/9/sys/modules/bce/Makefile
MFC r271727
remove clean option from Makefile
19:28:21 - r271993
(1 day 6 hours ago)
by davidcs
Affects: 
(4 files)
/stable/9/sys/modules/bxe/Makefile
MFC r271726
remove clean option from Makefile
19:14:27 - r271992
(1 day 7 hours ago)
by lwhsu
Affects: 
(4 files)
/head/ObsoleteFiles.inc
/head/share/man/man9/*
/head/sys/sys/sleepqueue.h
Reflect the chanages in sleepqueue.h and subr_sleepqueue.c

- Priority argument is introduced to sleepq_*wait* in r177085
- sleepq_calc_signal_retval is removed from implementation
- sleepq_catch_signals is internal now

Differential Revision:  https://reviews.freebsd.org/D794
Reviewed by:    jhb
Approved by:    jhb
19:09:04 - r271991
(1 day 7 hours ago)
by davidcs
Affects: 
(4 files)
/stable/8/sys/dev/bxe/ecore_sp.h
MFC r271728
For ECORE_DBG_BREAK_IF() ECORE_BUG() ECORE_BUG_ON() check bxe_debug flag before
printing error message.
19:07:27 - r271990
(1 day 7 hours ago)
by sbruno
Affects:  /head/UPDATING
UPDATING:  linux-c6 support notes, and how to fall back to linux-f10.

PR:             187786
MFC after:      2 days
Relnotes:       yes
19:03:23 - r271989
(1 day 7 hours ago)
by davidcs
Affects: 
(4 files)
/stable/8/sys/modules/bce/Makefile
MFC r271727
remove clean option from Makefile
19:00:30 - r271988
(1 day 7 hours ago)
by davidcs
Affects: 
(2 files)
/stable/10/sys/modules/bxe/Makefile
MFC r271726
remove clean option from Makefile

Approved by: re(gjb)
18:57:37 - r271987
(1 day 7 hours ago)
by davidcs
Affects: 
(4 files)
/stable/8/sys/modules/bxe/Makefile
MFC r271726
Remove clean option from Makefile
18:36:37 - r271986
(1 day 7 hours ago)
by davidcs
Affects: 
(3 files)
/stable/7/sys/dev/bxe/ecore_sp.h
MFC r271728
For ECORE_DBG_BREAK_IF() ECORE_BUG() ECORE_BUG_ON() check bxe_debug flag before
printing error message.
18:31:40 - r271985
(1 day 7 hours ago)
by davidcs
Affects: 
(3 files)
/stable/7/sys/modules/bce/Makefile
MFC r271727
Remove clean option form Makefile
18:29:14 - r271984
(1 day 7 hours ago)
by davidcs
Affects: 
(3 files)
/stable/7/sys/modules/bxe/Makefile
MFC r271726
Remove clean option in Makefile
17:32:27 - r271983
(1 day 8 hours ago)
by jhb
Affects:  /head/sys/opencrypto/cryptodev.c
Fix build for kernels without COMPAT_FREEBSD32.
17:26:07 - r271982
(1 day 8 hours ago)
by sbruno
Affects:  /head/sys/compat/linux/linux_mib.c
Bump minimum linux compat version to support Centos6 ports updates for linux.

Update linux compat minimum revision to match linux-c6 now in ports.  This
is a candidate for 10.1 R as it matches the current state of supported
linux compat packages in the ports tree.

PR:             187786
Reviewed by:    xmj
MFC after:      2 days
Relnotes:       yes
16:52:09 - r271981
(1 day 9 hours ago)
by marcel
Affects:  /head/usr.bin/mkimg/tests/mkimg.sh
Rename the tests to something more meaningful. I spent way too long
trying to get the test name right, failed, gave up and used a sequence
number instead. When I realized it wasn't because of the number of
underscores in the name that I really started to think. I didn't have
braces around the variable names ...

Thus: test_1 is now called apm_1x1_512_qcow, which gives you all you
need to run mkimg by hand.

Dumb-ass: marcel
16:45:28 - r271980
(1 day 9 hours ago)
by cy
Affects:  /head/sys/contrib/ipfilter/netinet/ip_dstlist.c
Check for NULL before de-refencing; in particular sel is assigned to NULL,
in the default case, and then couple of lines down we do sel->

Approved by:    glebius (mentor)
Obtained from:  NetBSD CVS repo (r1.5)
16:37:37 - r271979
(1 day 9 hours ago)
by marcel
Affects:  /head/usr.bin/mkimg/tests/mkimg.sh
Don't update the baseline file when the result of the test is identical
to the baseline. Since we don't run gzip with the -n option, the output
of gzip varies for identical result files if and when they are created
at different time. Ouch...

Rather than add -n and commit a 600K+ diff for the changes to all the .uu
files, it's less of a churn to uudecode and gunzip the baseline file and
compare that to the new result file to determine if the baseline file
needs to be updated.

This way, "atf-sh mkimg.sh rebase" can be run as many times as people like
and a subsequent "svn status" will not show unnecessary diffs.
16:35:48 - r271978
(1 day 9 hours ago)
by cy
Affects:  /head/contrib/ipfilter/tools/ipnat_y.y
#552 destination port not zero after parsing nat rule

Approved by:    glebius (mentor)
Obtained from:  netbsd CVS repo (r1.4), ipfilter CVS repo (r1.38)
16:21:25 - r271977
(1 day 10 hours ago)
by cy
Affects:  /head/contrib/ipfilter/tools/ipnat_y.y
3561691 gethost never returns an ipv6 address

Approved by:    glebius (mentor)
Obtained from:  ipfilter CVS repo (r1.34), netbsd CVS repo (r1.4)
16:20:47 - r271976
(1 day 10 hours ago)
by jhb
Affects: 
(16 files)
/head/sys/*
Add a new fo_fill_kinfo fileops method to add type-specific information to
struct kinfo_file.
- Move the various fill_*_info() methods out of kern_descrip.c and into the
  various file type implementations.
- Rework the support for kinfo_ofile to generate a suitable kinfo_file object
  for each file and then convert that to a kinfo_ofile structure rather than
  keeping a second, different set of code that directly manipulates
  type-specific file information.
- Remove the shm_path() and ksem_info() layering violations.

Differential Revision:  https://reviews.freebsd.org/D775
Reviewed by:    kib, glebius (earlier version)
16:20:38 - r271975
(1 day 10 hours ago)
by rpaulo
Affects:  /head/sys/dev/asmc/asmc.c
/head/sys/dev/asmc/asmcvar.h
Improvements to asmc(4):

1. changed the code so that 2**16 keys are supported
2. changed the number of possible fans in a system from 2 to 6
3. added write support for some fan sysctls
4. added a new sysctl which shows the ID of the fan
5. added four more apple models with their temperature keys
6. changed the maxnumber of temperature keys from 36 to 80
7. replaced several fixed buf sizes to sizeof buf

Obtained from:  Denis Ahrens denis at h3q.com
MFC after:      4 weeks
16:13:38 - r271974
(1 day 10 hours ago)
by cy
Affects:  /head/contrib/ipfilter/tools/ipf_y.y
#551 ipf.conf address structure not properly zero filled

Approved by:    glebius (mentor)
Obtained from:  ipfilter CVS repo (r1.37), netbsd CVS repo (r1.3)
16:13:33 - r271973
(1 day 10 hours ago)
by dumbbell
Affects: 
(4 files)
/stable/10/sys/dev/vt/vt.h
/stable/10/sys/dev/vt/vt_buf.c
/stable/10/sys/dev/vt/vt_core.c
vt(4): Merge several bug fixes and improvements

SVN revisions in this MFC:
  271756 271758 271868 271871 271872 271899

Detailed commit list:

r271756:
  vt(4): Fix out-of-bounds array access in VT_ACTIVATE ioctl handling

  CID:          1229964

r271758
  vt(4): Use strncpy() to copy into a fixed-size buffer

  CID:          1230007

r271868:
  vt(4): Remove vt_buf->vb_dirtymask

  This structure and the associated functions were unused since the
  implementation of vd_bitblt_text_t callbacks.

r271871:
  vt(4): Rewrite history scrolling

  It's now possible to scroll up the 500 hard-coded lines of history, not
  just a fraction of them. For instance, one can reach the top of the boot
  process.

  Sometimes, when scrolling or when changing the screen size (by changing
  the font or loading a KMS driver for instance), one could see the
  history cycling (old content appeared below latest lines). This is
  fixed.

  Now, when the resolution changes are more lines can be shown, the
  displayed area is adjusted so that, if the screen was filled with
  content before, it's filled with content after as well: more history
  is visible, instead of having blank lines below the previously visible
  content.

r271872:
  vt(4): Remove superfluous word in comment

  Submitted by: brueffer@

r271899:
  Make gcc happy by initialising the variable only set in a couple of
  case statements without a default.

Approved by:    re (marius)
16:09:18 - r271972
(1 day 10 hours ago)
by cy
Affects:  /head/contrib/ipfilter/lib/printnat.c
#536 ipnat can try to print rule as dstlist incorrectly

Approved by:    glebius (mentor)
Obtained from:  ipfilter CVS repo (r1.14), netbsd CVS repo (r1.3)
16:06:37 - r271971
(1 day 10 hours ago)
by cy
Affects:  /head/contrib/ipfilter/lib/gethost.c
#553 gethost needs to zero entire IP address structure

Approved by:    glebius (mentor)
Obtained from:  ipfilter CVS repo (r1.11)
16:03:29 - r271970
(1 day 10 hours ago)
by cy
Affects:  /head/contrib/ipfilter/lib/gethost.c
ipv6 address for test.hosts.dots in wrong byte order.

Approved by:    glebius (mentor)
Obtained from:  ipfilter CVS repo (r1.11), netbsd CVS repo (r1.5)
15:32:31 - r271969
(1 day 10 hours ago)
by bz
Affects: 
(3 files)
/stable/10/sys/dev/altera/atse/a_api.h
/stable/10/sys/dev/altera/atse/if_atse.c
MFC r271679:

  Merge atse(4) interrupt handling and race condition fixes from
  cheribsd.

  Obtained from:        cheribsd
  Submitted by:         rwatson, emaste
Sponsored by:           DARPA/AFRL
Approved by:            re (delphij)
15:27:23 - r271968
(1 day 10 hours ago)
by marcel
Affects:  /head/usr.bin/mkimg/tests/mkimg.sh
Don't echo '# $FreeBSD$' as the first line into the .uu file.  Keyword
substitution applies to this file, including the echo command. Avoid
the match (and substitution) by breaking the string up into 3 parts.
15:22:57 - r271967
(1 day 11 hours ago)
by marcel
Affects: 
(3 files)
/stable/10/usr.bin/mkimg/mkimg.1
/stable/10/usr.bin/mkimg/mkimg.c
MFC 271482: Add support for adding empty partition entries.

Relnotes:       yes
Approved by:    re@ (gjb)
15:08:58 - r271966
(1 day 11 hours ago)
by marcel
Affects: 
(29 files)
/head/usr.bin/mkimg/tests/*
Update the unit tests to include the QCOW (version 1) format.
This is a good safety net for when V2 is added.
15:05:28 - r271965
(1 day 11 hours ago)
by marcel
Affects:  /head/usr.bin/mkimg/Makefile
/head/usr.bin/mkimg/qcow.c
Add support for QCOW version 1. Version 2 is partially implemented.
And because of that, it's entirely disabled for now. Both versions
are similar enough that a single header definition works for both
of them. The only "diverting" side-effect is that the union of the
two is larger than the official V1 header.

What this means for our V1 support is that we can't put the L1 table
adjacent to the V1 header (i.e. at offset 0x30 in the file), unless
we revert to hackery and klugery. Let's not. Instead, we align the L1
table at the cluster boundary. This is in line with the V2 layout and
perfectly ok for V1 anyway (ok -- as far as I've seen so far).
Due to the alignment, our V1 image seems to be 1 cluster larger than
the V1 image created by qemu-img (on average).

Compression of the clusters is not supported at this time.

MFC after:      2 months
14:54:12 - r271964
(1 day 11 hours ago)
by gjb
Affects: 
(2 files)
/stable/10/usr.sbin/bhyve/bhyve.8
MFC r271711:
  Update the bhyve(8) manual to reflect that it is no
  longer considered 'experimental.'

Approved by:    re (delphij)
Sponsored by:   The FreeBSD Foundation
14:27:26 - r271963
(1 day 11 hours ago)
by jhb
Affects:  /head/sys/dev/acpica/acpi.c
/head/sys/dev/atkbdc/atkbd.c
/head/sys/kern/kern_cons.c
Convert from timeout(9) to callout(9).
13:07:55 - r271962
(1 day 13 hours ago)
by trasz
Affects: 
(4 files)
/stable/10/tools/regression/acltools/01.t
/stable/10/tools/regression/acltools/03.t
/stable/10/tools/regression/acltools/04.t
MFC r271459:

Fix ACL tests to correctly work with ZFS; previous version used wrong
paths.

PR:             191545
Approved by:    re (gjb)
Sponsored by:   The FreeBSD Foundation
13:07:03 - r271961
(1 day 13 hours ago)
by np
Affects: 
(3 files)
/stable/10/share/man/man4/cxgbe.4
/stable/10/sys/dev/cxgbe/t4_main.c
MFC r271450:
cxgbe(4): knobs to enable/disable PAUSE frame based flow control.

Approved by:    re (glebius)
13:04:49 - r271960
(1 day 13 hours ago)
by trasz
Affects:  /head/share/man/man9/Makefile
Add missing mlinks for section 9.

MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
12:40:43 - r271959
(1 day 13 hours ago)
by mav
Affects:  /head/sys/cam/ctl/ctl_cmd_table.c
Pretend that we support BYTCHK=1 in WRITE AND VERIFY command.

Technically that is not true, but since we don't implement VERIFY there
at all, doing only WRITE part, this is a minor sin.
11:54:13 - r271958
(1 day 14 hours ago)
by se
Affects:  /head/etc/rc.d/syscons
The new naming scheme for keymap files for use with vt(4) introduced a
collision for "no" as a country code with "NO" meaning "do not load any
keymap" (which also has been the default value in etc/defaults/rc.conf
for a long time).

The result of this collision is, that "kbdcontrol -l no" will load the
Norwegian keymap, while "keymap=no" in rc.conf was interpreted as the
lower case spelling of "NO" meaning "no keyboard" (and "no.kbd" was not
loaded).

Fix this by matching only the upper-case spelling "NO" in rc.d/syscons
when deciding whether to load a keymap file.

This will lead to "no.kbd" being loaded, if the until now valid (but
non-default) spelling "no" was used in an individual rc.conf file to mean
"no keyboard". But all alternatives I could think of introduce a larger
violation of POLA ...

Reported by:    Gyrd Thane Lange (gyrd-se at thanelange.no)
MFC after:      3 days
11:35:06 - r271957
(1 day 14 hours ago)
by mav
Affects:  /head/sys/cam/ctl/ctl_frontend_iscsi.c
Fix read overrun handling, broken by using wrong variable.

MFC after:      3 days
11:08:22 - r271956
(1 day 15 hours ago)
by pho
Affects:  /user/pho/stress2/misc/msdos5.sh
Added test scenario.

Sponsored by:    EMC / Isilon storage division
10:51:37 - r271955
(1 day 15 hours ago)
by pho
Affects:  /user/pho/stress2/misc/pfl3.sh
Added test scenario.

Sponsored by:    EMC / Isilon storage division
10:46:06 - r271954
(1 day 15 hours ago)
by mav
Affects:  /head/sys/cam/ctl/ctl.c
Deny ANCHOR flag set without UNMAP flag set in WRITE SAME commands.
10:21:42 - r271953
(1 day 16 hours ago)
by hselasky
Affects:  /head/sys/dev/usb/controller/xhci.c
Some XHCI hardware requires dropping the endpoint context before
adding it again.

MFC after:      3 days
Submitted by:   Kohji Okuno <okuno.kohji@jp.panasonic.com>
10:21:08 - r271952
(1 day 16 hours ago)
by ray
Affects: 
(7 files)
/stable/10/sys/dev/vt/*
MFC 271381-271382,271385,271463-271466,271485,271506

o Add sysctls to enable/disable potentially dengerous key combinations, like
        reboot/halt/debug.
o Add support for most key combinations supported by syscons(4).
o Some spelling fixes
o Remove stray whitespaces.
o Switch vt(4) to traditional behaviour with copy-paste same as syscons(4) do.
o Fix stray char on paste.
o Fix 'function declaration isn't a prototype' warning.
o vt(4): Enclose vt_mouse_paste() prototype inside #ifndef SC_NO_CUTPASTE/#endif

Approved by:    re (gjb)
Sponsored by:   The FreeBSD Foundation
10:05:36 - r271951
(1 day 16 hours ago)
by mav
Affects:  /head/sys/cam/ctl/ctl.c
Don't try to continue aborted commands if status was not set.
09:54:48 - r271950
(1 day 16 hours ago)
by jmmv
Affects:  /head/etc/mtree/BSD.tests.dist
Register /usr/tests/lib/libproc to fix build.

Missed in r271937, reviewed in D710.
09:22:58 - r271949
(1 day 17 hours ago)
by mav
Affects:  /head/sys/cam/ctl/ctl.c
Fix UNMAP stuck if the last block descriptor in the list is empty.

MFC after:      3 days
08:41:50 - r271948
(1 day 17 hours ago)
by pho
Affects:  /user/pho/stress2/misc/contigmalloc.sh
/user/pho/stress2/misc/md6.sh
Added two regresson tests.

Sponsored by:    EMC / Isilon storage division
08:29:48 - r271947
(1 day 17 hours ago)
by des
Affects: 
(100 files)
/stable/10/contrib/openpam/*
/stable/10/lib/libpam/libpam/Makefile
MFH (r271624): Upgrade to OpenPAM Ourouparia.

Approved by:    re (gjb)
08:27:27 - r271946
(1 day 17 hours ago)
by hselasky
Affects: 
(16 files)
/head/sys/*
Improve transmit sending offload, TSO, algorithm in general.

The current TSO limitation feature only takes the total number of
bytes in an mbuf chain into account and does not limit by the number
of mbufs in a chain. Some kinds of hardware is limited by two
factors. One is the fragment length and the second is the fragment
count. Both of these limits need to be taken into account when doing
TSO. Else some kinds of hardware might have to drop completely valid
mbuf chains because they cannot loaded into the given hardware's DMA
engine. The new way of doing TSO limitation has been made backwards
compatible as input from other FreeBSD developers and will use
defaults for values not set.

Reviewed by:    adrian, rmacklem
Sponsored by:   Mellanox Technologies
MFC after:      1 week
07:59:25 - r271945
(1 day 18 hours ago)
by mav
Affects:  /head/sys/cam/ctl/ctl.c
/head/sys/cam/ctl/ctl_private.h
Simplify legacy reservation handling.  Drop it on I_T nexus loss.
05:07:22 - r271944
(1 day 21 hours ago)
by sbruno
Affects:  /head/sys/kern/kern_malloc.c
svn revisions r269964 and r269963 seemed to have impaired small memory
footprint systems(32M/64M) and didn't leave enough free memory to load modules
when it was setting up page tables that for sizes that are never used on
these smallish boards.

Set kmem_zmax to PAGE_SIZE on these smaller systems (< 128M) to keep this
from happening. Verified on mips32 h/w.

PR:             193465
Submitted by:   delphij
Reviewed by:    adrian
05:00:55 - r271943
(1 day 21 hours ago)
by gjb
Affects: 
(2 files)
/stable/10/release/scripts/pkg-stage.sh
MFC r271876:
  When populating the dvd/packages/ directory, create
  a symlink to All/pkg-*.txz in the Latest/ directory.

  This allows 'pkg bootstrap' to work out-of-box if
  the REPOS_DIR environment is properly set.

Approved by:    re (delphij)
Sponsored by:   The FreeBSD Foundation
01:17:48 - r271942
(2 days 1 hour ago)
by mav
Affects:  /head/sys/cam/ctl/ctl_cmd_table.c
Don't report unsupported FUA_NV bit set in READ/WRITE commands as error.

While this bit is obsolete in SBC-3, SBC-2 allowed to silently ignore it.
01:04:27 - r271941
(2 days 1 hour ago)
by mav
Affects:  /head/sys/cam/ctl/ctl.c
Report proper errors codes for unsupported SERVICE ACTION values.
00:40:20 - r271940
(2 days 1 hour ago)
by mav
Affects:  /head/sys/cam/ctl/ctl.c
Polish INQUIRY command fields validation.
2014 - 09 - 21   (3 days ago)
23:42:54 - r271939
(2 days 2 hours ago)
by neel
Affects: 
(5 files)
/projects/bhyve_svm/sys/amd64/vmm/amd/*
Allow more VMCB fields to be cached:
- CR2
- CR0, CR3, CR4 and EFER
- GDT/IDT base/limit fields
- CS/DS/ES/SS selector/base/limit/attrib fields

The caching can be further restricted via the tunable 'hw.vmm.svm.vmcb_clean'.

Restructure the code such that the fields above are only modified in a single
place. This makes it easy to invalidate the VMCB cache when any of these fields
is modified.
21:31:16 - r271938
(2 days 4 hours ago)
by markj
Affects:  /head/tools/test/dtrace/Makefile
Ignore a test program which doesn't compile at the moment. It will be
addresed properly when integrating the DTrace tests with Kyua.
21:25:41 - r271937
(2 days 4 hours ago)
by markj
Affects: 
(6 files)
/head/lib/libproc/Makefile
/head/lib/libproc/test
/head/lib/libproc/tests/*
Add some ATF tests for libproc.

Differential Revision:  D710
Reviewed by:    jmmv, ngie, rpaulo
20:34:54 - r271936
(2 days 5 hours ago)
by jilles
Affects:  /head/bin/sh/sh.1
sh(1): Clarify that assignments before commands do not affect expansions.

PR:             193759
MFC after:      1 week
19:34:28 - r271935
(2 days 6 hours ago)
by ian
Affects:  /projects/arm_intrng/sys/arm/arm/intrng.c
Automatically allocate an ic_intrs array for nexus when it registers;
nexus isn't described in the fdt data which usually triggers allocation.
19:31:19 - r271934
(2 days 6 hours ago)
by smh
Affects:  /head/cddl/contrib/opensolaris/cmd/zpool/zpool_main.c
Output boot code warning when zpool upgrade -a is used to add features.

In the case where new features where enabled by a zpool upgrade -a the
boot code warning wasn't output.

Submitted by:   Jan Kokemueller
MFC after:      3 days
18:52:56 - r271933
(2 days 7 hours ago)
by neel
Affects:  /projects/bhyve_svm/sys/amd64/vmm/vmm_stat.c
/projects/bhyve_svm/sys/amd64/vmm/vmm_stat.h
Get rid of unused stat VMM_HLT_IGNORED.
18:15:09 - r271932
(2 days 8 hours ago)
by melifaro
Affects: 
(6 files)
/projects/ipfw/sys/modules/ipfw/Makefile
/projects/ipfw/sys/netpfil/ipfw/*
Add pre-alfa version of DXR lookup module.
It does build but (currently) does not work.

This change is not intended to be merged along with other ipfw changes.
15:37:39 - r271931
(2 days 10 hours ago)
by dim
Affects: 
(7 files)
/head/contrib/llvm/patches/*
Add a few missing llvm/clang patches, update the other ones to be able
to apply with the same patch options onto a fresh upstream llvm/clang
3.4.1 checkout, and use approximately the same header tempate for them.

MFC after:      3 days
14:39:31 - r271930
(2 days 11 hours ago)
by mav
Affects:  /head/sys/cam/ctl/ctl_cmd_table.c
Allow SUBPAGE CODE field in MODE SENSE commands.
13:09:05 - r271929
(2 days 13 hours ago)
by mav
Affects: 
(2 files)
/stable/10/usr.sbin/ctld/ctld.c
MFC r271797:  Make kernel to update LUN size from the backing storage
on configuration reload also if that size was not specified in the new
configuration.

Previously it happened only if size was explicitly changed in config.

Approved by:    re (delphij)
12:07:22 - r271928
(2 days 14 hours ago)
by mav
Affects: 
(2 files)
/stable/10/sys/cam/ctl/ctl_backend_block.c
MFC r271794: When updating device media size use cached cdevsw pointer.

Using pointer from the cdev directly is dangerous since we have no
reference on it, and it may change any time.  That caused panic if
device has gone.

While there, report capacity change only if it really changed.

Approved by:    re (dephij)
10:34:15 - r271927
(2 days 15 hours ago)
by trasz
Affects:  /head/sys/fs/autofs/autofs.c
Turns out -1 is a perfectly valid error number, ERESTART.  Remove useless
code written under assumption that it wasn't.

Sponsored by:   The FreeBSD Foundation
10:05:27 - r271926
(2 days 16 hours ago)
by mav
Affects:  /head/share/man/man4/ada.4
Mention read_ahead tunables/sysctls.

MFC after:      1 month
09:09:37 - r271925
(2 days 17 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/vm/vnode_pager.c
MFC r271586:
Fix mis-spelling of bits and types names in the vnode_pager_putpages().

Approved by:    re (delphij)
09:06:50 - r271924
(2 days 17 hours ago)
by kib
Affects:  /head/sys/amd64/amd64/fpu.c
/head/sys/amd64/amd64/trap.c
Update and clarify comments.  Remove the useless counter for impossible, but
seen in wild situation (on buggy hypervisors).

In collaboration with:  bde
MFC after:      1 week
07:16:51 - r271923
(2 days 19 hours ago)
by hrs
Affects:  /head/sys/net/route.h
Fix build.
06:36:17 - r271922
(2 days 19 hours ago)
by neel
Affects:  /projects/bhyve_svm/sys/amd64/amd64/pmap.c
The memory type bits (PAT, PCD, PWT) associated with a nested PTE or PDE
are identical to the traditional x86 page tables.
05:03:04 - r271921
(2 days 21 hours ago)
by hrs
Affects:  /head/sbin/routed/routed.8
Fix a typo.
04:38:50 - r271920
(2 days 21 hours ago)
by hrs
Affects:  /head/sys/netinet/in.c
Add a change missing in r271916.
04:00:28 - r271919
(2 days 22 hours ago)
by hrs
Affects: 
(5 files)
/head/sbin/routed/*
Fix a bug which could make routed(8) daemon exit by sending a special RIP
query from a remote machine, and disable accepting it by default.  This
requests a routed(8) daemon to dump routing information base for debugging
purpose.  An -i flag to enable it has been added.
03:56:06 - r271918
(2 days 22 hours ago)
by hrs
Affects:  /head/sys/net/if_gre.c
/head/sys/net/if_gre.h
/head/sys/netinet/ip_gre.c
- Virtualize interface cloner for gre(4).  This fixes a panic when destroying
  a vnet jail which has a gre(4) interface.

- Make net.link.gre.max_nesting vnet-local.
03:55:04 - r271917
(2 days 22 hours ago)
by hrs
Affects:  /head/sys/net/if_gif.c
Virtualize interface cloner for gif(4).  This fixes a panic when destroying
a vnet jail which has a gif(4) interface.
03:48:20 - r271916
(2 days 22 hours ago)
by hrs
Affects:  /head/sys/net/route.c
/head/sys/net/route.h
Make net.add_addr_allfibs vnet-local.
03:00:30 - r271915
(2 days 23 hours ago)
by ian
Affects:  /projects/arm_intrng/sys/arm/arm/gic.c
Don't register as an interrupt controller until after resource allocation
and all the other up-front things that could fail.
00:20:41 - r271914
(3 days 2 hours ago)
by jceel
Affects: 
(4 files)
/projects/arm_intrng/sys/arm/arm/*
/projects/arm_intrng/sys/arm/include/intr.h
Add method for binding interrupt to CPU in PIC interface (currently unused)
and mechanism for unified caching and translating FDT cells describing
interrupt to actual IRQ number through PIC kobj interface.
00:05:44 - r271913
(3 days 2 hours ago)
by bz
Affects:  /head/sys/dev/ixl/ixl_txrx.c
Hide LRO code under #ifdef INET/INET6 to allow NOIP kernel to compile.

While the code comments indicate that LRO is currently only supported
for IPv4/TCP, we'll still compile it in for IPv6.

MFC after:      3 days
2014 - 09 - 20   (4 days ago)
21:46:31 - r271912
(3 days 4 hours ago)
by neel
Affects: 
(23 files)
/projects/bhyve_svm/sys/*
/projects/bhyve_svm/usr.sbin/bhyve/*
IFC r271888.

Restructure MSR emulation so it is all done in processor-specific code.
21:02:54 - r271911
(3 days 5 hours ago)
by marcel
Affects: 
(117 files)
/head/etc/mtree/BSD.tests.dist
/head/usr.bin/mkimg/Makefile
/head/usr.bin/mkimg/tests/*
Add unit tests for mkimg(1):
19:54:19 - r271910
(3 days 6 hours ago)
by hrs
Affects:  /head/sbin/ping6/Makefile
/head/sbin/ping6/ping6.c
Fix a problem that reply packets are not received when -i T option is set
and (T < RTT).

- Use select(2) for timeout instead of interval timer. Remove poll(2) support.
- Use sigaction(2) instead of signal(3).
- Exit in SIGINT handler when two signals are received and doing reverse DNS
  lookup as ping(8) does.
- Remove redundant variables used for getaddrinfo(3).

PR:     151023
18:48:50 - r271909
(3 days 7 hours ago)
by hrs
Affects:  /head/sbin/ping6/ping6.c
Revert changes in r269180.  It could cause -c N option to enter an
infinite loop if no reply packet is received.

PR:     151023
16:43:14 - r271908
(3 days 9 hours ago)
by jhb
Affects: 
(4 files)
/head/sys/netgraph/bluetooth/include/*
/head/sys/netgraph/bluetooth/socket/*
Use callout(9) instead of timeout(9).

Reviewed by:    emax
15:45:29 - r271907
(3 days 10 hours ago)
by ian
Affects:  /head/share/man/man4/man4.arm/Makefile
/head/share/man/man4/man4.arm/cgem.4
Add a man page for the cgem(4) driver.

Submitted by:   Thomas Skibo <ThomasSkibo@sbcglobal.net>
Reviewed by:    wkoszek@, Yonghyeon PYUN <pyunyh@gmail.com>
14:49:21 - r271906
(3 days 11 hours ago)
by ian
Affects:  /head/sys/arm/arm/mpcore_timer.c
Make the ARM MPCore Timer driver work with published standard FDT bindings.

We've always considered the mpcore timers to be a single monolithic device
and we defined our own fdt binding for it with our own compat string.  The
published bindings treat the timers as two separate devices, a global
timer and a "timer-watchdog" device for the per-cpu private timers.  Thus
our binding has two tuples in the regs property, one set of registers for
the global timer and one for the private timers.  The published bindings
have two separate devices, each with a single set of registers.  (Note that
we don't use the optional watchdog feature of the hardware.)

These changes add the compat strings for the published bindings.  If our
own compat string appears, we expect to get two sets of memory resources.
For the published bindings, there's only one set of memory resources, and
only the private timers have an associated interrupt.

The other major change is that there can no longer be a single global var
for the softc pointer because now there may be multiple devices at
runtime.  Since the global timer is used only as a timecounter and the
private timers only as eventtimers, and there will only be one of each,
those are now the pointers which are global, and the priv fields of those
structures backlink to the device softc.
14:24:48 - r271905
(3 days 11 hours ago)
by kib
Affects: 
(3 files)
/stable/10/sys/amd64/amd64/pmap.c
/stable/10/sys/i386/i386/pmap.c
MFC r271716:
Presence of any VM_PROT bits in the permission argument on x86 implies
that the entry is readable and valid.

Approved by:    re (gjb)
13:48:52 - r271904
(3 days 12 hours ago)
by mav
Affects: 
(2 files)
/stable/10/sys/cam/ctl/ctl_tpc.c
MFC r271702:
Fix tpc_create_token() introduced in r269497 to encode CREATOR LOGICAL
UNIT DESCRIPTOR field as Identification Descriptor CSCD descriptor, not
just as Identification Descriptor.

Approved by:    re (gjb)
13:46:16 - r271903
(3 days 12 hours ago)
by mav
Affects: 
(2 files)
/stable/10/sys/cam/scsi/scsi_all.h
MFC r271700: Fix typo in defined ROD types in r269497.

Approved by:    re (gjb)
12:59:28 - r271902
(3 days 13 hours ago)
by jilles
Affects: 
(2 files)
/stable/9/usr.bin/pathchk/pathchk.c
MFC r256800: pathchk: Ensure bytes >= 128 are considered non-portable
characters.

This was not broken on architectures such as ARM where char is unsigned.

Also, remove the first non-portable character from the output. POSIX does
not require this, and printing the first byte may yield an invalid byte
sequence with UTF-8.

PR:             165988
Reported by:    Nicolas Rachinsky
Relnotes:       yes
09:18:58 - r271901
(3 days 17 hours ago)
by ganbold
Affects:  /head/sys/arm/allwinner/a10_clk.c
Fix typo in comment.
Disable AHB clock gate for ehci0.

Approved by:    stas (mentor)
08:34:56 - r271900
(3 days 17 hours ago)
by bz
Affects:  /head/sys/dev/ixl/if_ixl.c
/head/sys/dev/ixl/if_ixlv.c
Properly hide calls to ARP under #ifdef INET to allow IPv6-only
kernels to compile.

MFC atfer:      3 days
08:18:48 - r271899
(3 days 18 hours ago)
by bz
Affects:  /head/sys/dev/vt/vt_buf.c
Make gcc happy by initialising the variable only set in a couple of
case statements without a default.

MFC after:      2 days
X-MFC with:     r271871
08:03:15 - r271898
(3 days 18 hours ago)
by hselasky
Affects: 
(4 files)
/stable/8/sys/dev/usb/serial/u3g.c
MFC r271492:
Workaround for receiving Voice Calls using the E1750 dongle from
Huawei. It might appear as if the firmware is allocating memory blocks
according to the USB transfer size and if there is initially a lot of
data, like at the answering machine prompt, it simply dies without any
apparent reason. The simple workaround for this is to force a zero
length packet at hardware level after every 512 bytes of data. This
will force the other side to use smaller memory blocks aswell.
08:01:50 - r271897
(3 days 18 hours ago)
by hselasky
Affects: 
(3 files)
/stable/9/sys/dev/usb/serial/u3g.c
MFC r271492:
Workaround for receiving Voice Calls using the E1750 dongle from
Huawei. It might appear as if the firmware is allocating memory blocks
according to the USB transfer size and if there is initially a lot of
data, like at the answering machine prompt, it simply dies without any
apparent reason. The simple workaround for this is to force a zero
length packet at hardware level after every 512 bytes of data. This
will force the other side to use smaller memory blocks aswell.
07:59:34 - r271896
(3 days 18 hours ago)
by hselasky
Affects: 
(2 files)
/stable/10/sys/dev/usb/serial/u3g.c
MFC r271492:
Workaround for receiving Voice Calls using the E1750 dongle from
Huawei. It might appear as if the firmware is allocating memory blocks
according to the USB transfer size and if there is initially a lot of
data, like at the answering machine prompt, it simply dies without any
apparent reason. The simple workaround for this is to force a zero
length packet at hardware level after every 512 bytes of data. This
will force the other side to use smaller memory blocks aswell.

Approved by:    re, gjb
06:34:34 - r271895
(3 days 19 hours ago)
by ngie
Affects:  /head/etc/rc.d/Makefile
/head/tools/build/mk/OptionalObsoleteFiles.inc
Don't install /etc/rc.d/ftp-proxy unless MK_PF == yes

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
06:27:37 - r271894
(3 days 19 hours ago)
by neel
Affects: 
(401 files)
/projects/bhyve_svm/*
IFC @r271887
06:05:24 - r271893
(3 days 20 hours ago)
by ngie
Affects:  /head/etc/rc.d/Makefile
/head/tools/build/mk/OptionalObsoleteFiles.inc
Don't install /etc/rc.d/rwho unless MK_RCMDS == yes

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
05:49:15 - r271892
(3 days 20 hours ago)
by ngie
Affects:  /head/etc/rc.d/Makefile
Sort the optional rc.d scripts by their knobs

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
05:13:03 - r271891
(3 days 21 hours ago)
by neel
Affects:  /head/sys/amd64/vmm/io/vlapic.c
/head/sys/amd64/vmm/vmm.c
Add some more KTR events to help debugging.
05:12:34 - r271890
(3 days 21 hours ago)
by neel
Affects:  /head/sys/amd64/vmm/intel/vmx.c
MSR_KGSBASE is no longer saved and restored from the guest MSR save area. This
behavior was changed in r271888 so update the comment block to reflect this.

MSR_KGSBASE is accessible from the guest without triggering a VM-exit. The
permission bitmap for MSR_KGSBASE is modified by vmx_msr_guest_init() so get
rid of redundant code in vmx_vminit().
04:31:12 - r271889
(3 days 21 hours ago)
by adrian
Affects:  /head/sys/dev/acpica/acpi.c
/head/sys/dev/acpica/acpi_pci.c
Populate the device info string with _PXM (proximity domain) information.

This is primarily useful for debugging right now - it'll show up in
devinfo.

Reviewed by:    jhb
02:35:21 - r271888
(3 days 23 hours ago)
by neel
Affects: 
(15 files)
/head/sys/*
/head/usr.sbin/bhyve/*
Restructure the MSR handling so it is entirely handled by processor-specific
code. There are only a handful of MSRs common between the two so there isn't
too much duplicate functionality.

The VT-x code has the following types of MSRs:

- MSRs that are unconditionally saved/restored on every guest/host context
  switch (e.g., MSR_GSBASE).

- MSRs that are restored to guest values on entry to vmx_run() and saved
  before returning. This is an optimization for MSRs that are not used in
  host kernel context (e.g., MSR_KGSBASE).

- MSRs that are emulated and every access by the guest causes a trap into
  the hypervisor (e.g., MSR_IA32_MISC_ENABLE).

Reviewed by:    grehan
01:22:17 - r271887
(4 days 1 hour ago)
by adrian
Affects:  /head/sys/dev/ath/if_ath.c
/head/sys/dev/ath/if_ath_rx_edma.c
/head/sys/dev/ath/if_athvar.h
Fix up the EDMA RX setup path to correctly initialise and reset the RX FIFO.

The original code was .. well, slightly more than incorrect.

It showed up as stalled RX queues if the NIC needed to be frequently
reinitialised (eg during scans.)

This is inspired by work done by Matt Dillon over at the DragonflyBSD
project.

So:

* track when EDMA RX has been stopped and when the MAC has been reset;
* re-initialise the ring only after a reset;
* track whether RX has been stopped/started - just for debugging now;
* don't bother with the RX EOL stuff for EDMA - we don't need the
  interrupt at all.  We also don't need to disable/enable the interrupt
  or start DMA - once new frames are pushed into the ring via the
  normal RX path, it'll just restart RX DMA on its own.

Tested:

* AR9380, STA mode
* AR9380, AP mode
* AR9485, STA mode
* AR9462, STA mode
01:18:36 - r271886
(4 days 1 hour ago)
by adrian
Affects:  /head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_freebsd.c
Quieten the AR9300 HAL attach a little - the setupXTxDesc method
is only called during attach now.

The EDMA TX path never calls this - only the legacy TX path does.
01:17:02 - r271885
(4 days 1 hour ago)
by adrian
Affects:  /head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_stub.c
Quieten the AR9300 HAL probe a bit.
01:16:41 - r271884
(4 days 1 hour ago)
by adrian
Affects:  /head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300_freebsd.c
Don't double-call the ar9300 stub function method.
00:19:45 - r271883
(4 days 2 hours ago)
by gavin
Affects:  /head/share/man/man4/malo.4
Explain how to load the malo(4) firmware on boot.

PR:             193653
Submitted by:   Juan Ramón Molina Menor
MFC after:      3 days
2014 - 09 - 19   (5 days ago)
23:38:44 - r271882
(4 days 2 hours ago)
by smh
Affects:  /head/usr.sbin/mfiutil/mfi_properties.c
Style (9) fixes, spaces to tabs.

Fix style issues noticed when I went to MFC r257820

MFC after:      2 days
X-MFC-With:     r257820
Sponsored by:   Multiplay
23:16:02 - r271881
(4 days 3 hours ago)
by marcel
Affects: 
(10 files)
/head/usr.bin/mkimg/*
Fix partition alignment and image rounding when any of -P (block size),
-T (track size) or -H (number of heads) is given:
o   scheme_metadata() always rounded to the block size.  This is not
    always valid (e.g. vtoc8 that must have partitions start at cylinder
    boundaries).
o   The bsd and vtoc8 schemes "resized" the image to make it match the
    geometry, but since the geometry is an approximation and the size
    of the image computed from cylinders * heads * sectors is always
    smaller than the original image size, the partition information ran
    out of bounds.

The fix is to have scheme_metadata() simply pass it's arguments to the
per-scheme metadata callback, so that schemes not only know where the
metadata is to go, but also what the current block address is. It's now
up to the per-scheme callback to reserve room for metadata and to make
sure alignment and rounding is applied.

The BSD scheme now has the most elaborate alignment and rounding. Just
to make the point: partitions are aligned on block boundaries, but the
image is rounded to the next cyclinder boundary.

vtoc8 now properly has all partitions aligned (and rounded) to the
cyclinder boundary.

Obtained from:  Juniper Networks, Inc.
MFC after:      3 days
21:30:45 - r271880
(4 days 4 hours ago)
by emaste
Affects: 
(5 files)
/stable/10/sys/boot/amd64/efi/*
/stable/10/sys/boot/efi/libefi/Makefile
/stable/10/sys/boot/i386/libi386/comconsole.c
MFC r271475 by ambrisko:

    Add support for serial and null console to UEFI boot loader.

Approved by:    re
18:24:02 - r271879
(4 days 7 hours ago)
by pfg
Affects:  /head/contrib/one-true-awk/awk.1
/head/contrib/one-true-awk/main.c
/head/contrib/one-true-awk/run.c
awk: Use random(3) instead of rand(3)

While none of them is considered even near to cryptographic
level, random(3) is a better random generator than rand(3).

Use random(3) for awk as is done in other systems.

Thanks to Chenguang Li for discussing this in the lists
and submitting the patch upstream.

PR:             193147
MFC after:      5 weeks
18:13:56 - r271878
(4 days 8 hours ago)
by pfg
Affects:  /head/include/unistd.h
unistd: drop argument names from setpgrp(3) prototype.

They are useless and don't match the style of the header.
While here adjust the comment with tabs.

Suggested by:   kevinlo
18:12:46 - r271877
(4 days 8 hours ago)
by jhb
Affects:  /svnadmin/conf/access
/svnadmin/conf/mentors
Add Julien Charbon (jch@) as a source committer.

Julien will continue working on improving concurrency in the network
stack, especially for short-lived TCP connections.

I will mentor Julien.

Approved by:    core
17:23:44 - r271876
(4 days 9 hours ago)
by gjb
Affects:  /head/release/scripts/pkg-stage.sh
When populating the dvd/packages/ directory, create
a symlink to All/pkg-*.txz in the Latest/ directory.

This allows 'pkg bootstrap' to work out-of-box if
the REPOS_DIR environment is properly set.

Tested on:      stable/10@r271848
MFC after:      3 days
X-MFC-10.1:     yes
Sponsored by:   The FreeBSD Foundation
17:18:27 - r271875
(4 days 9 hours ago)
by rodrigc
Affects:  /head/contrib/atf/NEWS
/head/contrib/atf/atf-c/macros_h_test.c
Reference the test case "packs" to fix warnings

Put the various atf_tc_pack_t variables generated by ATF_TC to use in
the macros_h_test.c file so that we prevent some build warnings (and
thus some build errors) with clang and -Wunused.

Obtained from:  atf (git 70126d013db25c72539803f19f7e00baddacdf51)
16:06:54 - r271874
(4 days 10 hours ago)
by hselasky
Affects:  /head/sys/dev/usb/serial/u3g.c
/head/sys/dev/usb/usbdevs
Add new USB IDs.

PR:             193775
MFC after:      1 week
13:55:28 - r271873
(4 days 12 hours ago)
by smh
Affects:  /head/sys/conf/files
Fix static kernel build with options ZFS

This was broken by r271802.

MFC after:      1 week
X-MFC-With:     r271802
Sponsored by:   Multiplay
12:38:43 - r271872
(4 days 13 hours ago)
by dumbbell
Affects:  /head/sys/dev/vt/vt_core.c
vt(4): Remove superfluous word in comment

Submitted by:   brueffer@
MFC after:      3 days
MFC with:       271871
12:20:43 - r271871
(4 days 14 hours ago)
by dumbbell
Affects:  /head/sys/dev/vt/vt_buf.c
/head/sys/dev/vt/vt_core.c
vt(4): Rewrite history scrolling

It's now possible to scroll up the 500 hard-coded lines of history, not
just a fraction of them. For instance, one can reach the top of the boot
process.

Sometimes, when scrolling or when changing the screen size (by changing
the font or loading a KMS driver for instance), one could see the
history cycling (old content appeared below latest lines). This is
fixed.

Now, when the resolution changes are more lines can be shown, the
displayed area is adjusted so that, if the screen was filled with
content before, it's filled with content after as well: more history
is visible, instead of having blank lines below the previously visible
content.

MFC after:      3 days
11:49:41 - r271870
(4 days 14 hours ago)
by glebius
Affects:  /head/sys/dev/e1000/if_igb.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.
11:15:30 - r271869
(4 days 15 hours ago)
by mav
Affects:  /head/sys/cam/ctl/ctl.c
Fix inverted expression to report block size in mode page block descriptor.
11:02:44 - r271868
(4 days 15 hours ago)
by dumbbell
Affects:  /head/sys/dev/vt/vt.h
/head/sys/dev/vt/vt_buf.c
/head/sys/dev/vt/vt_core.c
vt(4): Remove vt_buf->vb_dirtymask

This structure and the associated functions were unused since the
implementation of vd_bitblt_text_t callbacks.

MFC after:      3 days
10:39:58 - r271867
(4 days 15 hours ago)
by glebius
Affects: 
(20 files)
/head/sys/net/*
Mechanically convert to if_inc_counter().
10:35:56 - r271866
(4 days 15 hours ago)
by glebius
Affects: 
(9 files)
/head/sys/dev/usb/wlan/*
Mechanically convert to if_inc_counter().
10:33:23 - r271865
(4 days 15 hours ago)
by glebius
Affects:  /head/sys/dev/rl/if_rl.c
Mechanically convert to if_inc_counter().
10:32:20 - r271864
(4 days 15 hours ago)
by glebius
Affects: 
(11 files)
/head/sys/*
Move rl(4) to dev/rl.
10:19:51 - r271863
(4 days 16 hours ago)
by glebius
Affects:  /head/sys/netinet/ip_gre.c
Mechanically convert to if_inc_counter().
10:18:14 - r271862
(4 days 16 hours ago)
by glebius
Affects:  /head/sys/netipsec/ipsec_input.c
/head/sys/netipsec/ipsec_output.c
Mechanically convert to if_inc_counter().
09:20:55 - r271861
(4 days 17 hours ago)
by glebius
Affects: 
(10 files)
/head/sys/net80211/*
Mechanically convert to if_inc_counter().
09:20:34 - r271860
(4 days 17 hours ago)
by glebius
Affects:  /head/sys/powerpc/ps3/if_glc.c
/head/sys/powerpc/pseries/phyp_llan.c
Mechanically convert to if_inc_counter().
09:20:16 - r271859
(4 days 17 hours ago)
by glebius
Affects: 
(7 files)
/head/sys/arm/*
Mechanically convert to if_inc_counter().
09:19:49 - r271858
(4 days 17 hours ago)
by glebius
Affects: 
(9 files)
/head/sys/mips/*
Mechanically convert to if_inc_counter().
09:19:29 - r271857
(4 days 17 hours ago)
by glebius
Affects:  /head/sys/netpfil/pf/if_pflog.c
/head/sys/netpfil/pf/if_pfsync.c
Mechanically convert to if_inc_counter().
09:01:19 - r271856
(4 days 17 hours ago)
by glebius
Affects: 
(22 files)
/head/share/man/man9/altq.9
/head/sys/*
Remove ifq_drops from struct ifqueue. Now queue drops are accounted in
struct ifnet if_oqdrops.

Some netgraph modules used ifqueue w/o ifnet. Accounting of queue drops
is simply removed from them. There were no API to read this statistic.

Sponsored by:   Netflix
Sponsored by:   Nginx, Inc.
07:44:49 - r271855
(4 days 18 hours ago)
by phk
Affects:  /head/sys/sys/timex.h
This is a white-space/comment cleanup commit as a precursor for
some upcoming work on the NTP kernel PLL.
07:18:45 - r271854
(4 days 19 hours ago)
by hrs
Affects:  /head/etc/devd/hyperv.conf
Fix cdev.  It is a device node name, not a pathname.
05:43:38 - r271853
(4 days 20 hours ago)
by glebius
Affects:  /head/sys/net/if_gre.c
Increase errors, not queue drops, in cases the module is supplied
with a bad packet or if mbuf allocation failes.
05:23:47 - r271852
(4 days 21 hours ago)
by glebius
Affects:  /head/sys/netinet/ip_output.c
Remove disabled code, that is very unlikely to be ever enabled again,
as well as the comment that explains why is it disabled.
05:03:11 - r271851
(4 days 21 hours ago)
by glebius
Affects:  /head/sys/netgraph/ng_eiface.c
/head/sys/netgraph/ng_iface.c
/head/sys/netgraph/ng_sppp.c
Mechanically convert to if_inc_counter().
03:55:19 - r271850
(4 days 22 hours ago)
by glebius
Affects:  /head/sys/dev/sf/if_sf.c
Fix typo.

Submitted by:   jkim
03:51:26 - r271849
(4 days 22 hours ago)
by glebius
Affects: 
(64 files)
/head/sys/dev/*
Mechanically convert to if_inc_counter().
00:03:25 - r271848
(5 days 2 hours ago)
by gjb
Affects:  /stable/10/sys/conf/newvers.sh
Update stable/10 to -BETA2 as part of the 10.1-RELEASE
cycle.

Approved by:    re (implicit)
Sponsored by:   The FreeBSD Foundation
2014 - 09 - 18   (6 days ago)
22:34:52 - r271847
(5 days 3 hours ago)
by pjd
Affects:  /head/lib/libnv/nvpair.c
Don't use nvl in case of a failure.

Reported by:    Coverity
CID:            1238922
22:27:02 - r271846
(5 days 3 hours ago)
by marcel
Affects: 
(2 files)
/stable/10/usr.bin/mkimg/bsd.c
Be compatible with boot code that starts right after the disk label in
the second sector by only clearing the amount of bytes needed for the
disklabel in the second sector. Previously we were clearing exactly 1
sector worth of bytes and as such writing over boot code that may have
been there.
Since we do support more than 8 partitions, make sure to set all fields
in d_partitions. For the first 8 partitions this is unneeded, but for
partitioons 9 and up this compensates for the fact that we don't clear
an entire sector anymore.
Obviously, one cannot use more than 8 partitions when using boot code
that starts right after the disk label.

Relevant GRNs:
107879 - Employ unused bytes after the disklabel in the second sector.
189500 - Revert the part of change 107879 that employs the unused bytes
         after the disklabel in the 2nd sector for boot code.

Obtained from:  Juniper Networks, Inc.

Approved by:    re@ (gjb)
22:22:14 - r271845
(5 days 4 hours ago)
by mav
Affects:  /head/sys/cam/ctl/ctl.c
/head/sys/cam/ctl/ctl_cmd_table.c
/head/sys/cam/scsi/scsi_all.h
Allow more commands to pass persistent reservation according to SPC-4 r37.
22:17:46 - r271844
(5 days 4 hours ago)
by pjd
Affects: 
(2 files)
/stable/10/contrib/openbsm/bin/auditdistd/subr.c
MFC r271577:

Fix descriptors leak.

PR:             bin/191002
Reported by:    Ryan Steinmetz
Submitted by:   mjg
Approved by:    re (gjb)
22:16:20 - r271843
(5 days 4 hours ago)
by marcel
Affects: 
(2 files)
/stable/10/usr.bin/mkimg/bsd.c
Fix checksum calculation:
1.  Iterate over all partitions counted in the label, which can be more
   than the number of partitions given to mkimg(1).
2.  Start the checksum from the beginning of the label; not the beginning
   of the bootarea.

Tested with bsdlabel(8).

Approved by:    re@ (rodrigc)
22:12:52 - r271842
(5 days 4 hours ago)
by asomers
Affects: 
(3 files)
/stable/9/sys/netinet/in.c
MFC r265092, except for the ATF bits.

Fix a panic when removing an IP address from an interface, if the same address
exists on another interface.  The panic was introduced by change 264887, which
changed the fibnum parameter in the call to rtalloc1_fib() in
ifa_switch_loopback_route() from RT_DEFAULT_FIB to RT_ALL_FIBS.  The solution
is to use the interface fib in that call.  For the majority of users, that will
be equivalent to the legacy behavior.

PR:             kern/189089
22:10:49 - r271841
(5 days 4 hours ago)
by bz
Affects:  /head/sys/dev/smc/if_smc.c
Fx a type from r271817;  it's IFCOUNTER_* not IFNET_*.
21:48:05 - r271840
(5 days 4 hours ago)
by asomers
Affects: 
(7 files)
/stable/9/sys/net/*
/stable/9/sys/netinet/in.c
MFC r264905 and r266860, except for the ATF parts.

r266860
Fix unintended KBI change from r264905.  Add _fib versions of
ifa_ifwithnet() and ifa_ifwithdstaddr()  The legacy functions will call the
_fib() versions with RT_ALL_FIBS, preserving legacy behavior.

sys/net/if_var.h
sys/net/if.c
        Add legacy-compatible functions as described above.  Ensure legacy
        behavior when RT_ALL_FIBS is passed as fibnum.

sys/netinet/in_pcb.c
sys/netinet/ip_output.c
sys/netinet/ip_options.c
sys/net/route.c
sys/net/rtsock.c
sys/netinet6/nd6.c
        Call with _fib() functions if we must use a specific fib, or the
        legacy functions otherwise.

r264905
Fix subnet and default routes on different FIBs on the same subnet.

These two bugs are closely related.  The root cause is that ifa_ifwithnet
does not consider FIBs when searching for an interface address.

sys/net/if_var.h
sys/net/if.c
        Add a fib argument to ifa_ifwithnet and ifa_ifwithdstadddr.  Those
        functions will only return an address whose interface fib equals the
        argument.

sys/net/route.c
        Update calls to ifa_ifwithnet and ifa_ifwithdstaddr with fib
        arguments.

sys/netinet/in.c
        Update in_addprefix to consider the interface fib when adding
        prefixes.  This will prevent it from not adding a subnet route when
        one already exists on a different fib.

sys/net/rtsock.c
sys/netinet/in_pcb.c
sys/netinet/ip_output.c
sys/netinet/ip_options.c
sys/netinet6/nd6.c
        Add RT_DEFAULT_FIB arguments to ifa_ifwithdstaddr and ifa_ifwithnet.
        In some cases it there wasn't a clear specific fib number to use.
        In others, I was unable to test those functions so I chose
        RT_DEFAULT_FIB to minimize divergence from current behavior.  I will
        fix some of the latter changes along with PR kern/187553.

PR:             kern/187550
PR:             kern/187552
21:39:00 - r271839
(5 days 4 hours ago)
by mav
Affects: 
(4 files)
/head/sys/cam/ctl/*
/head/sys/cam/scsi/scsi_all.h
Add support for "no Data-Out Buffer" (NDOB) flag of WRITE SAME (16) command.
21:19:21 - r271838
(5 days 5 hours ago)
by glebius
Affects:  /head/sys/dev/sf/if_sf.c
Mechanically convert to if_inc_counter().
21:16:05 - r271837
(5 days 5 hours ago)
by glebius
Affects:  /head/sys/dev/stge/if_stge.c
Mechanically convert to if_inc_counter().
21:14:46 - r271836
(5 days 5 hours ago)
by glebius
Affects:  /head/sys/dev/cs/if_cs.c
Mechanically convert to if_inc_counter().
21:13:12 - r271835
(5 days 5 hours ago)
by glebius
Affects:  /head/sys/dev/ale/if_ale.c
Mechanically convert to if_inc_counter().
21:13:03 - r271834
(5 days 5 hours ago)
by bz
Affects: 
(5 files)
/head/sys/dev/ixl/*
Revert r270808, which were changes to common code (i40e_alloc.h).

Rather than #define-ing common code function calls to OS-dependent
ones, make the osdep versions match the common code expectations,
adjust the FreeBSD specific code to use those, and remove the
#defines.

In the FreeBSD specific code, use "i40e_mem_reserved" for the
now expected but unused argument to i40e_allocate_dma_mem().

Reviewed by:    gnn, eric.joyner intel.com
MFC after:      3 days
21:11:42 - r271833
(5 days 5 hours ago)
by glebius
Affects:  /head/sys/dev/alc/if_alc.c
Mechanically convert to if_inc_counter().
21:09:22 - r271832
(5 days 5 hours ago)
by glebius
Affects: 
(15 files)
/head/sys/dev/usb/net/*
Mechanically convert to if_inc_counter().
21:07:05 - r271831
(5 days 5 hours ago)
by glebius
Affects:  /head/sys/dev/hme/if_hme.c
Mechanically convert to if_inc_counter().
21:05:59 - r271830
(5 days 5 hours ago)
by glebius
Affects:  /head/sys/dev/bm/if_bm.c
Mechanically convert to if_inc_counter().
21:03:13 - r271829
(5 days 5 hours ago)
by glebius
Affects:  /head/sys/dev/bfe/if_bfe.c
Mechanically convert to if_inc_counter().
21:01:41 - r271828
(5 days 5 hours ago)
by glebius
Affects:  /head/sys/dev/age/if_age.c
Mechanically convert to if_inc_counter().
20:59:59 - r271827
(5 days 5 hours ago)
by glebius
Affects:  /head/sys/dev/my/if_my.c
Mechanically convert to if_inc_counter().
20:58:04 - r271826
(5 days 5 hours ago)
by glebius
Affects:  /head/sys/dev/ffec/if_ffec.c
Mechanically convert to if_inc_counter().
20:53:36 - r271825
(5 days 5 hours ago)
by asomers
Affects: 
(6 files)
/stable/9/sys/net/if.c
/stable/9/sys/net/route.c
/stable/9/sys/netinet/in.c
MFC r264887, except for the ATF test change.  Also,
ifa_switch_loopback_route doesn't exist in stable/9, so the relevant change
to that function went into in_scrubprefix instead.

Fix host and network routes for new interfaces when net.add_addr_allfibs=0

sys/net/route.c
        In rtinit1, use the interface fib instead of the process fib.  The
        latter wasn't very useful because ifconfig(8) is usually invoked
        with the default process fib.  Changing ifconfig(8) to use setfib(2)
        would be redundant, because it already sets the interface fib.

tests/sys/netinet/fibs_test.sh
        Clear the expected ATF failure

sys/net/if.c
        Pass the interface fib in calls to rtrequest1_fib and rtalloc1_fib

sys/netinet/in.c
sys/net/if_var.h
        Add a fibnum argument to ifa_switch_loopback_route, a subroutine of
        in_scrubprefix.  Pass it the interface fib.

PR:             kern/187549
20:53:02 - r271824
(5 days 5 hours ago)
by glebius
Affects:  /head/sys/dev/cas/if_cas.c
Mechanically convert to if_inc_counter().
20:47:39 - r271823
(5 days 5 hours ago)
by glebius
Affects:  /head/sys/dev/ath/if_ath.c
/head/sys/dev/ath/if_ath_rx.c
/head/sys/dev/ath/if_ath_tx.c
Mechanically convert to if_inc_counter().
20:44:53 - r271822
(5 days 5 hours ago)
by glebius
Affects:  /head/sys/dev/pdq/pdq_ifsubr.c
Mechanically convert to if_inc_counter().
20:43:17 - r271821
(5 days 5 hours ago)
by glebius
Affects:  /head/sys/dev/snc/dp83932.c
Mechanically convert to if_inc_counter().
20:39:23 - r271820
(5 days 5 hours ago)
by glebius
Affects:  /head/sys/dev/ie/if_ie.c
- Mechanically convert to if_inc_counter().
- Cut code that runs a counter backwards.
20:38:18 - r271819
(5 days 5 hours ago)
by smh
Affects:  /head/share/man/man9/SDT.9
/head/sys/cddl/compat/opensolaris/kern/opensolaris_dtrace.c
Remove sys/types.h include as per style (9)

SDT requries sys/param.h due to use of NULL

Reported by:    Garrett
Sponsored by:   Multiplay
20:35:22 - r271818
(5 days 5 hours ago)
by glebius
Affects:  /head/sys/dev/xl/if_xl.c
Mechanically convert to if_inc_counter().
20:33:25 - r271817
(5 days 5 hours ago)
by glebius
Affects:  /head/sys/dev/smc/if_smc.c
Mechanically convert to if_inc_counter().
20:32:40 - r271816
(5 days 5 hours ago)
by dumbbell
Affects: 
(17 files)
/stable/10/sys/dev/drm2/*
/stable/10/sys/modules/drm2/i915kms/Makefile
/stable/10/sys/sys/param.h
drm/i915: Add HW context support

This feature is required by Mesa 9.2+. Without this, a GL application
crashes with the following message:
    # glxinfo
    name of display: :0.0
    Gen6+ requires Kernel 3.6 or later.
    Assertion failed: (ctx->Version > 0), function handle_first_current,
      file ../../src/mesa/main/context.c, line 1498.
    Abort (core dumped)

Now, Mesa 10.2.4 and 10.3-rc3 works fine:
    # glxinfo
    name of display: :0
    display: :0  screen: 0
    direct rendering: Yes
    ...
    OpenGL renderer string: Mesa DRI Intel(R) 965GM
    OpenGL version string: 2.1 Mesa 10.2.4
    ...

The code was imported from Linux 3.8.13.

This an MFC of r271705.

Approved by:    re (glebius)
Reviewed by:    kib@
Tested by:      kwm@, danfe@, Henry Hu,
                Lundberg, Johannes <johannes@brilliantservice.co.jp>,
                Johannes Dieterich <dieterich.joh@gmail.com>,
                Lutz Bichler <lutz.bichler@gmail.com>,
Relnotes:       yes
20:30:47 - r271815
(5 days 5 hours ago)
by glebius
Affects:  /head/sys/dev/vge/if_vge.c
Mechanically convert to if_inc_counter().
20:29:17 - r271814
(5 days 5 hours ago)
by glebius
Affects:  /head/sys/compat/linprocfs/linprocfs.c
Fix build on 32-bit machines.

Pointy hat to:  glebius
20:24:47 - r271813
(5 days 5 hours ago)
by glebius
Affects:  /head/sys/dev/pcn/if_pcn.c
Mechanically convert to if_inc_counter().
20:23:34 - r271812
(5 days 6 hours ago)
by glebius
Affects:  /head/sys/dev/nge/if_nge.c
Mechanically convert to if_inc_counter().
20:21:46 - r271811
(5 days 6 hours ago)
by glebius
Affects:  /head/sys/dev/gem/if_gem.c
Mechanically convert to if_inc_counter().
20:18:55 - r271810
(5 days 6 hours ago)
by glebius
Affects:  /head/sys/dev/mwl/if_mwl.c
Mechanically convert to if_inc_counter().
20:17:42 - r271809
(5 days 6 hours ago)
by asomers
Affects: 
(4 files)
/stable/9/sys/netinet/if_ether.c
/stable/9/sys/netinet/in.c
MFC 263779, except for the ATF test change.

Correct ARP update handling when the routes for network interfaces are
restricted to a single FIB in a multifib system.

Restricting an interface's routes to the FIB to which it is assigned (by
setting net.add_addr_allfibs=0) causes ARP updates to fail with "arpresolve:
can't allocate llinfo for x.x.x.x".  This is due to the ARP update code hard
coding it's lookup for existing routing entries to FIB 0.

sys/netinet/in.c:
        When dealing with RTM_ADD (add route) requests for an interface, use
        the interface's assigned FIB instead of the default (FIB 0).

sys/netinet/if_ether.c:
        In arpresolve(), enhance error message generated when an
        lla_lookup() fails so that the interface causing the error is
        visible in logs.

PR:             kern/167947
20:17:27 - r271808
(5 days 6 hours ago)
by glebius
Affects:  /head/sys/dev/vr/if_vr.c
Mechanically convert to if_inc_counter().
20:15:53 - r271807
(5 days 6 hours ago)
by glebius
Affects:  /head/sys/dev/fe/if_fe.c
Mechanically convert to if_inc_counter().
20:11:28 - r271806
(5 days 6 hours ago)
by glebius
Affects:  /head/sys/dev/ep/if_ep.c
Mechanically convert to if_inc_counter().
20:09:35 - r271805
(5 days 6 hours ago)
by glebius
Affects:  /head/sys/dev/sis/if_sis.c
Mechanically convert to if_inc_counter().
20:06:10 - r271804
(5 days 6 hours ago)
by glebius
Affects:  /head/sys/dev/tx/if_tx.c
Mechanically convert to if_inc_counter().
20:03:45 - r271803
(5 days 6 hours ago)
by glebius
Affects:  /head/sys/dev/tl/if_tl.c
Mechanically convert to if_inc_counter().
20:00:36 - r271802
(5 days 6 hours ago)
by smh
Affects: 
(4 files)
/head/share/man/man9/SDT.9
/head/sys/cddl/compat/opensolaris/*
/head/sys/modules/zfs/Makefile
Add dtrace probe support for zfs SET_ERROR(..)

MFC after:      1 week
Sponsored by:   Multiplay
19:57:13 - r271801
(5 days 6 hours ago)
by glebius
Affects:  /head/sys/dev/msk/if_msk.c
Mechanically convert to if_inc_counter().
19:20:08 - r271800
(5 days 7 hours ago)
by grehan
Affects: 
(2 files)
/stable/10/sys/dev/nmdm/nmdm.c
MFC nmdm driver changes, r259550 and r271350

r259550 (glebius):
 Make nmdm(4) destroy devices when both sides of a pair are disconnected.
 This makes it possible to kldunload nmdm.ko when there are no users of it.

r271350:
 Fix issue with nmdm and leading zeros in device name.

 The nmdm code enforces a number between the 'nmdm' and 'A|B' portions
 of the device name. This is then used as a unit number, and sprintf'd
 back into the tty name. If leading zeros were used in the name,
 the created device name is different than the string used for the
 clone-open (e.g. /dev/nmdm0001A will result in /dev/nmdm1A).

 Since unit numbers are no longer required with the updated tty
 code, there seems to be no reason to force the string to be a
 number. The fix is to allow an arbitrary string between
 'nmdm' and 'A|B', within the constraints of devfs names. This allows
 all existing user of numeric strings to continue to work, and also
 allows more meaningful names to be used, such as bhyve VM names.

PR:     192281
Approved by:    re (glebius)
19:15:40 - r271799
(5 days 7 hours ago)
by glebius
Affects:  /head/sys/dev/virtio/network/if_vtnet.c
- Provide if_get_counter() method for vtnet(4).
- Do not accumulate statistics on every tick.
- Accumulate statistics in vtnet_setup_stat_sysctl()
  and in vtnet_get_counter().

Sponsored by:   Netflix
Sponsored by:   Nginx, Inc.
18:46:38 - r271798
(5 days 7 hours ago)
by will
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c
Remove debug.zfs_flags in favor of the new vfs.zfs.debug_flags.
Replace TUNABLE_INT with CTLFLAG_RWTUN.

Submitted by:   avg (debug.zfs_flags removal), smh (TUNABLE_INT replacement)
17:39:04 - r271797
(5 days 8 hours ago)
by mav
Affects:  /head/usr.sbin/ctld/ctld.c
Make kernel to update LUN size from the backing storage on configuration
reload also if that size was not specified in the new configuration.

Previously it happened only if size was explicitly changed in config.

MFC after:      3 days
17:37:19 - r271796
(5 days 8 hours ago)
by will
Affects:  /head/tools/regression/pjdfstest/Makefile
Use 'cc' for the C compiler instead of 'gcc'.

MFC after:      1 week
Sponsored by:   Spectra Logic
MFSpectraBSD:   1079507 on 2014/07/24
17:28:21 - r271795
(5 days 8 hours ago)
by will
Affects: 
(14 files)
/head/sys/dev/firewire/*
Start the process of cleaning up FreeBSD's firewire driver.

sys/dev/firewire/firewire.c:
sys/dev/firewire/firewire.h:
sys/dev/firewire/firewirereg.h:
sys/dev/firewire/fwcrom.c:
sys/dev/firewire/fwdev.c:
sys/dev/firewire/fwdma.c:
sys/dev/firewire/fwmem.c:
sys/dev/firewire/fwohci.c:
sys/dev/firewire/fwohci_pci.c:
sys/dev/firewire/fwohcivar.h:
sys/dev/firewire/if_fwe.c:
sys/dev/firewire/if_fwip.c:
sys/dev/firewire/sbp.c:
sys/dev/firewire/sbp_targ.c:
        Unifdef the code, removing support for DragonflyBSD
        and FreeBSD prior to version 5.

Submitted by:   gibbs
MFC after:      1 month
Sponsored by:   Spectra Logic
MFSpectraBSD:   1081188 on 2014/08/01
17:25:20 - r271794
(5 days 8 hours ago)
by mav
Affects:  /head/sys/cam/ctl/ctl_backend_block.c
When updating device media size use cached cdevsw pointer.

Using pointer from the cdev directly is dangerous since we have no reference
on it, and it may change any time.  That caused panic if device has gone.

While there, report capacity change only if it really changed.

MFC after:      3 days
17:22:42 - r271793
(5 days 9 hours ago)
by will
Affects:  /head/sys/dev/firewire/firewire.c
/head/sys/dev/firewire/fwohci.c
Silence noisy firewire logging.

MFC after:      1 month
Sponsored by:   Spectra Logic
MFSpectraBSD:   974594 on 2013/08/02
17:18:42 - r271792
(5 days 9 hours ago)
by pfg
Affects:  /head/include/unistd.h
unistd: move setpgrp(2) to the __BSD_VISIBLE section

Our setpgrp(2) differs from the specified by POSIX, which
only has one argument, and is only meant for compatibility
with BSD.

Reference:
http://pubs.opengroup.org/onlinepubs/009695399/functions/setpgrp.html

Pointed-out in: openbsd-tech (2014-09-16)
MFC after:      6 weeks
17:15:38 - r271791
(5 days 9 hours ago)
by gjb
Affects: 
(7 files)
/stable/10/release/arm/*
MFC r271676, r271677, r271678:

r271676:
  Catch up with Crochet changes to fix the BEAGLEBONE
  build.

r271677:
  Catch up with Crochet changes to fix the WANDBOARD-QUAD
  build.

r271678:
  Set a static revision of the Crochet checkout to avoid
  surprise build failures.

Approved by:    re (marius)
Sponsored by:   The FreeBSD Foundation
17:03:52 - r271790
(5 days 9 hours ago)
by allanjude
Affects: 
(2 files)
/stable/10/usr.sbin/bsdinstall/scripts/zfsboot
MFC r271563:
Make the root-on-zfs part of the installer warn a user who booted the
installer via UEFI that we do not support booting ZFS via UEFI yet

PR:             193595
Approved by:    re (gjb), nwhitehorn
Sponsored by:   ScaleEngine Inc.
17:01:45 - r271789
(5 days 9 hours ago)
by pfg
Affects:  /head/usr.sbin/lpr/lpd/printjob.c
lpr: replace setpgrp(2) with setpgid(2).

setpgid(2) is more portable than setpgrp(2).
The BSD variant of setpgrp is a wrapper for
setpgid(2) anyways.

MFC after:      5 weeks
16:55:41 - r271788
(5 days 9 hours ago)
by will
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c
Enable ZFS debug flags to be modified via vfs.zfs.debug_flags.

This is primarily only of interest to ZFS developers, but it makes it
easier to get additional debugging.

Submitted by:   gibbs
MFC after:      1 month
Sponsored by:   Spectra Logic
MFSpectraBSD:   517074 on 2011/12/15 (by will), 662343 on 2013/03/20 (by gibbs)
16:53:44 - r271787
(5 days 9 hours ago)
by pfg
Affects:  /head/release/picobsd/tinyware/simple_httpd/simple_httpd.c
simple_httpd: cosmetic cleanups.

Many tab vs space cleanups.
Use setpgid() instead of setpgrp() which is more portable,

MFC after:      5 weeks
16:44:28 - r271786
(5 days 9 hours ago)
by glebius
Affects:  /head/sys/compat/linprocfs/linprocfs.c
- Use if_get_counter() to fetch ifnet statistics.
- Report IFCOUNTER_OQDROPS to linprocfs. Wasn't there before.

Sponsored by:   Netflix
Sponsored by:   Nginx, Inc.
16:38:03 - r271785
(5 days 9 hours ago)
by will
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c
Reorder sysctls for spa.c global tunables; add sysctl for ccw_retry_interval.

MFC after:      1 month
Sponsored by:   Spectra Logic
16:20:17 - r271784
(5 days 10 hours ago)
by adrian
Affects:  /head/sys/dev/e1000/if_igb.c
/head/sys/dev/e1000/if_igb.h
Fix the handling of EOP in status descriptors for if_igb(4) and don't
double-free mbufs.

Like ixgbe(4) chipsets, EOP is only set on the final descriptor
in a chain of descriptors.  So, to free the whole list of descriptors,
we should free the current slot _and_ the assembled list of descriptors
that make up the fragment list.

The existing code was setting discard once it saw EOP + an error status;
it then freed all the subsequent descriptors until the next EOP. That's
totally the wrong order.
16:17:20 - r271783
(5 days 10 hours ago)
by glebius
Affects:  /head/sys/net/if.c
/head/sys/net/if_var.h
Remove a bunch of methods that are superseded by if_inc_counter().

Sponsored by:   Netflix
Sponsored by:   Nginx, Inc.
15:56:14 - r271782
(5 days 10 hours ago)
by glebius
Affects: 
(8 files)
/head/sys/dev/*
- Use if_inc_counter() to increment various counters.
- Do not ever set a counter to a value. For those counters
  that we don't increment, but return directly from hardware
  create cases in if_get_counter() method.

Sponsored by:   Netflix
Sponsored by:   Nginx, Inc.
15:37:53 - r271781
(5 days 10 hours ago)
by will
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/bpobj.c
bpobj_iterate_impl(): Close a refcount leak iterating on a sublist.

If bpobj_space() returned non-zero here, the sublist would have been
left open, along with the bonus buffer hold it requires.  This call
does not invoke any calls to bpobj_close() itself.

This bug doesn't have any known vector, but was found on inspection.

MFC after:      1 week
Sponsored by:   Spectra Logic
Affects:        All ZFS versions starting 21 May 2010 (illumos cde58dbc)
MFSpectraBSD:   r1050998 on 2014/03/26
15:26:12 - r271780
(5 days 10 hours ago)
by gjb
Affects:  /user/gjb/thermite/thermite.sh
Defer running mk-vmimage.sh until after all normal
(i.e., ISOs) bits are built.

This eliminates a significant delay between the completion
of the amd64 ISO creation and the start of the i386
build (more than one hour).

Sponsored by:   The FreeBSD Foundation
15:10:22 - r271779
(5 days 11 hours ago)
by tijl
Affects: 
(30 files)
/stable/10/lib/msun/*
MFC r257770 r257818 r257823 r260066 r260067 r260089 r260145 r268587 r268588
    r268589 r268590 r268593 r268597 r269758 r270845 r270847 r270893 r270932
    r270947 r271147

Merge libm work by kargl, bde and das from the past few months.
Besides optimisations and small bug fixes this includes new implementations
for C99 functions expl, coshl, sinhl, tanhl, erfl and erfcl.

Approved by:    re (kib)
14:54:20 - r271778
(5 days 11 hours ago)
by will
Affects:  /head/lib/libunbound/Makefile
Fix incremental builds involving non-root users with read-only source files.
This is a followup commit to r271771.

MFC after:      1 month
14:53:30 - r271777
(5 days 11 hours ago)
by nwhitehorn
Affects: 
(2 files)
/stable/10/usr.sbin/bsdinstall/scripts/auto
MFC r271552:

Make the default choice for the chroot shell at the end be "No". This allows
just pressing enter repeatedly to successfully install a reasonable system.

Approved by:    re (gjb)
14:50:50 - r271776
(5 days 11 hours ago)
by smh
Affects: 
(2 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev.c
MFC r271429:
Persist vdev_resilver_txg changes to avoid panic caused by validation
vs a vdev_resilver_txg value from a previous resilver.

Approved by:    re (glebius)
Sponsored by:   Multiplay
14:50:21 - r271775
(5 days 11 hours ago)
by will
Affects:  /head/kerberos5/lib/libasn1/Makefile
Fix incremental builds involving non-root users with read-only source files.
This is a followup commit to r271771.

MFC after:      1 month
14:47:13 - r271774
(5 days 11 hours ago)
by glebius
Affects:  /head/sys/net/if.c
/head/sys/net/if_var.h
/head/sys/net/if_vlan.c
While not too late rename 'ifnet_counter' to 'ift_counter'. One of the
imporant moments that we discussed with Marcel and Anuranjan was that
a converted driver should return false for 'grep ifnet if_driver.c' :)

Sponsored by:   Netflix
Sponsored by:   Nginx, Inc.
14:44:47 - r271773
(5 days 11 hours ago)
by grehan
Affects: 
(3 files)
/stable/10/sys/kern/tty.c
/stable/10/sys/sys/tty.h
MFC tty fixes, r259549 and r259663

Keep tty_makedev as a function to preserve the KBI on 10-stable
(it is a macro in CURRENT). The changes for this are direct
commits to 10-stable.

r259549 (glebius):
  - Rename tty_makedev() into tty_makedevf() and make it capable
    to fail and return error.
  - Use make_dev_p() in tty_makedevf() instead of make_dev_cred().
  - Always pass MAKEDEV_CHECKNAME flag.
  - Optionally pass MAKEDEV_REF flag.
  - Provide macro for compatibility with old API.

  This fixes races with simultaneous creation and desctruction of
  ttys, and makes it possible to call tty_makedevf() from device
  cloners.

  A race in tty_watermarks() still exist, since the latter drops
  lock for M_WAITOK allocation. This will be addressed in separate
  commit.

r259663 (glebius):
  Move list of ttys handling from the allocating procedures, to the
  device creation stage. A device creation can fail, and in that case
  an entry already on the list will be freed.

KBI issue pointed out by:       kib
Reviewed by:    kib (KBI addition)
Approved by:    re (kib)
14:43:23 - r271772
(5 days 11 hours ago)
by glebius
Affects:  /head/sys/netgraph/ng_ppp.c
Accidentially, ng_ppp changes leaked out with r271770. The proper
commit message should have been:

In case if ng_ppp(4) runs only IPv4, with one link, w/o any
encryption and compression, set faster rcvhook method.

Submitted by:   Dmitry Luhtionov <dmitryluhtionov gmail.com>
14:41:57 - r271771
(5 days 11 hours ago)
by will
Affects: 
(5 files)
/head/*
Fix incremental builds involving non-root users with read-only source files.

Makefiles should not assume that source files can be overwritten.  This is the
common case for Perforce source trees.

This is a followup commit to r211243 in the same vein.

MFC after:      1 month
Sponsored by:   Spectra Logic
MFSpectraBSD:   r1036319 on 2014/01/29, r1046711 on 2014/03/06
14:38:28 - r271770
(5 days 11 hours ago)
by glebius
Affects:  /head/sys/net/if.c
/head/sys/net/if_var.h
/head/sys/netgraph/ng_ppp.c
Add a function to set if_get_counter method for an ifnet. To be used
in the drivers that are already converted to "Juniper drvapi". This
can be revisited in future.
14:38:18 - r271769
(5 days 11 hours ago)
by dumbbell
Affects: 
(14 files)
/stable/10/sys/*
vt(4): Merge several bug fixes and improvements

SVN revisions in this MFC:
  269779 270705 270706 271180 271250 271253 271682 271684

Detailed commit list:

r269779:
  fbd: Fix a bug where vt_fb_attach() success would be considered a failure

  vt_fb_attach() currently always returns 0, but it could return a code
  defined in errno.h. However, it doesn't return a CN_* code. So checking
  its return value against CN_DEAD (which is 0) is incorrect, and in this
  case, a success becomes a failure.

  The consequence was unimportant, because the caller (drm_fb_helper.c)
  would only log an error message in this case. The console would still
  work.

  Approved by:  nwhitehorn

r270705:
  vt(4): Add cngrab() and cnungrab() callbacks

  They are used when a panic occurs or when entering a DDB session for
  instance.

  cngrab() forces a vt-switch to the console window, no matter if the
  original window is another terminal or an X session. However, cnungrab()
  doesn't vt-switch back to the original window currently.

r270706:
  drm: Don't "taskqueue" vt-switch if under DDB/panic situation

  If DDB is active, we can't use a taskqueue thread to switch away from
  the X window, because this thread can't run.

  Reviewed by:  ray@
  Approved by:  ray@

r271180:
  vt_vga: vd_setpixel_t and vd_drawrect_t are noop in text mode

r271250:
  vt(4): Change the terminal and buffer sizes, even without a font

  This fixes a bug where scroll lock would not work for tty #0 when using
  vt_vga's textmode. The reason was that this window is created with a
  static 256x100 buffer, larger than the real size of 80x25.

  Now, in vt_change_font() and vt_compute_drawable_area(), we still
  perform operations even of the window has no font loaded (this is the
  case in textmode here vw->vw_font == NULL). One of these operation
  resizes the buffer accordingly.

  In vt_compute_drawable_area(), we take the terminal size as is (ie.
  80x25) for the drawable area.

  The font argument to vt_set_border() is removed (it was never used) and
  the code now uses the computed drawable area instead of re-doing its own
  calculation.

  Reported by:  Harald Schmalzbauer <h.schmalzbauer_omnilan.de>
  Tested by:    Harald Schmalzbauer <h.schmalzbauer_omnilan.de>

r271253:
  pause_sbt(): Take the cold path (ie. use DELAY()) if KDB is active

  This fixes a panic in the i915 driver when one uses debug.kdb.enter=1
  under vt(4).

  PR:           193269
  Reported by:  emaste@
  Submitted by: avg@

r271682:
  vt(4): Fix a LOR which occurs during a call to vt_upgrade()

  Reported by:  kib@
  Review:               https://reviews.freebsd.org/D785
  Reviewed by:  ray@
  Approved by:  ray@

r271684:
  vt(4): Use vt_fb_drawrect() and vt_fb_setpixel() in all vt_fb-derivative

  Review:               https://reviews.freebsd.org/D789
  Reviewed by:  nwhitehorn
  Approved by:  nwhitehorn

Approved by:    re (gjb)
14:31:28 - r271768
(5 days 11 hours ago)
by des
Affects: 
(2 files)
/stable/8/lib/libpam/modules/pam_login_access/pam_login_access.c
MFH (r271256, r271617): avoid segfault if PAM_RHOST nor PAM_TTY are unset.

PR:             83099
14:31:18 - r271767
(5 days 11 hours ago)
by des
Affects: 
(2 files)
/stable/9/lib/libpam/modules/pam_login_access/pam_login_access.c
MFH (r271256, r271617): avoid segfault if PAM_RHOST nor PAM_TTY are unset.

PR:             83099
14:27:37 - r271766
(5 days 11 hours ago)
by des
Affects: 
(2 files)
/stable/10/lib/libpam/modules/pam_login_access/pam_login_access.c
MFH (r271256, r271617): avoid segfault if PAM_RHOST nor PAM_TTY are unset.

Approved by:    re (gjb)
PR:             83099
14:16:14 - r271765
(5 days 12 hours ago)
by pho
Affects:  /user/pho/stress2/misc/mmap10.sh
/user/pho/stress2/misc/mmap11.sh
Two mmap(2) regression tests added.

Sponsored by:    EMC / Isilon storage division
14:09:42 - r271764
(5 days 12 hours ago)
by will
Affects:  /head/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_dataset.c
zfs_setprop_error(): Handle errno value E2BIG.

This errno value is emitted by dsl_props_set_check() in
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_prop.c, and
is used to mean that the property value is too long.  For the record,
the maximum length is ZAP_MAXVALUELEN, which is 8*1024 bytes.

Instead of claiming an unknown error (and abort()ing), provide
something more specific to the scenario involved.  As far as I
can tell, E2BIG is not emitted for any other scenario.

MFC after:      1 week
Sponsored by:   Spectra Logic
Affects:        All ZFS versions starting 27 Feb 2009 (illumos ccba0801)
                This change modified the value returned by
                dsl_props_set_check(), so that it can distinguish between
                a name that's too long and a value that's too long, but
                libzfs was not updated accordingly.
MFSpectraBSD:   r1051499 on 2014/03/28 11:07:59
14:02:25 - r271763
(5 days 12 hours ago)
by will
Affects:  /head/cddl/contrib/opensolaris/cmd/zpool/zpool_vdev.c
Fix an assert to tolerate spare parents with more than 2 children.

This can occur if a spare is being spared, which would yield three
children: the original pool drive, the previous spare, and the spare
that is replacing it.

MFC after:      1 week
Sponsored by:   Spectra Logic
Affects:        All ZFS versions starting 7 Jun 2006 (illumos 94de1d4c)
MFSpectraBSD:   r668345 on 2013/06/04 17:10:43
13:59:36 - r271762
(5 days 12 hours ago)
by emaste
Affects:  /head/sys/boot/amd64/boot1.efi/boot1.c
/head/sys/boot/efi/include/eficonsctl.h
/head/sys/boot/efi/libefi/libefi.c
Switch to text mode in UEFI boot

The loader previously failed to display on MacBooks and other systems
where the UEFI firmware remained in graphics mode.

Submitted by:   Rafael Espíndola
13:56:32 - r271761
(5 days 12 hours ago)
by trasz
Affects:  /head/share/man/man9/Makefile
Add missing link to TIMEOUT_TASK_INIT(9).

MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
13:53:39 - r271760
(5 days 12 hours ago)
by des
Affects: 
(2 files)
/stable/10/usr.sbin/unbound/local-setup/local-unbound-setup.sh
MFH (r271255): fix parsing of ipv6 nameserver lines

Approved by:    re (kib)
13:39:47 - r271759
(5 days 12 hours ago)
by trasz
Affects:  /head/share/man/man9/Makefile
Add missing links to taskqueue(9).

MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
13:24:06 - r271758
(5 days 12 hours ago)
by dumbbell
Affects:  /head/sys/dev/vt/vt_core.c
vt(4): Use strncpy() to copy into a fixed-size buffer

CID:            1230007
MFC after:      3 days
13:00:03 - r271757
(5 days 13 hours ago)
by emaste
Affects:  /head/sys/boot/amd64/efi/bootinfo.c
Wrap long lines introduced in r268227
12:20:19 - r271756
(5 days 14 hours ago)
by dumbbell
Affects:  /head/sys/dev/vt/vt_core.c
vt(4): Fix out-of-bounds array access in VT_ACTIVATE ioctl handling

CID:            1229964
MFC after:      3 days
11:52:28 - r271755
(5 days 14 hours ago)
by trasz
Affects: 
(2 files)
/stable/10/usr.sbin/ctld/ctl.conf.5
MFC r271571:

Fix two small nits in ctl.conf(5).

Approved by:    re (glebius)
Sponsored by:   The FreeBSD Foundation
10:46:51 - r271754
(5 days 15 hours ago)
by smh
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/arc.h
Remove unused ZFS ARC functions

* arc_data_buf_alloc
* arc_data_buf_free

MFC after:      1 week
Sponsored by:   Multiplay
10:33:23 - r271753
(5 days 15 hours ago)
by trasz
Affects:  /head/sys/fs/autofs/autofs.c
Fix typos.

Sponsored by:   The FreeBSD Foundation
10:01:56 - r271752
(5 days 16 hours ago)
by glebius
Affects:  /head/sys/net/if.c
/head/sys/net/if_var.h
/head/sys/net/if_vlan.c
While not too late rename if_get_counter_compat() to if_get_counter_default().
The compat counters will go away, but the function will remain in its place,
and in all places where it is going to be called.

Discussed with: melifaro
09:54:57 - r271751
(5 days 16 hours ago)
by glebius
Affects:  /head/sys/net/if.c
/head/sys/net/if_var.h
Add if_inc_counter(), a generic method to update ifnet(9) counter
w/o dereferencing the struct.

Sponsored by:   Netflix
Sponsored by:   Nginx, Inc.
09:49:49 - r271750
(5 days 16 hours ago)
by tuexen
Affects: 
(10 files)
/stable/10/sys/netinet/*
MFC r271643:
Chunk IDs are 8 bit entities, not 16 bit.
Thanks to Peter Kasting from Google for drawing
my attention to it.

MFC r271665:
The MTU is handled as a 32-bit entity within the SCTP stack.
This was reported by Peter Kasting from Google.

MFC r271670:
Make a type conversion explicit. When compiling this code on
Windows as part of the SCTP userland stack, this fixes a
warning reported by Peter Kasting from Google.

MFC r271672:
Small cleanup which addresses a warning regaring the truncation
of a 64-bit entity to a 32-bit entity. This issue was reported by
Peter Kasting from Google.

MFC r271673:
Use a consistent type for the number of HMAC algorithms.
This fixes a bug which resulted in a warning on the userland
stack, when compiled on Windows.
Thanks to Peter Kasting from Google for reporting the issue and
provinding a potential fix.

MFC r271674:
Add a explict cast to silence a warning when building
the userland stack on Windows.
This issue was reported by Peter Kasting from Google.

Approved by: re (kib)
09:22:37 - r271749
(5 days 17 hours ago)
by mav
Affects: 
(3 files)
/stable/9/sys/cam/scsi/scsi_da.c
MFC r271644:
Add quirks to disable READ CAPACITY (16) for PNY USB 3.0 Flash Drives.

Submitted by:   Sean Fagan <sef@ixsystems.com>
09:21:29 - r271748
(5 days 17 hours ago)
by mav
Affects: 
(2 files)
/stable/10/sys/cam/scsi/scsi_da.c
MFC r271644:
Add quirks to disable READ CAPACITY (16) for PNY USB 3.0 Flash Drives.

Submitted by:   Sean Fagan <sef@ixsystems.com>
Approved by:    re (kib)
09:13:20 - r271747
(5 days 17 hours ago)
by kib
Affects:  /head/sys/amd64/amd64/fpu.c
- Use NULL instead of 0 for fpcurthread.
- Note the quirk with the interrupt enabled state of the dna handler.
- Use just panic() instead of printf() and panic().  Print tid instead
  of pid, the fpu state is per-thread.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
08:58:22 - r271746
(5 days 17 hours ago)
by tuexen
Affects: 
(13 files)
/stable/10/sys/arm/conf/IMX6
/stable/10/sys/netinet/*
/stable/10/sys/netinet6/sctp6_usrreq.c
MFC r270673:
Announce SCTP support in the kern.features sysctl variables.

MFC r270859:
Enable SCTP support. It runs perfectly fine on a Wandboard quad.

MFC r271204 with manual intervention:
Fix the handling of sysctl variables when used with VIMAGE.
While there do some cleanup of the code.

MFC r271209:
Fix a leak of an address, if the address is scheduled for removal
and the stack is torn down.
Thanks to Peter Bostroem and Jiayang Liu from Google for reporting the
issue.

MFC r271219:
Use SYSCTL_PROC instead of SYSCTL_VNET_PROC.
Suggested by: glebius@

MFC r271221:
Use union sctp_sockstore instead of struct sockaddr_storage. This
eliminates some warnings when building in userland.
Thanks to Patrick Laimbock for reporting this issue.
Remove also some unnecessary casts.
There should be no functional change.

MFC r271228:
Address another warnings reported by Patrick Laimbock when compiling
in userspace. While there, improve consistency.

MFC r271230:
Address warnings generated by the clang analyzer.

Approved by: re (kib)
08:56:25 - r271745
(5 days 17 hours ago)
by bz
Affects:  /head/sys/dev/ixl/i40e_osdep.c
For consistency with the shared header file (and to avoid confusion
with mbufs normally called *m in one place), rename the function
arguments to "mem".

This is a non-functional change.

Reviewed by:    gnn, eric.joyner intel.com
MFC after:      3 days
08:40:00 - r271744
(5 days 17 hours ago)
by bz
Affects: 
(10 files)
/head/sys/amd64/linux32/*
/head/sys/i386/linux/*
Re-gen after r271743 implementing most of
timer_{create,settime,gettime,getoverrun,delete}.

MFC after:              3 days
Sponsored by:           DARPA, AFRL
08:36:45 - r271743
(5 days 17 hours ago)
by bz
Affects: 
(12 files)
/head/sys/*
Implement most of timer_{create,settime,gettime,getoverrun,delete}
for amd64/linux32.  Fix the entirely bogus (untested) version from
r161310 for i386/linux using the same shared code in compat/linux.

It is unclear to me if we could support more clock mappings but
the current set allows me to successfully run commercial
32bit linux software under linuxolator on amd64.

Reviewed by:            jhb
Differential Revision:  D784
MFC after:              3 days
Sponsored by:           DARPA, AFRL
06:47:48 - r271742
(5 days 19 hours ago)
by dim
Affects: 
(2 files)
/stable/7/share/mk/bsd.prog.mk
MFC r257658 (modified to apply to stable/7):

For C++ programs, don't emit any explicit dependency to libstdc++.a or
libc++.a during the early build stages (bootstrap-tools, build-tools,
cross-tools), since it is not possible to know in advance which C++
library is available on the host system.

Instead, just use the bootstrap compiler's built-in default.  This
should eventually make it possible to build stable/9 on head, or on
stable/10, which ship without libstdc++ by default.

[Note: this should get the stable/7 tinderbox at least a bit further in
buildworld.]
06:45:43 - r271741
(5 days 19 hours ago)
by dim
Affects:  /stable/8/share/mk
Fixup mergeinfo after r271740.
06:40:53 - r271740
(5 days 19 hours ago)
by dim
Affects:  /stable/8/share/mk/bsd.prog.mk
MFC r257658 (modified to apply to stable/8):

For C++ programs, don't emit any explicit dependency to libstdc++.a or
libc++.a during the early build stages (bootstrap-tools, build-tools,
cross-tools), since it is not possible to know in advance which C++
library is available on the host system.

Instead, just use the bootstrap compiler's built-in default.  This
should eventually make it possible to build stable/9 on head, or on
stable/10, which ship without libstdc++ by default.

[Note: this should get the stable/8 tinderbox at least a bit further in
buildworld.]
06:34:27 - r271739
(5 days 19 hours ago)
by dim
Affects: 
(2 files)
/stable/10/contrib/llvm/lib/Target/X86/X86ISelLowering.cpp
MFC r271597:

Pull in r217410 from upstream llvm trunk (by Bob Wilson):

  Set trunc store action to Expand for all X86 targets.

  When compiling without SSE2, isTruncStoreLegal(F64, F32) would return
  Legal, whereas with SSE2 it would return Expand. And since the Target
  doesn't seem to actually handle a truncstore for double -> float, it
  would just output a store of a full double in the space for a float
  hence overwriting other bits on the stack.

  Patch by Luqman Aden!

This should fix clang -O0 on i386 assigning garbage to floats, in
certain scenarios.

PR:             187437
Submitted by:   cebd@gmail.com
Approved by:    re (marius)
Obtained from:  http://llvm.org/viewvc/llvm-project?rev=217410&view=rev
05:43:19 - r271738
(5 days 20 hours ago)
by araujo
Affects:  /head/sys/net/if_vlan.c
Revert r271735. The comment is absolutely correct, we do not support 802.1p
priority tagging. I got confused with the packet tagged and packet to be tagged.

Spotted by:     glebius
05:40:33 - r271737
(5 days 20 hours ago)
by dim
Affects: 
(2 files)
/stable/9/contrib/llvm/lib/Target/X86/X86ISelLowering.cpp
MFC r271597:

Pull in r217410 from upstream llvm trunk (by Bob Wilson):

  Set trunc store action to Expand for all X86 targets.

  When compiling without SSE2, isTruncStoreLegal(F64, F32) would return
  Legal, whereas with SSE2 it would return Expand. And since the Target
  doesn't seem to actually handle a truncstore for double -> float, it
  would just output a store of a full double in the space for a float
  hence overwriting other bits on the stack.

  Patch by Luqman Aden!

This should fix clang -O0 on i386 assigning garbage to floats, in
certain scenarios.

PR:             187437
Submitted by:   cebd@gmail.com
Obtained from:  http://llvm.org/viewvc/llvm-project?rev=217410&view=rev
03:11:59 - r271736
(5 days 23 hours ago)
by davide
Affects:  /head/usr.sbin/makefs/ffs.c
r258695 introduces a sanity check for makefs in order to verify that
the minimum image size specified is always less than the maximum
image size. If makefs(1) is invoked specifying minimum image size,
but not maximum one, the program exits with an error. Example:

# sudo -E makefs -M 538968064 -B be /home/davide/disk.img $DESTDIR
makefs: `/home/davide/tftproot/mips' minsize of 538968064 rounded up
to ffs bsize of 8192 exceeds maxsize 0.  Lower bsize, or round the
minimum and maximum sizes to bsize.

Assert then that minsize < maxsize iff maxsize is specified.
This change allows me to build MIPS images using makefs(1) and following
what specified in the wiki again.

Reviewed by:    jmallett, ngie
03:09:34 - r271735
(5 days 23 hours ago)
by araujo
Affects:  /head/sys/net/if_vlan.c
Remove old comment, we already do 802.1q tagging.

Phabric:        D797
Reviewed by:    kevlo
Approved by:    kevlo
Sponsored by:   QNAP Systems Inc.
03:02:00 - r271734
(5 days 23 hours ago)
by allanjude
Affects: 
(6 files)
/stable/10/share/man/man4/*
/stable/10/usr.bin/iscsictl/iscsictl.8
/stable/10/usr.sbin/*
MFC r271445,r271446,r271560:
Improve markup and language throughout the ctl.conf man page

MFC r271543:
Add the new iscsi(4) man page
Cross reference it from iscsid(8) and iscsictl(8)

Approved by:    re (gjb), bcr (mentor)
02:22:02 - r271733
(6 days ago)
by araujo
Affects:  /head/sbin/ifconfig/ifconfig.8
/head/share/man/man4/lagg.4
The lagg(4) interface is based on trunk(4) interface from OpenBSD.
The FreeBSD is the only system that has the FEC protocol, that is a simple alias
to loadbalance protocol and does not implement the ancient Cisco FEC standard.

From now on, we remove the fec protocol from the documentation and keep the FEC
code only for compatibility.

Phabric:        D539
Reviewed by:    glebius, thompsa
Approved by:    glebius
Sponsored by:   QNAP Systems Inc.
02:12:48 - r271732
(6 days ago)
by araujo
Affects: 
(4 files)
/head/sbin/ifconfig/ifconfig.8
/head/share/man/man4/lagg.4
/head/sys/net/*
Add laggproto broadcast, it allows sends frames to all ports of the lagg(4)
group
and receives frames on any port of the lagg(4).

Phabric:        D549
Reviewed by:    glebius, thompsa
Approved by:    glebius
Obtained from:  OpenBSD
Sponsored by:   QNAP Systems Inc.
02:01:36 - r271731
(6 days ago)
by will
Affects:  /head/sys/dev/isp/isp_freebsd.c
/head/sys/dev/isp/isp_freebsd.h
Fix a kernel panic when unloading isp(4).

In the current implementation, the isp_kthread() threads never exit.

The target threads do have an exit mode from isp_attach(), but it is
not invoked from isp_detach().

Ensure isp_detach() notifies threads started for each channel, such
that they exit before their parent device softc detaches, and thus
before the module does.  Otherwise, a page fault panic occurs later in:

sysctl_kern_proc
  sysctl_out_proc
    kern_proc_out
      fill_kinfo_proc
        fill_kinfo_thread
          strlcpy(kp->ki_wmesg, td->td_wmesg, sizeof(kp->ki_wmesg));

For isp_kthread() (and isp(4) target threads), td->td_wmesg references
now-unmapped memory after the module has been unloaded.  These threads
are typically msleep()ing at the time of unload, but they could also
attempt to execute now-unmapped code segments.

MFC after:      1 month
Sponsored by:   Spectra Logic
MFSpectraBSD:   r1070921 on 2014/06/22 13:01:17
01:57:36 - r271730
(6 days ago)
by will
Affects:  /head/Makefile.inc1
Root the lib32 object tree under the overall object tree.

This enables a common root directory for all object files for a given tree,
which eases sharing a common MAKEOBJDIRPREFIX, and cleaning up of object trees.

In particular, one can simply (from the source directory) rm -rf /usr/obj$(pwd)
to destroy all object files for it.  Or to copy/sync files, etc.

Reviewed by:    bdrewery
CR:             https://reviews.freebsd.org/D796
MFC after:      1 month
Sponsored by:   Spectra Logic
01:24:40 - r271729
(6 days ago)
by emaste
Affects: 
(3 files)
/stable/10/contrib/llvm/patches/patch-r271432-clang-r205331-debug-info-crash.diff
/stable/10/contrib/llvm/tools/clang/lib/CodeGen/CGDebugInfo.cpp
MFC Clang debuginfo crash fix

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

r271433: Add clang patch corresponding to r271432

Approved by:    re
Sponsored by:   DARPA, AFRL

 


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

Page generated in 30 ms, 324 revisions printed. Current time is 2014-09-24 02:23:50. All times are in UTC/GMT.