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.

2017 - 06 - 28   (today)
02:30:32 - r320428
(1 hour 17 minutes ago)
by cy
Affects:  /head/contrib/ipfilter/tools/ippool.c
In poolnodecommand() (ippool -a and ippool -r) -m (pool name) is not
optional.
00:50:51 - r320427
(2 hours 56 minutes ago)
by grog
Affects:  /head/usr.bin/calendar/calendars/calendar.history
Spelling.
2017 - 06 - 27   (yesterday)
22:05:06 - r320426
(5 hours 42 minutes ago)
by np
Affects:  /head/sys/dev/cxgbe/tom/t4_cpl_io.c
cxgbe/t4_tom: Do not include space taken by the TCP timestamp option in
the "effective MSS" for the connection. The chip expects it this way.

Submitted by: Krishnamraju Eraparaju @ Chelsio
MFC after: 3 days
Sponsored by: Chelsio Communications
20:24:44 - r320425
(7 hours 22 minutes ago)
by imp
Affects:  /head/sbin/nvmecontrol/identify.c
Report some aspects of namespaces and namespace support in identify
command.

Sponsored by: Netflix
Submitted by: Matt Williams (via D11330)
20:24:39 - r320424
(7 hours 22 minutes ago)
by imp
Affects:  /head/sys/dev/nvme/nvme.h
Add new definitions for namespaces.

