]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
8 years agoMFH
gjb [Wed, 10 Feb 2016 04:20:39 +0000 (04:20 +0000)]
MFH

Sponsored by: The FreeBSD Foundation

8 years agoAdd vnet jail configuration examples
dteske [Wed, 10 Feb 2016 04:04:31 +0000 (04:04 +0000)]
Add vnet jail configuration examples

8 years agoAdd devd and routed back to the runtime package instead
gjb [Wed, 10 Feb 2016 04:00:01 +0000 (04:00 +0000)]
Add devd and routed back to the runtime package instead
of their individual packages based on MK_foo evaluation.

There is no intent to split inet/inet6 or other similar
combinations for package creation, since they are created
during build time.

Noticed/prodded by: lidl
Sponsored by: The FreeBSD Foundation

8 years agoFix make universe when running with non POSIX/C locales using a locale sensitive
bapt [Wed, 10 Feb 2016 00:26:01 +0000 (00:26 +0000)]
Fix make universe when running with non POSIX/C locales using a locale sensitive
pattern

Reported by: many
Submitted by: jilles

8 years agoZero pf rule counters so daily reports make sense
lidl [Tue, 9 Feb 2016 21:00:38 +0000 (21:00 +0000)]
Zero pf rule counters so daily reports make sense

Zero pf rule counters so that each daily report lists an absolute
number of rejected packets, not the total since the last time the
machine rebooted (or the counters were manually cleared).

PR: 206467
Submitted by: Rick Adams
Approved by: rpaulo (mentor)
Differential Revision: https://reviews.freebsd.org/D5172

8 years agoInclude sys/_task.h into uma_int.h, so that taskqueue.h isn't a
glebius [Tue, 9 Feb 2016 20:22:35 +0000 (20:22 +0000)]
Include sys/_task.h into uma_int.h, so that taskqueue.h isn't a
requirement for uma_int.h.

Suggested by: jhb

8 years agoExplicitly add more files to the 'runtime' package.
gjb [Tue, 9 Feb 2016 20:19:31 +0000 (20:19 +0000)]
Explicitly add more files to the 'runtime' package.

Sponsored by: The FreeBSD Foundation

8 years agoRemove unnecessary env(1) invocations.
gjb [Tue, 9 Feb 2016 20:12:26 +0000 (20:12 +0000)]
Remove unnecessary env(1) invocations.

Sponsored by: The FreeBSD Foundation

8 years agoCreate packages for atm, ccdconfig, devd, ipf, ipfw,
gjb [Tue, 9 Feb 2016 19:30:31 +0000 (19:30 +0000)]
Create packages for atm, ccdconfig, devd, ipf, ipfw,
iscsi, natd, nandfs, pf, quotacheck, and routed.

Add ping6 and rtsol to the runtime package.

Sponsored by: The FreeBSD Foundation

8 years agoAdd logic to rotate the package repository, keyed on PKG_VERSION,
gjb [Tue, 9 Feb 2016 19:27:38 +0000 (19:27 +0000)]
Add logic to rotate the package repository, keyed on PKG_VERSION,
and create a 'latest' symlink to the PKG_VERSION repository path.

Suggested by: des
Sponsored by: The FreeBSD Foundation

8 years agoRename variable to reflect the condition.
kib [Tue, 9 Feb 2016 18:35:37 +0000 (18:35 +0000)]
Rename variable to reflect the condition.

Suggested by: jhb
Sponsored by: The FreeBSD Foundation

8 years agoRemove unneeded whitespace, and fix a license for a new file. Extracted
andrew [Tue, 9 Feb 2016 18:19:24 +0000 (18:19 +0000)]
Remove unneeded whitespace, and fix a license for a new file. Extracted
from a larger patch.

Submitted by: Emmanuel Vadot <manu@bidouilliste.com>
X-Differential Revision: https://reviews.freebsd.org/D4792

8 years agoBring generated interfaces up always
dteske [Tue, 9 Feb 2016 18:11:18 +0000 (18:11 +0000)]
Bring generated interfaces up always

