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.

2016 - 08 - 29   (today)
20:57:09 - r305029
( 34 minutes ago)
by dim
Affects: 
(10 files)
/projects/clang390-import/*
Merge ^/head r305017 through r305028.
20:51:34 - r305028
( 40 minutes ago)
by cem
Affects:  /head/sys/dev/ioat/ioat.c
ioat(4): Add additional CTR tracing during reset
20:46:33 - r305027
( 45 minutes ago)
by cem
Affects:  /head/sys/dev/ioat/ioat.c
ioat(4): Don't "complete" DMA descriptors prematurely

In r304602, I mistakenly removed the ioat_process_events check that we weren't
processing events before the hardware had completed the descriptor
("last_seen"). Reinstate that logic.

Keep the defensive loop condition and additionally make sure we've actually
completed a descriptor before blindly chasing the ring around.

In reset, queue and finish the startup command before allowing any event
processing or submission to occur. Avoid potential missed callouts by
requeueing the poll later.
20:01:53 - r305026
(1 hour 29 minutes ago)
by jmcneill
Affects:  /head/sys/boot/efi/libefi/efi_console.c
When the EFI implementation (like U-Boot) does not support WaitForKey, we
can emulate efi_cons_poll(0 with a flag and caching the last key read with
ReadKeyStroke. This fixes the loader.efi countdown timer on Pine64 (and
other U-Boot + EFI using platforms).

Reviewed by: imp, manu
Differential Revision: https://reviews.freebsd.org/D7670
20:01:49 - r305025
(1 hour 29 minutes ago)
by markj
Affects: 
(94 files)
/user/alc/PQ_LAUNDRY/*
MFH r305024
19:53:13 - r305024
(1 hour 38 minutes ago)
by kib
Affects:  /head/lib/libc/sys/ptrace.2
Typesetting fixes.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
19:40:46 - r305023
(1 hour 50 minutes ago)
by dim
Affects:  /head/usr.sbin/bluetooth/btpand/bnep.c
/head/usr.sbin/bluetooth/btpand/btpand.h
Avoid undefined behavior when calling va_start() in bnep_send_control(),
by making the 'type' parameter a plain unsigned.

MFC after: 3 days
19:33:07 - r305022
(1 hour 58 minutes ago)
by kib
Affects:  /head/lib/libc/sys/ptrace.2
Restore the requirement of setting errno to zero before calling
ptrace(2). Describe the behaviour of automatically zeroing errno as
historical feature.

Requested by: ache, jhb
Reviewed by: ache, bjk
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
19:14:52 - r305021
(2 hours 16 minutes ago)
by ngie
Affects: 
(7 files)
/projects/netbsd-tests-update-12/cddl/usr.sbin/zfsd/*
/projects/netbsd-tests-update-12/lib/libc/aarch64/sys/Makefile.inc
MFhead @ r305020
19:10:58 - r305020
(2 hours 20 minutes ago)
by ngie
Affects:  /head/cddl/usr.sbin/zfsd/tests/Makefile
Remove redundant declarations and simplify ../ in pathing

- TESTSBASE and LOCALBASE are already defined in bsd.tests.mk
- TESTSDIR is automatically divined as ${TESTSBASE}${RELDIR:H} after
  r289158.
- Replace SRCDIR with SRCTOP

MFC after: 1 week
X-MFC with: r305019
Sponsored by: EMC / Isilon Storage Division
19:07:48 - r305019
(2 hours 23 minutes ago)
by ngie
Affects:  /head/cddl/usr.sbin/zfsd/Makefile
Remove unnecessary variable (SRCDIR) replaced by SRCTOP in Makefile.common

MFC after: 1 week
X-MFC with: r305018
Sponsored by: EMC / Isilon Storage Division
19:06:40 - r305018
(2 hours 25 minutes ago)
by ngie
Affects:  /head/cddl/usr.sbin/zfsd/Makefile.common
Use SRCTOP instead of a homegrown definition for it (SRCDIR)

MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
18:59:43 - r305017
(2 hours 32 minutes ago)
by dim
Affects: 
(58 files)
/projects/clang390-import/*
Merge ^/head r304965 through r305016.
18:55:06 - r305016
(2 hours 36 minutes ago)
by dim
Affects:  /head/cddl/usr.sbin/zfsd/tests/Makefile
/head/cddl/usr.sbin/zfsd/tests/zfsd_unittest.cc
Fix the zfsd unittest:
* TESTSDIR is supposed to be under cddl/usr.sbin, not cddl/sbin
* DevdCtl::EventBuffer no longer exists, so remove its forward
  declaration

MFC after: 3 days
X-MFC-With: r305013
18:53:51 - r305015
(2 hours 37 minutes ago)
by kib
Affects:  /head/lib/libc/aarch64/sys/Makefile.inc
Remove commented out mention of ptrace.S.
After r305012 the asm wrapper is not needed.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week
18:53:36 - r305014
(2 hours 38 minutes ago)
by ngie
Affects: 
(182 files)
/projects/netbsd-tests-update-12/*
MFhead @ r305013
18:51:49 - r305013
(2 hours 39 minutes ago)
by dim
Affects:  /head/cddl/usr.sbin/zfsd/vdev.h
Add an empty virtual destructor to zfsd's Vdev class. This is needed
because the class has virtual functions, and the compiler-generated
default destructor is non-virtual.

Reviewed by: asomers
MFC after: 3 days
18:47:51 - r305012
(2 hours 43 minutes ago)
by kib
Affects: 
(17 files)
/head/lib/libc/*
Rewrite ptrace(2) wrappers in C.
Besides removing hand-translation to assembler, this also adds missing
wrappers for arm64 and risc-v.

Reviewed by: emaste, jhb
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D7694
18:46:05 - r305011
(2 hours 45 minutes ago)
by ngie
Affects:  /head/usr.sbin/newsyslog/tests/legacy_test.sh
Expect sub testcases 2-4 in :tests_time_rotate to fail today due to changes
to newsyslog, etc made in the past month.

The issue is being root-caused as part of the bug noted below. This commit
will need to be partially reverted once the issue has been found/fixed

PR: 212160
Reported by: Jenkins
Sponsored by: EMC / Isilon Storage Division
18:41:06 - r305010
(2 hours 50 minutes ago)
by bde
Affects:  /head/sys/dev/syscons/syscons.c
Add screen locking calls to sc cn grab and ungrab. The locking functions
just use the same mutex locking as sc cn putc so they have the same
defects.

The locking calls to acquire the lock are actually in sc cn open and close.
Ungrab has to unlock, although this opens a race window.

Change the direct mutex lock calls in sc cn putc to the new locking
functions via the open and close functions. Putc also has to unlock, but
doesn't keep the screen open like grab. Screen open and close reduce to
locking, except screen open for grab also attempts to switch the screen.

Keyboard locking is more difficult and still null, even when keyboard
input calls screen functions, except some of the functions have locks
too deep to work right.

This organization gives a single place to fix some of the locking.
18:31:34 - r305009
(3 hours ago)
by bdrewery
Affects:  /head/share/mk/bsd.dep.mk
/head/share/mk/bsd.obj.mk
Allow parallelizing clean/cleandepend/depend with all.

This now makes 'make -jX clean all install' safe.

MFC after: 3 days
Sponsored by: EMC / Isilon Storage Division
18:00:14 - r305008
(3 hours 31 minutes ago)
by hiren
Affects: 
(4 files)
/stable/11/sys/netinet/tcp_subr.c
/stable/11/sys/netinet6/icmp6.c
/stable/11/sys/netinet6/ip6_output.c
MFC r303626 (by gallatin)
Rework IPV6 TCP path MTU discovery to match IPv4.

No objection: gallatin
17:50:36 - r305007
(3 hours 41 minutes ago)
by ngie
Affects:  /head/contrib/netbsd-tests/usr.bin/dirname/t_dirname.sh
Expect :basic to fail due to recent output changes in dirname(3)

The dirname output change bug is actively being worked on, and this
commit will need to be reverted once it's fixed.

MFC after: never
PR: 212193
Sponsored by: EMC / Isilon Storage Division
17:23:04 - r305006
(4 hours 8 minutes ago)
by skreuzer
Affects:  /head/release/doc/en_US.ISO8859-1/relnotes/article.xml
Null out the release notes for 12-CURRENT

Approved by: gjb
Differential Revision: D7669
14:38:31 - r305005
(6 hours 53 minutes ago)
by bde
Affects:  /head/sys/amd64/amd64/pmap.c
/head/sys/i386/i386/pmap.c
Shorten banal comments about zeroing and copying pages. Don't give
implementation details that last echoed the code 15-20 years ago.
But add a detail about pagezero() on i386. Switch from Mach style
to BSD style.
13:07:21 - r305004
(8 hours 24 minutes ago)
by bde
Affects: 
(4 files)
/head/sys/amd64/amd64/*
/head/sys/amd64/include/md_var.h
/head/sys/i386/i386/support.s
On amd64, declare sse2_pagezero() and start using it again, but only
for zeroing pages in idle where nontemporal writes are clearly best.
This is almost a no-op since zeroing in idle works does nothing good
and is off by default. Fix END() statement forgotten in previous
commit.

Align the loop in sse2_pagezero(). Since it writes to main memory,
the loop doesn't have to be very carefully written to keep up.
Unrolling it was considered useless or harmful and was not done on
i386, but that was too careless.

Timing for i386: the loop was not unrolled at all, and moved only 4
bytes/iteration. So on a 2GHz CPU, it needed to run at 2 cycles/
iteration to keep up with a memory speed of just 4GB/sec. But when
it crossed a 16-byte boundary, on old CPUs it ran at 3 cycles/
iteration so it gave a maximum speed of 2.67GB/sec and couldn't even
keep up with PC3200 memory. Fix the alignment so that it keep up with
4GB/sec memory, and unroll once to get nearer to 8GB/sec. Further
unrolling might be useless or harmful since it would prevent the loop
fitting in 16-bytes. My test system with an old CPU and old DDR1 only
needed 5+ GB/sec. My test system with a new CPU and DDR3 doesn't need
any changes to keep up ~16GB/sec.

Timing for amd64: with 8-byte accesses and newer faster CPUs it is
easy to reach 16GB/sec but not so easy to go much faster. The
alignment doesn't matter much if the CPU is not very old. The loop
was already unrolled 4 times, but needs 32 bytes and uses a fancy
method that doesn't work for 2-way unrolling in 16 bytes. Just
align it to 32-bytes.
12:57:28 - r305003
(8 hours 34 minutes ago)
by cy
Affects: 
(14 files)
/stable/10/contrib/sqlite3/*
MFC r304747:

Update from sqlite3-3.12.1 (3120100) to sqlite3-3.14.1 (3140100).

This commit addresses the tmpdir selection vulnerability fixed in
sqlite3-1.13.0. See VuXML entry 546deeea-3fc6-11e6-a671-60a44ce6887b.

This MFC was suggested by kib@ in the abandoned D7651.

Security: VuXML 546deeea-3fc6-11e6-a671-60a44ce6887b
Security: CVE-2016-6153
12:54:46 - r305002
(8 hours 36 minutes ago)
by cy
Affects: 
(14 files)
/stable/11/contrib/sqlite3/*
MFC r304747:

Update from sqlite3-3.12.1 (3120100) to sqlite3-3.14.1 (3140100).

This commit addresses the tmpdir selection vulnerability fixed in
sqlite3-1.13.0. See VuXML entry 546deeea-3fc6-11e6-a671-60a44ce6887b.

Security: VuXML 546deeea-3fc6-11e6-a671-60a44ce6887b
Security: CVE-2016-6153
08:55:59 - r305001
(12 hours 35 minutes ago)
by hselasky
Affects: 
(4 files)
/stable/8/sys/dev/usb/controller/xhci.c
MFC r304629:
Don't separate the status stage of the XHCI USB control transfers into
its own job because this breaks the simplified QEMU XHCI TRB parser,
which expects the complete USB control transfer as a series of back to
back TRBs. The old behaviour is kept under #ifdef in case this change
breaks enumeration of any USB devices.

PR: 212021
08:54:31 - r305000
(12 hours 37 minutes ago)
by hselasky
Affects: 
(2 files)
/stable/9/sys/dev/usb/controller/xhci.c
MFC r304629:
Don't separate the status stage of the XHCI USB control transfers into
its own job because this breaks the simplified QEMU XHCI TRB parser,
which expects the complete USB control transfer as a series of back to
back TRBs. The old behaviour is kept under #ifdef in case this change
breaks enumeration of any USB devices.

PR: 212021
08:52:53 - r304999
(12 hours 38 minutes ago)
by hselasky
Affects: 
(2 files)
/stable/11/sys/dev/usb/controller/xhci.c
MFC r304629:
Don't separate the status stage of the XHCI USB control transfers into
its own job because this breaks the simplified QEMU XHCI TRB parser,
which expects the complete USB control transfer as a series of back to
back TRBs. The old behaviour is kept under #ifdef in case this change
breaks enumeration of any USB devices.

PR: 212021
08:51:27 - r304998
(12 hours 40 minutes ago)
by hselasky
Affects: 
(2 files)
/stable/10/sys/dev/usb/controller/xhci.c
MFC r304629:
Don't separate the status stage of the XHCI USB control transfers into
its own job because this breaks the simplified QEMU XHCI TRB parser,
which expects the complete USB control transfer as a series of back to
back TRBs. The old behaviour is kept under #ifdef in case this change
breaks enumeration of any USB devices.

PR: 212021
08:49:38 - r304997
(12 hours 42 minutes ago)
by hselasky
Affects: 
(2 files)
/stable/10/sys/dev/mlx5/mlx5_en/en.h
MFC r304601:
Increase the maximum RX/TX queue size. This allows for a RX/TX queue
size of 16384 mbufs. Previously the limit was 8192.

Sponsored by: Mellanox Technologies
08:48:10 - r304996
(12 hours 43 minutes ago)
by hselasky
Affects: 
(2 files)
/stable/11/sys/dev/mlx5/mlx5_en/en.h
MFC r304601:
Increase the maximum RX/TX queue size. This allows for a RX/TX queue
size of 16384 mbufs. Previously the limit was 8192.

Sponsored by: Mellanox Technologies
08:46:15 - r304995
(12 hours 45 minutes ago)
by hselasky
Affects: 
(4 files)
/stable/8/sys/dev/usb/controller/xhci.c
MFC r304597:
Fix for invalid use of bits in input context. Basically split
configuring of EP0 and non-EP0 into xhci_cmd_evaluate_ctx() and
xhci_cmd_configure_ep() respectivly. This resolves some errors when
using XHCI under QEMU and gets is more in line with the XHCI
specification.

PR: 212021
08:44:35 - r304994
(12 hours 47 minutes ago)
by hselasky
Affects: 
(2 files)
/stable/9/sys/dev/usb/controller/xhci.c
MFC r304597:
Fix for invalid use of bits in input context. Basically split
configuring of EP0 and non-EP0 into xhci_cmd_evaluate_ctx() and
xhci_cmd_configure_ep() respectivly. This resolves some errors when
using XHCI under QEMU and gets is more in line with the XHCI
specification.

PR: 212021
08:42:37 - r304993
(12 hours 49 minutes ago)
by hselasky
Affects: 
(2 files)
/stable/10/sys/dev/usb/controller/xhci.c
MFC r304597:
Fix for invalid use of bits in input context. Basically split
configuring of EP0 and non-EP0 into xhci_cmd_evaluate_ctx() and
xhci_cmd_configure_ep() respectivly. This resolves some errors when
using XHCI under QEMU and gets is more in line with the XHCI
specification.

PR: 212021
08:39:53 - r304992
(12 hours 51 minutes ago)
by hselasky
Affects: 
(2 files)
/stable/11/sys/dev/usb/controller/xhci.c
MFC r304597:
Fix for invalid use of bits in input context. Basically split
configuring of EP0 and non-EP0 into xhci_cmd_evaluate_ctx() and
xhci_cmd_configure_ep() respectivly. This resolves some errors when
using XHCI under QEMU and gets is more in line with the XHCI
specification.

PR: 212021
07:48:35 - r304991
(13 hours 43 minutes ago)
by ed
Affects:  /head/sys/modules/cloudabi32/Makefile
/head/sys/modules/cloudabi64/Makefile
Use both the MACHINE and MACHINE_CPUARCH directories for finding sources.

When fixing this module to build on PC98, I actually broke the build on
ARM64. On PC98 we need to pull in the sources from the MACHINE_CPUARCH
(i386), but on ARM64 we need to use the MACHINE, as MACHINE_CPUARCH is
set to aarch64 instead of just arm64.
07:46:23 - r304990
(13 hours 45 minutes ago)
by ngie
Affects: 
(4 files)
/stable/9/lib/libc/net/getaddrinfo.c
MFstable/10 r304982:

MFstable/11 r304945:

MFC r304034:

Initialize `ai` to NULL and test for `ai` with type-appropriate values

Depending on the address family and ai_flags containing AI_V4MAPPED,
it might not do a proper DNS lookup on the provided DNS address

Convert some `ai` boolean true/false checks to NULL/non-NULL while here.

PR: 211790
06:54:38 - r304989
(14 hours 37 minutes ago)
by mm
Affects: 
(8 files)
/head/contrib/libarchive/libarchive/*
/head/contrib/libarchive/tar/util.c
Redo MFV r304866:
Sync libarchive with vendor including security fixes

Vendor issues fixed:
Issue #731: Reject tar entries >= INT64_MAX
Issue #744 (part of Issue #743): Enforce sandbox with very long pathnames
Issue #748: Zip decompression failure with highly-compressed data
Issue #767: Buffer overflow printing a filename
Issue #770: Zip read: be more careful about extra_length

MFC after: 3 days
06:50:45 - r304988
(14 hours 40 minutes ago)
by mm
Affects: 
(12 files)
/head/contrib/libarchive/libarchive/*
/head/contrib/libarchive/tar/util.c
Revert r304869

This commit was incorrect and will be re-committed asap.
06:32:30 - r304987
(14 hours 59 minutes ago)
by kib
Affects: 
(5 files)
/stable/11/sys/compat/*
/stable/11/sys/kern/vfs_syscalls.c
/stable/11/sys/sys/syscallsubr.h
MFC r304182 (by ed):
Let CloudABI use fdatasync() as well.

MFC r304185 (by ed):
Eliminate use of sys_fsync() and sys_fdatasync().
06:07:43 - r304986
(15 hours 24 minutes ago)
by bde
Affects:  /head/sys/amd64/amd64/support.S
Restore the nontemporal pagezero() under the name sse2_pagezero() (the
same name as for i386). It is not reconnected yet.

Which method is better is too machine-dependent and system-dependent
to replace the old method unconditionally.
05:59:12 - r304985
(15 hours 32 minutes ago)
by kib
Affects: 
(3 files)
/stable/11/lib/libc/sys/Makefile.inc
/stable/11/lib/libc/sys/fsync.2
MFC r304287:
Add fdatasync(2) man page, combined with fsync(2).
05:53:59 - r304984
(15 hours 37 minutes ago)
by kib
Affects: 
(3 files)
/stable/11/sys/ufs/ffs/ffs_extern.h
/stable/11/sys/ufs/ffs/ffs_vnops.c
MFC r304180:
Implement VOP_FDATASYNC() for UFS.
05:51:27 - r304983
(15 hours 40 minutes ago)
by kib
Affects: 
(13 files)
/stable/11/sys/*
MFC r303924 (by trasz):
Eliminate vprint().
05:46:35 - r304982
(15 hours 45 minutes ago)
by ngie
Affects: 
(2 files)
/stable/10/lib/libc/net/getaddrinfo.c
MFstable/11 r304945:

MFC r304034:

Initialize `ai` to NULL and test for `ai` with type-appropriate values

Depending on the address family and ai_flags containing AI_V4MAPPED,
it might not do a proper DNS lookup on the provided DNS address

Convert some `ai` boolean true/false checks to NULL/non-NULL while here.

PR: 211790
05:40:21 - r304981
(15 hours 51 minutes ago)
by kib
Affects: 
(4 files)
/stable/11/sys/fs/msdosfs/msdosfs_vnops.c
/stable/11/sys/kern/vfs_default.c
/stable/11/sys/sys/vnode.h
MFC r304178:
Implement VOP_FDATASYNC() for msdosfs.
05:37:03 - r304980
(15 hours 54 minutes ago)
by kib
Affects: 
(7 files)
/stable/11/lib/libc/*
/stable/11/lib/libthr/thread/thr_syscalls.c
/stable/11/share/man/man3/pthread_testcancel.3
MFC r304209:
The fdatasync(2) call must be cancellation point.
05:35:35 - r304979
(15 hours 56 minutes ago)
by sephe
Affects: 
(4 files)
/head/sys/dev/hyperv/netvsc/*
hyperv/hn: Switch to new RNDIS set for RSS parameters.

MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D7658
05:17:44 - r304978
(16 hours 13 minutes ago)
by kib
Affects: 
(11 files)
/stable/11/sys/compat/freebsd32/*
/stable/11/sys/kern/*
/stable/11/sys/sys/*
Regen
05:15:43 - r304977
(16 hours 16 minutes ago)
by kib
Affects: 
(8 files)
/stable/11/include/unistd.h
/stable/11/lib/libc/sys/Symbol.map
/stable/11/sys/*
MFC r304176:
Add a trivial implementation of fdatasync(2).
05:08:53 - r304976
(16 hours 22 minutes ago)
by sephe
Affects:  /head/sys/dev/hyperv/netvsc/hv_rndis_filter.c
hyperv/hn: Fix # of channels setting, if RSS is not available.

MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D7657
04:54:13 - r304975
(16 hours 37 minutes ago)
by sephe
Affects:  /head/sys/dev/hyperv/netvsc/hv_rndis_filter.c
/head/sys/dev/hyperv/netvsc/ndis.h
hyperv/hn: Switch to new RNDIS query for RSS capabilities extraction.

MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D7656
04:45:58 - r304974
(16 hours 45 minutes ago)
by kib
Affects: 
(2 files)
/stable/11/sys/kern/kern_tc.c
MFC r303548:
Cache getbintime(9) answer in timehands.
04:44:24 - r304973
(16 hours 47 minutes ago)
by sephe
Affects:  /head/sys/dev/hyperv/netvsc/hv_rndis_filter.c
hyperv/hn: Switch to new RNDIS query for link status extraction.

MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D7654
03:22:56 - r304972
(18 hours 8 minutes ago)
by sephe
Affects:  /head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
/head/sys/dev/hyperv/netvsc/ndis.h
hyperv/hn: Add definition for NDIS media state.

MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D7652
01:59:18 - r304971
(19 hours 32 minutes ago)
by jhb
Affects:  /head/sys/dev/mfi/mfi.c
Add missing array subscript.

This fixes a tautological pointer comparison warning, but would also a
real bug for a platform where bus_dmamap_unload of a static allocation
is not a no-op.
2016 - 08 - 28   (yesterday)
21:31:21 - r304970
(1 day ago)
by jhibbits
Affects:  /head/sys/dev/ofw/ofw_bus_subr.c
/head/sys/dev/ofw/ofw_bus_subr.h
/head/sys/dev/uart/uart_cpu_powerpc.c
Check all compatible strings on uart devices in powerpc

Summary:
Some device trees put "fsl,ns16650" first in the compatible list. This causes
the probe code to choke, even though the device is compatible with ns16650, and
has it listed later in the tree.

Reviewed by: nwhitehorn
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D7676
21:26:11 - r304969
(1 day ago)
by dim
Affects:  /head/sbin/hastd/lzf.h
Define hastd's STRICT_ALIGN macro in a defined and portable way.

MFC after: 3 days
20:53:31 - r304968
(1 day ago)
by alc
Affects:  /user/alc/PQ_LAUNDRY/sys/sys/vmmeter.h
/user/alc/PQ_LAUNDRY/sys/vm/vm_pageout.c
Simplify the logic for detecting shortfalls.

Discussed with: markj
20:39:53 - r304967
(1 day ago)
by landonf
Affects:  /head/sys/dev/bhnd/bhnd.h
/head/sys/dev/bhnd/bhnd_subr.c
/head/sys/dev/bhnd/siba/siba.c
bhnd(4): Apply the siba chipid ncore fixup in bhnd_read_chipid(), ensuring
that bhndb et al are always operating on a valid core count.

Approved by: adrian (mentor, implicit)
20:39:33 - r304966
(1 day ago)
by peter
Affects:  /head/sys/boot/i386/libi386/biosdisk.c
The read-ahead code from r298230 made it likely the boot code would read
beyond the end of disk. r298900 added code to prevent this. Some BIOSes
cause significant delays if asked to read past end-of-disk.

We never trusted the BIOS to accurately report the sectorsize of disks
before and this set of changes. Unfortuately they interact badly with
the infamous >2TB wraparound bugs. We have a number of relatively-recent
machines in the FreeBSD.org cluster where the BIOS reports 3TB disks as 1TB.

With pre-r298900 they work just fine. After r298900 they stop working if
the boot environment attempts to access anything outside the first 1TB on
the disk. 'ZFS: I/O error, all block copies unavailable' etc. It affects
both UFS and ZFS if they try to boot from large volumes.

This change replaces the blind trust of the BIOS end-of-disk reporting
with a read-ahead clip to prevent reads crossing the of end-of-disk
boundary. Since 2^32 (2TB) size reporting truncation is not uncommon,
the clipping is done on 2TB aliases of the reported end-of-disk.
ie: a 3TB disk reported as 1TB has readahead clipped at 1TB, 3TB, 5TB, ...
as one of them is likely to be the real end-of-disk.

This should make the loader on these broken machines behave the same as
traditional pre-r298900 loader behavior, without disabling read-ahead.

PR: 212139
Discussed with: tsoome, allanjude
19:48:08 - r304965
(1 day 1 hour ago)
by dim
Affects: 
(16 files)
/projects/clang390-import/contrib/ipfilter/opts.h
/projects/clang390-import/sys/*
Merge ^/head r304955 through r304964.
19:35:29 - r304964
(1 day 1 hour ago)
by dim
Affects: 
(6 files)
/head/contrib/ipfilter/opts.h
/head/sys/contrib/ipfilter/netinet/*
Follow-up to r304953, in which I broke the build: apparently the SOLARIS
macro is defined in lots of different places in ipfilter, so replace all
of the nonportable definitions with portable ones.

Pointy hat to: dim
X-MFC-With: r304959, r304953
MFC after: 3 days
19:34:22 - r304963
(1 day 1 hour ago)
by landonf
Affects: 
(4 files)
/head/sys/dev/bhnd/*
bhnd(4): Add a bhnd bus method for fetching the device's core table.

This will allow us to perform bhndb(4) bridge configuration based on
the identified hardware, prior to performing full enumeration of the
child bhnd bus.

Approved by: adrian (mentor, implicit)
19:33:09 - r304962
(1 day 1 hour ago)
by bde
Affects:  /head/sys/ddb/db_expr.c
Expand error messages: print symbol names, parentheses and shift tokens,
and negative shift counts.

Fix error messages: print "Division" instead of "Divide"; print
multiplier-like, addition-like and logical operator tokens instead of
garbage (usually the command name).

ddb has a primitive lexer with excessive information hiding that makes
it hard to find even the point in the line where a syntax error is
detected. Old ddb just printed "Syntax error" and this was unimproved
in most places by printing a garbage token.
19:32:14 - r304961
(1 day 1 hour ago)
by dim
Affects:  /projects/clang390-import/cddl/lib/libnvpair/Makefile
Revert r304547 now there is no more need for it.
19:28:01 - r304960
(1 day 2 hours ago)
by dim
Affects:  /projects/clang390-import/contrib/llvm/tools/clang/lib/Sema/SemaChecking.cpp
Tentatively apply https://reviews.llvm.org/D23921, to get rid of false
positive diagnostics from -Wvarargs about enum parameters, e.g.:

cddl/contrib/opensolaris/lib/libnvpair/libnvpair.c:388:15: error: passing an
object that undergoes default argument promotion to 'va_start' has undefined
behavior
  [-Werror,-Wvarargs]
  va_start(ap, which);
  ^
cddl/contrib/opensolaris/lib/libnvpair/libnvpair.c:382:66: note: parameter of
type 'enum nvlist_prtctl_fmt' is declared here
nvlist_prtctl_dofmt(nvlist_prtctl_t pctl, enum nvlist_prtctl_fmt which, ...)
  ^
18:10:29 - r304959
(1 day 3 hours ago)
by kib
Affects:  /head/sys/contrib/ipfilter/netinet/ip_log.c
Complete r304953.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
15:23:44 - r304958
(1 day 6 hours ago)
by bde
Affects:  /head/sys/i386/i386/machdep.c
Fix vm86 initialization, part 1 of 2 and a half.

Early use of vm86 depends on the PIC being reset to mask interrupts,
but r286667 moved PIC initialization to after where vm86 may be first
used.

Move the PIC initialization up to immdiately before vm86 initialization.
All invocations of diff that I tried display this move poorly so that it
looks like PIC and vm86 initialization was moved later.

r286667 was to move console initialization later. The diffs are again
unreadable -- they show a large move that doesn't seem to involve the
console. The PIC initialization stayed just below the console
initialization where it could still be debugged but no longer works.

Later console initialization breaks mainly debugging vm86 initialization
and memory sizing using ddb and printf(). There are several printf()s
in the memory sizing that now go nowhere since message buffer
initialization has always been too late. Memory sizing is done by loader
for most users, but the lost messages for this case are even more
interesting than for an auto-probe since they tell you what the loader
found.
14:03:25 - r304957
(1 day 7 hours ago)
by bde
Affects:  /head/sys/i386/i386/machdep.c
Fix vm86 initialization, part 1 of 2 and a half.

vm86 uses the tss, but r273995 moved tss initialization to after where
it may be first used, just because tss_esp0 now depends on later
initializations and/or amd64 does it later.

vm86 is first used for memory sizing in cases where the loader can't
figure out the size or is not used. Its initialization is placed
immediately before memory sizing to support this, and the tss was
initialized a little earlier.

Move everything in the tss initialization except for tss_esp0 back to
almost where it was, immediately before vm86 initialization (the
combined move is from before dblflt_tss initialization to after). Add
only early initialization of tss_esp0, later reloading of the tss, and
comments. The initial tss_esp0 no longer has space for the pcb since
initially the size of the pcb is not known and no pcb is needed.
(Later changes broke debugging at this point, so the nonexistent pcb
cannot be used by debuggers, and at the time of 273995 when ddb was
almost able to debug this problem it didn't need the pcb.) The
iniitial tss_esp0 still has a magic 16 bytes reserved for vm86
although I think this is unused too.
12:05:34 - r304956
(1 day 9 hours ago)
by bz
Affects:  /head/sys/modules/Makefile
Back out r304907, Ed had fixed it apparently earlier in the cloudabi*
subdirectories.

Reported by: np
11:58:15 - r304955
(1 day 9 hours ago)
by dim
Affects: 
(44 files)
/projects/clang390-import/*
Merge ^/head r304885 through r304954.
11:54:45 - r304954
(1 day 9 hours ago)
by dim
Affects:  /projects/clang390-import/share/mk/bsd.sys.mk
Squelch -Wconstant-conversion for WARNS <= 2. In clang 3.9.0, this
warning has become more aggressive, and it usually turns up in decades
old code, where fixing it is more trouble than it is worth.
11:51:46 - r304953
(1 day 9 hours ago)
by dim
Affects:  /head/sys/contrib/ipfilter/netinet/ip_compat.h
Define ipfilter's SOLARIS macro in a defined and portable way.

Reviewed by: cy
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D7671
07:40:11 - r304952
(1 day 13 hours ago)
by oshogbo
Affects:  /head/sys/sys/cnv.h
Remove duplicated declaration.

Reported by: adrian@
07:19:33 - r304951
(1 day 14 hours ago)
by ngie
Affects: 
(2 files)
/stable/11/usr.bin/tar/tests/Makefile
MFC r303804:

Fix building usr.bin/tar/tests with PIE symbol building enabled by
removing CFLAGS+= -static

`CFLAGS+= -static` was a carryover from pre-r289195 with
usr.bin/tar/test/Makefile that should have been specified in LDFLAGS
There doesn't seem to be an apparent need for static compilation
of the test binaries.

Obtained-from: opBSD (418a491eed20d2603ddd1f1bd92c2c0d95094002)
07:17:25 - r304950
(1 day 14 hours ago)
by ngie
Affects: 
(2 files)
/stable/11/lib/libc/tests/resolv/resolv_test.c
MFC r304033:

Increase timeout from 10 minutes to 20 minutes for all tests

On particular slow networks, it can (on average) take longer to
resolve hosts to IP* addresses. 20 minutes seemed reasonable for
my work network

This will be solved in a more meaningful way (if possible) using
concurrency in the near future
07:16:11 - r304949
(1 day 14 hours ago)
by ngie
Affects: 
(3 files)
/stable/11/usr.bin/getconf/getconf.c
/stable/11/usr.bin/getconf/pathconf.gperf
MFC r303830,r304693,r304694,r304698:

r303830:

Remove vestigal references to __alpha__

Replace alpha reference in getconf(1) with amd64 [*]

PR: 211300 [*]

r304693:

Clean up trailing whitespace

r304694:

Add `MIN_HOLE_SIZE` pathconf(2) support to getconf

This allows shell programs to programmatically determine whether
or not a filesystem supports sparse files

r304698:

Add support for _PC_ACL_NFS4 as TRUSTEDBSD_ACL_NFS4

The TRUSTEDBSD prefix was chosen for consistency with the other
related `_PC_ACL*` prefixed variables.
07:12:47 - r304948
(1 day 14 hours ago)
by ngie
Affects: 
(4 files)
/stable/11/cddl/usr.sbin/dtrace/tests/common/raise/Makefile
/stable/11/cddl/usr.sbin/dtrace/tests/common/safety/Makefile
/stable/11/cddl/usr.sbin/dtrace/tests/tools/genmakefiles.sh
MFC r303900:

Highball memory requirement (4GB) with common/{raise,safety}

Both test suites require more memory than my amd64 VM using
GENERIC-NODEBUG can provide and reliably panic it with OOM issues in
dtrace(4).

Some of the testcases fail, but this at least bypasses the panic behavior
on platforms that don't have enough resources

Discussed with: markj
07:10:48 - r304947
(1 day 14 hours ago)
by ngie
Affects: 
(2 files)
/stable/11/tests/sys/kern/acct/acct_test.c
MFC r304238:

Only expect :encode_tv_random_million to fail on 64-bit platforms

It passes on i386
07:09:45 - r304946
(1 day 14 hours ago)
by ngie
Affects: 
(6 files)
/stable/11/tests/sys/acl/*
MFC r304040:

Redirect the output of the testcases to stderr instead of
redirecting it to /dev/null

This will aid in debugging failures
07:08:29 - r304945
(1 day 14 hours ago)
by ngie
Affects: 
(2 files)
/stable/11/lib/libc/net/getaddrinfo.c
MFC r304034:

Initialize `ai` to NULL and test for `ai` with type-appropriate values

Depending on the address family and ai_flags containing AI_V4MAPPED,
it might not do a proper DNS lookup on the provided DNS address

Convert some `ai` boolean true/false checks to NULL/non-NULL while here.

PR: 211790
05:42:03 - r304944
(1 day 15 hours ago)
by adrian
Affects:  /head/sys/contrib/dev/ath/ath_hal/ar9300/ar9300phy.h
[ath_hal] add USB PHY control registers for hornet/AR9330.

Obtained from: linux ath9k
05:18:39 - r304943
(1 day 16 hours ago)
by alc
Affects: 
(2 files)
/stable/11/sys/kern/kern_exec.c
MFC r304050
  Eliminate two calls to vm_page_xunbusy() that are both unnecessary and
  incorrect from the error cases in exec_map_first_page(). They are
  unnecessary because we automatically unbusy the page in vm_page_free()
  when we remove it from the object. The calls are incorrect because they
  happen after the page is freed, so we might actually unbusy the page
  after it has been reallocated to a different object. (This error was
  introduced in r292373.)
05:07:13 - r304942
(1 day 16 hours ago)
by alc
Affects: 
(2 files)
/stable/10/sys/vm/vm_pageout.c
MFC r303982
  Correct errors and clean up the comments on the active queue scan.

  Eliminate some unnecessary blank lines.
04:54:02 - r304941
(1 day 16 hours ago)
by adrian
Affects:  /head/tools/tools/net80211/wlanwds/wlanwds.c
[net80211] fix up wlanwds to compile without warnings on clang.
04:40:27 - r304940
(1 day 16 hours ago)
by jhibbits
Affects:  /head/sys/dev/uart/uart_core.c
Fix UART PPS capture mode printing

* Add breaks to prevent fallthrough and printing of multiple modes.
* Only check the mode, mask out all other bits.
04:15:20 - r304939
(1 day 17 hours ago)
by alc
Affects:  /user/alc/PQ_LAUNDRY/sys/vm/vm_pageout.c
Maintain sorted order.
04:10:23 - r304938
(1 day 17 hours ago)
by adrian
Affects:  /head/sys/mips/conf/AR91XX_BASE
/head/sys/mips/conf/TP-WN1043ND
/head/sys/mips/conf/std.AR91XX
[mips] move AR91XX_BASE to std.AR91XX.
04:08:26 - r304937
(1 day 17 hours ago)
by adrian
Affects: 
(6 files)
/head/sys/mips/conf/*
[mips] migrate the QCA955X_BASE file to std.QCA955X, to bring this in line with
other board defaults.
04:08:04 - r304936
(1 day 17 hours ago)
by adrian
Affects:  /head/sys/mips/conf/std.AR934X
Use ALT_BREAK_TO_DEBUGGER as well.
04:07:34 - r304935
(1 day 17 hours ago)
by adrian
Affects:  /head/sys/mips/conf/TL-WDR4300
.. and since others are using wdr3600/wdr4300 right now and are having
arge issues with spammed interrupts / link issues, flip on ARGE_DEBUG too.
04:06:57 - r304934
(1 day 17 hours ago)
by adrian
Affects:  /head/sys/mips/conf/CARAMBOLA2
Since i'm using carambola 2 for more debugging, enable ARGE_DEBUG by default.
04:06:36 - r304933
(1 day 17 hours ago)
by adrian
Affects:  /head/sys/mips/conf/std.AR933X
[mips] make AR933X boards use ALT_BREAK_TO_DEBUGGER like the rest of the
Atheros boards.
04:03:52 - r304932
(1 day 17 hours ago)
by adrian
Affects:  /head/sys/mips/conf/QCA955X_BASE
[mips] QCA955x config file changes to bring things into alignment with the
other atheros config files.

* ALT_BREAK_TO_DEBUGGER, because we get random breaks when unplugging USB
  to serial adapters
* Build more modules!
00:26:06 - r304931
(1 day 21 hours ago)
by kib
Affects:  /head/lib/libc/amd64/sys/ptrace.S
Follow ABI when calling __error from the ptrace(2) wrapper.

In particular, preserve syscall arguments on stack, since callee is
not required to preserve arg-passing registers. Align stack.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week
00:21:24 - r304930
(1 day 21 hours ago)
by skreuzer
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Remove stale items

Approved by: re (gjb, implicit, relnotes)
00:12:45 - r304929
(1 day 21 hours ago)
by skreuzer
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document r299142, The leap-seconds file has been updated to
  leap-seconds.3676752000
Document r302177, WITH_SYSTEM_COMPILER: Enable by default
Document r304246, PCIe HotPlug: Detect bridges that are not really
  HotPlug capable
Document r301565, Switch arm64 to use intrng by default
Document r299781, Support for the Allwinner Reduced Serial Bus (RSB)
Document r296064, Support for Allwinner A20 HDMI
Document r299393, Default installation directory for modules is /boot/modules
Document r303716, Drop SSH1 support
Document r303719, Disable DSA by default
Document r297633, RCTL resources for limited filesystem IO
Document r300723, Mellanox implementation of iSER
Document r299848, Allow reroot to NFS
Document r301033, Discovery without attaching support in iscsictl
Document r299371, camcontrol reprobe
Document r295212, Add an additional, libucl-based configuration file parser
  to ctld
Document r287842, Change default regulatory domain from DEBUG to FCC in ifconfig
Document r301875, The SIOCSIFALIFETIME_IN6 ioctl has been removed

Approved by: re (gjb, implicit, relnotes)
2016 - 08 - 27   (2 days ago)
23:03:23 - r304928
(1 day 22 hours ago)
by kib
Affects:  /head/lib/libc/amd64/sys/ptrace.S
/head/lib/libc/i386/sys/ptrace.S
/head/lib/libc/sys/ptrace.2
Do not obliterate errno value in the main thread during ptrace(2) call on x86.

Since ptrace(2) syscall can return -1 for non-error situations, libc
wrappers set errno to 0 before performing the syscall, as the service
to the caller. On both i386 and amd64, the errno symbol was directly
referenced, which only works correctly in single-threaded process.

Change assembler wrappers for ptrace(2) to get current thread errno
location by calling __error(). Allow __error interposing, as
currently allowed in cerror().

Sponsored by: The FreeBSD Foundation
MFC after: 1 week
22:43:41 - r304927
(1 day 22 hours ago)
by mjg
Affects:  /head/sys/kern/vfs_lookup.c
vfs: provide a common exit point in namei for error cases

This shortens the function, adds the SDT_PROBE use for error cases and
consistenly unrefs rootdir last.

Reviewed by: kib
MFC after: 2 weeks
22:23:10 - r304926
(1 day 23 hours ago)
by markj
Affects: 
(101 files)
/user/alc/PQ_LAUNDRY/*
MFH r304925
22:18:12 - r304925
(1 day 23 hours ago)
by markj
Affects:  /user/alc/PQ_LAUNDRY/sys/vm/vm_pageout.c
Rename "starting_target" to "last_target".

Discussed with: alc
21:52:57 - r304924
(1 day 23 hours ago)
by alc
Affects:  /user/alc/PQ_LAUNDRY/sys/vm/vm_pageout.c
Eliminate redundant assignments to "last_launder" and "starting_target".

Correct an inverted comparison.

Reviewed by: markj
Sponsored by: EMC / Isilon Storage Division
21:32:56 - r304923
(1 day 23 hours ago)
by skreuzer
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document r299142, Native PCIe Hotplug support
Document r298166, libucl has been updated to version 0.8.0
Document r302288, Enable indirect segment I/O by default when running on EC2
Document r302265, Allow ZFS ARC min / max to be tuned at runtime

Approved by: re (gjb, implicit, relnotes)
21:31:00 - r304922
(2 days ago)
by alc
Affects: 
(2 files)
/stable/11/sys/vm/vm_pageout.c
MFC r303747,303982
  Correct errors and clean up the comments on the active queue scan.

  Eliminate some unnecessary blank lines.

  Clean up the comments and code style in and around vm_pageout_cluster().
  In particular, fix factual, grammatical, and spelling errors in various
  comments, and remove comments that are out of place in this function.
20:43:52 - r304921
(2 days ago)
by skreuzer
Affects:  /stable/11/usr.sbin/bsdinstall/scripts/hardening
MFC r303877:

Write kern.randompid to /etc/sysctl.conf

Approved by: allanjude
20:33:20 - r304920
(2 days ago)
by dim
Affects:  /head/contrib/ncurses/ncurses/tinfo/lib_baudrate.c
In ncurses baudrate definitions, avoid warnings about implicit
conversions from int to short changing the values. This applies to
B38400 and higher, since their values do not fit into a short.

However, since the wrapped values are still unique, and they only serve
as keys, there is no problem in adding a cast to silence the warnings.
This also avoids changing the ABI, which would happen if we changed
NCURSES_OSPEED to int.

Discussed with: Thomas Dickey
MFC after: 1 week
20:08:34 - r304919
(2 days 1 hour ago)
by skreuzer
Affects:  /stable/11/release/doc/en_US.ISO8859-1/relnotes/article.xml
Document 292120, Update to ELF Tool Chain r3272

Approved by: re (gjb, implicit, relnotes)
19:51:37 - r304918
(2 days 1 hour ago)
by mav
Affects:  /head/sys/cam/ata/ata_all.c
Decode some new ATA commands found in ACS-3.

MFC after: 1 week
18:51:04 - r304917
(2 days 2 hours ago)
by alc
Affects:  /user/alc/PQ_LAUNDRY/sys/vm/vm_pageout.c
Changes to vm_pageout_laundry_worker():

Reset "last_launder" on each cycle of a shortfall laundering run, just
like we do for background laundering.

Update a comment about background laundering that has become stale.

Apply a couple style changes for consistency with the rest of the
function.

Add a comment explaining why min() is applied to the return value from
vm_pageout_launder().

Sponsored by: EMC / Isilon Storage Division
18:12:42 - r304916
(2 days 3 hours ago)
by kib
Affects:  /head/sys/kern/vnode_if.src
Consistently delimit each vnode description block with two blank
lines.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days
18:08:25 - r304915
(2 days 3 hours ago)
by oshogbo
Affects:  /head/share/man/man9/cnv.9
Bump date in the man page.
16:01:10 - r304914
(2 days 5 hours ago)
by dim
Affects:  /projects/clang390-import/usr.bin/clang/Makefile.inc
Compile clang, lldb and related tools with WARNS=3 by default.
15:59:32 - r304913
(2 days 5 hours ago)
by dim
Affects:  /projects/clang390-import/contrib/libc++/include/bitset
Tentatively apply https://reviews.llvm.org/D23960, to squelch errors
about narrowing in <bitset>.
15:22:55 - r304912
(2 days 6 hours ago)
by oshogbo
Affects:  /head/sys/sys/cnv.h
Add missed header file for cnv.h .

Submitted by: Adam Starak <starak.adam@gmail.com>
Reported by: ache@
14:43:13 - r304911
(2 days 6 hours ago)
by ache
Affects:  /head/lib/libc/net/getaddrinfo.c
The formal behavior of qsort is unstable with regard to objects that
are equal. Unfortunately, RFC 3484 requires that otherwise equal objects
remain in the order supplied by the DNS server. The present code attempts
to deal with this by returning -1 for objects that are equal (i.e.,
returns that the first parameter is less then the second parameter).
Unfortunately, the qsort API does not state that the first parameter
passed in is in any particular position in the list.

PR: 212122
Submitted by: Herbie.Robinson@stratus.com
MFC after: 3 days
13:47:52 - r304910
(2 days 7 hours ago)
by oshogbo
Affects:  /head/share/man/man9/Makefile
/head/share/man/man9/cnv.9
Introduce cnv man page.

Submitted by: Adam Starak <starak.adam@gmail.com>
Reviewed by: cem@, wblock@
Differential Revision: https://reviews.freebsd.org/D7249
13:40:27 - r304909
(2 days 7 hours ago)
by oshogbo
Affects:  /head/lib/libnv/tests/Makefile
/head/lib/libnv/tests/cnv_tests.cc
/head/sys/contrib/libnv/cnvlist.c
Fix style issue in the cnv API.
Remove unused arguments in a macro.
Remove unused typedef.
13:37:30 - r304908
(2 days 7 hours ago)
by oshogbo
Affects: 
(7 files)
/head/lib/libnv/*
/head/sys/conf/files
/head/sys/contrib/libnv/*
Add cnv API.

cnv API is a set of functions for managing name/value pairs by cookie.
The cookie can be obtained by nvlist_next(), nvlist_get_parent() or
nvlist_get_pararr() function. This patch also includes unit tests.

Submitted by: Adam Starak <starak.adam@gmail.com>
12:41:15 - r304907
(2 days 8 hours ago)
by bz
Affects:  /head/sys/modules/Makefile
Do not try to build cloudabi32 for pc98.

Should unbreak tinderbox.
11:51:08 - r304906
(2 days 9 hours ago)
by dim
Affects: 
(4 files)
/projects/clang390-import/contrib/llvm/lib/Transforms/Scalar/SCCP.cpp
/projects/clang390-import/contrib/llvm/tools/clang
/projects/clang390-import/lib/clang/include/clang/Basic/Version.inc
Update llvm to release_39 branch r279689.
11:45:05 - r304905
(2 days 9 hours ago)
by kib
Affects: 
(8 files)
/stable/10/sys/ddb/db_ps.c
/stable/10/sys/kern/*
/stable/10/sys/sys/proc.h
MFC r303426:
Rewrite subr_sleepqueue.c use of callouts to not depend on the
specifics of callout KPI.
11:40:37 - r304904
(2 days 9 hours ago)
by dim
Affects:  /vendor/lldb/lldb-release_39-r279689
Tag lldb release_39 branch r279689.
11:40:11 - r304903
(2 days 9 hours ago)
by dim
Affects:  /vendor/lld/lld-release_39-r279689
Tag lld release_39 branch r279689.
11:39:30 - r304902
(2 days 9 hours ago)
by dim
Affects:  /vendor/libc++/libc++-release_39-r279689
Tag libc++ release_39 branch r279689.
11:38:53 - r304901
(2 days 9 hours ago)
by dim
Affects:  /vendor/compiler-rt/compiler-rt-release_39-r279689
Tag compiler-rt release_39 branch r279689.
11:38:37 - r304900
(2 days 9 hours ago)
by kib
Affects: 
(5 files)
/stable/10/share/man/man9/*
/stable/10/sys/kern/kern_timeout.c
/stable/10/sys/sys/callout.h
MFC r303425:
Add callout_when(9).

MFC r303919:
Fix indentation.
11:38:21 - r304899
(2 days 9 hours ago)
by dim
Affects:  /vendor/clang/clang-release_39-r279689
Tag clang release_39 branch r279689.
11:37:44 - r304898
(2 days 9 hours ago)
by dim
Affects:  /vendor/llvm/llvm-release_39-r279689
Tag llvm release_39 branch r279689.
11:37:22 - r304897
(2 days 9 hours ago)
by dim
Affects:  /vendor/llvm/dist/lib/Transforms/Scalar/SCCP.cpp
/vendor/llvm/dist/test/Transforms/SCCP/calltest.ll
Vendor import of llvm release_39 branch r279689:
https://llvm.org/svn/llvm-project/llvm/branches/release_39@279689
11:07:57 - r304896
(2 days 10 hours ago)
by ache
Affects: 
(5 files)
/stable/11/lib/libc/stdio/*
MFC r304607,r304641,r304819,r304811

1) Don't forget to set __SERR on __slbexpand() error.

2) Remove "Fast path" from fgetwc()/fputwc() since it can't detect
encoding errors and ignores them all.
One of affected encoding example: US-ASCII

3) Original fgetln() from 44lite return success for line tail errors,
i.e. partial line, but set __SERR and errno in the same time, which
is inconsistent.
Now both OpenBSD and NetBSD return failure, i.e. no line and set error
indicators for such case, so make our fgetln() and fgetwln()
(as its wide version) compatible with the rest of *BSD.

PR: 212033
11:06:06 - r304895
(2 days 10 hours ago)
by bde
Affects:  /head/usr.bin/netstat/route.c
Fix build without INET6 and with gcc. A function definition was ifdefed
for INET6, but its protototype was not, and gcc detects the error.
10:56:04 - r304894
(2 days 10 hours ago)
by kib
Affects: 
(6 files)
/stable/10/sys/kern/*
/stable/10/sys/sys/time.h
MFC r264388 (by davide):
Define SBT_MAX.

MFC r267896 (by davide):
Improve r264388.

MFC note. The SBT_MAX definition already existed on stable/10, but without
the refinement from r267896. Also, consumers of SBT_MAX were not converted,
since r264388 was not merged properly.

Reviewed by: mav
10:34:01 - r304893
(2 days 10 hours ago)
by ache
Affects: 
(5 files)
/stable/10/lib/libc/stdio/*
MFC r304607,r304641,r304819,r304811

1) Don't forget to set __SERR on __slbexpand() error.

2) Remove "Fast path" from fgetwc()/fputwc() since it can't detect
encoding errors and ignores them all.
One of affected encoding example: US-ASCII

3) Original fgetln() from 44lite return success for line tail errors,
i.e. partial line, but set __SERR and errno in the same time, which
is inconsistent.
Now both OpenBSD and NetBSD return failure, i.e. no line and set error
indicators for such case, so make our fgetln() and fgetwln()
(as its wide version) compatible with the rest of *BSD.

PR: 212033
10:30:20 - r304892
(2 days 11 hours ago)
by andrew
Affects:  /head/sys/arm64/arm64/machdep.c
Print both the kernel read and write translation in DDB when asking for
a virtual to physical translation. These may be different, e.g. when a
page is mapped as read-only.

MFC after: 1 month
Sponsored by: ABT Systems Ltd
10:04:48 - r304891
(2 days 11 hours ago)
by avos
Affects:  /head/sys/dev/iwm/if_iwmreg.h
iwm: fix few comment typos.
10:00:36 - r304890
(2 days 11 hours ago)
by ache
Affects: 
(4 files)
/stable/11/lib/libc/stdio/getdelim.c
/stable/11/lib/libc/stdio/vfprintf.c
/stable/11/lib/libc/stdio/vfwprintf.c
MFC r304810

Don't check for __SERR which may stick from one of any previous stdio
functions.
__SERR is for user and the rest of stdio code do not check it
for error sensing internally, only set it.
In vf(w)printf.c here it is more easy to save __SERR, clear and restore it.
10:00:33 - r304889
(2 days 11 hours ago)
by dim
Affects: 
(5 files)
/projects/clang390-import/lib/clang/*
/projects/clang390-import/usr.bin/clang/*
Centralize where LLVM_SRCS, CLANG_SRCS and LLDB_SRCS are defined.
09:58:06 - r304888
(2 days 11 hours ago)
by ache
Affects: 
(4 files)
/stable/10/lib/libc/stdio/getdelim.c
/stable/10/lib/libc/stdio/vfprintf.c
/stable/10/lib/libc/stdio/vfwprintf.c
MFC r304810

Don't check for __SERR which may stick from one of any previous stdio
functions.
__SERR is for user and the rest of stdio code do not check it
for error sensing internally, only set it.
In vf(w)printf.c here it is more easy to save __SERR, clear and restore it.
09:51:57 - r304887
(2 days 11 hours ago)
by dim
Affects:  /projects/clang390-import/usr.bin/clang/clang.prog.mk
Missed one .mk file where OBJTOP can be used.
09:50:11 - r304886
(2 days 11 hours ago)
by ed
Affects:  /head/sys/modules/cloudabi32/Makefile
/head/sys/modules/cloudabi64/Makefile
Properly use MACHINE_CPUARCH for finding cloudabi*_sysvec.c.

The build of the cloudabi32 kernel module currently fails for PC98. In
the case of PC98, we just want to use the code for i386.

Reported by: np
09:40:29 - r304885
(2 days 11 hours ago)
by dim
Affects: 
(228 files)
/projects/clang390-import/*
Merge ^/head r304700 through r304884.
09:29:39 - r304884
(2 days 12 hours ago)
by dim
Affects: 
(7 files)
/projects/clang390-import/lib/clang/*
/projects/clang390-import/usr.bin/clang/*
Use SRCTOP and OBJTOP throughout the llvm/clang/lldb build.
09:23:20 - r304883
(2 days 12 hours ago)
by kib
Affects: 
(8 files)
/stable/11/sys/ddb/db_ps.c
/stable/11/sys/kern/*
/stable/11/sys/sys/proc.h
MFC r303426:
Rewrite subr_sleepqueue.c use of callouts to not depend on the
specifics of callout KPI.
09:11:57 - r304882
(2 days 12 hours ago)
by kib
Affects: 
(5 files)
/stable/11/share/man/man9/*
/stable/11/sys/kern/kern_timeout.c
/stable/11/sys/sys/callout.h
MFC r303425:
Add callout_when(9).

MFC r303919:
Fix indentation.
08:51:34 - r304881
(2 days 12 hours ago)
by hselasky
Affects: 
(82 files)
/projects/hps_head/*
Merge ^/head r304848 through r304880.
08:34:20 - r304880
(2 days 12 hours ago)
by avos
Affects:  /head/sys/dev/iwm/if_iwm.c
iwm: add 'command accepted' debug notification (copied from wpi(4)).

Now it should be easier to find out which command causes firmware
panics when few commands are sent in a short period of time.
02:53:21 - r304879
(2 days 18 hours ago)
by cy
Affects: 
(10 files)
/stable/10/etc/*
/stable/11/etc/*
/stable/9/etc/*
MFC r304779, r304780, r304781, r304782, r304802

r304779:

  Revert r298887 (spelling fix) and remove $FreeBSD$ because text changes
  to leap-seconds invaldidates validation hash at the end of the file.

  Remove svn:keywords and replace with fbsd:nokeywords=yes to
  support this change.

r304780:

  Change the algorithm by which /var/db/leap-seconds is updated.

  1. Use the leap-seconds version number (update time) to determine
  whether to update the file or not.

  2. If the version numbers of the files is the same, use the later
  expiry date to determine which file to use.

  Suggested by: ian@

r304781:

  Add logic to replace the working ntp leap-seconds file in /var/db
  if it contains a $FreeBSD$ header. The header will cause the file
  to fail checksum of the hash causing ntpd to ignore the file.

r304782:

  Make validation of the leap-seconds file unconditional.

r304802:

  Remove the gratuitous check for $FreeBSD$ and rename the function
  to ntpd_init_leapfile, to ensure a copy exists in /var/db if a copy
  isn't already there.

  Reported by: ache@
02:27:29 - r304878
(2 days 19 hours ago)
by cy
Affects: 
(7 files)
/stable/10/usr.sbin/ntp/doc/sntp.8
/stable/11/usr.sbin/ntp/doc/sntp.8
/stable/9/usr.sbin/ntp/doc/sntp.8
MFC r304721:

Fixup man page formatting.

Submitted by: Steve Kargl <sgk@troutmask.apl.washington.edu>
Discussed with: bjk@
01:28:00 - r304877
(2 days 20 hours ago)
by bapt
Affects:  /head/share/mk/bsd.sys.mk
Remove warning on struct-overflow on gcc 5.3.0 as zic(8) dies on it
00:58:21 - r304876
(2 days 20 hours ago)
by landonf
Affects:  /head/sys/dev/bhnd/bhnd_bus_if.m
/head/sys/dev/bhnd/siba/siba.c
Implement siba(4) support for bhnd_(read|write)_config.

This provides access to the siba(4) bus-mapped per-core cfg0 register
block.

Approved by: adrian (mentor, implicit)
00:56:37 - r304875
(2 days 20 hours ago)
by delphij
Affects:  /head/usr.bin/gzip/gzip.c
Use printable ASCII instead of octal representation.

MFC after: 2 weeks
00:47:47 - r304874
(2 days 20 hours ago)
by mm
Affects:  /head/lib/libarchive/tests/Makefile
Temporarily disable two libarchive tests that have not yet been fixed by
vendor. Tests will be re-enabled after a fix has been merged.

MFC after: 3 days
00:13:41 - r304873
(2 days 21 hours ago)
by np
Affects: 
(5 files)
/head/sys/dev/cxgbe/*
cxgbe(4): Provide more details about the card in the sysctl MIB.

dev.t5nex.0.%desc: Chelsio T580-CR
dev.t5nex.0.hw_revision: 1
dev.t5nex.0.sn: PT13140042
dev.t5nex.0.pn: 110117150A0
dev.t5nex.0.ec: 0000000000000000
dev.t5nex.0.na: 0007432AF490
dev.t5nex.0.vpd_version: 3
dev.t5nex.0.scfg_version: 53255
dev.t5nex.0.bs_version: 1.1.0.0
dev.t5nex.0.er_version: 1.0.0.68
dev.t5nex.0.tp_version: 0.1.4.9
dev.t5nex.0.firmware_version: 1.16.2.0

Sponsored by: Chelsio Communications
00:07:48 - r304872
(2 days 21 hours ago)
by landonf
Affects: 
(6 files)
/head/sys/dev/bhnd/*
bhnd(4): Include the chip model (e.g. BCM4xxx) in bhnd(4) bus's device
descriptions.

Reviewed by: mizhka
Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D7570
00:06:20 - r304871
(2 days 21 hours ago)
by landonf
Affects: 
(15 files)
/head/sys/dev/bhnd/cores/*
/head/sys/mips/broadcom/*
[mips/broadcom]: Replace static frequency table with generic PMU clock
handling.


- Extended PWRCTL/PMU APIs to support querying clock frequency during very
  early boot, prior to bus attach.
- Implement generic PMU-based calculation of UART rclk values.
- Replaced use of static frequency tables (bcm_socinfo) with
  runtime-determined values.

Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D7552
00:03:02 - r304870
(2 days 21 hours ago)
by landonf
Affects: 
(43 files)
/head/sys/*
bhnd(4): Initial PMU/PWRCTL power and clock management support.


- Added bhnd_pmu driver implementations for PMU and PWRCTL chipsets,
  derived from Broadcom's ISC-licensed HND code.
- Added bhnd bus-level support for routing per-core clock and resource
  power requests to the PMU device.
- Lift ChipCommon support out into the bhnd module, dropping
  bhnd_chipc.

Reviewed by: mizhka
Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D7492
2016 - 08 - 26   (3 days ago)
23:50:44 - r304869
(2 days 21 hours ago)
by mm
Affects: 
(12 files)
/head/contrib/libarchive/libarchive/*
/head/contrib/libarchive/tar/util.c
MFV r304866:
Sync libarchive with vendor including security fixes

Vendor issues fixed:
Issue #731: Reject tar entries >= INT64_MAX
Issue #744 (part of Issue #743): Enforce sandbox with very long pathnames
Issue #748: Zip decompression failure with highly-compressed data
Issue #767: Buffer overflow printing a filename
Issue #770: Zip read: be more careful about extra_length

MFC after: 3 days
22:56:23 - r304868
(2 days 22 hours ago)
by dim
Affects:  /projects/clang390-import/lib/clang/clang.pre.mk
/projects/clang390-import/lib/clang/llvm.pre.mk
Add forgotten {llvm,clang}.pre.mk files.
22:44:22 - r304867
(2 days 22 hours ago)
by dim
Affects: 
(326 files)
/projects/clang390-import/Makefile.inc1
/projects/clang390-import/lib/clang/*
/projects/clang390-import/usr.bin/clang/*
Completely revamp the way llvm, clang and lldb are built.

* Bootstrap llvm-tblgen and clang-tblgen with a minimal llvm static
  library, that has no other dependencies.
* Roll up all separate llvm libraries into one big static libllvm.
* Similar for all separate clang and lldb static libraries.
* For all these libraries, generate their .inc files only once.
* Link all llvm tools (including extra) against the big libllvm.
* Link clang and clang-format against the big libllvm and libclang.
* Link lldb against the big libllvm, libclang and liblldb.

N.B.: This is work in progress, some details may still be missing.

It also heavily depends on bsd.*.mk's support for SRCS and DPSRCS with
relative pathnames, which apparently does not always work as expected.
For building llvm, clang and lldb though, it seems to work just fine.

The main idea behind this restructuring is maintainability and build
peformance. The previous large number of very small libraries, each
with their own generated files and dependencies was slow to traverse
and hard to understand.

Possible future improvements:
* Only build certain targets, e.g. for most regular users having just
  one target will be fine. This will shave off some build time.
* Building the big llvm, clang and lldb libraries as shared (private)
  libraries.
* Adding other components from the LLVM project, such as lld.
22:02:37 - r304866
(2 days 23 hours ago)
by mm
Affects: 
(5 files)
/vendor/libarchive/dist/libarchive/*
/vendor/libarchive/dist/tar/util.c
Update vendor/libarchive to git 299c6bf136b9bc328b498505f24f87e732b73ff6

Vendor issues fixed:
Issue #731: Reject tar entries >= INT64_MAX
Issue #744 (part of Issue #743): Enforce sandbox with very long pathnames
Issue #748: Zip decompression failure with highly-compressed data
Issue #767: Buffer overflow printing a filename
Issue #770: Be more careful about extra_length
21:28:24 - r304865
(3 days ago)
by ache
Affects:  /stable/11/sys/sys/param.h
Bump __FreeBSD_version after LC_*_MASK fix
21:26:33 - r304864
(3 days ago)
by ache
Affects:  /stable/10/sys/sys/param.h
Bump __FreeBSD_version after LC_*_MASK fix
21:23:38 - r304863
(3 days ago)
by ache
Affects: 
(3 files)
/stable/11/include/xlocale/_locale.h
/stable/11/lib/libc/nls/msgcat.c
MFC r304703, r304755

1) _locale.h
LC_*_MASK bit shifting order was partially broken from the initial commit
time at year 2012. Only LC_COLLATE_MASK and LC_CTYPE_MASK are in the
right order.

The order here should match XLC_* from "xlocale_private.h" which, in turn,
match LC_* publicly visible order from <locale.h> which determines how
locale components are stored in the structure.
LC_*_MASK -> XLC_* translation done as "ffs(mask) - 1" in the querylocale()
and equivalent shift loop in the newlocale(), so mapped to some wrong
components (excluding two mentioned above).

Formally the fix is ABI breakage, but old code using those masks
never works properly in any case.
Only newlocale() and querylocale() are affected.

2) msgcat.c
Use current locale (f.e. set by thread). It was global locale always
previously.

PR: 211743
21:19:23 - r304862
(3 days ago)
by ache
Affects: 
(3 files)
/stable/10/include/xlocale/_locale.h
/stable/10/lib/libc/nls/msgcat.c
MFC r304703, r304755

1) _locale.h
LC_*_MASK bit shifting order was partially broken from the initial commit
time at year 2012. Only LC_COLLATE_MASK and LC_CTYPE_MASK are in the
right order.

The order here should match XLC_* from "xlocale_private.h" which, in turn,
match LC_* publicly visible order from <locale.h> which determines how
locale components are stored in the structure.
LC_*_MASK -> XLC_* translation done as "ffs(mask) - 1" in the querylocale()
and equivalent shift loop in the newlocale(), so mapped to some wrong
components (excluding two mentioned above).

Formally the fix is ABI breakage, but old code using those masks
never works properly in any case.
Only newlocale() and querylocale() are affected.

2) msgcat.c
Use current locale (f.e. set by thread). It was global locale always
previously.

PR: 211743
20:51:09 - r304861
(3 days ago)
by markj
Affects: 
(5 files)
/vendor/illumos/dist/cmd/dtrace/test/tst/common/llquantize/*
/vendor/illumos/dist/lib/libdtrace/common/dt_aggregate.c
7297 clear() on llquantize aggregation causes dtrace to exit
7298 printa() of multiple aggregations can fail for llquantize()

illumos/illumos-gate@0ddc0ebb74cedb0ac394818c6e166c47eb8e62e5

Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Dan McDonald <danmcd@omniti.com>
Reviewed by: Adam Leventhal <adam.leventhal@gmail.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
Author: Bryan Cantrill <bryan@joyent.com>
20:23:10 - r304860
(3 days 1 hour ago)
by ed
Affects:  /head/include/libgen.h
/head/lib/libc/gen/dirname.c
Improve compatibility of calls to dirname() on constant strings.

As the xinstall(8) utility had to be patched up to work with the POSIXly
correct basename()/dirname() prototypes, we make it pretty hard to build
previous versions of FreeBSD on HEAD. xinstall(8) is part of the
bootstrap tools.

Add some logic to <libgen.h> to automatically detect bad calls to
dirname() based on the type of the argument. If the argument is of type
'const char *', we simply fall back to calling into dirname@FBSD_1.0
directly.

I'll also give basename() similar treatment when importing the
thread-safe version of that function.

Tested by: bdrewery, madpilot (thanks!)
20:16:02 - r304859
(3 days 1 hour ago)
by landonf
Affects: 
(14 files)
/head/sys/dev/bhnd/*
/head/sys/mips/broadcom/*
[mips/broadcom] Generic platform_reset() support.

This adds support for performing platform_reset() on all supported
devices, using early boot enumeration of chipc capabilities and
available cores.


- Added Broadcom-specific MIPS CP0 register definitions used by
  BCM4785-specific reset handling.
- Added a bcm_platform structure for tracking chipc/pmu/cfe platform
  data.
- Extended the BCMA EROM API to support early boot lookup of core info
  (including port/region mappings).
- Extended platform_reset() to support PMU, PMU+AOB, and non-PMU
  devices.

Reviewed by: mizhka
Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D7539
20:15:22 - r304858
(3 days 1 hour ago)
by jhb
Affects:  /head/sys/amd64/vmm/io/iommu.c
/head/sys/amd64/vmm/io/iommu.h
/head/sys/amd64/vmm/vmm.c
Enable I/O MMU when PCI pass through is first used.

Rather than enabling the I/O MMU when the vmm module is loaded,
defer initialization until the first attempt to pass a PCI device
through to a guest. If the I/O MMU fails to initialize or is not
present, than fail the attempt to pass a PCI device through to a
guest.

The hw.vmm.force_iommu tunable has been removed since the I/O MMU is
no longer enabled during boot. However, the I/O MMU support can be
disabled by setting the hw.vmm.iommu.enable tunable to 0 to prevent
use of the I/O MMU on any systems where it is buggy.

Reviewed by: grehan
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D7448
19:23:17 - r304857
(3 days 2 hours ago)
by hiren
Affects:  /head/sys/netinet/tcp_stacks/fastpath.c
Adjust TCP module fastpath after r304803's cc_ack_received() changes.

Reported by: hiren, bz, np
Reviewed by: rrs
Sponsored by: Limelight Networks
Differential Revision: https://reviews.freebsd.org/D7664
19:08:58 - r304856
(3 days 2 hours ago)
by sbruno
Affects: 
(1580 files)
/projects/mips64-clang/*
MFC @304855
17:48:54 - r304855
(3 days 3 hours ago)
by hiren
Affects:  /head/sys/netinet/tcp_fsm.h
Update TCPS_HAVERCVDFIN() macro to correctly include all states a connection
can be in after receiving a FIN.

FWIW, NetBSD has this change for quite some time.

This has been tested at Netflix and Limelight in production traffic.

Reported by: Sam Kumar <samkumar99 at gmail.com> on transport@
Reviewed by: rrs
MFC after: 4 weeks
Sponsored by: Limelight Networks
Differential Revision: https://reviews.freebsd.org/D7475
17:38:13 - r304854
(3 days 3 hours ago)
by np
Affects: 
(5 files)
/head/contrib/ofed/libcxgb4/src/qp.c
/head/sys/dev/cxgbe/iw_cxgbe/*
cxgbe/iw_cxgbe: Various fixes to the iWARP driver.

- Return appropriate error code instead of ENOMEM when sosend() fails in
  send_mpa_req.
- Fix for problematic race during destroy_qp.
- Abortive close in the failure of send_mpa_reject() instead of normal close.
- Remove the unnecessary doorbell flowcontrol logic.

Submitted by: Krishnamraju Eraparaju at Chelsio
MFC after: 1 month
Sponsored by: Chelsio communications
17:32:51 - r304853
(3 days 3 hours ago)
by markj
Affects: 
(260 files)
/user/alc/PG_CACHED/*
Merge from PQ_LAUNDRY at r304852
17:31:20 - r304852
(3 days 4 hours ago)
by markj
Affects: 
(257 files)
/user/alc/PQ_LAUNDRY/*
MFH r289108
17:28:57 - r304851
(3 days 4 hours ago)
by markj
Affects:  /user/alc/PQ_LAUNDRY/sys/vm/vm_pageout.c
Clean up the background laundering tunables a bit.

Reviewed by: alc
14:58:57 - r304850
(3 days 6 hours ago)
by tsoome
Affects:  /head/lib/libstand/dosfs.c
Unused variables and cstyle fix for loader dosfs

Reviewed by: imp, allanjude
Approved by: imp (mentor), allanjude (mentor)
Differential Revision: https://reviews.freebsd.org/D7659
13:59:21 - r304849
(3 days 7 hours ago)
by sbruno
Affects:  /projects/mips64-clang/contrib/gcc/config/mips/mips.h
Fixup build with llvm/clang:

https://reviews.llvm.org/D23497 and the attached FreeBSD patch work together
to fix this problem and should be sufficient so long as you don't have
-save-temps or -via-file-asm in your compiler flags. The LLVM patch makes the
.local directive work properly when assembling an ELF while the FreeBSD patch
ensures the assembler never sees a forward-declared local label by declaring
them in advance with .local. However, the LLVM patch currently breaks if you
use -save-temps or -via-file-asm since MCAsmStreamer's implementation of .local
doesn't do anything to the MCSymbol and only emits a .local directive. This
causes the assembler to interpret it as an external symbol and emit the wrong
jal expansion.

Submitted by: Daniel Sanders <Daniel.Sanders@imgtec.com>
12:37:36 - r304848
(3 days 8 hours ago)
by hselasky
Affects: 
(769 files)
/projects/hps_head/*
Merge ^/head r304171 through r304847.
12:08:27 - r304847
(3 days 9 hours ago)
by hselasky
Affects: 
(2 files)
/stable/9/sys/ofed/drivers/infiniband/core/ucma.c
MFC r304342:
Add support for setting blocking and non-blocking mode on /dev/rdma_cm
by returning success on FIONBIO and FIOASYNC IOCTLs. The actual flags
handling is done by the kern_ioctl() function.

Reported by: Alex Bowden <alex.bowden@outlook.com>
Sponsored by: Mellanox Technologies
12:06:43 - r304846
(3 days 9 hours ago)
by hselasky
Affects: 
(2 files)
/stable/10/sys/ofed/drivers/infiniband/core/ucma.c
MFC r304342:
Add support for setting blocking and non-blocking mode on /dev/rdma_cm
by returning success on FIONBIO and FIOASYNC IOCTLs. The actual flags
handling is done by the kern_ioctl() function.

Reported by: Alex Bowden <alex.bowden@outlook.com>
Sponsored by: Mellanox Technologies
12:04:31 - r304845
(3 days 9 hours ago)
by hselasky
Affects: 
(2 files)
/stable/11/sys/ofed/drivers/infiniband/core/ucma.c
MFC r304342:
Add support for setting blocking and non-blocking mode on /dev/rdma_cm
by returning success on FIONBIO and FIOASYNC IOCTLs. The actual flags
handling is done by the kern_ioctl() function.

Reported by: Alex Bowden <alex.bowden@outlook.com>
Sponsored by: Mellanox Technologies
10:06:24 - r304844
(3 days 11 hours ago)
by kib
Affects: 
(2 files)
/stable/11/sys/kern/kern_time.c
MFC r303388:
Remove Giant from settime().
10:04:10 - r304843
(3 days 11 hours ago)
by kib
Affects: 
(17 files)
/stable/11/sys/*
MFC r303382:
Provide the getboottime(9) and getboottimebin(9) KPI.

MFC r303387:
Prevent parallel tc_windup() calls. Keep boottime in timehands,
and adjust it from tc_windup().

MFC notes:

The boottime and boottimebin globals are still exported from
the kernel dyn symbol table in stable/11, but their declarations are
removed from sys/time.h. This preserves KBI but not KPI, while all
in-tree consumers are converted to getboottime().

The variables are updated after tc_setclock_mtx is dropped, which gives
approximately same unlocked bugs as before.

The boottime and boottimebin locals in several sys/kern_tc.c functions
were renamed by adding the '_x' suffix to avoid name conficts.
09:42:51 - r304842
(3 days 11 hours ago)
by kib
Affects: 
(2 files)
/stable/11/sys/kern/kern_ntptime.c
MFC r303386:
Change ntpadj_lock to spinlock always.
Add missed lock to ntp_update_second().
09:40:34 - r304841
(3 days 11 hours ago)
by kib
Affects: 
(2 files)
/stable/11/sys/kern/subr_rtc.c
MFC r303385:
Reduce the resettodr_lock scope to only CLOCK_SETTIME() call.
09:38:25 - r304840
(3 days 11 hours ago)
by kib
Affects: 
(2 files)
/stable/11/sys/kern/kern_tc.c
MFC r303384:
Style.
09:36:45 - r304839
(3 days 11 hours ago)
by kib
Affects: 
(2 files)
/stable/11/sys/kern/kern_tc.c
MFC r303383:
Reduce number of timehands to just two.
08:25:28 - r304838
(3 days 13 hours ago)
by np
Affects:  /head/sys/ofed/drivers/infiniband/core/iwcm.c
Do not free an uninitialized pointer on soaccept failure in the iWARP
connection manager.

Sponsored by: Chelsio Communications
07:49:23 - r304837
(3 days 13 hours ago)
by tuexen
Affects:  /head/sys/netinet/sctp_input.c
Fix a bug, where no SACK is sent when receiving a FORWARD-TSN or
I-FORWARD-TSN chunk before any DATA or I-DATA chunk.

Thanks to Julian Cordes for finding this problem and prividing
packetdrill scripts to reporduce the issue.

MFC after: 3 days
06:19:12 - r304836
(3 days 15 hours ago)
by sephe
Affects: 
(2 files)
/stable/10/sys/netinet/tcp_lro.c
MFC 303766
  tcp/lro: If timestamps mismatch or it's a FIN, force flush.

  This keeps the segments/ACK/FIN delivery order.

  Before this patch, it was observed: if A sent FIN immediately after
  an ACK, B would deliver FIN first to the TCP stack, then the ACK.
  This out-of-order delivery causes one unnecessary ACK sent from B.

  Reviewed by: gallatin, hps
  Obtained from: rrs, gallatin
  Sponsored by: Netflix (rrs, gallatin), Microsoft (sephe)
  Differential Revision: https://reviews.freebsd.org/D7415
05:37:44 - r304835
(3 days 15 hours ago)
by sephe
Affects: 
(2 files)
/stable/11/sys/netinet/tcp_lro.c
MFC 303766
  tcp/lro: If timestamps mismatch or it's a FIN, force flush.

  This keeps the segments/ACK/FIN delivery order.

  Before this patch, it was observed: if A sent FIN immediately after
  an ACK, B would deliver FIN first to the TCP stack, then the ACK.
  This out-of-order delivery causes one unnecessary ACK sent from B.

  Reviewed by: gallatin, hps
  Obtained from: rrs, gallatin
  Sponsored by: Netflix (rrs, gallatin), Microsoft (sephe)
  Differential Revision: https://reviews.freebsd.org/D7415
05:18:27 - r304834
(3 days 16 hours ago)
by sephe
Affects:  /head/sys/dev/hyperv/netvsc/hv_rndis_filter.c
/head/sys/dev/hyperv/netvsc/ndis.h
/head/sys/net/rndis.h
hyperv/hn: Use vmbus xact for RNDIS set.

And use new RNDIS set to configure NDIS offloading parameters.

MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D7641
05:15:08 - r304833
(3 days 16 hours ago)
by sephe
Affects: 
(4 files)
/head/sys/dev/hyperv/netvsc/*
hyperv/hn: Save the adopted NDIS version for RNDIS to use later.

MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D7640
05:12:09 - r304832
(3 days 16 hours ago)
by sephe
Affects:  /head/sys/dev/hyperv/netvsc/hv_rndis_filter.c
/head/sys/net/rndis.h
hyperv/hn: Use vmbus xact for RNDIS query.

And switch MAC address query to use new RNDIS query function.

MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D7639
04:31:19 - r304831
(3 days 17 hours ago)
by ngie
Affects:  /projects/netbsd-tests-update-12/contrib/netbsd-tests/lib/libc/sys/t_sigqueue.c
Add copious debugging to aid in determining why :sigqueue_rt is currently
failing

For some odd reason SIGINT is only being delivered once, as opposed to multiple
times.

Disclaimer: this test was run on a kernel built on 08/14/2016. Need to build a
new kernel and rerun the test.
03:46:43 - r304830
(3 days 17 hours ago)
by ngie
Affects:  /projects/netbsd-tests-update-12/contrib/netbsd-tests/lib/libc/gen/isqemu.h
Detect virtual machines on FreeBSD using the kern.vm_guest sysctl

kern.vm_guest == none -> not a virtual machine

It's a bit of a misnomer with the function being named `isQEMU`... but FreeBSD's
support seems to be a bit more all-encompassing than NetBSD's is today.

Sponsored by: EMC / Isilon Storage Division
03:36:37 - r304829
(3 days 17 hours ago)
by jhibbits
Affects:  /head/sys/powerpc/powerpc/machdep.c
Prevent BSS from being cleared twice on BookE

Summary:
First time BSS is cleared in booke_init(), Second time it's cleared in
powerpc_init(). Any variable initialized between two those guys gets wiped out
what is wrong. In particular it wipes tlb1_entries initialized by tlb1_init(),
which was fine when tlb1_init() was called a second time, but this was removed
in r304656.

Submitted by: Ivan Krivonos <int0dster_gmail.com>
Differential Revision: https://reviews.freebsd.org/D7638
02:46:47 - r304828
(3 days 18 hours ago)
by cem
Affects:  /head/sys/ddb/db_command.c
ddb: Add 'show active trace' command

'show active trace', or 'acttrace' for short, prints backtraces from running
threads only.

Reviewed by: mjg
Differential Revision: https://reviews.freebsd.org/D7646
01:28:31 - r304827
(3 days 20 hours ago)
by np
Affects:  /head/sys/dev/cxgbe/cxgbei/cxgbei.c
/head/sys/dev/cxgbe/cxgbei/cxgbei.h
/head/sys/dev/cxgbe/cxgbei/icl_cxgbei.c
cxgbe/cxgbei: There is no need for multiple modules in the KLD.

Sponsored by: Chelsio Communications
2016 - 08 - 25   (4 days ago)
23:55:56 - r304826
(3 days 21 hours ago)
by bdrewery
Affects:  /head/share/mk/src.sys.env.mk
WITH_META_MODE: Don't let subdir traversals for 'make install' re-enable meta
mode.

MFC after: 2 weeks
Sponsored by: EMC / Isilon Storage Division
23:24:57 - r304825
(3 days 22 hours ago)
by gnn
Affects:  /head/cddl/lib/libdtrace/psinfo.d
Unlike Solaris, in FreeBSD p_args can be 0 so check for that
instead of walking down to ar_args blindly.

Reported by: Amanda Strnad
Reviewed by: markj, jhb
MFC after: 2 weeks
Sponsored by: DARPA, AFRL
23:06:12 - r304824
(3 days 22 hours ago)
by np
Affects:  /head/sys/dev/cxgbe/cxgbei/cxgbei.c
/head/sys/dev/cxgbe/cxgbei/cxgbei.h
/head/sys/dev/cxgbe/cxgbei/icl_cxgbei.c
cxgbe/cxgbei: Convert the driver-private PDU flags to enums and replace
pdu_ prefix with icp_ in struct icl_cxgbei_pdu.

Sponsored by: Chelsio Communications
22:32:10 - r304823
(3 days 22 hours ago)
by adrian
Affects:  /head/libexec/rtld-elf/mips/reloc.c
[mips] flip from =v to =r - let the compiler choose a temp register.

=v is some ye olde gcc "use this specific register as the temp register"
thing that they've deprecated and clang/llvm doesn't implement.

Poked again and again by: sbruno
21:55:17 - r304822
(3 days 23 hours ago)
by np
Affects:  /head/sys/dev/cxgbe/cxgbei/cxgbei.c
/head/sys/dev/cxgbe/cxgbei/cxgbei.h
/head/sys/dev/cxgbe/cxgbei/icl_cxgbei.c
cxgbe/cxgbei: Read the chip's configuration to determine the actual
hardware send and receive PDU limits. Report these limits to ICL and
take them into account when setting the socket's send and receive buffer
sizes. The driver used a single hardcoded limit everywhere prior to
this change.

Sponsored by: Chelsio Communications
21:33:39 - r304821
(3 days 23 hours ago)
by emaste
Affects:  /head/usr.bin/bsdiff/bspatch/bspatch.c
bspatch: remove output file in the case of error

Reviewed by: oshogbo
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D7644
21:29:16 - r304820
(4 days ago)
by dim
Affects:  /projects/clang390-import/lib/clang/libclanganalysis/Makefile
/projects/clang390-import/lib/clang/libllvmsupport/Makefile
Move some more files under MK_CLANG_FULL.
21:14:26 - r304819
(4 days ago)
by ache
Affects:  /head/lib/libc/stdio/fgetln.c
/head/lib/libc/stdio/fgetwln.c
Original fgetln() from 44lite return sucess for line tail errors,
i.e. partial line, but set __SERR and errno in the same time, which
is inconsistent.
Now both OpenBSD and NetBSD return failure, i.e. no line and set error
indicators for such case, so make our fgetln() and fgetwln()
(as its wide version) compatible with the rest of *BSD.

PR: 212033
MFC after: 7 days
21:13:16 - r304818
(4 days ago)
by dim
Affects: 
(6 files)
/projects/clang390-import/contrib/llvm/tools/lldb/include/lldb/Symbol/ClangASTContext.h
/projects/clang390-import/contrib/llvm/tools/lldb/source/Plugins/Process/*
/projects/clang390-import/contrib/llvm/tools/lldb/source/Symbol/ClangASTContext.cpp
Slightly reduce diffs against upstream lldb, and comment out PDB support.
20:02:51 - r304817
(4 days 1 hour ago)
by ngie
Affects: 
(584 files)
/projects/netbsd-tests-update-12/*
MFhead @ r304815
19:55:31 - r304816
(4 days 1 hour ago)
by ache
Affects: 
(3 files)
/stable/10/lib/libc/stdio/fgetln.3
/stable/10/lib/libc/stdio/fgetln.c
MFC r295632

getln: We cannot expand the buffer beyond INT_MAX (_size overflows).

In such cases return ENOMEM. This is a limitation of our
implementation, alternatively you may consider getline(3).

Differential Revision: https://reviews.freebsd.org/D442 (Partial)
Obtained from: Apple Inc. (Libc 997.90.3)
19:40:25 - r304815
(4 days 1 hour ago)
by kp
Affects: 
(15 files)
/head/lib/*
/head/share/*
Add libifc, a library implementing core functionality that exists in
ifconfig(8) today.

libifc (pronounced lib-ifconfig) aims to be a light abstraction layer between
programs and the kernel APIs for managing the network configuration.
This should hopefully make programs easier to maintain, and reduce code
duplication.

Work will begin on making ifconfig(8) use this library in the near future.

This code is still evolving. The interface should not be considered stable until
it is announced as such.

Submitted By: Marie Helene Kvello-Aune <marieheleneka@gmail.com>
Reviewed By: kp
Differential Revision: https://reviews.freebsd.org/D7529
19:36:58 - r304814
(4 days 1 hour ago)
by ak
Affects: 
(6 files)
/head/bin/dd/dd.1
/head/sbin/ggate/*
/head/usr.sbin/*
Remove last remnants of acd(4), mcd(4), and scd(4) drivers.

Approved by: jhb
19:17:16 - r304813
(4 days 2 hours ago)
by ngie
Affects:  /projects/netbsd-tests-update-12/contrib/netbsd-tests/lib/libc/stdlib/t_posix_memalign.c
Don't test `size[i] % align[i] == 0` case on FreeBSD

Per jemalloc(3)/aligned_alloc(3), the behavior is undefined if the size
isn't an integral multiple of the alignment. Thus, this is a NetBSD-specific
test.

Sponsored by: EMC / Isilon Storage Division
19:15:02 - r304812
(4 days 2 hours ago)
by kib
Affects:  /head/sys/kern/kern_umtx.c
In both do_rw_wrlock() and do_rw_rdlock() after r304808, do not
obliterate possible error from sleep with errors from
umtxq_check_susp(), when looping to clear URWLOCK_{READ,WRITE}_WAITERS.

Noted and reviewed by: vangyzen
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
17:30:00 - r304811
(4 days 4 hours ago)
by ache
Affects:  /head/lib/libc/stdio/fputwc.c
Remove "Fast path", it bypass __wcrtomb() and all its error checking.
One of affected encoding example: US-ASCII

MFC after: 7 days
17:13:04 - r304810
(4 days 4 hours ago)
by ache
Affects:  /head/lib/libc/stdio/getdelim.c
/head/lib/libc/stdio/vfprintf.c
/head/lib/libc/stdio/vfwprintf.c
Don't check for __SERR which may stick from one of any previous stdio
functions.
__SERR is for user and the rest of stdio code do not check it
for error sensing internally, only set it.
In vf(w)printf.c here it is more easy to save __SERR, clear and restore it.
17:07:43 - r304809
(4 days 4 hours ago)
by ngie
Affects:  /head/usr.bin/getconf/pathconf.gperf
Add non-TRUSTEDBSD prefixed knobs for the _PC_ACL* and {CAP,INF,MAC}_PRESENT
knobs

It's not necessarily intuitive that the variables to query contain TRUSTEDBSD
in the prefix. Add non-TRUSTEDBSD prefixed knobs for querying things like
"_PC_ACL_NFS4".

MFC after: 1 week
Relnotes: yes
Reviewed by: wollman
Sponsored by: EMC / Isilon Storage Division
Differential Revision: https://reviews.freebsd.org/D7618
16:35:42 - r304808
(4 days 4 hours ago)
by kib
Affects:  /head/sys/kern/kern_umtx.c
Prevent leak of URWLOCK_READ_WAITERS flag for urwlocks.

If there was some error, e.g. the sleep was interrupted, as in the
referenced PR, do_rw_rdlock() did not cleared URWLOCK_READ_WAITERS.
Since unlock only wakes up write waiters when there is no read
waiters, for URWLOCK_PREFER_READER kind of locks, the result was
missed wakeups for writers.

In particular, the most visible victims are ld-elf.so locks in
processes which loaded libthr, because rtld locks are urwlocks in
prefer-reader mode. Normal rwlocks fall into prefer-reader mode only
if thread already owns rw lock in read mode, which is not typical and
correspondingly less visible. In the PR, unowned rtld bind lock was
waited for in the process where only one thread was left alive.

Note that do_rw_wrlock() correctly clears URWLOCK_WRITE_WAITERS in
case of errors.

Reported and tested by: longwitz@incore.de
PR: 211947
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
15:08:33 - r304807
(4 days 6 hours ago)
by allanjude
Affects:  /head/usr.bin/bsdiff/bspatch/bspatch.c
Capsicumize bspatch

Move all of the fopen() and open() calls to the top of main()

Restrict each FD to least privilege (read/seek only, write only, etc)

cap_enter(), and make all except the output FD read/seek only.

Reviewed by: emaste, ed, oshogbo, delphij
Approved by: so
MFC after: 3 days
Relnotes: yes
Sponsored by: ScaleEngine Inc.
Differential Revision: https://reviews.freebsd.org/D7358
14:42:29 - r304806
(4 days 6 hours ago)
by andrew
Affects:  /head/sys/arm64/arm64/pmap.c
Fix an assert, it should check if, when moving from 1 l1 to 512 l2 blocks,
the l2 entry is a block type and not an l3 page.

While here fix the string to correct the level name and add a missing ')'.

Obtained from: ABT Systems Ltd
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
13:59:19 - r304805
(4 days 7 hours ago)
by jmcneill
Affects:  /head/sys/arm64/conf/GENERIC
/head/sys/conf/files.arm64
Add support for Allwinner A64.

Reviewed by: andrew, manu
Relnotes: yes
13:46:52 - r304804
(4 days 7 hours ago)
by bde
Affects:  /head/sys/dev/syscons/syscons.c
/head/sys/dev/syscons/syscons.h
/head/sys/kern/subr_witness.c
Less-quick fix for locking fixes in r172250. r172250 added a second
syscons spinlock for the output routine alone. It is better to extend
the coverage of the first syscons spinlock added in r162285. 2 locks
might work with complicated juggling, but no juggling was done. What
the 2 locks actually did was to cover some of the missing locking in
each other and deadlock less often against each other than a single
lock with larger coverage would against itself. Races are preferable
to deadlocks here, but 2 locks are still worse since they are harder
to understand and fix.

Prefer deadlocks to races and merge the second lock into the first one.

Extend the scope of the spinlocking to all of sc_cnputc() instead of
just the sc_puts() part. This further prefers deadlocks to races.

Extend the kdb_active hack from sc_puts() internals for the second lock
to all spinlocking. This reduces deadlocks much more than the other
changes increases them. The s/p,10* test in ddb gets much further now.
Hide this detail in the SC_VIDEO_LOCK() macro. Add namespace pollution
in 1 nested #include and reduce namespace pollution in other nested
#includes to pay for this.

Move the first lock higher in the witness order. The second lock was
unnaturally low and the first lock was unnaturally high. The second
lock had to be above "sleepq chain" and/or "callout" to avoid spurious
LORs for visual bells in sc_puts(). Other console driver locks are
already even higher (but not adjacent like they should be) except when
they are missing from the table. Audio bells also benefit from the
syscons lock being high so that audio mutexes have chance of being
lower. Otherwise, console drviver locks should be as low as possible.
Non-spurious LORs now occur if the bell code calls printf() or is
interrupted (perhaps by an NMI) and the interrupt handler calls
printf(). Previous commits turned off many bells in console i/o but
missed ones done by the teken layer.
13:33:32 - r304803
(4 days 7 hours ago)
by lstewart
Affects: 
(6 files)
/head/sys/netinet/*
/head/sys/sys/mbuf.h
Pass the number of segments coalesced by LRO up the stack by repurposing the
tso_segsz pkthdr field during RX processing, and use the information in TCP for
more correct accounting and as a congestion control input. This is only a start,
and an audit of other uses for the data is left as future work.

Reviewed by: gallatin, rrs
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D7564
13:24:11 - r304802
(4 days 8 hours ago)
by cy
Affects:  /head/etc/rc.d/ntpd
Remove the gratuitous check for $FreeBSD$ and rename the function
to ntpd_init_leapfile, to ensure a copy exists in /var/db if a copy
isn't already there.

Reported by: ache@
MFC after: 1 day
12:42:41 - r304801
(4 days 8 hours ago)
by andrew
Affects:  /head/sys/boot/efi/loader/devicename.c
Don't set *dev in the zfs root case, it may be NULL and will correctly be
set later in the function. This fixes a potential NULL pointer dereference
found on arm64.

Obtained from: ABT Systems Ltd
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
12:04:57 - r304800
(4 days 9 hours ago)
by bde
Affects:  /head/sys/dev/syscons/syscons.c
Fix logic errors in bounds checks in previous commit. The 2-entry stack
was overrun for grab levels larger than 2.

Reported by: pluknet
10:53:03 - r304799
(4 days 10 hours ago)
by andrew
Affects:  /head/sys/arm64/arm64/busdma_bounce.c
Map coherent memory in a non-coherent dma tag as uncached. This is similar
to what the 32-bit arm code does, with the exception that it always assumes
the tag is non-coherent.

Tested by: jmcneill
Obtained from: ABT Systems Ltd
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
10:29:41 - r304798
(4 days 11 hours ago)
by jmcneill
Affects:  /head/sys/arm/allwinner/clk/aw_pll.c
Add support for Allwinner A64 PLL_PERIPH0/PLL_PERIPH1 and PLL_HSIC clocks.

Reviewed by: andrew, manu
10:28:47 - r304797
(4 days 11 hours ago)
by jmmv
Affects:  /head/tests/sys/kqueue/kqueue_test.sh
/head/tests/sys/kqueue/vnode.c
Make use of Kyua's work directories.

Change the vnode tests to use the current directory when creating temporary
files, which we can assume is a volatile work directory, and then make the
kqueue_test.sh driver _not_ abandon the directory created by Kyua.

This makes the various kqueue tests independent of each other, and ensures
the temporary file is cleaned up on failure.

Problem spotted by asomers@ when reviewing D4254.
10:27:22 - r304796
(4 days 11 hours ago)
by jmcneill
Affects:  /head/sys/arm/allwinner/clk/aw_modclk.c
Switch parent clock when setting frequency if a new parent is a better
candidate for the target rate.

Reviewed by: andrew, manu
10:24:14 - r304795
(4 days 11 hours ago)
by jmcneill
Affects:  /head/sys/arm/allwinner/clk/aw_gate.c
Add support for Allwinner multi-parent bus gates.

Reviewed by: andrew, manu
10:20:27 - r304794
(4 days 11 hours ago)
by jmcneill
Affects:  /head/sys/arm/allwinner/axp81x.c
Expose DC1SW as a regulator switch. On Pine64 this is used to control EMAC
PHY power.

Reviewed by: andrew, manu
10:14:56 - r304793
(4 days 11 hours ago)
by jmcneill
Affects:  /head/sys/arm/allwinner/aw_rtc.c
Remove dependency on allwinner_soc_family() as it is not available on arm64.

Reviewed by: andrew, manu
09:16:25 - r304792
(4 days 12 hours ago)
by tuexen
Affects: 
(4 files)
/stable/11/sys/netinet/sctp_output.c
/stable/11/sys/netinet/sctp_usrreq.c
/stable/11/sys/netinet/sctputil.c
MFC r304543:
Unbreak sctp_connectx().

MFC r304573:
Remove duplicate code, which is not protected by the appropriate locks.

MFC r304579:
Improve the locking when sending user messages.

First, keep a ref count on the stcb after looking it up, as
done in the other lookup cases.
Second, before looking again at sp, ensure that it is not
freed, because the assoc is about to be freed.
05:50:19 - r304791
(4 days 15 hours ago)
by sephe
Affects:  /head/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
/head/sys/dev/hyperv/storvsc/hv_vstorage.h
hyperv/storvsc: Increase queue depth and rework channel selection.

- Increasing queue depth gives ~100% performance improvement for
  randwrite fio test in Azure.
- New channel selection, which takes LUN id and the current cpuid
  into consideration, gives additional ~20% performance improvement
  for ranwrite fio test in Azure.

Submitted by: Hongzhang Jiang <honzhan microsoft com>
Modified by: sephe
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D7622
05:35:51 - r304790
(4 days 15 hours ago)
by sephe
Affects:  /head/sys/dev/hyperv/include/vmbus.h
/head/sys/dev/hyperv/vmbus/vmbus_brvar.h
/head/sys/dev/hyperv/vmbus/vmbus_chan.c
hyperv/vmbus: Add function to calculate max # of elements in a bufring.

MFC after: 1 week
Sponsored by: Microsoft
05:28:02 - r304789
(4 days 16 hours ago)
by np
Affects:  /head/UPDATING
/head/sys/sys/param.h
Bump __FreeBSD_version for r304787 and add a note about it to UPDATING.
05:24:57 - r304788
(4 days 16 hours ago)
by sephe
Affects: 
(5 files)
/head/sys/dev/hyperv/utilities/*
hyperv/ic: Update total message size if negotiate message size grows.

MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D7627
05:22:53 - r304787
(4 days 16 hours ago)
by np
Affects: 
(21 files)
/head/sys/*
/head/usr.bin/iscsictl/iscsictl.c
/head/usr.sbin/*
Make the iSCSI parameter negotiation more flexible.

Decouple the send and receive limits on the amount of data in a single
iSCSI PDU. MaxRecvDataSegmentLength is declarative, not negotiated, and
is direction-specific so there is no reason for both ends to limit
themselves to the same min(initiator, target) value in both directions.

Allow iSCSI drivers to report their send, receive, first burst, and max
burst limits explicitly instead of using hardcoded values or trying to
derive all of them from the receive limit (which was the only limit
reported by the drivers prior to this change).

Display the send and receive limits separately in the userspace iSCSI
utilities.

Reviewed by: jpaetzel@ (earlier version), trasz@
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D7279
05:11:04 - r304786
(4 days 16 hours ago)
by sephe
Affects:  /head/sys/dev/hyperv/utilities/hv_heartbeat.c
/head/sys/dev/hyperv/utilities/vmbus_icreg.h
hyperv/ic: Cleanup heartbeat channel callback.

MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D7626
05:00:41 - r304785
(4 days 16 hours ago)
by sephe
Affects: 
(6 files)
/head/sys/dev/hyperv/netvsc/*
/head/sys/net/rndis.h
hyperv/hn: Use vmbus xact for RNDIS initialize.

MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D7624
04:52:50 - r304784
(4 days 16 hours ago)
by sephe
Affects:  /head/sys/dev/hyperv/netvsc/hv_rndis_filter.c
hyperv/hn: Add compat code for RNDIS reorganization phase.

MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D7621
04:40:51 - r304783
(4 days 16 hours ago)
by sephe
Affects:  /head/sys/dev/hyperv/netvsc/hv_rndis.h
/head/sys/dev/hyperv/netvsc/hv_rndis_filter.c
hyperv/hn: Use definition in net/rndis.h for message type and status code.

MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D7620
03:09:23 - r304782
(4 days 18 hours ago)
by cy
Affects:  /head/etc/rc.d/ntpd
Make validation of the leap-seconds file unconditional.

MFC after: 1 day
02:58:41 - r304781
(4 days 18 hours ago)
by cy
Affects:  /head/etc/rc.d/ntpd
Add logic to replace the working ntp leap-seconds file in /var/db
if it contains a $FreeBSD$ header. The header will cause the file
to fail checksum of the hash causing ntpd to ignore the file.

MFC after: 1 day
02:45:52 - r304780
(4 days 18 hours ago)
by cy
Affects:  /head/etc/rc.d/ntpd
Change the algorithm by which /var/db/leap-seconds is updated.

1. Use the leap-seconds version number (update time) to determine
  whether to update the file or not.

2. If the version numbers of the files is the same, use the later
  expiry date to determine which file to use.

Suggested by: ian@
MFC after: 1 day
02:40:14 - r304779
(4 days 18 hours ago)
by cy
Affects:  /head/etc/ntp/leap-seconds
Revert r298887 (spelling fix) and remove $FreeBSD$ because text changes
to leap-seconds invaldidates validation hash at the end of the file.

Remove svn:keywords and replace with fbsd:nokeywords=yes to
support this change.

MFC after: 1 day
2016 - 08 - 24   (5 days ago)
23:02:20 - r304778
(4 days 22 hours ago)
by allanjude
Affects:  /head/etc/newsyslog.conf
Increase the default rotation threshold of log files from 100kb to 1000kb

Submitted by: Sean Kelly <smkelly@freebsd.org>
Differential Revision: https://reviews.freebsd.org/D6792
22:59:41 - r304777
(4 days 22 hours ago)
by asomers
Affects:  /projects/zfsd/head/tests/sys/cddl/zfs/tests/cli_root/zpool_import.kshlib
Delete an extraneous file accidentally committed in r292361

cddl/zfs/tests/cli_root/zpool_import/zpool_import.kshlib
cddl/zfs/tests/cli_root/zpool_import.kshlib
  This file accidentally got duped.

Sponsored by: Spectra Logic Corp
22:48:55 - r304776
(4 days 22 hours ago)
by asomers
Affects:  /projects/zfsd/head/tests/sys/cddl/zfs/tests/cli_root/zpool_destroy/zpool_destroy_004_pos.ksh
Fix intermittent failures in zpool_destroy_004_pos

The test case has multiple zfs send/recv scenarios.
The scenario that was commonly failing was as follows;
1.) zfs send poolA | zfs recv poolB
2.) wait
3.) destroy -f poolA
4.) declare an error if the exit status of the send/recv pipeline
was success.

Step 4 was attempting to assert that the destruction of poolA interrupted
the zfs send. The problem is that the zfs send could complete before the zfs
destroy -f poolA was issued. If this occured then the receive half of the
pipeline would succeed and the exit code of the pipeline would be zero.

It is not possible to manage this race from a shell script.

Changed test to allow the scenario described above to not declare an error
if the zfs receive succeeds.

Submitted by: Dave Baukus
Reviewed by: asomers
Sponsored by: Spectra Logic Corp
22:38:06 - r304775
(4 days 22 hours ago)
by glebius
Affects: 
(3 files)
/user/cperciva/freebsd-update-build/scripts/11.0-RC2/amd64/build.conf
/user/cperciva/freebsd-update-build/scripts/11.0-RC2/i386/build.conf
Add 11.0-RC2 config.
22:27:06 - r304774
(4 days 23 hours ago)
by asomers
Affects: 
(3860 files)
/projects/zfsd/head/*
IFC @304773
18:59:24 - r304773
(5 days 2 hours ago)
by bde
Affects:  /head/sys/dev/syscons/syscons.c
/head/sys/dev/syscons/syscons.h
Flesh out the state and flags args to sccnopen(). Set state flags to
indicate (potentially partial) success of the open. Use these to
decide what to close in sccnclose(). Only grab/ungrab use open/close
so far.

Add a per-sc variable to count successful keyboard opens and use
this instead of the grab count to decide if the keyboad state has
been switched.

Start fixing the locking by using atomic ops for the most important
counter -- the grab level one. Other racy counting will eventually
be fixed by normal mutex or kdb locking in most cases.

Use a 2-entry per-sc stack of states for grabbing. 2 is just enough
to debug grabbing, e.g., for gets(). gets() grabs once and might not
be able to do a full (or any) state switch. ddb grabs again and has
a better chance of doing a full state switch and needs a place to
stack the previous state. For more than 3 levels, grabbing just
changes the count. Console drivers should try to switch on every i/o
in case lower levels of nesting failed to switch but the current level
succeeds, but then the switch (back) must be completed on every i/o
and this flaps the state unless the switch is null. The main point
of grabbing is to make it null quite often. Syscons grabbing also
does a carefully chosen screen focus that is not done on every i/o.

Add a large comment about grabbing.

Restore some small lost comments.
17:45:11 - r304772
(5 days 3 hours ago)
by dim
Affects:  /projects/clang390-import/lib/clang/include/clang/Basic/Version.inc
Update clang version information for r279477.
17:43:49 - r304771
(5 days 3 hours ago)
by dim
Affects: 
(4 files)
/projects/clang390-import/contrib/llvm/tools/clang/lib/CodeGen/CGExprScalar.cpp
/projects/clang390-import/contrib/llvm/tools/clang/lib/Driver/ToolChains.cpp
/projects/clang390-import/contrib/llvm/tools/clang/lib/Sema/SemaExpr.cpp
Update clang to release_39 branch r279477.
17:43:08 - r304770
(5 days 3 hours ago)
by dim
Affects: 
(8 files)
/projects/clang390-import/contrib/llvm/include/llvm/Transforms/Scalar/Reassociate.h
/projects/clang390-import/contrib/llvm/lib/*
Update llvm to release_39 branch r279477.
17:39:40 - r304769
(5 days 3 hours ago)
by dim
Affects:  /vendor/lldb/lldb-release_39-r279477
Tag lldb release_39 branch r279477.
17:39:07 - r304768
(5 days 3 hours ago)
by dim
Affects:  /vendor/lld/lldb-release_39-r279477
Tag lld release_39 branch r279477.
17:38:40 - r304767
(5 days 3 hours ago)
by dim
Affects:  /vendor/lld/dist/ELF/Target.cpp
/vendor/lld/dist/docs/ReleaseNotes.rst
/vendor/lld/dist/test/ELF/tls-i686.s
Vendor import of lld release_39 branch r279477:
https://llvm.org/svn/llvm-project/lld/branches/release_39@279477
17:38:24 - r304766
(5 days 3 hours ago)
by dim
Affects:  /vendor/libc++/libc++-release_39-r279477
Tag libc++ release_39 branch r279477.
17:37:53 - r304765
(5 days 3 hours ago)
by dim
Affects: 
(43 files)
/vendor/libc++/dist/include/*
/vendor/libc++/dist/test/*
Vendor import of libc++ release_39 branch r279477:
https://llvm.org/svn/llvm-project/libcxx/branches/release_39@279477
17:37:28 - r304764
(5 days 3 hours ago)
by dim
Affects:  /vendor/compiler-rt/compiler-rt-release_39-r279477
Tag compiler-rt release_39 branch r279477.
17:37:06 - r304763
(5 days 3 hours ago)
by dim
Affects:  /vendor/compiler-rt/dist/lib/msan/tests/msan_test.cc
Vendor import of compiler-rt release_39 branch r279477:
https://llvm.org/svn/llvm-project/compiler-rt/branches/release_39@279477
17:36:39 - r304762
(5 days 3 hours ago)
by dim
Affects:  /vendor/clang/clang-release_39-r279477
Tag clang release_39 branch r279477.
17:36:20 - r304761
(5 days 3 hours ago)
by dim
Affects: 
(6 files)
/vendor/clang/dist/docs/ReleaseNotes.rst
/vendor/clang/dist/lib/*
/vendor/clang/dist/test/*
Vendor import of clang release_39 branch r279477:
https://llvm.org/svn/llvm-project/cfe/branches/release_39@279477
17:36:04 - r304760
(5 days 3 hours ago)
by dim
Affects:  /vendor/llvm/llvm-release_39-r279477
Tag llvm release_39 branch r279477.
17:35:37 - r304759
(5 days 3 hours ago)
by dim
Affects: 
(17 files)
/vendor/llvm/dist/*
Vendor import of llvm release_39 branch r279477:
https://llvm.org/svn/llvm-project/llvm/branches/release_39@279477
17:26:11 - r304758
(5 days 4 hours ago)
by bde
Affects:  /head/sys/dev/syscons/syscons.c
Reorganise a little to prepare for locking fixes:
- in sccnopen(), open the keyboard before the screen. The keyboard
  currently requires Giant (although it must be spinlocked to work
  correctly as a console), so the previous order would be a LOR if
  it has any semblance of locking.
- add a (currently dummy) state arg to scgetc().
17:15:32 - r304757
(5 days 4 hours ago)
by emaste
Affects:  /head/lib/Makefile
Don't build libdevdctl if MK_CXX is no
16:49:14 - r304756
(5 days 4 hours ago)
by nwhitehorn
Affects:  /head/sys/powerpc/pseries/platform_chrp.c
Close a race when making the CPU idle under pHyp. If an interrupt occurs
between the beginning of the idle function and actually going idle, the
CPU could go to sleep with pending work.

MFC after: 1 month
16:44:27 - r304755
(5 days 4 hours ago)
by ache
Affects:  /head/lib/libc/nls/msgcat.c
Use current locale (f.e. set by thread). It was global locale always
previously.

MFC after: 7 days
16:40:29 - r304754
(5 days 4 hours ago)
by tsoome
Affects:  /head/sys/boot/userboot/userboot/main.c
Bug 212038 - svn commit: r304321 broken bhyve zvol VM bhyveload hang 100% WCPU

As the support for large blocks was enabled in loader zfs code, the
heap in userboot was left not changed, resulting with failure of detecting
and accessing zfs pools for bhyve virtual machines.

This fix does set the heap to use same amount of memory as the zfsloader
is using. To make it possible to test and verify loader functions, bhyve
is providing very useful option, but it also means, we like to keep feature
parity with [zfs]loader as close as possible.

PR: 212038
Reported by: dfh0522@gmail.com
Reviewed by: allanjude, grehan
Approved by: allanjude (mentor)
Differential Revision: https://reviews.freebsd.org/D7635
16:30:15 - r304753
(5 days 5 hours ago)
by tsoome
Affects:  /head/sys/cddl/boot/zfs/zfssubr.c
Bug 212114 - loader: zio_checksum_verify() must test spa for NULL pointer

The issue was introduced with adding support for salted checksums, and
was revealed by bhyve userboot.so.

During pool discovery the loader is reading pool label from disks, and
at that time the spa structure is not yet set up, so the NULL pointer
is passed for spa. This condition must be checked to avoid the corruption
of the memory and NULL pointer dereference.

PR: 212114
Reported by: tsoome@freebsd.com
Reviewed by: allanjude
Approved by: allanjude (mentor)
Differential Revision: https://reviews.freebsd.org/D7634
15:36:48 - r304752
(5 days 5 hours ago)
by ache
Affects:  /head/sys/sys/param.h
Bump __FreeBSD_version for LC_*_MASK fix for newlocale(3) and querylocale(3)
15:13:42 - r304751
(5 days 6 hours ago)
by mav
Affects:  /head/sbin/camcontrol/camcontrol.c
Fix minor copy/paste bug.

Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com>
MFC after: 1 week
13:00:50 - r304750
(5 days 8 hours ago)
by andrew
Affects:  /head/sys/arm64/arm64/pmap.c
Allow superpages on arm64 to be enabled. It is disabled for now to allow
for more testing across more hardware.

Obtained from: ABT Systems Ltd
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
12:57:40 - r304749
(5 days 8 hours ago)
by andrew
Affects:  /head/sys/arm64/arm64/pmap.c
Add support to promote and demote managed superpages. This is the last part
needed before enabling superpages on arm64. This code is based on the amd64
pmap with changes as needed to handle the differences between the two
architectures.

Obtained from: ABT Systems Ltd
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
12:53:54 - r304748
(5 days 8 hours ago)
by ed
Affects:  /head/share/man/man4/cloudabi.4
Document the existence of the cloudabi32 kernel module.
12:32:24 - r304747
(5 days 8 hours ago)
by cy
Affects: 
(14 files)
/head/contrib/sqlite3/*
MFV r304732.

Update from sqlite3-3.12.1 (3120100) to sqlite3-3.14.1 (3140100).

This commit addresses the tmpdir selection vulnerability fixed in
sqlite3-1.13.0. See VuXML entry 546deeea-3fc6-11e6-a671-60a44ce6887b.

Security: VuXML 546deeea-3fc6-11e6-a671-60a44ce6887b
Security: CVE-2016-6153
12:32:18 - r304746
(5 days 8 hours ago)
by andrew
Affects:  /head/sys/arm64/arm64/pmap.c
/head/sys/arm64/include/pmap.h
Teach the parts of the arm64 pmap that need to iterate over pages to also
iterate over superpages. We don't yet create these, but soon will.

Obtained from: ABT Systems Ltd
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
11:35:49 - r304745
(5 days 9 hours ago)
by ed
Affects: 
(3 files)
/head/sys/modules/Makefile
/head/sys/modules/cloudabi32/Makefile
Add a Makefile for building the cloudabi32 kernel module.

Where the cloudabi64 kernel can be used to execute 64-bit CloudABI
binaries, this one should be used for 32-bit binaries. Right now it
works on i386 and amd64.
10:51:33 - r304744
(5 days 10 hours ago)
by ed
Affects: 
(5 files)
/head/sys/amd64/*
/head/sys/conf/files.amd64
/head/sys/contrib/cloudabi/cloudabi_vdso_i686_on_64bit.S
Make execution of 32-bit CloudABI executables work on amd64.

A nice thing about requiring a vDSO is that it makes it incredibly easy
to provide full support for running 32-bit processes on 64-bit systems.
Instead of letting the kernel be responsible for composing/decomposing
64-bit arguments across multiple registers/stack slots, all of this can
now be done in the vDSO. This means that there is no need to provide
duplicate copies of certain system calls, like the sys_lseek() and
freebsd32_lseek() we have for COMPAT_FREEBSD32.

This change imports a new vDSO from the CloudABI repository that has
automatically generated code in it that copies system call arguments
into a buffer, padding them to eight bytes and zero-extending any
pointers/size_t arguments. After returning from the kernel, it does the
inverse: extracting return values, in the process truncating
pointers/size_t values to 32 bits.

Obtained from: https://github.com/NuxiNL/cloudabi
10:36:52 - r304743
(5 days 10 hours ago)
by ed
Affects:  /head/sys/contrib/cloudabi/cloudabi_types.h
Remove an unused header file.

The native CloudABI data types header file used to be pulled in by the
vDSOs when they were still written in C. Since they are now all
rewritten in assembly, this can go away.
10:13:18 - r304742
(5 days 11 hours ago)
by ed
Affects:  /head/sys/amd64/cloudabi64/cloudabi64_sysvec.c
/head/sys/arm64/cloudabi64/cloudabi64_sysvec.c
/head/sys/i386/cloudabi32/cloudabi32_sysvec.c
Convert pointers obtained from the threadattr_t structure with TO_PTR().

In all of these source files, the userspace pointer size corresponds
with the kernelspace pointer size, meaning that casting directly works.
As I'm planning on making 32-bit execution on 64-bit systems work as
well, use TO_PTR() here as well, so that the changes between source
files remain minimal.
10:10:26 - r304741
(5 days 11 hours ago)
by jmmv
Affects:  /head/bin/ls/tests/ls_tests.sh
Skip ls tests that use sparse files if these are not supported.

Some of the ls(1) tests create really large sparse files to validate
the number formatting features of ls(1). Unfortunately, those tests fail
if the underlying test file system does not support sparse files, as is the
case when /tmp is mounted on tmpfs.

Before running these tests, check if the test file system supports sparse
files by using getconf(1) and skip them if not. Note that the support for
this query was just added to getconf(1) in r304694.

Reviewed by: ngie
Differential Revision: https://reviews.freebsd.org/D7609
09:57:19 - r304740
(5 days 11 hours ago)
by ed
Affects:  /head/sys/compat/ia32/ia32_signal.h
Add missing header dependency.

This header depends on sigaltstack32 being declared.
09:20:27 - r304739
(5 days 12 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/kern/vfs_aio.c
MFC r304286:
Remove duplicated code.
09:18:38 - r304738
(5 days 12 hours ago)
by kib
Affects: 
(2 files)
/stable/11/sys/kern/vfs_aio.c
MFC r304286:
Remove duplicated code.
07:50:28 - r304737
(5 days 13 hours ago)
by mav
Affects:  /stable/10/sys/cam/ctl/ctl.c
Fix HA mode configuration on FreeBSD 10.x.

This is direct commit, compensating CTLFLAG_RDTUN difference between
FreeBSD 10.x and 11.x branches.
06:22:53 - r304736
(5 days 15 hours ago)
by tuexen
Affects:  /head/sys/netinet/sctputil.c
When aborting an association, send the ABORT before notifying the upper
layer. For the kernel this doesn't matter, for the userland stack, it does.
While there, silence a clang warning when compiling it in userland.
05:54:11 - r304735
(5 days 15 hours ago)
by bde
Affects:  /head/sys/dev/usb/input/ukbd.c
Fix key delay and repeat, part 2.

Use sbintime_t timeouts with precision control to get very accurate
timing. It costs little to always ask for about 1% accuracy, and the
not so new event timer implementation usual delivers that, and when
it can't it gets much closer than our previous coarse timeouts and
buggy simple countdown.

The 2 fastest atkbd repeat rates have periods 34 and 38 msec, and ukbd
pretended to support rates in between these. This requires
sub-microsecond precision and accuracy even to handle the 4 msec
difference very well, but ukbd asked the timeout subsystem for timeouts
of 25 msec and the buggy simple countdown of this gave a a wide range
of precisions and accuracies depending on HZ and other timer
configuration (sometimes better than 25 msec but usually more like 50
msec). We now ask for and usually get precision and accuracy of about
1% for each repeat and much better on average.

The 1% accuracy is overkill. Rounding of 30 cps to 34 msec instead of
33 already gives an error of +2% instead of -1%, and ut AT keyboards on
PS/2 interfaces have similar errors.

A timeout is now scheduled for every keypress and release. This allows
some simplifications that are not done. It allows removing the timeout
scheduling for exiting polled mode where it was unsafe in ddb mode. This
is done. Exiting polled mode had some problems with extra repeats. Now
exiting polled mode lets an extra timeout fire and the state is fudged
so that the timeout handler does very little.

The sc->time_ms variable is unsigned to avoid overflow. Differences of
it need to be signed. Signed comparisons were emulated by testing an
emulated sign bits. This only works easily for '<' comparisonss, but
we now need a '<=' comparison. Change the difference variable to
signed and use a signed comparison. Using unsigned types here didn't
prevent overflow bugs but just reduced them. Overflow occurs with
n repeats at the silly repeat period of [U]INT_MAX / n. The old countdown
had an off by 1 error, and the simplifications would simply count down
1 to 0 and not need to accumulate possibly-large repeat repeats.
05:01:20 - r304734
(5 days 16 hours ago)
by cy
Affects:  /vendor/sqlite3/sqlite-3140100
Tag import of sqlite3-3.14.1 (3140100).
04:58:49 - r304733
(5 days 16 hours ago)
by cy
Affects:  /svnadmin/conf/sizelimit.conf
sqlite3-3.14.1 (3140100) vendor import complete. Revert size limit
restriction.
04:57:29 - r304732
(5 days 16 hours ago)
by cy
Affects: 
(31 files)
/vendor/sqlite3/dist/*
Import sqlite3-3.14.1 (3140100)
04:56:56 - r304731
(5 days 16 hours ago)
by cy
Affects:  /svnadmin/conf/sizelimit.conf
Temporarily remove size limit restriction in order to import
sqlite3-3.14.1 (3140100) into the vendor branch.
04:36:04 - r304730
(5 days 16 hours ago)
by sephe
Affects: 
(6 files)
/head/sys/dev/hyperv/utilities/*
hyperv/ic: Redefine IC version negotiate message.

And stringent input IC version negotiate message checks.

MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D7614
04:33:21 - r304729
(5 days 16 hours ago)
by gjb
Affects:  /releng/11.0/sys/conf/newvers.sh
Update releng/11.0 to RC2 status as part of the 11.0-RELEASE
cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation
04:21:15 - r304728
(5 days 17 hours ago)
by sephe
Affects:  /head/sys/dev/hyperv/netvsc/hv_rndis_filter.c
hyperv/hn: Log a warning for RESET_CMPLT.

RESET is not used by the hn(4) at all, and RESET_CMPLT does not even
have a rid to match with the pending requests. So, let's put it
onto an independent switch branch and log a warning about it.

MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D7602
03:51:40 - r304727
(5 days 17 hours ago)
by jhibbits
Affects:  /head/sys/powerpc/booke/booke_machdep.c
/head/sys/powerpc/booke/pmap.c
/head/sys/powerpc/include/pmap.h
Fix system hang when large FDT is in use

Summary:
Kernel maps only one page of FDT. When FDT is more than one page in size, data
TLB miss occurs on memmove() when FDT is moved to kernel storage
(sys/powerpc/booke/booke_machdep.c, booke_init())

This introduces a pmap_early_io_unmap() to complement pmap_early_io_map(), which
can be used for any early I/O mapping, but currently is only used when mapping
the fdt.

Submitted by: Ivan Krivonos <int0dster_gmail.com>
Differential Revision: https://reviews.freebsd.org/D7605
03:44:20 - r304726
(5 days 17 hours ago)
by nwhitehorn
Affects:  /projects/powernv/powerpc/powerpc/intr_machdep.c
/projects/powernv/powerpc/powerpc/mp_machdep.c
/projects/powernv/powerpc/pseries/xics.c
Fix some SMP issues:
- Use low thread priority in the wait loop for APs
- Add more head room for XICS in its interrupt range: it uses 2^24 + 1 IRQs
- OPAL doesn't like binding fictional interrupts (IPIs) to a particular CPU.
  Don't do that.
03:44:16 - r304725
(5 days 17 hours ago)
by kevlo
Affects:  /head/sys/dev/usb/input/uep.c
Bring datasheet URL up to date.
03:28:58 - r304724
(5 days 18 hours ago)
by sephe
Affects:  /head/sys/dev/hyperv/netvsc/hv_rndis_filter.c
hyperv/hn: Remove the redundant rid setting for RNDIS HALT.

MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D7595
03:16:25 - r304723
(5 days 18 hours ago)
by sephe
Affects:  /head/sys/net/rndis.h
net/rndis: Fix RNDIS_STATUS_PENDING definition.

While I'm here, sort the RNDIS status in ascending order.

MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D7594
03:08:13 - r304722
(5 days 18 hours ago)
by sephe
Affects:  /head/sys/dev/usb/net/if_urndis.c
/head/sys/net/rndis.h
net/rndis: Add canonical RNDIS major/minor version as of today.

Reviewed by: hps
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D7593
02:41:24 - r304721
(5 days 18 hours ago)
by cy
Affects:  /head/usr.sbin/ntp/doc/sntp.8
Fixup man page formatting.

Submitted by: Steve Kargl <sgk@troutmask.apl.washington.edu>
Discussed with: bjk@
MFC after: 3 days
02:32:40 - r304720
(5 days 18 hours ago)
by bdrewery
Affects: 
(3 files)
/releng/11.0/share/mk/bsd.dep.mk
/releng/11.0/sys/conf/kern.post.mk
MFS r304717:

  MFC r304697:

  FAST_DEPEND: Fix 'make all install' not properly rebuilding based on
  .depend.* files.

Approved by: re (gjb)
02:31:03 - r304719
(5 days 19 hours ago)
by bdrewery
Affects: 
(2 files)
/releng/11.0/sys/net80211/ieee80211_ioctl.c
MFS r304715:

  MFC r304322:

  [net80211] correctly lock the ifp before accessing the lladdr.

Approved by: re (gjb)
02:29:25 - r304718
(5 days 19 hours ago)
by bdrewery
Affects: 
(2 files)
/releng/11.0/share/i18n/esdb/Makefile.part
MFS r304714:

  MFC r304643:

  Fix building on read-only source trees.

PR: 211952
Approved by: re (gjb)
02:23:03 - r304717
(5 days 19 hours ago)
by bdrewery
Affects: 
(3 files)
/stable/11/share/mk/bsd.dep.mk
/stable/11/sys/conf/kern.post.mk
MFC r304697:

  FAST_DEPEND: Fix 'make all install' not properly rebuilding based on
  .depend.* files.
01:56:30 - r304716
(5 days 19 hours ago)
by shurd
Affects: 
(10 files)
/releng/11.0/sys/*
MFS r304704: Update iflib to support more NIC designs

- Move group task queue into kern/subr_gtaskqueue.c
- Change intr_enable to return an int so it can be detected if it's not
  implemented
- Allow different TX/RX queues per set to be different sizes
- Don't split up TX mbufs before transmit
- Allow a completion queue for TX as well as RX
- Pass the RX budget to isc_rxd_available() to allow an earlier return
  and avoid multiple calls

Approved by: re (glb), davidch
Requested by: shurd
01:44:53 - r304715
(5 days 19 hours ago)
by bdrewery
Affects: 
(2 files)
/stable/11/sys/net80211/ieee80211_ioctl.c
MFC r304322:

  [net80211] correctly lock the ifp before accessing the lladdr.
01:34:22 - r304714
(5 days 19 hours ago)
by bdrewery
Affects: 
(2 files)
/stable/11/share/i18n/esdb/Makefile.part
MFC r304643:

  Fix building on read-only source trees.

PR: 211952
00:52:30 - r304713
(5 days 20 hours ago)
by karels
Affects:  /head/sys/netinet6/ip6_output.c
/head/sys/netinet6/udp6_usrreq.c
Fix L2 caching for UDP over IPv6

ip6_output() was missing cache invalidation code analougous to
ip_output.c. r304545 disabled L2 caching for UDP/IPv6 as a workaround.
This change adds the missing cache invalidation code and reverts
r304545.

Reviewed by: gnn
Approved by: gnn (mentor)
Tested by: peter@, Mike Andrews
MFC after: 3 weeks
Differential Revision: https://reviews.freebsd.org/D7591
00:02:20 - r304712
(5 days 21 hours ago)
by brooks
Affects:  /head/lib/libc/gen/__getosreldate.c
Avoid a redecleartion of __getosreldate().

Sponsored by: DARPA, AFRL
00:00:54 - r304711
(5 days 21 hours ago)
by brooks
Affects:  /head/contrib/binutils/bfd/config.bfd
Spell MIPS more traditionally in "bfd_elf32_ntradbigmips_vec".

Sponsored by: DAPRA, AFRL
2016 - 08 - 23   (6 days ago)
22:26:50 - r304710
(5 days 23 hours ago)
by manu
Affects:  /head/sys/arm/allwinner/aw_ts.c
/head/sys/arm/allwinner/files.allwinner
Allwinner: Add thermal sensor driver for A10/A20
The thermal sensor lives in the touch screen controller. Touch screen part
isn't done for now.
Temperature is read every ~2 seconds and exposed via sysctl.
22:04:59 - r304709
(5 days 23 hours ago)
by nwhitehorn
Affects:  /projects/powernv/powerpc/include/platform.h
Missed file in r304708.
22:04:25 - r304708
(5 days 23 hours ago)
by nwhitehorn
Affects: 
(7 files)
/projects/powernv/powerpc/*
Setting the timebase on PowerNV is toxic to OPAL, as well as unnecessary,
since firmware takes of this (better) for us. On CHRP and on any platform
with a hypervisor, firmware also takes care of it for us and, on hypervisors,
trying to set it will trigger a fault. Make it per-platform instead of
expanding the list of conditions in the generic code.
21:41:27 - r304707
(5 days 23 hours ago)
by nwhitehorn
Affects:  /projects/powernv/powerpc/powerpc/machdep.c
Record the PIR for the BSP as well as for APs. It might not be zero.
21:40:32 - r304706
(5 days 23 hours ago)
by nwhitehorn
Affects:  /projects/powernv/powerpc/aim/moea64_native.c
Use the correct value of the IS selector in tlbiel when flushing the TLB.
The way-based mechanism (IS=11) on newer CPUs can in principle cause problems
on older ones, so use a CPU-dependent selection.
21:34:36 - r304705
(5 days 23 hours ago)
by nwhitehorn
Affects: 
(4 files)
/projects/powernv/powerpc/include/spr.h
/projects/powernv/powerpc/powernv/platform_powernv.c
/projects/powernv/powerpc/pseries/*
On CHRP and PowerNV, use the interrupt server number in the cpuref and pcpu
hwref field instead of the device-tree phandle and make the CPU IDs reported
to the scheduler dense and with the BSP at 0. There are entirely too many
subtle bugs with non-0 BSP IDs and I'm just not going to try anymore.
21:21:56 - r304704
(6 days ago)
by shurd
Affects: 
(10 files)
/stable/11/sys/*
MFC r304021: Update iflib to support more NIC designs

- Move group task queue into kern/subr_gtaskqueue.c
- Change intr_enable to return an int so it can be detected if it's not
  implemented
- Allow different TX/RX queues per set to be different sizes
- Don't split up TX mbufs before transmit
- Allow a completion queue for TX as well as RX
- Pass the RX budget to isc_rxd_available() to allow an earlier return
  and avoid multiple calls

Approved by: sbruno
20:33:56 - r304703
(6 days ago)
by ache
Affects:  /head/include/xlocale/_locale.h
LC_*_MASK bit shifting order was partially broken from the initial commit
time at year 2012. Only LC_COLLATE_MASK and LC_CTYPE_MASK are in the
right order.

The order here should match XLC_* from "xlocale_private.h" which, in turn,
match LC_* publicly visible order from <locale.h> which determines how
locale components are stored in the structure.
LC_*_MASK -> XLC_* translation done as "ffs(mask) - 1" in the querylocale()
and equivalent shift loop in the newlocale(), so mapped to some wrong
components (excluding two mentioned above).

Formally the fix is ABI breakage, but old code using those masks
never works properly in any case.
Only newlocale() and querylocale() are affected.

MFC after: 7 days
20:04:23 - r304702
(6 days 1 hour ago)
by glebius
Affects:  /head/tools/tools/nanobsd/defaults.sh
The -f check here is used to determine whether we have a single kernel
config or a list of them. Put the variable into quotes, to avoid syntax
error from [ in case of list. Without this change list is still working,
but an error is reported in the build log file.

Reviewed by: imp
19:57:37 - r304701
(6 days 1 hour ago)
by dim
Affects:  /projects/clang390-import/lib/clang/include/llvm/Support/DataTypes.h
Update generated llvm DataTypes.h header.
19:55:02 - r304700
(6 days 1 hour ago)
by dim
Affects: 
(169 files)
/projects/clang390-import/*
Merge ^/head r304537 through r304699.
19:50:16 - r304699
(6 days 1 hour ago)
by bde
Affects:  /head/sys/dev/usb/input/ukbd.c
Fix key delay and repeat, part 1.

kbdcontrol -r fast is documented to give a non-emulated atkbd's fastest
rate of 250.34, but is misimplemented to request this as 0.0. ukbd
supports many nonstandard rates, although it is currently too inaccurate
by a factor of several hundred for non-huge nonstandard rates to be
useful. It mapped 0.0 to 200.0. A repeat delay of 0 means a rate of
infinity which is quite fast, but physical constraints limit this to
a few MHz and the inaccuracies made it almost usable.

Convert 0.0 to the documented 250.34.

Also convert negative args and small args to the 250.34 minimal ones,
like atkbd does. This is for KDSETREPEAT -- the 2 versions of the
deprecated KDSETRAD have bounds checking. Keep not doing any bounds
checking or conversions for upper limits since nonstandard large
delays are useful for testing.

The inaccuracies are dependent on HZ and the timeout implementation.
With the old timeout implementation and HZ = 1000, 200.0 probably
worked better to emulate 250.34 than 250.34 itself. HZ = 100 gives
roundoff errors that accidentally reduce the inaaccuracies, and
event timers reduce the inaccuracies even more, so 200.0 was giving
more like itself (perhaps 215.15 on average but sometimes close to
10 msec repeat which is noticebly too fast). This commit makes 0.0
noticeably too slow, like 250.34 always was.
19:41:49 - r304698
(6 days 1 hour ago)
by ngie
Affects:  /head/usr.bin/getconf/pathconf.gperf
Add support for _PC_ACL_NFS4 as TRUSTEDBSD_ACL_NFS4

The TRUSTEDBSD prefix was chosen for consistency with the other
related `_PC_ACL*` prefixed variables.

MFC after: 3 days
Sponsored by: EMC / Isilon Storage Division
19:37:18 - r304697
(6 days 1 hour ago)
by bdrewery
Affects:  /head/share/mk/bsd.dep.mk
/head/sys/conf/kern.post.mk
FAST_DEPEND: Fix 'make all install' not properly rebuilding based on .depend.*
files.

An optimization is in place to skip reading the .depend.* files with
'make install'. This was too strong and broke 'make all install' and
'make foo.o foo install'. Now only skip reading the dependency files
if all make targets ran are install targets.

The problem comes about because headers are only added in as a guessed
dependency if .depend.* files do not yet exist. If they do exist, even
if being skipped from being read, then the header dependencies are not
applied. This applies to all #included files, and not just headers.

Reported by: kib
MFC after: 1 day
Sponsored by: EMC / Isilon Storage Division
19:31:43 - r304696
(6 days 2 hours ago)
by dim
Affects:  /head/share/mk/bsd.obj.mk
In addition to creating subdirectories under .OBJDIR for SRCS with
relative paths, also create them for DPSRCS. This is needed for builds
that generate files during the depend stage, which cannot be compiled by
themselves, since those have to be put in DPSRCS.
19:29:37 - r304695
(6 days 2 hours ago)
by bdrewery
Affects:  /head/Makefile.inc1
/head/Makefile.libcompat
Fix in-tree GCC builds after r304681.

There were a few issues.
- In-tree GCC won't have X_COMPILER_TYPE defined but will have
  WANT_COMPILER_TYPE==gcc set from the SYSTEM_COMPILER logic that can
  be used. Make the clang check specific to clang as well to ensure
  -target doesn't leak into a GCC build.
- When using a cross-compiler GCC (with a default sysroot or arch) and also
  passing --sysroot, it basically forgets all internal paths for
  libraries. We've already worked around this quite a bit for
  the external toolchains. Now for the in-tree bootstrap cross-compiler
  GCC, also pass in the needed -B${WORLDTMP}/usr/lib to find the crt
  object files, but also -isystem and -L to fix the paths. This creates
  quite a spammy build log, but it is clear and still achieves the goals
  and stays consistent between internal and external build flags.
  Reducing the spam by using the '=' prefix feature will help and be
  done later.

MFC after: 3 days
X-MFC-With: r304681
Reported by: bz
Pointyhat to: bdrewery
Sponsored by: EMC / Isilon Storage Division
19:28:01 - r304694
(6 days 2 hours ago)
by ngie
Affects:  /head/usr.bin/getconf/pathconf.gperf
Add `MIN_HOLE_SIZE` pathconf(2) support to getconf

This allows shell programs to programmatically determine whether
or not a filesystem supports sparse files

MFC after: 3 days
Sponsored by: EMC / Isilon Storage Division
19:15:01 - r304693
(6 days 2 hours ago)
by ngie
Affects:  /head/usr.bin/getconf/getconf.c
Clean up trailing whitespace

MFC after: 3 days
Sponsored by: EMC / Isilon Storage Division
19:03:11 - r304692
(6 days 2 hours ago)
by landonf
Affects:  /head/sys/dev/bhnd/bhndb/bhndb.c
bhndb(4): Fix unsigned integer underflow in dynamic register window
handling. This resulted in the window target being left uninitialized
when an underflow occured.

Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D7617
17:42:03 - r304691
(6 days 3 hours ago)
by emaste
Affects:  /head/usr.bin/bsdiff/bspatch/bspatch.c
bspatch: apply style(9)

Make style changes (and trivial refactoring of open calls) now in order
to reduce noise in diffs for future capsicum changes.

Reviewed by: oshogbo
No objection: cperciva
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D7610
17:38:06 - r304690
(6 days 3 hours ago)
by dim
Affects: 
(5 files)
/releng/11.0/contrib/llvm/lib/Target/ARM/MCTargetDesc/*
/releng/11.0/lib/clang/freebsd_cc_version.h
MFC r304530:

Pull in r265122 from upstream llvm trunk (by James Molloy):

  Fix for pr24346: arm asm label calculation error in sub

  Some ARM instructions encode 32-bit immediates as a 8-bit integer
  (0-255) and a 4-bit rotation (0-30, even) in its least significant 12
  bits. The original fixup, FK_Data_4, patches the instruction by the
  value bit-to-bit, regardless of the encoding. For example, assuming
  the label L1 and L2 are 0x0 and 0x104 respectively, the following
  instruction:

  add r0, r0, #(L2 - L1) ; expects 0x104, i.e., 260

  would be assembled to the following, which adds 1 to r0, instead of
  260:

  e2800104 add r0, r0, #4, 2 ; equivalently 1

  The new fixup kind fixup_arm_mod_imm takes care of the encoding:

  e2800f41 add r0, r0, #260

  Patch by Ting-Yuan Huang!

This fixes label calculation for ARM assembly, and is needed to enable
ARM assembly sources for OpenSSL.

Approved by: re (kib)
Requested by: jkim
16:37:34 - r304689
(6 days 4 hours ago)
by andrew
Affects:  /head/sys/arm64/arm64/pmap.c
Also adjust the virtual address passed to vm_page_pa_tryrelock.

Reported by: alc
Obtained from: ABT Systems Ltd
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
16:20:56 - r304688
(6 days 5 hours ago)
by andrew
Affects:  /head/sys/arm64/arm64/pmap.c
Map memory as read-only in pmap_enter_quick_locked as is done in other
pmap implementations.

Obtained from: ABT Systems Ltd
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
16:12:25 - r304687
(6 days 5 hours ago)
by andrew
Affects:  /head/sys/arm64/arm64/pmap.c
If we find we have a superpage in pmap_enter_quick_locked return without
trying to add a new level 3 page.

Obtained from: ABT Systems Ltd
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
15:49:31 - r304686
(6 days 5 hours ago)
by pfg
Affects:  /head/usr.bin/indent/io.c
indent(1): have the memset invocation somewhat more canonical.

While correct, the previous invocation was somewhat more error prone.

Pointed out by: delphij, bde
15:48:27 - r304685
(6 days 5 hours ago)
by andrew
Affects:  /head/sys/arm64/arm64/pmap.c
Include the offset the virtual address is within an L1 or L2 block when
finding the vm_page_t in pmap_extract_and_hold. Previously it would return
the vm_page_t of the first page in a block. This would cause issues when,
for example, fsck reads from a device into the middle of a superpage. In
this case the read call would write to the start of the block, and not to
the buffer passed in.

Obtained from: ABT Systems Ltd
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
15:46:20 - r304684
(6 days 5 hours ago)
by pfg
Affects:  /head/usr.bin/indent/indent.c
/head/usr.bin/indent/io.c
indent(1): remove dead assignments.

Taken from: Piotr Sephaniak
15:31:53 - r304683
(6 days 5 hours ago)
by bdrewery
Affects:  /head/share/man/man5/src.conf.5
Regenerate
15:22:17 - r304682
(6 days 6 hours ago)
by bdrewery
Affects:  /head/share/mk/src.opts.mk
Re-enable WITH_SYSTEM_COMPILER with WITH_META_MODE.

This was disabled in r301468 due to -target/--sysroot sometimes being used in
the build and other times not being used. Now that it is always used since
r304681, it is safe to combine the features.

MFC after: 3 days
Sponsored by: EMC / Isilon Storage Division
15:20:32 - r304681
(6 days 6 hours ago)
by bdrewery
Affects:  /head/Makefile.inc1
Always pass in -target and --sysroot flags for the build.

The internal bootstrap compiler has a default sysroot set by TOOLS_PREFIX
and target set by TARGET/TARGET_ARCH. However, there are several needs to
always pass an explicit --sysroot and -target.
- External compiler needs sysroot and target flags.
- External ld needs sysroot.
- To be clear about the use of a sysroot when using the internal compiler.
- Easier debugging.
- Allowing WITH_SYSTEM_COMPILER+WITH_META_MODE to work together due to
  the flip-flopping build command when sometimes using external and
  sometimes using internal.
- Allow using no lld which has support for default paths.

The default sysroot in the bootstrap compiler is not changed. The
buildenv compiler will still work with its default and will also
include -target/--sysroot from CC in the environment.

MFC after: 3 days
Discussed with: emaste, brooks (BSDCam)
Reviewed by: emaste
Sponsored by: EMC / Isilon Storage Division
13:53:38 - r304680
(6 days 7 hours ago)
by bapt
Affects:  /head/sys/boot/efi/libefi/Makefile
/head/sys/boot/efi/loader/Makefile
EFI loader: only open/close on the net device with tftpfs

It prevents issuing a dhcp request before each file open
As a consequence netbooting over tftpfs is significantly faster

Sponsored by: Gandi.net
13:51:55 - r304679
(6 days 7 hours ago)
by arybchik
Affects: 
(3 files)
/stable/10/sys/dev/sfxge/sfxge_ev.c
/stable/10/sys/dev/sfxge/sfxge_port.c
MFC r301724

sfxge(4): handle negative ticks difference correctly

ticks are signed int and if statistics is not updated for a long time
(more than INT_MAX ticks, but less than UINT_MAX) difference becomes
negative and less than hz for a long time.

Other option to repeat is simply load driver (which initializes
timestamps to 0) when ticks are negative.

Sponsored by: Solarflare Communications, Inc.
13:43:43 - r304678
(6 days 7 hours ago)
by araujo
Affects:  /head/usr.sbin/kldxref/kldxref.c
Use roundup2() from sys/param.h.
13:35:48 - r304677
(6 days 7 hours ago)
by bapt
Affects: 
(4 files)
/head/sys/boot/common/dev_net.c
/head/sys/boot/efi/libefi/Makefile
/head/sys/boot/efi/loader/*
Add tftpfs support for the EFI loader

Allow netbooting on efi without having to setup any NFS server by rebuilding the
loader with LOADER_TFTP_SUPPORT like for the i386 pxeloader

Sponsored by: Gandi.net
13:19:42 - r304676
(6 days 8 hours ago)
by araujo
Affects:  /head/usr.sbin/fifolog/lib/fifolog_int.c
/head/usr.sbin/fifolog/lib/fifolog_reader.c
Fix calloc(3) argument order.

MFC after: 4 weeks.
12:22:35 - r304675
(6 days 9 hours ago)
by kib
Affects: 
(2 files)
/releng/11.0/sys/ufs/ffs/ffs_balloc.c
MFC r304232:
In UFS_BALLOC(), invalidate pages of indirect buffers on failed block
allocation unwinding.

Approved by: re (gjb)
10:40:53 - r304674
(6 days 10 hours ago)
by avg
Affects:  /head/sys/dev/intpm/intpm.c
intpm: add support for SB800

This code should be able to support later AMD chipsets as well, but that
hasn't been tested.

SB800 supports accessing several different SMBus buses using the same
set of constrol registeirs plus special PMIO registers that control which
bus is selected. This could be exposed to consumers as several smb devices
each talking to its bus. This feature is not implemented yet.

MFC after: 2 weeks
08:13:08 - r304673
(6 days 13 hours ago)
by kib
Affects: 
(3 files)
/stable/9/sys/ufs/ffs/ffs_balloc.c
MFC r304232:
In UFS_BALLOC(), invalidate pages of indirect buffers on failed block
allocation unwinding.
07:55:32 - r304672
(6 days 13 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/ufs/ffs/ffs_balloc.c
MFC r304232:
In UFS_BALLOC(), invalidate pages of indirect buffers on failed block
allocation unwinding.
07:55:06 - r304671
(6 days 13 hours ago)
by avg
Affects: 
(11 files)
/stable/10/sys/cddl/compat/opensolaris/sys/vnode.h
/stable/10/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/*
MFC r303763,303791,303869: zfs: honour and make use of vfs vnode locking
protocol

PR: 209158
07:54:14 - r304670
(6 days 13 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/ufs/ffs/ffs_balloc.c
MFC r304231:
On unwind after failed block allocation in ffs_balloc_ufs{1,2}, assert
that recorded allocated blocks numbers match the physical block numbers
of dandling buffers which are released.
When finally freeing the blocks during unwind, assert that dandling
buffers where not re-allocated.
07:53:09 - r304669
(6 days 13 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/ufs/ffs/ffs_balloc.c
MFC r304229:
When looking up dandling buffers for unwing after failing block
allocation in UFS_BALLOC(), there is no need to map them.
07:52:07 - r304668
(6 days 13 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/ufs/ffs/ffs_balloc.c
MFC r304228:
When block allocation fails in UFS_BALLOC(), and the volume does not
have SU enabled, there is no point in calling softdep_request_cleanup().
07:51:00 - r304667
(6 days 13 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/ufs/ffs/ffs_balloc.c
MFC r304227:
In ffs_balloc_ufs{1,2} routines, assert that unwind records do not
overflow local arrays.
07:32:12 - r304666
(6 days 13 hours ago)
by kib
Affects: 
(2 files)
/stable/11/sys/ufs/ffs/ffs_balloc.c
MFC r304232:
In UFS_BALLOC(), invalidate pages of indirect buffers on failed block
allocation unwinding.
07:30:20 - r304665
(6 days 14 hours ago)
by kib
Affects: 
(2 files)
/stable/11/sys/ufs/ffs/ffs_balloc.c
MFC r304231:
On unwind after failed block allocation in ffs_balloc_ufs{1,2}, assert
that recorded allocated blocks numbers match the physical block numbers
of dandling buffers which are released.
When finally freeing the blocks during unwind, assert that dandling
buffers where not re-allocated.
07:27:38 - r304664
(6 days 14 hours ago)
by kib
Affects: 
(2 files)
/stable/11/sys/ufs/ffs/ffs_balloc.c
MFC r304229:
When looking up dandling buffers for unwing after failing block
allocation in UFS_BALLOC(), there is no need to map them.
07:25:39 - r304663
(6 days 14 hours ago)
by kib
Affects: 
(2 files)
/stable/11/sys/ufs/ffs/ffs_balloc.c
MFC r304228:
When block allocation fails in UFS_BALLOC(), and the volume does not
have SU enabled, there is no point in calling softdep_request_cleanup().
07:23:50 - r304662
(6 days 14 hours ago)
by kib
Affects: 
(2 files)
/stable/11/sys/ufs/ffs/ffs_balloc.c
MFC r304227:
In ffs_balloc_ufs{1,2} routines, assert that unwind records do not
overflow local arrays.
07:07:47 - r304661
(6 days 14 hours ago)
by avg
Affects:  /stable/9/sys/dev
remove stray mergeinfo from sys/dev

This is a direct commit.
07:06:46 - r304660
(6 days 14 hours ago)
by avg
Affects: 
(3 files)
/stable/9/sys/dev/ahci/ahci.c
MFC r304521: JMicron JMB361 has only a single SATA port
07:03:17 - r304659
(6 days 14 hours ago)
by avg
Affects: 
(2 files)
/stable/10/sys/dev/ahci/ahci_pci.c
MFC r304521: JMicron JMB361 has only a single SATA port
07:02:50 - r304658
(6 days 14 hours ago)
by avg
Affects: 
(2 files)
/stable/11/sys/dev/ahci/ahci_pci.c
MFC r304521: JMicron JMB361 has only a single SATA port
05:22:03 - r304657
(6 days 16 hours ago)
by dim
Affects: 
(5 files)
/stable/11/contrib/llvm/lib/Target/ARM/MCTargetDesc/*
/stable/11/lib/clang/freebsd_cc_version.h
MFC r304530:

Pull in r265122 from upstream llvm trunk (by James Molloy):

  Fix for pr24346: arm asm label calculation error in sub

  Some ARM instructions encode 32-bit immediates as a 8-bit integer
  (0-255) and a 4-bit rotation (0-30, even) in its least significant 12
  bits. The original fixup, FK_Data_4, patches the instruction by the
  value bit-to-bit, regardless of the encoding. For example, assuming
  the label L1 and L2 are 0x0 and 0x104 respectively, the following
  instruction:

  add r0, r0, #(L2 - L1) ; expects 0x104, i.e., 260

  would be assembled to the following, which adds 1 to r0, instead of
  260:

  e2800104 add r0, r0, #4, 2 ; equivalently 1

  The new fixup kind fixup_arm_mod_imm takes care of the encoding:

  e2800f41 add r0, r0, #260

  Patch by Ting-Yuan Huang!

This fixes label calculation for ARM assembly, and is needed to enable
ARM assembly sources for OpenSSL.

Requested by: jkim
04:37:04 - r304656
(6 days 16 hours ago)
by jhibbits
Affects:  /head/sys/powerpc/powerpc/machdep.c
tlb1_init() can be called twice on BookE

Summary:
There is no need to call tlb1_init() twice. Now it is called first time from
booke_init() and second time from powerpc_init() (where it is under BOOKE
switch). Although this does not cause immediate problems in the mainline kernel,
this can lead to undesirable side effects like two TLB entries with the same VA
in the TLB1. Presence of two TLB entries with the same VA can hang CPU.

Test Plan:
Add initial mapping for UART to the tlb1_init(), build and boot the kernel,
ensure that mapping presents only once (most convinient way - through Lauterbah
or similar hardware debugger)

Submitted by: Ivan Krivonos <int0dster_gmail.com>
Differential Revision: https://reviews.freebsd.org/D7607
04:26:30 - r304655
(6 days 17 hours ago)
by jhibbits
Affects:  /head/sys/powerpc/booke/pmap.c
Take into account mas7/8 when reading/writing TLB entries on e6500

Summary: Current booke/pmap code ignores mas7 and mas8 on e6500 CPU.

Submitted by: Ivan Krivonos <int0dster_gmail.com>
Differential Revision: https://reviews.freebsd.org/D7606
02:54:07 - r304654
(6 days 18 hours ago)
by sephe
Affects:  /head/sys/dev/usb/net/if_urndis.c
/head/sys/dev/usb/net/if_urndisreg.h
/head/sys/net/rndis.h
net: Split RNDIS protocol structs/macros out of dev/usb/net/if_urndisreg.h

So that Hyper-V can leverage them instead of rolling its own definition.

Discussed with: hps
Reviewed by: hps
MFC after: 1 week
Sponsored by: Microsoft
Differential Revision: https://reviews.freebsd.org/D7592
02:07:08 - r304653
(6 days 19 hours ago)
by pfg
Affects:  /head/usr.bin/indent/lexi.c
indent(1): Fix off-by-one in control flow leading dead code.

Coverity correctly reported that it's impossible for /comparison/ to be 0
here, because the only way for the for loop to end is by /comparison/
being < 0.

Fortunately the consequences of this bug weren't severe; for duplicated
entries in the typedef names file it would unnecessarily duplicate strings
with strdup(), but pointers to those would replace existing ones. So this
was a memory leak at worst.

CID: 1361477
Obtained from: Piotr Stephaniak
02:06:20 - r304652
(6 days 19 hours ago)
by badger
Affects:  /head/sbin/resolvconf/Makefile
Fix missing substitution of @SBINDIR@ in resolvconf scripts

Certain features, such as resolv_conf_passthrough=NULL, do not work
correctly due to this missing substitution.

Also remove the @PREFIX@ substitution, which is no longer needed.

Reviewed by: pfg
Approved by: vangyzen (mentor)
MFC after: 1 week
Sponsored by: Dell Inc.
Differential Revision: https://reviews.freebsd.org/D7572
01:58:02 - r304651
(6 days 19 hours ago)
by pfg
Affects:  /head/usr.bin/indent/io.c
/head/usr.bin/indent/parse.c
indent(1): add some comments to quiet down Coverity.

Hopefully adding comments should help explain the code to both static
checkers and humans.

CID: 976543, 976544, 976545
Obtained from: Piotr Stephaniak
01:40:45 - r304650
(6 days 19 hours ago)
by pfg
Affects:  /head/usr.bin/indent/args.c
/head/usr.bin/indent/lexi.c
indent(1): Fix memory leaks pointed out by clang-analyzer.

Shift the responsibility of allocating memory for the string duplicate
from the caller (set_option, add_typedefs_from_file) to the callee
(add_typename) as it has more knowledge about when the duplication
actually needs to occur.

Taken from: Piotr Stefaniak
00:46:22 - r304649
(6 days 20 hours ago)
by manu
Affects:  /head/sys/arm/allwinner/a10_gpio.c
Do not include file from dt-bindings and simply use the already present defines.

Reported by: jmcneill
MFC after: 1 week
00:00:06 - r304648
(6 days 21 hours ago)
by ache
Affects:  /stable/10/lib/libc/stdio/fgetln.c
Direct commit, equal to MFC part of r295632 which is not planned for
MFC at whole.
Set __SERR on __slbexpand() errors.

 


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

Page generated in 38 ms, 382 revisions printed. Current time is 2016-08-29 21:31:43. All times are in UTC/GMT.