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 - 11 - 19   (today)
03:52:03 - r325994
( 53 minutes ago)
by delphij
Affects:  /head/sys/fs/nfsclient/nfs_clnfsiod.c
Remove unused header.
03:51:47 - r325993
( 53 minutes ago)
by delphij
Affects:  /head/sys/fs/tmpfs/tmpfs_fifoops.c
Remove unused header.
03:18:29 - r325992
(1 hour 27 minutes ago)
by jeff
Affects: 
(5 files)
/user/jeff/numa/sys/kern/subr_vmem.c
/user/jeff/numa/sys/vm/*
Use a vmem per-domain kernel vmem to ensure that reservations and domain
specific allocations are honored for kernel memory.

Provide domain iterators for kmem along with domain specific allocation
functions.
03:14:10 - r325991
(1 hour 31 minutes ago)
by kevans
Affects:  /head/sys/arm/allwinner/aw_nmi.c
aw_nmi: add support for a31/a83t's r_intc

We currently support the a83t's r_intc in a somewhat hack-ish way; our .dts
describes it as nmi_intc, and uses a subset of the actual register space to
make it line up with a20/a31 nmi offsets.

This breaks with the recent 4.14 update describing r_intc using the full
register space, so update aw_nmi to use the correct register offsets with
the right compat data in a way that doesn't break our current dts with
nmi_intc or upstream with r_intc described.

Reviewed by: manu
Approved by: emaste (mentor)
Differential Revision: https://reviews.freebsd.org/D13122
02:16:11 - r325990
(2 hours 29 minutes ago)
by brd
Affects:  /head/release/packages/runtime.ucl
Add missing call to services_mkdb to build the services.db

Approved by: gjb
00:32:16 - r325989
(4 hours 13 minutes ago)
by emaste
Affects: 
(2 files)
/stable/11/sys/kern/md4c.c
MFC r325444: ANSIfy sys/kern/md4c.c

PR: 223453
Submitted by: ota@j.email.ne.jp
00:31:13 - r325988
(4 hours 14 minutes ago)
by emaste
Affects: 
(19 files)
/head/sys/libkern/*
ANSIfy sys/libkern

PR: 223641
Submitted by: ota@j.email.ne.jp
MFC after: 1 week
2017 - 11 - 18   (yesterday)
21:39:54 - r325987
(7 hours 5 minutes ago)
by manu
Affects:  /head/sys/dts/arm64
dts: arm64: allwinner: Remove unused dts for pine64

Latest u-boot port provide the dts for pine64, remove our custom
and outdated dts for this board.
21:27:33 - r325986
(7 hours 18 minutes ago)
by bdrewery
Affects:  /head/share/mk/src.sys.obj.mk
Remove unneeded special case for .OBJDIR=.CURDIR.

The else statement is already handling this by ensuring a safe .OBJDIR is used.

Sponsored by: Dell
21:12:06 - r325985
(7 hours 33 minutes ago)
by manu
Affects:  /head/sys/arm/allwinner/if_awg.c
if_awg: drain tx buffers and clear rx buffers when stopping

Stale packets should not be transmitted when the interface comes up after being
down.
Count the successfully transmitted ones for statistics and drop the rest.

Submitted by: Guy Yur <guyyur@gmail.com>
Differential Revision: https://reviews.freebsd.org/D12539
21:08:18 - r325984
(7 hours 37 minutes ago)
by manu
Affects:  /head/sys/arm/allwinner/if_awg.c
if_awg: avoid hole in the rx ring buffer when mbuf allocation fails

Use a spare dma map when attempting to map a new mbuf on the rx path.
If the mbuf allocation fails or the dma map loading for the new mbuf fails just
reuse the old mbuf
and increase the drop counter.

Submitted by: Guy Yur <guyyur@gmail.com>
Differential Revision: https://reviews.freebsd.org/D12538
21:04:39 - r325983
(7 hours 41 minutes ago)
by manu
Affects:  /head/sys/arm/allwinner/if_awg.c
if_awg: rename tx functions to match other drivers and free mbuf on m_collapse
failure

- use awg_encap and awg_txeof names to match iflib and other network drivers.
- handle m_collapse failure similarly by freeing the mbuf rather than
reenqueuing it where it will continue to fail.

Submitted by: Guy Yur <guyyur@gmail.com>
Differential Revision: https://reviews.freebsd.org/D13035
20:59:20 - r325982
(7 hours 46 minutes ago)
by manu
Affects:  /head/sys/arm/allwinner/if_awg.c
if_awg: don't process transmitted packets on TX_BUF_UA_INT, only on TX_INT

TX_BUF_UA_INT is set when there are no buffers to transmit and can
happen before hw.awg.tx_interval segments have been transmitted.

To reduce load, tx cleanup should be done in hw.awg.tx_interval intervals.

Submitted by: Guy Yur <guyyur@gmail.com>
Differential Revision: https://reviews.freebsd.org/D13034
20:55:37 - r325981
(7 hours 50 minutes ago)
by manu
Affects:  /head/sys/arm/allwinner/if_awg.c
if_awg: replace multiple calls to if_setdrvflagbits with one call in awg_txintr

Small optimization

Submitted by: Guy Yur <guyyur@gmail.com>
Differential Revision: https://reviews.freebsd.org/D13033
20:50:31 - r325980
(7 hours 55 minutes ago)
by manu
Affects:  /head/sys/arm/allwinner/if_awg.c
if_awg: only increment IFCOUNTER_OPACKETS when the last segment of a frame has
been successfully transmitted

A packet may be built from multiple segments, don't increase the count for each
segment

Submitted by: Guy Yur <guyyur@gmail.com>
Differential Revision: https://reviews.freebsd.org/D13032
20:46:31 - r325979
(7 hours 59 minutes ago)
by manu
Affects:  /head/sys/arm/allwinner/if_awg.c
if_awg: store mbuf and dma mapping in the last segment of a tx frame instead of
the first

According to the datasheet, TX_DESC_CTL is cleared when whole frame is
transmitted or all
data in the current descriptor's buffer are transmitted.
When the mbuf and mapping are stored in the first segment and in a scenario
where a tx
completion interrupt arrives for a frame and only the start of the next frame
was transmitted,
at the time of interrupt processing the mbuf and mapping will be freed when
processing the
first segment of the next frame but the other untrasmitted segments still need
to use them.

Submitted by: Guy Yur <guyyur@gmail.com>
Differential Revision: https://reviews.freebsd.org/D13031
20:42:48 - r325978
(8 hours 2 minutes ago)
by manu
Affects:  /head/sys/arm/allwinner/if_awg.c
if_awg: mark the first tx descriptor as ready only after all the other tx
descriptors are set up

In a multi segment frame, if the first tx descriptor is marked with TX_DESC_CTL
but not all tx descriptors for the other segments in the frame are set up,
the TX DMA may transmit an incomplete frame.
To prevent this, set TX_DESC_CTL for the first tx descriptor only when done
with all the other segments.

Also, don't bother cleaning transmitted tx descriptors since TX_DESC_CTL
is cleared for them by the hardware and they will be reprogrammed before
TX_DESC_CTL is reenabled for them.

Submitted by: Guy Yur <guyyur@gmail.com>
Differential Revision: https://reviews.freebsd.org/D13030
20:38:05 - r325977
(8 hours 7 minutes ago)
by manu
Affects:  /head/sys/arm/allwinner/if_awg.c
if_awg: only request completion interrupt on the last descriptor of a tx frame

The hardware will not issue a completion interrupt for a descriptor
with TX_INT_CTL set if it doesn't also have TX_LAST_DESC set.

Submitted by: Guy Yur <guyyur_gmail.com>
Differential Revision: https://reviews.freebsd.org/D13029
20:32:09 - r325976
(8 hours 13 minutes ago)
by hselasky
Affects:  /head/sys/dev/mlx5/mlx5_core/mlx5_fs_tree.c
Remove duplicate static function prototype to fix compilation of
mlx5_fs_tree.c after r325638 when using GCC.

Found by: kib @
MFC after: 1 week
Sponsored by: Mellanox Technologies
20:10:36 - r325975
(8 hours 35 minutes ago)
by bdrewery
Affects:  /head/share/mk/src.sys.env.mk
Evaluate options after including src-env.conf and before Makefile.sys.inc.

Fixes top-level breakage in r325974.

Pointyhat to: bdrewery
Sponsored by: Dell
20:01:15 - r325974
(8 hours 44 minutes ago)
by bdrewery
Affects:  /head/Makefile.sys.inc
/head/share/mk/src.sys.obj.mk
Fix top-level targets with read-only OBJDIR.

This also makes it so that top-level build targets do not immediately create
the OBJDIR. Only sub-make targets will do so. This avoids creating object
directories for targets like 'make check-old' or creating unneeded
MACHINE.MACHINE_ARCH directories during 'make tinderbox'.

Reported by: npn, lifanov
Tested by: npn, Mark Millard
Sponsored by: Dell
20:01:12 - r325973
(8 hours 44 minutes ago)
by bdrewery
Affects:  /head/Makefile
/head/Makefile.sys.inc
Move top-level AUTO_OBJ logic to Makefile.sys.inc.

Sponsored by: Dell
20:01:09 - r325972
(8 hours 44 minutes ago)
by bdrewery
Affects:  /head/share/mk/src.sys.env.mk
Include Makefile.sys.inc if possible for top-level only.

This will allow disabling some things like AUTO_OBJ early if not needed for the
directory/targets, without putting special logic into share/mk/*.sys.mk.

Sponsored by: Dell
20:01:05 - r325971
(8 hours 44 minutes ago)
by bdrewery
Affects:  /head/sys/conf/kern.post.mk
Fix PORTS_MODULES+'make reinstallkernel' trying to run bogus 'make redeinstall'.

Also fix 'make installkernel' running 'make deinstall' twice.

PR: 201779
MFC after: 2 weeks
Sponsored by: Dell
20:01:02 - r325970
(8 hours 44 minutes ago)
by bdrewery
Affects:  /head/Makefile.inc1
Fix 'make -n' for {reinstall,distribute}kernel.

PR: 201779
Sponsored by: Dell
16:07:53 - r325969
(12 hours 37 minutes ago)
by manu
Affects: 
(11 files)
/head/sys/dts/arm/*
/head/sys/modules/dtb/allwinner/Makefile
dts: Allwinner: Remove our last custom DTS

All Allwinner boards should use the upstream DTS so remove our
remaining custom ones.
15:46:48 - r325968
(12 hours 58 minutes ago)
by manu
Affects: 
(611 files)
/head/sys/gnu/dts/arm/*
/head/sys/gnu/dts/include/dt-bindings/*
Update our copy of DTS from the ones from Linux 4.14
15:34:31 - r325967
(13 hours 11 minutes ago)
by oshogbo
Affects:  /head/ObsoleteFiles.inc
/head/etc/Makefile
/head/etc/casper
Remove unused Casper configurations files.

This is a reaming of Casper daemon.
14:26:50 - r325966
(14 hours 18 minutes ago)
by pfg
Affects: 
(363 files)
/head/*
spdx: initial adoption of licensing ID tags.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

Special thanks to Wind River for providing access to "The Duke of
Highlander" tool: an older (2014) run over FreeBSD tree was useful as a
starting point.

Initially, only tag files that use BSD 4-Clause "Original" license.

RelNotes: yes
Differential Revision: https://reviews.freebsd.org/D13133
13:21:22 - r325965
(15 hours 24 minutes ago)
by trasz
Affects:  /head/libexec/rtld-elf/malloc.c
Increase rtld initial memory pool size from 32kB to 128kB.

The old value was probably fine back in 1998, when that code was imported
(although the comments still mention VAX, which was quite obsolete by then);
now, however, it's too small to handle our libc, which results in some
additional calls to munmap/mmap later on. Asking for more virtual address
space is virtually free, and syscalls are not, thus the change.

It was suggested by kib@ that this might be a symptom of a deeper problem.
It doesn't only affect libc, though - the change also improves rtld memory
management for eg KDE libraries. I guess it's just a natural bloat.

MFC after: 2 weeks
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D12834
11:58:35 - r325964
(16 hours 47 minutes ago)
by bhd
Affects:  /head/share/man/man4/lagg.4
Remove leftover in lagg(4) manpage forgotten in r271733

Reviewed by: bcr
Differential Revision: https://reviews.freebsd.org/D13061
2017 - 11 - 17   (2 days ago)
23:27:06 - r325963
(1 day 5 hours ago)
by mjg
Affects:  /head/sys/kern/kern_mutex.c
/head/sys/kern/kern_sx.c
locks: fix compilation issues without SMP or KDTRACE_HOOKS
23:25:06 - r325962
(1 day 5 hours ago)
by ae
Affects:  /head/sys/netpfil/ipfw/ip_fw2.c
Add comment for accidentally committed unrelated change in r325960.

Do not invoke IPv4 NAT handler for non IPv4 packets. Libalias expects
a packet is IPv4. And in case when it is IPv6, it just translates them
as IPv4. This leads to corruption and in some cases to panics.
In particular a panic can happen when value of ip6_plen modified to
something that leads to IP fragmentation, but actual packet length does
not match the IP length.

Packets that are not IPv4 will be dropped by NAT rule.

Reported by: Viktor Dukhovni <freebsd at dukhovni dot org>
MFC after: 1 week
23:22:39 - r325961
(1 day 5 hours ago)
by np
Affects:  /head/sys/dev/cxgbe/common/common.h
/head/sys/dev/cxgbe/t4_main.c
cxgbe(4): Add core Vdd to the sysctl MIB.

Sponsored by: Chelsio Communications
22:40:02 - r325960
(1 day 6 hours ago)
by ae
Affects:  /head/sys/modules/ipfw/Makefile
/head/sys/netpfil/ipfw/ip_fw2.c
Unconditionally enable support for O_IPSEC opcode.

IPsec support can be loaded as kernel module, thus do not depend from
kernel option IPSEC and always build O_IPSEC opcode implementation as
enabled.

Obtained from: Yandex LLC
MFC after: 1 week
Sponsored by: Yandex LLC
20:53:52 - r325959
(1 day 7 hours ago)
by asomers
Affects:  /head/sys/cam/scsi/scsi_xpt.c
Add assertion in probedone() that we're holding the device lock.

Submitted by: ken
Reviewed by: asomers
MFC after: 3 weeks
Sponsored by: Spectra Logic Corp
20:41:17 - r325958
(1 day 8 hours ago)
by mjg
Affects:  /head/share/man/man9/lock.9
/head/sys/conf/options
/head/sys/kern/kern_lock.c
lockmgr: remove the ADAPTIVE_LOCKMGRS option

The code was never enabled and is very heavy weight.

A revamped adaptive spinning may show up at a later time.

Discussed with: kib
19:25:39 - r325957
(1 day 9 hours ago)
by cem
Affects:  /head/sys/kern/vfs_lookup.c
/head/tests/sys/vfs/Makefile
/head/tests/sys/vfs/lookup_test.sh
vfs_lookup: Allow PATH_MAX-1 symlinks

Previously, symlinks in FreeBSD were artificially limited to PATH_MAX-2.

Add a short test case to verify the change.

Submitted by: Gaurav Gangalwar <ggangalwar AT isilon.com>
Reviewed by: kib
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D12589
19:10:10 - r325956
(1 day 9 hours ago)
by kib
Affects:  /head/share/man/man7/hier.7
/head/share/man/man9/style.9
Bump dates after lint removal.

Noted by: wblock
Sponsored by: The FreeBSD Foundation
18:34:14 - r325955
(1 day 10 hours ago)
by bdrewery
Affects:  /head/usr.sbin/config/config.h
/head/usr.sbin/config/configvers.h
/head/usr.sbin/config/mkmakefile.c
Fix 'local' to not look in the source tree for the file.

Usually 'local' is used along with other rules such as 'no-implicit-rule' or
'dependency' which avoids this problem. It's possible to need to use 'local'
while relying on the default rules though for a file which is not in the source
tree nor generated in the kernel.

Sponsored by: Dell
Differential Revision: https://reviews.freebsd.org/D13125
18:16:46 - r325954
(1 day 10 hours ago)
by imp
Affects: 
(13 files)
/head/*
Remove build system support for lint.

Differential Revision: https://reviews.freebsd.org/D13124
18:00:52 - r325953
(1 day 10 hours ago)
by gjb
Affects: 
(7 files)
/head/release/*
Add general configuration files used by release/release.sh for
big-iron installation images.

MFC after: 3 days
MFC with: r325948, r325949, r325950, r325951
Sponsored by: The FreeBSD Foundation
17:54:10 - r325952
(1 day 10 hours ago)
by br
Affects:  /head/sys/x86/include/specialreg.h
Add Intel Processor Trace registers for:
- CPUID
- Table of Physical Addresses (ToPA).

Sponsored by: DARPA, AFRL
17:40:53 - r325951
(1 day 11 hours ago)
by gjb
Affects:  /head/release/arm64/RPI3.conf
Fix indentation.

Sponsored by: The FreeBSD Foundation
17:36:45 - r325950
(1 day 11 hours ago)
by gjb
Affects: 
(10 files)
/head/release/arm/*
Sort variables for consistency.

Sponsored by: The FreeBSD Foundation
17:34:52 - r325949
(1 day 11 hours ago)
by gjb
Affects:  /head/release/arm64/PINE64.conf
/head/release/arm64/RPI3.conf
Sort variables in arm64 SoC configurations.
Remove an unneeded UBLDR_LOADADDR from RPI3.conf.

Sponsored by: The FreeBSD Foundation
17:33:06 - r325948
(1 day 11 hours ago)
by gjb
Affects:  /head/release/arm64/PINE64.conf
/head/release/arm64/RPI3.conf
Remove stray SRCBRANCH included by mistake.

Sponsored by: The FreeBSD Foundation
17:13:00 - r325947
(1 day 11 hours ago)
by asomers
Affects:  /head/sys/cam/scsi/scsi_xpt.c
Fix potential NULL pointer dereference of device physical path

In scsi_dev_advinfo(), if the physical path is being stored and there is a
malloc failure (malloc(9) is called with M_NOWAIT), we could wind up in a
situation where the device's physpath_len is set to the length the user
provided, but the physpath itself is NULL.

If another context then comes in to fetch the physical path value, we would
wind up trying to memcpy a NULL pointer into the caller's buffer.

So, set the physpath_len to 0 when we free the physpath on entry into the
store case for the physical path. Reset the length to a non-zero value only
after we've successfully malloced a buffer to hold it.

Submitted by: ken
Reviewed by: asomers
MFC after: 3 weeks
Sponsored by: Spectra Logic Corp
16:04:37 - r325946
(1 day 12 hours ago)
by asomers
Affects:  /head/share/man/man9/VOP_LOOKUP.9
VOP_LOOKUP.9: update locking info

The old description has been inaccurate since at least 243271, if not
before.

Submitted by: will
Reviewed by: kib
MFC after: 3 weeks
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D13108
15:49:01 - r325945
(1 day 12 hours ago)
by hselasky
Affects: 
(2 files)
/stable/10/sys/ofed/drivers/infiniband/core/cma.c
MFC r325616:
Make sure sin_zero is zero in ibcore. Else socket address maching using
bcmp() might fail.

Sponsored by: Mellanox Technologies
15:48:03 - r325944
(1 day 12 hours ago)
by hselasky
Affects: 
(2 files)
/stable/11/sys/ofed/drivers/infiniband/core/cma.c
MFC r325616:
Make sure sin_zero is zero in ibcore. Else socket address maching using
bcmp() might fail.

Sponsored by: Mellanox Technologies
15:46:45 - r325943
(1 day 12 hours ago)
by hselasky
Affects: 
(2 files)
/stable/10/sys/ofed/drivers/infiniband/core/cma.c
MFC r325615:
Make sure the IPv6 scope ID gets zeroed when exchanging CMA messages in ibcore.
Else the IPv6 address matching might fail. This change adds support for both
embedded and non-embedded IPv6 scope IDs when passing a IPv6 link-local socket
address to RDMA. Prior to this change only global IPv6 addresses would work
with RDMA.

Sponsored by: Mellanox Technologies
15:46:19 - r325942
(1 day 12 hours ago)
by gordon
Affects:  /head/UPDATING
Correct grammar nit.
15:45:35 - r325941
(1 day 13 hours ago)
by hselasky
Affects: 
(2 files)
/stable/11/sys/ofed/drivers/infiniband/core/cma.c
MFC r325615:
Make sure the IPv6 scope ID gets zeroed when exchanging CMA messages in ibcore.
Else the IPv6 address matching might fail. This change adds support for both
embedded and non-embedded IPv6 scope IDs when passing a IPv6 link-local socket
address to RDMA. Prior to this change only global IPv6 addresses would work
with RDMA.

Sponsored by: Mellanox Technologies
15:43:29 - r325940
(1 day 13 hours ago)
by hselasky
Affects: 
(4 files)
/stable/10/sys/ofed/drivers/infiniband/core/addr.c
/stable/10/sys/ofed/drivers/infiniband/core/cma.c
/stable/10/sys/ofed/drivers/infiniband/core/device.c
MFC r325614:
Multiple fixes for using IPv6 link-local addresses with RDMA.

1) Fail to resolve RDMA address if rtalloc1() returns the loopback
device, lo0, as the gateway interface.

2) Use ip_dev_find() and ip6_dev_find() to lookup network interfaces
with matching IPv4 and IPv6 addresses, respectivly.

3) In addr_resolve() make sure the "ifa" pointer is always set, also when
the "ifp" is NULL. Else a NULL pointer access might happen trying to
read from the "ifa" pointer later on.

Sponsored by: Mellanox Technologies
15:37:36 - r325939
(1 day 13 hours ago)
by hselasky
Affects: 
(6 files)
/stable/11/sys/ofed/drivers/infiniband/core/*
/stable/11/sys/ofed/include/rdma/ib_addr.h
MFC r325614:
Multiple fixes for using IPv6 link-local addresses with RDMA in ibcore.

1) Fail to resolve RDMA address if rtalloc1() returns the loopback
device, lo0, as the gateway interface. Currently RDMA loopback is
not supported.

2) Use ip_dev_find() and ip6_dev_find() to lookup network interfaces
with matching IPv4 and IPv6 addresses, respectivly.

3) In addr_resolve() make sure the "ifa" pointer is always set, also when
the "ifp" is NULL. Else a NULL pointer access might happen trying to
read from the "ifa" pointer later on.

4) In rdma_addr_find_dmac_by_grh() make sure the "bound_dev_if" field
gets set properly instead of passing the scope ID through the IPv6
socket address structure. This is more in line with upstream OFED
in Linux.

5) In rdma_addr_find_smac_by_sgid() there is no need to pass the
scope ID for IPv6. Either it is stored in the "bound_dev_if" field
or ip6_dev_find() will find the correct network device regardless
of the scope ID.

Sponsored by: Mellanox Technologies
15:32:27 - r325938
(1 day 13 hours ago)
by hselasky
Affects: 
(2 files)
/stable/9/sys/ofed/include/linux/dma-mapping.h
MFC r325533:
Make the dma_alloc_coherent() function in the LinuxKPI NULL safe with regard
to the "dev" argument.

Submitted by: Krishnamraju Eraparaju @ Chelsio
Sponsored by: Chelsio Communications
15:30:36 - r325937
(1 day 13 hours ago)
by hselasky
Affects: 
(2 files)
/stable/10/sys/ofed/include/linux/dma-mapping.h
MFC r325533:
Make the dma_alloc_coherent() function in the LinuxKPI NULL safe with regard
to the "dev" argument.

Submitted by: Krishnamraju Eraparaju @ Chelsio
Sponsored by: Chelsio Communications
15:27:52 - r325936
(1 day 13 hours ago)
by hselasky
Affects: 
(2 files)
/stable/11/sys/compat/linuxkpi/common/include/linux/dma-mapping.h
MFC r325533:
Make the dma_alloc_coherent() function in the LinuxKPI NULL safe with regard
to the "dev" argument.

Submitted by: Krishnamraju Eraparaju @ Chelsio
Sponsored by: Chelsio Communications
15:23:42 - r325935
(1 day 13 hours ago)
by hselasky
Affects:  /projects/bsd_rdma_4_9/contrib/ofed/libibnetdisc/g_hash_table.cpp
Fix compilation of libibnetdisc using in-base GCC v4.2.1.

Sponsored by: Mellanox Technologies
13:12:20 - r325934
(1 day 15 hours ago)
by scottl
Affects:  /head/sbin/fsck_ffs/pass5.c
/head/sbin/newfs/mkfs.c
/head/sys/sys/param.h
Rename P_OSREL_CK_CLYGRP to P_OSREL_CK_CYLGRP
13:01:56 - r325933
(1 day 15 hours ago)
by bapt
Affects: 
(3 files)
/stable/11/tools/tools/locale/etc/common.UTF-8.src
/stable/11/tools/tools/locale/etc/final-maps/map.UTF-8
MFC: 325359

Upgrade to Unicode 10.0.0
10:13:24 - r325932
(1 day 18 hours ago)
by avg
Affects: 
(3 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dbuf.c
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/dbuf.h
MFC r325610: MFV r325609: 7531 Assign correct flags to prefetched buffers
10:10:22 - r325931
(1 day 18 hours ago)
by avg
Affects: 
(3 files)
/stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dbuf.c
/stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/dbuf.h
MFC r325610: MFV r325609: 7531 Assign correct flags to prefetched buffers
09:33:29 - r325930
(1 day 19 hours ago)
by bapt
Affects:  /head/sys/contrib/zstd/programs/zstdcli.c
Actually commit the right patch for r325929
09:29:26 - r325929
(1 day 19 hours ago)
by bapt
Affects:  /head/sys/contrib/zstd/programs/zstdcli.c
Do not remove the sources when zstd is called as zstdcat
09:14:18 - r325928
(1 day 19 hours ago)
by bapt
Affects: 
(75 files)
/stable/11/share/*
MFC r325361:

Update to CLDR 32 and Unicode 10

Relnotes: yes
04:29:32 - r325927
(2 days ago)
by jhibbits
Affects:  /head/sys/dev/dpaa/if_dtsec.c
Add jumbo frame support to dtsec(4)

MFC after: 2 weeks
04:10:52 - r325926
(2 days ago)
by jhibbits
Affects:  /head/sys/powerpc/ofw/ofw_machdep.c
Stop special casing 32-bit AIM in memory parsing

There's no need to special case 32-bit AIM to short circuit processing.
Some AIM CPUs can handle 36 bit addresses, and 64-bit CPUs can run 32-bit
OSes, so this will allow us to expand for that in the future if we desire.
02:59:28 - r325925
(2 days 1 hour ago)
by mjg
Affects:  /head/sys/kern/kern_mutex.c
mtx: add missing parts of the diff in r325920

Fixes build breakage.
02:45:38 - r325924
(2 days 2 hours ago)
by mjg
Affects:  /head/sys/kern/kern_switch.c
sched: move panic handling code out of choosethread

This avoids jumps in the common case of the kernel not being panicked.
02:29:06 - r325923
(2 days 2 hours ago)
by mjg
Affects:  /head/sys/kern/kern_proc.c
Check for PRS_NEW without locking the proc in sysctl_kern_proc
02:27:04 - r325922
(2 days 2 hours ago)
by mjg
Affects:  /head/sys/kern/kern_sx.c
sx: perform a minor cleanup of the unlock slowpath

No functional changes.
02:26:15 - r325921
(2 days 2 hours ago)
by mjg
Affects:  /head/sys/kern/kern_rwlock.c
rwlock: unlock before traversing threads to wake up

While here perform a minor cleanup of the unlock path.
02:25:04 - r325920
(2 days 2 hours ago)
by mjg
Affects:  /head/sys/kern/kern_mutex.c
mtx: unlock before traversing threads to wake up

This shortens the lock hold time while not affecting corretness.
All the woken up threads end up competing can lose the race against
a completely unrelated thread getting the lock anyway.
02:22:51 - r325919
(2 days 2 hours ago)
by mjg
Affects:  /head/sys/kern/kern_rwlock.c
/head/sys/kern/kern_sx.c
locks: pull up PMC_SOFT_CALLs out of slow path loops
02:21:24 - r325918
(2 days 2 hours ago)
by mjg
Affects:  /head/sys/kern/kern_rwlock.c
rwlock: avoid branches in the slow path if lockstat is disabled
02:21:07 - r325917
(2 days 2 hours ago)
by mjg
Affects:  /head/sys/kern/kern_sx.c
sx: avoid branches if in the slow path if lockstat is disabled
00:38:00 - r325916
(2 days 4 hours ago)
by emaste
Affects: 
(2 files)
/stable/11/sys/dev/vnic/nicvf_queues.c
MFC r325683: vnic: apply BPF tap before passing packet to hardware

Previously we passed tx packets to hardware via nicvf_tx_mbuf_locked
and then to the BPF tap, with a possibly invalid mbuf which would result
in a panic.

PR: 223600
Discussed with: bz
Sponsored by: The FreeBSD Foundation, Packet.net (hardware)
2017 - 11 - 16   (3 days ago)
23:36:19 - r325915
(2 days 5 hours ago)
by avg
Affects: 
(11 files)
/stable/10/cddl/*
MFC r325035: MFV r325013,r325034: 640 number_to_scaled_string is duplicated in
several commands

FreeBSD note: of all libcmdutils functionality ZFS (and other illumos
contrib code) currently uses only nicenum() function (which is similar
to humanize_number but has some formatting differences). For this
reason I decided to not port the whole library. As a result, nicenum.c
from libcmdutils is compiled into libzfs and libzpool. This is a bit
ugly, but works. If one day we are forced to create libillumos, then
the file should be moved to that library.
23:27:27 - r325914
(2 days 5 hours ago)
by avg
Affects: 
(11 files)
/stable/11/cddl/*
MFC r325035: MFV r325013,r325034: 640 number_to_scaled_string is duplicated in
several commands

FreeBSD note: of all libcmdutils functionality ZFS (and other illumos
contrib code) currently uses only nicenum() function (which is similar
to humanize_number but has some formatting differences). For this
reason I decided to not port the whole library. As a result, nicenum.c
from libcmdutils is compiled into libzfs and libzpool. This is a bit
ugly, but works. If one day we are forced to create libillumos, then
the file should be moved to that library.
23:02:04 - r325913
(2 days 5 hours ago)
by avg
Affects: 
(2 files)
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
MFC r325228: vdev_geom_close: close errored consumer even if vdev_reopening is
set
22:58:55 - r325912
(2 days 5 hours ago)
by avg
Affects: 
(2 files)
/stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
MFC r325228: vdev_geom_close: close errored consumer even if vdev_reopening is
set
22:53:36 - r325911
(2 days 5 hours ago)
by avg
Affects: 
(3 files)
/stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_pool.c
/stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_ioctl.c
MFC r325608: MFV r325607: 8607 zfs: variable set but not used
22:47:41 - r325910
(2 days 5 hours ago)
by avg
Affects: 
(2 files)
/stable/10/sys/cddl/contrib/opensolaris/common/zfs/zfs_namecheck.c
MFC r325606: MFV r325605: 8713 Buffer overflow in dsl_dataset_name()
22:44:51 - r325909
(2 days 6 hours ago)
by avg
Affects: 
(2 files)
/stable/11/sys/cddl/contrib/opensolaris/common/zfs/zfs_namecheck.c
MFC r325606: MFV r325605: 8713 Buffer overflow in dsl_dataset_name()
22:37:03 - r325908
(2 days 6 hours ago)
by avg
Affects: 
(2 files)
/stable/10/sys/geom/geom_slice.c
MFC r325227,r325272: geom_slice: do not destroy softc until providers are gone

Note: there was a merge conflict, likely because of a missing MFC of an
earlier change.
22:25:12 - r325907
(2 days 6 hours ago)
by avg
Affects: 
(2 files)
/stable/11/sys/geom/geom_slice.c
MFC r325227,r325272: geom_slice: do not destroy softc until providers are gone
22:14:49 - r325906
(2 days 6 hours ago)
by avg
Affects:  /head/usr.bin/procstat/procstat.c
procstat: fix a crash with -k -a options

The traditional / legacy usage should still be supported.
This fixes a regression in r324619 that introduced a nicer, verb based
interface.

Reviewed by: brooks
X-MFC with: r324619
21:47:41 - r325905
(2 days 6 hours ago)
by vangyzen
Affects: 
(2 files)
/stable/11/lib/libc/sys/_umtx_op.2
MFC r325766

Fix formatting of _umtx_op(2)

Do not use macros in the -width of a .Bl, since mandoc does not support them.

Fix issues reported by igor and mandoc -Tlint.

Use a .Bl for list of clock IDs instead of a comma list.

Sponsored by: Dell EMC
21:45:10 - r325904
(2 days 7 hours ago)
by vangyzen
Affects: 
(2 files)
/stable/11/sys/sys/umtx.h
MFC r325764

Add __BEGIN_DECLS and __END_DECLS to <sys/umtx.h>

This allows C++ programs to call _umtx_op().

Sponsored by: Dell EMC
21:28:14 - r325903
(2 days 7 hours ago)
by imp
Affects: 
(4 files)
/head/sbin/fsck_ffs/pass5.c
/head/sbin/newfs/*
/head/sys/sys/param.h
Only try to enable CK_CLYGRP if we're running on kernel newer than
1200046, the first version that supports this feature. If we set it,
then use an old kernel, we'll break the 'contract' of having
checksummed cylinder groups this flag signifies. To avoid creating
something with an inconsistent state, don't turn the flag on in these
cases. The first full fsck with a new kernel will turn this on.

Spnsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D13114
19:07:19 - r325902
(2 days 9 hours ago)
by jhb
Affects: 
(2 files)
/stable/11/lib/libsysdecode/sysdecode.3
MFC 319517: Add a cross-reference to sysdecode_socket_protocol(3).
18:52:58 - r325901
(2 days 9 hours ago)
by shurd
Affects:  /head/sys/net/iflib.c
Fix default numbers of iflib queue sets

The intent appears to be having one RX/TX queue set per core,
but since scctx->isc_n[tr]xqsets is set to max before calling
iflib_msix_init(), both end up being set to total number of cores.

Use ctx->ifc_sysctl_n[rt]xqs as the selected value and
scctx->isc_n[rt]xqsets as the max. This should result in what appears
to be the intended behaviour

Reviewed by: sbruno
Sponsored by: Limelight Networks
Differential Revision: https://reviews.freebsd.org/D13096
18:22:03 - r325900
(2 days 10 hours ago)
by jhb
Affects: 
(6 files)
/stable/10/sys/amd64/vmm/io/*
/stable/11/sys/amd64/vmm/io/*
MFC 325039: Rework pass through changes in r305485 to be safer.

Specifically, devices that do not support PCI-e FLR and were not
gracefully shutdown by the guest OS could continue to issue DMA
requests after the VM was terminated. The changes in r305485 meant
that those DMA requests were completed against the host's memory which
could result in random memory corruption. Instead, leave ppt devices
that are not attached to a VM disabled in the IOMMU and only restore
the devices to the host domain if the ppt(4) driver is detached from a
device.

As an added safety belt, disable busmastering for a pass-through device
when before adding it to the host domain during ppt(4) detach.

PR: 222937
16:00:01 - r325899
(2 days 12 hours ago)
by gjb
Affects: 
(5 files)
/stable/10/release/*
MFC r320252, r320686, r325769:
 r320252:
  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.

 r320686:
  Fix the ftp-stage target by loosening the constraints on the TARGET
  and TARGET_ARCH variables.

 r325769:
  Update the GUMSTIX image build to use arm/arm TARGET/TARGET_ARCH.
  Update the TARGET/TARGET_ARCH matching in release/release.sh and
  release/Makefile.mirrors for simplification.

Note: The RPI3.conf addition from r320252 is not included, as it is
not supported on 10-STABLE. Additionally, arm64/aarch64 changes are
also excluded from this commit.

Sponsored by: The FreeBSD Foundation
15:59:29 - r325898
(2 days 12 hours ago)
by gjb
Affects: 
(5 files)
/stable/11/release/*
MFC r320252, r320686, r325769:
 r320252:
  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.

 r320686:
  Fix the ftp-stage target for RPI3 images by loosening the
  constraints on the TARGET and TARGET_ARCH variables.

 r325769:
  Update the GUMSTIX image build to use arm/arm TARGET/TARGET_ARCH.
  Update the TARGET/TARGET_ARCH matching in release/release.sh and
  release/Makefile.mirrors for simplification.

Note: The RPI3.conf addition from r320252 is not included, as the
11-STABLE image fails to boot in my testing.

Sponsored by: The FreeBSD Foundation
15:26:39 - r325897
(2 days 13 hours ago)
by hselasky
Affects:  /head/tools/make_libdeps.sh
Improve the library dependencies helper script in src/tools.

Implement double pass of the relevant Makefiles. First make a list of
library names and directories and then scan for all the dependencies.
Spaces in directories in the source tree are not supported.

This avoids using hardcoded mappings between the library name
and the directory containing the library Makefile.

Add support for scanning contrib/ofed .

Bail out on any errors.

Sponsored by: Mellanox Technologies
MFC after: 1 week
15:18:36 - r325896
(2 days 13 hours ago)
by hselasky
Affects:  /projects/bsd_rdma_4_9/contrib/ofed/include/Makefile
/projects/bsd_rdma_4_9/contrib/ofed/libibumad/umad.c
/projects/bsd_rdma_4_9/contrib/ofed/libibumad/umad.h
Fix compilation for libsysdecode.

Don't install the ib_user_mad.h header file into user-space,
because it conflicts with umad.h from libibumad.h when building
libsysdecode.

Sponsored by: Mellanox Technologies
15:16:53 - r325895
(2 days 13 hours ago)
by hselasky
Affects:  /projects/bsd_rdma_4_9/contrib/ofed/include/types.h
Remove conflicting uint definition.

Already defined by sys/types.h

Sponsored by: Mellanox Technologies
15:13:28 - r325894
(2 days 13 hours ago)
by hselasky
Affects:  /projects/bsd_rdma_4_9/Makefile.inc1
Update list of hardcoded OFED build order dependencies for
the buildworld target.

Sponsored by: Mellanox Technologies
14:37:18 - r325893
(2 days 14 hours ago)
by kib
Affects: 
(8 files)
/head/*
Remove xlint(1).

xlint is currently a fossil. We have much more useful and alive tools
to do now what xlint did twenty years ago.

I did not cleared some stuff which makes lint operational, in
sys/x86/include and sys/sys, but I might do it as followup. The
x86/include/ucontext.h and _types.h hacks made to please lint was the
main reason for my initial proposal to classify xlint as obsolete and
to remove it.

Also I do not intend to clear sccs ids.

Reviewed by: bapt, brooks, emaste, jhb, pfg
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D13015
14:27:02 - r325892
(2 days 14 hours ago)
by kib
Affects: 
(12 files)
/head/sys/*
Remove i386 XBOX support.

It is for console presented at 2001 and featuring Pentium III
processor. Even if any of them are still alive and run FreeBSD, we do
not have any sign of life from their users. While removing another
dozens of #ifdefs from the i386 sources reduces the aversion from
looking at the code and improves the platform vitality.

Reviewed by: cem, pfg, rink (XBOX support author)
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D13016
13:28:00 - r325891
(2 days 15 hours ago)
by hselasky
Affects: 
(5 files)
/projects/bsd_rdma_4_9/sys/dev/iser/*
/projects/bsd_rdma_4_9/sys/modules/iser/Makefile
Update iser backend code to use new ibcore APIs.

Sponsored by: Mellanox Technologies
12:51:39 - r325890
(2 days 15 hours ago)
by kib
Affects: 
(2 files)
/stable/11/sys/dev/hwpmc/hwpmc_logging.c
MFC r325758:
Style bug.
10:47:21 - r325889
(2 days 17 hours ago)
by pho
Affects:  /user/pho/stress2/misc/stack_guard_page.sh
Fix misunderstandings.

Sponsored by: Dell EMC Isilon
10:15:17 - r325888
(2 days 18 hours ago)
by bapt
Affects:  /head/sys/cam/ata/ata_da.c
/head/sys/cam/scsi/scsi_da.c
Add some 4k quirks for Samsung pm863a SSDs

Submitted by: Nikita Kozlov <nikita.kozlov at blade-group.com>
MFC after: 3 days
Sponsored by: blade
Differential Revision: https://reviews.freebsd.org/D13093
07:25:12 - r325887
(2 days 21 hours ago)
by markj
Affects:  /head/sys/cddl/compat/opensolaris/kern/opensolaris_proc.c
/head/sys/cddl/contrib/opensolaris/uts/intel/dtrace/fasttrap_isa.c
Avoid holding the process in uread() and uwrite().

In general, higher-level code will atomically verify that the process
is not exiting and hold the process. In one case, we were using uwrite()
to copy a probed instruction to a per-thread scratch space block, but
copyout() can be used for this purpose instead; this change effectively
reverts r227291.

MFC after: 1 week
07:14:29 - r325886
(2 days 21 hours ago)
by markj
Affects:  /head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c
Take r313504 into account when recomputing the string table length.

When we encounter a USDT probe in a weak symbol, we emit an alias for
the probe function symbol. Such aliases are named differently from the
aliases we emit for probes in local functions, so make sure to take that
difference into account when resizing the output object file's string
table. Otherwise, we underrun the string table buffer.

PR: 223680
06:55:57 - r325885
(2 days 21 hours ago)
by jhb
Affects: 
(2 files)
/stable/11/tests/sys/kern/ptrace_test.c
MFC 324993:
Add a test for sending a signal while stepping a thread via PT_STEP.
02:42:37 - r325884
(3 days 2 hours ago)
by np
Affects:  /head/sys/dev/cxgbe/t4_main.c
cxgbe(4): Remove rsrv_noflowq from intrs_and_queues structure as it does
not influence or get affected by the number of interrupts or queues.

Sponsored by: Chelsio Communications
01:33:53 - r325883
(3 days 3 hours ago)
by np
Affects:  /head/sys/dev/cxgbe/t4_main.c
cxgbe(4): Sanitize t4_num_vis during MOD_LOAD like all other t4_*
tunables. Add num_vis to the intrs_and_queues structure as it affects
the number of interrupts requested and queues created. In future
cfg_itype_and_nqueues might lower it incrementally instead of going
straight to 1 when enough interrupts aren't available.

Sponsored by: Chelsio Communications
00:19:44 - r325882
(3 days 4 hours ago)
by imp
Affects:  /head/share/man/man7/arch.7
Use better wording: change there to the and define to defines.
Also fix a run-a-way macro invocation of Dv.

Noticed by: matteo@
2017 - 11 - 15   (4 days ago)
23:51:17 - r325881
(3 days 4 hours ago)
by imp
Affects:  /head/share/man/man7/arch.7
Fix some formatting issues, bump .Dd to today's date, don't use
contractions, and make igor almost happy with this (two issues are
false positives, and I'm not sure a synopsis makes sense).

Sponsored by: Netflix
23:48:02 - r325880
(3 days 4 hours ago)
by np
Affects: 
(5 files)
/head/share/man/man4/*
/head/sys/dev/cxgbe/*
cxgbe(4): Combine all _10g and _1g tunables and drop the suffix from
their names. The finer-grained knobs weren't practically useful.

Sponsored by: Chelsio Communications
23:29:32 - r325879
(3 days 5 hours ago)
by gordon
Affects:  /releng/11.1/UPDATING
Correct patch level.

Approved by: so
X-Pointy-Hat: gordon@
22:51:08 - r325878
(3 days 5 hours ago)
by gordon
Affects: 
(4 files)
/releng/10.3/UPDATING
/releng/10.3/sys/*
Properly bzero kldstat structure to prevent information leak. [SA-17:10]

Approved by: so
Security: FreeBSD-SA-17:10.kldstat
Security: CVE-2017-1088
22:50:47 - r325877
(3 days 5 hours ago)
by gordon
Affects: 
(4 files)
/releng/10.4/UPDATING
/releng/10.4/sys/*
Properly bzero kldstat structure to prevent information leak. [SA-17:10]

Approved by: so
Security: FreeBSD-SA-17:10.kldstat
Security: CVE-2017-1088
22:50:20 - r325876
(3 days 5 hours ago)
by gordon
Affects: 
(4 files)
/releng/11.0/UPDATING
/releng/11.0/sys/*
Properly bzero kldstat structure to prevent information leak. [SA-17:10]

Approved by: so
Security: FreeBSD-SA-17:10.kldstat
Security: CVE-2017-1088
22:49:47 - r325875
(3 days 5 hours ago)
by gordon
Affects: 
(4 files)
/releng/11.1/UPDATING
/releng/11.1/sys/*
Properly bzero kldstat structure to prevent information leak. [SA-17:10]

Approved by: so
Security: FreeBSD-SA-17:10.kldstat
Security: CVE-2017-1088
22:45:50 - r325874
(3 days 5 hours ago)
by gordon
Affects:  /releng/10.4/sys/kern/uipc_mqueue.c
/releng/10.4/sys/kern/uipc_sem.c
/releng/10.4/sys/kern/uipc_shm.c
Fix namespace issue in POSIX shm implementation for jails. [SA-17:09]

Approved by: so
Security: FreeBSD-SA-17:09.shm
Security: CVE-2017-1087
22:45:13 - r325873
(3 days 6 hours ago)
by gordon
Affects: 
(6 files)
/releng/10.3/share/man/man9/osd.9
/releng/10.3/sys/kern/*
/releng/10.3/sys/sys/osd.h
Fix namespace issue in POSIX shm implementation for jails. [SA-17:09]

Approved by: so
Security: FreeBSD-SA-17:09.shm
Security: CVE-2017-1087
22:42:20 - r325872
(3 days 6 hours ago)
by cem
Affects:  /head/sys/netipsec/key.c
ipsec: Use the same keysize values for HMAC as prior to r324017

The HMAC construction natively permits any key size between 0 and the input
block length. Before r324017, the auth_hash 'keysize' member was the hash
output length, which was used by ipsec for key sizes. (Non-ipsec consumers
need the ability to use other keysizes, hence, r324017.)

The ipsec SADB code blindly uses the auth_hash 'keysize' member for both
minimum and maximum key size, which is wrong (from an HMAC perspective).
For now, just switch it to 'hashsize', which matches the existing
expectations.

Instead it should probably use the range [0, keysize]. But there may be
other broken code in ipsec that rejects hashes with too small a minimum
key size.

Reported by: olivier@
Reviewed by: olivier, no objection from ae
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D12770
22:40:46 - r325871
(3 days 6 hours ago)
by gordon
Affects:  /releng/10.3/sys/kern/sys_process.c
Fix kernel data leak via ptrace(PT_LWPINFO). [SA-17:08]

Approved by: so
Security: FreeBSD-SA-17:08.ptrace
Security: CVE-2017-1086
22:40:32 - r325870
(3 days 6 hours ago)
by gordon
Affects:  /releng/10.4/sys/kern/sys_process.c
Fix kernel data leak via ptrace(PT_LWPINFO). [SA-17:08]

Approved by: so
Security: FreeBSD-SA-17:08.ptrace
Security: CVE-2017-1086
22:40:15 - r325869
(3 days 6 hours ago)
by gordon
Affects:  /releng/11.0/sys/kern/sys_process.c
Fix kernel data leak via ptrace(PT_LWPINFO). [SA-17:08]

Approved by: so
Security: FreeBSD-SA-17:08.ptrace
Security: CVE-2017-1086
22:39:41 - r325868
(3 days 6 hours ago)
by gordon
Affects:  /releng/11.1/sys/kern/sys_process.c
Fix kernel data leak via ptrace(PT_LWPINFO). [SA-17:08]

Approved by: so
Security: FreeBSD-SA-17:08.ptrace
Security: CVE-2017-1086
22:35:16 - r325867
(3 days 6 hours ago)
by gordon
Affects: 
(3 files)
/stable/10/sys/compat/freebsd32/freebsd32_misc.c
/stable/10/sys/kern/kern_linker.c
MFC r325865

Properly bzero kldstat structure to prevent kernel information leak.

Security: FreeBSD-SA-17:10.kldstat
Security: CVE-2017-1088
22:34:15 - r325866
(3 days 6 hours ago)
by gordon
Affects: 
(3 files)
/stable/11/sys/compat/freebsd32/freebsd32_misc.c
/stable/11/sys/kern/kern_linker.c
MFC r325865

Properly bzero kldstat structure to prevent kernel information leak.

Security: FreeBSD-SA-17:10.kldstat
Security: CVE-2017-1088
22:30:21 - r325865
(3 days 6 hours ago)
by gordon
Affects:  /head/sys/compat/freebsd32/freebsd32_misc.c
/head/sys/kern/kern_linker.c
Properly bzero kldstat structure to prevent kernel information leak.

Submitted by: kib
Reported by: TJ Corley
Security: CVE-2017-1088
22:13:10 - r325864
(3 days 6 hours ago)
by tuexen
Affects:  /head/sys/netinet/sctp_input.c
Fix the handling of ERROR chunks which a lot of error causes.
While there, clean up the code.
Thanks to Felix Weinrank who found the bug by using fuzz-testing
the SCTP userland stack.

MFC after: 1 week
19:14:44 - r325863
(3 days 9 hours ago)
by gjb
Affects:  /head/release/release.sh
Only copy /etc/resolv.conf to ${CHROOTDIR} if /etc/resolv.conf does
not already exist within ${CHROOTDIR}. This allows re-using a build
chroot with CHROOTBUILD_SKIP set to a non-empty value and CHROOTDIR
set to '/' in release.conf.

MFC after: 3 days
Sponsored by: The FreeBSD Foundation
19:04:23 - r325862
(3 days 9 hours ago)
by manu
Affects:  /head/release/arm/RPI2.conf
release: Update u-boot and firmware file for RPI2 target

The u-boot port for RPI-2 was updated to use u-boot-master, this cause
an update in u-boot version to v2017.09 and changing the filename.
The various firmware files for the RPI* are now in a common ports
sysutils/rpi-firmware as they are shared on all the RPI version.

Update the release files to copy the right files from the right location.

Reviewed by: gjb
MFC after: 3 days
19:03:06 - r325861
(3 days 9 hours ago)
by manu
Affects:  /head/release/arm/RPI-B.conf
release: Update u-boot and firmware file for RPI-B target

THe u-boot port for RPI-B was updated to use u-boot-master, this cause
an update in u-boot version to v2017.09 and changing the filename.
The various firmware files for the RPI* are now in a common ports
sysutils/rpi-firmware as they are shared on all the RPI version.

Update the release files to copy the right files from the right location.

Reviewed by: gjb
MFC after: 3 days
18:40:40 - r325860
(3 days 10 hours ago)
by emaste
Affects:  /head/sbin/newfs/newfs.c
newfs: warn if newer than kernel

Creating a UFS filesystem with a newfs newer than the running kernel,
and then mounting that filesystem, can lead to interesting failures.

Add a safety belt to explicitly warn when newfs is newer than the
running kernel.

Reviewed by: gjb, jhb, mckusick
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D12765
18:03:31 - r325859
(3 days 10 hours ago)
by emaste
Affects:  /head/Makefile.inc1
Sort pkgbase mtree metadata, for reproducible builds

Packaged base packages are created by running the stageworld and
stagekernel targets with -DNO_ROOT, and converting the resulting mtree
file into a set of pkg plists. If stage* is run with multiple processes
the order of entries in the mtree file may be nondeterministic, and the
resulting package tbz also had nondeterministic file ordering.

The mtree file generated by -DNO_ROOT builds consists of one line per
file, with the filename starting in the first column, so is easily
sorted. There's one exception: the first line of the mtree file is a
comment, but the # character sorts before the filenames anyhow and needs
no special treatment.

PR: 223673
Reviewed by: bapt, gjb
Sponsored by: The Linux Foundation, Core Infrastructure Initiative
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D13103
15:56:08 - r325858
(3 days 12 hours ago)
by ed
Affects: 
(27 files)
/stable/11/sys/compat/*
/stable/11/sys/contrib/cloudabi/*
/stable/11/usr.bin/truss/syscalls.c
MFC r324727 and r325555:

  Import the latest CloudABI definitions, version 0.16.

  The most important change in this release is the removal of the
  poll_fd() system call; CloudABI's equivalent of kevent(). Though I think
  that kqueue is a lot saner than many of its alternatives, our
  experience is that emulating this system call on other systems
  accurately isn't easy. It has become a complex API, even though I'm not
  convinced this complexity is needed. This is why we've decided to take a
  different approach, by looking one layer up.

  We're currently adding an event loop to CloudABI's C library that is API
  compatible with libuv (except when incompatible with Capsicum).
  Initially, this event loop will be built on top of plain inefficient
  poll() calls. Only after this is finished, we'll work our way backwards
  and design a new set of system calls to optimize it.

  Interesting challenges will include integrating asynchronous I/O into
  such a system call API. libuv currently doesn't aio(4) on Linux/BSD, due
  to it being unreliable and having undesired semantics.

  Upgrade to CloudABI v0.17.

  Compared to the previous version, v0.16, there are a couple of minor
  changes:

  - CLOUDABI_AT_PID: Process identifiers for CloudABI processes.

  Initially, BSD process identifiers weren't exposed inside the runtime,
  due to them being pretty much useless inside of a cluster computing
  environment. When jobs are scheduled across systems, the BSD process
  number doesn't act as an identifier. Even on individual systems they
  may recycle relatively quickly.

  With this change, the kernel will now generate a UUIDv4 when executing
  a process. These UUIDs can be obtained within the process using
  program_getpid(). Right now, FreeBSD will not attempt to store this
  value. This should of course happen at some point in time, so that it
  may be printed by administration tools.

  - Removal of some unused structure members for polling.

  With the polling framework being simplified/redesigned, it turns out
  some of the structure fields were not used by the C library. We can
  remove these to keep things nice and tidy.
15:52:06 - r325857
(3 days 12 hours ago)
by asomers
Affects:  /head/sys/cam/cam_xpt.c
Remove a double free(9) in xpt_bus_register

In xpt_bus_register(), remove superfluous call to free(). This was mostly
benign since free(9) checks for NULL before doing anything, and
xpt_create_path() is nice enough to NULL out the pointer on failure.
However, it could've segfaulted if malloc(9) failed during
xpt_create_path().

Submitted by: gibbs
MFC after: 3 weeks
Sponsored by: Spectra Logic Corp
15:24:28 - r325856
(3 days 13 hours ago)
by jhb
Affects: 
(2 files)
/stable/11/contrib/elftoolchain/readelf/readelf.c
MFC 323588: Recognize NT_PTLWPINFO and NT_ARM_VFP in FreeBSD ELF cores.
15:02:45 - r325855
(3 days 13 hours ago)
by imp
Affects:  /head/share/man/man7/arch.7
Replace Fx's with 'the' since expanding FreeBSD here didn't seem quite
right.

Sponsored by: Netflix
15:00:03 - r325854
(3 days 13 hours ago)
by imp
Affects:  /head/share/man/man7/arch.7
Reword a bit for clarity.

Sponsored by: Netflix
14:35:42 - r325853
(3 days 14 hours ago)
by kib
Affects: 
(2 files)
/stable/11/sys/i386/i386/machdep.c
MFC r325553:
Remove useless DEBUG printfs in i386 sendsig() implementations.
13:41:03 - r325852
(3 days 15 hours ago)
by kib
Affects:  /head/sys/sys/param.h
/head/sys/sys/vmmeter.h
/head/sys/vm/vm_meter.c
vmtotal: extend memory counters to accomodate for current and future
hardware sizes.

32bit counters already overflow on approachable virtual memory page
counts, and soon would overflow on the physical pages counts as well.
Bump sizes to 64bit types. Bump __FreeBSD_version.

It is impossible to provide perfect backward ABI compat for this
change. If a program requests an old structure, it can be detected by
size. But if it queries the size first by passing NULL old req
pointer, there is almost nothing we can do to detect the desired ABI.
As a partial solution, check p_osrel of the quering process when
selecting the size to report.

Submitted by: Pawel Biernacki <pawel.biernacki@gmail.com>
Differential revision: https://reviews.freebsd.org/D13018
12:48:36 - r325851
(3 days 15 hours ago)
by bapt
Affects:  /head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c
remove the poor emulation of the IllumOS needfree global variable to prevent
the ARC reclaim thread running longer than needed.

Update the arc::needfree dtrace probe triggered in arc_lowmem() to also report
the value we may want to free.

Submitted by: Nikita Kozlov <nikita.kozlov at blade-group.com>
Reviewed by: avg
Approved by: avg
MFC after: 3 weeks
Sponsored by: blade
Differential Revision: https://reviews.freebsd.org/D12163
12:27:02 - r325850
(3 days 16 hours ago)
by kp
Affects:  /head/sbin/pfctl/parse.y
pfctl: teach route-to to deal with interfaces with multiple addresses

The route_host parsing code set the interface name, but only for the first
node_host in the list. If that one happened to be the inet6 address and the
rule wanted an inet address it'd get removed by remove_invalid_hosts() later
on, and we'd have no interface name.

We must set the interface name for all node_host entries in the list, not just
the first one.

PR: 223208
MFC after: 2 weeks
12:23:01 - r325849
(3 days 16 hours ago)
by bapt
Affects: 
(2 files)
/stable/10/share/misc/pci_vendors
MFC r325737:

Update to 2017.10.21
12:22:56 - r325848
(3 days 16 hours ago)
by bapt
Affects: 
(2 files)
/stable/11/share/misc/pci_vendors
MFC r325737:

Update to 2017.10.21
12:21:06 - r325847
(3 days 16 hours ago)
by bapt
Affects: 
(2 files)
/stable/10/usr.bin/rctl/rctl.c
MFC r325717:

Remove __unused attributed on arguments that are actually used
12:20:53 - r325846
(3 days 16 hours ago)
by bapt
Affects: 
(2 files)
/stable/11/usr.bin/rctl/rctl.c
MFC r325717:

Remove __unused attributed on arguments that are actually used
12:19:11 - r325845
(3 days 16 hours ago)
by bapt
Affects: 
(2 files)
/stable/10/lib/libutil/hexdump.3
MFC r325716:

Fix some nroff style issue
12:17:51 - r325844
(3 days 16 hours ago)
by bapt
Affects: 
(2 files)
/stable/11/lib/libutil/hexdump.3
MFC r325716:

Fix some nroff style issue
11:35:02 - r325843
(3 days 17 hours ago)
by hselasky
Affects:  /projects/bsd_rdma_4_9/sys/contrib/rdma/krping/krping.c
Add full support for specifying IPv6 addresses to krping.

Sponsored by: Mellanox Technologies
11:28:11 - r325842
(3 days 17 hours ago)
by hselasky
Affects: 
(250 files)
/projects/bsd_rdma_4_9/*
Merge ^/head r325663 through r325841.
11:14:39 - r325841
(3 days 17 hours ago)
by hselasky
Affects: 
(50 files)
/head/sys/conf/files
/head/sys/dev/mlx4/*
/head/sys/modules/mlx4/Makefile
Update the mlx4 core and mlx4en(4) modules towards Linux v4.9.

Background:
The coming ibcore update forces an update of mlx4ib(4) which in turn requires
an updated mlx4 core module. This also affects the mlx4en(4) module because
commonly used APIs are updated. This commit is a middle step updating the
mlx4 modules towards the new ibcore.

This change contains no major new features.

Changes in mlx4:
  a) Improved error handling when mlx4 PCI devices are
  detached inside VMs.
  b) Major update of codebase towards Linux 4.9.

Changes in mlx4ib(4):
  a) Minimal changes needed in order to compile using the
  updated mlx4 core APIs.

Changes in mlx4en(4):
  a) Update flow steering code in mlx4en to use new APIs for
  registering MAC addresses and IP addresses.
  b) Update all statistics counters to be 64-bit.
  c) Minimal changes needed in order to compile using the
  updated mlx4 core APIs.

Sponsored by: Mellanox Technologies
MFC after: 1 week
06:45:33 - r325840
(3 days 22 hours ago)
by wma
Affects:  /head/sys/dev/cxgbe/adapter.h
CXGBE: fix big-endian behaviour

The setbit/clearbit pair casts the bitfield pointer
to uint8_t* which effectively treats its contents as
little-endian variable. The ffs() function accepts int as
the parameter, which is big-endian. Use uint8_t here to
avoid mismatch, as we have only 4 doorbells.

Submitted by: Wojciech Macek <wma@freebsd.org>
Reviewed by: np
Obtained from: Semihalf
Sponsored by: QCM Technologies
Differential revision: https://reviews.freebsd.org/D13084
03:46:59 - r325839
(4 days ago)
by imp
Affects:  /head/sys/dts/Makefile.inc
Fix SYSDIR path. After the move, we need to chop off a couple ../ from
the prior definition. But a safer definition is SRCTOP/sys, so use
that.

Sponsored by: Netflix
02:24:47 - r325838
(4 days 2 hours ago)
by imp
Affects:  /head/sys/dev/nvme/nvme_sim.c
/head/sys/dev/pci/pci.c
/head/sys/dev/pci/pcivar.h
Inline pcie_link_{status,caps} where needed. Remove them as they
aren't really needed and I don't want to document them.

Suggested by: jhb@
Sponsored by: Netflix
02:03:38 - r325837
(4 days 2 hours ago)
by jhb
Affects: 
(4 files)
/stable/11/sys/arm/arm/elf_machdep.c
/stable/11/sys/sys/elf_common.h
/stable/11/usr.bin/gcore/elfcore.c
MFC 323584: Add a NT_ARM_VFP ELF core note to hold VFP registers for each
thread.

The core note matches the format and layout of NT_ARM_VFP on Linux.
Debuggers use the AT_HWCAP flags to determine how many VFP registers
are actually used and their format.
00:06:18 - r325836
(4 days 4 hours ago)
by imp
Affects:  /head/share/man/man7/arch.7
Add note about where to use MACHINE (just src/stand and src/sys and a
few others). Add note aboute MACHINE_CPUARCH.

Sponsored by: Netflix
2017 - 11 - 14   (5 days ago)
23:50:30 - r325835
(4 days 4 hours ago)
by jhb
Affects:  /head/sys/sys/aio.h
/head/sys/sys/shm.h
Use #if instead of #ifdef for __BSD_VISIBLE tests.

__BSD_VISIBLE is always defined and it's value instead needs to be
tested via #if to determine if FreeBSD-specific APIs should be
exposed.

PR: 196226, 223481 (exp-run)
Submitted by: pluknet
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D12977
23:02:19 - r325834
(4 days 5 hours ago)
by imp
Affects: 
(37 files)
/head/*
Move sys/boot to stand. Fix all references to new location

Sponsored by: Netflix
22:30:48 - r325833
(4 days 6 hours ago)
by asomers
Affects:  /projects/zfsd/head/tests/sys/cddl/zfs/tests/hotspare/hotspare_import_001_pos.ksh
Fix intermittency in hotspare_import_001_pos

tests/sys/cddl/zfs/tests/hotspare/hotspare_import_001_pos.ksh
  This test would occasionally fail because "zpool export" returns
  EBUSY. That's not unexpected since it immediately follows "zpool
  replace" and ZFS allows only one configuration change per
  transaction group. Usually a txg will close as soon as resilvering
  finishes, but sometimes "zpool export" sneaks in first. To fix the
  problem, allow up to one retry of "zpool export"

Sponsored by: Spectra Logic Corp
22:22:50 - r325832
(4 days 6 hours ago)
by asomers
Affects:  /projects/zfsd/head/tests/sys/cddl/zfs/tests/online_offline/cleanup.ksh
/projects/zfsd/head/tests/sys/cddl/zfs/tests/online_offline/online_offline_001_pos.ksh
/projects/zfsd/head/tests/sys/cddl/zfs/tests/online_offline/online_offline_002_neg.ksh
Actually run reap_children during online_offline's cleanup

tests/sys/cddl/zfs/tests/online_offline/cleanup.ksh
tests/sys/cddl/zfs/tests/online_offline/online_offline_001_pos.ksh
tests/sys/cddl/zfs/tests/online_offline/online_offline_002_neg.ksh
  It seems that reap_children was intended to run during cleanup, but
  the onexit hook was never set. So I just moved it to the
  cleanup.ksh script, because all test cases in this directory need
  it.

Sponsored by: Spectra Logic Corp
22:18:13 - r325831
(4 days 6 hours ago)
by jhb
Affects: 
(7 files)
/stable/11/lib/libc/sys/ptrace.2
/stable/11/sys/arm/*
/stable/11/sys/conf/files.arm
MFC 323581,323582,323583: Add ptrace operations for VFP registers.

323581:
Only mess with VFP state on the CPU for curthread for get/set_vfpcontext.

Future changes will use these functions to fetch and store VFP state for
threads other than curthread.

323582:
Add ptrace operations to fetch and store VFP registers.

323583:
Export get/set_vfpcontext from machdep.c.

Should have been part of the previous commit to add ptrace operations
for VFP registers.
22:17:02 - r325830
(4 days 6 hours ago)
by asomers
Affects:  /projects/zfsd/head/tests/sys/cddl/zfs/tests/online_offline/cleanup.ksh
Fix cleanup of the online_offline tests

tests/sys/cddl/zfs/tests/online_offline/cleanup.ksh
  During cleanup, wipe the ZFS labels on all $DISKS

Sponsored by: Spectra Logic Corp
21:31:30 - r325829
(4 days 7 hours ago)
by benno
Affects:  /head/ObsoleteFiles.inc
Add fortune datfiles that are no longer distributed.

MFC after: 2 days
21:18:30 - r325828
(4 days 7 hours ago)
by benno
Affects: 
(13 files)
/head/usr.bin/fortune/datfiles/*
Remove all fortune datfiles except freebsd-tips.

Humour is a funny thing. What is funny to one person is not funny to all
people. What is insightful to one person is similarly not universal. The
fortune datfiles have been around a long time and have undoubtedly amused
people but it's time to acknowledge their subjective, and in some cases
at least potentially offensive, nature and stop distributing them with the
imprimatur of the FreeBSD project.

If anyone wishes to distribute these via other mechanisms they are welcome to
check them out of history and do so.

MFC after: 2 days
21:11:55 - r325827
(4 days 7 hours ago)
by asomers
Affects:  /head/tests/sys/aio/lio_kqueue_test.c
Fix build on arm after r325817

Reported by: rpokala
MFC after: 3 weeks
X-MFC-With: 325817
Sponsored by: Spectra Logic Corp
21:03:57 - r325826
(4 days 7 hours ago)
by imp
Affects: 
(243 files)
/head/share/man/man4/*
/head/sys/*
Move sys/boot/fdt/dts to sys/dts and adjust scripts.

Sponsored by: Netflix
18:18:18 - r325825
(4 days 10 hours ago)
by emaste
Affects:  /head/sys/kern/kern_time.c
disallow clock_settime too far in the future to avoid panic

clock_ts_to_ct has a KASSERT that the converted year fits into four
digits. By default (sysctl debug.allow_insane_settime is 0) the kernel
disallows a time too far in the future, using a value of 9999 366-day
years. However, clock_settime is epoch-relative and the assertion will
fail with a tv_sec corresponding to some 8030 years.

Avoid trying to be too clever, and just use a limit of 8000 365-day
years past the epoch.

Submitted by: Heqing Yan <scottieyan@gmail.com>
Reported by: Syzkaller (https://github.com/google/syzkaller)
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
18:17:23 - r325824
(4 days 10 hours ago)
by trasz
Affects: 
(2 files)
/stable/11/sys/geom/mountver/g_mountver.c
MFC r325009:

Make gmountver(8) use direct dispatch.

MFC r325101:

Add back missing MTX_DEF, it still needs to be there.

(Although it's defined to be 0, so there's no functional change.)
18:13:30 - r325823
(4 days 10 hours ago)
by trasz
Affects: 
(2 files)
/stable/11/sys/geom/mountver/g_mountver.c
MFC r213931:

Make gmountver(8) use G_PF_ACCEPT_UNMAPPED.
18:07:51 - r325822
(4 days 10 hours ago)
by trasz
Affects: 
(4 files)
/stable/11/lib/libc/gen/sysctl.3
/stable/11/sys/vm/swap_pager.c
/stable/11/sys/vm/vm_param.h
MFC r324857:

Add OID for the vm.overcommit sysctl. This makes it possible to remove
one call to sysctl(2) from jemalloc startup code. (That also requires
changes to jemalloc, but I plan to push those to upstream first.)
18:01:48 - r325821
(4 days 10 hours ago)
by trasz
Affects: 
(3 files)
/stable/11/bin/ps/keyword.c
/stable/11/bin/ps/ps.1
MFC r324427:

Document "tdnam" keyword to ps(1), and add "tdname" alias.

MFC r324429:

Fix long name (used by libxo) for the "tdnam" ps(1) keyword.

MFC r324430:

Undocument "tdnam" (leaving it as an alias), and rename the column
to TDNAME.
17:57:48 - r325820
(4 days 10 hours ago)
by trasz
Affects: 
(2 files)
/stable/11/bin/ps/ps.c
MFC r324367:

Fix kvm_getprocs(3) error reporting in ps(1).

Previously it just didn't work at all - kvm_getprocs(3) doesn't update
the &nentries when it returns NULL. The end result was that ps(1) showed
garbage data instead of reporting kinfo_proc size mismatch.
17:56:32 - r325819
(4 days 10 hours ago)
by trasz
Affects: 
(3 files)
/stable/11/sys/geom/mountver/g_mountver.c
/stable/11/sys/geom/mountver/g_mountver.h
MFC r324276:

Don't destroy gmountver(8) devices on shutdown, unless they are orphaned.
Otherwise we would fail to sync the filesystem on reboot.
17:54:00 - r325818
(4 days 10 hours ago)
by trasz
Affects: 
(2 files)
/stable/11/sys/geom/geom_subr.c
MFC r324199:

Clear G_CF_ORPHAN when attaching. This fixes cases where the same
GEOM consumer can be orphaned, and then reattach to another provider.

From a user point of view, this makes gmountver(4) work again.
17:46:37 - r325817
(4 days 10 hours ago)
by asomers
Affects:  /head/tests/sys/aio/aio_kqueue_test.c
/head/tests/sys/aio/lio_kqueue_test.c
AIO tests: increase limits

tests/sys/aio/aio_kqueue_test.c
  Instead of using a hard-coded queue depth, use
  vfs.aio.max_aio_queue_per_proc

tests/sys/aio/lio_kqueue_test.c
  The old, small limit on lio_listio's operation count was lifted by
  change 324941. Raise the operation count as high as possible without
  exceeding the process's operation limit.

MFC after: 3 weeks
Sponsored by: Spectra Logic Corp
17:16:03 - r325816
(4 days 11 hours ago)
by jhb
Affects:  /head/libexec/rtld-elf/mips/rtld_start.S
Appease old GCC by disabling .cfi_sections for GCC 4.x.
17:05:34 - r325815
(4 days 11 hours ago)
by trasz
Affects: 
(5 files)
/stable/11/etc/root/*
/stable/11/share/skel/*
MFC r320672:

Cosmetic tweaks to the default shell rc files, mostly comments.

MFC r320678:

Fix typo introduced in r320672 - check for existence of the right file.
17:03:56 - r325814
(4 days 11 hours ago)
by trasz
Affects: 
(5 files)
/stable/11/etc/root/*
/stable/11/share/skel/*
MFC r320672:

Run "resizewin -z" from the default shell profile files. This makes
the terminal work properly out of the box when logging over a serial
line, which is quite important for the user experience on boards like
Raspberry Pi. It doesn't affect cases where the terminal size is
already non-zero, such as SSH or vt(4) sessions.

Note that this doesn't handle a scenario pointed out by rgrimes@:
when the terminal is resized after login, the terminal size won't
get updated even after logging out and back in.
16:47:05 - r325813
(4 days 11 hours ago)
by bz
Affects:  /head/sys/dev/vnic/nicvf_queues.c
Unbreak IPv6.

No longer return ENXIO when trying to send an IPv6 packet in
nicvf_sq_add_hdr_subdesc().
Restructure the code so that the upper layer protocol parts are
agnostic of the L3 protocol (and no longer specific to IPv4).
With this basic IPv6 packets go through. We are still seeing
weird behaviour which needs further diagnosis.

PR: 223669
In collaboration with: emaste
MFC after: 3 days
16:32:40 - r325812
(4 days 12 hours ago)
by asomers
Affects:  /head/etc/devd.conf
devd.conf: add mps and mpr to the scsi controllers regex

MFC after: 3 weeks
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D12744
16:31:11 - r325811
(4 days 12 hours ago)
by emaste
Affects:  /head/sys/dev/vnic/nicvf_main.c
vnic: report that the driver supports multicast

The driver is currently hardcoded to force promiscuous mode, so all of
the MAC filtering code is presently unused and multicast should "just
work." Report to the higher layers that multicast is supported.

PR: 223573
Reported by: bz
Sponsored by: The FreeBSD Foundation, Packet.net (hardware)
16:03:07 - r325810
(4 days 12 hours ago)
by jhb
Affects: 
(15 files)
/stable/11/sys/*
MFC 323580,323933,323934,324814,324817: Enable AT_HWCAP on arm.

I reused the SV_HWCAP stub to cover the sv_hwcap2 field as well.

323580:
Add AT_HWCAP flags for VFP settings for FreeBSD/arm.

These flags match the meaning and value of flags in Linux, though
Linux has many more flags.

323933:
Correct HWCAP_VFP3* values to match Linux.

323934:
Detect NEON and set HWCAP_NEON if present.

324814:
Add AT_HWCAP2 ELF auxiliary vector.
 - allocate value for new AT_HWCAP2 auxiliary vector on all platforms.
 - expand 'struct sysentvec' by new 'u_long *sv_hwcap2', in exactly
  same way as for AT_HWCAP.

324817:
Fullify implementation of AT_HWCAP and AT_HWCAP2 for ARMv6,7.
This makes elf_aux_info(3) useable for ARM ports.

Tested by: mmel
16:00:21 - r325809
(4 days 12 hours ago)
by trasz
Affects: 
(2 files)
/stable/11/sys/cam/ctl/ctl_frontend_iscsi.c
MFC r324261:

Fix iSCSI target panics on concurrent session teardown and display
(eg removing a target and doing "ctladm islist -v" at the same time).
15:07:34 - r325808
(4 days 13 hours ago)
by gjb
Affects: 
(2 files)
/stable/11/Makefile.inc1
MFC r322401:
 Avoid creating kernel-dbg.txz distribution sets and kernel-debug
 packages when MK_DEBUG_FILES is 'no'.

Differential Revision: https://reviews.freebsd.org/D12544 (related)
Sponsored by: The FreeBSD Foundation
14:51:37 - r325807
(4 days 13 hours ago)
by hselasky
Affects:  /head/sys/dev/mlx5/mlx5_ib/mlx5_ib_qp.c
/head/sys/ofed/drivers/infiniband/hw/mthca/mthca_qp.c
/head/sys/ofed/include/rdma/ib_verbs.h
Make sure the ib_wr_opcode enum is signed by adding a negative dummy element.
Different compilers may optimise the enum type in different ways. This ensures
coherency when range checking the value of enums in ibcore.

Sponsored by: Mellanox Technologies
MFC after: 1 week
14:43:35 - r325806
(4 days 14 hours ago)
by hselasky
Affects:  /head/sys/ofed/drivers/infiniband/core/cma.c
Make sure a valid VNET is set before trying to access the V_ip6_v6only
variable. Access the variable directly instead of going through the sysctl()
interface in the kernel.

Sponsored by: Mellanox Technologies
MFC after: 1 week
14:39:37 - r325805
(4 days 14 hours ago)
by hselasky
Affects:  /head/sys/contrib/rdma/krping/krping.c
Set the default VNET in krping before calling ifunit_ref(). Else using IPv6
link-local addresses when VIMAGE is enabled will cause a so-called NULL
pointer dereferencing issue.

Sponsored by: Mellanox Technologies
MFC after: 1 week
14:31:02 - r325804
(4 days 14 hours ago)
by gjb
Affects:  /head/release/arm64/PINE64.conf
Correct the path to the md(4)-backed UFS filesystem for pine64
images.

Boot-tested by: lidl
Sponsored by: The FreeBSD Foundation
11:02:46 - r325803
(4 days 17 hours ago)
by eugen
Affects:  /stable/10/etc/network.subr
Fix breakage in r325799 that removed a bit of code by my mistake.

Approved by: avg (mentor)
10:49:07 - r325802
(4 days 17 hours ago)
by des
Affects: 
(2 files)
/stable/10/lib/libpam/modules/pam_unix/pam_unix.c
MFH (r325010): don't bother verifying a password that we know is too long.

Reported by: jkim@
Security: CVE-2016-6210
10:48:30 - r325801
(4 days 17 hours ago)
by des
Affects: 
(2 files)
/stable/11/lib/libpam/modules/pam_unix/pam_unix.c
MFH (r325010): don't bother verifying a password that we know is too long.

Reported by: jkim@
Security: CVE-2016-6210
10:15:17 - r325800
(4 days 18 hours ago)
by des
Affects:  /head/bin/freebsd-version/freebsd-version.1
/head/bin/freebsd-version/freebsd-version.sh.in
Add a -r option to print the running kernel version.

MFC after: 1 week
09:31:56 - r325799
(4 days 19 hours ago)
by eugen
Affects: 
(3 files)
/stable/10/etc/network.subr
/stable/10/share/man/man5/rc.conf.5
MFC r325559: ifconfig_<interface>_descr

Add suitable knob ifconfig_<interface>_descr for static interface description.
Document availability of interface descriptions within rc.conf(5).

Approved by: avg (mentor)
09:29:02 - r325798
(4 days 19 hours ago)
by eugen
Affects: 
(3 files)
/stable/11/etc/network.subr
/stable/11/share/man/man5/rc.conf.5
MFC r325559: ifconfig_<interface>_descr

Add suitable knob ifconfig_<interface>_descr for static interface description.
Document availability of interface descriptions within rc.conf(5).

Approved by: avg (mentor)
07:04:06 - r325797
(4 days 21 hours ago)
by np
Affects:  /projects/bsd_rdma_4_9/sys/dev/cxgbe/common/common.h
/projects/bsd_rdma_4_9/sys/dev/cxgbe/iw_cxgbe/provider.c
Fix iw_cxgbe build in the projects branch.

Submitted by: Krishnamraju Eraparaju @ Chelsio
05:05:26 - r325796
(4 days 23 hours ago)
by imp
Affects:  /head/sys/cam/nvme/nvme_all.c
/head/sys/cam/nvme/nvme_all.h
/head/sys/cam/nvme/nvme_xpt.c
Properly decode NVMe state of the drive and print out the information
in the attach to more closely match what SCSI and ATA attached
storage provides.

Sponsored by: Netflix
05:05:21 - r325795
(4 days 23 hours ago)
by imp
Affects:  /head/sys/modules/nvme/Makefile
Belatedly add opt_nvme.h to fix building nvme.ko outside of a kernel
build.

Sponsored by: Netflix
05:05:16 - r325794
(4 days 23 hours ago)
by imp
Affects: 
(5 files)
/head/sys/cam/cam_ccb.h
/head/sys/cam/nvme/*
/head/sys/dev/nvme/*
Provide link speed data in XPT_GET_TRAN_SETTINGS. Provide full version
information for that and XPT_PATH_INQ. Provide macros to encode/decode
major/minor versions. Read the link speed and lane count to compute
the base_transfer_speed for XPT_PATH_INQ.

Sponsored by: Netflix
05:05:05 - r325793
(4 days 23 hours ago)
by imp
Affects:  /head/sys/dev/pci/pci.c
/head/sys/dev/pci/pcivar.h
Provide pcie_link_status and pcie_link_cap convenience functions.

Sponsored by: Netflix
05:03:38 - r325792
(4 days 23 hours ago)
by imp
Affects: 
(4 files)
/head/*
Move zstd from contrib to sys/contrib so it can be used in the
kernel. Adjust the Makefiles that referenced it to the new path.

Sponsored by: Netflix
OK'd by: cem@ and AllanJude@
03:53:15 - r325791
(5 days ago)
by jhibbits
Affects:  /head/sys/powerpc/mpc85xx/pci_mpc85xx_pcib.c
Expand the Freescale PCIe root complex driver with the ofw_pcib_pci

The interrupt map wasn't being allocated properly, preventing IRQs from being
allocated to children of the PCIe bus. Fix this by cloning the ofw_pcib_pci
code, which handles all cases -- device tree and probed.

In the future this may become a subclass of the ofw_pcib_pci driver, but as
that's not an exported class, it's cloned for now.

MFC after: 3 weeks
03:23:46 - r325790
(5 days 1 hour ago)
by jhibbits
Affects:  /head/sys/mips/beri/beri_machdep.c
Convert BERI to use ofw_parse_bootargs()

Summary:
ofw_parse_bootargs() was added in r306065 as an attempt to unify the
various copies of the same code. This simply migrates BERI to use it.

Reviewed By: brooks
Differential Revision: https://reviews.freebsd.org/D12962
03:21:39 - r325789
(5 days 1 hour ago)
by jhibbits
Affects:  /head/sys/contrib/octeon-sdk/cvmx-app-init.h
/head/sys/contrib/octeon-sdk/cvmx-helper-board.c
Use the correct board name for the Ubiquiti Unifi Security Gateway
02:30:21 - r325788
(5 days 2 hours ago)
by tuexen
Affects:  /head/sys/netinet/sctp_input.c
Simply the code and use the full buffer for contigous chunk representation.

MFC after: 1 week
01:57:54 - r325787
(5 days 2 hours ago)
by kevlo
Affects:  /head/sys/dev/usb/net/if_ure.c
/head/sys/dev/usb/quirk/usb_quirk.c
Add TP-LINK UE300.

Submitted by: Kris G <netsick@gmail.com>
01:48:24 - r325786
(5 days 2 hours ago)
by brd
Affects:  /head/etc/Makefile
Remove an unused variable.

Approved by: bdrewery
00:29:14 - r325785
(5 days 4 hours ago)
by imp
Affects:  /head/sys/kern/kern_shutdown.c
/head/tools/tools/sysdoc/tunables.mdoc
Add two new tunables / sysctls to controll reboot after panic:

kern.poweroff_on_panic which, when enabled, instructs a system to
power off on a panic instead of a reboot.

kern.powercyle_on_panic which, when enabled, instructs a system to
power cycle, if possible, on a panic instead of a reboot.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D13042
2017 - 11 - 13   (6 days ago)
23:33:07 - r325784
(5 days 5 hours ago)
by jeff
Affects: 
(4 files)
/user/jeff/numa/sys/kern/*
/user/jeff/numa/sys/vm/*
Use a soft limit for kmem implemented within uma. Part of r325754
23:21:17 - r325783
(5 days 5 hours ago)
by jamie
Affects: 
(4 files)
/stable/10/sys/kern/uipc_mqueue.c
/stable/10/sys/kern/uipc_sem.c
/stable/10/sys/kern/uipc_shm.c
MFC r297935:

  Separate POSIX sem/shm objects in jails, by prepending the jail's path
  name to the object's "path". While the objects don't have real path
  names, it's a filesystem-like namespace, which allows jails to be
  kept to their own space, but still allows the system / jail parent to
  access a jail's IPC.

MFC r297936:

  Separate POSIX mqueue objects in jails; actually, separate them by the
  jail's root, so jails that don't have their own filesystem directory
  also won't have their own mqueue namespace.

MFC r297976:

  Clean up some style(9) violations.

MFC r298567:

  Use the new PR_METHOD_REMOVE to clean up jail handling in POSIX
  message queues.

PR: 208082
Submitted by: delphij
22:16:47 - r325782
(5 days 6 hours ago)
by glebius
Affects:  /head/sys/netinet/tcp_output.c
Style r320614: don't initialize at declaration, new line after declarations,
shorten variable name to avoid extra long lines.
No functional changes.
21:55:34 - r325781
(5 days 6 hours ago)
by feld
Affects:  /head/usr.bin/fortune/datfiles/fortunes
Remove fortune quotes attributed to or providing admiration of Adolf Hitler

MFC after: 1 week
21:25:57 - r325780
(5 days 7 hours ago)
by imp
Affects:  /head/sys/boot/forth/loader.conf
Don't add /boot/dt*s* but /boot/dt*b*. Stupid think-o. /boot/dtb was
what was tested...
21:23:26 - r325779
(5 days 7 hours ago)
by imp
Affects:  /head/sys/boot/forth/loader.conf
Add /boot/dts to the list of default modules. The minimal arm and mips
loader.conf for uboot have this in the list, but the default one
didn't. Since there's no harm and it's a failsafe, add it to the list.

Sponsored by: Netflix
21:22:33 - r325778
(5 days 7 hours ago)
by jhb
Affects:  /head/sys/kern/sys_process.c
Move loop to clear TDB_SUSPEND into PT_DETACH case.

The PT_DETACH case above the sendsig: label already looped over all
threads clearing flags in td_dbgflags. Reuse this loop to clear
TDB_SUSPEND and move the logic out of the sendsig: block.
21:09:08 - r325777
(5 days 7 hours ago)
by jhb
Affects:  /head/sys/kern/sys_process.c
Pull the PT_ATTACH case out of the 'sendsig:' block.

Most of the conditionals in the 'sendsig:' block are now only different
for PT_ATTACH vs other continue requests. Pull the PT_ATTACH-specific
logic up into the PT_ATTACH case and simplify the 'sendsig:' block. This
also permits moving the unlock of proctree_lock above the sendsig: label
since PT_KILL doesn't hold the lock and and the other cases all fall
through to the label.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D13073
20:49:08 - r325776
(5 days 7 hours ago)
by bdrewery
Affects:  /head/Makefile
/head/sys/conf/makeLINT.mk
Rework r325568 so all 'make LINT' targets work.

Reported by: ngie
Sponsored by: Dell EMC Isilon
20:39:43 - r325775
(5 days 8 hours ago)
by imp
Affects: 
(4 files)
/head/sys/boot/arm/loader/loader.conf
/head/sys/boot/arm/uboot/loader.conf
/head/sys/boot/forth/Makefile
Add loader.conf to the list of files that are MD.

loader.conf is also different between machines. On arm it's a minimal
one that's not quite compatible with the default one. On arm it's
minimal for speed, which is good, but there's also extra things in it
relative to the default on which break loading FDT which is bad. This
doesn't address that issue, but instead ensures the minimal one for
arm is used.

A similar issue for mips exists, but since we can have a beri variant
of /boot/loader and a uboot variant, I'm leaving that mess alone for
the moment.

Sponsored by: Netflix
20:16:33 - r325774
(5 days 8 hours ago)
by manu
Affects:  /vendor/device-tree/4.14
Tag import of DTS 4.14
20:15:33 - r325773
(5 days 8 hours ago)
by manu
Affects: 
(1393 files)
/vendor/device-tree/dist/*
Update our copies of the Device Tree Source to Linux 4.14
20:07:08 - r325772
(5 days 8 hours ago)
by arichardson
Affects:  /head/Makefile.inc1
Only build the libmagic build-tools if MK_FILE != no

Before this patch libmagic was always built in the build-tools phase
even if -DWITHOUT_FILE was specified.

Reviewed by: emaste, jhb
Approved by: jhb (mentor)
Differential Revision: https://reviews.freebsd.org/D12925
19:58:58 - r325771
(5 days 8 hours ago)
by jhb
Affects:  /head/sys/kern/sys_process.c
Only clear a pending thread event if one is pending.

This fixes a panic when attaching to an already-stopped process after
r325028. While here, clean up a few other things in the control flow
of the 'sendsig' section:
- Only check for P_STOPPED_TRACE rather than either of P_STOPPED_SIG
  or P_STOPPED_TRACE for most ptrace requests. The signal handling
  code in kern_sig.c never sets just P_STOPPED_SIG for a traced
  process, so if P_STOPPED_SIG is stopped, P_STOPPED_TRACE should be
  set anyway. Remove a related debug printf. Assuming P_STOPPED_TRACE
  permits simplifications in the 'sendsig:' block.
- Move the block to clear the pending thread state up into a new
  block conditional on P_STOPPED_TRACE and handle delivering pending
  signals to the reporting thread and clearing the reporting thread's
  state in this block.
- Consolidate case to send a signal to the process in a single case
  for PT_ATTACH. The only case that could have been in the else before
  was a PT_ATTACH where P_STOPPED_SIG was not set, so both instances
  of kern_psignal() collapse down to just PT_ATTACH.

Reported by: pho, mmel
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D12837
19:44:33 - r325770
(5 days 9 hours ago)
by arichardson
Affects:  /head/share/mk/sys.mk
Remove -fuse-ld= when creating _LDFLAGS from LDFLAGS

The -fuse-ld flag is only meant to be passed to the compiler driver so
direct linker invocations should not include it.

Reviewed by: emaste, jhb
Approved by: jhb (mentor)
Differential Revision: https://reviews.freebsd.org/D12910
19:31:51 - r325769
(5 days 9 hours ago)
by gjb
Affects:  /head/release/Makefile.mirrors
/head/release/arm/GUMSTIX.conf
/head/release/release.sh
Update the GUMSTIX image build to use arm/arm TARGET/TARGET_ARCH.
Update the TARGET/TARGET_ARCH matching in release/release.sh and
release/Makefile.mirrors for simplification.

Discussed with: mmel
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
18:53:41 - r325768
(5 days 9 hours ago)
by manu
Affects:  /head/sys/arm/broadcom/bcm2835/bcm2835_cpufreq.c
arm: rpi2: Fix cpufreq(4)

Since r324184 the root node compatible for rpi2 is "brcm,bcm2836", add
it to the compatible list of bcm2835_cpufreq.

Tested On: RPI2 v1.1 RPI2 v1.2

Reported by: many on freebsd-arm@
18:16:26 - r325767
(5 days 10 hours ago)
by hselasky
Affects:  /head/sys/compat/linuxkpi/common/src/linux_compat.c
Properly handle the case where the linux_cdev_handle_insert() function
in the LinuxKPI returns NULL. This happens when the VM area's private
data handle already exists and could cause a so-called NULL pointer
dereferencing issue prior to this fix.

Found by: greg@unrelenting.technology
MFC after: 1 week
Sponsored by: Mellanox Technologies
17:46:38 - r325766
(5 days 10 hours ago)
by vangyzen
Affects:  /head/lib/libc/sys/_umtx_op.2
Fix formatting of _umtx_op(2)

Do not use macros in the -width of a .Bl, since mandoc does not support them.

Fix issues reported by igor and mandoc -Tlint.

Use a .Bl for list of clock IDs instead of a comma list.

MFC after: 3 days
Sponsored by: Dell EMC
17:04:44 - r325765
(5 days 11 hours ago)
by imp
Affects:  /head/lib/libc/string/memcpy.3
/head/lib/libc/string/strcat.3
/head/lib/libc/string/strcpy.3
Add notes about overlapping copies.

Add notes to each of these that specifically state that results are
undefined if the strings overlap. In the case of memcpy, we document
the overlapping behavior on FreeBSD (pre-existing). For str*, it is
left unspecified, however, since the default (and x86) implementations
do not handle overlapping strings properly.

PR: 223653
Sponsored by: Netflix
16:53:36 - r325764
(5 days 11 hours ago)
by vangyzen
Affects:  /head/sys/sys/umtx.h
Add __BEGIN_DECLS and __END_DECLS to <sys/umtx.h>

This allows C++ programs to call _umtx_op().

MFC after: 3 days
Sponsored by: Dell EMC
12:36:36 - r325763
(5 days 16 hours ago)
by hselasky
Affects: 
(9 files)
/projects/bsd_rdma_4_9/contrib/ofed/*
/projects/bsd_rdma_4_9/share/mk/*
Fix OFED library dependencies.

Sponsored by: Mellanox Technologies
11:36:22 - r325762
(5 days 17 hours ago)
by hselasky
Affects: 
(18 files)
/projects/bsd_rdma_4_9/contrib/ofed/*
Remove no longer needed TESTBUILD defines from OFED Makefiles.

Sponsored by: Mellanox Technologies
10:59:38 - r325761
(5 days 17 hours ago)
by hselasky
Affects: 
(12 files)
/projects/bsd_rdma_4_9/share/mk/*
/projects/bsd_rdma_4_9/sys/*
/projects/bsd_rdma_4_9/targets/pseudo/userland/lib/Makefile.depend
Remove no longer supported mthca driver.

Sponsored by: Mellanox Technologies
10:49:18 - r325760
(5 days 17 hours ago)
by hselasky
Affects: 
(17 files)
/projects/bsd_rdma_4_9/sys/conf/files
/projects/bsd_rdma_4_9/sys/dev/mlx4/mlx4_ib/*
/projects/bsd_rdma_4_9/sys/modules/mlx4ib/Makefile
Update mlx4ib(4) to Linux 4.9.

Sponsored by: Mellanox Technologies
10:45:31 - r325759
(5 days 18 hours ago)
by kib
Affects:  /head/sys/dev/hwpmc/hwpmc_logging.c
Do not leak PMC_PO_OWNS_LOGFILE on error.

Note that PMCLOG_RESERVE_WITH_ERROR() macro contains goto error;
statement and executed after the flag is set.

Reported and tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
10:43:31 - r325758
(5 days 18 hours ago)
by kib
Affects:  /head/sys/dev/hwpmc/hwpmc_logging.c
Style bug.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
09:10:17 - r325757
(5 days 19 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/dev/hwpmc/hwpmc_mod.c
MFC r325671:
Check that the pmc index is less than the number of hardware PMCs,
instead of asserting the condition.
09:07:30 - r325756
(5 days 19 hours ago)
by kib
Affects: 
(2 files)
/stable/11/sys/dev/hwpmc/hwpmc_mod.c
MFC r325671:
Check that the pmc index is less than the number of hardware PMCs,
instead of asserting the condition.
07:47:43 - r325755
(5 days 20 hours ago)
by delphij
Affects:  /head/sys/kern/kern_proc.c
Be more careful when doing calculation with request from userland.

MFC after: 2 weeks
03:41:50 - r325754
(6 days 1 hour ago)
by jeff
Affects: 
(10 files)
/user/jeff/numa/sys/kern/*
/user/jeff/numa/sys/sys/vmem.h
/user/jeff/numa/sys/vm/*
Eliminate kmem_arena to simplify the kmem_ api for forthcoming NUMA support
03:34:55 - r325753
(6 days 1 hour ago)
by jeff
Affects: 
(8 files)
/user/jeff/numa/sys/vm/*
Move NUMA policy iterators into the page allocator layer

https://reviews.freebsd.org/D13014
03:25:43 - r325752
(6 days 1 hour ago)
by jeff
Affects:  /user/jeff/numa
Make a staging branch for numa patches
03:24:57 - r325751
(6 days 1 hour ago)
by jeff
Affects:  /user/jeff
Make a directory for my projects
02:31:25 - r325750
(6 days 2 hours ago)
by pfg
Affects: 
(2 files)
/stable/10/sys/fs/ext2fs/ext2_alloc.c
MFC r324962 (by fsu@):

Set doreallocblks sysctl value to zero by default because of
possibility of filesystem corruption.

Fedor has found some weird behavior in his tests.
00:32:44 - r325749
(6 days 4 hours ago)
by imp
Affects:  /head/share/man/man7/arch.7
Document MACHINE, MACHINE_ARCH, CPUTYPE, TARGET and TARGET_ARCH
historical use and general philosphy.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D12981
00:30:38 - r325748
(6 days 4 hours ago)
by imp
Affects:  /head/sys/boot/userboot/test/test.c
Use proper include file. While <boot/userboot/userboot.h> works, it
only works because we have -Isys on the command line. We also have
-Isys/boot/userboot on the command line, so bring it in directly with
<userboot.h>. No functional change, but it removes one hard to see
dependency on the boot loader's location in sys/boot.

Sponsored by: Netflix

 


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

Page generated in 24 ms, 247 revisions printed. Current time is 2017-11-19 04:45:45. All times are in UTC/GMT.