8 years agoChange MAC algo to support mixing w/jng interfaces
dteske [Tue, 9 Feb 2016 18:10:36 +0000 (18:10 +0000)]
Change MAC algo to support mixing w/jng interfaces

8 years agoFix bpf unhiding example /etc/devfs.rules
dteske [Tue, 9 Feb 2016 18:08:40 +0000 (18:08 +0000)]
Fix bpf unhiding example /etc/devfs.rules

8 years agoTo support userspace audio daemons like Virtual OSS, /dev/sndstat is
hselasky [Tue, 9 Feb 2016 17:09:14 +0000 (17:09 +0000)]
To support userspace audio daemons like Virtual OSS, /dev/sndstat is
made writeable by the root user. Userspace audio daemons can add or
update an entry in /dev/sndstat by doing a single system write call to
any /dev/sndstat file descriptor handle. When the audio daemon closes the
file handle or is killed the entry disappears.

While at it, cleanup the sound status code a bit:
- keep the device list sorted to avoid sorting the list every time a
  /dev/sndstat read request is made.
- factor out locking into a pair of locking macros.
- use the sound status lock to protect all per file handle states,
  when generating the output for /dev/sndstat and when removing or
  adding sound status devices. This way sndstat_acquire() and
  sndstat_release() become superfluous and can be removed.

Reviewed by: mav @
Differential Revision: https://reviews.freebsd.org/D5191

8 years agoExplicitly add unmarked bin/ binaries to the runtime package.
gjb [Tue, 9 Feb 2016 16:58:50 +0000 (16:58 +0000)]
Explicitly add unmarked bin/ binaries to the runtime package.
Note: tcsh(1) has a MK_TCSH=no test, so this should be a separate
package, which requires pre-install/post-install scripts, to be
added later.

Sponsored by: The FreeBSD Foundation

8 years agoAdd rcp(1) to the rcmds package.
gjb [Tue, 9 Feb 2016 16:56:35 +0000 (16:56 +0000)]
Add rcp(1) to the rcmds package.

Sponsored by: The FreeBSD Foundation

8 years agoAdd rmail to the sendmail package
gjb [Tue, 9 Feb 2016 16:54:04 +0000 (16:54 +0000)]
Add rmail to the sendmail package

Sponsored by: The FreeBSD Foundation

8 years agoUpdate our copy of the Linux dts files to be in sync with Linux 4.5-rc1. We
andrew [Tue, 9 Feb 2016 16:42:32 +0000 (16:42 +0000)]
Update our copy of the Linux dts files to be in sync with Linux 4.5-rc1. We
now uave a full copy of the arm device tree sources to help when adding
support for newer boards.

Sponsored by: ABT Systems Ltd

8 years agoRename P_KTHREAD struct proc p_flag to P_KPROC.
kib [Tue, 9 Feb 2016 16:30:16 +0000 (16:30 +0000)]
Rename P_KTHREAD struct proc p_flag to P_KPROC.

I left as is an apparent bug in ntoskrnl_var.h:AT_PASSIVE_LEVEL()
definition.

Suggested by: jhb
Sponsored by: The FreeBSD Foundation

8 years agoUse designated initialisers for the db disassembler interface to help with
andrew [Tue, 9 Feb 2016 10:18:22 +0000 (10:18 +0000)]
Use designated initialisers for the db disassembler interface to help with
finding the struct when searching for one of its members.

8 years agoCorrect the year, it's 2016.
andrew [Tue, 9 Feb 2016 10:06:06 +0000 (10:06 +0000)]
Correct the year, it's 2016.

8 years agoAdd an ARMv7 config file to build nanobsd images for the qemu virt
andrew [Tue, 9 Feb 2016 09:57:50 +0000 (09:57 +0000)]
Add an ARMv7 config file to build nanobsd images for the qemu virt
platform.

Sponsored by: ABT Systems Ltd

