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 - 02 - 09   (today)
03:35:40 - r295424
(1 hour 49 minutes ago)
by adrian
Affects:  /head/sys/dev/ofw/ofw_bus_subr.c
/head/sys/dev/ofw/ofw_bus_subr.h
Teach ofw_bus_parse_xref_list_alloc to be able to return the length of the
parsed list.

Currently, there is no easy way to know in advance how many entries a list
parsed by
ofw_bus_parse_xref_list_alloc() in sys/dev/ofw/ofw_bus_subr.c has.

This patch:

* teaches the existing function about handling idx == -1 and returning how big
  the set is; then renames it as _internal;
* create a new function that asserts idx != -1, so the old API is maintained;
* add a new function that returns just the list length.

Submitted by:   Stanislav Galabov <sgalabov@gmail.com>
Differential Revision:  https://reviews.freebsd.org/D5043
01:42:51 - r295423
(3 hours 41 minutes ago)
by gjb
Affects: 
(26 files)
/projects/release-pkg/*
MFH

Sponsored by:   The FreeBSD Foundation
01:41:03 - r295422
(3 hours 43 minutes ago)
by dteske
Affects:  /head/share/examples/jails/jib
/head/share/examples/jails/jng
Adjust MAC algo to support interface branching
00:15:41 - r295421
(5 hours 9 minutes ago)
by andrew
Affects:  /head/sys/boot/Makefile.inc
Stop clang from generating movt/movw sequences. These don't get relocated
so will access data from an unrelocated address. This is only needed for
self relocating code on ARMv7, however this is true for both ubldr and
loader.efi, the only two loaders we support on ARMv7.

While here also force the fpu to be none as is done in libstand.

Sponsored by:   ABT Systems Ltd
00:01:43 - r295420
(5 hours 23 minutes ago)
by andrew
Affects:  /head/sys/boot/efi/loader/arch/arm/ldscript.arm
Ensure the bss is aligned to a 4-byte address as we use 4-byte aligned
stores to clear it.

While here reduce the alignment of the data from 4k to 16 byte aligned.
This should be more than enough, without wasting too much space.

Sponsored by:   ABT Systems Ltd
2016 - 02 - 08   (yesterday)
23:11:23 - r295419
(6 hours 13 minutes ago)
by jhb
Affects:  /head/sys/kern/kern_fork.c
Call kthread_exit() rather than kproc_exit() for a premature kthread exit.

Kernel threads (and processes) are supposed to call kthread_exit() (or
kproc_exit()) to terminate.  However, the kernel includes a fallback in
fork_exit() to force a kthread exit if a kernel thread's "main" routine
returns.  This fallback was added back when the kernel only had processes
and was not updated to call kthread_exit() instead of kproc_exit() when
threads were added to the kernel.

This mistake was particular exciting when the errant thread belonged to
proc0.  Due to the missing P_KTHREAD flag the fallback did not kick in
and instead tried to return to userland via whatever garbage was in the
trapframe.  With P_KTHREAD set it tried to terminate proc0 resulting in
other amusements.

PR:             204999
MFC after:      1 week
23:06:27 - r295418
(6 hours 18 minutes ago)
by jhb
Affects:  /head/sys/kern/init_main.c
Mark proc0 as a kernel process via the P_KTHREAD flag.

All other kernel processes have this flag set and all threads in proc0
(including thread0) have the similar TDP_KTHREAD flag set.

PR:             204999
Submitted by:   Oliver Pinter @ HardenedBSD
Reviewed by:    kib
MFC after:      1 week
22:13:08 - r295417
(7 hours 11 minutes ago)
by ken
Affects:  /head/sys/cam/scsi/scsi_xpt.c
Fix the SCSI Extended INQUIRY probe case when an error is returned
and a retry is scheduled.

Instead of leaving the device queue frozen, unfreeze the device queue so
that the retry can happen.

Sponsored by:   Spectra Logic
MFC after:      3 days
22:02:56 - r295416
(7 hours 21 minutes ago)
by markj
Affects:  /head/lib/libc/include/libc_private.h
Fix the gcc build after r295407.

X-MFC-With:     r295407
21:15:07 - r295415
(8 hours 9 minutes ago)
by gjb
Affects: 
(4 files)
/projects/release-pkg/etc/rc.d/Makefile
/projects/release-pkg/release/packages/Makefile.package
/projects/release-pkg/sbin/*
Create a package for HAST.

Sponsored by:   The FreeBSD Foundation
20:58:52 - r295414
(8 hours 25 minutes ago)
by bdrewery
Affects:  /head/sys/conf/kmod.mk
kmod.mk: Ensure ILINKS are created before building.

This allows skipping 'make depend' or running 'make clean all' without
getting a flip-flopping dependency due to the exists() just below.
Otherwise an error is encountered, such as:
  fatal error: 'machine/endian.h' file not found.

Sponsored by:   EMC / Isilon Storage Division
20:57:12 - r295413
(8 hours 27 minutes ago)
by bdrewery
Affects:  /head/sys/conf/kmod.mk
kmod.mk: Support a beforebuild target such as bsd.prog.mk has.

Sponsored by:   EMC / Isilon Storage Division
20:21:07 - r295412
(9 hours 3 minutes ago)
by gjb
Affects:  /projects/release-pkg/include/Makefile
Ensure include/ is properly tagged in the METALOG.

Noticed by:     des
Sponsored by:   The FreeBSD Foundation
20:06:26 - r295411
(9 hours 18 minutes ago)
by emaste
Affects:  /stable/10
MFC r280950: Move the efi loaders to be under sys/boot/efi

In HEAD this was done to support UEFI on arm64. Merging to stable/10 to
facilitate the merging of later UEFI changes.

This is a commit of mergeinfo only, missed in r293297.

Approved by:    re (gjb)
20:03:14 - r295410
(9 hours 21 minutes ago)
by pfg
Affects:  /head/sys/boot/ficl/words.c
ficl: Replace rand(3) with random(3).

Be a little more consistent with random(3) and push an
unsigned value.

Again, this has no effect as this code doesn't get compiled
for the boot code.
19:45:55 - r295409
(9 hours 38 minutes ago)
by pfg
Affects:  /head/sys/boot/ficl/words.c
ficl: Replace rand(3) with random(3).

While the later is a better random generator than the former, the main
reason of the change is that random() has a better chance to work with
libstand(3).

At this time we don't include random number generators in bootforth
so this has no effect.
19:34:17 - r295408
(9 hours 50 minutes ago)
by imp
Affects:  /head/sys/boot/efi/loader/main.c
Implement -P for boot loader. It's a bit easier to implement here than
in boot1, like is normally done. When a keyboard appears in the UEFI
device tree, assume -D -h, just like on a BIOS boot.

# It is unclear if an ACPI keyboard appearing in the tree means there's
# a real keyboard or not. A USB keyboard doesn't seem to appear unless
# it is really there.

Differential Revision: https://reviews.freebsd.org/D5223
19:24:13 - r295407
(10 hours ago)
by kib
Affects: 
(7 files)
/head/lib/libc/*
/head/lib/libthr/*
If libthr.so is dlopened without RTLD_GLOBAL flag, the libthr symbols
do not participate in the global symbols namespace, but rtld locks are
still replaced and functions are interposed.  In particular,
__pthread_map_stacks_exec is resolved to the libc version.  If a
library is loaded later, which requires adjustment of the stack
protection mode, rtld calls into libc __pthread_map_stacks_exec due to
the symbols scope.  The libc version might recurse into binder and
recursively acquire rtld bind lock, causing the hang.

Make libc __pthread_map_stacks_exec() interposed, which synchronizes
rtld locks and version of the stack exec hook when libthr loaded,
regardless of the symbol scope control or symbol resolution order.

The __pthread_map_stacks_exec() symbol is removed from the private
version in libthr since libc symbol now operates correctly in presence
of libthr.

Reported and tested by: markj
Sponsored by:   The FreeBSD Foundation
MFC after:      2 weeks
18:57:06 - r295406
(10 hours 27 minutes ago)
by gjb
Affects:  /projects/release-pkg/libexec/smrsh/Makefile
Add libexec/smrsh to the sendmail package.

Submitted by:   pfg
Sponsored by:   The FreeBSD Foundation
18:44:26 - r295405
(10 hours 40 minutes ago)
by gjb
Affects:  /projects/release-pkg/release/packages/Makefile.package
Add comment/description for clibs, rescue, and sendmail packages.

Sponsored by:   The FreeBSD Foundation
18:42:33 - r295404
(10 hours 42 minutes ago)
by gjb
Affects:  /projects/release-pkg/release/packages/Makefile.package
Sort.

Sponsored by:   The FreeBSD Foundation
18:41:46 - r295403
(10 hours 43 minutes ago)
by gjb
Affects: 
(6 files)
/projects/release-pkg/*
Create a package for sendmail(8).

Sponsored by:   The FreeBSD Foundation
17:47:58 - r295402
(11 hours 36 minutes ago)
by glebius
Affects: 
(2 files)
/stable/10/sys/netpfil/pf/pf_ioctl.c
Merge r264915: fix NULL pointer derefernce with special sequence of
DIOCADDADDR and DIOCADDRULE.

PR:             206933
Approved by:    re (marius)
17:47:36 - r295401
(11 hours 37 minutes ago)
by dteske
Affects:  /head/share/examples/jails/jib
/head/share/examples/jails/jng
Adjust MAC allocation algo to support layering
17:36:46 - r295400
(11 hours 48 minutes ago)
by dteske
Affects:  /head/share/examples/jails/jib
/head/share/examples/jails/jng
Provide additional information on overall purpose
17:30:17 - r295399
(11 hours 54 minutes ago)
by dteske
Affects:  /head/share/examples/jails/jib
Fix copy/paste error; s/ngX/eXb/
16:59:52 - r295398
(12 hours 24 minutes ago)
by emaste
Affects:  /head/sys/boot/i386/Makefile
/head/targets/pseudo/userland/misc/Makefile.depend
Restore kgzldr on i386 only

I previously disconnected kgzdr based on a misunderstanding.

I'd still like to transition to supporting only the loader(8)-based
boot path for handling compressed kernels, but that can follow the
standard deprecation procedure.

This reverts r291113.

Requested by:   dteske
16:34:13 - r295397
(12 hours 50 minutes ago)
by des
Affects:  /projects/release-pkg/Makefile
/projects/release-pkg/Makefile.inc1
Rename the signpackages target to sign-packages, and include it in the
packages meta-target so 'make packages' now does everything.
16:08:13 - r295396
(13 hours 16 minutes ago)
by des
Affects:  /projects/release-pkg/Makefile
/projects/release-pkg/Makefile.inc1
Split the packages target into stage-packages and create-packages to make
it possible to roll new packages from an existing build without having to
restage them.
14:27:45 - r295395
(14 hours 57 minutes ago)
by gjb
Affects:  /projects/release-pkg/rescue/librescue/Makefile
/projects/release-pkg/rescue/rescue/Makefile
Split /rescue into its own package.

Sponsored by:   The FreeBSD Foundation
12:16:01 - r295394
(17 hours 8 minutes ago)
by gjb
Affects: 
(234 files)
/projects/release-pkg/*
MFH

Sponsored by:   The FreeBSD Foundation
11:18:13 - r295393
(18 hours 6 minutes ago)
by kib
Affects: 
(2 files)
/stable/10/sys/kern/tty.c
MFC r294732:
Minor fixes for ddb tty-related commands.

Approved by:    re (gjb)
11:15:36 - r295392
(18 hours 9 minutes ago)
by kib
Affects: 
(2 files)
/stable/10/sys/kern/tty.c
MFC r294735:
Don't allow opening the callout device when the callin device is already
open (in disguise as the console device).

Approved by:    re (gjb)
10:54:27 - r295391
(18 hours 30 minutes ago)
by kib
Affects:  /head/sys/kern/kern_proc.c
Remove the assert which outlived its usefulness, and, by default,
disable compilation of the code which made it possible to call
stop_all_proc() from usermode at all.

Move the comment to the preamble of stop_all_proc() and reword it to
give overview of the function intent.

proc0 has P_HADTHREADS flag set due to kthread_add(), but no
P_KTHREAD, which triggered the assert, which does not serve a purpose
now.

Reported by:    Oliver Pinter
Sponsored by:   The FreeBSD Foundation
MFC after:      2 weeks
02:11:34 - r295390
(1 day 3 hours ago)
by adrian
Affects:  /head/tools/tools/ath/athregs/dumpregs.c
Add a format string to the err() calls.
00:07:01 - r295389
(1 day 5 hours ago)
by bz
Affects: 
(3 files)
/stable/10/sys/netinet/in_rmx.c
/stable/10/sys/netinet6/in6_rmx.c
MFC r292601,292654:

  Since r256624 (head) we have been leaking routing table allocations
  on vnet enabled jail shutdown. Call the provided cleanup
  routines for IP versions 4 and 6 to plug these leaks.

  Sponsored by:         The FreeBSD Foundation
  Reviewed by:          gnn
  Differential Revision:https://reviews.freebsd.org/D4530

Approved by:            re (gjb)
2016 - 02 - 07   (2 days ago)
23:42:36 - r295388
(1 day 5 hours ago)
by bz
Affects: 
(2 files)
/stable/10/sys/netinet/igmp.c
MFC r294514:

  The variable is write once only and not used.
  Recover the vertical space.

  Sponsored by:         The FreeBSD Foundation
  Obtained from:        p4 CH=180830
  Reviewed by:          gnn, hiren
  Differential Revision:https://reviews.freebsd.org/D4898

Approved by:            re (marius, gjb)
23:20:44 - r295387
(1 day 6 hours ago)
by imp
Affects:  /head/tools/tools/nanobsd/embedded/common
Make sure NANO_DISKIMGDIR exists.
22:53:03 - r295386
(1 day 6 hours ago)
by bz
Affects: 
(2 files)
/stable/10/contrib/bsnmp/snmp_mibII/mibII.c
MFC r295202:

 Try to fix a bug introduced in r228623 (head).
 We started to copy the ifa_msghdr as otherwise platforms with strict
 alignment would break.  It is unclear to me if there's also a problem with
 access to the address list following the structure.
 However we never copied the address list after the structure and thus are
 pointing at random memory.  For now just use a pointer to the original
 memory for accessing the address list making it at least work on
 platforms with weak memory access.

 PR:                   195445
 Reported by:          wolfgang lyxys.ka.sub.org
 Tested by:            wolfgang lyxys.ka.sub.org (x86)

Approved by:            re (marius)
22:12:39 - r295385
(1 day 7 hours ago)
by jilles
Affects:  /head/sys/kern/sysv_sem.c
/head/tools/regression/sysvsem/semtest.c
semget(): Check for [EEXIST] error first.

Although POSIX literally permits failing with [EINVAL] if IPC_CREAT and
IPC_EXCL were both passed, the semaphore set already exists and has fewer
semaphores than nsems, this does not allow an application to retry safely:
if the [EINVAL] is actually because of the semmsl limit, an infinite loop
would result.

PR:             206927
21:25:08 - r295384
(1 day 7 hours ago)
by jilles
Affects:  /head/lib/libc/sys/semget.2
semget(2): Add missing [EINVAL] conditions.

PR:             206927
18:46:53 - r295383
(1 day 10 hours ago)
by ngie
Affects: 
(472 files)
/user/ngie/socket-tests/*
MFhead @ r295382
18:40:59 - r295382
(1 day 10 hours ago)
by ngie
Affects:  /user/ngie/stable-10-ixgbe-upgrade
Prune branch
18:40:23 - r295381
(1 day 10 hours ago)
by ngie
Affects:  /user/ngie/make_check
Prune branch
18:40:04 - r295380
(1 day 10 hours ago)
by ngie
Affects: 
(9 files)
/head/Makefile
/head/Makefile.inc1
/head/share/*
Simplify running the FreeBSD test suite

Replace `make regress` (legacy test make target) and `make test` (incomplete
test make target added with the FreeBSD test suite) with make check as it's
consistent with other open source projects.

`make check` defaults to running tests from `.OBJDIR`, but can be overridden
with the `CHECKDIR` variable.

Add `make checkworld` target to simplify running the FreeBSD test suite from
`TESTSBASE` (i.e. the top-level tests directory), similar to buildworld.

Document `make check` and `make checkworld` in build(7).

Other minor changes:

- Rename intermediate file (`Kyuafile.auto`) to `Kyuafile` to simplify
  `make check`.
- Remove terse warnings attached to `beforetest`/`aftertest`.
- Add kyua binary check to check target in suite.test.mk; error out if it's
  not found

The MFC is [partly] contingent on other build related changes being MFCed.

Differential Revision: https://reviews.freebsd.org/D4406
MFC after: 2 months
X-MFC to: stable/10
Relnotes: yes
Reviewed by: bdrewery, Evan Cramer <eccramer@gmail.com>
Sponsored by: EMC / Isilon Storage Division
17:03:49 - r295379
(1 day 12 hours ago)
by ume
Affects: 
(2 files)
/stable/9/share/i18n/esdb/MISC/MISC.alias
MFC r295234:

  Make sure to enable aliases for SHIFT_JIS.
16:51:50 - r295378
(1 day 12 hours ago)
by ume
Affects: 
(2 files)
/stable/10/share/i18n/esdb/MISC/MISC.alias
MFC r295234:

  Make sure to enable aliases for SHIFT_JIS.

Approved by:    re (marius)
16:44:13 - r295377
(1 day 12 hours ago)
by imp
Affects:  /head/tools/tools/nanobsd/embedded/common
Use new NANO_LOG to put the logs some place reasonable. Also, share
the object directory among all builds where it makes sense. When
building with NANO_CPUTYPE, separate that out to its own object
directory. Put disk files in their own directories.

This should make having multiple variants of the same architecture
saner.
16:44:06 - r295376
(1 day 12 hours ago)
by imp
Affects:  /head/tools/tools/nanobsd/defaults.sh
Use NANO_LOG instead of NANO_OBJ for log file locations. Have it
default to NANO_OBJ.
16:44:04 - r295375
(1 day 12 hours ago)
by imp
Affects:  /head/tools/tools/nanobsd/embedded/i386.cfg
Add simple config for i386 BIOS boot.
16:43:55 - r295374
(1 day 12 hours ago)
by imp
Affects:  /head/tools/tools/nanobsd/embedded/common
Various fixups:
o Make sure we create bsd label for MBR scheme (though we don't
  really need it for the efi case, and boot1 can't read it). Add
  notes about why we have to do this, at least for BIOS.
o Make the BIOS / UEFI with gpt config work.
o Remove now-moribund packaging stuff
16:41:54 - r295373
(1 day 12 hours ago)
by dteske
Affects:  /head/share/examples/jails/jib
/head/share/examples/jails/jng
Add two scripts for vnet jails

One for if_bridge(4) back-end, another for ng_bridge(4) back-end

Sponsored by:   FIS Global, Inc.
16:18:12 - r295372
(1 day 13 hours ago)
by pfg
Affects:  /head/sys/kern/vfs_bio.c
Minor grammar fix in comment.
15:40:01 - r295371
(1 day 13 hours ago)
by pfg
Affects:  /head/sys/fs/fdescfs/fdesc_vnops.c
Revert r295359:
CID 1018688 is a false positive.

The initialization is done by calling vn_start_write(... &mp, flags).
mp is only an output parameter unless (flags & V_MNTREF), and fdesc
doesn't put V_MNTREF in flags.

Pointed out by: bde
15:36:16 - r295370
(1 day 13 hours ago)
by pfg
Affects:  /head/sys/fs/msdosfs/msdosfs_vnops.c
msdosfs_rename: yet another unused value.

As with r295355, it seems to be left over from a cleanup
in r33548. The code is not in NetBSD either.

Thanks to bde for checking out the history.
15:26:21 - r295369
(1 day 13 hours ago)
by pfg
Affects: 
(9 files)
/head/lib/libedit/*
MFV r295360
Sync our libedit with NetBSD's libedit 2016-01-16

Obtained from:  NetBSD
13:33:18 - r295368
(1 day 15 hours ago)
by dteske
Affects:  /head/share/man/man4/bridge.4
Add missing comma
11:38:54 - r295367
(1 day 17 hours ago)
by des
Affects: 
(461 files)
/stable/10/crypto/openssh/*
/stable/10/lib/libpam/modules/pam_ssh/pam_ssh.c
/stable/10/secure/*
MFH (r265214, r294333, r294407, r294467): misc prop fixes
MFH (r285975, r287143): register mergeinfo for security fixes
MFH (r294497, r294498, r295139): internal documentation
MFH (r294328): upgrade to openssh 6.7p1, re-add libwrap
MFH (r294332): upgrade to openssh 6.8p1
MFH (r294367): update pam_ssh for api changes
MFH (r294909): switch usedns back on
MFH (r294336): upgrade to openssh 6.9p1
MFH (r294495): re-enable dsa keys
MFH (r294464): upgrade to openssh 7.0p1
MFH (r294496): upgrade to openssh 7.1p2

Approved by:    re (gjb)
Relnotes:       yes
09:51:22 - r295366
(1 day 19 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/kern/imgact_elf.c
MFC r295277:
When matching brand to the ELF binary by notes, try to find a brand
with interpreter name exactly matching one wanted by the binary.

Approved by:    re (delphij)
05:15:51 - r295365
(2 days ago)
by ngie
Affects:  /user/ngie/bsnmp_cleanup/contrib/bsnmp/lib/snmpclient.c
Revert r295247

Changing mktemp to mkstemp breaks the bind call because mkstemp
creates the file. Functionally, there is no difference in mktemp
vs mkstemp + unlink, except the additional overhead, so revert
the commit
04:58:06 - r295364
(2 days ago)
by ngie
Affects: 
(380 files)
/user/ngie/make_check/*
MFhead @ r295363
04:28:03 - r295363
(2 days ago)
by adrian
Affects: 
(6 files)
/head/tools/tools/ath/*
Remove the hard-coded 'ath0' strings and use ATH_DEFAULT.

Remove the duplicate ATH_DEFAULT fields.  The build bits should be including
../Makefile.inc as appropriate.
03:48:40 - r295362
(2 days 1 hour ago)
by pfg
Affects:  /head/sys/fs/cd9660/cd9660_vfsops.c
cd9660: Drop an unnecessary check for NULL.

This was unnecessary and also confused Coverity.

Confirmed on:   NetBSD
CID:            978558
01:45:24 - r295361
(2 days 3 hours ago)
by pfg
Affects: 
(16 files)
/vendor/NetBSD/libedit/2016-01-16/*
Tag import of libedit 2016-01-16.
01:38:50 - r295360
(2 days 3 hours ago)
by pfg
Affects: 
(15 files)
/vendor/NetBSD/libedit/dist/*
Import libedit 2016-01-16

Obtained from:  NetBSD
01:09:38 - r295359
(2 days 4 hours ago)
by pfg
Affects:  /head/sys/fs/fdescfs/fdesc_vnops.c
fdesc_setattr: unitialized pointer read

CID:    1018688
01:04:47 - r295358
(2 days 4 hours ago)
by mckusick
Affects:  /head/sys/kern/vfs_syscalls.c
Clarify a comment in kern_openat() about the use of falloc_noinstall().

Suggested by: Steve Jacobson
00:49:15 - r295357
(2 days 4 hours ago)
by allanjude
Affects:  /head/sys/boot/zfs/zfs.c
Do not set vfs.root.mountfrom unnecessarily

This causes boot from external media (installer USB image) to mount / from
the default ZFS BE, rather than the USB device.

Reported by:    kmoore
MFC after:      5 days
Sponsored by:   ScaleEngine Inc.
2016 - 02 - 06   (3 days ago)
22:01:25 - r295356
(2 days 7 hours ago)
by smh
Affects:  /head/sys/boot/common/load_elf.c
/head/sys/boot/efi/boot1/zfs_module.c
Fix EFI platform build failures

With warnings now enabled some plaforms where failing due to warnings.
* Fix st_size printed as a size_t when its actually an off_t.
* Fix pointer conversion in load_elf for some 32bit platforms due to 64bit
  off in ef.

MFC after:      2 days
X-MFC-With:
Sponsored by:   Multiplay
21:54:02 - r295355
(2 days 7 hours ago)
by pfg
Affects:  /head/sys/fs/msdosfs/msdosfs_vnops.c
msdosfs_rename: Unused value

Assigned value to pmp, is immediatedly overwritten before it can be used.

CID:    1304892
17:10:46 - r295354
(2 days 12 hours ago)
by pfg
Affects: 
(3 files)
/stable/9/sys/fs/ext2fs/ext2_inode_cnv.c
MFC r295209;
Revert r294695; passthrough any extra timestamps to the dinode struct.

The original ext2fs change worked fine on disks formated with default
values, but it was the cause of a regression when inodes are small.
Revert it for now, while we figure out safer ways pass such values,

PR:             206820
16:58:56 - r295353
(2 days 12 hours ago)
by pfg
Affects: 
(2 files)
/stable/10/sys/fs/ext2fs/ext2_inode_cnv.c
MFC r295209;
Revert r294695; passthrough any extra timestamps to the dinode struct.

The original ext2fs change worked fine on disks formated with default
values, but it was the cause of a regression when inodes are small.
Revert it for now, while we figure out safer ways pass such values,

PR:             206820
Approved by:    re
15:39:04 - r295352
(2 days 13 hours ago)
by kib
Affects:  /head/sys/dev/hwpmc/hwpmc_mod.c
Do not call vn_fullpath(9) (through the pmc_getfilename() wrapper)
when its result is immediately ignored, i.e. for kernel processes
forked from the user process.  Do not test for non-null before freeing
string.

Sponsored by:   The FreeBSD Foundation
MFC after:      2 weeks
14:07:17 - r295351
(2 days 15 hours ago)
by dim
Affects: 
(984 files)
/projects/clang380-import/*
Merge ^/head r294961 through r295350.
14:03:31 - r295350
(2 days 15 hours ago)
by wblock
Affects: 
(2 files)
/stable/10/lib/libc/string/strtok.3
MFC r294597:

Add a standards compliance note for strtok_r

Approved by:    re (marius@)
13:39:20 - r295349
(2 days 15 hours ago)
by dim
Affects: 
(280 files)
/projects/clang380-import/contrib/compiler-rt/*
/projects/clang380-import/lib/libclang_rt/*
/projects/clang380-import/lib/libcompiler_rt/Makefile
Merge compiler-rt release_38 branch r258968.

Note that there is still a problem on amd64, causing SIGBUS in the early
startup of Address Sanitizer.  This is being investigated.
11:16:15 - r295348
(2 days 18 hours ago)
by mmel
Affects:  /head/sys/cddl/dev/fbt/arm/fbt_isa.c
ARM: Rename remaining ARMv4 specific function in DTrace code.
I missed it in r295319.

Pointed by: tuexen
09:01:03 - r295347
(2 days 20 hours ago)
by mjg
Affects:  /head/sys/kern/kern_fork.c
fork: ansify sys_pdfork

No functional changes.
08:58:10 - r295346
(2 days 20 hours ago)
by hselasky
Affects: 
(3 files)
/stable/10/sys/conf/files
/stable/10/sys/conf/kern.post.mk
MFC r294915:
Fix generation of dependency rules for the LinuxKPI, the MLX5 driver
and all of OFED except MLX4[EN/IB].

Sponsored by:   Mellanox Technologies
Approved by:    re (marius)
04:13:20 - r295345
(3 days 1 hour ago)
by ngie
Affects:  /head/tests/sys/acl/Makefile
Use basenames for getfacl, setfacl, and zpool to work around the
fact that Jenkins hardcodes image sizes to 2GB with the FreeBSD_HEAD
job

This is to stop the unnecessary failure emails because we've gone
over the 2GB limit

MFC after: 1 week
X-MFC with: r295341
Sponsored by: EMC / Isilon Storage Division
02:35:52 - r295344
(3 days 2 hours ago)
by dteske
Affects:  /head/etc/defaults/rc.conf
Fix typo in a comment; s/redined/redefined/

Thanks to:      rpokala
02:32:13 - r295343
(3 days 2 hours ago)
by dteske
Affects:  /head/etc/defaults/rc.conf
Add comment to explain functionality of code

Thanks to:      rpokala
02:16:48 - r295342
(3 days 3 hours ago)
by dteske
Affects:  /head/etc/defaults/rc.conf
Allow rc_conf_files to be redefined in rc.conf(5)

With this change, it's possible to redefine rc_conf_files (e.g.,
sysrc rc_conf_files+=/etc/rc.conf.other) and have the boot process
pick up settings in extra files. The sysrc(8) tool can be used to
query/enumerate/find/manage extra files configured in this manner.

Relnotes:       yes
2016 - 02 - 05   (4 days ago)
23:50:15 - r295341
(3 days 5 hours ago)
by ngie
Affects:  /head/tests/sys/acl/Makefile
Require /bin/getfacl and /bin/setfacl when running the acl tests

For cases where these utilities aren't installed, the tests would fail today
in a non-intuitive manner on sub-testcase #3 in each of the test scripts

MFC after: 1 week
Reviewed by: markj
Sponsored by: EMC / Isilon Storage Division
23:46:33 - r295340
(3 days 5 hours ago)
by ngie
Affects:  /user/ngie/bsnmp_cleanup/usr.sbin/bsnmpd/bsnmpd/Makefile
/user/ngie/bsnmp_cleanup/usr.sbin/bsnmpd/modules/snmp_mibII/Makefile
/user/ngie/bsnmp_cleanup/usr.sbin/bsnmpd/tools/Makefile.inc
Set WARNS?= 6; remove NO_WERROR; reap unused CFLAGS
23:39:24 - r295339
(3 days 5 hours ago)
by ngie
Affects:  /user/ngie/bsnmp_cleanup/contrib/bsnmp/snmpd/main.c
Checkpoint work to make bsnmpd/main.c compile with WARNS?=6

WIP. Needs to be tested
21:57:50 - r295338
(3 days 7 hours ago)
by glebius
Affects:  /head/usr.sbin/freebsd-update/freebsd-update.sh
Provide a future release as an example, instead of a historical one.
21:01:08 - r295337
(3 days 8 hours ago)
by gjb
Affects: 
(15 files)
/projects/release-pkg/*
Remove libc, librtld_db, libthr packages, and further increase
the constraints on what needs to be installed in a specific to
maintain consistency during upgrades.

Create a new clibs package containing libraries that are needed
as a bare minimum for consistency.

With much help and input from:  kib
Sponsored by:   The FreeBSD Foundation
20:57:21 - r295336
(3 days 8 hours ago)
by emaste
Affects:  /head/contrib/elftoolchain/readelf/readelf.c
readelf: decode AArch64 TLS descriptor relocations

From ELF for the ARM(R) 64-bit Architecture, table 4-19.

Obtained from:  ELF Tool Chain r3386
Sponsored by:   The FreeBSD Foundation
20:56:11 - r295335
(3 days 8 hours ago)
by emaste
Affects:  /head/contrib/elftoolchain/readelf/readelf.c
readelf: report value of unknown relocation types

Obtained from:  ELF Tool Chain r3387
Sponsored by:   The FreeBSD Foundation
20:54:51 - r295334
(3 days 8 hours ago)
by emaste
Affects:  /head/contrib/elftoolchain/readelf/readelf.c
readelf: avoid accidental fallthrough in RISC-V relocations

This would have printed an unknown RISC-V relocation type as a SPARC
relocation.

CID:            1331398
Obtained from:  ELF Tool Chain r3283
Sponsored by:   The FreeBSD Foundation
20:39:33 - r295333
(3 days 8 hours ago)
by glebius
Affects: 
(2 files)
/user/cperciva/freebsd-update-build/scripts/10.3-BETA1/i386/build.conf
i386 conf for 10.3-BETA1.
20:39:11 - r295332
(3 days 8 hours ago)
by glebius
Affects:  /user/cperciva/freebsd-update-build/scripts/build.subr
We need the world.tgz regardless on what arch the build host runs.
20:38:09 - r295331
(3 days 8 hours ago)
by jhb
Affects:  /head/sys/kern/vfs_aio.c
/head/sys/sys/event.h
/head/sys/sys/socketvar.h
Rename aiocblist to kaiocb and use consistent variable names.

Typically <foo>list is used for a structure that holds a list head in
FreeBSD, not for members of a list.  As such, rename 'struct aiocblist'
to 'struct kaiocb' (the kernel version of 'struct aiocb').

While here, use more consistent variable names for AIO control blocks:

- Use 'job' instead of 'aiocbe', 'cb', 'cbe', or 'iocb' for kernel job
  objects.
- Use 'jobn' instead of 'cbn' for use with TAILQ_FOREACH_SAFE().
- Use 'sjob' and 'sjobn' instead of 'scb' and 'scbn' for fsync jobs.
- Use 'ujob' instead of 'aiocbp', 'job', 'uaiocb', or 'uuaiocb' to hold
  a user pointer to a 'struct aiocb'.
- Use 'ujobp' instead of 'aiocbp' for a user pointer to a 'struct aiocb *'.

Reviewed by:    kib
Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D5125
19:35:53 - r295330
(3 days 9 hours ago)
by markj
Affects:  /head/sys/vm/sg_pager.c
Plug a vm_page leak introduced in r292373.

Reported by:    vangyzen
18:17:37 - r295329
(3 days 11 hours ago)
by mav
Affects:  /head/etc/periodic/daily/800.scrub-zfs
Update script for modern `zpool status` output.
18:13:55 - r295328
(3 days 11 hours ago)
by glebius
Affects:  /user/cperciva/freebsd-update-build/scripts/build.subr
More merges from custom build.subr.
18:10:16 - r295327
(3 days 11 hours ago)
by glebius
Affects:  /user/cperciva/freebsd-update-build/scripts/10.3-BETA1/amd64/build.conf
/user/cperciva/freebsd-update-build/scripts/10.3-BETA1/build.conf
Move the file to proper place.
18:08:55 - r295326
(3 days 11 hours ago)
by glebius
Affects:  /user/cperciva/freebsd-update-build/scripts/build.subr
/user/cperciva/freebsd-update-build/scripts/diff.sh
/user/cperciva/freebsd-update-build/scripts/init.sh
Historically since 8.0-RELEASE many function of build.subr were overridden
by custom build.subr in release dir. For last two major releases this ended
in copying build.subr from previous release.

Try to stop this practice, adjusting global build.subr to modern state and
do not use custom build.subr's.

Switch to sha512.
18:06:53 - r295325
(3 days 11 hours ago)
by glebius
Affects: 
(3 files)
/user/cperciva/freebsd-update-build/scripts/10.3-BETA1/amd64
/user/cperciva/freebsd-update-build/scripts/10.3-BETA1/build.conf
Start 10.3-BETA1.
17:28:11 - r295324
(3 days 11 hours ago)
by mav
Affects:  /head/etc/periodic/daily/800.scrub-zfs
Add error check to not leak logs with syntax errors in case of failed
`zpool history`.

MFC after:      1 month
17:14:37 - r295323
(3 days 12 hours ago)
by erj
Affects: 
(23 files)
/head/sys/dev/e1000/*
Update em(4) to 7.6.1; update igb(4) to 2.5.3.

Major changes:

- Add i219/i219(2) hardware support. (Found on Skylake generation and newer
  chipsets.)
  - Further to the last Skylake support diff, this one also includes support for
    the Lewisburg chipset (i219(3)).

- Add a workaround to an igb hardware errata.
  All 1G server products need to have IPv6 extension header parsing turned off.
  This should be listed in the specification updates for current 1G server
  products, e.g. for i350 it's errata #37 in this document:

http://www.intel.com/content/dam/www/public/us/en/documents/specification-updates/ethernet-controller-i350-spec-update.pdf

- Avoton (i354) PHY errata workaround added

And a bunch of minor fixes, as well as #defines for things that the current
em(4)/igb(4) drivers don't implement.

Differential Revision: https://reviews.freebsd.org/D3162
Reviewed by: sbruno, marius, gnn
Approved by: gnn
MFC after: 2 weeks
Sponsored by: Intel Corporation
16:48:03 - r295322
(3 days 12 hours ago)
by glebius
Affects:  /user/cperciva/freebsd-update-build/patches/10.1-RELEASE/29-SA-16:11.openssl
/user/cperciva/freebsd-update-build/patches/10.2-RELEASE/12-SA-16:11.openssl
/user/cperciva/freebsd-update-build/patches/9.3-RELEASE/36-SA-16:11.openssl
Save patches for SA-16:11.
15:38:28 - r295321
(3 days 13 hours ago)
by andrew
Affects:  /head/sys/arm64/include/kdb.h
Implement kdb_cpu_sync_icache on arm64.

Sponsored by:   ABT Systems Ltd
15:35:33 - r295320
(3 days 13 hours ago)
by smh
Affects: 
(5 files)
/head/sys/boot/efi/boot1/*
/head/sys/boot/efi/include/efidevp.h
Fix EFI multi device boot support

Fix EFI boot support when presented with multiple valid boot partitions
across multiple devices.

It now prefers to boot from partitions that are present on the underlying
device that the boot1 image was loaded from. This means that it will boot
from the partitions on device the user chose from EFI boot menu in
preference to those on other devices.

Also fixed is the recovery from a failed attempt to boot, from a seemingly
valid partition, by continuing to trying all other available partitions
no matter what the error.

boot1 now use * to signify a partition what was accepted from the preferred
device and + otherwise.

Finally some error messages where improved and DPRINTF's with slowed boot
to aid debugging.

ZFS will still be preferred over UFS when both are available on the boot
device.

Reviewed by:    imp
MFC after:      1 week
Sponsored by:   Multiplay
Differential Revision:  https://reviews.freebsd.org/D5108
14:57:41 - r295319
(3 days 14 hours ago)
by mmel
Affects: 
(23 files)
/head/sys/arm/*
/head/sys/contrib/vchiq/interface/vchiq_arm/vchiq_2835_arm.c
ARM: Use new ARMv6 naming conventions for cache and TLB functions
in all but ARMv4 specific files.
Expand ARMv6 compatibility stubs in cpu-v4.h. Use physical address
in L2 cache functions if ARM_L2_PIPT is defined.
14:16:42 - r295318
(3 days 15 hours ago)
by mav
Affects: 
(3 files)
/stable/9/etc/periodic/daily/800.scrub-zfs
MFC r292313 (by lidl): Skip unavailable pools when running zfs pool scrubs
11:28:35 - r295317
(3 days 17 hours ago)
by skra
Affects:  /head/sys/arm/arm/pmap-v6.c
Follow up r295257 and replace bad reference to TEX in defines,
variables and functions. This stuff is named properly now.

Thus, the VM_MEMATTR_xxx is an index to PTE2 attribute table.

Pointy hat to:  skra
10:40:01 - r295316
(3 days 18 hours ago)
by skra
Affects:  /head/sys/arm/arm/pmap-v6.c
Follow up r295257 and convert also pt_memattr. This did not break
anything as both VM_MEMATTR_WB_WA and PTE2_ATTR_WB_WA are zero.
Correct also type of pmap_dcache_wb_pou() last argument.
09:46:24 - r295315
(3 days 19 hours ago)
by mmel
Affects: 
(9 files)
/head/sys/arm/arm/*
/head/sys/arm/include/*
ARM: Introduce new cpu-v4.h header and move all ARMv4 specific code
from cpu-v6.h to it.
Remove unneeded cpu-v6.h includes.
09:28:03 - r295314
(3 days 19 hours ago)
by ngie
Affects:  /user/ngie/stable-10-libnv/sys/boot/ia64/efi/main.c
Fix the compile; the #if 0 code needs some work because
the old code dealt with `dev` as char*, not struct devsw*
08:41:27 - r295313
(3 days 20 hours ago)
by ngie
Affects:  /user/ngie/stable-10-libnv/sys/boot/ia64/efi/Makefile
/user/ngie/stable-10-libnv/sys/boot/ia64/efi/main.c
On second thought, don't bother half-implementing ZFS EFI support
since ia64 is a dead-end platform. Just do the bare minimum to fix
the efi_handle_lookup(..) call
08:34:27 - r295312
(3 days 20 hours ago)
by ngie
Affects:  /user/ngie/stable-10-libnv/sys/boot/ia64/efi/Makefile
Add ../../efs/boot1 to .PATH in order to find zfs_module.c
08:32:17 - r295311
(3 days 20 hours ago)
by ngie
Affects:  /user/ngie/stable-10-libnv/sys/boot/ia64/efi/Makefile
Add more MK_ZFS bits from r294999
08:25:20 - r295310
(3 days 20 hours ago)
by ngie
Affects:  /user/ngie/stable-10-libnv/sys/boot/ia64/efi/main.c
First attempt at unbreaking the ia64 EFI bootloader by
MFstable/10 @ r294999 and slightly tweak the support to add
ZFS support to the EFI bootloader by smh

Requested by: gjb, peter
07:29:11 - r295309
(3 days 21 hours ago)
by sephe
Affects:  /head/sys/dev/hyperv/vmbus/hv_channel.c
/head/sys/dev/hyperv/vmbus/hv_connection.c
/head/sys/dev/hyperv/vmbus/hv_vmbus_priv.h
hyperv: Use malloc for page allocation.

We will eventually convert them to use busdma.

Submitted by:   Jun Su <junsu microsoft com>
Reviewed by:    adrian, sephe, Dexuan Cui <decui microsoft com>
Approved by:    adrian (mentor)
MFC after:      1 week
Sponsored by:   Microsoft OSTC
Differential Revision:  https://reviews.freebsd.org/D5087
07:20:31 - r295308
(3 days 22 hours ago)
by sephe
Affects: 
(5 files)
/head/sys/dev/hyperv/netvsc/*
/head/sys/dev/hyperv/vmbus/*
hyperv: Use WAITOK in the places where we can wait

And convert rndis non-hot path spinlock to mutex.

Submitted by:   Jun Su <junsu microsoft com>
Reviewed by:    adrian, sephe
Approved by:    adrian (mentor)
MFC after:      1 week
Sponsored by:   Microsoft OSTC
Differential Revision:  https://reviews.freebsd.org/D5081
07:09:58 - r295307
(3 days 22 hours ago)
by sephe
Affects: 
(7 files)
/head/sys/dev/hyperv/include/hyperv.h
/head/sys/dev/hyperv/utilities/*
/head/sys/dev/hyperv/vmbus/*
hyperv: Use standard taskqueue instead of hv_work_queue

HyperV code was ported from Linux.  There is an implementation of
work queue called hv_work_queue.  In FreeBSD, taskqueue could be
used for the same purpose.  Convert all the consumer of hv_work_queue
to use taskqueue, and remove work queue implementation.

Submitted by:   Jun Su <junsu microsoft com>
Reviewed by:    adrian, Hongjiang Zhang <honzhan microsoft com>
Approved by:    adrian (mentor)
MFC after:      1 week
Sponsored by:   Microsoft OSTC
Differential Revision:  https://reviews.freebsd.org/D4963
05:50:53 - r295306
(3 days 23 hours ago)
by sephe
Affects:  /head/sys/dev/hyperv/netvsc/hv_net_vsc.h
/head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
hyperv/hn: Add an option to always do transmission scheduling

It is off by default. This eases more experiment on hn(4).

Reviewed by:    adrian, Hongjiang Zhang <honzhan microsoft com>
Approved by:    adrian (mentor)
MFC after:      1 week
Sponsored by:   Microsoft OSTC
Differential Revision:  https://reviews.freebsd.org/D5175
05:44:31 - r295305
(3 days 23 hours ago)
by sephe
Affects:  /head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
hyperv/hn: Move LRO flush to the channel processing rollup

This significantly increases LRO aggregation ratio when there are
large amount of connections (improves reception performance a lot).

Reviewed by:    adrian
Approved by:    adrian (mentor)
MFC after:      1 week
Sponsored by:   Microsoft OSTC
Differential Revision:  https://reviews.freebsd.org/D5167
05:38:01 - r295304
(3 days 23 hours ago)
by sephe
Affects:  /head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
hyperv/hn: Increase LRO entry count to 128 by default

hn(4) only has one RX ring currently, so default 8 LRO entries
are too small.

Reviewed by:    adrian
Approved by:    adrian (mentor)
MFC after:      1 week
Sponsored by:   Microsoft OSTC
Differential Revision:  https://reviews.freebsd.org/D5166
05:31:31 - r295303
(3 days 23 hours ago)
by sephe
Affects:  /head/sys/dev/hyperv/netvsc/hv_net_vsc.c
hyperv/hn: Recover half of the chimney sending space

We lost half of the chimney sending space, because we mis-used
ffs() on a 64 bits mask, where ffsl() should be used.

While I'm here:
- Use system atomic operation instead.
- Stringent chimney sending index assertion.

Reviewed by:    adrian
Approved by:    adrian (mentor)
MFC after:      1 week
Sponsored by:   Microsoft OSTC
Differential Revision:  https://reviews.freebsd.org/D5159
05:25:11 - r295302
(3 days 23 hours ago)
by sephe
Affects:  /head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
hyperv/hn: Factor out hn_encap() from hn_start_locked()

It will be shared w/ upcoming ifnet.if_transmit implementaion.

No functional changes.

Reviewed by:    adrian
Approved by:    adrian (mentor)
MFC after:      1 week
Sponsored by:   Microsoft OSTC
Differential Revision:  https://reviews.freebsd.org/D5158
05:17:48 - r295301
(4 days ago)
by sephe
Affects:  /head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
hyperv/hn: Obey IFCAP_RXCSUM configure

Reviewed by:    adrian
Approved by:    adrian (mentor)
MFC after:      1 week
Sponsored by:   Microsoft OSTC
Differential Revision:  https://reviews.freebsd.org/D5104
05:12:30 - r295300
(4 days ago)
by sephe
Affects:  /head/sys/dev/hyperv/netvsc/hv_net_vsc.h
/head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
hyperv/hn: Add sysctls to trust host side UDP and IP csum verification

Reviewed by:    adrian, Hongjiang Zhang <honzhan microsoft com>
Approved by:    adrian (mentor)
MFC after:      1 week
Sponsored by:   Microsoft OSTC
Differential Revision:  https://reviews.freebsd.org/D5103
05:06:14 - r295299
(4 days ago)
by sephe
Affects:  /head/sys/dev/hyperv/netvsc/hv_net_vsc.h
/head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
hyperv/hn: Enable UDP RXCSUM

Reviewed by:    adrian
Approved by:    adrian (mentor)
MFC after:      1 week
Sponsored by:   Microsoft OSTC
Differential Revision:  https://reviews.freebsd.org/D5102
05:01:02 - r295298
(4 days ago)
by sephe
Affects:  /head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
hyperv/hn: Enable IP header checksum offloading

So that:
- TCP/IP stack will not do unnecessary IP header checksum for TSO
  packets.
- Reduce guest load for non-TSO IP packets.

Reviewed by:    adrian
Approved by:    adrian (mentor)
MFC after:      1 week
Sponsored by:   Microsoft OSTC
Differential Revision:  https://reviews.freebsd.org/D5099
04:10:04 - r295297
(4 days 1 hour ago)
by sephe
Affects:  /head/sys/dev/hyperv/netvsc/hv_net_vsc.h
/head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
hyperv/hn: Reorganize TX csum offloading

- For non-TSO offloading, we don't need to access mbuf to know
  which csum offloading is requested, we can just use the
  CSUM_{IP,TCP,UDP} in the csum_flags.
- For TSO offloading, we still can depend on CSUM_{TSO4,TSO6}
  in the csum_flags to tell whether the TSO packet is an IPv4
  TSO packet or an IPv6 TSO packet.

This streamlines csum offloading handling (remove the two goto)
and allows us the nuke the unnecessary get_transport_proto_type().

Reviewed by:    adrian, Hongjiang Zhang <honzhan microsoft com>
Approved by:    adrian (mentor)
MFC after:      1 week
Sponsored by:   Microsoft OSTC
Differential Revision:  https://reviews.freebsd.org/D5098
04:03:50 - r295296
(4 days 1 hour ago)
by sephe
Affects:  /head/sys/dev/hyperv/netvsc/hv_net_vsc.h
/head/sys/dev/hyperv/netvsc/hv_netvsc_drv_freebsd.c
hyperv/hn: Avoid duplicate csum features settings

- Record csum features in softc, so we don't need to duplicate the
  logic from attach path to ioctl path.
- Protect if_capenable and if_hwassist changes by main lock.
- Prefer turn on/off bits in if_hwassist explicitly instead of using
  XOR.

Reviewed by:    adrian, Hongjiang Zhang <honzhan microsoft com>
Approved by:    adrian (mentor)
MFC after:      1 week
Sponsored by:   Microsoft OSTC
Differential Revision:  https://reviews.freebsd.org/D5085
03:46:53 - r295295
(4 days 1 hour ago)
by sephe
Affects:  /head/sys/dev/hyperv/storvsc/hv_storvsc_drv_freebsd.c
hyperv/stor: Fix the NULL pointer dereference

Reported by:    Netapp
Submitted by:   Hongjiang Zhang <honzhan microsoft com>
Reviewed by:    adrian, sephe, Dexuan Cui <decui microsoft com>
Approved by:    adrian (mentor)
MFC after:      1 week
Sponsored by:   Microsoft OSTC
Differential Revision:  https://reviews.freebsd.org/D5097
03:20:27 - r295294
(4 days 2 hours ago)
by gjb
Affects:  /projects/release-pkg/libexec/atrun/Makefile
/projects/release-pkg/libexec/rlogind/Makefile
/projects/release-pkg/libexec/rshd/Makefile
Add missing files to 'at' and 'rcmds' packages.

Sponsored by:   The FreeBSD Foundation
02:51:45 - r295293
(4 days 2 hours ago)
by gjb
Affects: 
(6 files)
/projects/release-pkg/libexec/casper/*
Capture a few stragglers that should be in the casper package.

Sponsored by:   The FreeBSD Foundation
02:29:41 - r295292
(4 days 2 hours ago)
by gjb
Affects:  /projects/release-pkg/libexec/rtld-elf/Makefile
Include ld-elf.so and ld-elf32.so in the librtld_db
package.

Sponsored by:   The FreeBSD Foundation
01:03:38 - r295291
(4 days 4 hours ago)
by gjb
Affects:  /projects/release-pkg/lib/libalias/libalias/Makefile
/projects/release-pkg/lib/libpam/libpam/Makefile
Update libalias and libpam packaged files.

Sponsored by:   The FreeBSD Foundation
00:43:42 - r295290
(4 days 4 hours ago)
by gjb
Affects:  /projects/release-pkg/Makefile.inc1
Silence a few command lines.

Sponsored by:   The FreeBSD Foundation
00:14:24 - r295289
(4 days 5 hours ago)
by marius
Affects:  /stable/10/sys/conf/newvers.sh
Update stable/10 to BETA1 in preparation for 10.3-BETA1 builds, take 2.

Approved by:    re (implicit)
00:12:13 - r295288
(4 days 5 hours ago)
by marius
Affects:  /stable/10/sys/conf/newvers.sh
Update stable/10 to BETA1 in preparation for 10.3-BETA1 builds.

Approved by:    re (implicit)
2016 - 02 - 04   (5 days ago)
23:56:01 - r295287
(4 days 5 hours ago)
by marius
Affects: 
(2 files)
/stable/10/sys/dev/e1000/if_em.c
MFC: r295133

As it turns out, one of the more or less recent changes to em(4)
causes watchdog timeouts when using TSO4 at link speeds below
Gigabit, at least with 82573E. So disable the assist automatically
when at lower speeds.

Submitted by:   jfv
Approved by:    re (kib), erj
Obtained from:  D3162
23:38:55 - r295286
(4 days 5 hours ago)
by scottl
Affects:  /head/sys/dev/mps/mps.c
/head/sys/dev/mps/mps_mapping.c
/head/sys/dev/mps/mpsvar.h
Add sysctls for dumping out the device mapping tables.  I'm finding this
useful for debugging device-target translation bugs.

MFC after:      3 days
Sponsored by:   Netflix
22:53:12 - r295285
(4 days 6 hours ago)
by gnn
Affects: 
(11 files)
/stable/10/share/man/man4/inet.4
/stable/10/sys/net/*
/stable/10/sys/netinet/*
MFC: r290383,295282,295283

Replace the fastforward path with tryforward which does not require a
sysctl and will always be on. The former split between default and
fast forwarding is removed by this commit while preserving the ability
to use all network stack features.

Differential Revision:  https://reviews.freebsd.org/D4042
Reviewed by:    ae, melifaro, olivier, rwatson
Approved by:    re (glebius)
Sponsored by:   Rubicon Communications (Netgate)
22:39:27 - r295284
(4 days 6 hours ago)
by adrian
Affects:  /head/sys/conf/options
/head/sys/dev/cfi/cfi_core.c
Provide a workaround for setting the correct endianness when doing CFI on
a mips big-endian board.

This is (hopefully! ish!) a temporary change until a slightly better way
can be found to express this without a config option.

Tested:

* BUFFALO WZR-HP-G300NH 1stGen (by submitter)

Submitted by:   Mori Hiroki <yamori813@yahoo.co.jp>
21:46:37 - r295283
(4 days 7 hours ago)
by gnn
Affects:  /head/share/man/man4/inet.4
Summary: Update the date
21:39:58 - r295282
(4 days 7 hours ago)
by gnn
Affects:  /head/share/man/man4/inet.4
Summary: Remove discussion of fastforwarding.
21:27:03 - r295281
(4 days 7 hours ago)
by gjb
Affects: 
(4 files)
/projects/release-pkg/release/packages/*
Mark shlibs_required/shlibs_provided lines as temporary, following
brief discussion with bapt.

Sponsored by:   The FreeBSD Foundation
21:20:26 - r295280
(4 days 8 hours ago)
by gjb
Affects: 
(5 files)
/projects/release-pkg/release/packages/*
Add package files for libc, libedit, librtld_db, and libthr.

libedit is needed for sh(1), which if updated before runtime,
can cause undesirable behavior.

For the rest, the installation order needs to be:

 1) librtld
 2) libc
 3) libthr

The dependency listing and shilbs_required entries ensure this
behavior.

Sponsored by:   The FreeBSD Foundation
21:17:15 - r295279
(4 days 8 hours ago)
by gjb
Affects:  /projects/release-pkg/etc/rc.d/Makefile
/projects/release-pkg/sbin/casperd/Makefile
Create a 'casper' package.

Sponsored by:   The FreeBSD Foundation
21:16:35 - r295278
(4 days 8 hours ago)
by gjb
Affects: 
(98 files)
/projects/release-pkg/lib/*
First pass through library packaging.

Sponsored by:   The FreeBSD Foundation
20:55:49 - r295277
(4 days 8 hours ago)
by kib
Affects:  /head/sys/kern/imgact_elf.c
When matching brand to the ELF binary by notes, try to find a brand
with interpreter name exactly matching one wanted by the binary.  If
no such brand exists, return first brand which accepted the binary by
note.

The change fixes a regression after r292749, where e.g. our two ia32
compat brands, ia32_brand_info and ia32_brand_oinfo, only differ by
the interpeter path and binary matches to a brand by linkage order.
Then old binaries which require /usr/libexec/ld-elf.so.1 but matched
against ia32_brand_info with interp_path /libexec/ld-elf.so.1, were
considered requiring non-standard interpreter name, and magic to force
ld-elf32.so.1 did not happen.

Note that it might make sense to apply the same selection of brands
for other matching criteria, SCO EI_OSABI and 3.x string.

Reported and tested by: dwmalone
Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
19:53:54 - r295276
(4 days 9 hours ago)
by rpokala
Affects:  /head/sys/cam/ata/ata_all.c
/head/sys/dev/ata/ata-all.c
/head/sys/sys/ata.h
Add defines for WRITE_UNCORRECTABLE ATA command, and improve command logging

Add #defines for ATA_WRITE_UNCORRECTABLE48 and its features. Update the
decoding in ATACAM to recognize the new values. Also improve command
decoding for a few other commands (SMART, NOP, SET_FEATURES). Bring the
decoding in ata(4) up to parity with ATACAM.

Reviewed by:    mav, imp
MFC after:      1 month
Sponsored by:   Panasas, Inc.
Differential Revision:  https://reviews.freebsd.org/D5181
19:30:24 - r295275
(4 days 9 hours ago)
by pho
Affects:  /user/pho/stress2/misc/all.sh
Updated the exclude list.
Move the check for the non-root test user up before using it.
Noticed by bob prohaska <fbsd@www.zefox.net>
Fix access check to $RUNDIR.

Sponsored by:   EMC / Isilon Storage Division
18:12:42 - r295274
(4 days 11 hours ago)
by ngie
Affects:  /user/ngie/bsnmp_cleanup/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c
Use strdup instead of asprintf; asprintf is pretty heavyweight for
copying just a buffer

Reminded by: bde's email
18:08:50 - r295273
(4 days 11 hours ago)
by tuexen
Affects:  /head/sys/dev/ixgbe/if_ix.c
In FreeBSD 10 and higher the driver announces SCTP checksum offloading support
also for 82598, which doesn't support it.
The legacy code has a check for it, which was missed when the code for dealing
with
CSUM_IP6_* was added. Add the same check for FreeBSD 10 and higher.

Differential Revision:  https://reviews.freebsd.org/D5192
18:03:06 - r295272
(4 days 11 hours ago)
by jgh
Affects:  /head/lib/libc/sys/connect.2
- connect(2) Clarify namelen

PR:             206838
Submitted by:   t@tobik.me
Approved by:    bcr (mentor)
MFH:            after 1 week
Differential Revision:  https://reviews.freebsd.org/D5194
17:43:56 - r295271
(4 days 11 hours ago)
by jhb
Affects:  /head/sys/powerpc/fpu/fpu_emu.c
/head/sys/powerpc/fpu/fpu_explode.c
Fix build of powerpc FPU emulator after changes in r295132 to restore the
ABI of struct fpreg.  The FPU emulator operates on the "raw" FPU state
stored in the pcb rather than the "cooked" fpreg state used for ptrace()
and cores.

Reported by:    bz
17:22:15 - r295270
(4 days 12 hours ago)
by andrew
Affects:  /head/sys/arm64/arm64/locore.S
Enable checking of the stack alignment. The stack should be aligned to a
16-byte value. With this the hardware will check if a memory access uses
an incorrectly aligned stack pointer as the base address.

Sponsored by:   ABT Systems Ltd
17:09:43 - r295269
(4 days 12 hours ago)
by dteske
Affects:  /head/etc/rc.d/jail
Fix grammar in error statement

s/consider to migrate to jail.conf/consider migrating to jail.conf/
17:03:12 - r295268
(4 days 12 hours ago)
by gjb
Affects:  /projects/release-pkg/lib/Makefile
Remove duplicate line, likely result of a mismerge.

Sponsored by:   The FreeBSD Foundation
17:01:38 - r295267
(4 days 12 hours ago)
by mmel
Affects: 
(6 files)
/head/sys/arm/arm/*
Replace broken implementation of fuswintr() and suswintr() by functions
which return -1 as well as on tier 1 archs. Remove block_userspace_access
used only in these implementations.

(1) These functions may be called in interrupt context and pcb_onfault
can be already set in this time. Thus, prior pcb_onfault must be saved
and restored afterwards.

(2) The check that an abort came either from nested interrupt or while
in critical section or holding not sleepable lock must be avoided for
this case.

These functions are called only for profiling reason, so there will be
only small gain by making the code more complex.
16:38:24 - r295266
(4 days 12 hours ago)
by gjb
Affects:  /projects/release-pkg/release/packages/Makefile.package
Fix typo: s/Conrol/Control/

Submitted by:   kib
Sponsored by:   The FreeBSD Foundation
16:32:21 - r295265
(4 days 12 hours ago)
by kib
Affects:  /head/sys/kern/vfs_mount.c
Do not copy by field when converting struct oexport_args to struct
export_args on mount update, bzero() is consistent with
vfs_oexport_conv().
Make the code structure more explicit by using switch.
Return EINVAL if export option layout (deduced from size) is unknown.

Based on the submission by:     bde
Sponsored by:   The FreeBSD Foundation
15:46:12 - r295264
(4 days 13 hours ago)
by allanjude
Affects: 
(2 files)
/stable/10/usr.sbin/bsdinstall/scripts/zfsboot
MFC: r295074
  The zfsboot (zfs auto mode) part of bsdinstall now supports UEFI

Approved by:    re (marius)
Relnotes:       yes
Sponsored by:   ScaleEngine Inc.
15:41:00 - r295263
(4 days 13 hours ago)
by gjb
Affects: 
(32 files)
/projects/release-pkg/release/packages/*
Add FreeBSD RCSID header and svn:keyword property.

Sponsored by:   The FreeBSD Foundation
15:32:03 - r295262
(4 days 13 hours ago)
by gjb
Affects: 
(84 files)
/projects/release-pkg/Makefile.inc1
/projects/release-pkg/release/packages/*
Rework the way <packagename>.ucl files are generated.
One of the major pain points with how this was implemented
is the requirement of in-tree, hard-coded <name>.ucl, as
well as <name>-<suffix>.ucl where <suffix> can be lib32,
profile, development, debug, or any combination of the four.

This created significant overhead when adding new packages
and any of the files in any of the combinations were missing.

Instead of test(1)-ing if the <packagename>.ucl file exists,
hand off to a script to figure out what the final ucl file
name should be before invoking pkg(8).

The default behavior is 'template.ucl' is used as a fallback.

This affects only the userland packages, as the kernel code
is already smart enough to handle these variations.

Sponsored by:   The FreeBSD Foundation
15:21:01 - r295261
(4 days 14 hours ago)
by trasz
Affects:  /head/bin/dd/args.c
/head/bin/dd/dd.1
Add 't' and 'p' postfixes to dd(1).

MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
15:10:08 - r295260
(4 days 14 hours ago)
by trasz
Affects:  /head/bin/dd/args.c
Reduce code duplication.

MFC after:      1 month
Sponsored by:   The FreeBSD Foundation
14:32:48 - r295259
(4 days 14 hours ago)
by mmel
Affects:  /head/sys/arm/arm/cpufunc.c
ARM: For ARMv6/v7, code in locore.S initializes SCTLR and ACTRL registers.
Don't duplicate this initialization in cpu_setup().
14:30:46 - r295258
(4 days 14 hours ago)
by br
Affects:  /head/sys/riscv/include/asm.h
/head/sys/riscv/riscv/exception.S
/head/sys/riscv/riscv/swtch.S
Access pcpup using gp register.
14:15:24 - r295257
(4 days 15 hours ago)
by skra
Affects:  /head/sys/arm/arm/pmap-v6.c
/head/sys/arm/include/pmap-v6.h
/head/sys/arm/include/vm.h
Make VM_MEMATTR_xxx definitions independent on pmap internals
for __ARM_ARCH >= 6.

It's TEX class number now, so it still has some meaning.
14:02:42 - r295256
(4 days 15 hours ago)
by mmel
Affects:  /head/sys/arm/arm/locore-v6.S
ARM: Set UNAL_ENABLE bit in SCTLR CP15 register. This bit is RAO/SBOP
for ARMv7. For ARMv6, it controls ARMv5 compatible alignment support.
This bit have no effect until unaligned access is enabled.
13:35:40 - r295255
(4 days 15 hours ago)
by skra
Affects:  /head/sys/arm/arm/trap-v6.c
Small rearrangement of abort_handler().

(1) Move cnt.v_trap increment to the beginning. There is cnt.v_vm_faults
counter in vm_fault(), so a number of hardware emulation aborts may be
get roughly as difference.
(2) Move kdb_reenter() up to not be ignored if pmap_fault() has failed.
(3) Update comments.
13:32:29 - r295254
(4 days 15 hours ago)
by mmel
Affects:  /head/sys/arm/arm/debug_monitor.c
ARM: RPI-B kernel was broken by r294740. Make it functional again.
12:49:28 - r295253
(4 days 16 hours ago)
by br
Affects: 
(6 files)
/head/sys/riscv/include/pcpu.h
/head/sys/riscv/riscv/*
Reuse gp register for pcpu pointer.

gp (global pointer) is used by compiler in userland only,
so re-use it for pcpup in kernel, save it on stack on switching
out to userland and load back on return to kernel.

Discussed with: jhb, andrew, kib
Sponsored by:   DARPA, AFRL
Sponsored by:   HEIF5
Differential Revision:  https://reviews.freebsd.org/D5178
12:11:18 - r295252
(4 days 17 hours ago)
by mmel
Affects:  /head/sys/arm/arm/cpufunc.c
/head/sys/arm/arm/identcpu.c
/head/sys/arm/include/cpufunc.h
ARM: Don't use ugly (and hidden) global variable, control register is
readable at any time.
12:06:06 - r295251
(4 days 17 hours ago)
by br
Affects:  /head/sys/arm/arm/vm_machdep.c
/head/sys/sparc64/sparc64/vm_machdep.c
Fix build.
11:52:53 - r295250
(4 days 17 hours ago)
by br
Affects:  /head/sys/arm64/arm64/vm_machdep.c
/head/sys/mips/mips/vm_machdep.c
/head/sys/riscv/riscv/vm_machdep.c
Fix build.
10:49:34 - r295249
(4 days 18 hours ago)
by kib
Affects:  /head/sys/kern/kern_fork.c
Guard against runnable td2 exiting and than being reused for unrelated
process when the parent sleeps waiting for the debugger attach on
fork.

Diagnosed and reviewed by:      mjg
Sponsored by:   The FreeBSD Foundation
09:39:08 - r295248
(4 days 19 hours ago)
by ngie
Affects: 
(813 files)
/user/ngie/stable-10-libnv/*
MFstable/10 @ r295247
09:08:36 - r295247
(4 days 20 hours ago)
by ngie
Affects:  /user/ngie/bsnmp_cleanup/contrib/bsnmp/lib/snmpclient.c
Use mkstemp(3) instead of mktemp(3) when creating temporary files to fix
the security pragma
09:07:44 - r295246
(4 days 20 hours ago)
by ngie
Affects:  /user/ngie/bsnmp_cleanup/lib/libbsnmp/Makefile.inc
Remove NO_WERROR
09:00:00 - r295245
(4 days 20 hours ago)
by ngie
Affects:  /user/ngie/bsnmp_cleanup/contrib/bsnmp/snmpd/config.c
Explicitly use %jx and %ju instead of QUADXFMT and QUADFMT obfuscation

This mutes a -Wformat error about using the wrong format qualifier
08:54:59 - r295244
(4 days 20 hours ago)
by ngie
Affects:  /user/ngie/bsnmp_cleanup/usr.sbin/bsnmpd/tools/bsnmptools/bsnmpget.c
Cast `rc` to uint32_t to mute a -Wsign-compare warning
08:52:49 - r295243
(4 days 20 hours ago)
by ngie
Affects:  /user/ngie/bsnmp_cleanup/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
- Delete `ptr` to fix -Wunused-but-set warnings
- Fix `parse_ntp_ts` to use saved_errno properly to also mute -Wunused-but-set
  warnings.
- Delete a few errant errno = 0 calls after calling strlcpy to let the error
  cases fail as designed if the strings passed in weren't base 10 numbers.
- Make style a bit consistent with all blocks where `errno` is saved to
  `saved_errno`.

Reported by: gcc 4.9.4
08:42:33 - r295242
(4 days 20 hours ago)
by ngie
Affects:  /user/ngie/bsnmp_cleanup/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
- Fix some broken logic committed in r295191. I should have used MIN, not MAX,
  when capping the buffer length with strlcpy in snmp_oid2asn_oid(..) [*].
- Make `i` in to size_t to get the types of i and sizeof in sync and fix a
  -Wsign-compare warning.

Reported by: bde [*]
08:38:13 - r295241
(4 days 20 hours ago)
by ngie
Affects:  /user/ngie/bsnmp_cleanup/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
- Mark parameters to snmp_inetaddr2oct(..) and parse_inetaddr(..) unused to fix
  a -Wunused warning as these are stub functions.
- Staticize snmp_text_conv to fix a -Wmissing-variable-declarations warning
08:32:05 - r295240
(4 days 20 hours ago)
by ngie
Affects:  /user/ngie/bsnmp_cleanup/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c
- Use calloc instead of malloc + memset
- Fix really busted logic proposed in r295191. Use asprintf instead of malloc,
  then strlcpy to circumvent the warning correctly by automatically creating
  the right sized buffer. The proposed change I committed was broken from the
  get-go because it was running strlen on an improperly initialized buffer, so
  it would have always segfaulted [*]

Reported by: bde [*]
08:27:37 - r295239
(4 days 20 hours ago)
by ngie
Affects:  /user/ngie/bsnmp_cleanup/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c
/user/ngie/bsnmp_cleanup/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.h
Declare _bsnmptools_debug as extern in bsnmptools.h instead of bsnmpmap.c to
fix a -Wmissing-variable-declarations warning

Reported by: clang 3.7.2, gcc 4.9.4
08:17:35 - r295238
(4 days 21 hours ago)
by ngie
Affects:  /user/ngie/bsnmp_cleanup/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
- Mark `snmptoolctx` __unused in
parse_{authentication,context,privacy,user_security}(..) to fix -Wunused
- Cast `count` to size_t to fix a -Wsign-compare warning as `count` is
  signed by definition

Reported by: clang 3.7.2, gcc 4.9.4
08:15:17 - r295237
(4 days 21 hours ago)
by ngie
Affects:  /user/ngie/bsnmp_cleanup/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
Convert `enum tok tok` to `int32_t tok` in many places to account
for the fact that sometimes characters not in enum tok ['(', ')', etc]
are tested for in switch statements, and that the function get_token
actually returns int32_t, not enum tok, thus limiting the return type
incorrectly

Reported by: clang 3.7.2, gcc 4.9.4
08:11:44 - r295236
(4 days 21 hours ago)
by ngie
Affects:  /user/ngie/bsnmp_cleanup/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
Staticize several variables used locally in order to fix
-Wmissing-variable-declarations issues
06:39:20 - r295235
(4 days 22 hours ago)
by mmel
Affects:  /head/sys/arm/arm/genassym.c
ARM: Remove unused symbols from genassym.c.
05:03:35 - r295234
(5 days ago)
by ume
Affects:  /head/share/i18n/esdb/MISC/MISC.alias
Make sure to enable aliases for SHIFT_JIS.

MFC after:      3 days
04:25:30 - r295233
(5 days ago)
by mjg
Affects: 
(4 files)
/head/sys/compat/cloudabi/cloudabi_proc.c
/head/sys/kern/*
/head/sys/sys/proc.h
fork: plug a use after free of the returned process

fork1 required its callers to pass a pointer to struct proc * which would
be set to the new process (if any). procdesc and racct manipulation also
used said pointer.

However, the process could have exited prior to do_fork return and be
automatically reaped, thus making this a use-after-free.

Fix the problem by letting callers indicate whether they want the pid or
the struct proc, return the process in stopped state for the latter case.

Reviewed by:    kib
04:22:18 - r295232
(5 days 1 hour ago)
by mjg
Affects: 
(6 files)
/head/sys/compat/*
/head/sys/kern/*
/head/sys/sys/proc.h
fork: pass arguments to fork1 in a dedicated structure

Suggested by:   kib
03:55:41 - r295231
(5 days 1 hour ago)
by glebius
Affects: 
(4 files)
/head/sys/*
Fix build.
01:08:51 - r295230
(5 days 4 hours ago)
by bdrewery
Affects:  /head/share/mk/bsd.incs.mk
/head/share/mk/bsd.links.mk
Fix style and remove excess / for installing SYMLINKS.

Sponsored by:   EMC / Isilon Storage Division
01:08:48 - r295229
(5 days 4 hours ago)
by bdrewery
Affects:  /head/share/mk/bsd.man.mk
MLINKS: Deduplicate some of the logic, simplify, and unhide install commands.

Sponsored by:   EMC / Isilon Storage Division
01:08:45 - r295228
(5 days 4 hours ago)
by bdrewery
Affects:  /head/share/mk/bsd.man.mk
Fix cat files being installed to wrong place since r284685.

Sponsored by:   EMC / Isilon Storage Division
01:08:42 - r295227
(5 days 4 hours ago)
by bdrewery
Affects:  /head/share/mk/bsd.incs.mk
/head/share/mk/bsd.links.mk
Stop hiding link install commands.

This is no longer needed now that a .for loop is used rather
than inline shell script.

Sponsored by:   EMC / Isilon Storage Division
00:23:21 - r295226
(5 days 5 hours ago)
by glebius
Affects:  /head/lib/libmemstat/memstat_uma.c
Fix build.
2016 - 02 - 03   (6 days ago)
23:41:58 - r295225
(5 days 5 hours ago)
by gjb
Affects: 
(80 files)
/projects/release-pkg/release/packages/*
Initial commit to add dependencies.

Sponsored by:   The FreeBSD Foundation
23:37:24 - r295224
(5 days 5 hours ago)
by bdrewery
Affects:  /head/bin/csh/Makefile
Don't link /usr/share/nls/de_DE.UTF-8/tcsh.cat to itself.

Sponsored by:   EMC / Isilon Storage Division
23:37:14 - r295223
(5 days 5 hours ago)
by bdrewery
Affects:  /head/share/mk/bsd.nls.mk
Don't let NLSLINKS contain itself.

Sponsored by:   EMC / Isilon Storage Division
23:30:17 - r295222
(5 days 5 hours ago)
by glebius
Affects: 
(9 files)
/head/sys/amd64/amd64/uma_machdep.c
/head/sys/kern/*
/head/sys/vm/*
Redo r292484. Embed task(9) into zone, so that uz_maxaction is called
in a context that can sleep, allowing consumers of the KPI to run their
drain routines without any extra measures.

Discussed with: jtl
22:02:36 - r295221
(5 days 7 hours ago)
by glebius
Affects: 
(4 files)
/head/sys/kern/kern_mbuf.c
/head/sys/vm/*
Move uma_dbg_alloc() and uma_dbg_free() into uma_core.c, which allows
to make uma_dbg.h not depend on uma_int.h, which allows to uninclude
uma_int.h from the mbuf(9) allocator.
21:56:51 - r295220
(5 days 7 hours ago)
by bz
Affects:  /projects/vnet/sys/net/route.c
/projects/vnet/sys/netinet/in_rmx.c
/projects/vnet/sys/netinet6/in6_rmx.c
Code duplication but rib_head is special.  Not found an easy way to go
back and harmize the use cases among RIB, IPFW, PF yet but it's also not
the scope of this work.   Prevents instant panics on teardown and frees
the FIB bits again.

Sponsored by:   The FreeBSD Foundation
20:55:08 - r295219
(5 days 8 hours ago)
by gjb
Affects:  /projects/release-pkg/lib/libc/tests/tls/dso/Makefile
/projects/release-pkg/tests/sys/geom/class/uzip/Makefile
Final pass through to fix 'tests' packaging.

Sponsored by:   The FreeBSD Foundation
20:39:52 - r295218
(5 days 8 hours ago)
by glebius
Affects:  /head/sys/dev/cxgb/cxgb_sge.c
Fix inverse logic. If this is zone_pack, then we shouldn't free the
cluster ourselves.

Found by review. Since this code is !386 and !amd64 and is executed
on error path, pretty sure no one ever executed it.
20:24:21 - r295217
(5 days 9 hours ago)
by bdrewery
Affects:  /head/Makefile.inc1
Deduplicate distrib-dirs logic from r289086 in distribution.

This does it correctly this time, rather than the incorrect version in
r295167.

Sponsored by:   EMC / Isilon Storage Division
19:08:45 - r295216
(5 days 10 hours ago)
by gjb
Affects: 
(42 files)
/projects/release-pkg/*
More 'tests' packaging fixes.

Sponsored by:   The FreeBSD Foundation
18:06:58 - r295215
(5 days 11 hours ago)
by gjb
Affects: 
(7 files)
/projects/release-pkg/bin/sh/tests/*
Fix build.

Sponsored by:   The FreeBSD Foundation
17:00:19 - r295214
(5 days 12 hours ago)
by andrew
Affects:  /head/sys/arm64/arm64/trap.c
Handle a misaligned stack pointer exception from userspace. The exception
still needs to be enabled, but this will help with testing.

Sponsored by:   ABT Systems Ltd
16:44:06 - r295213
(5 days 12 hours ago)
by mmel
Affects: 
(7 files)
/head/sys/arm/*
ARM: Consistently use cpu_setttb() instead of setttb().
Remove unused #define for drain_writebuf.
15:45:13 - r295212
(5 days 13 hours ago)
by jceel
Affects: 
(5 files)
/head/usr.sbin/ctld/*
Add an additional, libucl-based configuration file parser to ctld.

Default ctld behavior remains unchanged - libucl parser can be selected
explicitly by adding -u switch to ctld command line.

Reviewed by:    trasz
Approved by:    trasz (mentor)
MFC after:      1 month
Relnotes:       yes
Sponsored by:   iXsystems, Inc.
Differential Revision:  https://reviews.freebsd.org/D4534
15:16:20 - r295211
(5 days 14 hours ago)
by kib
Affects: 
(2 files)
/stable/10/sys/dev/pty/pty.c
MFC r293825:
Switch legacy pty clone handler to use make_dev_s(9).

MFC r294594:
Remove printf only useful for debugging.

Approved by:    re (marius)
14:34:25 - r295210
(5 days 14 hours ago)
by andrew
Affects:  /head/sys/boot/efi/libefi/efinet.c
Still open the network interface when EFI_OPEN_PROTOCOL_EXCLUSIVE failed.
Not all UEFI implementations support this protocol.
14:31:23 - r295209
(5 days 14 hours ago)
by pfg
Affects:  /head/sys/fs/ext2fs/ext2_inode_cnv.c
Revert r294695:
ext2fs: passthrough any extra timestamps to the dinode struct.

While it passed the classic testing, the change appears to have
caused some regression and still requires some more precautions.

PR:             206820
MFC after:      3 days
14:04:07 - r295208
(5 days 15 hours ago)
by tuexen
Affects: 
(6 files)
/stable/10/sys/netinet/*
MFC r294995:
Always look in the TCP pool.
This fixes issues with a restarting peer when the listening
1-to-1 style socket is closed.

MFC r295021:
Remove debug output which was committed by accident.
Thanks to Oliver Pinter for reporting.

MFC r295069:
Ignore peer addresses in a consistent way also when checking for
new addresses during restart. If this is not done, restart doesn't
work when the local socket is IPv4 only and the peer uses
IPv4 and IPv6 addresses.

MFC r295070:
Don't change the remote UDP encapsulation port for SCTP packets
containing an INIT chunk.

MFC r295072:
Don't allow a remote encapsulation port change during the
SCTP restart procedure.

MFC r295075:
Update the path mtu when turning on/off UDP encapsulation for SCTP.

MFC r295077:
Add missing parentheses. This was reported by ccaughie via GitHub
for the userland stack.

Approved by: re (kib)
13:47:50 - r295207
(5 days 15 hours ago)
by mmel
Affects: 
(9 files)
/head/sys/arm/arm/*
/head/sys/arm/include/cpufunc.h
ARM: Replace only once used cpu_icache_sync_all() by ranged equivalent.
Remove it from cpu_functions table.
12:11:07 - r295206
(5 days 17 hours ago)
by skra
Affects:  /head/sys/arm/arm/devmap.c
/head/sys/arm/include/pmap-v6.h
Partly revert r295168 and define PTE_DEVICE in pmap-v6.h header again.
It turned out that devmap.c is not only file in which PTE_DEVICE
is used and simultaneously, built for both armv4 and armv6 platforms.

When I tried to build all arm kernels before r295168 commit, it was
hid by some other local changes in my tree. I hope that this is just
temporary workaround before VM_MEMATTR_DEVICE could be used instead of
PTE_DEVICE outside of pmap code for __ARM_ARCH < 6.
11:49:51 - r295205
(5 days 17 hours ago)
by bz
Affects: 
(1363 files)
/projects/vnet/*
MfH @r295202

Expect to see panics in routing code at least now.
11:44:43 - r295204
(5 days 17 hours ago)
by ume
Affects:  /head/bin/csh/Makefile
The charset of NLS catalogs were converted to UTF-8
since r231990.
11:41:55 - r295203
(5 days 17 hours ago)
by ume
Affects: 
(2 files)
/stable/9/bin/csh/iconv_stub.c
MFC r295147:
  Make dynamic link of libiconv from ports work again.
  The symbols of libiconv from ports were changed to
  have prefixed.
  Since we have iconv in our libc these days, we don't
  need it on 10.X and later.  However, 9.X still need
  this.
11:03:44 - r295202
(5 days 18 hours ago)
by bz
Affects:  /head/contrib/bsnmp/snmp_mibII/mibII.c
Try to fix a bug introduced in r228623.  We started to copy the ifa_msghdr
as otherwise platforms with strict alignment would break.  It's unclear
to me if there's also a problem with access to the address list following
the structure.  However we never copied the address list after the structure
and thus are pointing at random memory.  For now just use a pointer to the
original memory for accessing the address list making it at least work on
platforms with weak memory access.

PR:                     195445
Reported by:            wolfgang lyxys.ka.sub.org
Tested by:              wolfgang lyxys.ka.sub.org (x86)
MFC after:              3 days
10:39:29 - r295201
(5 days 18 hours ago)
by mmel
Affects:  /head/sys/arm/xscale/i8134x/i80321reg.h
ARM: Remove C++ comments erroneously committed  in r295200.
09:15:44 - r295200
(5 days 20 hours ago)
by mmel
Affects: 
(9 files)
/head/sys/arm/*
/head/sys/conf/*
ARM: Remove support for xscale i80219 and i80321 CPUs. We haven't single
supported config/board with these CPUs.
08:59:12 - r295199
(5 days 20 hours ago)
by mmel
Affects: 
(6 files)
/head/sys/arm/xscale/i8134x/*
ARM: The arm/xscale/i80321 directory is now orphaned, but two drivers
are shared with i8134x. In preparation for removal of i80321, copy these
drivers to i8134x.
08:12:21 - r295198
(5 days 21 hours ago)
by mmel
Affects:  /head/sys/arm/arm/devmap.c
ARM: acle-compat.h is arm specific header, don't include it for aarch64. This
fixes aarch64 buildkernel.
04:02:50 - r295197
(6 days 1 hour ago)
by dteske
Affects:  /head/usr.sbin/bsdconfig/share/strings.subr
f_substr(): Optimized recipe if running under bash

This makes runnig f_substr() faster than it was when running under bash,
but both sh and dash are still faster when using the non-bash recipe which
features dynamically unrolled loops.
03:55:08 - r295196
(6 days 1 hour ago)
by dteske
Affects:  /head/usr.sbin/bsdconfig/share/common.subr
Remove SIG prefix from trapped signals

Makes traps functional if running under shells/dash
03:03:04 - r295195
(6 days 2 hours ago)
by dteske
Affects:  /head/usr.sbin/bsdconfig/share/strings.subr
f_substr: Write to stdout when no `-v var_to_set'

Fixes ``setvar: : bad variable name''
02:46:00 - r295194
(6 days 2 hours ago)
by dteske
Affects:  /head/usr.sbin/bsdconfig/share/strings.subr
Remove trailing whitespace
02:14:31 - r295193
(6 days 3 hours ago)
by ngie
Affects:  /user/ngie/bsnmp_cleanup/contrib/bsnmp/snmp_mibII/mibII_interfaces.c
Return `ret` in op_ifentry(..) to mute a -Wunused-but-set-variable
warning

This should also now undetected error conditions with
value->var.subs[sub - 1] == LEAF_ifPhysAddress where `string_get(..)`
could fail if iifp->physaddr and/or iifp->physaddrlen were deemed
invalid.

Reported by: Jenkins (clang job) [1], Jenkins (gcc 4.9 job) [2]
Sponsored by: EMC / Isilon Storage Division
02:08:55 - r295192
(6 days 3 hours ago)
by ngie
Affects:  /user/ngie/bsnmp_cleanup/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
Mute -Wsign-compare warnings

By definition parse_ascii(..) returns -1 to denote errors, but
snmp_client.clen and snmp_client.engine.engine_len are unsigned
quantities. Cast their values to signed quantities when doing
the compare, and check for -1 (the return code in the error case)
instead of <0

Reported by: Jenkins (clang job)
Sponsored by: EMC / Isilon Storage Division
02:06:48 - r295191
(6 days 3 hours ago)
by ngie
Affects:  /user/ngie/bsnmp_cleanup/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
1. Use destination buffer instead of source buffer size to mute valid
   security concerns with strlcpy related to their respective buffer
   sizes (-Wstrlcpy-strlcat-size)
2. Don't try free'ing string in snmp_oid2asn_oid(..) -- it's allocated
   on the stack in the function, not the heap.

Reported by: Jenkins (clang job) [1], Jenkins (gcc 4.9 job) [2]
Sponsored by: EMC / Isilon Storage Division
02:03:00 - r295190
(6 days 3 hours ago)
by ngie
Affects:  /user/ngie/bsnmp_cleanup/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptc.c
Don't test for tc < 0 in snmp_oct2tc(..), snmp_tc2oid(..), and
snmp_tc2oct(..) to mute valid -Wtautological-compare warnings as
tc is an enum and (by the current definition of the enum) will
always be positive

Reported by: Jenkins (clang job)
Sponsored by: EMC / Isilon Storage Division
02:02:01 - r295189
(6 days 3 hours ago)
by gjb
Affects: 
(13 files)
/projects/release-pkg/*
MFH

Sponsored by:   The FreeBSD Foundation
02:00:20 - r295188
(6 days 3 hours ago)
by ngie
Affects:  /user/ngie/bsnmp_cleanup/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpmap.c
Use destination buffer instead of source buffer size to mute valid
security concerns with strlcpy related to their respective buffer
sizes (-Wstrlcpy-strlcat-size)

Reported by: Jenkins (clang job)
Sponsored by: EMC / Isilon Storage Division
01:58:37 - r295187
(6 days 3 hours ago)
by ngie
Affects:  /user/ngie/bsnmp_cleanup/usr.sbin/bsnmpd/tools/libbsnmptools/bsnmpimport.c
Use nitems(string) instead of strlen(nexttok) + 1 to mute a valid
security concern with strlcpy related to the source/destination
buffer sizes (-Wstrlcpy-strlcat-size)

Reported by: Jenkins (clang job)
Sponsored by: EMC / Isilon Storage Division
01:50:27 - r295186
(6 days 3 hours ago)
by jhibbits
Affects:  /head/sys/powerpc/powerpc/exec_machdep.c
/head/sys/powerpc/powerpc/sigcode32.S
Align signal stack pointer to 16 bytes.

The stack must be aligned to 16 bytes at all times.  Clang 3.8 is especially
adamant about this, and causes strange behavior and segmentation faults if it is
not the case.

PR:             kern/206810
01:49:02 - r295185
(6 days 3 hours ago)
by ngie
Affects:  /user/ngie/bsnmp_cleanup
Create a branch for cleaning up bsnmp warnings so I can disable NO_WERROR on
this component on all archs
01:40:07 - r295184
(6 days 3 hours ago)
by cem
Affects:  /head/Makefile.inc1
Revert r295167 at bdrewery's request

$ svn merge -c -295167 .

JHB reports Navdeep reports that it breaks distribution and etcupdate.

Approved by:    bdrewery
01:29:06 - r295183
(6 days 3 hours ago)
by jhibbits
Affects:  /head/sys/powerpc/mpc85xx/lbc.c
Make lbc(4) the same driver pass as simplebus.

Device trees mark lbc as compatible with simplebus.  Since simplebus is passed
first, it attaches first.  When lbc's pass (default pass) comes, the bus is
already attached to simplebus, so is skipped.

Sponsored by:   Alex Perez/Inertial Computing
01:22:03 - r295182
(6 days 4 hours ago)
by gjb
Affects:  /projects/release-pkg/lib/libthr/tests/dlopen/dso/Makefile
/projects/release-pkg/lib/tests/Makefile
More 'tests' bug fixes.

Sponsored by:   The FreeBSD Foundation
01:08:51 - r295181
(6 days 4 hours ago)
by gjb
Affects:  /projects/release-pkg/lib/libc/tests/gen/posix_spawn/Makefile
Fix another 'tests' packaging error.

Sponsored by:   The FreeBSD Foundation
00:51:38 - r295180
(6 days 4 hours ago)
by dteske
Affects:  /head/usr.sbin/bsdconfig/share/strings.subr
Define f_sprintf() dynamically at inclusion time

No need to check/re-check capabilities that won't change at runtime.
00:34:23 - r295179
(6 days 4 hours ago)
by gjb
Affects: 
(67 files)
/projects/release-pkg/lib/libc/tests/gen/execve/Makefile
/projects/release-pkg/tests/*
/projects/release-pkg/usr.bin/bmake/tests/*
More 'tests' package fixes.

Sponsored by:   The FreeBSD Foundation

 


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

Page generated in 26 ms, 246 revisions printed. Current time is 2016-02-09 05:24:50. All times are in UTC/GMT.