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 - 01 - 20   (yesterday)
22:41:16 - r312560
(5 hours 33 minutes ago)
by avos
Affects:  /head/sbin/ifconfig/ifieee80211.c
ifconfig(8): fix '-stbc' parameter name.

MFC after: 5 days
21:40:04 - r312559
(6 hours 34 minutes ago)
by asomers
Affects:  /head/usr.sbin/camdd/camdd.c
Fix misc Coverity defects in camdd(8)

CID 1341620 Fix a small memory leak
CID 1341630 Though this is technically a false positive, rearrange the
  code for clarity.
CID 1341635 Eliminate dead code
CID 1368663 Fix a double mutex unlock in the error path

Also:
* Use sig_atomic_t for variables accessed from signal handlers
* Don't conditionalize free(3) on its argument being non-null

Reported by: Coverity
CID: 1341620 1341630 1341635 1368663
Reviewed by: ken
MFC after: 4 weeks
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D9237
21:21:41 - r312558
(6 hours 53 minutes ago)
by asomers
Affects: 
(4 files)
/head/sbin/camcontrol/*
Misc Coverity fixes in camcontrol(8)

CID 1229913 Fix output of "camcontrol persist -i report_capabilities".
  The reported Persistent Reservation Types were wrong in all
  cases.
CID 1356029 Annotate the code so Coverity will know that this is a false
  positive.
CID 1366830 Fix a memory leak in "camcontrol timestamp -s"
CID 1366832 Fix a segfault that could be caused by bad drive firmware

Also, fix the man page entry for the "camcontrol epc state" command to match
what the code does.

Reviewed by: ken, wblock
MFC after: 4 weeks
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D9239
21:15:22 - r312557
(6 hours 59 minutes ago)
by emaste
Affects: 
(2 files)
/stable/11/sys/crypto/skein/amd64/skein_block_asm.s
MFC r311655: libmd: add noexec stack annotation in skein_block_asm.s

Sponsored by: The FreeBSD Foundation
21:10:37 - r312556
(7 hours 4 minutes ago)
by emaste
Affects: 
(14 files)
/stable/11/sys/boot/*
MFC r310267: Deduplicate loader vers.c Makefile rules

The Makefile rule to create vers.c for loader version info was
previously duplicated in each of the various loader Makefiles.
Instead, share a common rule in Makefile.inc.

Sponsored by: The FreeBSD Foundation
19:08:44 - r312555
(9 hours 6 minutes ago)
by kib
Affects: 
(4 files)
/head/sys/amd64/*
/head/sys/i386/*
Use SFENCE for ordering CLFLUSHOPT.

SDM states that CLFLUSHOPT instructions can be ordered with other
writes by SFENCE, heavier MFENCE is not required.

Reviewed by: alc
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
18:37:14 - r312554
(9 hours 37 minutes ago)
by sobomax
Affects:  /head/lib/libc/sys/getsockopt.2
Improve wording around SO_TS_CLOCK documentation.

Submitted by: wblock
Differential Revision: https://reviews.freebsd.org/D9171
17:54:24 - r312553
(10 hours 20 minutes ago)
by asomers
Affects:  /head/sys/cam/scsi/scsi_all.h
Fix "camcontrol timestamp -s" with LTO-7 drives

The length of the scsi_set_timestamp_parameters struct was incorrect. LTO-5
drives don't care, but LTO-7 drives do.

Reviewed by: Sam Klopsch
MFC after: 2 weeks
Sponsored by: Spectra Logic Corp
17:43:36 - r312552
(10 hours 31 minutes ago)
by mav
Affects:  /head/usr.sbin/ctld/pdu.c
Fix build with ICL_KERNEL_PROXY.

MFC after: 2 weeks
17:40:31 - r312551
(10 hours 34 minutes ago)
by hselasky
Affects:  /head/sys/kern/kern_clocksource.c
Fix for race leading to endless timer interrupts related to
configtimer().

During normal operation "state->nextcallopt" will always be less than
or equal to "state->nextcall" and checking only "state->nextcallopt"
before calling "callout_process()" is sufficient. However when
"configtimer()" is called a race might happen requiring both of these
binary times to be checked.

Short description of race:

1) A configtimer() call will reset both "state->nextcall" and
"state->nextcallopt" to the same binary time.

2) If a "callout_reset()" call happens between "configtimer()" and the
next "callout_process()" call, "state->nextcallopt" will get updated
and "state->nextcall" will remain at the current time. Refer to logic
inside cpu_new_callout().

3) getnextcpuevent() only respects "state->nextcall" and returns this
value over and over again, even if it is in the past, until "now >=
state->nextcallopt" becomes true. Then these two time variables are
corrected by a "callout_process()" call and the situation goes back to
normal.

The problem manifests itself in different ways. The common factor is
the timer process(es) consume all CPU on one or more CPU cores for a
long time, blocking other kernel processes from getting execution
time. This can be seen by very high interrupt counts as displayed by
"vmstat -i | grep timer" right after boot.

When EARLY_AP_STARTUP was enabled in r310177 the likelyhood of hitting
this bug apparently increased.

Example output from "vmstat -i" before patch:
cpu0:timer 7591 69
cpu9:timer 39031773 358089
cpu4:timer 9359 85
cpu3:timer 9100 83
cpu2:timer 9620 88

Example output from "vmstat -i" after patch:
cpu0:timer 4242 34
cpu6:timer 5531 44
cpu3:timer 6450 52
cpu1:timer 4545 36
cpu9:timer 7153 58

Before the patch cpu9 in the example above, was spinning in a loop in
order to reach 39 million interrupts just a few seconds after
bootup. After the patch the timer interrupt counts are more or less
consistent.

Discussed with: mav @
Reported by: several people
MFC after: 1 week
Sponsored by: Mellanox Technologies
17:39:38 - r312550
(10 hours 35 minutes ago)
by wblock
Affects: 
(2 files)
/stable/11/usr.bin/seq/seq.1
MFC 305887:

Update history. Patch supplied by Sevan Janiyan <venture37@geeklan.co.uk>.

Sponsored by: iXsystems
17:38:12 - r312549
(10 hours 36 minutes ago)
by wblock
Affects: 
(2 files)
/stable/11/lib/libc/sys/shm_open.2
MFC 312083:

Update the shm_open.2 man page to reflect objective reality.

Sponsored by: iXsystems
17:35:31 - r312548
(10 hours 39 minutes ago)
by wblock
Affects: 
(2 files)
/stable/11/usr.sbin/crunch/crunchgen/crunchgen.1
MFC 311527:

Show that the crunchgen configuration file name is not optional.

Sponsored by: iXsystems
17:29:59 - r312547
(10 hours 44 minutes ago)
by wblock
Affects:  /head/lib/libc/sys/shm_open.2
Mention sendfile(2) by popular demand.

Submitted by: alc, kib
MFC after: 1 week
Sponsored by: iXsystems
Differential Revision: https://reviews.freebsd.org/D9259
17:28:52 - r312546
(10 hours 46 minutes ago)
by ae
Affects:  /projects/ipsec/sys/netipsec/key.c
Check sadb_sa_flags received from userland for correctness and
report back only supported flags (they are defined in pfkeyv2.h).
17:20:59 - r312545
(10 hours 53 minutes ago)
by ae
Affects:  /projects/ipsec/sys/netipsec/key.c
Count more malloc fails in the PFKEY statistics.
17:16:48 - r312544
(10 hours 58 minutes ago)
by rstone
Affects:  /head/sys/dev/ixgbe/if_ix.c
/head/sys/net/if_media.c
Fix reference to free memory in ixgbe/if_media.c

When ixgbe receives an interrupt indicating that a new optical module
may have been inserted, it discards all of its current media types
by calling ifmedia_removeall() and then creates a new set of media
types for the supported media on the new module. However,
ifmedia_removeall() was maintaining a pointer to whatever the
current media type was before the call to ifmedia_removealL().
The result of this was that any attempt to read the current media
type of the interface (e.g. via ifconfig) would return potentially
garbage data from free memory (or if one were particularly unlucky
on an architecture that does not malloc() from a direct map, page
fault the kernel).

Fix this by NULL'ing out the current media field in if_media.c,
and have ixgbe update the current media type after recreating
them.

Submitted by: Matt Joras <matt.joras AT gmail DOT com>
Reviewed by: sbruno, erj
MFC after: 1 week
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D9164
17:14:10 - r312543
(11 hours ago)
by mav
Affects:  /head/usr.sbin/iscsid/pdu.c
Remove ISCSI_MAX_DATA_SEGMENT_LENGTH, using negotiated value.

MFC after: 2 weeks
17:03:44 - r312542
(11 hours 11 minutes ago)
by ae
Affects:  /projects/ipsec/lib/libipsec/pfkey.c
/projects/ipsec/lib/libipsec/pfkey_dump.c
Since NAT-T support is now always enabled, add related information
to the `setkey -D` output.
16:52:34 - r312541
(11 hours 22 minutes ago)
by ae
Affects:  /projects/ipsec/sys/netipsec/key.c
Fix build with VIMAGE enabled.

Reported by: Eugene Grosbein
16:04:39 - r312540
(12 hours 10 minutes ago)
by asomers
Affects: 
(2 files)
/stable/10/sys/boot/forth/loader.conf
MFC r310417

Add a dumpdev example to /boot/defaults/loader.conf
16:01:01 - r312539
(12 hours 13 minutes ago)
by mav
Affects:  /head/usr.bin/iscsictl/iscsictl.c
/head/usr.bin/iscsictl/iscsictl.h
Remove some unused code.

MFC after: 2 weeks
15:56:40 - r312538
(12 hours 18 minutes ago)
by pfg
Affects:  /head/sys/sys/cdefs.h
Addition of clang nullability qualifiers.

For consistency with the qualifiers added in r310977, define a new
qualifier _Null_unspecified which is also defined in clang 3.7+.

Add two new macros:
__NULLABILITY_PRAGMA_PUSH
__NULLABILITY_PRAGMA_POP

These are for use in headers when we want avoid noisy warnings if
some pointers are left without nullability annotations.

These are added with way ahead of their first use to teach the GCC
ports headers of their existance before their first use.
15:47:29 - r312537
(12 hours 27 minutes ago)
by hselasky
Affects:  /head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
Remove superfluous return statement.

MFC after: 1 week
Sponsored by: Mellanox Technologies
15:45:21 - r312536
(12 hours 29 minutes ago)
by hselasky
Affects: 
(4 files)
/head/sys/dev/mlx5/mlx5_en/*
Allow transmit packet bufring in software to be disabled.

- Add new sysctl node to control the transmit packet bufring.

- Add optimised version of the transmit routine which output packets
directly to the DMA ring instead of using bufring in case the transmit
lock is congested. This can reduce the number of taskswitches which in
turn influence the overall system CPU usage, depending on the
workload.

- Add " TX" suffix to debug name for transmit mutexes to silence some
witness warnings about aquiring duplicate locks having same name.

MFC after: 1 week
Sponsored by: Mellanox Technologies
Suggested by: gallatin @
15:01:04 - r312535
(13 hours 13 minutes ago)
by jpaetzel
Affects: 
(4 files)
/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dmu.c
/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_pool.c
/head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/dsl_pool.h
MFV 312436

 6569 large file delete can starve out write ops

  illumos/illumos-gate@ff5177ee8bf9a355131ce2cc61ae2da6a5a6fdd6

https://github.com/illumos/illumos-gate/commit/ff5177ee8bf9a355131ce2cc61ae2da6a5a6fdd6

  https://www.illumos.org/issues/6569
  The core issue I've found is that there is no throttle for how many
  deletes get assigned to one TXG. As a results when deleting large files
  we end up filling consecutive TXGs with deletes/frees, then write
  throttling other (more important) ops.

  There is an easy test case for this problem. Try deleting several
  large files (at least 1/2 TB) while you do write ops on the same
  pool. What we've seen is performance of these write ops (let's
  call it sideload I/O) would drop to zero.

  More specifically the problem is that dmu_free_long_range_impl()
  can/will fill up all of the dirty data in the pool "instantly",
  before many of the sideload ops can get in. So sideload
  performance will be impacted until all the files are freed.

  The solution we have tested at Nexenta (with positive results)
  creates a relatively simple throttle for how many "free" ops we let
  into one TXG.

  However this solution exposes other problems that should also be
  addressed. If we are to slow down freeing of data that means one
  has to wait even longer (assuming vnode ref count of 1) to get shell
  back after an rm or for NFS thread to finish the free-ing op.
  To avoid this the proposed solution is to call zfs_inactive() async
  for "large" files. Async freeing then begs for the reclaimed space
  to be accounted for in the zpool's "freeing" prop.

  The other issue with having a longer delete is the inability to
  export/unmount for a longer period of time. The proposed solution
  is to interrupt freeing of blocks when a fs is unmounted.

  Author: Alek Pinchuk <alek@nexenta.com>
  Reviewed by: Matt Ahrens <mahrens@delphix.com>
  Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
  Reviewed by: Pavel Zakharov <pavel.zakharov@delphix.com>
  Approved by: Dan McDonald <danmcd@omniti.com>

Reviewed by: avg
Differential Revision: D9008
14:59:56 - r312534
(13 hours 14 minutes ago)
by emaste
Affects:  /head/sys/kern/kern_ktrace.c
ANSYfy kern_ktrace.c and remove archaic register keyword

Sponsored by: The FreeBSD Foundation
13:49:04 - r312533
(14 hours 25 minutes ago)
by mav
Affects:  /head/sys/geom/multipath/g_multipath.c
Report disk addition errors on `add` or `create` subcommand.

MFC after: 1 week
13:39:07 - r312532
(14 hours 35 minutes ago)
by avg
Affects:  /head/sys/kern/imgact_elf.c
don't abort writing of a core dump after EFAULT

It's possible to get EFAULT when writing a segment backed by a file
if the segment extends beyond the file.
The core dump could still be useful if we skip the rest of the segment
and proceed to other segements.
The skipped segment (or a portion of it) will be zero-filled.

While there, use 'const' to signify that core_write() only reads the
buffer and use __DECONST before calling vn_rdwr_inchunks() because it
can be used for both reading and writing.

Before the change:
kernel: Failed to write core file for process mmap_trunc_core (error 14)
kernel: pid 77718 (mmap_trunc_core), uid 1001: exited on signal 6

After the change:
kernel: Failed to fully fault in a core file segment at VA 0x800645000 with
size 0x4000 to be written at offset 0x29000 for process mmap_trunc_core
kernel: pid 4901 (mmap_trunc_core), uid 1001: exited on signal 6 (core dumped)

Reviewed by: julian, kib
Obtained from: Panzura (older version of the change)
MFC after: 5 days
Sponsored by: Panzura
Differential Revision: https://reviews.freebsd.org/D9233
13:21:27 - r312531
(14 hours 53 minutes ago)
by avg
Affects:  /head/sys/amd64/vmm/vmm_dev.c
vmm_dev: work around a bogus error with gcc 6.3.0

The error is:
vmm_dev.c: In function 'alloc_memseg':
vmm_dev.c:261:11: error: null argument where non-null required (argument 1)
[-Werror=nonnull]

Apparently, the gcc is unable to figure out that if a ternary operator
produced a non-NULL value once, then the operator with exactly the same
operands would produce the same value again.

MFC after: 1 week
13:01:25 - r312530
(15 hours 13 minutes ago)
by mav
Affects: 
(2 files)
/stable/10/share/misc/scsi_modes
MFC r311517: Add some more mode page fields.
13:00:50 - r312529
(15 hours 14 minutes ago)
by mav
Affects: 
(2 files)
/stable/11/share/misc/scsi_modes
MFC r311517: Add some more mode page fields.
12:02:40 - r312528
(16 hours 12 minutes ago)
by hselasky
Affects:  /head/sys/dev/mlx5/mlx5_en/en.h
/head/sys/dev/mlx5/mlx5_en/mlx5_en_main.c
/head/sys/dev/mlx5/mlx5_en/mlx5_en_tx.c
Make draining a sendqueue more robust.

Add own state variable to track if a sendqueue is stopped or not.
This will prevent traffic from entering the sendqueue while it is
being destroyed.

Update drain function to wait for traffic to be transmitted before
returning when the link state is active.

Add extra checks in transmit path for stopped SQ's.

While at it:
- Use likely() for a mbuf pointer check.
- Remove redundant IFF_DRV_RUNNING check.

MFC after: 1 week
Sponsored by: Mellanox Technologies
11:11:49 - r312527
(17 hours 3 minutes ago)
by hselasky
Affects: 
(4 files)
/head/sys/dev/mlx5/cq.h
/head/sys/dev/mlx5/mlx5_core/mlx5_cq.c
/head/sys/dev/mlx5/mlx5_en/*
Add runtime support for modifying the SQ and RQ completion event
moderation mode. The presence of this feature is indicated through the
firmware capabilities.

MFC after: 1 week
Sponsored by: Mellanox Technologies
10:47:32 - r312526
(17 hours 27 minutes ago)
by hselasky
Affects:  /head/sys/dev/mlx5/mlx5_ifc.h
Update firmware interface structures and definitions adding support
for new features and commands.

MFC after: 1 week
Sponsored by: Mellanox Technologies
10:13:40 - r312525
(18 hours 1 minute ago)
by np
Affects: 
(2 files)
/stable/10/sys/dev/cxgbe/tom/t4_listen.c
MFC r312368:
cxgbe/tom: Fix a case where do_pass_accept_req wasn't properly restoring
the VNET.
10:13:39 - r312524
(18 hours 1 minute ago)
by np
Affects: 
(2 files)
/stable/11/sys/dev/cxgbe/tom/t4_listen.c
MFC r312368:
cxgbe/tom: Fix a case where do_pass_accept_req wasn't properly restoring
the VNET.
08:00:36 - r312523
(20 hours 14 minutes ago)
by ngie
Affects:  /head/usr.bin/cut/tests/Makefile
/head/usr.bin/cut/tests/cut2_test.sh
Add some basic -s flag testcases for cut(1)

The remaining functionality seems to be covered in one form or
another via the NetBSD ATF testcase.

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
07:43:40 - r312522
(20 hours 31 minutes ago)
by adrian
Affects:  /head/sys/net80211/ieee80211_ioctl.c
[net80211] allow for MCS16-23 to be statically configured.

Tested:

* AR9380, STA mode
07:11:21 - r312521
(21 hours 3 minutes ago)
by ngie
Affects:  /head/usr.bin/sed/tests/Makefile
/head/usr.bin/sed/tests/sed2_test.sh
Add testcases for -i with hardlinks and symlinks

The symlink testcase is expected to fail, post-r312519 (the revert of
r312404); mark it so.

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
06:47:02 - r312520
(21 hours 27 minutes ago)
by ngie
Affects:  /head/usr.bin/sed/tests/Makefile
Integrate contrib/netbsd-tests/usr.bin/sed/t_sed.sh into the FreeBSD test
suite as usr.bin/sed/sed_test

Don't expect :emptybackref to fail -- it succeeds on FreeBSD

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
06:45:06 - r312519
(21 hours 29 minutes ago)
by delphij
Affects:  /head/usr.bin/sed/main.c
Revert r312404 as we need to do an exp-run and fix existing ports that
rely on the previous behavior.

Requested by: antonie (portmgr)
06:40:12 - r312518
(21 hours 34 minutes ago)
by delphij
Affects: 
(51 files)
/stable/10/contrib/xz/*
/stable/10/lib/liblzma/config.h
MFC r311504: MFV r311477: xz 5.2.3.
06:38:56 - r312517
(21 hours 35 minutes ago)
by delphij
Affects: 
(51 files)
/stable/11/contrib/xz/*
/stable/11/lib/liblzma/config.h
MFC r311504: MFV r311477: xz 5.2.3.
06:24:31 - r312516
(21 hours 50 minutes ago)
by ngie
Affects: 
(3 files)
/stable/10/contrib/bsnmp/snmpd/trans_udp.c
/stable/10/contrib/bsnmp/snmpd/trans_udp.h
MFC r312331:
r312331 (by glebius):

Fix regression from r310655, which broke operation of bsnmpd if it is bound
to a non-wildcard address. As documented in ip(4), doing sendmsg(2) with
IP_SENDSRCADDR on a socket that is bound to non-wildcard address is
completely different to using this control message on a wildcard one.

A fix is to add a bool to mark whether we did setsockopt(IP_RECVDSTADDR)
on the socket, and use IP_SENDSRCADDR control message only if we did.

While here, garbage collect absolutely useless udp_recv() function that
establishes some structures on stack to never use them later.
06:22:42 - r312515
(21 hours 52 minutes ago)
by ngie
Affects: 
(3 files)
/stable/11/contrib/bsnmp/snmpd/trans_udp.c
/stable/11/contrib/bsnmp/snmpd/trans_udp.h
MFC r312331:
r312331 (by glebius):

Fix regression from r310655, which broke operation of bsnmpd if it is bound
to a non-wildcard address. As documented in ip(4), doing sendmsg(2) with
IP_SENDSRCADDR on a socket that is bound to non-wildcard address is
completely different to using this control message on a wildcard one.

A fix is to add a bool to mark whether we did setsockopt(IP_RECVDSTADDR)
on the socket, and use IP_SENDSRCADDR control message only if we did.

While here, garbage collect absolutely useless udp_recv() function that
establishes some structures on stack to never use them later.
05:51:25 - r312514
(22 hours 23 minutes ago)
by ngie
Affects:  /head/gnu/usr.bin/gdb/gdbserver/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This simplifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
05:45:07 - r312513
(22 hours 29 minutes ago)
by ngie
Affects:  /head/sys/modules/ath/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This simplifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:55:15 - r312512
(23 hours 19 minutes ago)
by ngie
Affects:  /head/lib/libdevdctl/tests/Makefile
Use .CURDIR:H instead of .CURDIR to simplify pathing in output, etc

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:54:21 - r312511
(23 hours 20 minutes ago)
by ngie
Affects:  /head/lib/libdwarf/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This simplifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:54:09 - r312510
(23 hours 20 minutes ago)
by ngie
Affects:  /head/lib/libelf/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This simplifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:53:50 - r312509
(23 hours 21 minutes ago)
by ngie
Affects:  /head/lib/libevent/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This simplifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:53:45 - r312508
(23 hours 21 minutes ago)
by ngie
Affects:  /head/lib/libexpat/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This simplifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:53:40 - r312507
(23 hours 21 minutes ago)
by ngie
Affects:  /head/lib/libexecinfo/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This simplifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:53:26 - r312506
(23 hours 21 minutes ago)
by ngie
Affects:  /head/lib/libiconv_modules/Makefile.inc
/head/lib/libiconv_modules/mapper_parallel/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This simplifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:53:20 - r312505
(23 hours 21 minutes ago)
by ngie
Affects:  /head/lib/libgssapi/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This simplifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:53:00 - r312504
(23 hours 21 minutes ago)
by ngie
Affects:  /head/lib/libcxxrt/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This simplifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:52:29 - r312503
(23 hours 22 minutes ago)
by ngie
Affects:  /head/lib/libcrypt/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This simplifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:52:00 - r312502
(23 hours 22 minutes ago)
by ngie
Affects:  /head/lib/libcompat/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This simplifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:51:36 - r312501
(23 hours 23 minutes ago)
by ngie
Affects:  /head/lib/libcom_err/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This simplifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:50:46 - r312500
(23 hours 24 minutes ago)
by ngie
Affects:  /head/lib/libkiconv/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This simplifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:50:19 - r312499
(23 hours 24 minutes ago)
by ngie
Affects:  /head/lib/libldns/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This simplifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:46:20 - r312498
(23 hours 28 minutes ago)
by ngie
Affects:  /head/lib/liblzma/Makefile
Use SRCTOP-relative paths and .CURDIR with :H instead of ".." specified paths

This simplifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:45:09 - r312497
(23 hours 29 minutes ago)
by ngie
Affects:  /head/lib/libmagic/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This simplifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:43:21 - r312496
(23 hours 31 minutes ago)
by ngie
Affects:  /head/lib/libmd/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This simplifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:42:43 - r312495
(23 hours 32 minutes ago)
by ngie
Affects:  /head/lib/libmilter/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This simplifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:42:11 - r312494
(23 hours 32 minutes ago)
by ngie
Affects:  /head/lib/libmp/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This simplifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:41:53 - r312493
(23 hours 32 minutes ago)
by ngie
Affects:  /head/lib/libngatm/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This simplifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:40:55 - r312492
(23 hours 33 minutes ago)
by ngie
Affects:  /head/lib/libnv/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:40:10 - r312491
(23 hours 34 minutes ago)
by ngie
Affects:  /head/lib/libopie/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:39:36 - r312490
(23 hours 35 minutes ago)
by ngie
Affects:  /head/lib/libpcap/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:38:54 - r312489
(23 hours 35 minutes ago)
by ngie
Affects:  /head/lib/libprocstat/zfs/Makefile
Use SRCTOP-relative paths and .CURDIR with :H instead of ".." specified paths

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:37:22 - r312488
(23 hours 37 minutes ago)
by ngie
Affects:  /head/lib/libproc/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:37:03 - r312487
(23 hours 37 minutes ago)
by ngie
Affects:  /head/lib/libpe/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:36:48 - r312486
(23 hours 38 minutes ago)
by ngie
Affects:  /head/lib/librpcsec_gss/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:36:28 - r312485
(23 hours 38 minutes ago)
by ngie
Affects:  /head/lib/librpcsvc/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:36:06 - r312484
(23 hours 38 minutes ago)
by ngie
Affects:  /head/lib/librt/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:35:49 - r312483
(23 hours 39 minutes ago)
by ngie
Affects:  /head/lib/libsbuf/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:35:36 - r312482
(23 hours 39 minutes ago)
by ngie
Affects:  /head/lib/libsm/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:35:18 - r312481
(23 hours 39 minutes ago)
by ngie
Affects:  /head/lib/libsmdb/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:35:00 - r312480
(23 hours 39 minutes ago)
by ngie
Affects:  /head/lib/libsmb/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:34:34 - r312479
(23 hours 40 minutes ago)
by ngie
Affects:  /head/lib/libsmutil/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:34:01 - r312478
(23 hours 40 minutes ago)
by ngie
Affects:  /head/lib/libsqlite3/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:33:45 - r312477
(23 hours 41 minutes ago)
by ngie
Affects:  /head/lib/libstdthreads/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:33:20 - r312476
(23 hours 41 minutes ago)
by ngie
Affects:  /head/lib/libsysdecode/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:32:36 - r312475
(23 hours 42 minutes ago)
by ngie
Affects:  /head/lib/libtelnet/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:32:19 - r312474
(23 hours 42 minutes ago)
by ngie
Affects:  /head/lib/libthr/Makefile
/head/lib/libthr/support/Makefile.inc
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:31:19 - r312473
(23 hours 43 minutes ago)
by ngie
Affects:  /head/lib/libunbound/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:30:05 - r312472
(23 hours 44 minutes ago)
by ngie
Affects:  /head/lib/libufs/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:29:23 - r312471
(23 hours 45 minutes ago)
by ngie
Affects:  /head/lib/libulog/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:29:05 - r312470
(23 hours 45 minutes ago)
by ngie
Affects:  /head/lib/libutil/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:28:41 - r312469
(23 hours 46 minutes ago)
by ngie
Affects:  /head/lib/libypclnt/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:28:16 - r312468
(23 hours 46 minutes ago)
by ngie
Affects:  /head/lib/libthread_db/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:27:40 - r312467
(23 hours 47 minutes ago)
by ngie
Affects: 
(9 files)
/head/lib/ncurses/*
Use SRCTOP-relative paths and .CURDIR with :H instead of ".." specified paths

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:04:25 - r312466
(1 day ago)
by ngie
Affects:  /head/lib/libc_nonshared/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
04:03:55 - r312465
(1 day ago)
by ngie
Affects:  /head/lib/libcam/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
03:59:10 - r312464
(1 day ago)
by ngie
Affects:  /head/lib/libc++/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
03:58:50 - r312463
(1 day ago)
by ngie
Affects:  /head/lib/libbz2/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
03:57:52 - r312462
(1 day ago)
by ngie
Affects:  /head/lib/libbsnmp/libbsnmp/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
03:57:24 - r312461
(1 day ago)
by ngie
Affects:  /head/lib/libbsm/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
03:56:42 - r312460
(1 day ago)
by ngie
Affects:  /head/lib/libbluetooth/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
03:56:10 - r312459
(1 day ago)
by ngie
Affects:  /head/lib/libblocksruntime/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
03:55:43 - r312458
(1 day ago)
by ngie
Affects:  /head/lib/libbegemot/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
03:55:21 - r312457
(1 day ago)
by ngie
Affects:  /head/lib/libauditd/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
03:54:36 - r312456
(1 day ago)
by ngie
Affects:  /head/lib/libarchive/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
03:52:16 - r312455
(1 day ago)
by ngie
Affects: 
(9 files)
/head/lib/csu/*
Use SRCTOP-relative paths and .CURDIR with :H instead of ".." specified paths

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
03:34:59 - r312454
(1 day ago)
by ngie
Affects:  /head/lib/libalias/libalias/Makefile
/head/lib/libalias/modules/Makefile
/head/lib/libalias/modules/Makefile.inc
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
03:31:50 - r312453
(1 day ago)
by ngie
Affects:  /head/lib/libpam/libpam/Makefile
/head/lib/libpam/static_libpam/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
03:27:47 - r312452
(1 day ago)
by ngie
Affects:  /head/lib/libpam/modules/Makefile.inc
/head/lib/libpam/modules/pam_passwdqc/Makefile
/head/lib/libpam/modules/pam_ssh/Makefile
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones

This implifies pathing in make/displayed output

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
03:23:24 - r312451
(1 day ago)
by ngie
Affects: 
(15 files)
/head/lib/libc/*
Replace dot-dot relative pathing with SRCTOP-relative paths where possible

This reduces build output, need for recalculating paths, and makes it clearer
which paths are relative to what areas in the source tree. The change in
performance over a locally mounted UFS filesystem was negligible in my testing,
but this may more positively impact other filesystems like NFS.

LIBC_SRCTOP was left alone so Juniper (and other users) can continue to
manipulate lib/libc/Makefile (and other Makefile.inc's under lib/libc) as
include Makefiles with custom options.

Discussed with: marcel, sjg
MFC after: 1 week
Reviewed by: emaste
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D9207
03:14:18 - r312450
(1 day 1 hour ago)
by emaste
Affects:  /head/etc/mtree/BSD.debug.dist
Remove obsolete /usr/lib/debug/usr/lib/private dir

Missed in r282420

Reported by: dim
02:50:24 - r312449
(1 day 1 hour ago)
by emaste
Affects: 
(3 files)
/stable/11/contrib/llvm/projects/libunwind/src/UnwindRegistersRestore.S
/stable/11/contrib/llvm/projects/libunwind/src/UnwindRegistersSave.S
MFC r311647: libunwind: add noexec stack annotation

Sponsored by: The FreeBSD Foundation
02:48:52 - r312448
(1 day 1 hour ago)
by emaste
Affects: 
(2 files)
/stable/11/contrib/llvm/projects/libunwind/src/UnwindLevel1-gcc-ext.c
MFC r310365: libunwind: make __{de,}register_frame compatible with libgcc API

The libgcc __register_frame and __deregister_frame functions take a
pointer to a set of FDE/CIEs, terminated by an entry where length is 0.

In Apple's libunwind implementation the pointer is taken to be to a
single FDE. I suspect this was just an Apple bug, compensated by Apple-
specific code in LLVM.

See lib/ExecutionEngine/RuntimeDyld/RTDyldMemoryManager.cpp and
http://lists.llvm.org/pipermail/llvm-dev/2013-April/061737.html
for more detail.

This change is based on the LLVM RTDyldMemoryManager.cpp. It should
later be changed to be alignment-safe.

Sponsored by: The FreeBSD Foundation
02:46:14 - r312447
(1 day 1 hour ago)
by emaste
Affects: 
(12 files)
/stable/11/contrib/llvm/projects/libunwind/include/libunwind.h
/stable/11/contrib/llvm/projects/libunwind/src/*
MFC r308006: libunwind: consistently add \n to log and trace messages

Previously most messages included a newline in the string, but a few of
them were missing. Fix these and simplify by just adding the newline in
the _LIBUNWIND_LOG macro itself.

While here correct 'libuwind' typo (missing 'n').

Upstream LLVM libunwind commits r280086 and r280103.

Sponsored by: The FreeBSD Foundation
02:09:59 - r312446
(1 day 2 hours ago)
by emaste
Affects:  /head/lib/libc/stdtime/Makefile.inc
libc: remove reference to nonexistent lib/locale directory

As far as I can tell this was introduced in r72406 and updated in several
subsequent revisions, but the lib/locale directory it referenced never
existed.

Reviewed by: ngie
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D9252
00:17:53 - r312445
(1 day 3 hours ago)
by jpaetzel
Affects: 
(2 files)
/stable/11/sys/netinet/ip_carp.c
Revert MFC of 310847 and 310864

Requested by glebius who had questions about the original
head commit that I didn't see.
00:15:11 - r312444
(1 day 3 hours ago)
by jpaetzel
Affects: 
(2 files)
/stable/10/sys/netinet/ip_carp.c
Revert MFC of 310847 and 310864

Requested by glebius who had questions about the original
head commit that I didn't see.
00:02:11 - r312443
(1 day 4 hours ago)
by pfg
Affects:  /head/sys/conf/NOTES
/head/sys/conf/options
/head/sys/netgraph/ng_mppc.c
mppc - Finish pluging NETGRAPH_MPPC_COMPRESSION.

There were several places where reference to compression were left
unfinished. Furthermore, KASSERTs contained references to MPPC_INVALID
which is not defined in the tree and therefore were sure to break with
INVARIANTS: comment them out.

Reported by: Eugene Grosbein
PR: 216265
MFC after: 3 days
2017 - 01 - 19   (2 days ago)
23:44:05 - r312442
(1 day 4 hours ago)
by rpokala
Affects: 
(2 files)
/stable/10/sys/kern/uipc_mbuf2.c
MFC r311963: Remove writability requirement for single-mbuf, contiguous-
range m_pulldown()

m_pulldown() only needs to determine if a mbuf is writable if it is going to
copy data into the data region of an existing mbuf. It does this to create a
contiguous data region in a single mbuf from multiple mbufs in the chain. If
the requested memory region is already contiguous and nothing needs to
change, the mbuf does not need to be writeable.
23:42:51 - r312441
(1 day 4 hours ago)
by rpokala
Affects: 
(2 files)
/stable/11/sys/kern/uipc_mbuf2.c
MFC r311963: Remove writability requirement for single-mbuf, contiguous-
range m_pulldown()

m_pulldown() only needs to determine if a mbuf is writable if it is going to
copy data into the data region of an existing mbuf. It does this to create a
contiguous data region in a single mbuf from multiple mbufs in the chain. If
the requested memory region is already contiguous and nothing needs to
change, the mbuf does not need to be writeable.
23:42:26 - r312440
(1 day 4 hours ago)
by jpaetzel
Affects: 
(2 files)
/stable/10/sys/netinet/ip_carp.c
MFC 310847 310864

Harden CARP against network loops.

If there is a loop in the network a CARP that is in MASTER state will see it's
own broadcasts, which will then cause it to assume BACKUP state. When it
assumes BACKUP it will stop sending advertisements. In that state it will no
longer see advertisements and will assume MASTER...

We can't catch all the cases where we are seeing our own CARP broadcast, but
we can catch the obvious case.

Unbreak ip_carp with WITHOUT_INET6 enabled by conditionalizing all IPv6
structs under the INET6 #ifdef. Similarly (even though it doesn't seem
to affect the build), conditionalize all IPv4 structs under the INET
#ifdef

This also unbreaks the LINT-NOINET6 tinderbox target on amd64; I have not
verified other MACHINE/TARGET pairs (e.g. armv6/arm).

Submitted by: torek
Obtained from: FreeNAS
Pointyhat fix: ngie
23:38:31 - r312439
(1 day 4 hours ago)
by jpaetzel
Affects: 
(2 files)
/stable/11/sys/netinet/ip_carp.c
MFC 310847 310864

Harden CARP against network loops.

If there is a loop in the network a CARP that is in MASTER state will see it's
own broadcasts, which will then cause it to assume BACKUP state. When it
assumes BACKUP it will stop sending advertisements. In that state it will no
longer see advertisements and will assume MASTER...

We can't catch all the cases where we are seeing our own CARP broadcast, but
we can catch the obvious case.

Unbreak ip_carp with WITHOUT_INET6 enabled by conditionalizing all IPv6
structs under the INET6 #ifdef. Similarly (even though it doesn't seem
to affect the build), conditionalize all IPv4 structs under the INET
#ifdef

This also unbreaks the LINT-NOINET6 tinderbox target on amd64; I have not
verified other MACHINE/TARGET pairs (e.g. armv6/arm).

Submitted by: torek
Obtained from: FreeNAS
Pointyhat fix: ngie
22:07:21 - r312438
(1 day 6 hours ago)
by jkim
Affects: 
(338 files)
/head/sys/contrib/dev/acpica/*
Merge ACPICA 20170119.
21:47:50 - r312437
(1 day 6 hours ago)
by scottl
Affects: 
(8 files)
/head/sys/dev/mpr/*
/head/sys/dev/mps/*
Rework the debug print API. Event printing no longer gets special handling.
All of the printing from the tables file now has wrappers so that the
handling is cleaner and it's possible to print something out (say, during
development) without having to fight the global debug flags. This re-org
will also make it easier to have the tables be compiled out at build time
if desired.

Other than fixing some minor bugs, there are no user-visible changes from
this change

Sponsored by: Netflix, Inc.
Differential Revision: D9238
20:44:29 - r312436
(1 day 7 hours ago)
by jpaetzel
Affects:  /vendor-sys/illumos/dist/uts/common/fs/zfs/dmu.c
/vendor-sys/illumos/dist/uts/common/fs/zfs/dsl_pool.c
/vendor-sys/illumos/dist/uts/common/fs/zfs/sys/dsl_pool.h
6569 large file delete can starve out write ops

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

https://www.illumos.org/issues/6569
  The core issue I've found is that there is no throttle for how many
  deletes get assigned to one TXG. As a results when deleting large files
  we end up filling consecutive TXGs with deletes/frees, then write
  throttling other (more important) ops.

  There is an easy test case for this problem. Try deleting several
  large files (at least 1/2 TB) while you do write ops on the same
  pool. What we've seen is performance of these write ops (let's
  call it sideload I/O) would drop to zero.

  More specifically the problem is that dmu_free_long_range_impl()
  can/will fill up all of the dirty data in the pool "instantly",
  before many of the sideload ops can get in. So sideload
  performance will be impacted until all the files are freed.

  The solution we have tested at Nexenta (with positive results)
  creates a relatively simple throttle for how many "free" ops we let
  into one TXG.

  However this solution exposes other problems that should also be
  addressed. If we are to slow down freeing of data that means one
  has to wait even longer (assuming vnode ref count of 1) to get shell
  back after an rm or for NFS thread to finish the free-ing op.
  To avoid this the proposed solution is to call zfs_inactive() async
  for "large" files. Async freeing then begs for the reclaimed space
  to be accounted for in the zpool's "freeing" prop.

  The other issue with having a longer delete is the inability to
  export/unmount for a longer period of time. The proposed solution
  is to interrupt freeing of blocks when a fs is unmounted.

Author: Alek Pinchuk <alek@nexenta.com>
Reviewed by: Matt Ahrens <mahrens@delphix.com>
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni@nexenta.com>
Reviewed by: Pavel Zakharov <pavel.zakharov@delphix.com>
Approved by: Dan McDonald <danmcd@omniti.com>
20:03:26 - r312435
(1 day 8 hours ago)
by kib
Affects:  /head/sys/fs/tmpfs/tmpfs.h
Remove mistakenly merged field.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week
19:58:08 - r312434
(1 day 8 hours ago)
by sbruno
Affects:  /head/sys/sys/gtaskqueue.h
Adjust gtaskqueue startup again so that we catch the !SMP case and
users that choose not to use EARLY_AP_STARTUP.

There is still an initialization issue/panic with !SMP and !EARLY_AP_STARTUP
that we have yet to resolve.

Submitted by: bde
19:47:32 - r312433
(1 day 8 hours ago)
by jkim
Affects:  /vendor-sys/acpica/20170119
Tag ACPICA 20170119.
19:46:49 - r312432
(1 day 8 hours ago)
by kib
Affects: 
(5 files)
/head/sys/fs/tmpfs/*
Add mount option for tmpfs(5) to not use namecache.

The option "nonc" disables using of namecache for the created mount,
by default namecache is used. The rationale for the option is that
namecache duplicates the information which is already kept in memory
by tmpfs. Since it believed that namecache scales better than tmpfs,
or will scale better, do not enable the option by default. On the
other hand, smaller machines may benefit from lesser namecache
pressure.

Discussed with: mjg
Tested by: pho (as part of larger patch)
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
19:46:15 - r312431
(1 day 8 hours ago)
by jkim
Affects: 
(410 files)
/vendor-sys/acpica/dist/*
Import ACPICA 20170119.
19:29:13 - r312430
(1 day 8 hours ago)
by kib
Affects:  /head/sys/fs/tmpfs/tmpfs_vnops.c
Implement VOP_VPTOCNP() for tmpfs.

For directories, node->tn_spec.tn_dir.tn_parent pointer to the parent
is used. For non-directories, the implementation is naive, all
directory nodes are scanned to find a dirent linking the specified
node. This can be significantly improved by maintaining tn_parent for
all nodes, later.

Tested by: pho (as part of larger patch)
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
19:25:42 - r312429
(1 day 8 hours ago)
by kib
Affects:  /head/sys/fs/tmpfs/tmpfs_subr.c
VNON nodes cannot exist.

Tested by: pho (as part of larger patch)
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
19:15:21 - r312428
(1 day 8 hours ago)
by kib
Affects: 
(4 files)
/head/sys/fs/tmpfs/*
Refcount tmpfs nodes and mount structures.

On dotdot lookup and fhtovp operations, it is possible for the file
represented by tmpfs node to be removed after the thread calculated
the pointer. In this case, tmpfs_alloc_vp() accesses freed memory.

Introduce the reference count on the nodes. The allnodes list from
tmpfs mount owns 1 reference, and threads performing unlocked
operations on the node, add one transient reference. Similarly, since
struct tmpfs_mount maintains the list where nodes are enlisted,
refcount it by one reference from struct mount and one reference from
each node on the list. Both nodes and tmpfs_mounts are removed when
refcount goes to zero.

Note that this means that nodes and tmpfs_mounts might survive some
time after the node is deleted or tmpfs_unmount() finished. The
tmpfs_alloc_vp() in these cases returns error either due to node
removal (tn_nlinks == 0) or because of insmntque1(9) error.

Tested by: pho (as part of larger patch)
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks
18:52:38 - r312427
(1 day 9 hours ago)
by erj
Affects: 
(5 files)
/head/sys/dev/e1000/*
e1000: Add support for Kaby Lake generation i219 (4) and i219 (5) devices

MFC after: 1 week
Sponsored by: Intel Corporation
18:46:41 - r312426
(1 day 9 hours ago)
by avg
Affects:  /head/sys/kern/sched_4bsd.c
/head/sys/kern/sched_ule.c
fix a thread preemption regression in schedulers introduced in r270423

Commit r270423 fixed a regression in sched_yield() that was introduced
in earlier changes. Unfortunately, at the same time it introduced an
new regression. The problem is that SWT_RELINQUISH (6), like all other
SWT_* constants and unlike SW_* flags, is not a bit flag. So, (flags &
SWT_RELINQUISH) is true in cases where that was not really indended,
for example, with SWT_OWEPREEMPT (2) and SWT_REMOTEPREEMPT (11).

A straight forward fix would be to use (flags & SW_TYPE_MASK) ==
SWT_RELINQUISH, but my impression is that the switch types are designed
mostly for gathering statistics, not for influencing scheduling
decisions.

So, I decided that it would be better to check for SW_PREEMPT flag
instead. That's also the same flag that was checked before r239157.
I double-checked how that flag is used and I am confident that the flag
is set only in the places where we really have the preemption:
- critical_exit + td_owepreempt
- sched_preempt in the ULE scheduler
- sched_preempt in the 4BSD scheduler

Reviewed by: kib, mav
MFC after: 4 days
Sponsored by: Panzura
Differential Revision: https://reviews.freebsd.org/D9230
18:38:58 - r312425
(1 day 9 hours ago)
by kib
Affects:  /head/sys/fs/tmpfs/tmpfs.h
/head/sys/fs/tmpfs/tmpfs_subr.c
Make tmpfs directory cursor available outside tmpfs_subr.c.

Tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
18:33:27 - r312424
(1 day 9 hours ago)
by hselasky
Affects:  /head/sys/dev/usb/controller/xhci.c
/head/sys/dev/usb/controller/xhci.h
/head/sys/dev/usb/controller/xhci_pci.c
Fix problem with suspend and resume when using Skylake chipsets. Make
sure the XHCI controller is reset after halting it. The problem is
clearly a BIOS bug as the suspend and resume is failing without
loading the XHCI driver. The same happens when using Linux and the
XHCI driver is not loaded.

Submitted by: Yanko Yankulov <yanko.yankulov@gmail.com>
PR: 216261
MFC after: 1 week
18:26:06 - r312423
(1 day 9 hours ago)
by kib
Affects:  /head/share/man/man5/tmpfs.5
Refresh tmpfs(5) man page.

Provide more useful explanation of features and quirks.

Reviewed by: emaste, vangyzen
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D9211
18:07:24 - r312422
(1 day 10 hours ago)
by ngie
Affects:  /head/lib/libc/x86/sys/Makefile.inc
Only conditionally add in hyperv support if we're building amd64

This unbreaks the build because the assembly is written for x64.

MFC after: 3 weeks
X-MFC with: r312418
Pointyhat to: ngie
Reported by: Jenkins (i386 job)
Sponsored by: Dell EMC Isilon
17:58:08 - r312421
(1 day 10 hours ago)
by jpaetzel
Affects: 
(2 files)
/stable/10/sys/fs/nfsserver/nfs_nfsdport.c
MFC 311122

Workaround NFS bug with readdirplus when there are greater than 1 billion files
in a filesystem.

Reviewed by: kib
17:49:47 - r312420
(1 day 10 hours ago)
by jpaetzel
Affects: 
(2 files)
/stable/11/sys/fs/nfsserver/nfs_nfsdport.c
MFC 311122

Workaround NFS bug with readdirplus when there are greater than 1 billion files
in a filesystem.

Reviewed by: kib
17:09:11 - r312419
(1 day 11 hours ago)
by ngie
Affects:  /head/share/man/man4/Makefile
/head/share/man/man4/mlx4en.4
/head/share/man/man4/mlx4ib.4
Add manpage for mlx4ib(4)

This manpage isn't differentiated from mlx4en except where necessary,
replacing eth/ETH with ib/IB.

Eventually the manpages will be split and the common bits be placed
in a manpage named "mlx4.4".

MFC after: 3 weeks
Reviewed by: hselasky
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D9241
17:03:45 - r312418
(1 day 11 hours ago)
by ngie
Affects:  /head/lib/libc/x86/sys/Makefile.inc
/head/lib/libc/x86/sys/__vdso_gettc.c
Conditionalize hyperv support in gettimeofday(2) based on MK_HYPERV

The effect at runtime is negligible as the hyperv timer isn't available
except when hyperv is loaded.

This is a prerequisite for conditionalizing the header build/install out
of the build

MFC after: 3 weeks
Reviewed by: sephe
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D9242
16:59:55 - r312417
(1 day 11 hours ago)
by asomers
Affects:  /head/sbin/devd/devd.cc
Fix build of devd with GCC 4.2

Reported by: olivier
Pointy-hat-to: asomers
MFC after: 27 days
X-MFC-with: 312395
Sponsored by: Spectra Logic Corp
16:46:05 - r312416
(1 day 11 hours ago)
by cem
Affects:  /head/sys/ufs/ffs/ffs_vnops.c
ffs_vnops: Simplify extattr access

As suggested in r167010, use the structure type and macros to access and
modify UFS2 extended attributes. Add assertions that pointers are
aligned in places where we now access the data through a structure
pointer, instead of character-by-character.

PR: 216127
Reported by: dewayne at heuristicsystems.com.au
Reviewed by: kib@
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D9225
16:07:52 - r312415
(1 day 12 hours ago)
by asomers
Affects: 
(2 files)
/stable/11/sys/boot/forth/loader.conf
MFC r310417

Add a dumpdev example to /boot/defaults/loader.conf
16:01:36 - r312414
(1 day 12 hours ago)
by kib
Affects:  /head/sys/fs/tmpfs/tmpfs.h
/head/sys/fs/tmpfs/tmpfs_vfsops.c
Rename tmpfs_mount member allnode_lock to include namespace prefix.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week
15:27:53 - r312413
(1 day 12 hours ago)
by bz
Affects: 
(2 files)
/stable/11/sys/contrib/ipfilter/netinet/ip_fil.h
MFC r311950:

  Get rid of a compiler warning which I saw too often.
  Include netinet/in.h before ip_compat.t which will then check if
  IPPROTO_IPIP is defined or not. Doing it the other way round,
  ip_compat.h would not find it defined and netinet/in.h then
  redefine it.
15:06:18 - r312412
(1 day 13 hours ago)
by kib
Affects:  /head/sys/fs/tmpfs/tmpfs.h
Protect macro argument.

Requested by: hselasky
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
14:58:55 - r312411
(1 day 13 hours ago)
by loos
Affects:  /head/sys/arm/ti/cpsw/if_cpsw.c
/head/sys/arm/ti/cpsw/if_cpswreg.h
Handle the set capabilities ioctl, letting the hardware checksum be
disabled (Hi netmap!).

Only remove the CRC bytes from packets when the hardware tell us to do so.

Fixes the 'discard frame w/o leading ethernet header' issues.

Sponsored by: Rubicon Communications, LLC (Netgate)
14:49:55 - r312410
(1 day 13 hours ago)
by kib
Affects:  /head/sys/fs/tmpfs/tmpfs.h
/head/sys/fs/tmpfs/tmpfs_subr.c
/head/sys/fs/tmpfs/tmpfs_vnops.c
Rework some tmpfs lock assertions.

Remove TMPFS_ASSERT_ELOCKED(). Its claims are already stated by other
asserts nearby and by VFS guarantees.
Change TMPFS_ASSERT_LOCKED() and one inlined place to use
ASSERT_VOP_(E)LOCKED() instead of hand-rolled imprecise asserts.

Tested by: pho (as part of the larger patch)
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
14:27:37 - r312409
(1 day 13 hours ago)
by kib
Affects: 
(4 files)
/head/sys/fs/tmpfs/*
Style fixes and comment updates.

Edit comments which explain no longer relevant details, and add
locking annotations to the struct tmpfs_node members.

Tested by: pho (as part of the larger patch)
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
14:05:49 - r312408
(1 day 14 hours ago)
by loos
Affects:  /head/sys/arm/ti/cpsw/if_cpsw.c
The port number and the to_port_en flag are valid only on SOP descriptor.

Sponsored by: Rubicon Communications, LLC (Netgate)
13:35:14 - r312407
(1 day 14 hours ago)
by kib
Affects:  /head/sys/fs/tmpfs/tmpfs.h
Remove unused union member, fifos on tmpfs are implemented in common code.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week
11:17:09 - r312406
(1 day 16 hours ago)
by mav
Affects: 
(6 files)
/stable/10/sys/dev/*
/stable/10/sys/geom/*
MFC r311971: Report random flash storage as non-rotating to GEOM_DISK.

While doing it, introduce respective constants in geom_disk.h.
11:16:25 - r312405
(1 day 16 hours ago)
by mav
Affects: 
(7 files)
/stable/11/sys/cam/nvme/nvme_da.c
/stable/11/sys/dev/*
/stable/11/sys/geom/*
MFC r311971: Report random flash storage as non-rotating to GEOM_DISK.

While doing it, introduce respective constants in geom_disk.h.
08:01:35 - r312404
(1 day 20 hours ago)
by delphij
Affects:  /head/usr.bin/sed/main.c
Use S_ISREG instead of manual & (also it's better to compare the
result from & and the pattern instead of just assuming it's one bit
value).

Pointed out by Tianjie Mao <tjmao tjmao com>.

MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D4827
07:29:52 - r312403
(1 day 20 hours ago)
by delphij
Affects: 
(4 files)
/stable/10/lib/libstand/Makefile
/stable/10/sys/boot/libstand32/Makefile
/stable/10/sys/boot/userboot/libstand/Makefile
MFC r293040,293341,293435:

Reduce libstand Makefile duplication.

PR: 216251
06:48:03 - r312402
(1 day 21 hours ago)
by kib
Affects: 
(2 files)
/stable/10/libexec/rtld-elf/rtld.c
MFC r311984:
For the main binary, postpone enforcing relro read-only protection
until copy relocations are done.
06:44:27 - r312401
(1 day 21 hours ago)
by kib
Affects: 
(2 files)
/stable/11/libexec/rtld-elf/rtld.c
MFC r311984:
For the main binary, postpone enforcing relro read-only protection
until copy relocations are done.
2017 - 01 - 18   (3 days ago)
23:26:10 - r312400
(2 days 4 hours ago)
by marius
Affects: 
(7 files)
/stable/10/sys/dev/mmc/*
/stable/10/sys/dev/sdhci/*
MFC: r273180, r283754, r297329, r299414, r300707, r310309, r310340 (partial),
  r310341, r311664, r311793-311794

o Use correct response bits for MMC_RSP_R4-R7 types

o Make sdhci(4) work after suspend/resume for chipsets that require
  the frequency quirk. This makes it work on eg ThinkPad T420.

o Add a convenience macro that masks all the bits related to clock divisors
  in all versions of the sdhci spec (the HI bits are just unused reserved
  bits in earlier versions).

o sdhci/mmc: Minor whitespace cleanups

o Add Braswell PCI IDs for Intel Cherryview

o mmc: Accept even lower voltage for Cherryview

  And HP x2 210, per DragonFlyBSD 240bd9cd58f8259c12c14a8006837e698.

o In mmcsd_task(), bio_resid was not being set to 0 on a successful read
  or write, resulting in random short-read and short-write returns for
  requests. Fixing this fixes nominal block I/O via mmcsd(4).

  Obtained from: DragonFlyBSD (fd4b97583be1a1e57234713c25f6e81bc0411cb0)

o Add support for Intel Apollo Lake and Bay Trail eMMC PCI controllers.

o Flesh out the support for Intel Braswell eMMC controllers further.

o In sdhci_init_slot(), use the right capability field for determining
  the announced bus width based on MMC_CAP_*_BIT_DATA.
23:25:46 - r312399
(2 days 4 hours ago)
by marius
Affects: 
(8 files)
/stable/11/sys/dev/ichiic/ig4_pci.c
/stable/11/sys/dev/mmc/*
/stable/11/sys/dev/sdhci/*
MFC: r310309, r310340-310341, r311664, r311793-r311794

o sdhci/mmc: Minor whitespace cleanups

o Add Braswell PCI IDs for Intel Cherryview

o mmc: Accept even lower voltage for Cherryview

  And HP x2 210, per DragonFlyBSD 240bd9cd58f8259c12c14a8006837e698.

o In mmcsd_task(), bio_resid was not being set to 0 on a successful read
  or write, resulting in random short-read and short-write returns for
  requests. Fixing this fixes nominal block I/O via mmcsd(4).

  Obtained from: DragonFlyBSD (fd4b97583be1a1e57234713c25f6e81bc0411cb0)

o Add support for Intel Apollo Lake and Bay Trail eMMC PCI controllers.

o Flesh out the support for Intel Braswell eMMC controllers further.

o In sdhci_init_slot(), use the right capability field for determining
  the announced bus width based on MMC_CAP_*_BIT_DATA.
23:23:46 - r312398
(2 days 4 hours ago)
by marius
Affects: 
(12 files)
/stable/10/sys/dev/*
MFC: r296135

Replace several bus_alloc_resource() calls with bus_alloc_resource_any()

Most of these are BARs, and we allocate them in their entirety. The one
outlier in this is amdsbwd(4), which calls bus_set_resource() prior.
22:40:22 - r312397
(2 days 5 hours ago)
by jhb
Affects: 
(4 files)
/stable/10/sys/vm/vm_map.c
/stable/11/sys/vm/vm_map.c
MFC 310028: Use db_lookup_proc() in the DDB 'show procvm' command.

This allows processes to be identified by PID as well as a pointer address.
22:10:18 - r312396
(2 days 6 hours ago)
by asomers
Affects:  /head/cddl/usr.sbin/zfsd/case_file.cc
Fix an unchecked return value in zfsd

It's pretty unlikely to actually hit this, but good to check it anyway

Reported by: Coverity
CID: 1362018
MFC after: 4 weeks
Sponsored by: Spectra Logic Corp
20:24:37 - r312395
(2 days 7 hours ago)
by asomers
Affects:  /head/sbin/devd/devd.cc
Fix several Coverity CIDs in devd

CID 1362055, 1362054: File descriptor leaks during shutdown
CID 1362013: Potential null-termination fail with long network device names
CID 1362097: Uncaught exception during memory pressure
CID 1362017, 1362016: Unchecked errors, possibly resulting in weird behavior
  if two devd instances start at the same time.
CID 1362015: Unchecked error that will probably never fail

Reported by: Coverity
CID: 1362055 1362054 1362013 1362097 1362017 1362016 1362015
MFC after: 4 weeks
Sponsored by: Spectra Logic Corp
19:38:53 - r312394
(2 days 8 hours ago)
by jhb
Affects: 
(8 files)
/stable/11/sys/*
MFC 307332,312086: Drop support for using mmap() with /dev/kmem.

307332:
Drop support for using mmap() with /dev/kmem.

Using the device pager with /dev/kmem is not stable since KVA mappings
are transient, but the device pager caches the PA associated with a
given offset forever. Interestingly, mips' implementation of
memmap() already refused requests for /dev/kmem.

Note that kvm_read/kvm_write do not use mmap, but use read and write on
/dev/kmem, so this should not affect libkvm users.

312086:
Trim a few comments on platforms that did not implement mmap of /dev/kmem.

After r307332, no platforms implement mmap for /dev/kmem, so the lack of
it for these platforms is no longer unique.
18:16:57 - r312393
(2 days 9 hours ago)
by cem
Affects: 
(5 files)
/head/sbin/restore/*
/head/sys/sys/extattr.h
/head/sys/ufs/ufs/extattr.h
restore(8): Handle extended attribute names correctly

UFS2 extended attribute names are not NUL-terminated. Handle
appropriately.

Correct the EXTATTR_BASE_LENGTH() macro, which handled ea_namelength ==
one (mod eight) extended attributes incorrectly.

PR: 216127
Reported by: dewayne at heuristicsystems.com.au
Reviewed by: kib@
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D9208
18:14:50 - r312392
(2 days 10 hours ago)
by ngie
Affects:  /head/lib/libwrap/Makefile
Use SRCTOP instead of .CURDIR-relative path in .PATH directive

MFC after: 3 weeks
Sponsored by: Dell EMC Isilon
17:55:49 - r312391
(2 days 10 hours ago)
by cem
Affects:  /head/share/man/man5/fs.5
/head/sys/ufs/ufs/extattr.h
ufs/extattr.h: Fix documentation of ea_name termination

The ea_name string is not nul-terminated. Correct the documentation.

Because the subsequent field is padded to 8 bytes, and the padding is
zeroed, the ea_name string will appear to be nul-terminated whenever the
length isn't exactly one (mod eight).

This was introduced in r167010 (2007).

Additionally, mark the length fields as unsigned. This particularly
matters for the single byte ea_namelength field, which can represent
extended attribute names up to 255 bytes long.

No functional change.

PR: 216127
Reported by: dewayne at heuristicsystems.com.au
Reviewed by: kib@
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D9206
17:55:08 - r312390
(2 days 10 hours ago)
by mjg
Affects:  /head/sys/kern/kern_sx.c
/head/sys/sys/sx.h
sx: reduce lock accesses similarly to r311172

Discussed with: jhb
Tested by: pho (previous version)
17:53:57 - r312389
(2 days 10 hours ago)
by mjg
Affects:  /head/sys/kern/kern_rwlock.c
/head/sys/sys/rwlock.h
rwlock: reduce lock accesses similarly to r311172

Discussed with: jhb
Tested by: pho (previous version)
17:21:28 - r312388
(2 days 10 hours ago)
by glebius
Affects:  /head/sys/sys/socket.h
Format and sort MSG_* flags, to prevent misedits in future. There is no
functional change.
17:09:22 - r312387
(2 days 11 hours ago)
by glebius
Affects:  /head/sys/sys/socket.h
Fix regression from r311568: collision of MSG_NOSIGNAL with MSG_MORETOCOME
lead to delayed send of data sent with sendto(MSG_NOSIGNAL).

Submitted by: rrs
15:23:40 - r312386
(2 days 12 hours ago)
by pfg
Affects: 
(3 files)
/stable/10/usr.bin/rpcgen/rpc_cout.c
/stable/10/usr.bin/rpcgen/rpc_svcout.c
MFC r311947, r311981:

rpcgen(1): Avoid unused variable warning on generated code.

Avoid "unused variable 'i'" warnings in generated .c files by only
emitting the "int i;" for non-opaque arrays. Opaque arrays use
xdr_opaque() rather than iterating over the array.

Obtained from: OpenBSD (CVS rev 1.28)

rpcgen(1): Check getrlimit() return for generated code.

Obtained from: NetBSD (CVS rev 1.27, 1.28)
15:22:54 - r312385
(2 days 12 hours ago)
by pfg
Affects: 
(3 files)
/stable/11/usr.bin/rpcgen/rpc_cout.c
/stable/11/usr.bin/rpcgen/rpc_svcout.c
MFC r311947, r311981:

rpcgen(1): Avoid unused variable warning on generated code.

Avoid "unused variable 'i'" warnings in generated .c files by only
emitting the "int i;" for non-opaque arrays. Opaque arrays use
xdr_opaque() rather than iterating over the array.

Obtained from: OpenBSD (CVS rev 1.28)

rpcgen(1): Check getrlimit() return for generated code.

Obtained from: NetBSD (CVS rev 1.27, 1.28)
14:41:59 - r312384
(2 days 13 hours ago)
by br
Affects: 
(4 files)
/head/sys/boot/fdt/dts/mips/*
Remove empty ranges property so beri_simplebus can be attached again.

Sponsored by: DARPA, AFRL
14:23:43 - r312383
(2 days 13 hours ago)
by sbruno
Affects:  /head/sys/dev/e1000/if_em.h
ugh, device_t not device_t *

Reported by: hps
14:14:00 - r312382
(2 days 14 hours ago)
by avg
Affects: 
(4 files)
/stable/10/include/paths.h
/stable/10/lib/libkvm/kvm.c
/stable/10/lib/libkvm/kvm_private.h
MFC r310630: libkvm: support access to vmm guest memory, allow writes to
fwmem and vmm

Sponsored by: Panzura
14:13:28 - r312381
(2 days 14 hours ago)
by avg
Affects: 
(4 files)
/stable/11/include/paths.h
/stable/11/lib/libkvm/kvm.c
/stable/11/lib/libkvm/kvm_private.h
MFC r310630: libkvm: support access to vmm guest memory, allow writes to
fwmem and vmm

Sponsored by: Panzura
13:57:29 - r312380
(2 days 14 hours ago)
by sbruno
Affects:  /head/sys/dev/e1000/if_em.h
Change device type to unbreak drm-next testing and builds.

Submitted by: Matt Macy <mmacy@nextbsd.org>
13:31:17 - r312379
(2 days 14 hours ago)
by hselasky
Affects: 
(24 files)
/head/lib/libc/sys/getsockopt.2
/head/sbin/ifconfig/*
/head/sys/*
Implement kernel support for hardware rate limited sockets.

- Add RATELIMIT kernel configuration keyword which must be set to
enable the new functionality.

- Add support for hardware driven, Receive Side Scaling, RSS aware, rate
limited sendqueues and expose the functionality through the already
established SO_MAX_PACING_RATE setsockopt(). The API support rates in
the range from 1 to 4Gbytes/s which are suitable for regular TCP and
UDP streams. The setsockopt(2) manual page has been updated.

- Add rate limit function callback API to "struct ifnet" which supports
the following operations: if_snd_tag_alloc(), if_snd_tag_modify(),
if_snd_tag_query() and if_snd_tag_free().

- Add support to ifconfig to view, set and clear the IFCAP_TXRTLMT
flag, which tells if a network driver supports rate limiting or not.

- This patch also adds support for rate limiting through VLAN and LAGG
intermediate network devices.

- How rate limiting works:

1) The userspace application calls setsockopt() after accepting or
making a new connection to set the rate which is then stored in the
socket structure in the kernel. Later on when packets are transmitted
a check is made in the transmit path for rate changes. A rate change
implies a non-blocking ifp->if_snd_tag_alloc() call will be made to the
destination network interface, which then sets up a custom sendqueue
with the given rate limitation parameter. A "struct m_snd_tag" pointer is
returned which serves as a "snd_tag" hint in the m_pkthdr for the
subsequently transmitted mbufs.

2) When the network driver sees the "m->m_pkthdr.snd_tag" different
from NULL, it will move the packets into a designated rate limited sendqueue
given by the snd_tag pointer. It is up to the individual drivers how the rate
limited traffic will be rate limited.

3) Route changes are detected by the NIC drivers in the ifp->if_transmit()
routine when the ifnet pointer in the incoming snd_tag mismatches the
one of the network interface. The network adapter frees the mbuf and
returns EAGAIN which causes the ip_output() to release and clear the send
tag. Upon next ip_output() a new "snd_tag" will be tried allocated.

4) When the PCB is detached the custom sendqueue will be released by a
non-blocking ifp->if_snd_tag_free() call to the currently bound network
interface.

Reviewed by: wblock (manpages), adrian, gallatin, scottl (network)
Differential Revision: https://reviews.freebsd.org/D3687
Sponsored by: Mellanox Technologies
MFC after: 3 months
13:27:24 - r312378
(2 days 14 hours ago)
by andrew
Affects:  /head/sys/cddl/dev/fbt/arm/fbt_isa.c
Use the kernel stack in the ARM FBT DTrace provider. This is used to find
the fifth argument to functions being traced, however there was an error
where the userspace stack was being used. This may be invalid leading to
a kernel panic if this address is unmapped.

Submitted by: Graeme Jenkinson <graeme.jenkinson@cl.cam.ac.uk>
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D9229
10:21:06 - r312377
(2 days 17 hours ago)
by ae
Affects:  /projects/ipsec/sys/netipsec/ipsec_output.c
Do not require the presence of tunnel mode IPsec request for outbound
security policies used by IPSEC_FORWARD() method.

The rationale for this requirement was the need for handling encrypted
replies. We can handle replies, only if they are destined for our
addresses. And since we are doing forwarding, this usually means that
source address of packet is not our own. But some users reported, that
they are doing source address translation for forwarded packets. In this
case pfil(9) does NAT and source address becomes our own, then packet
is sent to forwarding routine, where it can be matched by security policy
with transport mode IPsec request.
09:46:02 - r312376
(2 days 18 hours ago)
by ngie
Affects:  /projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/lib/libc/sys/t_getcontext.c
Add back #else block accidentally removed in r312145

This fixes the build with !(amd64|arm64|mips*)
08:20:36 - r312375
(2 days 19 hours ago)
by delphij
Affects: 
(39 files)
/stable/10/contrib/zlib
/stable/10/lib/*
/stable/10/usr.bin/minigzip/Makefile
MFC r311275: Restructure libz.
08:18:07 - r312374
(2 days 19 hours ago)
by tsoome
Affects:  /head/sys/boot/efi/libefi/devpath.c
/head/sys/boot/efi/libefi/efinet.c
/head/sys/boot/efi/libefi/efipart.c
loader: efi devpath api usage should be more aware of NULL pointers

As the efi_devpath_last_node() and efi_devpath_trim() can return NULL
pointers, the consumers of this API should check the the NULL pointers.

Same for efinet_dev_init() using calloc().

Reported by: Robert Mustacchi <rm@joyent.com>
Reviewed by: jhb, allanjude
Approved by: allanjude (mentor)
Differential Revision: https://reviews.freebsd.org/D9203
08:11:18 - r312373
(2 days 20 hours ago)
by delphij
Affects: 
(39 files)
/stable/11/contrib/zlib
/stable/11/lib/*
/stable/11/usr.bin/minigzip/Makefile
MFC r311275: Restructure libz.
05:36:09 - r312372
(2 days 22 hours ago)
by ngie
Affects: 
(3 files)
/projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/kernel/arch/amd64/t_ptrace_wait.c
/projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/lib/libpthread/h_common.h
Merge ^/vendor/NetBSD/tests/dist@r312370
05:35:34 - r312371
(2 days 22 hours ago)
by ngie
Affects:  /vendor/NetBSD/tests/01.17.2017_21.34
Tag the "01.17.2017_21.34" snapshot of ^/vendor/NetBSD/tests
05:32:50 - r312370
(2 days 22 hours ago)
by ngie
Affects:  /vendor/NetBSD/tests/dist/kernel/arch/amd64/t_ptrace_wait.c
/vendor/NetBSD/tests/dist/lib/libpthread/h_common.h
More test updates from upstream

Nothing much to note -- this looks like a good place to stop
03:42:21 - r312369
(3 days ago)
by jhibbits
Affects:  /head/sys/powerpc/aim/trap_subr32.S
Use the explicit expanded form of cmp.

Clang apparently requires the explicit form of this instruction, and rejects
uses which ignore the optional cmpD register. This was the only use of the
shorthand form of the instruction, so just fix it up to match the others.

PR: kern/215681
Submitted by: Mark Millard
Reported by: Mark Millard <markmi _AT_ dsl-only.net>
MFC after: 2 weeks
03:35:42 - r312368
(3 days ago)
by np
Affects:  /head/sys/dev/cxgbe/tom/t4_listen.c
cxgbe/tom: Fix a case where do_pass_accept_req wasn't properly restoring
the VNET. This should have been in r311949.

MFC after: 2 days
02:57:22 - r312367
(3 days 1 hour ago)
by yongari
Affects: 
(4 files)
/stable/10/sys/dev/sound/pci/hda/hdaa_patches.c
/stable/10/sys/dev/sound/pci/hda/hdac.h
/stable/10/sys/dev/sound/pci/hda/hdacc.c
MFC r309527-309528:
r309527:
  Recognize RealTek ALC1150 7.1 channel HD audio codec.

r309528:
  Fix too low volume on MSI H170 GAMING M3 board by poking vendor
  specific COEF.
02:56:24 - r312366
(3 days 1 hour ago)
by yongari
Affects: 
(4 files)
/stable/11/sys/dev/sound/pci/hda/hdaa_patches.c
/stable/11/sys/dev/sound/pci/hda/hdac.h
/stable/11/sys/dev/sound/pci/hda/hdacc.c
MFC r309527-309528:
r309527:
  Recognize RealTek ALC1150 7.1 channel HD audio codec.

r309528:
  Fix too low volume on MSI H170 GAMING M3 board by poking vendor
  specific COEF.
02:41:13 - r312365
(3 days 1 hour ago)
by yongari
Affects: 
(2 files)
/stable/10/share/man/man9/ifnet.9
MFC r302548:
  Belatedly remove CSUM_IP_FRAGS and CSUM_FRAGMENT offloading
  capabilities. It was removed in r243624 and r254804/r271006
  respectively.
  This file and mbuf(9) needs updates for other offloading
  capabilities(i.e. CSUM_SCTP and CSUM_TSO).
02:40:18 - r312364
(3 days 1 hour ago)
by yongari
Affects: 
(2 files)
/stable/11/share/man/man9/ifnet.9
MFC r302548:
  Belatedly remove CSUM_IP_FRAGS and CSUM_FRAGMENT offloading
  capabilities. It was removed in r243624 and r254804/r271006
  respectively.
  This file and mbuf(9) needs updates for other offloading
  capabilities(i.e. CSUM_SCTP and CSUM_TSO).
02:22:07 - r312363
(3 days 1 hour ago)
by yongari
Affects: 
(2 files)
/stable/10/sys/dev/rl/if_rl.c
MFC r295736,295738:
r295736:
  Remove duplicated check.

r295738:
  Fix a bug introduced in r295736
  TX descriptor address should be updated for valid chain.
02:16:17 - r312362
(3 days 1 hour ago)
by yongari
Affects: 
(8 files)
/stable/10/sys/dev/*
MFC r295735:
  Fix variable assignment.
01:58:33 - r312361
(3 days 2 hours ago)
by yongari
Affects: 
(2 files)
/stable/10/share/man/man4/alc.4
MFC r304576:
  Add Killer E2400 to the supported hardware list.
01:57:13 - r312360
(3 days 2 hours ago)
by yongari
Affects: 
(2 files)
/stable/11/share/man/man4/alc.4
MFC r304576:
  Add Killer E2400 to the supported hardware list.
01:53:07 - r312359
(3 days 2 hours ago)
by yongari
Affects: 
(5 files)
/stable/10/sys/dev/alc/*
/stable/10/sys/dev/pci/pci.c
MFC r304574-304575,304584:
r304574:
  Correct DMA channel number selection on AR816x family of
  controllers. For Gigabit Ethernet version of AR816x, AR813x/AR815x
  except L1D controller, use vendor recommended ASPM parameters.
  While here, increase alc_dma_burst array size. Broken H/W can
  return bogus value in theory.

r304575:
  Add Killer E2400 Gigabit Ethernet support.
  It seems Killer E2200/E2400 has a BIOS misconfiguration or silicon
  bug which triggers DMA write errors when driver uses advertised
  maximum payload size. Force the maximum payload size to 128 bytes
  in DMA configuration.
  This change should fix occasional DMA write errors reported on
  Killer E2200.

r304584:
  Add a missing change in r304575.
01:52:04 - r312358
(3 days 2 hours ago)
by yongari
Affects: 
(5 files)
/stable/11/sys/dev/alc/*
/stable/11/sys/dev/pci/pci.c
MFC r304574-304575,304584:
r304574:
  Correct DMA channel number selection on AR816x family of
  controllers. For Gigabit Ethernet version of AR816x, AR813x/AR815x
  except L1D controller, use vendor recommended ASPM parameters.
  While here, increase alc_dma_burst array size. Broken H/W can
  return bogus value in theory.

r304575:
  Add Killer E2400 Gigabit Ethernet support.
  It seems Killer E2200/E2400 has a BIOS misconfiguration or silicon
  bug which triggers DMA write errors when driver uses advertised
  maximum payload size. Force the maximum payload size to 128 bytes
  in DMA configuration.
  This change should fix occasional DMA write errors reported on
  Killer E2200.

r304584:
  Add a missing change in r304575.
2017 - 01 - 17   (4 days ago)
23:55:10 - r312357
(3 days 4 hours ago)
by ngie
Affects: 
(3 files)
/stable/10/sys/cam/scsi/scsi_pass.c
/stable/10/sys/modules/cam/Makefile
MFC r299864,r303166:

r299864 (by markj):

opt_kdtrace.h is not needed for SDT probes as of r258541.

r303166 (by imp):

Add opt_ddb.h.
23:47:37 - r312356
(3 days 4 hours ago)
by ngie
Affects: 
(2 files)
/stable/11/sys/modules/cam/Makefile
MFC r303166:
r303166 (by imp):

Add opt_ddb.h.
22:05:52 - r312355
(3 days 6 hours ago)
by ed
Affects: 
(18 files)
/head/sys/*
Catch up with changes to structure member names.

Pointer/length pairs are now always named ${name} and ${name}_len.
22:05:01 - r312354
(3 days 6 hours ago)
by ed
Affects: 
(10 files)
/head/sys/compat/cloudabi32/*
/head/sys/compat/cloudabi64/*
Regenerate sources based on the system call tables.
22:03:08 - r312353
(3 days 6 hours ago)
by ed
Affects: 
(5 files)
/head/sys/contrib/cloudabi/*
Sync in the latest CloudABI generated source files.

Languages like C++17 and Go provide direct support for slice types:
pointer/length pairs. The CloudABI generator now has more complete for
this, meaning that for the C binding, pointer/length pairs now use an
automatic naming scheme of ${name} and ${name}_len.

Apart from this change and some reformatting, the ABI definitions are
identical. Binary compatibility is preserved entirely.
22:02:22 - r312352
(3 days 6 hours ago)
by lifanov
Affects: 
(2 files)
/stable/10/sys/dev/kbd/kbd.c
MFC r311650

Restore priority value for OGIO_KEYMAP

PR: 206678
Submitted by: ecturt@gmail.com
Reviewed by: cem
Approved by: cem, matthew (mentor)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D5095
22:01:33 - r312351
(3 days 6 hours ago)
by lifanov
Affects: 
(2 files)
/stable/11/sys/dev/kbd/kbd.c
MFC r311650

Restore priority value for OGIO_KEYMAP

PR: 206678
Submitted by: ecturt@gmail.com
Reviewed by: cem
Approved by: cem, matthew (mentor)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D5095
21:12:21 - r312350
(3 days 7 hours ago)
by bdrewery
Affects:  /head/sys/conf/kern.pre.mk
Don't compute MPATH during install.

This saves time when building over NFS. Nothing should be building during
this phase anyhow.

Sponsored by: Dell EMC Isilon
19:19:29 - r312349
(3 days 8 hours ago)
by gonzo
Affects: 
(4 files)
/stable/11/sys/boot/efi/Makefile.inc
/stable/11/sys/boot/efi/loader/arch/arm/ldscript.arm
/stable/11/sys/boot/efi/loader/arch/arm/start.S
MFC r311888, r311890-r311891

r311888:
[efi] Fix off-by-one error in ARM .bss zeroing code in loader's _start

__bss_end should not be included in .bss zeroing code. Otherwise first 4
bytes of the section that follows .bss (in loader's case it's .sdata) are
overwritten by zero.

Reviewed by: andrew
Differential Revision: https://reviews.freebsd.org/D9108

r311890:
[efi] Fix .rel.data.* being erroneously merged into .data on ARM

Fix section pattern code to exclude .rel.data.* sections from being
merged into .data. Otherwise relocations in those sections are lost
in final binary

Reviewed by: andrew
Differential Revision: https://reviews.freebsd.org/D9108

r311891:
[efi] Build EFI bits with -fPIC on ARM

clang 3.9.0 without -fPIC generates absolute jump table for
switch/case statement which trips boot1.efi and loader.efi
on ARM platform.

Reviewed by: andrew
Differential Revision: https://reviews.freebsd.org/D9108
18:32:47 - r312348
(3 days 9 hours ago)
by mav
Affects:  /head/sys/cam/ctl/ctl.c
/head/sys/cam/ctl/ctl_io.h
/head/sys/cam/ctl/ctl_tpc.c
Remove writing 'residual' field of struct ctl_scsiio.

This field has no practical use and never readed. Initiators already
receive respective residual size from frontends. Removed field had
different semantics, which looks useless, and was never passed through
by any frontend.

While there, fix kern_data_resid field support in case of HA, missed in
r312291.

MFC after: 13 days
18:04:13 - r312347
(3 days 10 hours ago)
by loos
Affects:  /head/sys/boot/fdt/dts/arm/ufw.dts
The write-protect is not wired on uFW, disable it to allow writes to SD
card.

Sponsored by: Rubicon Communications, LLC (Netgate)
17:41:14 - r312346
(3 days 10 hours ago)
by loos
Affects:  /head/sys/dev/sdhci/sdhci_fdt_gpio.c
Set the the wp_disabled flag when asked to.

While here, add the missing new line.

MFC after: 3 days
Sponsored by: Rubicon Communications, LLC (Netgate)
16:20:21 - r312345
(3 days 11 hours ago)
by ae
Affects:  /projects/ipsec/sys/netipsec/ipsec.c
/projects/ipsec/sys/netipsec/udpencap.c
Make the kernel smarter with regards to natt_cksum_policy sysctl variable.

Now natt_cksum_policy variable controls only two behaviors:
0 - automatically handle checksums, and any other value - fully recompute
checksums. When checksums are handled automatically and if IKEd has
specified original IP addresses (i.e. checksum delta is known), checksums
will be computed incrementally. If IKEd didn't configured original
addresses, UDP checksums will be reset to zero and TCP checksums will be
ignored. When natt_cksum_policy isn't zero, checksums will be always
fully recomputed.

This allows to have NAT-T support for transport mode out of the box without
any configuration from the user side.
14:52:48 - r312344
(3 days 13 hours ago)
by sbruno
Affects:  /head/sys/cam/ata/ata_da.c
/head/sys/cam/scsi/scsi_da.c
Add 4k quirk for Micron 5100 and Intel S3610 SSDs

Submitted by: Jason Wolfe <j@nitrology.com>
MFH: 1 week
Sponsored by: Limelight Networks
Differential Revision: https://reviews.freebsd.org/D9209
14:13:14 - r312343
(3 days 14 hours ago)
by mav
Affects:  /head/sys/cam/ctl/ctl_frontend_iscsi.c
Improve error message on duplicate iSCSI port.

MFC after: 2 weeks
12:43:55 - r312342
(3 days 15 hours ago)
by ae
Affects:  /projects/ipsec/sys/netipsec/key.c
RFC2367 doesn't allow update anything but state and lifetimes for SAs in
MATURE state.

Do not require presence of SADB_EXT_KEY_ENCRYPT and SADB_EXT_KEY_AUTH
in the general checks for SADB_UPDATE message. They only required for
MATURE SAs. For LARVAL SAs on the contrary these headers are not allowed.
10:50:28 - r312341
(3 days 17 hours ago)
by ae
Affects:  /head/sys/netpfil/ipfw/ip_fw_private.h
Initialize IPFW static rules rmlock with RM_RECURSE flag.

This lock was replaced from rwlock in r272840. But unlike rwlock, rmlock
doesn't allow recursion on rm_rlock(), so at this time fix this with
RM_RECURSE flag. Later we need to change ipfw to avoid such recursions.

PR: 216171
Reported by: Eugene Grosbein
MFC after: 1 week
10:34:31 - r312340
(3 days 17 hours ago)
by kib
Affects: 
(2 files)
/stable/10/libexec/rtld-elf/rtld_lock.c
MFC r311879:
Use ANSI C definitions, update comment.
10:32:27 - r312339
(3 days 17 hours ago)
by kib
Affects: 
(2 files)
/stable/11/libexec/rtld-elf/rtld_lock.c
MFC r311879:
Use ANSI C definitions, update comment.
08:15:10 - r312338
(3 days 19 hours ago)
by hselasky
Affects: 
(5 files)
/head/share/man/man4/usb_quirk.4
/head/sys/dev/sound/usb/uaudio.c
/head/sys/dev/usb/*
Add USB audio support for S/PDIF output with C-Media CM6206 devices.

Submitted by: Julien Nadeau <vedge@hypertriton.com>
PR: 216131
MFC after: 1 week
07:43:37 - r312337
(3 days 20 hours ago)
by np
Affects:  /stable/10/sys/dev/cxgbe/tom/t4_ddp.c
Fix mismerge in r312117. This is a direct commit to stable/10.
07:11:46 - r312336
(3 days 21 hours ago)
by bapt
Affects: 
(118 files)
/stable/11/share/*
/stable/11/tools/tools/locale/etc/*
MFC r310201:

Update locales cldr to v30.0.3 and unicode to 9.0.0

Relnotes: yes
05:55:47 - r312335
(3 days 22 hours ago)
by delphij
Affects: 
(12 files)
/head/contrib/zlib/*
MFV r312333: zlib 1.2.11.

MFC after: 1 month
05:47:54 - r312334
(3 days 22 hours ago)
by delphij
Affects:  /vendor/zlib/1.2.11
Tag zlib 1.2.11.
05:47:05 - r312333
(3 days 22 hours ago)
by delphij
Affects: 
(40 files)
/vendor/zlib/dist/*
Vendor import of zlib 1.2.11.
03:58:37 - r312332
(4 days ago)
by ngie
Affects:  /head/lib/libc/regex/grot/Makefile
Use SRCTOP where possible and use :H to manipulate .CURDIR to get rid of
unnecessarily long relative path .PATH values with make

MFC after: 1 days
Sponsored by: Dell EMC Isilon
03:52:57 - r312331
(4 days ago)
by glebius
Affects:  /head/contrib/bsnmp/snmpd/trans_udp.c
/head/contrib/bsnmp/snmpd/trans_udp.h
Fix regression from r310655, which broke operation of bsnmpd if it is bound
to a non-wildcard address. As documented in ip(4), doing sendmsg(2) with
IP_SENDSRCADDR on a socket that is bound to non-wildcard address is
completely different to using this control message on a wildcard one.

A fix is to add a bool to mark whether we did setsockopt(IP_RECVDSTADDR)
on the socket, and use IP_SENDSRCADDR control message only if we did.

While here, garbage collect absolutely useless udp_recv() function that
establishes some structures on stack to never use them later.
03:44:45 - r312330
(4 days ago)
by ngie
Affects:  /head/usr.sbin/bsnmpd/modules/Makefile
Add smilint target to subdir targets so "make smilint" here will run
the smilint target in subdirs

While here, convert a path that's .CURDIR relative to SRCTOP

MFC after: 1 week
Sponsored by: Dell EMC Isilon
03:41:23 - r312329
(4 days ago)
by ngie
Affects:  /head/usr.sbin/bsnmpd/modules/snmp_hostres/Makefile
/head/usr.sbin/bsnmpd/modules/snmp_mibII/Makefile
Remove ad hoc smilint targets made standard in bsd.snmpmod.mk in r312328

MFC after: 1 week
X-MFC with: r312328
Sponsored by: Dell EMC Isilon
03:38:49 - r312328
(4 days ago)
by ngie
Affects:  /head/share/mk/bsd.README
/head/share/mk/bsd.snmpmod.mk
Add a make target (smilint) for running smilint tool against BMIBS

Running smilint against MIB definitions is useful in finding
functional problems with MIB definitions/descriptions.

This is inspired by the smilint targets defined in
usr.sbin/bsnmpd/modules/{snmp_hostres,snmp_mibII}/Makefile

Document all of the variables that are involved in running the
smilint target, as well as all of the prerequisites to running
it.

MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D9099
01:59:42 - r312327
(4 days 2 hours ago)
by ngie
Affects: 
(2 files)
/stable/11/sys/kern/subr_unit.c
MFC r312113:

Clean up trailing whitespace
01:58:59 - r312326
(4 days 2 hours ago)
by ngie
Affects: 
(2 files)
/stable/11/contrib/netbsd-tests/fs/nfs/nfsservice/rpcbind
MFC r312122:

Remove contrib/netbsd-tests/fs/nfs/nfsservice/rpcbind

This should have been pruned in r305358
01:58:50 - r312325
(4 days 2 hours ago)
by ngie
Affects: 
(2 files)
/stable/10/sys/kern/subr_unit.c
MFC r312113:

Clean up trailing whitespace
01:57:42 - r312324
(4 days 2 hours ago)
by ngie
Affects: 
(2 files)
/stable/10/contrib/netbsd-tests/fs/nfs/nfsservice/rpcbind
MFC r312122:

Remove contrib/netbsd-tests/fs/nfs/nfsservice/rpcbind

This should have been pruned in r305358
01:56:49 - r312323
(4 days 2 hours ago)
by ngie
Affects: 
(2 files)
/stable/10/tests/sys/file/ftruncate_test.c
MFC r312111:

Remove unused vars to fix -Wunused issues
01:56:44 - r312322
(4 days 2 hours ago)
by ngie
Affects: 
(2 files)
/stable/11/tests/sys/file/ftruncate_test.c
MFC r312111:

Remove unused vars to fix -Wunused issues
01:55:14 - r312321
(4 days 2 hours ago)
by ngie
Affects: 
(2 files)
/stable/11/tests/sys/kern/execve/execve_helper.c
MFC r312118,r312121:

r312118:

Fix -Wformat issue with zero-length format string passed to err(3)

Tested with: clang, gcc 4.2.1, gcc 4.9

r312121:

Follow up to r312118

State that execve failed instead of just printing out the program name
and strerror(errno) via err(3).
01:55:05 - r312320
(4 days 2 hours ago)
by ngie
Affects: 
(2 files)
/stable/10/tests/sys/kern/execve/execve_helper.c
MFC r312118,r312121:

r312118:

Fix -Wformat issue with zero-length format string passed to err(3)

Tested with: clang, gcc 4.2.1, gcc 4.9

r312121:

Follow up to r312118

State that execve failed instead of just printing out the program name
and strerror(errno) via err(3).
01:52:58 - r312319
(4 days 2 hours ago)
by ngie
Affects: 
(2 files)
/stable/11/sys/kern/subr_unit.c
MFC r312112:

Fix -Wunused on gcc 4.9 (x was set but not used)
01:29:03 - r312318
(4 days 2 hours ago)
by emaste
Affects: 
(14 files)
/stable/11/sys/boot/*
MFC r310225: Reduce boot loader version string duplication

Instead of repeating "%s, Revision %s" "(%s %s)" in each loader, just
create the full version string in vers.c
00:48:02 - r312317
(4 days 3 hours ago)
by avos
Affects:  /head/sys/conf/files
Add sys/dev/rtwn/rtl8821a/usb/r21au_dfs.c into sys/conf/files

Reported by: adrian
00:39:09 - r312316
(4 days 3 hours ago)
by gonzo
Affects:  /head/sys/arm/xilinx/zy7_ehci.c
[zynq] Fix panic on USB PHY initialization failure

The Zedboard has a hardware bug where initialization of the USB PHY
occasionally fails on boot-up. Fix regression in -CURRENT when
kernel panics on such occasion. 11-RELEASE branch works fine

PR: 215862
Submitted by: Thomas Skibo <thoma555-bsd@yahoo.com>
00:35:23 - r312315
(4 days 3 hours ago)
by avos
Affects: 
(20 files)
/head/sys/dev/rtwn/*
rtwn: export more stats to net80211

Setup more ieee80211_rx_stats fields for received frames:
 - pktflags:
  * IEEE80211_RX_F_FAIL_FCSCRC;
  * IEEE80211_RX_F_AMPDU;
  * IEEE80211_RX_F_AMPDU_MORE;
  * IEEE80211_RX_F_SHORTGI;
 - rate flags (CCK, OFDM, HT);
 - width;
 - phytype;
 - rate;
 - rx_tsf;
 - rssi;
 - nf;
 - ieee, freq (RTL8188EU only, when ht40 support is disabled).

Tested with:
 - RTL8188CE, RTL8188EU, RTL8821AU (STA / AP modes, i386)
 - (by kevlo) RTL8188EU and RTL8812AU (amd64)

Reviewed by: adrian (previous version), kevlo
Differential Revision: https://reviews.freebsd.org/D9021
2017 - 01 - 16   (5 days ago)
20:57:01 - r312314
(4 days 7 hours ago)
by tsoome
Affects:  /head/sys/boot/efi/include/efidevp.h
/head/sys/boot/efi/libefi/devpath.c
loader: move device path definitions to include/efidevp.h

No functional change, only moving uuid and protocol bits to include/efidevp.h

Reviewed by: imp, jhb
Approved by: imp (mentor)
Differential Revision: https://reviews.freebsd.org/D9192
20:46:40 - r312313
(4 days 7 hours ago)
by ngie
Affects:  /projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/lib/libc/stdlib/h_getopt.c
/projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/lib/libc/stdlib/h_getopt_long.c
Reintroduce libutil.h #include for FreeBSD only for fparseln
20:43:30 - r312312
(4 days 7 hours ago)
by ngie
Affects:  /projects/netbsd-tests-upstream-01-2017/lib/libnetbsd/stdio.h
Remove util.h (libutil.h) pollution from stdio.h compat header

Introducing libutil.h causes grief later because hexdump(3) in FreeBSD
and contrib/netbsd-tests/lib/libc/db/h_hash.c conflict.

I'm working adapting h_hash.c, but for now, unbreak the build in the
easiest way possible.
20:34:42 - r312311
(4 days 7 hours ago)
by emaste
Affects:  /head/sys/kern/kern_synch.c
disambiguate msleep KASSERT diagnostics

Previously "panic: msleep" could happen for a few different reasons.
Break the KASSERTs out into individual cases to identify the failing
condition. Found during the investigation that resulted in r308288.

Reviewed by: kib, jhb
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D8604
20:29:28 - r312310
(4 days 7 hours ago)
by ngie
Affects:  /projects/netbsd-tests-upstream-01-2017/lib/libutil/hexdump.3
Clarify #includes for hexdump vs sbuf_hexdump
19:56:27 - r312309
(4 days 8 hours ago)
by dim
Affects: 
(129 files)
/projects/clang400-import/*
Merge ^/head r312207 through r312308.
19:53:18 - r312308
(4 days 8 hours ago)
by dim
Affects:  /projects/clang400-import/contrib/llvm/include/llvm/Analysis/AssumptionCache.h
/projects/clang400-import/contrib/llvm/lib/Analysis/AssumptionCache.cpp
Pull in r292133 from upstream llvm trunk (by Hal Finkel):

  Fix use-after-free bug in AffectedValueCallbackVH::allUsesReplacedWith

  When transferring affected values in the cache from an old value,
  identified by the value of the current callback, to the specified new
  value we might need to insert a new entry into the DenseMap which
  constitutes the cache. Doing so might delete the current callback
  object. Move the copying logic into a new function, a member of the
  assumption cache itself, so that we don't run into UB should the
  callback handle itself be removed mid-copy.

  Differential Revision: https://reviews.llvm.org/D28749

This should fix crashes when building lld (as part of the llvmXY ports).

Reported by: jbeich
PR: 216117
19:35:19 - r312307
(4 days 8 hours ago)
by markj
Affects:  /head/sys/netinet6/in6_proto.c
Improve some of the sysctl descriptions added in r299827.

Submitted by: Marie Helene Kvello-Aune <marieheleneka@gmail.com>
  (original version)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D5336
19:04:57 - r312306
(4 days 9 hours ago)
by ngie
Affects: 
(111 files)
/projects/netbsd-tests-upstream-01-2017/*
MFhead@r312305
19:01:41 - r312305
(4 days 9 hours ago)
by sbruno
Affects:  /head/sys/kern/subr_gtaskqueue.c
Remove Assert that seems to be hit in various configurations during
normal operations.
18:52:05 - r312304
(4 days 9 hours ago)
by ngie
Affects:  /projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/lib/libpthread/t_join.c
Remove explicit pthread_np.h #include, per change in libnetbsd@r312303
18:51:27 - r312303
(4 days 9 hours ago)
by ngie
Affects:  /projects/netbsd-tests-upstream-01-2017/lib/libnetbsd/pthread.h
libnetbsd: add pthread.h compat header

FreeBSD has pthread_np.h, which is used for consolidating all non-POSIX
functions, but NetBSD doesn't have this concept. Make _np functions work
seamlessly when ported from NetBSD to FreeBSD
18:44:40 - r312302
(4 days 9 hours ago)
by ngie
Affects: 
(4 files)
/projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/lib/libpthread/*
Diff reduce with upstream and prep for next set of content pushes
18:36:38 - r312301
(4 days 9 hours ago)
by ngie
Affects:  /projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/lib/libc/rpc/t_rpc.c
Diff reduce with upstream by using macros and logic integrated in
later revisions of the test
18:17:53 - r312300
(4 days 9 hours ago)
by ngie
Affects:  /projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/lib/libc/sys/t_mlock.c
Use sys/param.h instead of sys/types.h to prep for upstreaming to NetBSD
18:04:14 - r312299
(4 days 10 hours ago)
by ngie
Affects:  /projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/lib/libc/sys/t_mmap.c
Remove unnecessary whitespace diff
17:53:58 - r312298
(4 days 10 hours ago)
by ngie
Affects:  /projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/fs/tmpfs/t_mknod.sh
/projects/netbsd-tests-upstream-01-2017/tests/sys/fs/tmpfs/Makefile
Use _SED instead of hacking tests rewriting mknod ... p as mkfifo

Similar to r312297
17:49:53 - r312297
(4 days 10 hours ago)
by ngie
Affects:  /projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/fs/tmpfs/t_readdir.sh
/projects/netbsd-tests-upstream-01-2017/tests/sys/fs/tmpfs/Makefile
Use _SED to rewrite mknod ... p command as mkfifo instead of
adding an unnecessary diff to the test
17:46:38 - r312296
(4 days 10 hours ago)
by sobomax
Affects: 
(12 files)
/head/lib/libc/sys/getsockopt.2
/head/sys/*
/head/tools/regression/sockets/*
Add a new socket option SO_TS_CLOCK to pick from several different clock
sources to return timestamps when SO_TIMESTAMP is enabled. Two additional
clock sources are:

o nanosecond resolution realtime clock (equivalent of CLOCK_REALTIME);
o nanosecond resolution monotonic clock (equivalent of CLOCK_MONOTONIC).

In addition to this, this option provides unified interface to get bintime
(equivalent of using SO_BINTIME), except it also supported with IPv6 where
SO_BINTIME has never been supported. The long term plan is to depreciate
SO_BINTIME and move everything to using SO_TS_CLOCK.

Idea for this enhancement has been briefly discussed on the Net session
during dev summit in Ottawa last June and the general input was positive.

This change is believed to benefit network benchmarks/profiling as well
as other scenarios where precise time of arrival measurement is necessary.

There are two regression test cases as part of this commit: one extends unix
domain test code (unix_cmsg) to test new SCM_XXX types and another one
implementis totally new test case which exchanges UDP packets between two
processes using both conventional methods (i.e. calling clock_gettime(2)
before recv(2) and after send(2)), as well as using setsockopt()+recv() in
receive path. The resulting delays are checked for sanity for all supported
clock types.

Reviewed by: adrian, gnn
Differential Revision: https://reviews.freebsd.org/D9171
17:43:43 - r312295
(4 days 10 hours ago)
by ngie
Affects: 
(14 files)
/projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/lib/libc/*
/projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/lib/libpthread/*
/projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/net/carp/*
Merge ^/vendor/NetBSD/tests/dist@r312294

This includes a number of accepted upstream fixes, as well as
a reimplementation of the net/carp/... testcase (which is
currently unused).
17:25:48 - r312294
(4 days 10 hours ago)
by ngie
Affects: 
(13 files)
/vendor/NetBSD/tests/dist/lib/libc/*
/vendor/NetBSD/tests/dist/lib/libpthread/*
/vendor/NetBSD/tests/dist/net/carp/*
Sync from NetBSD again to pick up more test fixes/enhancements pushed upstream
16:58:12 - r312293
(4 days 11 hours ago)
by sbruno
Affects:  /head/sys/kern/subr_gtaskqueue.c
/head/sys/sys/gtaskqueue.h
Change startup order for the no EARLY_AP_STARTUP case to initialize
gtaskqueue bits at SI_SUB_INIT_IF instead of waiting until SI_SUB_SMP
which is far too late.

Add an assertion in taskqgroup_attach() to catch startup initialization
failures in the future.

Reported by: kib bde
16:44:13 - r312292
(4 days 11 hours ago)
by ian
Affects: 
(10 files)
/head/sys/arm/arm/*
/head/sys/arm/include/*
Remove arm's cpuconf.h, and references to it, after moving a few lines from
it into pmap-v4.h where they are used. Other than those few lines of
support for different MMU types, nothing in cpuconf.h has been used in our
code for quite a while.

The file existed to set up a variety of symbols to describe the
architecture. Over the past few years we have converted all of our source
to use the new architecture symbols standardized by ARM Inc, and predefined
by both clang and gcc.

PR: 216104
16:19:55 - r312291
(4 days 11 hours ago)
by mav
Affects: 
(12 files)
/head/sys/cam/ctl/*
/head/sys/cam/scsi/scsi_all.c
Make CTL frontends report kern_data_resid for under-/overruns.

It seems like kern_data_resid was never really implemented. This change
finally does it. Now frontends update this field while transferring data,
while CTL/backends getting it can more flexibly handle the result.
At this point behavior should not change significantly, still reporting
errors on write overrun, but that may be changed later, if we decide so.

CAM target frontend still does not properly handle overruns due to CAM API
limitations. We may need to add some fields to struct ccb_accept_tio to
pass information about initiator requested transfer size(s).

MFC after: 2 weeks
15:36:36 - r312290
(4 days 12 hours ago)
by mizhka
Affects:  /head/sys/conf/files
/head/sys/dev/gpio/gpioths.c
[gpioths] new driver for temperature/humidity sensor DHT11

This patch adds driver for temperature/humidity sensor connected via GPIO.
To compile it into kernel add "device gpioths". To activate driver, use
hints (.at and .pins) for gpiobus. As result it will provide temperature &
humidity values via sysctl.

DHT11 is cheap & popular temperature/humidity sensor used via GPIO on ARM
or MIPS devices like Raspberry Pi or Onion Omega.

Reviewed by: adrian
Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D9185
15:23:55 - r312289
(4 days 12 hours ago)
by mizhka
Affects:  /head/sys/dev/spibus/spibus.c
[spibus] small code refactoring

Merge 3 sequential printf calls into one.

Reported by: rpokala
Reviewed by: rpokala, adrian
Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D8795
14:49:29 - r312288
(4 days 13 hours ago)
by emaste
Affects:  /head/libexec/rtld-elf/amd64/rtld_machdep.h
/head/libexec/rtld-elf/amd64/rtld_start.S
rtld: do not rely on a populated GOT on amd64

On rela architectures GNU BFD ld and gold store the relocation addend
in GOT entries (in addition to the relocation's r_addend field).
rtld previously relied on this to access its own _DYNAMIC symbol in
order to apply its own relocations.

However, recording addends in the GOT is not specified by the ABI,
and some versions of LLVM's LLD linker leave the GOT uninitialized on
rela architectures.

BFD ld does not populate the GOT on sparc64, and sparc64 rtld has a
machine-dependent rtld_dynamic_addr() function that returns the
_DYNAMIC address. Use the same approach on amd64, obtaining the %rip-
relative _DYNAMIC address following a suggestion from Rafael EspĂ­ndola.

Architectures other than amd64 should be addressed in future work.

PR: 214972
Reviewed by: kib
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D9180
14:31:17 - r312287
(4 days 13 hours ago)
by pho
Affects:  /user/pho/stress2/misc/procfs4.sh
Trim runtime and fix typo in comment.

Sponsored by: Dell EMC Isilon
12:17:35 - r312286
(4 days 15 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/fs/pseudofs/pseudofs_vncache.c
MFC r311815:
Forcibly remove the cached items from pseudofs vncache on module unload.
12:13:49 - r312285
(4 days 16 hours ago)
by kib
Affects: 
(3 files)
/stable/10/lib/libprocstat/Makefile
/stable/10/lib/libprocstat/Versions.def
MFC r311781:
Use standard Versions.def for libprocstat.
12:05:00 - r312284
(4 days 16 hours ago)
by kib
Affects: 
(2 files)
/stable/10/lib/libprocstat/Makefile
MFC r311780:
Use tab for indent.
11:40:53 - r312283
(4 days 16 hours ago)
by pho
Affects:  /user/pho/stress2/misc/kinfo.sh
/user/pho/stress2/misc/kinfo2.sh
/user/pho/stress2/misc/kinfo3.sh
Trim runtime. Cleanup script and code while here.

Sponsored by: Dell EMC Isilon
11:04:36 - r312282
(4 days 17 hours ago)
by pho
Affects:  /user/pho/stress2/misc/posix_openpt2.sh
Added a new test.

Sponsored by: Dell EMC Isilon
11:03:22 - r312281
(4 days 17 hours ago)
by pho
Affects:  /user/pho/stress2/misc/posix_openpt.sh
/user/pho/stress2/misc/pty.sh
Added some new tests.

Sponsored by: Dell EMC Isilon
11:00:14 - r312280
(4 days 17 hours ago)
by pho
Affects:  /user/pho/stress2/misc/readdir.sh
Added timeout for NFS problems seen (not on FreeBSD HEAD).
Cleanup script and code while here

Sponsored by: Dell EMC Isilon
09:16:11 - r312279
(4 days 18 hours ago)
by smh
Affects: 
(2 files)
/stable/11/usr.bin/netstat/main.c
MFC r311769:

Fix rstat: symbol not in namelist from netstat

Sponsored by: Multiplay
09:12:40 - r312278
(4 days 19 hours ago)
by smh
Affects: 
(2 files)
/stable/10/usr.bin/netstat/main.c
MFC r311769:

Fix rstat: symbol not in namelist from netstat

Sponsored by: Multiplay
08:25:33 - r312277
(4 days 19 hours ago)
by hiren
Affects:  /head/sys/kern/kern_event.c
/head/sys/kern/uipc_socket.c
/head/sys/sys/event.h
Add kevent EVFILT_EMPTY for notification when a client has received all data
i.e. everything outstanding has been acked.

Reviewed by: bz, gnn (previous version)
MFC after: 3 days
Sponsored by: Limelight Networks
Differential Revision: https://reviews.freebsd.org/D9150
07:41:39 - r312276
(4 days 20 hours ago)
by ngie
Affects:  /projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/lib/libc/gen/t_glob.c
Add GLOB_STAR #ifdef to testcases which require GLOB_STAR support
07:39:08 - r312275
(4 days 20 hours ago)
by ngie
Affects:  /projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/lib/libc/gen/posix_spawn/t_spawnattr.c
Remove sys/param.h

It was used for nitems, but I converted it to __arraycount later, and
is already pulled in by header pollution on FreeBSD as well as NetBSD
ala sys/cdefs.h
07:34:45 - r312274
(4 days 20 hours ago)
by ngie
Affects:  /projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/lib/libc/db/t_db.sh
Drop unnecessary diff rewriting dict(..) function

This is already being properly handled via ATF config require.files call
07:17:43 - r312273
(4 days 20 hours ago)
by ngie
Affects: 
(2 files)
/stable/10/share/mk/bsd.own.mk
MFC r312009:

Add license preamble for r286964; credit to asomers

While here, clean up trailing whitespace
07:15:14 - r312272
(4 days 20 hours ago)
by ngie
Affects: 
(2 files)
/stable/11/share/mk/src.opts.mk
MFC r311133:

Move the "MK_* options..." section before the "... MK_*_SUPPORT..." section

For the case that someone set WITHOUT_GSSAPI=, now WITHOUT_KERBEROS_SUPPORT
will be properly set.

This will likely fix the issue for the default case noted in the PR I filed
back in 2011. I am trying to fix the less obvious case documented in the PR
still.

PR: 159745
07:11:47 - r312271
(4 days 21 hours ago)
by ngie
Affects: 
(2 files)
/stable/11/usr.sbin/fstyp/tests/fstyp_test.sh
MFC r312009:

Add license preamble for r286964; credit to asomers

While here, clean up trailing whitespace
07:11:37 - r312270
(4 days 21 hours ago)
by ngie
Affects: 
(2 files)
/stable/10/usr.sbin/fstyp/tests/fstyp_test.sh
MFC r312009:

Add license preamble for r286964; credit to asomers

While here, clean up trailing whitespace
07:10:45 - r312269
(4 days 21 hours ago)
by ngie
Affects: 
(5 files)
/stable/10/Makefile.inc1
/stable/10/secure/*
MFC r311140:

Only bake krb5_config.h support in to ssh(3), etc if both MK_GSSAPI and
MK_KERBEROS_SUPPORT != no

This fixes the odd case where someone specified MK_GSSAPI=no and
MK_KERBEROS_SUPPORT=yes (which admittedly, probably doesn't make sense,
but the build system doesn't prevent this case today, and it didn't when
I filed the bug back in 2011 either).

PR: 159745
07:10:42 - r312268
(4 days 21 hours ago)
by ngie
Affects: 
(5 files)
/stable/11/Makefile.inc1
/stable/11/secure/*
MFC r311140:

Only bake krb5_config.h support in to ssh(3), etc if both MK_GSSAPI and
MK_KERBEROS_SUPPORT != no

This fixes the odd case where someone specified MK_GSSAPI=no and
MK_KERBEROS_SUPPORT=yes (which admittedly, probably doesn't make sense,
but the build system doesn't prevent this case today, and it didn't when
I filed the bug back in 2011 either).

PR: 159745
07:08:06 - r312267
(4 days 21 hours ago)
by ngie
Affects: 
(2 files)
/stable/11/contrib/bsnmp/snmpd/trans_udp.c
MFC r310656,r311221:

r310656:

style(9): sort alignment in udp_recv(..)

r311221:

Initialize msg.msg_flags to 0

This mutes a valid coverity warning about it being uninitialized
when passed in to sendmsg(2).

CID: 1368202
07:07:45 - r312266
(4 days 21 hours ago)
by ngie
Affects: 
(2 files)
/stable/10/contrib/bsnmp/snmpd/trans_udp.c
MFC r310656,r311221:

r310656:

style(9): sort alignment in udp_recv(..)

r311221:

Initialize msg.msg_flags to 0

This mutes a valid coverity warning about it being uninitialized
when passed in to sendmsg(2).

CID: 1368202
07:04:08 - r312265
(4 days 21 hours ago)
by ngie
Affects: 
(6 files)
/stable/10/contrib/bsnmp/snmpd/*
MFC r310655:

Fix bsnmpd sending/receiving with multi-homed configurations or INADDR_ANY used
as the listening address in snmpd_input(..)

Stash the IPv4 address of the receiver via the recv(..) callback and use it in
the send(..) callback for the transport by specifying IP_SENDSRCADDR for the
control message type.

Add sendmsg logic to the UDP transport's send(..) callback and use the
respective send(..) callback for the transport instead of calling sendto in
snmpd_input(..).

Obtained from: Isilon OneFS (^/onefs/branches/BR_8_0_0_DEV@r507595)
07:03:33 - r312264
(4 days 21 hours ago)
by ngie
Affects: 
(6 files)
/stable/11/contrib/bsnmp/snmpd/*
MFC r310655:

Fix bsnmpd sending/receiving with multi-homed configurations or INADDR_ANY used
as the listening address in snmpd_input(..)

Stash the IPv4 address of the receiver via the recv(..) callback and use it in
the send(..) callback for the transport by specifying IP_SENDSRCADDR for the
control message type.

Add sendmsg logic to the UDP transport's send(..) callback and use the
respective send(..) callback for the transport instead of calling sendto in
snmpd_input(..).

Obtained from: Isilon OneFS (^/onefs/branches/BR_8_0_0_DEV@r507595)
06:58:16 - r312263
(4 days 21 hours ago)
by ngie
Affects: 
(3 files)
/stable/10/usr.sbin/bsnmpd/modules/snmp_hostres/Makefile
/stable/10/usr.sbin/bsnmpd/modules/snmp_mibII/Makefile
MFC r311740:

Improve the smilint target in the hostres and mibII modules

- Mark the smilint target .PHONY so it's always executed when requested
- Leverage .PATH for BMIBS instead of spelling the path out longhand
  for them
06:57:52 - r312262
(4 days 21 hours ago)
by ngie
Affects: 
(3 files)
/stable/11/usr.sbin/bsnmpd/modules/snmp_hostres/Makefile
/stable/11/usr.sbin/bsnmpd/modules/snmp_mibII/Makefile
MFC r311740:

Improve the smilint target in the hostres and mibII modules

- Mark the smilint target .PHONY so it's always executed when requested
- Leverage .PATH for BMIBS instead of spelling the path out longhand
  for them
06:56:12 - r312261
(4 days 21 hours ago)
by ngie
Affects: 
(2 files)
/stable/10/contrib/bsnmp/snmp_mibII/BEGEMOT-IP-MIB.txt
MFC r311742:

Add a REVISION section to track changes for the BEGEMOT-IP-MIB MIB file

There haven't been any changes to the MIB definition, so the REVISION
remains static at the version it was imported at
06:56:02 - r312260
(4 days 21 hours ago)
by ngie
Affects: 
(2 files)
/stable/11/contrib/bsnmp/snmp_mibII/BEGEMOT-IP-MIB.txt
MFC r311742:

Add a REVISION section to track changes for the BEGEMOT-IP-MIB MIB file

There haven't been any changes to the MIB definition, so the REVISION
remains static at the version it was imported at
06:55:19 - r312259
(4 days 21 hours ago)
by ngie
Affects: 
(2 files)
/stable/10/usr.sbin/bsnmpd/modules/snmp_atm/BEGEMOT-ATM-FREEBSD-MIB.txt
MFC r311758:

Add a REVISION section to track changes for the BEGEMOT-ATM-FREEBSD-MIB MIB file

There haven't been any changes to the MIB definition, so the REVISION
remains static at the version it was imported at
06:55:11 - r312258
(4 days 21 hours ago)
by ngie
Affects: 
(2 files)
/stable/11/usr.sbin/bsnmpd/modules/snmp_atm/BEGEMOT-ATM-FREEBSD-MIB.txt
MFC r311758:

Add a REVISION section to track changes for the BEGEMOT-ATM-FREEBSD-MIB MIB file

There haven't been any changes to the MIB definition, so the REVISION
remains static at the version it was imported at
06:54:07 - r312257
(4 days 21 hours ago)
by ngie
Affects: 
(3 files)
/stable/10/usr.sbin/bsnmpd/modules/snmp_hostres/BEGEMOT-HOSTRES-MIB.txt
/stable/10/usr.sbin/bsnmpd/modules/snmp_netgraph/BEGEMOT-NETGRAPH.txt
MFC r311741,r311761:

r311741:

Add a REVISION section to track changes for the hostres module

There haven't been any changes to the MIB definition, so the REVISION remains
static at the version it was imported at

r311761:

Add a REVISION section to track changes for the BEGEMOT-NETGRAPH MIB file

This change also documents the modification harti made to a handful of
objects in r122758 (the max OCTET STRING width was increased from 15 to
31 octets)
06:53:58 - r312256
(4 days 21 hours ago)
by ngie
Affects: 
(3 files)
/stable/11/usr.sbin/bsnmpd/modules/snmp_hostres/BEGEMOT-HOSTRES-MIB.txt
/stable/11/usr.sbin/bsnmpd/modules/snmp_netgraph/BEGEMOT-NETGRAPH.txt
MFC r311741,r311761:

r311741:

Add a REVISION section to track changes for the hostres module

There haven't been any changes to the MIB definition, so the REVISION remains
static at the version it was imported at

r311761:

Add a REVISION section to track changes for the BEGEMOT-NETGRAPH MIB file

This change also documents the modification harti made to a handful of
objects in r122758 (the max OCTET STRING width was increased from 15 to
31 octets)
06:53:02 - r312255
(4 days 21 hours ago)
by ngie
Affects: 
(3 files)
/stable/10/contrib/bsnmp/snmpd/BEGEMOT-MIB.txt
/stable/10/contrib/bsnmp/snmpd/FOKUS-MIB.txt
MFC r311759,r311760:

r311759:

Add a REVISION section to track changes for the FOKUS-MIB MIB file

There haven't been any changes to the MIB definition, so the REVISION
remains static at the version it was imported at

r311760:

Add a REVISION section to track changes for the BEGEMOT-MIB MIB file

There haven't been any changes to the MIB definition, so the REVISION
remains static at the version it was imported at
06:51:57 - r312254
(4 days 21 hours ago)
by ngie
Affects: 
(3 files)
/stable/11/contrib/bsnmp/snmpd/BEGEMOT-MIB.txt
/stable/11/contrib/bsnmp/snmpd/FOKUS-MIB.txt
MFC r311759,r311760:

r311759:

Add a REVISION section to track changes for the FOKUS-MIB MIB file

There haven't been any changes to the MIB definition, so the REVISION
remains static at the version it was imported at

r311760:

Add a REVISION section to track changes for the BEGEMOT-MIB MIB file

There haven't been any changes to the MIB definition, so the REVISION
remains static at the version it was imported at
03:52:20 - r312253
(5 days ago)
by pfg
Affects: 
(4 files)
/stable/10/lib/libkvm/kvm.h
/stable/10/lib/libkvm/kvm_getswapinfo.3
/stable/10/lib/libkvm/kvm_getswapinfo.c
MFC r311101:
libkvm - extend a bit the swap statistics field.

Change ksw_used and ksw_total to unsigned, which increases the maximum
total swap that can be displayed properly from ~8TB to ~16TB.

Obtained from: DragonflyBSD (ecc2e461)
03:48:52 - r312252
(5 days ago)
by pfg
Affects: 
(4 files)
/stable/11/lib/libkvm/kvm.h
/stable/11/lib/libkvm/kvm_getswapinfo.3
/stable/11/lib/libkvm/kvm_getswapinfo.c
MFC r311101:
libkvm - extend a bit the swap statistics field.

Change ksw_used and ksw_total to unsigned, which increases the maximum
total swap that can be displayed properly from ~8TB to ~16TB.

Obtained from: DragonflyBSD (ecc2e461)
03:11:30 - r312251
(5 days 1 hour ago)
by ian
Affects:  /head/sys/arm/arm/trap-v4.c
Remove a bit of armv6 support that didn't get deleted when this file was
split from trap.c into trap-v4.c and trap-v6.c.
03:03:47 - r312250
(5 days 1 hour ago)
by sephe
Affects: 
(4 files)
/head/share/man/man4/alc.4
/head/sys/dev/alc/*
/head/sys/dev/pci/pci.c
alc: Add Killer E2500 support

Reviewed by: jhb, yongari
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D9058
01:38:34 - r312249
(5 days 2 hours ago)
by emaste
Affects: 
(2 files)
/stable/11/sys/conf/newvers.sh
newvers.sh: add options to eliminate kernel build metadata

MFC r310112, r310114, r310273, r310279

r310112: newvers.sh: add option to eliminate kernel build metadata

Build metadata (username, hostname, etc.) prevents the FreeBSD kernel
from building reproducibly. Add an option to disable inclusion of that
metadata but retain the release information and SVN/git VCS details.
See https://reproducible-builds.org/ for additional background.

r310114: newvers.sh: correct typo in comment

r310273: newvers.sh: add -R option to include metadata only for
  unmodified src tree

r310279: newvers.sh: consider as modified SVN mixed revision and other cases

The newvers -R option is intended to include build metadata (e.g. user,
host, time) if the build is from an unmodified VCS tree. For subversion
it considered a trailing 'M' as an indication of a modified tree, and
any other version string as modified.

Also include mixed revision checkouts (e.g. 123:126), switched (123S)
and partial (123P) working copies as modified: the revision number is
insufficient to uniquely determine which source was used for the build.
00:43:57 - r312248
(5 days 3 hours ago)
by kib
Affects: 
(2 files)
/stable/11/sys/fs/pseudofs/pseudofs_vncache.c
MFC r311815:
Forcibly remove the cached items from pseudofs vncache on module unload.
00:37:26 - r312247
(5 days 3 hours ago)
by kib
Affects: 
(3 files)
/stable/11/lib/libprocstat/Makefile
/stable/11/lib/libprocstat/Versions.def
MFC r311781:
Use standard Versions.def for libprocstat.
00:35:33 - r312246
(5 days 3 hours ago)
by kib
Affects: 
(2 files)
/stable/11/lib/libprocstat/Makefile
MFC r311780:
Use tab for indent.
2017 - 01 - 15   (6 days ago)
22:30:59 - r312245
(5 days 5 hours ago)
by ian
Affects: 
(5 files)
/stable/10/sys/dev/sdhci/*
MFC r283263, r289359, r308187, r311660, r311693, r311727, r311797:

Raise the SDHCI timeout to 10 seconds and add a sysctl to allow changing
this value at runtime.

Add support for the BCM57765 card reader.

Toggle card insert/remove interrupt enable bits on events.

Add a new sdhci interface method, get_card_present().

Now that the PRESENT_STATE register is only used for the inhibit bits loop
in this function, sdhci_start_command(), eliminate the state variable and
restructure the loop to read the register just once at the top of the loop.

Add support for non-removable media, and a quirk to use polling to detect
card insert/remove events on controllers that don't implement the insert
and remove interrupts.

Add sdhci_handle_card_present_locked() that can be called from the interrupt
handler which already holds the mutex, and have sdhci_handle_card_present()
be just a tiny wrapper that does the locking for external callers.
22:10:32 - r312244
(5 days 6 hours ago)
by ian
Affects: 
(4 files)
/stable/11/sys/dev/sdhci/sdhci.c
/stable/11/sys/dev/sdhci/sdhci.h
/stable/11/sys/dev/sdhci/sdhci_if.m
MFC r308187, r311660, r311693, r311727, r311797:

Toggle card insert/remove interrupt enable bits on events.

Add a new sdhci interface method, get_card_present().

Now that the PRESENT_STATE register is only used for the inhibit bits loop
in this function, sdhci_start_command(), eliminate the state variable and
restructure the loop to read the register just once at the top of the loop.

Add support for non-removable media, and a quirk to use polling to detect
card insert/remove events on controllers that don't implement the insert
and remove interrupts.

Add sdhci_handle_card_present_locked() that can be called from the interrupt
handler which already holds the mutex, and have sdhci_handle_card_present()
be just a tiny wrapper that does the locking for external callers.
22:00:59 - r312243
(5 days 6 hours ago)
by ngie
Affects: 
(9 files)
/projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/kernel/kqueue/*
/projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/lib/libc/*
Diff reduce with upstream and consolidate #ifdefs where possible
22:00:30 - r312242
(5 days 6 hours ago)
by ngie
Affects:  /projects/netbsd-tests-upstream-01-2017/lib/libnetbsd/sys/event.h
libnetbsd: add sys/event.h compat header

This adds in necessary sys/types.h pollution for uintptr_t used in
sys/event.h, which according to kqueue(2) on NetBSD isn't necessary.
21:53:11 - r312241
(5 days 6 hours ago)
by ngie
Affects:  /projects/netbsd-tests-upstream-01-2017/lib/libnetbsd/sys/types.h
libnetbsd: add sys/types.h header which pollutes itself with sys/param.h to
pick up NBBY, etc
21:52:33 - r312240
(5 days 6 hours ago)
by ngie
Affects:  /projects/netbsd-tests-upstream-01-2017/lib/libnetbsd/sys/wait.h
libnetbsd: add sys/wait.h compat header

This just defines wrusage to __wrusage for now (they're both structs).
21:38:19 - r312239
(5 days 6 hours ago)
by ngie
Affects:  /projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/lib/libc/stdlib/h_getopt.c
/projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/lib/libc/stdlib/h_getopt_long.c
Remove libutil.h #include on FreeBSD and instead favor stdio.h from libnetbsd
21:18:58 - r312238
(5 days 6 hours ago)
by ngie
Affects:  /projects/netbsd-tests-upstream-01-2017/lib/libnetbsd/stdio.h
/projects/netbsd-tests-upstream-01-2017/lib/libnetbsd/util.h
libnetbsd: more portability fixes with stdio.h and util.h

- stdio.h needs to pull in stdio.h/util.h for fparseln, not util.h
- util.h needs to #include sys/types.h for flags_to_string, etc as
  flags_to_string uses u_long, which is typedef'ed in sys/types.h on
  FreeBSD
20:03:13 - r312237
(5 days 8 hours ago)
by tsoome
Affects:  /head/sys/boot/efi/loader/main.c
loader.efi: find_currdev() can leak memory

The find_currdev() is using variable "copy" to store the reference to trimmed
devpath pointer, if for some reason the efi_devpath_handle() fails, we will
leak this copy.

Also we can simplify the code there a bit.

Reviewed by: allanjude
Approved by: allanjude (mentor)
Differential Revision: https://reviews.freebsd.org/D9191
19:49:47 - r312236
(5 days 8 hours ago)
by adrian
Affects:  /head/sys/net80211/ieee80211.h
[net80211] add some more "is this XXX" macros for CTRL and DATA.

There's already a macro for MGT.
18:00:45 - r312235
(5 days 10 hours ago)
by cem
Affects: 
(14 files)
/head/sys/*
Fix a variety of cosmetic typos and misspellings

No functional change.

PR: 216096, 216097, 216098, 216101, 216102, 216106, 216109, 216110
Reported by: Bulat <bltsrc at mail.ru>
Sponsored by: Dell EMC Isilon
17:54:01 - r312234
(5 days 10 hours ago)
by cem
Affects: 
(49 files)
/head/*
"Buses" is the preferred plural of "bus"

Replace archaic "busses" with modern form "buses."

Intentionally excluded:
* Old/random drivers I didn't recognize
  * Old hardware in general
* Use of "busses" in code as identifiers

No functional change.

http://grammarist.com/spelling/buses-busses/

PR: 216099
Reported by: bltsrc at mail.ru
Sponsored by: Dell EMC Isilon
15:43:19 - r312233
(5 days 12 hours ago)
by ae
Affects: 
(2 files)
/stable/11/sys/netipsec/ipsec.c
MFC r311679:
  Add direction argument to ipsec_setspidx_inpcb() function.

  This function is used only by ipsec_getpolicybysock() to fill security
  policy index selector for locally generated packets (that have INPCB).
  The function incorrectly assumes that spidx is the same for both directions.
  Fix this by using new direction argument to specify correct INPCB security
  policy - sp_in or sp_out. There is no need to fill both policy indeces,
  because they are overwritten for each packet.
  This fixes security policy matching for outbound packets when user has
  specified TCP/UDP ports in the security policy upperspec.

  PR: 213869
13:57:42 - r312232
(5 days 14 hours ago)
by mav
Affects:  /head/sys/cam/ctl/ctl_frontend_cam_sim.c
/head/sys/cam/ctl/ctl_frontend_ioctl.c
Add under-/overrun support to IOCTL and CAM SIM frontends.

MFC after: 1 week
13:51:44 - r312231
(5 days 14 hours ago)
by mav
Affects:  /head/sys/cam/ctl/ctl_util.c
/head/sys/cam/ctl/ctl_util.h
When in kernel, map ctl_scsi_zero_io() to ctl_zero_io().

MFC after: 1 week
13:40:14 - r312230
(5 days 14 hours ago)
by jilles
Affects:  /head/share/skel/dot.shrc
skel: Do not set -o emacs in .shrc.

sh has defaulted to 'set -o emacs' since FreeBSD 9.0. Therefore, do not set
this again in .shrc, since that only serves to prevent invocations like
'sh -o vi' and 'sh +o emacs' to have the intended effect.

PR: 215958
Submitted by: Andras Farkas
MFC after: 1 week
12:58:14 - r312229
(5 days 15 hours ago)
by dim
Affects:  /projects/clang400-import/lib/clang/libclang/Makefile
Fix some erroneous minimization in libclang.
12:24:23 - r312228
(5 days 15 hours ago)
by mav
Affects:  /head/sbin/camcontrol/camcontrol.c
Make `camcontrol cmd ... -i ...` return only valid bytes.

Previously code ignored resid field and returned extra zeroes in case of
data underflow. Now it returns only real bytes received from target.

MFC after: 2 weeks
10:33:52 - r312227
(5 days 17 hours ago)
by ngie
Affects: 
(7 files)
/projects/netbsd-tests-upstream-01-2017/sys/dev/etherswitch/arswitch/*
/projects/netbsd-tests-upstream-01-2017/tests/sys/kern/acct/Makefile
MFhead@r312226
10:29:53 - r312226
(5 days 17 hours ago)
by ngie
Affects:  /head/tests/sys/kern/acct/Makefile
Fix typo in r312216

I meant to replace "exp" with "exponent", not "expected"

MFC after: 13 days
Pointyhat to: ngie
Submitted by: bde
10:24:45 - r312225
(5 days 17 hours ago)
by ngie
Affects:  /projects/netbsd-tests-upstream-01-2017/lib/libnetbsd/glob.h
Fix copy-pasted copyright

- Add Dell instead of "SRI International"
- Use standard BSD 2-clause copyright
- Remove DARPA sponsorship advertisement
10:21:25 - r312224
(5 days 17 hours ago)
by kp
Affects: 
(5 files)
/head/sys/dev/etherswitch/arswitch/*
arswitch: Ensure the lock is always held when calling arswitch_modifyreg()

arswitch_setled() and a number of _global_setup functions did not acquire the
lock before calling arswitch_modifyreg(). With WITNESS enabled this would
instantly panic.

Discovered on a TPLink-3600:
("panic: mutex arswitch not owned at
sys/dev/etherswitch/arswitch/arswitch_reg.c:236")

Reviewed by: adrian, kan
Differential Revision: https://reviews.freebsd.org/D9187
10:17:15 - r312223
(5 days 17 hours ago)
by ngie
Affects:  /projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/lib/libc/gen/t_glob.c
lib/libc/gen/t_glob.c: diff reduce with NetBSD's copy
10:16:20 - r312222
(5 days 17 hours ago)
by ngie
Affects:  /projects/netbsd-tests-upstream-01-2017/lib/libnetbsd/glob.h
libnetbsd: add compat header for glob.h

This is to diff reduce unnecessary additions to
contrib/netbsd-tests/lib/libc/gen/t_glob.c
10:04:20 - r312221
(5 days 18 hours ago)
by ngie
Affects: 
(15 files)
/projects/netbsd-tests-upstream-01-2017/contrib/netbsd-tests/*
Pull in ^/vendor/NetBSD/tests/dist@r312219

Remove divergence with upstream where possible
10:03:03 - r312220
(5 days 18 hours ago)
by ngie
Affects:  /projects/netbsd-tests-upstream-01-2017/lib/libc/tests/regex/Makefile
Add -DSKIP_LEFTASSOC to CFLAGS so leftassoc is skipped, like on NetBSD
09:35:49 - r312219
(5 days 18 hours ago)
by ngie
Affects: 
(15 files)
/vendor/NetBSD/tests/dist/*
Pull in additional test changes accepted upstream as well as some
additional testcases added in .../kernel/t_ptrace_wait.c
09:33:29 - r312218
(5 days 18 hours ago)
by ngie
Affects: 
(28 files)
/projects/netbsd-tests-upstream-01-2017/*
MFhead@r312217
09:31:14 - r312217
(5 days 18 hours ago)
by ngie
Affects:  /head
Delete svn mergeinfo for r312193 so I can once again sync
^/projects/netbsd-tests-upstream-01-2017 with ^/head
09:25:33 - r312216
(5 days 18 hours ago)
by ngie
Affects: 
(3 files)
/head/sys/kern/kern_acct.c
/head/tests/sys/kern/acct/Makefile
Revert r312119 and reword the intent to fix -Wshadow issues
between exp(3) and `exp` var.

The approach taken previously was not ideal for multiple
functional and stylistic reasons.

Add to existing sed call in Makefile to replace `exp` with
`exponent` instead.

MFC after: 13 days
Requested by: bde
09:13:41 - r312215
(5 days 19 hours ago)
by ngie
Affects:  /head/tests/sys/vfs/lookup_cap_dotdot.c
Mark testcases which use cap_enter as expected failures until the
PR is resolved so those of us that run the tests don't have the
bogus failures counted against our overall results

PR: 215690
09:06:45 - r312214
(5 days 19 hours ago)
by cperciva
Affects:  /head/release/tools/ec2.conf
Enable IPv6 networking on Amazon EC2.

MFC after: 1 week
09:05:26 - r312213
(5 days 19 hours ago)
by ngie
Affects:  /head/lib/msun/tests/Makefile
/head/lib/msun/tests/fmaxmin_test.c
Turn COMPILER_VERSION/COMPILER_TYPE make check into a compile-time check
of the clang version

This works around breakage on ^/stable/10 when running installworld from
a ^/stable/10 host where the test wouldn't be compiled on the first
go-around and would be missing when make installworld is run.

MFC after: 1 week
PR: 208703
Reported by: emaste
Sponsored by: Dell EMC Isilon
08:05:00 - r312212
(5 days 20 hours ago)
by cem
Affects:  /head/sys/sys/ata.h
Fix a minor typo (Seiral)

PR: 216095
Reported by: <bltsrc at mail.ru>
06:35:00 - r312211
(5 days 21 hours ago)
by adrian
Affects:  /head/sys/mips/atheros/ar71xxreg.h
/head/sys/mips/atheros/uart_bus_ar71xx.c
[ar71xx] add EARLY_PRINTF support for the rest of the non-AR933x SoCs.

Tested:

* AR934x SoC
04:23:20 - r312210
(5 days 23 hours ago)
by pfg
Affects: 
(2 files)
/stable/11/sys/sys/cdefs.h
MFC r311896
Remove unused __gnu_inline() attribute.

This was meant to be used by a future FORTIFY_SOURCE implementation.
Probably for good, FORTIFY_SOURCE and this particular GCCism were never
well supported by clang or other compilers. Furthermore, the technology
has long since been replaced by either static checkers, sanitizers, or
even just the strong stack protector that was enabled by default.

Drop __gnu_inline to avoid cluttering the headers.
03:53:20 - r312209
(6 days ago)
by markj
Affects:  /head/sys/kern/uipc_mbuf.c
Suppress a warning about m_assertbuf being unused.

MFC after: 1 week
03:50:08 - r312208
(6 days ago)
by markj
Affects:  /head/sys/vm/vm_object.c
/head/sys/vm/vm_page.c
Avoid unnecessary page lookups in vm_object_madvise().

vm_object_madvise() is frequently used to apply advice to a contiguous
set of pages in an object with no backing object. Optimize this case by
skipping non-resident subranges in constant time, and by iterating over
resident pages using the object memq, thus avoiding radix tree lookups on
each page index in the specified range.

While here, move MADV_WILLNEED handling to vm_page_advise(), and rename the
"advise" parameter to vm_object_madvise() to "advice."

Reviewed by: alc, kib
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D9098
01:36:45 - r312207
(6 days 2 hours ago)
by dim
Affects: 
(5 files)
/projects/clang400-import/sys/*
Merge ^/head r312201 through r312206.
01:34:07 - r312206
(6 days 2 hours ago)
by dim
Affects:  /projects/clang400-import/contrib/llvm/tools/clang/lib/Frontend/DependencyFile.cpp
Pull in r292032 from upstream llvm trunk (by Yaron Keren):

  Fix PR31644 introduced by r287138 and add a regression test.
  Thanks Dimitry Andric for the report and fix!

This should restore -MP output to what it was before.

Reported by: jbeich
PR: 216043
00:50:10 - r312205
(6 days 3 hours ago)
by sbruno
Affects:  /head/sys/kern/subr_gtaskqueue.c
/head/sys/net/iflib.c
Fix hangs in a uniprocessor configuration (qemu, virtualbox, real hw).

sys/net/iflib.c:
  Add ctx to filter_info and don't skpi interrupt early on unless we're on an
  SMP system

sys/kern/subr_gtaskqueue.c:
  Skip smp check if we're running UP

Submitted by: Matt Macy <mmacy@nextbsd.org>
Reported by: emaste bde

 


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

Page generated in 35 ms, 356 revisions printed. Current time is 2017-01-21 04:14:52. All times are in UTC/GMT.