8 years agoDon't set the offset when loading the kernel on the arm loader.efi. The
andrew [Tue, 9 Feb 2016 09:39:30 +0000 (09:39 +0000)]
Don't set the offset when loading the kernel on the arm loader.efi. The
copyin and copyout code handle virtual addresses such that they will take
a virtual address and convert it into a valid physical address. It may
also mean we fail to boot as the elf files load address could be 0.

Sponsored by: ABT Systems Ltd

8 years agoImprove comment to reflect recent changes.
trasz [Tue, 9 Feb 2016 09:38:05 +0000 (09:38 +0000)]
Improve comment to reflect recent changes.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoUse a proper type for return value of postfix_to_mult(); the way it's
trasz [Tue, 9 Feb 2016 09:37:04 +0000 (09:37 +0000)]
Use a proper type for return value of postfix_to_mult(); the way it's
being used wouldn't work if the value returned didn't fit in intmax_t.

Submitted by: bde@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoUse proper functions for parsing the numeric values.
trasz [Tue, 9 Feb 2016 09:32:10 +0000 (09:32 +0000)]
Use proper functions for parsing the numeric values.

Submitted by: bde@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoIgnore invalid page descriptors in ARM64 pmap_mincore
wma [Tue, 9 Feb 2016 06:26:27 +0000 (06:26 +0000)]
Ignore invalid page descriptors in ARM64 pmap_mincore

    Prevent the function from null-pointer-dereference when unexisting
    mapping is being processed.

Obtained from:         Semihalf
Sponsored by:          Cavium
Approved by:           cognet (mentor)
Reviewed by:           zbb, cognet
Differential revision: https://reviews.freebsd.org/D5228

8 years agoTeach ofw_bus_parse_xref_list_alloc to be able to return the length of the parsed...
adrian [Tue, 9 Feb 2016 03:35:40 +0000 (03:35 +0000)]
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

8 years agoMFH
gjb [Tue, 9 Feb 2016 01:42:51 +0000 (01:42 +0000)]
MFH

Sponsored by: The FreeBSD Foundation

8 years agoAdjust MAC algo to support interface branching
dteske [Tue, 9 Feb 2016 01:41:03 +0000 (01:41 +0000)]
Adjust MAC algo to support interface branching

8 years agoStop clang from generating movt/movw sequences. These don't get relocated
andrew [Tue, 9 Feb 2016 00:15:41 +0000 (00:15 +0000)]
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

8 years agoEnsure the bss is aligned to a 4-byte address as we use 4-byte aligned
andrew [Tue, 9 Feb 2016 00:01:43 +0000 (00:01 +0000)]
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

8 years agoCall kthread_exit() rather than kproc_exit() for a premature kthread exit.
jhb [Mon, 8 Feb 2016 23:11:23 +0000 (23:11 +0000)]
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

8 years agoMark proc0 as a kernel process via the P_KTHREAD flag.
jhb [Mon, 8 Feb 2016 23:06:27 +0000 (23:06 +0000)]
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

8 years agoFix the SCSI Extended INQUIRY probe case when an error is returned
ken [Mon, 8 Feb 2016 22:13:08 +0000 (22:13 +0000)]
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

8 years agoFix the gcc build after r295407.
markj [Mon, 8 Feb 2016 22:02:56 +0000 (22:02 +0000)]
Fix the gcc build after r295407.

X-MFC-With: r295407

8 years agoCreate a package for HAST.
gjb [Mon, 8 Feb 2016 21:15:07 +0000 (21:15 +0000)]
Create a package for HAST.

Sponsored by: The FreeBSD Foundation

8 years agokmod.mk: Ensure ILINKS are created before building.
bdrewery [Mon, 8 Feb 2016 20:58:52 +0000 (20:58 +0000)]
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

8 years agokmod.mk: Support a beforebuild target such as bsd.prog.mk has.
bdrewery [Mon, 8 Feb 2016 20:57:12 +0000 (20:57 +0000)]
kmod.mk: Support a beforebuild target such as bsd.prog.mk has.

Sponsored by: EMC / Isilon Storage Division