Sponsored by: Netflix
Submitted by: Matt Williams (via D11330)
20:24:25 - r320423
(7 hours 23 minutes ago)
by imp
Affects: 
(4 files)
/head/sbin/nvmecontrol/*
Move 128-bit integer routines to util.c so they can be used by more
than just the log page code.

Sponsored by: Netflix, Inc
Submitted by: Matt Williams (via D11330)
20:12:13 - r320422
(7 hours 35 minutes ago)
by kib
Affects:  /head/sys/kern/uipc_shm.c
Do not ignore an error from vm_mmap_object().

Found and reviewed by: alc
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
19:26:02 - r320421
(8 hours 21 minutes ago)
by ken
Affects:  /head/sys/cam/cam_periph.c
Fix a panic in camperiphfree().

If a peripheral driver (e.g. da, sa, cd) is added or removed from the
peripheral driver list while an unrelated peripheral driver instance (e.g.
da0, sa5, cd2) is going away and is inside camperiphfree(), we could
dereference an invalid pointer.

When peripheral drivers are added or removed (see periphdriver_register()
and periphdriver_unregister()), the peripheral driver array is resized
and existing entries are moved.

Although we hold the topology lock while we traverse the peripheral driver
list, we retain a pointer to the location of the peripheral driver pointer
and then drop the topology lock. So we are still vulnerable to the list
getting moved around while the lock is dropped.

To solve the problem, cache a copy of the peripheral driver pointer. If
its storage location in the list changes while we have the lock dropped, it
won't have any effect.

This doesn't solve the issue that peripheral drivers ("da", "cd", as opposed
to individual instances like "da0", "cd0") are not generally part of a
reference counting scheme to guard against deregistering them while there
are instances active. The caller (generally the person unloading a module)
has to be aware of active drivers and not unload something that is in use.

sys/cam/cam_periph.c:
  In camperiphfree(), cache a pointer to the peripheral driver
  instance to avoid holding a pointer to an invalid memory location
  in the event that the peripheral driver list changes while we have
  the topology lock dropped.

PR: kern/219701
Submitted by: avg
MFC after: 3 days
Sponsored by: Spectra Logic
17:55:25 - r320420
(9 hours 52 minutes ago)
by ken
Affects:  /head/sys/cam/scsi/scsi_da.c
In scsi_zbc_in(), fill in the length in the ZBC IN CDB.

Without the allocation length set, the target will either reject
the command or complete it without transferring any data.

This fixes the REPORT ZONES command for SCSI ZBC protocol devices,
as well as ATA ZAC protocol devices that are behind a SCSI to ATA
translation layer. (LSI/Broadcom's 12Gb SAS adapters translate ZBC
commands to ZAC commands.) Those are Host Aware and Host Managed SMR
drives.

This will fix REPORT ZONE commands sent to the da(4) driver via the
GEOM bio interface and zonectl, and REPORT ZONE commands sent from
camcontrol(8).

Note that in the case of camcontrol(8), we currently only send
SCSI ZBC commands to native SCSI protocol devices, not ATA devices
behind a SAT layer.

sys/cam/scsi/scsi_da.c:
  Fill in the length field in scsi_zbc_in().

MFC after: 3 days
Sponsored by: Spectra Logic
17:48:11 - r320419
(9 hours 59 minutes ago)
by np
Affects:  /head/sys/dev/cxgbe/iw_cxgbe/cm.c
cxgbe/iw_cxgbe: Disable debug output by default. The help text for the sysctl
already says that the default is 0.

Sponsored by: Chelsio Communications
17:45:47 - r320418
(10 hours 1 minute ago)
by np
Affects:  /head/sys/dev/cxgbe/iw_cxgbe/cm.c
cxgbe/iw_cxgbe: Catch up with r319722. The socket lock is not the same as the
lock for the receive buffer any more.

Sponsored by: Chelsio Communications
17:45:26 - r320417
(10 hours 2 minutes ago)
by alc
Affects:  /head/sys/kern/subr_blist.c
Address the remaining integer overflow issues with the "skip" parameters
and "next_skip" variables. The "skip" value in struct blist has long been
a 64-bit quantity but various functions have implicitly truncated this
value to 32 bits. Now, all arithmetic involving the "skip" value is 64
bits wide. (This should allow us to relax the size limit on a swap device
in the swap pager.)

Maintain the ability to test this allocator as a user-space application by
including <stdbool.h>.

Remove an unused variable from blst_radix_print().

Reviewed by: kib, markj
MFC after: 4 weeks
Differential Revision: https://reviews.freebsd.org/D11358
17:43:28 - r320416
(10 hours 4 minutes ago)
by np
Affects:  /head/sys/dev/cxgbe/tom/t4_listen.c
cxgbe/t4_tom: sbspace on listening sockets is no longer supported (as of
r319722), use sol_sbrcv_hiwat instead.

Sponsored by: Chelsio Communications
17:23:20 - r320415
(10 hours 24 minutes ago)
by cem
Affects:  /head/sys/kern/uipc_mbuf.c
Fix one more place uio_resid is truncated to int

A follow-up to r231949 and r194990.

Reported by: pho@
Reviewed by: kib@, markj@
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D11373
17:22:03 - r320414
(10 hours 25 minutes ago)
by ngie
Affects:  /head/contrib/netbsd-tests/usr.bin/grep/t_grep.sh
Expect :mmap_eof_not_eol to fail

It relies on a jemalloc feature (opt.redzone) no longer available after
r319971.

MFC with: r318908, r319971
PR: 220309
17:01:46 - r320413
(10 hours 45 minutes ago)
by ngie
Affects:  /head/sys/fs/pseudofs/pseudofs_vnops.c
Fix LINT, broken by a -Wformat warning in r320329 with PFS_DELEN being
changed from %d to a long-width type.

Use uintmax_t casting and %ju to futureproof the format string against
potential changes with either the #define or the implementation-specific
definition for offsetof(..).
16:48:05 - r320412
(10 hours 59 minutes ago)
by imp
Affects:  /head/sys/cam/nvme/nvme_da.c
Namespace is 32-bits, don't cast it to 16 here
16:30:01 - r320411
(11 hours 17 minutes ago)
by andrew
Affects:  /head/sys/arm64/include/endian.h
Add parentheses missed in r320388

Sponsored by: DARPA, AFRL
16:05:11 - r320410
(11 hours 42 minutes ago)
by zi
Affects:  /svnadmin/hooks/scripts/mailer.py
- Add in additional X-SVN-* headers to assist with mail sorting

PR: 200484
Requested by: emaste
15:14:06 - r320409
(12 hours 33 minutes ago)
by trasz
Affects:  /head/sys/fs/nfs/nfs_commonsubs.c
Revert part of r320359, as suggested by rmacklem@. That case is only used
for nfsuserd -manage-gids and shouldn't depend on sysctl.

MFC after: 2 weeks
Sponsored by: DARPA, AFRL
15:07:19 - r320408
(12 hours 40 minutes ago)
by pfg
Affects:  /head/sys/fs/ext2fs/ext2_inode_cnv.c
ext2fs: Support e2di_uid_high and e2di_gid_high.

The fields exist on all versions of the filesystem and using them is a mount
option on linux. For FreeBSD, the corresponding i_uid and i_gid are always
long enough so use them by default.

Reviewed by: Fedor Uporov
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D11354
14:39:00 - r320407
(13 hours 8 minutes ago)
by gjb
Affects:  /head/release/arm64/RPI3.conf
Remove CHROOT_MAKEENV from the RPI3 configuration file, to avoid
assuming the build host is amd64.

MFC after: 3 days
X-MFC-With: r320252, r320253, r320254
X-MFC-Note: maybe
Sponsored by: The FreeBSD Foundation
13:24:06 - r320406
(14 hours 23 minutes ago)
by jwd
Affects:  /head/libexec/rshd/rshd.c
A little tweak for performance

Reviewed by: adrian
Approved by: rmacklem (mentor)
MFC after: 3 weeks
12:56:36 - r320405
(14 hours 51 minutes ago)
by ken
Affects: 
(2 files)
/stable/11/sys/cam/scsi/scsi_sa.c
MFC r320123:

  Fix a potential sleep while holding a mutex in the sa(4) driver.

  If the user issues a MTIOCEXTGET ioctl, and the tape drive in question has
  a serial number that is longer than 80 characters, we malloc a buffer in
  saextget() to hold the output of cam_strvis().

  Since a mutex is held in that codepath, doing a M_WAITOK malloc could lead
  to sleeping while holding a mutex. Change it to a M_NOWAIT malloc and bail
  out if we fail to allocate the memory. Devices with serial numbers longer
  than 80 bytes are very rare (I don't recall seeing one), so this
  should be a very unusual case to hit. But it is a bug that should be fixed.

  sys/cam/scsi/scsi_sa.c:
  In saextget(), if we need to malloc a buffer to hold the output of
  cam_strvis(), don't wait for the memory. Fail and return an error
  if we can't allocate the memory immediately.

PR: kern/220094
Submitted by: Jia-Ju Bai <baijiaju1990@163.com>
Sponsored by: Spectra Logic
Approved by: re (gjb)
10:50:48 - r320404
(16 hours 56 minutes ago)
by kib
Affects: 
(2 files)
/stable/11/sys/i386/isa/npx.c
MFC r320307:
Fix indent.

Approved by: re (marius)
10:45:13 - r320403
(17 hours 2 minutes ago)
by andrew
Affects:  /head/sys/arm64/include/atomic.h
Some of the atomic_clear_* functions were incorrectly defined to be an
atomic add. Correct these, fixing a NULL-pointer dereference in netgraph.

PR: 220273
MFC after: 3 days
Sponsored by: DARPA, AFRL
10:09:00 - r320402
(17 hours 38 minutes ago)
by kib
Affects: 
(2 files)
/stable/11/lib/libc/sys/mmap.2
MFC r320314:
Remove the description of MAP_HASSEMAPHORE.

Approved by: re (marius)
09:42:56 - r320401
(18 hours 4 minutes ago)
by kib
Affects: 
(2 files)
/stable/11/lib/libc/sys/mmap.2
MFC r320313:
Fix typo.

Approved by: re (marius)
08:49:47 - r320400
(18 hours 57 minutes ago)
by ngie
Affects:  /head/lib/libprocstat/libprocstat.3
Add initial documentation for procstat_freeptlwpinfo and procstat_getptlwpinfo

MFC after: 1 month
MFC with: r316286
08:18:08 - r320399
(19 hours 29 minutes ago)
by ngie
Affects:  /head/lib/libprocstat/libprocstat.c
procstat_getptlwpinfo(..): clarify the fact that KVM/SYSCTL support
isn't supported

This will make the error message reported in bug 220023 a bit more
intuitive for end-users that don't have access to the source code to
decode the procstat->type argument.

MFC after: 1 month
MFC with: r316286
PR: 220023
06:44:32 - r320398
(21 hours 3 minutes ago)
by dim
Affects: 
(1102 files)
/projects/clang500-import/*
Merge ^/head r320042 through r320397.
06:40:39 - r320397
(21 hours 6 minutes ago)
by dim
Affects: 
(785 files)
/projects/clang500-import/contrib/*
/projects/clang500-import/lib/clang/*
/projects/clang500-import/usr.bin/clang/*
Merge llvm, clang, lld, lldb, compiler-rt and libc++ r306325, and update
build glue.
06:02:50 - r320396
(21 hours 44 minutes ago)
by ngie
Affects:  /projects/runtime-coverage/share/mk/bsd.lib.mk
Stash work for adding runtime coverage support to bsd.lib.mk

The initial work uses static libraries instead of dynamic libraries, for
parity with pico-style libraries.

I suspect this approach is slightly flawed, but I wanted to stash the WiP,
just in case.
04:54:58 - r320395
(22 hours 52 minutes ago)
by cy
Affects:  /head/contrib/ipfilter/tools/ippool_y.y
Replace AF_INET6 ifdefs with USE_INET6 to be consistent with the rest
of the ipfilter souce tree.
03:57:31 - r320394
(23 hours 50 minutes ago)
by jpaetzel
Affects:  /head/sys/dev/bktr/bktr_core.c
ioctl METEORGBRIG in bktr_core.c forgets to add 128 to value

PR: 59289
Submitted by: Danovitsch@Vitsch.net
03:45:09 - r320393
(1 day ago)
by jpaetzel
Affects:  /head/sys/dev/bktr/bktr_core.c
driver incorrectly handles the setting of frame rates

PR: 36415
Submitted by: brandt@fokus.gmd.de
01:57:22 - r320392
(1 day 1 hour ago)
by jhibbits
Affects:  /head/sys/powerpc/booke/pmap.c
Disable interrupts when updating the TLB

Without disabling interrupts it's possible for another thread to preempt
and update the registers post-read (tlb1_read_entry) or pre-write
(tlb1_write_entry), and confuse the kernel with mixed register states.

MFC after: 2 weeks
01:29:10 - r320391
(1 day 2 hours ago)
by jhibbits
Affects:  /head/sys/compat/freebsd32/freebsd32.h
/head/sys/compat/freebsd32/freebsd32_misc.c
/head/sys/net/bpf.c
Update comments and simplify conditionals for compat32

Only amd64 (because of i386) needs 32-bit time_t compat now, everything else is
64-bit time_t. Rather than checking on all 64-bit time_t archs, only check the
oddball amd64/i386.

Reviewed By: emaste, kib, andrew
Differential Revision: https://reviews.freebsd.org/D11364
01:22:27 - r320390
(1 day 2 hours ago)
by araujo
Affects:  /head/sys/geom/part/g_part.c
With r318394 seems it breaks gpart(8) in some embedded systems such like
PCEngines,
RPI1-B, Alix and APU2 boards as well as NanoBSD with the following message:

vnode_pager_generic_getpages_done: I/O read error 5

Seems the breakage was because it was missed to include acr in glabel update.

Reported by: Peter Blok <pblok@bsd4all.org>,
  madpilot, imp and trasz.
Reviewed by: trasz
Tested by: Peter Blok and madpilot.
MFC after: 3 days.
Sponsored by: iXsystems, Inc.
Differential Revision: https://reviews.freebsd.org/D11365
2017 - 06 - 26   (2 days ago)
22:48:04 - r320389
(1 day 4 hours ago)
by imp
Affects:  /head/usr.bin/truss/syscalls.c
Sort the compat11.* syscalls I added. Remove duplicate compat11.stat.

Submitted by: jhb@
22:32:52 - r320388
(1 day 5 hours ago)
by andrew
Affects:  /head/sys/arm64/include/endian.h
In _bswap16 and _bswap32 cast constant values to the appropriate type. This is
similar to what is done in the x86 code.

Sponsored by: DARPA, AFRL
21:45:33 - r320387
(1 day 6 hours ago)
by gonzo
Affects:  /head/sys/arm/arm/gic.c
[arm] Use correct index value when checking range validity

Reviewed by: andrew
MFC after: 3 weeks
Differential Revision: https://reviews.freebsd.org/D9145
21:14:33 - r320386
(1 day 6 hours ago)
by markj
Affects:  /head/sys/modules/linuxkpi/Makefile
Sort SRCS.

MFC after: 1 week
20:34:02 - r320385
(1 day 7 hours ago)
by dim
Affects:  /vendor/lldb/lldb-trunk-r306325
Tag lldb trunk r306325.
20:33:56 - r320384
(1 day 7 hours ago)
by dim
Affects: 
(101 files)
/vendor/lldb/dist/*
Vendor import of lldb trunk r306325:
https://llvm.org/svn/llvm-project/lldb/trunk@306325
20:33:51 - r320383
(1 day 7 hours ago)
by dim
Affects:  /vendor/lld/lld-trunk-r306325
Tag lld trunk r306325.
20:33:45 - r320382
(1 day 7 hours ago)
by dim
Affects: 
(108 files)
/vendor/lld/dist/*
Vendor import of lld trunk r306325:
https://llvm.org/svn/llvm-project/lld/trunk@306325
20:33:41 - r320381
(1 day 7 hours ago)
by dim
Affects:  /vendor/libc++/libc++-trunk-r306325
Tag libc++ trunk r306325.
20:33:34 - r320380
(1 day 7 hours ago)
by dim
Affects: 
(43 files)
/vendor/libc++/dist/*
Vendor import of libc++ trunk r306325:
https://llvm.org/svn/llvm-project/libcxx/trunk@306325
20:33:28 - r320379
(1 day 7 hours ago)
by dim
Affects:  /vendor/compiler-rt/compiler-rt-trunk-r306325
Tag compiler-rt trunk r306325.
20:33:22 - r320378
(1 day 7 hours ago)
by dim
Affects: 
(63 files)
/vendor/compiler-rt/dist/*
Vendor import of compiler-rt trunk r306325:
https://llvm.org/svn/llvm-project/compiler-rt/trunk@306325
20:33:18 - r320377
(1 day 7 hours ago)
by dim
Affects:  /vendor/clang/clang-trunk-r306325
Tag clang trunk r306325.
20:33:12 - r320376
(1 day 7 hours ago)
by dim
Affects: 
(203 files)
/vendor/clang/dist/*
Vendor import of clang trunk r306325:
https://llvm.org/svn/llvm-project/cfe/trunk@306325
20:33:01 - r320375
(1 day 7 hours ago)
by dim
Affects:  /vendor/llvm/llvm-trunk-r306325
Tag llvm trunk r306325.
20:32:52 - r320374
(1 day 7 hours ago)
by dim
Affects: 
(990 files)
/vendor/llvm/dist/*
Vendor import of llvm trunk r306325:
https://llvm.org/svn/llvm-project/llvm/trunk@306325
20:17:48 - r320373
(1 day 7 hours ago)
by gjb
Affects:  /head/release/arm/CUBIEBOARD2.conf
Revert r319603, r319608, and r319609. Creating a hard link to the
dtb file for the cubieboard2 is no longer needed in 12-CURRENT.

Sponsored by: The FreeBSD Foundation
19:41:14 - r320372
(1 day 8 hours ago)
by markj
Affects:  /head/sys/cam/scsi/scsi_enc_ses.c
Fix a memory leak in ses_get_elm_devnames().

After r307132 the sbuf buffer is malloc()ed, but corresponding
sbuf_delete() call was missing.

Fix a nearby whitespace bug.

MFC after: 3 days
Sponsored by: Dell EMC Isilon
19:40:10 - r320371
(1 day 8 hours ago)
by davidcs
Affects: 
(4 files)
/stable/9/sys/dev/qlxgbe/ql_hw.c
/stable/9/sys/dev/qlxgbe/ql_hw.h
MFC r320175
Add pkts_cnt_oversized to stats.
19:36:24 - r320370
(1 day 8 hours ago)
by davidcs
Affects: 
(3 files)
/stable/11/sys/dev/qlxgbe/ql_hw.c
/stable/11/sys/dev/qlxgbe/ql_hw.h
MFC r320175
Add pkts_cnt_oversized to stats.

Approved by: re(marius)
18:28:00 - r320369
(1 day 9 hours ago)
by lidl
Affects:  /head/sys/mips/conf/ERL
Add IPSEC support to mips ERL kernel config file
18:23:40 - r320368
(1 day 9 hours ago)
by davidcs
Affects: 
(3 files)
/stable/10/sys/dev/qlxgbe/ql_hw.c
/stable/10/sys/dev/qlxgbe/ql_hw.h
MFC r320175
Add pkts_cnt_oversized to stats.
18:11:48 - r320367
(1 day 9 hours ago)
by emaste
Affects:  /head/share/vt/fonts/Makefile
/head/share/vt/fonts/terminus-b32.hex
Add "Terminus BSD Console" size 32

Dimitar Toshkov, Terminus' creator, has made size 32 available under the
2-clause BSD license for use by *BSD consoles.
17:33:33 - r320366
(1 day 10 hours ago)
by mckusick
Affects: 
(2 files)
/stable/10/sbin/newfs/newfs.c
MFC of 320176:

Allow '_' in labels when specifying -L to newfs.

PR: 220163
Reported by: Keve Nagy
Reviewed by: kib
17:29:32 - r320365
(1 day 10 hours ago)
by mckusick
Affects: 
(2 files)
/stable/11/sbin/newfs/newfs.c
MFC of 320176:

Allow '_' in labels when specifying -L to newfs.

PR: 220163
Reported by: Keve Nagy
Reviewed by: kib
Approved by: re@ (Xin Li)
16:28:46 - r320364
(1 day 11 hours ago)
by markj
Affects: 
(4 files)
/head/sys/compat/linuxkpi/common/*
/head/sys/conf/files
/head/sys/modules/linuxkpi/Makefile
Implement parts of the hrtimer API in the LinuxKPI.

Reviewed by: hselasky
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D11359
16:08:28 - r320363
(1 day 11 hours ago)
by trasz
Affects:  /head/usr.bin/resizewin/resizewin.c
Improve terminology in a comment.

Suggested by: ian
MFC after: 2 weeks
15:40:24 - r320362
(1 day 12 hours ago)
by trasz
Affects:  /head/share/zoneinfo/Makefile
Provide visual feedback when timezone files are installed.
After r320003 it wasn't being shown in any way.

Submitted by: bdrewery
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D11154
15:23:12 - r320361
(1 day 12 hours ago)
by ken
Affects: 
(2 files)
/stable/10/sys/cam/scsi/scsi_sa.c
MFC r320123:

  Fix a potential sleep while holding a mutex in the sa(4) driver.

  If the user issues a MTIOCEXTGET ioctl, and the tape drive in question has
  a serial number that is longer than 80 characters, we malloc a buffer in
  saextget() to hold the output of cam_strvis().

  Since a mutex is held in that codepath, doing a M_WAITOK malloc could lead
  to sleeping while holding a mutex. Change it to a M_NOWAIT malloc and bail
  out if we fail to allocate the memory. Devices with serial numbers longer
  than 80 bytes are very rare (I don't recall seeing one), so this
  should be a very unusual case to hit. But it is a bug that should be fixed.

  sys/cam/scsi/scsi_sa.c:
  In saextget(), if we need to malloc a buffer to hold the output of
  cam_strvis(), don't wait for the memory. Fail and return an error
  if we can't allocate the memory immediately.

PR: kern/220094
Submitted by: Jia-Ju Bai <baijiaju1990@163.com>
Sponsored by: Spectra Logic
13:14:41 - r320360
(1 day 14 hours ago)
by trasz
Affects:  /head/usr.bin/resizewin/resizewin.c
Make resizewin(1) do flushing by using TCSAFLUSH instead of TCSANOW
followed by tcflush(3). This works just as well and is more elegant.

Suggested by: bde
MFC after: 2 weeks
Sponsored by: DARPA, AFRL
13:11:21 - r320359
(1 day 14 hours ago)
by trasz
Affects:  /head/sys/fs/nfs/nfs_commonsubs.c
/head/sys/fs/nfsserver/nfs_nfsdport.c
Add vfs.nfsd.nfsd_enable_uidtostring, which works just like
vfs.nfsd.nfsd_enable_stringtouid, but in reverse - when set to 1,
it forces the NFSv4 server to return numeric UIDs and GIDs instead
of "user@domain" strings. This helps with clients that can't
translate returned identifiers, eg when rerooting.

The same can be achieved by just never running nfsuserd(8),
but the sysctl is useful to toggle the behaviour back and forth
without rebooting.

Reviewed by: rmacklem (earlier version)
MFC after: 2 weeks
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D11326
12:37:11 - r320358
(1 day 15 hours ago)
by kib
Affects: 
(2 files)
/stable/11/sys/vm/vm_map.c
MFC r320121:
Ignore the P_SYSTEM process flag, and do not request
VM_MAP_WIRE_SYSTEM mode when wiring the newly grown stack.

Approved by: re (marius)
12:30:39 - r320357
(1 day 15 hours ago)
by kib
Affects: 
(4 files)
/stable/11/sys/x86/iommu/intel_ctx.c
/stable/11/sys/x86/iommu/intel_dmar.h
/stable/11/sys/x86/iommu/intel_qi.c
MFC r320125:
Fix batched unload for DMAR busdma in qi mode.

Approved by: re (marius)
12:17:04 - r320356
(1 day 15 hours ago)
by kib
Affects: 
(2 files)
/stable/11/sys/kern/vfs_aio.c
MFC r320108:
Allow negative aio_offset only for the read and write LIO ops on
device nodes.

Approved by: re (marius)
09:34:41 - r320355
(1 day 18 hours ago)
by avg
Affects: 
(2 files)
/stable/10/sys/dev/jedec_ts/jedec_ts.c
MFC r320259: jedec_ts: read device id from the correct register
09:32:57 - r320354
(1 day 18 hours ago)
by avg
Affects: 
(2 files)
/stable/11/sys/dev/jedec_ts/jedec_ts.c
MFC r320259: jedec_ts: read device id from the correct register

Approved by: re (marius)
09:13:25 - r320353
(1 day 18 hours ago)
by avg
Affects:  /head/sys/compat/linux/linux_file.c
linux_getdents, linux_readdir: fix mismatch between malloc and free tags

MFC after: 3 days
09:10:09 - r320352
(1 day 18 hours ago)
by avg
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa_misc.c
/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/vdev_file.h
/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_file.c
zfs: port vdev_file part of illumos change 3306

3306 zdb should be able to issue reads in parallel
illumos/illumos-gate/31d7e8fa33fae995f558673adb22641b5aa8b6e1
https://www.illumos.org/issues/3306

The upstream change was made before we started to import upstream commits
individually. It was imported into the illumos vendor area as r242733.
That commit was MFV-ed in r260138, but as the commit message says
vdev_file.c was left intact.

This commit actually implements the parallel I/O for vdev_file using a
taskqueue with multiple thread. This implementation does not depend on
the illumos or FreeBSD bio interface at all, but uses zio_t to pass
around all the relevent data. So, the code looks a bit different from
the upstream.

This commit also incorporates ZoL commit
zfsonlinux/zfs/bc25c9325b0e5ced897b9820dad239539d561ec9 that fixed
https://github.com/zfsonlinux/zfs/issues/2270
We need to use a dedicated taskqueue for exactly the same reason as ZoL
as we do not implement TASKQ_DYNAMIC.

Obtained from: illumos, ZFS on Linux
MFC after: 2 weeks
05:56:49 - r320351
(1 day 21 hours ago)
by sephe
Affects: 
(2 files)
/stable/11/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
MFC 320184

  hyperv/storvsc: Reduce log verbosity

  On some windows hosts TEST_UNIT_READY command will return
  SRB_STATUS_ERROR and sense data "NOT READY asc:3a,1 (Medium
  not present - tray closed)", this occurs periodically, and
  not hurt anything else. So, we prefer to ignore this kind
  of errors.

  Approved by: re (delphij)
  PR: 219973
  Submitted by: Hongjiang Zhang <hongzhan microsoft com>
  Sponsored by: Microsoft
  Differential Revision: https://reviews.freebsd.org/D11271
05:43:44 - r320350
(1 day 22 hours ago)
by cy
Affects: 
(2 files)
/stable/10/etc/ntp/leap-seconds
MFC r320242, r320256:

Update leap-seconds to leap-seconds.3676924800.

As per https://datacenter.iers.org/eop/-/somos/5Rgv/latest/16:

  INTERNATIONAL EARTH ROTATION AND REFERENCE SYSTEMS SERVICE (IERS)

SERVICE INTERNATIONAL DE LA ROTATION TERRESTRE ET DES SYSTEMES DE REFERENCE

SERVICE DE LA ROTATION TERRESTRE
OBSERVATOIRE DE PARIS
61, Av. de l'Observatoire 75014 PARIS (France)
Tel. : 33 (0) 1 40 51 23 35
FAX : 33 (0) 1 40 51 22 91
Internet : services.iers@obspm.fr

  Paris, 9 January 2017

  Bulletin C 53

  To authorities responsible
  for the measurement and
  distribution of time

  INFORMATION ON UTC - TAI

 NO leap second will be introduced at the end of June 2017.
 The difference between Coordinated Universal Time UTC and the
 International Atomic Time TAI is :

  from 2017 January 1, 0h UTC, until further notice : UTC-TAI = -37 s

 Leap seconds can be introduced in UTC at the end of the months of December
 or June, depending on the evolution of UT1-TAI. Bulletin C is mailed every
 six months, either to announce a time step in UTC, or to confirm that there
 will be no time step at the next possible date.

  Christian BIZOUARD
  Director
  Earth Orientation Center of IERS
  Observatoire de Paris, France

Obtained from: ftp://time.nist.gov/pub/leap-seconds.3676924800
05:42:35 - r320349
(1 day 22 hours ago)
by cy
Affects: 
(2 files)
/stable/11/etc/ntp/leap-seconds
MFC r320242, r320256:

Update leap-seconds to leap-seconds.3676924800.

As per https://datacenter.iers.org/eop/-/somos/5Rgv/latest/16:

  INTERNATIONAL EARTH ROTATION AND REFERENCE SYSTEMS SERVICE (IERS)

SERVICE INTERNATIONAL DE LA ROTATION TERRESTRE ET DES SYSTEMES DE REFERENCE

SERVICE DE LA ROTATION TERRESTRE
OBSERVATOIRE DE PARIS
61, Av. de l'Observatoire 75014 PARIS (France)
Tel. : 33 (0) 1 40 51 23 35
FAX : 33 (0) 1 40 51 22 91
Internet : services.iers@obspm.fr

  Paris, 9 January 2017

  Bulletin C 53

  To authorities responsible
  for the measurement and
  distribution of time

  INFORMATION ON UTC - TAI

 NO leap second will be introduced at the end of June 2017.
 The difference between Coordinated Universal Time UTC and the
 International Atomic Time TAI is :

  from 2017 January 1, 0h UTC, until further notice : UTC-TAI = -37 s

 Leap seconds can be introduced in UTC at the end of the months of December
 or June, depending on the evolution of UT1-TAI. Bulletin C is mailed every
 six months, either to announce a time step in UTC, or to confirm that there
 will be no time step at the next possible date.

  Christian BIZOUARD
  Director
  Earth Orientation Center of IERS
  Observatoire de Paris, France

Obtained from: ftp://time.nist.gov/pub/leap-seconds.3676924800
Approved by: re@ (delphij@)
02:33:59 - r320348
(2 days 1 hour ago)
by sephe
Affects: 
(2 files)
/stable/10/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
MFC 320184

  hyperv/storvsc: Reduce log verbosity

  On some windows hosts TEST_UNIT_READY command will return
  SRB_STATUS_ERROR and sense data "NOT READY asc:3a,1 (Medium
  not present - tray closed)", this occurs periodically, and
  not hurt anything else. So, we prefer to ignore this kind
  of errors.

  PR: 219973
  Submitted by: Hongjiang Zhang <hongzhan microsoft com>
  Sponsored by: Microsoft
  Differential Revision: https://reviews.freebsd.org/D11271
02:25:19 - r320347
(2 days 1 hour ago)
by jhibbits
Affects: 
(9 files)
/head/UPDATING
/head/share/man/man7/arch.7
/head/sys/*
Solve the y2038 problem for powerpc

AKA Make time_t 64 bits on powerpc(32).

PowerPC currently (until now) was one of two architectures with a 32-bit time_t
on 32-bit archs (the other being i386). This is an ABI breakage, so all ports,
and all local binaries, *must* be recompiled.

Tested by: andreast, others
MFC after: Never
Relnotes: Yes
02:00:22 - r320346
(2 days 1 hour ago)
by emaste
Affects: 
(2 files)
/stable/10/contrib/libstdc++/config/abi/pre/gnu.ver
MFC r317159: libstdc++: fix symbol version script for LLD

LLD is less tolerant of inconsistencies in the symbol version script.

- Add a ; on the last entry in a version block
- Remove duplicated symbols, retaining those in the earliest block

PR: 214796
Sponsored by: The FreeBSD Foundation
00:43:04 - r320345
(2 days 3 hours ago)
by rmacklem
Affects: 
(5 files)
/head/sys/fs/nfs/nfs_var.h
/head/sys/fs/nfsclient/*
Add support to the NFSv4.1/pNFS client for commits through the DS.

A NFSv4.1/pNFS server using File Layout can specify that Commit operations
are to be done against the DS instead of MDS. Since no extant pNFS
server did this, the code was untested and "#ifdef notyet".
The FreeBSD pNFS server I am developing does specify that Commits be done
through the DS, so the code has been enabled/tested.
This patch should only affect the case of a pNFS server that specfies
Commits through the DS.

PR: 219551
MFC after: 2 weeks
2017 - 06 - 25   (3 days ago)
23:16:37 - r320344
(2 days 4 hours ago)
by kib
Affects:  /head/sys/vm/vm_map.c
For now, allow mprotect(2) over the guards to succeed regardless of
the requested protection.

The syscall returns success without changing the protection of the
guard. This is consistent with the current mprotect(2) behaviour on
the unmapped ranges. More important, the calls performed by libc and
libthr to allow execution of stacks, if requested by the loaded ELF
objects, do the expected change instead of failing on the grow space
guard.

Reviewed by: alc, markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
22:39:28 - r320343
(2 days 5 hours ago)
by emaste
Affects: 
(6 files)
/head/contrib/elftoolchain/elfdump/elfdump.c
/head/contrib/elftoolchain/libelftc/*
Update to ELF Tool Chain snapshot at r3561

This update is primarily bug fixes in C++ symbol demangling, including:

- rvalue reference
- builtin type auto and decltype(auto)
- revamped support for function return types
- formatting fixes
- omit void when its the only param
- ref-qualifiers and others in function types
- type qualifiers in pointer-to-member function types
- incorrect handling regarding CV-qualifiers in function types
- ref-qualifier found in nested-name
- properly handle <name> ::= <substitute><template-args>
- make sure that nested function name is not a substitute candidate
- correctly handle expression in template args
- skip unknown substitution abbreviations

MFC after: 4 days
22:19:34 - r320342
(2 days 5 hours ago)
by emaste
Affects:  /vendor/elftoolchain/elftoolchain-r3561
Tag ELF Tool Chain r3561
22:19:01 - r320341
(2 days 5 hours ago)
by emaste
Affects: 
(20 files)
/vendor/elftoolchain/dist/elfdump/elfdump.c
/vendor/elftoolchain/dist/libelftc/*
/vendor/elftoolchain/dist/test/*
Import ELF Tool Chain snapshot at r3561

From http://svn.code.sf.net/p/elftoolchain/code
21:53:08 - r320340
(2 days 5 hours ago)
by jilles
Affects: 
(4 files)
/head/bin/sh/cd.c
/head/bin/sh/sh.1
/head/bin/sh/tests/builtins/*
sh: Ignore error when cd writes the directory actually switched to.

If CDPATH is used non-trivially or the operand is "-", cd writes the
directory actually switched to. (We currently do this only in interactive
shells, but POSIX requires this in non-interactive shells as well.)

As mentioned in Austin group bug #1045, cd shall not return an error while
leaving the current directory changed. Therefore, ignore any write error.
20:06:05 - r320339
(2 days 7 hours ago)
by kib
Affects:  /head/sys/vm/vm_map.c
Correctly handle small MAP_STACK requests.

If mmap(2) is called with the MAP_STACK flag and the size which is
less or equal to the initial stack mapping size plus guard,
calculation of the mapping layout created zero-sized guard. Attempt
to create such entry failed in vm_map_insert(), causing the whole
mmap(2) call to fail.

Fix it by adjusting the initial mapping size to have space for
non-empty guard. Reject MAP_STACK requests which are shorter or equal
to the configured guard pages size.

Reported and tested by: Manfred Antar <null@pozo.com>
Reviewed by: alc, markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
19:59:39 - r320338
(2 days 7 hours ago)
by kib
Affects:  /head/sys/vm/vm_map.c
Remove stale part of the comment.

Reviewed by: alc, markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
19:30:20 - r320337
(2 days 8 hours ago)
by markj
Affects:  /head/sys/compat/linuxkpi/common/include/linux/kernel.h
Add u64_to_user_ptr() to the LinuxKPI.

MFC after: 1 week
19:28:01 - r320336
(2 days 8 hours ago)
by markj
Affects:  /head/sys/compat/linuxkpi/common/include/linux/ktime.h
Add ns_to_ktime() to the LinuxKPI.

MFC after: 1 week
19:23:14 - r320335
(2 days 8 hours ago)
by markj
Affects:  /head/sys/compat/linuxkpi/common/include/linux/lockdep.h
Add a couple of macros to lockdep.h in the LinuxKPI.

MFC after: 1 week
19:21:59 - r320334
(2 days 8 hours ago)
by markj
Affects:  /head/sys/compat/linuxkpi/common/include/linux/device.h
Add the thaw_early method to struct dev_pm_ops in the LinuxKPI.

MFC after: 1 week
19:20:12 - r320333
(2 days 8 hours ago)
by markj
Affects:  /head/sys/compat/linuxkpi/common/include/linux/fs.h
Add noop_lseek() to the LinuxKPI.

MFC after: 1 week
18:40:59 - r320332
(2 days 9 hours ago)
by kib
Affects:  /head/sys/vm/vm_map.c
Style.

Reviewed by: alc, markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
18:01:27 - r320331
(2 days 9 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Fix an incorrect revision number.

Submitted by: David Marec <david dot marec at @davenulle dot .org>
Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation
17:42:27 - r320330
(2 days 10 hours ago)
by delphij
Affects: 
(2 files)
/stable/11/lib/libc/rpc/rpcb_clnt.c
MFC r320216: Fix use-after-free introduced in r300388.

In r300388, endnetconfig() was called on nc_handle which would release
the associated netconfig structure, which means tmpnconf->nc_netid
would be a use-after-free.

Solve this by doing endnetconfig() in return paths instead.

Reported by: jemalloc via kevlo
Reviewed by: cem, ngie (earlier version)
Approved by: re (kib)
15:21:51 - r320329
(2 days 12 hours ago)
by dchagin
Affects:  /head/sys/fs/pseudofs/pseudofs.h
PFS_DELEN is the sum of the permanent part of the struct dirent and
fixed size for the name buffer PFS_NAMELEN.
As r318736 was commited (ino64 project) the size of the permanent part
of the struct dirent was changed, so calulate PFS_DELEN properly.
13:22:49 - r320328
(2 days 14 hours ago)
by andrew
Affects:  /head/sys/arm64/arm64/pmap.c
Stop calling cpu_dcache_wb_range from PTE_SYNC.

We set the shareability attributes in TCR_EL1 on boot. These tell the
hardware the pagetables are in cached memory so there is no need to flush
the entries from the cache to memory.

This has about 4.2% improvement in system time and 2.7% improvement in
user time for a buildkernel -j48 on a ThunderX.

Keep the old code for now to allow for further comparisons.
11:31:39 - r320327
(2 days 16 hours ago)
by manu
Affects:  /head/sys/arm/conf/ALLWINNER
Remove ALLWINNER kernel config file, all release image for SMP Allwinner
board uses GENERIC and it's not updated for newer SoC.
06:55:42 - r320326
(2 days 20 hours ago)
by delphij
Affects: 
(2 files)
/stable/9/lib/libc/rpc/rpcb_clnt.c
MFC r320216: Fix use-after-free introduced in r300388.

In r300388, endnetconfig() was called on nc_handle which would release
the associated netconfig structure, which means tmpnconf->nc_netid
would be a use-after-free.

Solve this by doing endnetconfig() in return paths instead.

Reported by: jemalloc via kevlo
Reviewed by: cem, ngie (earlier version)
05:46:03 - r320325
(2 days 22 hours ago)
by delphij
Affects: 
(2 files)
/stable/10/lib/libc/rpc/rpcb_clnt.c
MFC r320216: Fix use-after-free introduced in r300388.

In r300388, endnetconfig() was called on nc_handle which would release
the associated netconfig structure, which means tmpnconf->nc_netid
would be a use-after-free.

Solve this by doing endnetconfig() in return paths instead.

Reported by: jemalloc via kevlo
Reviewed by: cem, ngie (earlier version)
01:41:07 - r320324
(3 days 2 hours ago)
by glebius
Affects:  /head/sys/kern/uipc_sockbuf.c
/head/sys/kern/uipc_socket.c
/head/sys/sys/sockbuf.h
Provide sbsetopt() that handles socket buffer related socket options.
It distinguishes between data flow sockets and listening sockets, and
in case of the latter doesn't change resource limits, since listening
sockets don't hold any buffers, they only carry values to be inherited
by their children.
2017 - 06 - 24   (4 days ago)
20:09:23 - r320323
(3 days 7 hours ago)
by rmacklem
Affects:  /head/usr.bin/nfsstat/nfsstat.c
Add RPC count reporting for the two new RPCs added by r320322.

This is a content change.

PR: 219550
MFC after: 2 weeks
20:01:21 - r320322
(3 days 7 hours ago)
by rmacklem
Affects: 
(5 files)
/head/sys/fs/nfs/*
/head/sys/fs/nfsclient/*
Add two new compound RPCs to the NFSv4.1/pNFS client.

When the NFSv4.1 client is doing pNFS, it needs to get an Open and
a Layout for every file it will be doing I/O on. The current code
does two separate RPCs to get these. This patch adds two new compounds
that do the both the Open and LayoutGet in the same RPC, reducing the
RPC count.
It also factors out the code that sets up and parses the LayoutGet operation
into separate functions, so that the code doesn't get duplicated for
these new RPCs.
This patch is fairly large, but should only affect the NFSv4.1 client
when the "pnfs" option is specified.

PR: 219550
MFC after: 2 weeks
18:37:51 - r320321
(3 days 9 hours ago)
by emaste
Affects:  /head/Makefile.inc1
/head/UPDATING
Clean up stale dependencies after r320278

Our current approach to dependency tracking cannot cope with switching
generated asm syscall stubs into C wrappers. Perpetuate the hack in
Makefile.inc1 to paper over the problem until we can take a holistic
approach to fixing dependency problems.

Differential Revision: https://reviews.freebsd.org/D11344
17:19:31 - r320320
(3 days 10 hours ago)
by pho
Affects:  /user/pho/stress2/misc/mmap16.sh
Updated to use MAP_GUARD.

Sponsored by: Dell EMC Isilon
17:10:33 - r320319
(3 days 10 hours ago)
by alc
Affects:  /head/sys/vm/swap_pager.c
/head/sys/vm/vm_pageout.c
Increase the pageout cluster size to 32 pages.

Decouple the pageout cluster size from the size of the hash table entry
used by the swap pager for mapping (object, pindex) to a block on the
swap device(s), and keep the size of a hash table entry at its current
size.

Eliminate a pointless macro.

Reviewed by: kib, markj (an earlier version)
MFC after: 4 weeks
Differential Revision: https://reviews.freebsd.org/D11305
17:04:27 - r320318
(3 days 10 hours ago)
by kib
Affects:  /head/libexec/rtld-elf/map_object.c
Use address space guard to implement inter-segment gap.

Rtld checks and use old MAP_ANON/PROT_NONE method of creating gap if
running on old kernel.

Reviewed by: alc, markj
Tested by: pho, Qualys
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
17:01:11 - r320317
(3 days 10 hours ago)
by kib
Affects: 
(9 files)
/head/lib/libc/sys/*
/head/sys/sys/*
/head/sys/vm/*
Implement address space guards.

Guard, requested by the MAP_GUARD mmap(2) flag, prevents the reuse of
the allocated address space, but does not allow instantiation of the
pages in the range. It is useful for more explicit support for usual
two-stage reserve then commit allocators, since it prevents accidental
instantiation of the mapping, e.g. by mprotect(2).

Use guards to reimplement stack grow code. Explicitely track stack
grow area with the guard, including the stack guard page. On stack
grow, trivial shift of the guard map entry and stack map entry limits
makes the stack expansion. Move the code to detect stack grow and
call vm_map_growstack(), from vm_fault() into vm_map_lookup().

As result, it is impossible to get random mapping to occur in the
stack grow area, or to overlap the stack guard page.

Enable stack guard page by default.

Reviewed by: alc, markj
Man page update reviewed by: alc, bjk, emaste, markj, pho
Tested by: pho, Qualys
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D11306 (man pages)
16:47:41 - r320316
(3 days 10 hours ago)
by kib
Affects:  /head/sys/vm/vm_map.c
Do not try to unmark MAP_ENTRY_IN_TRANSITION marked by other thread.

The issue is catched by "vm_map_wire: alien wire" KASSERT at the end
of the vm_map_wire(). We currently check for MAP_ENTRY_WIRE_SKIPPED
flag before ensuring that the wiring_thread is curthread. For HOLESOK
wiring, this means that we might see WIRE_SKIPPED entry from different
wiring.

The fix it by only checking WIRE_SKIPPED if the entry is put
IN_TRANSITION by us. Also fixed a typo in the comment explaining the
situation.

Reported and tested by: pho
Reviewed by: alc
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
16:41:26 - r320315
(3 days 11 hours ago)
by manu
Affects: 
(5 files)
/head/sys/arm/*
/head/sys/conf/options.arm
/head/sys/modules/dtb/allwinner/Makefile
Allwinner: Add support for H2 Plus SoC

H2+ SoC is a stripped down version of H3 without gigabit ethernet and 4K HDMI.
Also add sun8i-h2-plus-orangepi-zero.dts to the build as we run on this board.
16:36:30 - r320314
(3 days 11 hours ago)
by kib
Affects:  /head/lib/libc/sys/mmap.2
Remove the description of MAP_HASSEMAPHORE.

The flag is not implemented, all FreeBSD architectures correctly
handle locks on normal cacheable mappings. On the other hand, the
flag was specified by some software, so it is kept in the header as
nop. Removal from the man page should discourage its use.

Reviewed by: alc, bjk, emaste, markj, pho
MFC after: 3 days
X-Differential revision: https://reviews.freebsd.org/D11306
16:21:34 - r320313
(3 days 11 hours ago)
by kib
Affects:  /head/lib/libc/sys/mmap.2
Fix typo.

Noted by: alc
MFC after: 3 days
14:44:59 - r320312
(3 days 13 hours ago)
by kib
Affects: 
(2 files)
/stable/10/lib/libc/gen/syslog.c
MFC r320052:
Do not leak syslog_mutex on cancellation.
14:41:57 - r320311
(3 days 13 hours ago)
by kib
Affects: 
(2 files)
/stable/11/lib/libc/gen/syslog.c
MFC r320052:
Do not leak syslog_mutex on cancellation.

Approved by: re (marius)
14:32:57 - r320310
(3 days 13 hours ago)
by imp
Affects:  /head/UPDATING
Document that the dependencies aren't quite right for non-clean build.
13:53:47 - r320309
(3 days 13 hours ago)
by kib
Affects: 
(2 files)
/stable/11/sys/i386/isa/npx.c
MFC r320051:
Correct translations between abridged and full x87 tags.

Approved by: re (marius)
11:38:31 - r320308
(3 days 16 hours ago)
by kib
Affects:  /head/sys/amd64/ia32/ia32_reg.c
Translate between abridged and full x87 tags for compat32
ptrace(PT_GETFPREGS).

Sponsored by: The FreeBSD Foundation
MFC after: 1 week
10:19:06 - r320307
(3 days 17 hours ago)
by kib
Affects:  /head/sys/i386/isa/npx.c
Fix indent.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
09:47:57 - r320306
(3 days 17 hours ago)
by pho
Affects:  /user/pho/stress2/testcases/Makefile
Forgot to remove the syscall entry when this test was removed.

Sponsored by: Dell EMC Isilon
09:44:31 - r320305
(3 days 18 hours ago)
by pho
Affects:  /user/pho/stress2/misc/symlink.sh
/user/pho/stress2/misc/symlink2.sh
Only use SU if the default newfs_flags is used.

Sponsored by: Dell EMC Isilon
09:33:25 - r320304
(3 days 18 hours ago)
by manu
Affects:  /head/sys/boot/efi/loader/main.c
loader.efi: Disable smbios for arm

The smbios code does a lot of unaligned access, since we don't really
care about smbios info on ARM (not all board expose information and those
who does don't expose useful ones) disable smbios for this arch (at least
for now).
07:44:05 - r320303
(3 days 20 hours ago)
by delphij
Affects: 
(2 files)
/stable/10/usr.sbin/rpc.lockd/lockd.c
MFC r320183: Reduce code duplication in rpc.lockd.

Reuse create_service code instead of duplicating it in
lookup_addresses for kernel NLM.

As a (good) side effect this also fixed a few issues that were
already fixed in the former but never applied to the latter.

Reviewed by: kevlo
00:28:35 - r320302
(4 days 3 hours ago)
by imp
Affects:  /head/lib/libc/sys/getfsstat.c
Be sure to free allocated statfs11 buffer.

Submitted by: Alistair Crooks
2017 - 06 - 23   (5 days ago)
23:11:05 - r320301
(4 days 4 hours ago)
by sobomax
Affects:  /head/usr.bin/mkuzip/mkuz_insize.c
Doh, fix some botched "fix" in r320277.

Reported by: cem
MFC after: 6 weeks
21:01:57 - r320300
(4 days 6 hours ago)
by tuexen
Affects: 
(4 files)
/head/sys/netinet/*
Handle sctp_get_next_param() in a consistent way.

This addresses an issue found by Felix Weinrank using libfuzz.
While there, use also consistent nameing.

MFC after: 3 days
20:49:23 - r320299
(4 days 6 hours ago)
by bdrewery
Affects: 
(2 files)
/stable/11/lib/libsysdecode/mktables
MFC r320206,r320207:

  r320206:
  Follow-up r308602: Don't add missing headers to .depend.tables.h.
  r320207:
  Tweak r320206: Still create the TABLE but not the .depend entry for missing
  headers.

Approved by: re (gjb)
20:38:21 - r320298
(4 days 7 hours ago)
by bdrewery
Affects: 
(4 files)
/stable/11/share/mk/bsd.dep.mk
/stable/11/share/mk/bsd.init.mk
/stable/11/sys/conf/kern.post.mk
MFC r320174,r320204:

  r320174:
  Fix 'make clean all' to work again.
  r320204:
  Fix various 'make *clean *all *install' combinations.

PR: 219819
Approved by: re (gjb)
20:25:58 - r320297
(4 days 7 hours ago)
by bdrewery
Affects: 
(2 files)
/stable/11/share/mk/sys.mk
MFC r319861:

  META_MODE: NO_FILEMON should imply nofilemon.

Approved by: re (gjb)
20:21:53 - r320296
(4 days 7 hours ago)
by manu
Affects:  /head/usr.bin/dtc/dtc.cc
/head/usr.bin/dtc/fdt.cc
dtc: Update to upstream 9ce35ff8

 - Add "compatible with gpl dtc X.Y.Z" to version output so U-Boot doesn't
complain
 - Fix cross reference node

This fixes some Allwinner DTS (and probably others).
20:07:56 - r320295
(4 days 7 hours ago)
by bdrewery
Affects: 
(2 files)
/stable/11/share/mk/local.sys.mk
MFC r319862,r319996,r320030:

  r319862:
  META_MODE: Show .ERROR_CMD in error.
  r319996:
  WITH_META_MODE: Don't try showing command if .ERROR_META_FILE is empty.
  r320030:
  WITH_META_MODE: End each ERROR_CMD CMD line with ';'.

Approved by: re (gjb, marius)
19:44:20 - r320294
(4 days 8 hours ago)
by bdrewery
Affects: 
(5 files)
/stable/11/share/mk/*
MFC r320012,r320028,r320061,r320118:

  r320012:
  Fix LIBAMU location to fix 'stale .depend' rebuilds in usr.sbin/amd.
  r320028:
  Fix more incorrect library directories fix 'stale .depend' rebuilds.
  r320061:
  Fix Makefiles which override LIBDIR to not add incorrect dependencies into
  .depend.
  r320118:
  Follow-up r320061: Need to respect make.conf/env LIBDIR overrides.

Approved by: re (gjb)
19:04:40 - r320293
(4 days 8 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/kern/kern_event.c
MFC r320038:
Style.
19:03:31 - r320292
(4 days 8 hours ago)
by bdrewery
Affects:  /head/Makefile.inc1
NO_ROOT: Remove excessive // when DESTDIR/DISTDIR are empty.

MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
18:58:28 - r320291
(4 days 8 hours ago)
by emaste
Affects:  /head/usr.sbin/makefs/msdos.c
/head/usr.sbin/makefs/msdos.h
/head/usr.sbin/makefs/msdos/msdosfs_vfsops.c
makefs: add copies of NetBSD makefs msdos source files

We do not treat makefs as contrib code. Import copies of makefs msdos
files from NetBSD so that we can track our changes to these files.

These are copied from NetBSD, with only a change to use __FBSDID and
$FreeBSD$ instead of __KERNEL_RCSID and $NetBSD$. A copy of the
original $NetBSD$ tag remains in each source file.

These two files were missed in r320212. Also remove a stray blank line
added in msdosfs_vfsops.c.

Submitted by: Siva Mahadevan
Sponsored by: The FreeBSD Foundation
18:57:56 - r320290
(4 days 8 hours ago)
by kib
Affects: 
(2 files)
/stable/11/sys/kern/kern_event.c
MFC r320038:
Style.

Approved by: re (gjb)
18:42:47 - r320289
(4 days 9 hours ago)
by gjb
Affects:  /head/release/release.sh
Include WORLD_FLAGS in CHROOT_IMAKEFLAGS and CHROOT_DMAKEFLAGS, to
allow passing '-jN' to the installworld and distributeworld targets.

Submitted by: bdrewery
Sponsored by: The FreeBSD Foundation
18:41:49 - r320288
(4 days 9 hours ago)
by emaste
Affects:  /head/sys/boot/i386/boot0/Makefile
Allow Clang's integrated assembler to assemble boot0

dim@ compared clang IAS-built and GNU as-built boot0 and found them
equivalent. IAS encoded one instruction using two bytes where GNU as
used three, and another instruction using three bytes where GNU as used
two. The net result is equivalent and tested, so there is no need to
force IAS off for boot0.
18:38:27 - r320287
(4 days 9 hours ago)
by wblock
Affects:  /head/lib/libc/sys/stat.2
Remove redundant wording, minor edits for clarity.

MFC after: 1 week
Sponsored by: iXsystems
18:27:03 - r320286
(4 days 9 hours ago)
by bdrewery
Affects:  /head/Makefile.inc1
compiler-metadata: Properly handle cross-build OBJDIR.

MFC after: 3 days
Sponsored by: Dell EMC Isilon
18:27:00 - r320285
(4 days 9 hours ago)
by bdrewery
Affects:  /head/Makefile
/head/Makefile.inc1
Expose only the create-packages-* targets since they set needed DEST/DIRDIR.

The other targets just fail confusingly otherwise.

MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
18:26:57 - r320284
(4 days 9 hours ago)
by bdrewery
Affects:  /head/Makefile.inc1
packages: Parallelize individual kernel packaging.

MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
18:26:54 - r320283
(4 days 9 hours ago)
by bdrewery
Affects:  /head/Makefile.inc1
packages: Allow actually building individual world packages in parallel.

MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
18:26:51 - r320282
(4 days 9 hours ago)
by bdrewery
Affects:  /head/Makefile.inc1
packages: Allow creating kernel/world packages in parallel.

MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
18:26:47 - r320281
(4 days 9 hours ago)
by bdrewery
Affects:  /head/Makefile.inc1
packages: Allow staging world/kernel in parallel.

MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
18:26:33 - r320280
(4 days 9 hours ago)
by bdrewery
Affects:  /head/Makefile.inc1
packages: Allow stageworld/stagekernel to run with make jobs.

The -B was originally added in projects/release-pkg r289381 as a copy
of what 'make world' did at the time. The -B was removed from
the 'installworld' call in 'world' in r303844 though. The staging
of files is safe to run in parallel.

MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
18:06:46 - r320279
(4 days 9 hours ago)
by imp
Affects:  /head/usr.bin/truss/syscall.h
/head/usr.bin/truss/syscalls.c
Decode FreeBSD 11 compat stat, fstat and lstat calls.
18:06:20 - r320278
(4 days 9 hours ago)
by imp
Affects: 
(13 files)
/head/UPDATING
/head/lib/libc/include/libc_private.h
/head/lib/libc/sys/*
Forward compatibility for ino64.

Add forward compatibility so that new binaries can run on old
kernels. If the new system call from ino64 isn't available on your
system, then the old one will be used and the results translated. The
stat and statfs families of functions are fully emulated. While not
required by policy, in this case it is helpful to our users to provide
this compatibility. In this case, it allows rollback of the kernel
after installing a new userland should a problem be discovered. It
also prevents foot-shooting if a user does an install before rebooting
with the new kernel. Finally, it allows the use case where one needs
to run new binaries on an old kernel as part of an upgrade process.

The getdirentries family uses tricks that may not work on remote
filesystems. Specifically, it uses a buffer 1/4 the size requested to
get the data from he old syscall.

The code carefully uses direct syscalls for old system calls to avoid
referencing freebsd11_* symbols, which contaminate ld-elf.so.1's
export table due to its use of stat functions, which causes errno to
be incorrect in client programs due to the wrong *stat* function being
resolved in some cases.

This code should removed sometime after 12 is branched.

Tested on: 12-current binaries on a 10.3-beta kernel run and return
  consistent results. 12-current kernel and userland with
  packages from before ino64 was committed also work.

Differential Revision: https://reviews.freebsd.org/D11185
Reviewed by: kib@, emaste@
17:39:00 - r320277
(4 days 10 hours ago)
by sobomax
Affects:  /head/usr.bin/mkuzip/mkuz_insize.c
Don't leak file descriptor in some cases.

Reported by: cem
MFC after: 6 weeks
17:31:07 - r320276
(4 days 10 hours ago)
by manu
Affects:  /head/sbin/ipfw/ipfw.8
ipfw: Note that bandwidth can take G suffix in the manpage

Reported by: Jose Luis Duran (github)
17:21:37 - r320275
(4 days 10 hours ago)
by emaste
Affects:  /head/share/mk/bsd.linker.mk
/head/sys/conf/kern.pre.mk
/head/sys/conf/kmod.mk
Introduce LINKER_FEATURES to avoid duplicating version logic

Submitted by: bdrewery
Reported by: kib
16:38:46 - r320274
(4 days 11 hours ago)
by bdrewery
Affects:  /head/Makefile.inc1
Set compiler metadata for stageworld/distributeworld.

This fixes LD errors during 'make packages' but also for the unlikely case of
'buildworld' on 1 system and 'packages' on another [1].

PR: 212877 [1]
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
16:38:18 - r320273
(4 days 11 hours ago)
by bdrewery
Affects:  /head/Makefile
Allow ALWAYS_BOOTSTRAP_MAKE to force bmake bootstrapping.

MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
15:57:58 - r320272
(4 days 11 hours ago)
by emaste
Affects:  /head/sys/conf/kern.pre.mk
/head/sys/conf/kmod.mk
enable --build-id for the kernel link

A Build-ID is an identifier generated at link time to uniquely identify
ELF binaries. It allows efficient confirmation that an executable or
shared library and a corresponding standalone debuginfo file match.
(Otherwise, a checksum of the debuginfo file must be calculated when
opening it in a debugger.)

The FreeBSD base system includes GNU bfd ld 2.17.50 as the linker for
architectures other than arm64. Build-ID support was added to bfd ld
shortly after that version, so was not previously available to us.

We can now start making use of Build-ID as we migrate to using lld or
bfd ld from ports, conditionally enabled based on the LINKER_TYPE and
LINKER_VERSION make variables added in r320244 and subsequent commits.

Reviewed by: dim
MFC after: 3 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D11314
15:27:23 - r320271
(4 days 12 hours ago)
by bapt
Affects:  /head/usr.sbin/sesutil/Makefile.depend
sesutil no longer depends on libsbuf

Sponsored by: Gandi.net
15:09:08 - r320270
(4 days 12 hours ago)
by bapt
Affects: 
(4 files)
/head/usr.sbin/sesutil/*
Directly print the extra status instead of filling a buffer
then printing it.

This prepares the code to make it libxo friendly

Reviewed by: manu, Nikita Kozlov (nikita elyzion.net)
MFC after: 2 weeks
Sponsored by: Gandi.net
15:02:49 - r320269
(4 days 12 hours ago)
by asomers
Affects:  /head/bin/echo/tests/echo_test.sh
style fixes in bin/echo/tests

Submitted by: shivansh
Reviewed by: asomers
MFC after: 2 weeks
X-MFC-With: 319626
Sponsored by: Google, Inc (GSoC 2017)
Differential Revision: https://reviews.freebsd.org/D11318
14:00:28 - r320268
(4 days 13 hours ago)
by manu
Affects:  /head/sbin/ipfw/dummynet.c
ipfw: dummynet: Add 'G' and 'g' suffix for bandwidth configuration/display

MFC after: 2 weeks
Sponsored by: Gandi.net
13:26:13 - r320267
(4 days 14 hours ago)
by bapt
Affects:  /head/usr.sbin/sesutil/eltsub.c
/head/usr.sbin/sesutil/eltsub.h
Do not use sprintf(3) when not needed, while here,
prefer snprintf(3) over sprintf(3)
11:55:43 - r320266
(4 days 15 hours ago)
by avg
Affects:  /head/sys/dev/jedec_ts/jedec_ts.c
jedec_ts: add support for devices manufactured by IDT

Full manufacturer name is Integrated Device Technology, Inc.
Supported devices include TSE2002B3C and TS3000B3A.

MFC after: 1 week
10:36:27 - r320265
(4 days 17 hours ago)
by mmokhi
Affects:  /head/sys/compat/linprocfs/linprocfs.c
Fix caveat in new implementation of linprocfs_docpuinfo():
Prevent kernel panic in case that extended-cpuid isn't supported by CPU

Reviewed by: kib, ngie, trasz
Approved by: trasz
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D11294
10:09:49 - r320264
(4 days 17 hours ago)
by tuexen
Affects:  /head/sys/netinet/sctp_input.c
Check the length of a COOKIE chunk before accessing fields in it.

Thanks to Felix Weinrank for reporting the issue he found by using
libFuzzer.

MFC after: 3 days
09:27:31 - r320263
(4 days 18 hours ago)
by tuexen
Affects:  /head/sys/netinet/sctp_constants.h
Use a longer buffer for messages in ERROR chunks.

This allows them to be sent in a non truncated way and addresses a warning
given by newver versions of gcc.
Thanks to Anselm Jonas Scholl for reporting it and providing a patch.
08:42:53 - r320262
(4 days 19 hours ago)
by avg
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_label.c
fix gcc-specific fallout from r320156, MFV of r318946, ZFS ABD

Reported by: jhibbits
MFC after: 1 week
X-MFC with: r320156
08:35:54 - r320261
(4 days 19 hours ago)
by tuexen
Affects:  /head/sys/netinet/sctp_usrreq.c
Honor the backlog field.
08:34:01 - r320260
(4 days 19 hours ago)
by tuexen
Affects:  /head/sys/netinet/sctp_input.c
/head/sys/netinet/sctputil.c
/head/sys/netinet/sctputil.h
Improve compilation on platforms different from FreeBSD.
06:25:39 - r320259
(4 days 21 hours ago)
by avg
Affects:  /head/sys/dev/jedec_ts/jedec_ts.c
jedec_ts: read device id from the correct register

Due to my braino / typo the driver was reading the Vendor ID register
twice.

MFC after: 3 days
03:55:00 - r320258
(4 days 23 hours ago)
by emaste
Affects:  /head/share/mk/bsd.linker.mk
change GNU ld LINKER_TYPE from binutils to bfd

GNU binutils includes two linkers: ld.bfd and ld.gold. For clarity use
LINKER_TYPE=bfd to refer to ld.bfd, the original binutils linker that
identifies itself as "GNU ld".

Discussed with: bdrewery
02:42:04 - r320257
(5 days 1 hour ago)
by cy
Affects: 
(5 files)
/head/contrib/ipfilter/lib/*
/head/contrib/ipfilter/tools/ipf_y.y
Replace AF_INET6 ifdefs with USE_INET6 ifdefs. This is more consistent
and guaranteed to build everywhere in ipfilter.

Not all of this commit can be MFCed. Some is original code while others
are not.
01:05:49 - r320256
(5 days 2 hours ago)
by cy
Affects:  /head/etc/ntp/leap-seconds
Replace the leap-seconds file in r320242 from USNO -
ftp://tycho.usno.navy.mil/pub/ntp/leap-seconds.3701462400 - with a
leap-seconds file from NIST at ftp://time.nist.gov/pub/. The USNO
version of the file changes the last documented leap second update
time whereas the NIST version does not. The expiration of the USNO
version of the file is also one month short.

Requested by: ian@
Obtained from: ftp://time.nist.gov/pub/leap-seconds.3676924800
MFC after: 3 days
00:40:09 - r320255
(5 days 3 hours ago)
by asomers
Affects:  /head/lib/libc/sys/kqueue.2
/head/share/man/man4/aio.4
Clarify usage of aio(4) with kqueue(2)

Reviewed by: jhb
MFC after: 3 weeks
Differential Revision: https://reviews.freebsd.org/D11299
00:27:40 - r320254
(5 days 3 hours ago)
by gjb
Affects:  /head/release/arm64/RPI3.conf
Fix, for the fourth or fifth time now, looking up where boot1.efi
is located.

MFC after: 5 days
X-MFC-Note: maybe
X-MFC-With: r320252, r320253
Sponsored by: The FreeBSD Foundation
00:11:34 - r320253
(5 days 3 hours ago)
by gjb
Affects:  /head/release/arm64/RPI3.conf
Remove two configuration entries used for debugging that snuck in.

MFC after: 5 days
X-MFC-Note: maybe
X-MFC-With: r320252
Sponsored by: The FreeBSD Foundation
00:08:36 - r320252
(5 days 3 hours ago)
by gjb
Affects:  /head/release/arm64/RPI3.conf
/head/release/release.sh
/head/release/tools/arm.subr
In release/release.sh:
- Rename chroot_arm_armv6_build_release() to chroot_arm_build_release()
  and make it hardware agnostic (such as armv6 -vs- armv7 -vs- arm64).

- Evaluate EMBEDDED_TARGET differently so release/tools/arm.subr can
  be used for arm/armv6 and arm64/aarch64.

- Update comments and copyright.

In release/tools/arm.subr:
- In arm_create_disk(), change the default alignment from 63 to 512k,
  fixing a boot issue on arm64 and EFI. [1]

- Update comments and copyright.

Add a RPI3 configuration file, pieces obtained from Crochet.

Obtained from: Crochet [1]
MFC after: 5 days
X-MFC-Note: maybe
Sponsored by: The FreeBSD Foundation
00:00:00 - r320251
(5 days 3 hours ago)
by gjb
Affects:  /stable/11/sys/conf/newvers.sh
Update stable/11 to BETA3 as part of the 11.1-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation
2017 - 06 - 22   (6 days ago)
22:53:10 - r320250
(5 days 4 hours ago)
by bdrewery
Affects:  /head/share/mk/bsd.linker.mk
Provide proper values for X_LINKER_TYPE/VERSION when XLD == LD.

MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
22:53:07 - r320249
(5 days 4 hours ago)
by bdrewery
Affects:  /head/share/mk/bsd.linker.mk
Don't overwrite already-set LINKER_VERSION/LINKER_TYPE.

MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
21:22:12 - r320248
(5 days 6 hours ago)
by bdrewery
Affects:  /head/share/mk/bsd.linker.mk
LINKER_VERSION: Support external binutils.

The ports binutils stores the version in the 5th word so just look for
a version using a pattern instead.

Reported by: rpokala
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
21:03:30 - r320247
(5 days 6 hours ago)
by bdrewery
Affects:  /head/Makefile.inc1
Pass along LINKER_* vars during installworld and show in test-system-compiler.

Sponsored by: Dell EMC Isilon
21:03:27 - r320246
(5 days 6 hours ago)
by bdrewery
Affects:  /head/share/mk/bsd.linker.mk
Support cached linker values in environment.

This is similar to r289659 for bsd.compiler.mk.

MFC after: 2 weeks
Reviewed by: emaste
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D11310
21:03:24 - r320245
(5 days 6 hours ago)
by bdrewery
Affects:  /head/share/mk/bsd.linker.mk
Support XLD for setting X_LINKER_TYPE and X_LINKER_VERSION.

This is similar to r300350 for bsd.compiler.mk.

MFC after: 2 weeks
Reviewed by: emaste
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D11309
21:03:20 - r320244
(5 days 6 hours ago)
by bdrewery
Affects:  /head/share/mk/Makefile
/head/share/mk/bsd.compiler.mk
/head/share/mk/bsd.linker.mk
Add basic bsd.linker.mk auto included from bsd.compiler.mk.

This will provide LINKER_TYPE and LINKER_VERSION.

MFC after: 2 weeks
Reviewed by: emaste
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D11308
20:32:23 - r320243
(5 days 7 hours ago)
by bdrewery
Affects:  /head/share/mk/bsd.compiler.mk
Fix spelling error.

Reported by: arc
Sponsored by: Dell EMC Isilon
19:25:17 - r320242
(5 days 8 hours ago)
by cy
Affects:  /head/etc/ntp/leap-seconds
Update leap-seconds to leap-seconds.3701462400.

As per https://datacenter.iers.org/eop/-/somos/5Rgv/latest/16:

  INTERNATIONAL EARTH ROTATION AND REFERENCE SYSTEMS SERVICE (IERS)

SERVICE INTERNATIONAL DE LA ROTATION TERRESTRE ET DES SYSTEMES DE REFERENCE

SERVICE DE LA ROTATION TERRESTRE
OBSERVATOIRE DE PARIS
61, Av. de l'Observatoire 75014 PARIS (France)
Tel. : 33 (0) 1 40 51 23 35
FAX : 33 (0) 1 40 51 22 91
Internet : services.iers@obspm.fr

  Paris, 9 January 2017

  Bulletin C 53

  To authorities responsible
  for the measurement and
  distribution of time

  INFORMATION ON UTC - TAI

 NO leap second will be introduced at the end of June 2017.
 The difference between Coordinated Universal Time UTC and the
 International Atomic Time TAI is :

  from 2017 January 1, 0h UTC, until further notice : UTC-TAI = -37 s

 Leap seconds can be introduced in UTC at the end of the months of December
 or June, depending on the evolution of UT1-TAI. Bulletin C is mailed every
 six months, either to announce a time step in UTC, or to confirm that there
 will be no time step at the next possible date.

  Christian BIZOUARD
  Director
  Earth Orientation Center of IERS
  Observatoire de Paris, France

Obtained from: ftp://tycho.usno.navy.mil/pub/ntp/leap-seconds.3701462400
MFC after: 3 days
18:40:34 - r320241
(5 days 9 hours ago)
by markj
Affects: 
(4 files)
/stable/11/sys/kern/kern_mutex.c
/stable/11/sys/kern/kern_rwlock.c
/stable/11/sys/kern/kern_sx.c
MFC r320124:
Fix the !TD_IS_IDLETHREAD(curthread) locking assertions.

Approved by: re (kib)
18:39:52 - r320240
(5 days 9 hours ago)
by ed
Affects:  /head/include/stddef.h
Use __ISO_C_VISIBLE, as opposed to testing __STDC_VERSION__.

FreeBSD's C library uses __STDC_VERSION__ to determine whether the
compiler provides language features specific to a certain version of the
C standard. __ISO_C_VISIBLE is used to specify which library features
need to be exposed.

max_align_t currently uses __STDC_VERSION__, even though it should be
using __ISO_C_VISIBLE to remain consistent with the rest of the headers
in include/.

Reviewed by: dim
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D11303
17:10:34 - r320239
(5 days 10 hours ago)
by avg
Affects: 
(2 files)
/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
MFV r319950: 5220 L2ARC does not support devices that do not provide 512B access

FreeBSD note: the actual change has been in FreeBSD since r297848. This
commit accounts for integration of that change with subsequent changes,
especially r320156 (MFV of r318946) and r314274.

illumos/illumos-gate@403a8da73c64ff9dfb6230ba045c765a242213fb
https://github.com/illumos/illumos-gate/commit/403a8da73c64ff9dfb6230ba045c765a242213fb

https://www.illumos.org/issues/5220
  There are disk devices that have logical sector size larger than 512B, for
  example 4KB. That is, their physical sector size is larger than 512B and they
  do not provide emulation for 512B sector sizes. For such devices both a data
  offset and a data size must be properly aligned. L2ARC should arrange that
  because it uses physical I/O.
  zio_vdev_io_start() performs a necessary transformation if io_size is not
  aligned to vdev_ashift, but that is done only for logical I/O. Something
  similar should be done in L2ARC code.
  * a temporary write buffer should be allocated if the original buffer is
  not going to be compressed and its size is not aligned
  * size of a temporary compression buffer should be ashift aligned
  * for the reads, if a size of a target buffer is not sufficiently large
and
  it is not aligned then a temporary read buffer should be allocated

Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
Reviewed by: Saso Kiselkov <saso.kiselkov@nexenta.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Author: Andriy Gapon <avg@FreeBSD.org>

MFC after: 3 weeks
16:58:09 - r320238
(5 days 10 hours ago)
by avg
Affects: 
(2 files)
/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu_send.c
MFV r319742: 8056 zfs send size estimate is inaccurate for some zvols

illumos/illumos-gate@0255edcc85fc0cd1dda0e49bcd52eb66c06a1b16
https://github.com/illumos/illumos-gate/commit/0255edcc85fc0cd1dda0e49bcd52eb66c06a1b16

https://www.illumos.org/issues/8056
  The send size estimate for a zvol can be too low, if the size of the record
  headers (dmu_replay_record_t's) is a significant portion of the size.
  This is typically the case when the data is highly compressible, especially
  with embedded blocks.
  The problem is that dmu_adjust_send_estimate_for_indirects() assumes that
  blocks are the size of the "recordsize" property (128KB).
  However, for zvols, the blocks are the size of the "volblocksize" property
  (8KB). Therefore, we estimate that there will be 16x less record headers than
  there really will be.

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Pavel Zakharov <pavel.zakharov@delphix.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Paul Dagnelie <pcd@delphix.com>

MFC after: 3 weeks
16:52:22 - r320237
(5 days 10 hours ago)
by avg
Affects: 
(3 files)
/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/zil_impl.h
/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zil.c
MFV r318947: 7578 Fix/improve some aspects of ZIL writing.

FreeBSD note: this commit removes small differences between what mav
committed to FreeBSD in r308782 and what ended up committed to illumos
after addressing all review comments.

illumos/illumos-gate@c5ee46810f82e8a53d2cc5a487568a573f449039
https://github.com/illumos/illumos-gate/commit/c5ee46810f82e8a53d2cc5a487568a573f449039

https://www.illumos.org/issues/7578
  After some ZIL changes 6 years ago zil_slog_limit got partially broken
  due to zl_itx_list_sz not updated when async itx'es upgraded to sync.
  Actually because of other changes about that time zl_itx_list_sz is not
  really required to implement the functionality, so this patch removes
  some unneeded broken code and variables.
  Original idea of zil_slog_limit was to reduce chance of SLOG abuse by
  single heavy logger, that increased latency for other (more latency critical)
  loggers, by pushing heavy log out into the main pool instead of SLOG. Beside
  huge latency increase for heavy writers, this implementation caused double
  write of all data, since the log records were explicitly prepared for SLOG.
  Since we now have I/O scheduler, I've found it can be much more efficient
  to reduce priority of heavy logger SLOG writes from ZIO_PRIORITY_SYNC_WRITE
  to ZIO_PRIORITY_ASYNC_WRITE, while still leave them on SLOG.
  Existing ZIL implementation had problem with space efficiency when it
  has to write large chunks of data into log blocks of limited size. In some
  cases efficiency stopped to almost as low as 50%. In case of ZIL stored on
  spinning rust, that also reduced log write speed in half, since head had to
  uselessly fly over allocated but not written areas. This change improves
  the situation by offloading problematic operations from z*_log_write() to
  zil_lwb_commit(), which knows real situation of log blocks allocation and
  can split large requests into pieces much more efficiently. Also as side
  effect it removes one of two data copy operations done by ZIL code WR_COPIED
  case.
  While there, untangle and unify code of z*_log_write() functions.
  Also zfs_log_write() alike to zvol_log_write() can now handle writes crossing
  block boundary, that may also improve efficiency if ZPL is made to do that.

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Prakash Surya <prakash.surya@delphix.com>
Reviewed by: Andriy Gapon <avg@FreeBSD.org>
Reviewed by: Steven Hartland <steven.hartland@multiplay.co.uk>
Reviewed by: Brad Lewis <brad.lewis@delphix.com>
Reviewed by: Richard Elling <Richard.Elling@RichardElling.com>
Approved by: Robert Mustacchi <rm@joyent.com>
Author: Alexander Motin <mav@FreeBSD.org>

MFC after: 3 weeks
15:52:18 - r320236
(5 days 11 hours ago)
by cem
Affects:  /head/sys/sys/sglist.h
sglist.h: Fix sg_refs signedness to match refcount(9)

PR: 220122
Reported by: Mark Millard <markmi at dsl-only.net>
Sponsored by: Dell EMC Isilon
15:09:42 - r320235
(5 days 12 hours ago)
by emaste
Affects:  /head/sys/conf/kmod.mk
retire arm64 kernel module linker workaround

Relocatable linking in aarch64 ld from binutils 2.25.1 does not work.
The linker corrupts the references to the external symbols which are
defined by other object in the linking set and should therefore lose
the GOT entry.

The problem is fixed in later versions of GNU ld and does not exist in
the in-tree lld linker that we now use by default for arm64, so the
workaround can be removed.

Reviewed by: kib
MFC after: 3 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D11302
14:30:09 - r320234
(5 days 13 hours ago)
by emaste
Affects:  /head/sys/boot/efi/include/efidef.h
Make structure padding explicit in EFI_MEMORY_DESCRIPTOR

The EFI memory descriptor 64-bit aligns PhysicalStart on both 32- and
64-bit platforms. Make the padding explicit for i386 EFI.

Submitted by: Siva Mahadevan <smahadevan@freebsdfoundation.org>
MFC after: 3 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D11301
13:31:44 - r320233
(5 days 14 hours ago)
by gjb
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document r320218, primes(6) updated to new limit of 2^64-1.
Document r320164, qlnxe(4) firmware and hardware support updates.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation
12:46:48 - r320232
(5 days 15 hours ago)
by cy
Affects:  /head/contrib/ipfilter/tools/ippool.c
In poolnodcommand(): TTL (-T) is only valid when adding a node to a
pool (ippool -a) not when removing a node from a pool (ippool -r).
Flag -T as an error in ippool -r.
11:03:42 - r320231
(5 days 16 hours ago)
by kib
Affects: 
(2 files)
/stable/11/sys/vm/vnode_pager.c
MFC r319975:
Some minor improvements to vnode_pager_generic_putpages().

Approved by: re (marius)
07:57:29 - r320230
(5 days 19 hours ago)
by ngie
Affects: 
(2 files)
/stable/10/etc/Makefile
Revert r320228 as well

See r320229 for the other related revert commit.
07:54:12 - r320229
(5 days 19 hours ago)
by ngie
Affects: 
(23 files)
/stable/10/etc/*
/stable/10/tools/build/mk/OptionalObsoleteFiles.inc
/stable/10/usr.sbin/*
Revert r320222,r320223,r320224

The committed changes (reverted after this commit) break POLA on
a stable branch.

Requested by: jhb
07:42:36 - r320228
(5 days 20 hours ago)
by ngie
Affects: 
(2 files)
/stable/10/etc/Makefile
MFC r318545:

Install {cron.d,newsyslog.conf.d,syslog.d} via `make distribution`, not `make
install`

I incorrectly started this pattern in r277541 with the opensm newsyslog.conf.d
file,
and continued using it in r318441 and r318443.

This will fix the files being handled improperly via installworld, preventing
tools like
etcupdate, mergemaster, etc from functioning properly when comparing the
installed
contents on a system vs the contents in a source tree when doing merges.

PR: 219404
MFC with: r277541, r318441, r318443
07:37:10 - r320227
(5 days 20 hours ago)
by pho
Affects:  /user/pho/stress2/misc/sendfile5.sh
Added test for free disk space.

Sponsored by: Dell EMC Isilon
07:35:59 - r320226
(5 days 20 hours ago)
by pho
Affects:  /user/pho/stress2/misc/syscall5.sh
Added a no-swap option.

Sponsored by: Dell EMC Isilon
07:35:05 - r320225
(5 days 20 hours ago)
by pho
Affects:  /user/pho/stress2/misc/syscall4.sh
Preserve stdout and stderr for debugging.
Fix style while here.

Sponsored by: Dell EMC Isilon
07:14:37 - r320224
(5 days 20 hours ago)
by ngie
Affects: 
(2 files)
/stable/10/usr.sbin/syslogd/syslogd.c
MFC r309194,r309216:

r309194 (by bapt):

initialize *nextp which could be left uninitialized in case the configuration
file cannot be open/read

CID: 1365665

r309216 (by bapt):

Properly initialize nextp
07:10:01 - r320223
(5 days 20 hours ago)
by ngie
Affects: 
(2 files)
/stable/10/usr.sbin/cron/cron/database.c
MFC r308158:
r308158 (by bapt):

Allow symlinks to be followed in cron.d directories and fix detection of
regular files on NFS
07:08:18 - r320222
(5 days 20 hours ago)
by ngie
Affects: 
(26 files)
/stable/10/etc/*
/stable/10/tools/build/mk/OptionalObsoleteFiles.inc
/stable/10/usr.sbin/*
MFC r308139,r308157,r308160,r316818,r318250,r318443:

r308139 (by bapt):

cron(8): add support for /etc/cron.d and /usr/local/etc/cron.d

For automation tools it is way easier to maintain files in directories rather
than modifying /etc/crontab.

The files in those directories are in the same format as /etc/crontab

Relnotes: yes

r308157 (by bapt):

Fix typo in cron(8) date

r308160 (by bapt):

syslogd(8): add an 'include' keyword

All the '.conf' files not beginning with a '.' contained int he directory
following the keyword will be included.

This keyword can only be used in the first level configuration files.

Modify the default syslogd.conf to 'include' /etc/syslog.d and
/usr/local/etc/syslog.d

It simplify a lot handling of syslog from automation tools.

Relnotes: yes

r316818:

Conditionally install /etc/pam.d/ftp* and /etc/pam.d/telnetd

/etc/pam.d/ftp* should be installed with MK_FTP != no and
/etc/pam.d/telnetd should be installed when MK_TELNET != no.

r318250:

Handle the logfiles in newsyslog and syslogd conditionally, based on
src.conf(5) knobs

This will allow consumers of FreeBSD to use the unmodified configuration
files out of the box more than previously.

Both newsyslog.conf and syslog.conf:
- /var/log/lpd-errs (MK_LPR != no)
- /var/log/ppp.log (MK_PPP != no)
- /var/log/xferlog (MK_FTP != no)

newsyslog.conf:
- /var/log/amd.log (MK_AMD != no)
- /var/log/pflog (MK_PF != no)
- /var/log/sendmail.st (MK_SENDMAIL != no)

r318443:

Conditionally handle the crontab entry for atrun(8)

The default crontab prior to this commit assumes atrun(8) is always
present, which isn't true if MK_AT == no. Move atrun(8) execution
from /etc/crontab to /etc/cron.d/at, and base /etc/cron.d/at's installation
on MK_AT. cron(8) will detect /etc/cron.d/at's presence when the configuration
is loaded and run atrun every 5 minutes like it would prior to this commit.

SHELL and PATH are duplicated between /etc/crontab and /etc/cron.d/at
because atrun(8) executes programs, which may rely on environment
set in the current default /etc/crontab.

Noted by: bdrewery (in an internal review)
Relnotes: yes (may need to add environmental modifications to
  /etc/cron.d/at)
06:25:34 - r320221
(5 days 21 hours ago)
by cy
Affects:  /head/contrib/ipfilter/tools/ippool.c
poolflush() has no positional arguments.
05:34:41 - r320220
(5 days 22 hours ago)
by bdrewery
Affects:  /head/share/mk/bsd.dep.mk
/head/sys/conf/kern.post.mk
Rework logic for skipping .depend/.meta file read/stat/writes.

- Rename _SKIP_READ_DEPEND to _SKIP_DEPEND since it also avoids writing.
- This now uses .NOMETA to avoid reading any .meta files related to
  DEPENDOBJS. Objects not in OBJS/DEPENDOBJS may still have their .meta
  files read in if they are in the dependency graph.
- This also avoids statting .meta and .depend files in the META_MODE +
  -DNO_FILEMON case.

MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
05:30:27 - r320219
(5 days 22 hours ago)
by cperciva
Affects: 
(2 files)
/stable/11/sys/dev/xen/netfront/netfront.c
MFC r319491:

Skip setting the MTU in the netfront driver (xn# devices) if the new MTU
is the same as the old MTU. In particular, on Amazon EC2 "T2" instances
without this change, the network interface is reinitialized every 30
minutes due to the MTU being (re)set when a new DHCP lease is obtained.

Approved by: re (delphij)
05:26:08 - r320218
(5 days 22 hours ago)
by cperciva
Affects: 
(5 files)
/stable/11/usr.bin/factor/factor.6
/stable/11/usr.bin/primes/*
MFC r31956[12]: Teach primes(6) to enumerate primes up to 2^64 - 1.

Approved by: re (delphij)
Relnotes: primes(6) now enumerates primes beyond 3825123056546413050,
  up to a new limit of 2^64 - 1.
> Description of fields to fill in above: 76 columns --|
> PR: If and which Problem Report is related.
> Submitted by: If someone else sent in the change.
> Reported by: If someone else reported the issue.
> Reviewed by: If someone else reviewed your modification.
> Approved by: If you needed approval for this commit.
> Obtained from: If the change is from a third party.
> MFC after: N [day[s]|week[s]|month[s]]. Request a reminder
email.
> MFH: Ports tree branch name. Request approval for merge.
> Relnotes: Set to 'yes' for mention in release notes.
> Security: Vulnerability reference (one per line) or
description.
> Sponsored by: If the change was sponsored by an organization.
> Differential Revision: https://reviews.freebsd.org/D### (*full* phabric
URL needed).
> Empty fields above will be automatically removed.

_M .
M usr.bin/factor/factor.6
M usr.bin/primes/primes.c
M usr.bin/primes/primes.h
M usr.bin/primes/spsp.c
05:22:21 - r320217
(5 days 22 hours ago)
by delphij
Affects: 
(2 files)
/stable/11/usr.sbin/rpc.lockd/lockd.c
MFC r320183: Reduce code duplication in rpc.lockd.

Reuse create_service code instead of duplicating it in
lookup_addresses for kernel NLM.

As a (good) side effect this also fixed a few issues that were
already fixed in the former but never applied to the latter.

Approved by: re (gjb)
05:10:16 - r320216
(5 days 22 hours ago)
by delphij
Affects:  /head/lib/libc/rpc/rpcb_clnt.c
Fix use-after-free introduced in r300388.

In r300388, endnetconfig() was called on nc_handle which would release
the associated netconfig structure, which means tmpnconf->nc_netid
would be a use-after-free.

Solve this by doing endnetconfig() in return paths instead.

Reported by: jemalloc via kevlo
Reviewed by: cem, ngie (earlier version)
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D11288
04:40:11 - r320215
(5 days 23 hours ago)
by ngie
Affects:  /projects/runtime-coverage/Makefile.inc1
Don't build coverage instrumented binaries in the bootstrap-tools or libraries
targets

This is being done to establish parity with MK_PROFILE=no in buildworld,
buildkernel, etc.
04:34:09 - r320214
(5 days 23 hours ago)
by ngie
Affects:  /projects/runtime-coverage/gnu/lib/libstdc++/Makefile
/projects/runtime-coverage/gnu/lib/libsupc++/Makefile
Add COV_CXXFLAGS for gnu/lib/lib{std,sup}c++

Mark libstdc++ with MK_COVERAGE?= no to disable runtime
coverage instrumentation with libstdc++.

For reasons I don't yet understand, COV_CXXFLAGS isn't being passed
down properly to my bsd.lib.mk static rules -- coming in the next commit.
04:14:25 - r320213
(5 days 23 hours ago)
by ngie
Affects:  /projects/runtime-coverage/share/mk/sys.mk
Add COV_CFLAGS and COV_CXXFLAGS for parity with PO_CFLAGS and PO_CXXFLAGS

These variables will help drive cc/c++ when generating coverage instrumented
binaries.
02:46:36 - r320212
(6 days 1 hour ago)
by emaste
Affects: 
(4 files)
/head/usr.sbin/makefs/msdos/msdosfs_denode.c
/head/usr.sbin/makefs/msdos/msdosfs_vfsops.c
/head/usr.sbin/makefs/msdos/msdosfs_vnops.c
makefs: add copies of NetBSD makefs msdos source files

We do not treat makefs as contrib code. Import copies of makefs msdos
files from NetBSD so that we can track our changes to these files.

These are copied from NetBSD, with only a change to use __FBSDID and
$FreeBSD$ instead of __KERNEL_RCSID and $NetBSD$. A copy of the
original $NetBSD$ tag remains in each source file.

Submitted by: Siva Mahadevan
Sponsored by: The FreeBSD Foundation
02:43:32 - r320211
(6 days 1 hour ago)
by pfg
Affects: 
(4 files)
/head/sys/fs/ext2fs/*
ext2fs: add dir_nlink feature support.

ext4 on linux has always supported more than 32000 directories through
the dir_nlink feature, but FreeBSD was unable to catch up on this feature.
As part of the 64 bit inode changes nlink_t has been extended and this
feature is now possible.

Submitted by: Fedor Uporov
Differential Revision: https://reviews.freebsd.org/D11210
02:19:39 - r320210
(6 days 1 hour ago)
by cem
Affects:  /head/usr.bin/join/join.c
join(1): Fix field ordering for -v output

Per POSIX, join(1) (in modes other than -o) is a concatenation of selected
character fields. The joined field is first, followed by fields in the
order they occurred in the input files.

Our join(1) utility previously handled this correctly for lines with a match
in the other file. But it failed to order output fields correctly for
unmatched lines, printed in -a and -v modes.

A simple test case is:

$ touch a
$ echo "2 1" > b
$ join -v2 -2 2 a b
1 2

PR: 217711
Reported by: alt.j2-4o4s2yon at yopmail.com
Sponsored by: Dell EMC Isilon
01:11:20 - r320209
(6 days 2 hours ago)
by emaste
Affects:  /head/sys/fs/msdosfs/msdosfs_fat.c
msdosfs: reformat a comment to reduce NetBSD diffs
00:17:15 - r320208
(6 days 3 hours ago)
by rmacklem
Affects:  /head/sys/fs/nfsclient/nfs_clstate.c
Ensure that the credentials field of the NFSv4 client open structure is
initialized.

bdrewery@ has reported panics "newnfs_copycred: negative nfsc_ngroups".
The only way I can see that this occurs is that the credentials field of
the open structure gets used before being filled in.
I am not sure quite how this happens, but for the file create case, the
code is serialized via the vnode lock on the directory. If, somehow, a
link to the same file gets created just after file creation, this might
occur.

This patch ensures that the credentials field is initialized to a reasonable
set of credentials before the structure is linked into any list, so I
this should ensure it is initialized before use.
I am committing the patch now, since bdrewery@ notes that the panics
are intermittent and it may be months before he knows if the patch fixes
his problem.

Reported by: bdrewery
MFC after: 2 weeks

 


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

Page generated in 25 ms, 221 revisions printed. Current time is 2017-06-28 03:47:38. All times are in UTC/GMT.