8 years agoEnsure include/ is properly tagged in the METALOG.
gjb [Mon, 8 Feb 2016 20:21:07 +0000 (20:21 +0000)]
Ensure include/ is properly tagged in the METALOG.

Noticed by: des
Sponsored by: The FreeBSD Foundation

8 years agoficl: Replace rand(3) with random(3).
pfg [Mon, 8 Feb 2016 20:03:14 +0000 (20:03 +0000)]
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.

8 years agoficl: Replace rand(3) with random(3).
pfg [Mon, 8 Feb 2016 19:45:55 +0000 (19:45 +0000)]
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.

8 years agoImplement -P for boot loader. It's a bit easier to implement here than
imp [Mon, 8 Feb 2016 19:34:17 +0000 (19:34 +0000)]
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

8 years agoIf libthr.so is dlopened without RTLD_GLOBAL flag, the libthr symbols
kib [Mon, 8 Feb 2016 19:24:13 +0000 (19:24 +0000)]
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

8 years agoAdd libexec/smrsh to the sendmail package.
gjb [Mon, 8 Feb 2016 18:57:06 +0000 (18:57 +0000)]
Add libexec/smrsh to the sendmail package.

Submitted by: pfg
Sponsored by: The FreeBSD Foundation

8 years agoAdd comment/description for clibs, rescue, and sendmail packages.
gjb [Mon, 8 Feb 2016 18:44:26 +0000 (18:44 +0000)]
Add comment/description for clibs, rescue, and sendmail packages.

Sponsored by: The FreeBSD Foundation

8 years agoSort.
gjb [Mon, 8 Feb 2016 18:42:33 +0000 (18:42 +0000)]
Sort.

Sponsored by: The FreeBSD Foundation

8 years agoCreate a package for sendmail(8).
gjb [Mon, 8 Feb 2016 18:41:46 +0000 (18:41 +0000)]
Create a package for sendmail(8).

Sponsored by: The FreeBSD Foundation

8 years agoAdjust MAC allocation algo to support layering
dteske [Mon, 8 Feb 2016 17:47:36 +0000 (17:47 +0000)]
Adjust MAC allocation algo to support layering

8 years agoProvide additional information on overall purpose
dteske [Mon, 8 Feb 2016 17:36:46 +0000 (17:36 +0000)]
Provide additional information on overall purpose

8 years agoFix copy/paste error; s/ngX/eXb/
dteske [Mon, 8 Feb 2016 17:30:17 +0000 (17:30 +0000)]
Fix copy/paste error; s/ngX/eXb/

8 years agoRestore kgzldr on i386 only
emaste [Mon, 8 Feb 2016 16:59:52 +0000 (16:59 +0000)]
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

8 years agoRename the signpackages target to sign-packages, and include it in the
des [Mon, 8 Feb 2016 16:34:13 +0000 (16:34 +0000)]
Rename the signpackages target to sign-packages, and include it in the
packages meta-target so 'make packages' now does everything.

8 years agoSplit the packages target into stage-packages and create-packages to make
des [Mon, 8 Feb 2016 16:08:13 +0000 (16:08 +0000)]
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.

8 years agoSplit /rescue into its own package.
gjb [Mon, 8 Feb 2016 14:27:45 +0000 (14:27 +0000)]
Split /rescue into its own package.

Sponsored by: The FreeBSD Foundation

8 years agoMFH
gjb [Mon, 8 Feb 2016 12:16:01 +0000 (12:16 +0000)]
MFH

Sponsored by: The FreeBSD Foundation

8 years agoRemove the assert which outlived its usefulness, and, by default,
kib [Mon, 8 Feb 2016 10:54:27 +0000 (10:54 +0000)]
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

8 years agoAdd a format string to the err() calls.
adrian [Mon, 8 Feb 2016 02:11:34 +0000 (02:11 +0000)]
Add a format string to the err() calls.

8 years agoMake sure NANO_DISKIMGDIR exists.
imp [Sun, 7 Feb 2016 23:20:44 +0000 (23:20 +0000)]
Make sure NANO_DISKIMGDIR exists.

8 years agosemget(): Check for [EEXIST] error first.
jilles [Sun, 7 Feb 2016 22:12:39 +0000 (22:12 +0000)]
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

8 years agosemget(2): Add missing [EINVAL] conditions.
jilles [Sun, 7 Feb 2016 21:25:08 +0000 (21:25 +0000)]
semget(2): Add missing [EINVAL] conditions.

PR: 206927

8 years agoSimplify running the FreeBSD test suite
ngie [Sun, 7 Feb 2016 18:40:04 +0000 (18:40 +0000)]
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

8 years agoUse new NANO_LOG to put the logs some place reasonable. Also, share
imp [Sun, 7 Feb 2016 16:44:13 +0000 (16:44 +0000)]
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.

8 years agoUse NANO_LOG instead of NANO_OBJ for log file locations. Have it
imp [Sun, 7 Feb 2016 16:44:06 +0000 (16:44 +0000)]
Use NANO_LOG instead of NANO_OBJ for log file locations. Have it
default to NANO_OBJ.

8 years agoAdd simple config for i386 BIOS boot.
imp [Sun, 7 Feb 2016 16:44:04 +0000 (16:44 +0000)]
Add simple config for i386 BIOS boot.

8 years agoVarious fixups:
imp [Sun, 7 Feb 2016 16:43:55 +0000 (16:43 +0000)]
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

8 years agoAdd two scripts for vnet jails
dteske [Sun, 7 Feb 2016 16:41:54 +0000 (16:41 +0000)]
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.

8 years agoMinor grammar fix in comment.
pfg [Sun, 7 Feb 2016 16:18:12 +0000 (16:18 +0000)]
Minor grammar fix in comment.

8 years agoRevert r295359:
pfg [Sun, 7 Feb 2016 15:40:01 +0000 (15:40 +0000)]
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

8 years agomsdosfs_rename: yet another unused value.
pfg [Sun, 7 Feb 2016 15:36:16 +0000 (15:36 +0000)]
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.

8 years agoMFV r295360
pfg [Sun, 7 Feb 2016 15:26:21 +0000 (15:26 +0000)]
MFV r295360
Sync our libedit with NetBSD's libedit 2016-01-16

Obtained from: NetBSD

8 years agoAdd missing comma
dteske [Sun, 7 Feb 2016 13:33:18 +0000 (13:33 +0000)]
Add missing comma

8 years agoRemove the hard-coded 'ath0' strings and use ATH_DEFAULT.
adrian [Sun, 7 Feb 2016 04:28:03 +0000 (04:28 +0000)]
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.

8 years agocd9660: Drop an unnecessary check for NULL.
pfg [Sun, 7 Feb 2016 03:48:40 +0000 (03:48 +0000)]
cd9660: Drop an unnecessary check for NULL.

This was unnecessary and also confused Coverity.

Confirmed on: NetBSD
CID: 978558

8 years agofdesc_setattr: unitialized pointer read
pfg [Sun, 7 Feb 2016 01:09:38 +0000 (01:09 +0000)]
fdesc_setattr: unitialized pointer read

CID: 1018688

8 years agoClarify a comment in kern_openat() about the use of falloc_noinstall().
mckusick [Sun, 7 Feb 2016 01:04:47 +0000 (01:04 +0000)]
Clarify a comment in kern_openat() about the use of falloc_noinstall().

Suggested by: Steve Jacobson

8 years agoDo not set vfs.root.mountfrom unnecessarily
allanjude [Sun, 7 Feb 2016 00:49:15 +0000 (00:49 +0000)]
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.

8 years agoFix EFI platform build failures
smh [Sat, 6 Feb 2016 22:01:25 +0000 (22:01 +0000)]
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

8 years agomsdosfs_rename: Unused value
pfg [Sat, 6 Feb 2016 21:54:02 +0000 (21:54 +0000)]
msdosfs_rename: Unused value

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

CID: 1304892

8 years agoDo not call vn_fullpath(9) (through the pmc_getfilename() wrapper)
kib [Sat, 6 Feb 2016 15:39:04 +0000 (15:39 +0000)]
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

8 years agoARM: Rename remaining ARMv4 specific function in DTrace code.
mmel [Sat, 6 Feb 2016 11:16:15 +0000 (11:16 +0000)]
ARM: Rename remaining ARMv4 specific function in DTrace code.
I missed it in r295319.

Pointed by: tuexen

8 years agofork: ansify sys_pdfork
mjg [Sat, 6 Feb 2016 09:01:03 +0000 (09:01 +0000)]
fork: ansify sys_pdfork

No functional changes.

8 years agoUse basenames for getfacl, setfacl, and zpool to work around the
ngie [Sat, 6 Feb 2016 04:13:20 +0000 (04:13 +0000)]
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

8 years agoFix typo in a comment; s/redined/redefined/
dteske [Sat, 6 Feb 2016 02:35:52 +0000 (02:35 +0000)]
Fix typo in a comment; s/redined/redefined/

Thanks to: rpokala

8 years agoAdd comment to explain functionality of code
dteske [Sat, 6 Feb 2016 02:32:13 +0000 (02:32 +0000)]
Add comment to explain functionality of code

Thanks to: rpokala

8 years agoAllow rc_conf_files to be redefined in rc.conf(5)
dteske [Sat, 6 Feb 2016 02:16:48 +0000 (02:16 +0000)]
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

8 years agoRequire /bin/getfacl and /bin/setfacl when running the acl tests
ngie [Fri, 5 Feb 2016 23:50:15 +0000 (23:50 +0000)]
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

8 years agoProvide a future release as an example, instead of a historical one.
glebius [Fri, 5 Feb 2016 21:57:50 +0000 (21:57 +0000)]
Provide a future release as an example, instead of a historical one.

8 years agoRemove libc, librtld_db, libthr packages, and further increase
gjb [Fri, 5 Feb 2016 21:01:08 +0000 (21:01 +0000)]
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

8 years agoreadelf: decode AArch64 TLS descriptor relocations
emaste [Fri, 5 Feb 2016 20:57:21 +0000 (20:57 +0000)]
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

8 years agoreadelf: report value of unknown relocation types
emaste [Fri, 5 Feb 2016 20:56:11 +0000 (20:56 +0000)]
readelf: report value of unknown relocation types

Obtained from: ELF Tool Chain r3387
Sponsored by: The FreeBSD Foundation

8 years agoreadelf: avoid accidental fallthrough in RISC-V relocations
emaste [Fri, 5 Feb 2016 20:54:51 +0000 (20:54 +0000)]
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

8 years agoRename aiocblist to kaiocb and use consistent variable names.
jhb [Fri, 5 Feb 2016 20:38:09 +0000 (20:38 +0000)]
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

8 years agoPlug a vm_page leak introduced in r292373.
markj [Fri, 5 Feb 2016 19:35:53 +0000 (19:35 +0000)]
Plug a vm_page leak introduced in r292373.

Reported by: vangyzen

8 years agoUpdate script for modern `zpool status` output.
mav [Fri, 5 Feb 2016 18:17:37 +0000 (18:17 +0000)]
Update script for modern `zpool status` output.

8 years agoAdd error check to not leak logs with syntax errors in case of failed
mav [Fri, 5 Feb 2016 17:28:11 +0000 (17:28 +0000)]
Add error check to not leak logs with syntax errors in case of failed
`zpool history`.

MFC after: 1 month

8 years agoUpdate em(4) to 7.6.1; update igb(4) to 2.5.3.
erj [Fri, 5 Feb 2016 17:14:37 +0000 (17:14 +0000)]
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

8 years agoImplement kdb_cpu_sync_icache on arm64.
andrew [Fri, 5 Feb 2016 15:38:28 +0000 (15:38 +0000)]
Implement kdb_cpu_sync_icache on arm64.

Sponsored by: ABT Systems Ltd