]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
7 years agoMFC r289172,r290254:
ngie [Thu, 9 Feb 2017 22:49:48 +0000 (22:49 +0000)]
MFC r289172,r290254:

r289172:

Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and
netbsd-tests.test.mk (r289151)

- Eliminate explicit OBJTOP/SRCTOP setting
- Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk
- Remove unnecessary TESTSDIR setting
- Use SRCTOP where possible for clarity

r290254:

Remove unused variable (SRCDIR)

git-svn-id: svn://svn.freebsd.org/base/stable/10@313488 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r274138,r274149:
ngie [Thu, 9 Feb 2017 22:14:17 +0000 (22:14 +0000)]
MFC r274138,r274149:

r274138 (by des):

Hook up OpenPAM's own unit tests to the build.

r274149 (by markj):

Create a directory for the PAM tests.

git-svn-id: svn://svn.freebsd.org/base/stable/10@313487 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r258903,r264487,r271699,r288415:
ngie [Thu, 9 Feb 2017 22:04:56 +0000 (22:04 +0000)]
MFC r258903,r264487,r271699,r288415:

r258903 (by markj):

Enable some previously-disabled DTrace tests for umod, ufunc and usym. They
expect the installed ksh binary to be named "ksh", which is not the case
when it's installed on FreeBSD via the shells/ksh93 port. Allow for it to be
"ksh93" as well so that the tests can actually pass.

r264487 (by markj):

Replace a few Solarisisms with their corresponding FreeBSDisms to make a few
printf tests pass.

r271699 (by markj):

Implement a workaround to allow this test program to be compiled with clang.
It seems that if a pragma is used to define a weak alias for a local
function, the pragma must appear after the function is defined.

PR: 193056

r288415 (by markj):

MFV r288408:
6266 harden dtrace_difo_chunksize() with respect to malicious DIF

illumos/illumos-gate@395c7a3dcfc66b8b671dc4b3c4a2f0ca26449922

Author: Bryan Cantrill <bryan@joyent.com>

git-svn-id: svn://svn.freebsd.org/base/stable/10@313486 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r277912,r278738,r279418,r280835,r288416:
ngie [Thu, 9 Feb 2017 21:54:18 +0000 (21:54 +0000)]
MFC r277912,r278738,r279418,r280835,r288416:

r277912 (by markj):

Include required headers in DTrace test programs.

r278738 (by markj):

Tweak the fds test program so that it actually compiles. Also use 0 instead
of -1 for the bogus ioctl command so that dmesg doesn't get spammed with
sign extension warnings when the test program runs.

r279418 (by markj):

Add infrastructure to integrate the DTrace test suite with Kyua.

For each test category, we generate a script containing ATF test cases for
the tests under that category. Each test case simply runs dtest.pl (the
upstream test harness) with the corresponding test files. The exclude.sh
script is used to record info about tests which should be skipped or are
expected to fail; it is used to generate atf_skip and atf_expect_fail calls.
The genmakefiles.sh script can be used to regenerate the test makefiles when
new tests are brought it from upstream.

The test suite is currently not connected to the build as there is a small
number of lingering test issues which still need to be worked out. In the
meantime however, the test suite can be easily built and installed
manually from cddl/usr.sbin/dtrace/tests.

r280835 (by markj):

Replace dtest.pl, the upstream DTrace test suite harness, with a shell
script. This reimplementation is much simpler than dtest.pl and is more
amenable to being run under Kyua - dtest.pl writes error output to a
temporary directory that is deleted when the run finishes, making it hard
to debug test failures. This change also removes the test suite's dependency
on perl.

r288416 (by markj):

Update DTrace test makefiles after r288415.

git-svn-id: svn://svn.freebsd.org/base/stable/10@313485 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoRecord r286620 and r286638 as having been MFCed
ngie [Thu, 9 Feb 2017 21:37:36 +0000 (21:37 +0000)]
Record r286620 and r286638 as having been MFCed

No net change

git-svn-id: svn://svn.freebsd.org/base/stable/10@313484 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r276527:
ngie [Thu, 9 Feb 2017 21:29:18 +0000 (21:29 +0000)]
MFC r276527:

Don't install h_raw if dealing with clang 3.5.0+ to unbreak the tests2 Jenkins
job

The h_raw application doesn't do proper bounds checking without the option
being supplied via the build, which means that it doesn't throw signals and
fail as expected

PR: 196430

git-svn-id: svn://svn.freebsd.org/base/stable/10@313482 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r277648:
ngie [Thu, 9 Feb 2017 21:26:14 +0000 (21:26 +0000)]
MFC r277648:
r277648 (by jilles):

Enable utimensat tests from NetBSD.

As with other tests from c063, a required #include <sys/stat.h> was missing.

git-svn-id: svn://svn.freebsd.org/base/stable/10@313481 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r283584:
ngie [Thu, 9 Feb 2017 21:23:41 +0000 (21:23 +0000)]
MFC r283584:

Relnotes: yes

r283584 (by emaste):

memmem(3): empty little string matches the beginning of the big string

This function originated in glibc, and this matches their behaviour
(and NetBSD, OpenBSD, and musl).

An empty big string (arg "l") is handled by the existing
l_len < s_len test.

git-svn-id: svn://svn.freebsd.org/base/stable/10@313480 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r279154,r279397:
ngie [Thu, 9 Feb 2017 21:19:24 +0000 (21:19 +0000)]
MFC r279154,r279397:

r279154 (by jilles):

nice(): Correct return value and [EPERM] error.

PR: 189821
Obtained from: NetBSD
Relnotes: yes

r279397 (by jilles):

nice(): Put back old return value, keeping [EPERM] error.

Commit r279154 changed the API and ABI significantly, and {NZERO} is still
wrong.

Also, preserve errno on success instead of setting it to 0.

PR: 189821
Relnotes: yes

git-svn-id: svn://svn.freebsd.org/base/stable/10@313479 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r305483,r306030,r306031,r306033,r306036:
ngie [Thu, 9 Feb 2017 21:12:26 +0000 (21:12 +0000)]
MFC r305483,r306030,r306031,r306033,r306036:

r305483:

Fix tests/sys/kqueue NetBSD tests on 32-bit platforms by using proper
format specifier for pointers when printing them out with printf(3)

Pointyhat to: ngie

r306030:

Port vnode_leak_test:main to FreeBSD

Use a simpler way of dumping kern.maxvnodes, i.e. `sysctl -n kern.maxvnodes`

The awk filtering method employed in NetBSD doesn't work on FreeBSD

r306031:

Port contrib/netbsd-tests/fs/h_funcs.subr to FreeBSD

Use kldstat -m to determine whether or not a filesystem is loaded. This works
well with tmpfs, ufs, and zfs

r306033:

Port sizes_test and statvfs_test to FreeBSD

Similar to r306030, use a simpler method for getting the value of
`hw.pagesize`, i.e. `sysctl -n hw.pagesize`. The awk filtering method doesn't
work on FreeBSD

r306036:

Port to mknod_test and readdir_test to FreeBSD

The `mknod <file> p` command doesn't exist on FreeBSD, like on NetBSD. Use
mkfifo instead to create named pipes (FIFOs).

git-svn-id: svn://svn.freebsd.org/base/stable/10@313478 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r313109:
kib [Thu, 9 Feb 2017 04:45:18 +0000 (04:45 +0000)]
MFC r313109:
Use ANSI definitions for some i386 functions.

git-svn-id: svn://svn.freebsd.org/base/stable/10@313464 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312791:
cy [Thu, 9 Feb 2017 02:08:42 +0000 (02:08 +0000)]
MFC r312791:

Use normal KNF cuddling of elses.

Reported by: bde

git-svn-id: svn://svn.freebsd.org/base/stable/10@313461 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312767: Partially workaround ASMedia HBA error recovery.
mav [Wed, 8 Feb 2017 16:07:59 +0000 (16:07 +0000)]
MFC r312767: Partially workaround ASMedia HBA error recovery.

Taking closer look on my ASM1062 I found that it has bunch of issues around
error recovery: reported wrong CCS, failed commands reported as completed,
READ LOG EXT times out after NCQ error.  This patch workarounds first two
problems, that were making ATAPI devices close to unusable on these HBAs.

git-svn-id: svn://svn.freebsd.org/base/stable/10@313446 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312750: Add Timeout and Protect mode page description from MMC-6.
mav [Wed, 8 Feb 2017 16:01:14 +0000 (16:01 +0000)]
MFC r312750: Add Timeout and Protect mode page description from MMC-6.

git-svn-id: svn://svn.freebsd.org/base/stable/10@313444 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312777, r312780:
cy [Wed, 8 Feb 2017 13:37:57 +0000 (13:37 +0000)]
MFC r312777, r312780:

Issue an error message when an incorrect flush argument is encountered
(and style fixup).

git-svn-id: svn://svn.freebsd.org/base/stable/10@313441 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r304142: ensure stripe size is non-zero multiple of 4096
rpokala [Wed, 8 Feb 2017 08:37:43 +0000 (08:37 +0000)]
MFC r304142: ensure stripe size is non-zero multiple of 4096

Ensure that the sector size is a multiple of 4096 to avoid creating
unaligned partitions when the actual sector size is hidden from us.

NOTE: This change was MFCed to stable/11 months ago as as r304448; I'm just
MFCing it back one more stream.

git-svn-id: svn://svn.freebsd.org/base/stable/10@313433 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312392:
ngie [Wed, 8 Feb 2017 08:35:05 +0000 (08:35 +0000)]
MFC r312392:

Use SRCTOP instead of .CURDIR-relative path in .PATH directive

git-svn-id: svn://svn.freebsd.org/base/stable/10@313432 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312544
rstone [Tue, 7 Feb 2017 15:12:27 +0000 (15:12 +0000)]
MFC r312544

  Fix reference to free memory in ixgbe/if_media.c

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

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

  Submitted by: Matt Joras <matt.joras AT gmail DOT com>
  Reviewed by:  sbruno, erj
  MFC after:    1 week
  Sponsored by: Dell EMC Isilon
  Differential Revision:        https://reviews.freebsd.org/D9164

git-svn-id: svn://svn.freebsd.org/base/stable/10@313387 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r313249:
kib [Tue, 7 Feb 2017 08:33:46 +0000 (08:33 +0000)]
MFC r313249:
Style, use tab after #define.

git-svn-id: svn://svn.freebsd.org/base/stable/10@313384 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312694: Make CTL ramdisk backend a real RAM disk.
mav [Tue, 7 Feb 2017 01:58:02 +0000 (01:58 +0000)]
MFC r312694: Make CTL ramdisk backend a real RAM disk.

If "capacity" LU option is set, ramdisk backend now implements featured
thin provisioned disk, storing data in malloc(9) allocated memory blocks
of pblocksize bytes (default PAGE_SIZE or 4KB).  Additionally ~0.2% of LU
size is used for indirection tree (bigger pblocksize reduce the overhead).
Backend supports all unmap and anchor operations.  If configured capacity
is overflowed, proper error conditions are reported.

If "capacity" LU option is not set, the backend operates mostly the same
as before without allocating real storage: writes go to nowhere, reads
return zeroes, reporting that all LBAs are unmapped.

This backend is still mostly oriented on testing and benchmarking (it is
still a volatile RAM disk), but now it should allow to run real FS tests,
not only simple dumb dd.

git-svn-id: svn://svn.freebsd.org/base/stable/10@313371 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312603: Add initial support for CTL module unloading.
mav [Tue, 7 Feb 2017 01:56:26 +0000 (01:56 +0000)]
MFC r312603: Add initial support for CTL module unloading.

It is only a first step and not perfect, but better then nothing.
The main blocker is CAM target frontend, that can not be unloaded,
since CAM does not have mechanism to unregister periph driver now.

git-svn-id: svn://svn.freebsd.org/base/stable/10@313369 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312348: Remove writing 'residual' field of struct ctl_scsiio.
mav [Tue, 7 Feb 2017 01:44:18 +0000 (01:44 +0000)]
MFC r312348: Remove writing 'residual' field of struct ctl_scsiio.

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

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

git-svn-id: svn://svn.freebsd.org/base/stable/10@313367 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312291, r312669:
mav [Tue, 7 Feb 2017 01:42:53 +0000 (01:42 +0000)]
MFC r312291, r312669:
Make CTL frontends report kern_data_resid for under-/overruns.

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

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

git-svn-id: svn://svn.freebsd.org/base/stable/10@313365 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312343: Improve error message on duplicate iSCSI port.
mav [Tue, 7 Feb 2017 01:39:25 +0000 (01:39 +0000)]
MFC r312343: Improve error message on duplicate iSCSI port.

git-svn-id: svn://svn.freebsd.org/base/stable/10@313363 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312982:
cy [Mon, 6 Feb 2017 13:32:22 +0000 (13:32 +0000)]
MFC r312982:

Correct comment grammar and make it easier to understand.

git-svn-id: svn://svn.freebsd.org/base/stable/10@313340 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312663: When creating record file, use umask 077 instead of the default.
delphij [Mon, 6 Feb 2017 05:34:47 +0000 (05:34 +0000)]
MFC r312663: When creating record file, use umask 077 instead of the default.

git-svn-id: svn://svn.freebsd.org/base/stable/10@313324 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312667:
pfg [Mon, 6 Feb 2017 05:27:05 +0000 (05:27 +0000)]
MFC r312667:
sort - Don't live-loop threads.

Worker threads now use a pthread_cond_t to wait for work instead of
burning the cpu up.

Obtained from: DragonflyBSD (07774aea0ccf64a48fcfad8899e3bf7c8f18277a)

git-svn-id: svn://svn.freebsd.org/base/stable/10@313321 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312664: Always initialize 'c'.
delphij [Mon, 6 Feb 2017 05:24:17 +0000 (05:24 +0000)]
MFC r312664: Always initialize 'c'.

git-svn-id: svn://svn.freebsd.org/base/stable/10@313320 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r310096: reaper: Make REAPER_KILL_SUBTREE actually work.
jilles [Sun, 5 Feb 2017 21:31:40 +0000 (21:31 +0000)]
MFC r310096: reaper: Make REAPER_KILL_SUBTREE actually work.

git-svn-id: svn://svn.freebsd.org/base/stable/10@313303 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312721: skel: Remove reference to deleted part in previous commit
jilles [Sun, 5 Feb 2017 15:46:05 +0000 (15:46 +0000)]
MFC r312721: skel: Remove reference to deleted part in previous commit
to this file.

git-svn-id: svn://svn.freebsd.org/base/stable/10@313288 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312954:
kib [Sun, 5 Feb 2017 00:42:15 +0000 (00:42 +0000)]
MFC r312954:
Do not leave stale 4K TLB entries on pde (superpage) removal or
protection change.

git-svn-id: svn://svn.freebsd.org/base/stable/10@313256 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r311585:
ngie [Sat, 4 Feb 2017 17:00:47 +0000 (17:00 +0000)]
MFC r311585:

Conditionalize building libwrap support into sshd

Only build libwrap support into sshd if MK_TCP_WRAPPERS != no

This will unbreak the build if libwrap has been removed from the system

PR: 210141

git-svn-id: svn://svn.freebsd.org/base/stable/10@313234 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r311473:
ngie [Sat, 4 Feb 2017 16:47:35 +0000 (16:47 +0000)]
MFC r311473:

Conditionalize all code that uses tcpd.h behind `LIBWRAP` guard

This will allow the code to stand by itself without libwrap

git-svn-id: svn://svn.freebsd.org/base/stable/10@313226 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r311471:
ngie [Sat, 4 Feb 2017 16:45:44 +0000 (16:45 +0000)]
MFC r311471:

Conditionalize wrap(3) use based on MK_TCP_WRAPPERS instead of
always building support into sendmail.

git-svn-id: svn://svn.freebsd.org/base/stable/10@313225 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r310467:
ngie [Sat, 4 Feb 2017 16:43:35 +0000 (16:43 +0000)]
MFC r310467:

Provide some guidance when dealing with sections and variables contained
within them

For example, using variables designated for %usm requires uncommenting
%usm section header

git-svn-id: svn://svn.freebsd.org/base/stable/10@313224 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r311744,r312328,r312329,r312330:
ngie [Sat, 4 Feb 2017 16:40:28 +0000 (16:40 +0000)]
MFC r311744,r312328,r312329,r312330:

r311744:

Document bsd.snmpmod.mk from a high-level

r312328:

Add a make target (smilint) for running smilint tool against BMIBS

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

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

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

r312329:

Remove ad hoc smilint targets made standard in bsd.snmpmod.mk in r312328

r312330:

Add smilint target to subdir targets so "make smilint" here will run
the smilint target in subdirs

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

git-svn-id: svn://svn.freebsd.org/base/stable/10@313223 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r311394:
ngie [Sat, 4 Feb 2017 16:37:43 +0000 (16:37 +0000)]
MFC r311394:

op_usm_users: don't deref uusers if it's NULL when SETting the value

Add an XXX comment to note that the conditional seems suspect given
how it's handled elsewhere in the SNMP_OP_SET case.

CID: 1008573

git-svn-id: svn://svn.freebsd.org/base/stable/10@313222 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312332:
ngie [Sat, 4 Feb 2017 16:36:07 +0000 (16:36 +0000)]
MFC r312332:

Use SRCTOP where possible and use :H to manipulate .CURDIR to get rid of
unnecessarily long relative path .PATH values with make

git-svn-id: svn://svn.freebsd.org/base/stable/10@313221 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r311469:
ngie [Sat, 4 Feb 2017 16:34:44 +0000 (16:34 +0000)]
MFC r311469:

Conditionalize wrap(3) use based on MK_TCP_WRAPPERS instead of
always building support into ypserv.

git-svn-id: svn://svn.freebsd.org/base/stable/10@313220 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312164:
ngie [Sat, 4 Feb 2017 16:31:24 +0000 (16:31 +0000)]
MFC r312164:

Fix -Wformat issue

Use %zu for printing out results from nitems, as it's size_t based

git-svn-id: svn://svn.freebsd.org/base/stable/10@313219 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312114,r312194:
ngie [Sat, 4 Feb 2017 16:29:23 +0000 (16:29 +0000)]
MFC r312114,r312194:

r312114:

Enable WARNS?= 6 across all of tests/sys

r312194:

Add include Makefiles for tests/sys/{fs,kern,kqueue,mac}/...

The primary goal for doing this is to leverage the work done in r312114
for enabling WARNS to address trivial code quality issues with new tests

Tested with: make tinderbox

git-svn-id: svn://svn.freebsd.org/base/stable/10@313218 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312110:
ngie [Sat, 4 Feb 2017 16:16:41 +0000 (16:16 +0000)]
MFC r312110:

Fix -Wsign-compare warnings

The loop index (i) doesn't need to be size_t as its comparison is signed

git-svn-id: svn://svn.freebsd.org/base/stable/10@313217 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312120:
ngie [Sat, 4 Feb 2017 16:15:26 +0000 (16:15 +0000)]
MFC r312120:

Fix warnings

- Staticize test_num
- Promote i to size_t to deal with -Wsign-compare issues

Tested with: clang, gcc, gcc49

git-svn-id: svn://svn.freebsd.org/base/stable/10@313216 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r311972:
ngie [Sat, 4 Feb 2017 16:09:07 +0000 (16:09 +0000)]
MFC r311972:

Add __BIT and __BITS macros from NetBSD to help support new testcases

git-svn-id: svn://svn.freebsd.org/base/stable/10@313215 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312119,r312216,r312226:
ngie [Sat, 4 Feb 2017 16:02:49 +0000 (16:02 +0000)]
MFC r312119,r312216,r312226:

r312119:

encode_long, encode_timeval: mechanically replace `exp` with `exponent`

This helps fix a -Wshadow issue with exp(3) with tests/sys/acct/acct_test,
which include math.h, which in turn defines exp(3)

Tested with: clang, gcc 4.2.1, gcc 4.9

r312216:

Revert r312119 and reword the intent to fix -Wshadow issues
between exp(3) and `exp` var.

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

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

Requested by: bde

r312226:

Fix typo in r312216

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

Pointyhat to: ngie

git-svn-id: svn://svn.freebsd.org/base/stable/10@313214 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r311472:
ngie [Sat, 4 Feb 2017 16:00:51 +0000 (16:00 +0000)]
MFC r311472:

Conditionalize wrap(3) use based on MK_TCP_WRAPPERS instead of
always building support into amd(8).

git-svn-id: svn://svn.freebsd.org/base/stable/10@313212 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r311470:
ngie [Sat, 4 Feb 2017 15:55:31 +0000 (15:55 +0000)]
MFC r311470:

Conditionalize wrap(3) use based on MK_TCP_WRAPPERS instead of
always building support into rpcbind.

git-svn-id: svn://svn.freebsd.org/base/stable/10@313209 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312105,r312162:
ngie [Sat, 4 Feb 2017 15:52:08 +0000 (15:52 +0000)]
MFC r312105,r312162:

r312105:

Conditionalize libwrap support into inetd based on MK_TCP_WRAPPERS

This will allow inetd to stand by itself without libwrap.

Relnotes: yes

r312162:

Fix up r312105

- Only #include tcpd.h when LIBWRAP is true to avoid header include errors
- Only define whichaf when LIBWRAP is true to avoid -Wunused warning and
  to avoid issues with structs being defined that should only be defined
  when tcpd.h is included.

Pointyhat to: ngie

git-svn-id: svn://svn.freebsd.org/base/stable/10@313206 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r311263:
ngie [Sat, 4 Feb 2017 15:45:51 +0000 (15:45 +0000)]
MFC r311263:

Use calloc instead of malloc with buffers in snmp_{recv,send}_packet

This doesn't fix the issue noted in the PR, but at the very least it
cleans up the error so it looks a bit more sane, and in the event
that bsnmp did wander off into the weeds, the likelihood of it
crashing with more sensible output is greater, in my opinion

MFC counter set high so I have enough time to resolve the real
underlying bug in bsnmpwalk

PR: 215721

git-svn-id: svn://svn.freebsd.org/base/stable/10@313201 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312937:
ngie [Sat, 4 Feb 2017 15:44:49 +0000 (15:44 +0000)]
MFC r312937:

Fix typo in lib/Makefile

The SUBDIR_DEPEND variable should be for librpcsec_gss, not
liblibrpc_gss

PR: 216409

git-svn-id: svn://svn.freebsd.org/base/stable/10@313199 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC 312906:
jhb [Fri, 3 Feb 2017 23:33:06 +0000 (23:33 +0000)]
MFC 312906:
Unregister CPL handlers for TOE-related messages when unloading TOM.

Sponsored by: Chelsio Communications

git-svn-id: svn://svn.freebsd.org/base/stable/10@313178 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312001:
pfg [Fri, 3 Feb 2017 16:36:14 +0000 (16:36 +0000)]
MFC r312001:
Remove __nonnull() attributes from x86 machine check architecture.

In this case the attributes serve little purpose as they just don't
enforce run time checks, If anything the attributes would cause NULL pointer
checks to be ignored but there are no such checks so the only effect is
cosmetic.

Reviewed by: jhb, avg

git-svn-id: svn://svn.freebsd.org/base/stable/10@313165 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC from r273333 to 307002.
sevan [Fri, 3 Feb 2017 16:15:06 +0000 (16:15 +0000)]
MFC from r273333 to 307002.

git-svn-id: svn://svn.freebsd.org/base/stable/10@313161 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r289894:
kib [Fri, 3 Feb 2017 12:20:44 +0000 (12:20 +0000)]
MFC r289894:
CLFLUSH does not need barriers, the instruction is ordered WRT other writes.
Use CLFLUSHOPT when available.

MFC r312555:
Use SFENCE for ordering CLFLUSHOPT.

git-svn-id: svn://svn.freebsd.org/base/stable/10@313150 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoIn v3 UNIX, the kill utility is documented in category 8, not 1.
sevan [Fri, 3 Feb 2017 11:18:34 +0000 (11:18 +0000)]
In v3 UNIX, the kill utility is documented in category 8, not 1.
Add a note of it.
http://minnie.tuhs.org/cgi-bin/utree.pl?file=V3/man/man8/kill.8

PR: 211786
Approved by: bcr (mentor)
Obtained from: TUHS
Differential Revision: https://reviews.freebsd.org/D8105

git-svn-id: svn://svn.freebsd.org/base/stable/10@313144 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r310180, r310327
asomers [Thu, 2 Feb 2017 23:04:01 +0000 (23:04 +0000)]
MFC r310180, r310327

r310180:
Fix panic during lagg destruction with simultaneous status check

If you run "ifconfig lagg0 destroy" and "ifconfig lagg0" at the same time a
page fault may result. The first process will destroy ifp->if_lagg in
lagg_clone_destroy (called by if_clone_destroy). Then the second process
will observe that ifp->if_lagg is NULL at the top of lagg_port_ioctl and
goto fallback: where it will promptly dereference ifp->if_lagg anyway.

The solution is to repeat the NULL check for ifp->if_lagg

MFC after: 4 weeks
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D8512

r310327:
Remove stray debugging code from r310180

Reported by: rstone
Pointy hat to: asomers
MFC after: 3 weeks
X-MFC-with: 310180
Sponsored by: Spectra Logic Corp

git-svn-id: svn://svn.freebsd.org/base/stable/10@313112 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r311160, r311210, r311288, r311292, r311298, r311340
asomers [Thu, 2 Feb 2017 19:50:28 +0000 (19:50 +0000)]
MFC r311160, r311210, r311288, r311292, r311298, r311340

r311160:
misc minor fixes in mpr(4)

sys/dev/mpr/mpr_sas.c
* Fix a potential null pointer dereference (CID 1305731)
* Check for overrun of the ccb_scsiio.cdb_io.cdb_bytes buffer (CID
  1211934)

sys/dev/mpr/mpr_sas_lsi.c
* Nullify a dangling pointer in mprsas_get_sata_identify
* Fix a memory leak in mprsas_SSU_to_SATA_devices (CID 1211935)

Reported by: Coverity (partially)
CID: 1305731 1211934 1211935
Reviewed by: slm
MFC after: 4 weeks
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D8880

r311210:
Quell Coverity for diskinfo(8)

* CID 1198994: Don't run the speed disk on a disk with no sectors
* CID 1011442: Don't call close(2) if open(2) fails
* CID 1011161: Use snprintf instead of sprintf
* CID 1009825: Check the return value of lseek

Reported by: Coverity
CID: 1198994 1011442 1011161 1009825
MFC after: 4 weeks
Sponsored by: Spectra Logic Corp

r311288:
Delete dead code in chat(8)

It's always been dead, ever since first import in 1994.  It's still dead in
OpenBSD's version, too.

Reported by: Coverity
CID: 270586
MFC after: 4 weeks
Sponsored by: Spectra Logic Corp

r311292:
Remove dead code in rpc_parse.c

It's been dead ever since it was imported from TI-RPC in 1995.  The dead
code is still present in Illumos today, but was removed from NetBSD in 2006.

Reported by: Coverity
CID: 270097
Obtained from: NetBSD
MFC after: 4 weeks
Sponsored by: Spectra Logic Corp

r311298:
Remove dead code in dhclient(8)

The offending code has been dead ever since the import from OpenBSD in
r195805.  OpenBSD later deleted that entire function.

Reported by: Coverity
CID: 500059
MFC after: 4 weeks
Sponsored by: Spectra Logic Corp

r311340:
Misc Coverity fixes for tail(1)

CID 1006402: Initialize stack variable
CID 271580: Don't leak memory when ENOMEM.

Reported by: Coverity
CID: 271580 1006402
MFC after: 4 weeks
Sponsored by: Spectra Logic Corp

git-svn-id: svn://svn.freebsd.org/base/stable/10@313103 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312649:
kib [Thu, 2 Feb 2017 13:40:37 +0000 (13:40 +0000)]
MFC r312649:
Document mount option "nonc" for tmpfs.

git-svn-id: svn://svn.freebsd.org/base/stable/10@313096 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312432:
kib [Thu, 2 Feb 2017 13:39:11 +0000 (13:39 +0000)]
MFC r312432:
Add a mount option for tmpfs(5) to not use namecache.

git-svn-id: svn://svn.freebsd.org/base/stable/10@313095 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312430:
kib [Thu, 2 Feb 2017 13:38:01 +0000 (13:38 +0000)]
MFC r312430:
Implement VOP_VPTOCNP() for tmpfs.

git-svn-id: svn://svn.freebsd.org/base/stable/10@313094 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312429:
kib [Thu, 2 Feb 2017 13:37:00 +0000 (13:37 +0000)]
MFC r312429:
VNON nodes cannot exist.

git-svn-id: svn://svn.freebsd.org/base/stable/10@313093 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312428:
kib [Thu, 2 Feb 2017 13:36:07 +0000 (13:36 +0000)]
MFC r312428:
Refcount tmpfs nodes and mount structures.

git-svn-id: svn://svn.freebsd.org/base/stable/10@313092 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312728
davidcs [Thu, 2 Feb 2017 00:20:53 +0000 (00:20 +0000)]
MFC r312728
    Added support for if_transmit and if_qflush
    Removed if_start
    updated version to 3.10.33

git-svn-id: svn://svn.freebsd.org/base/stable/10@313072 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC 312782
kp [Wed, 1 Feb 2017 21:44:50 +0000 (21:44 +0000)]
MFC 312782

bridge: Release the bridge lock when calling bridge_set_ifcap()

This calls ioctl() handlers for the different interfaces in the bridge.
These handlers expect to get called in an ioctl context where it's safe
for them to sleep. We may not sleep with the bridge lock held.

However, we still need to protect the interface list, to ensure it
doesn't get changed while we iterate over it.
Use BRIDGE_XLOCK(), which prevents bridge members from being removed.
Adding bridge members is safe, because it uses LIST_INSERT_HEAD().

This caused panics when adding xen interfaces to a bridge.

PR: 216304
Reviewed by: ae
Sponsored by: RootBSD
Differential Revision: https://reviews.freebsd.org/D9290

git-svn-id: svn://svn.freebsd.org/base/stable/10@313066 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312678: Eliminate misleading comments and dead code in
rpokala [Wed, 1 Feb 2017 04:54:23 +0000 (04:54 +0000)]
MFC r312678: Eliminate misleading comments and dead code in
lacp_port_create()

Variables "fast" and "active" are both constant in lacp_port_create(), but
comments mispleadingly suggest that "fast" can be changed via ioctl. The
constant values control the value of "lp->lp_state", so it too is constant,
and the code for assigning different value to it is essentially dead.

Remove both "fast" and "active", and set "lp->lp_state" unconditionally;
that gets rid of the dead code and misleading comments.

git-svn-id: svn://svn.freebsd.org/base/stable/10@313039 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312531: vmm_dev: work around a bogus error with gcc 6.3.0
avg [Mon, 30 Jan 2017 14:34:04 +0000 (14:34 +0000)]
MFC r312531: vmm_dev: work around a bogus error with gcc 6.3.0

git-svn-id: svn://svn.freebsd.org/base/stable/10@312990 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312228: Make `camcontrol cmd ... -i ...` return only valid bytes.
mav [Sun, 29 Jan 2017 14:29:02 +0000 (14:29 +0000)]
MFC r312228: Make `camcontrol cmd ... -i ...` return only valid bytes.

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

git-svn-id: svn://svn.freebsd.org/base/stable/10@312951 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312647:
kib [Sun, 29 Jan 2017 10:36:43 +0000 (10:36 +0000)]
MFC r312647:
Add comments explaining unobvious td_critnest adjustments in
critical_exit().

git-svn-id: svn://svn.freebsd.org/base/stable/10@312946 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312699:
tijl [Fri, 27 Jan 2017 10:05:17 +0000 (10:05 +0000)]
MFC r312699:

Apply r210555 to 64 bit linux support:

The interpreter name should no longer be treated as a buffer that can be
overwritten.

PR: 216346

git-svn-id: svn://svn.freebsd.org/base/stable/10@312873 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFH: r310426
julian [Fri, 27 Jan 2017 09:07:11 +0000 (09:07 +0000)]
MFH: r310426

If you are going to be run individually to make a new timezone set
then ensure the destination directories exist.
Especially if you define OLDTIMEZONES because the mtree pass
doesn't do it for you.

MFC after: 1 week
Sponsored by: Panzura

git-svn-id: svn://svn.freebsd.org/base/stable/10@312870 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFH: r308671
julian [Fri, 27 Jan 2017 09:04:29 +0000 (09:04 +0000)]
MFH: r308671

When you select make OLDTIMEZONES=1 then you need a few added directories
to be made or the command fails

Sponsored by: panzura

git-svn-id: svn://svn.freebsd.org/base/stable/10@312869 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoBackport OpenSSL commit 56336b6c7a75ed28067cadedd8ac46572348bc2f:
delphij [Fri, 27 Jan 2017 07:45:06 +0000 (07:45 +0000)]
Backport OpenSSL commit 56336b6c7a75ed28067cadedd8ac46572348bc2f:

    crypto/evp: harden RC4_MD5 cipher.

    Originally a crash in 32-bit build was reported CHACHA20-POLY1305
    cipher. The crash is triggered by truncated packet and is result
    of excessive hashing to the edge of accessible memory (or bogus
    MAC value is produced if x86 MD5 assembly module is involved). Since
    hash operation is read-only it is not considered to be exploitable
    beyond a DoS condition.

    Thanks to Robert Święcki for report.

This is a direct commit to stable/10.

Security: CVE-2017-3731

git-svn-id: svn://svn.freebsd.org/base/stable/10@312863 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312533: Report disk addition errors on `add` or `create` subcommand.
mav [Fri, 27 Jan 2017 05:59:26 +0000 (05:59 +0000)]
MFC r312533: Report disk addition errors on `add` or `create` subcommand.

git-svn-id: svn://svn.freebsd.org/base/stable/10@312862 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoDisable assembly sources when compiler/assembler cannot compile certain
jkim [Thu, 26 Jan 2017 23:29:30 +0000 (23:29 +0000)]
Disable assembly sources when compiler/assembler cannot compile certain
instructions.

Note this is a direct commit because head and stable/11 has OpenSSL 1.0.2
branch.  However, it is based on r304320.

Requested by: julian

git-svn-id: svn://svn.freebsd.org/base/stable/10@312851 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r296891 (by imp):
mav [Thu, 26 Jan 2017 21:35:58 +0000 (21:35 +0000)]
MFC r296891 (by imp):
Make sure we check for CAM_CDB_POINTER for all drivers. Also, for the
drivers I've touched, filter out CAM_CDB_PHYS.

Differential Revision: https://reviews.freebsd.org/D5585

git-svn-id: svn://svn.freebsd.org/base/stable/10@312850 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312232: Add under-/overrun support to IOCTL and CAM SIM frontends.
mav [Thu, 26 Jan 2017 21:21:59 +0000 (21:21 +0000)]
MFC r312232: Add under-/overrun support to IOCTL and CAM SIM frontends.

git-svn-id: svn://svn.freebsd.org/base/stable/10@312849 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312231: When in kernel, map ctl_scsi_zero_io() to ctl_zero_io().
mav [Thu, 26 Jan 2017 21:08:58 +0000 (21:08 +0000)]
MFC r312231: When in kernel, map ctl_scsi_zero_io() to ctl_zero_io().

git-svn-id: svn://svn.freebsd.org/base/stable/10@312847 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312026: Improve CAM_CDB_POINTER support.
mav [Thu, 26 Jan 2017 21:07:46 +0000 (21:07 +0000)]
MFC r312026: Improve CAM_CDB_POINTER support.

git-svn-id: svn://svn.freebsd.org/base/stable/10@312845 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r311873: Fix malloc(M_WAITOK) under mutex, introduced at r311787.
mav [Thu, 26 Jan 2017 21:02:06 +0000 (21:02 +0000)]
MFC r311873: Fix malloc(M_WAITOK) under mutex, introduced at r311787.

git-svn-id: svn://svn.freebsd.org/base/stable/10@312843 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r311804: Rewrite CTL statistics in more simple and scalable way.
mav [Thu, 26 Jan 2017 21:00:49 +0000 (21:00 +0000)]
MFC r311804: Rewrite CTL statistics in more simple and scalable way.

Instead of collecting statistics for each combination of ports and logical
units, that consumed ~45KB per LU with present number of ports, collect
separate statistics for every port and every logical unit separately, that
consume only 176 bytes per each single LU/port.  This reduces struct
ctl_lun size down to just 6KB.

Also new IOCTL API/ABI does not hardcode number of LUs/ports, and should
allow handling of very large quantities.

Old API is still enabled in stable branches for compatibility reasons.

git-svn-id: svn://svn.freebsd.org/base/stable/10@312841 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r311787: Allocate memory for prevent flags only for removable LUs.
mav [Thu, 26 Jan 2017 20:57:48 +0000 (20:57 +0000)]
MFC r311787: Allocate memory for prevent flags only for removable LUs.

This array takes 64KB of RAM now, that was more then half of struct ctl_lun
size.  If at some point we support more ports, this may need another tune.

git-svn-id: svn://svn.freebsd.org/base/stable/10@312839 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r311680: Make CTL_GETSTATS ioctl return partial data if buffer is small.
mav [Thu, 26 Jan 2017 20:51:50 +0000 (20:51 +0000)]
MFC r311680: Make CTL_GETSTATS ioctl return partial data if buffer is small.

git-svn-id: svn://svn.freebsd.org/base/stable/10@312837 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r310778, r310782: Improve use of I/O's private area.
mav [Thu, 26 Jan 2017 20:50:01 +0000 (20:50 +0000)]
MFC r310778, r310782: Improve use of I/O's private area.

 - Since I/Os are allocates from per-port pools, make allocations store
pointer to CTL softc there, and use it where needed instead of global.
 - Created bunch of helper macros to access LUN, port and CTL softc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@312835 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r310786, r310803, r310985, r311894
asomers [Thu, 26 Jan 2017 20:10:31 +0000 (20:10 +0000)]
MFC r310786, r310803, r310985, r311894

r310786:
Reduce the runtime of the GELI tests

There is no reduction in test coverage.  On my system runtime is reduced
from 38m32s to 6m24s.

tests/sys/geom/class/eli/conf.sh
tests/sys/geom/class/eli/init_a_test.sh
tests/sys/geom/class/eli/init_test.sh
tests/sys/geom/class/eli/integrity_copy_test.sh
tests/sys/geom/class/eli/integrity_data_test.sh
tests/sys/geom/class/eli/integrity_hmac_test.sh
tests/sys/geom/class/eli/onetime_a_test.sh
tests/sys/geom/class/eli/onetime_test.sh
Move the looping code into common functions in conf.sh, and remove
alias ciphers from the list.

tests/sys/geom/class/eli/init_a_test.sh
tests/sys/geom/class/eli/init_test.sh
tests/sys/geom/class/eli/integrity_copy_test.sh
tests/sys/geom/class/eli/integrity_data_test.sh
tests/sys/geom/class/eli/integrity_hmac_test.sh
tests/sys/geom/class/eli/onetime_a_test.sh
Move a few commands that don't need to be in the inner loop out.

tests/sys/geom/class/eli/init_test.sh
tests/sys/geom/class/eli/onetime_a_test.sh
Reduce the sector count

tests/sys/geom/class/eli/Makefile
tests/sys/geom/class/eli/init_alias_test.sh
Add a test for initializing a GELI device using one of the cipher
aliases, and check that the alias is correctly interpreted.

MFC after: 4 weeks
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D8814

r310803:
ATFify the gnop tests

Also, add test cases for the -p, -P, and -s options to gnop create

Reviewed by: ngie
MFC after: 4 weeks
Differential Revision: https://reviews.freebsd.org/D8892

r310985:
Update ObsoleteFiles.inc for r310803

MFC after: 26 days
X-MFC-with: 310803

r311894:
Fix typo from change 310985 in ObsoleteFiles.inc

MFC after: 16 days
X-MFC-With: 310803
Sponsored by: Spectra Logic Corp

git-svn-id: svn://svn.freebsd.org/base/stable/10@312828 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312532: don't abort writing of a core dump after EFAULT
avg [Thu, 26 Jan 2017 16:38:53 +0000 (16:38 +0000)]
MFC r312532: don't abort writing of a core dump after EFAULT

Note that this change substantially differs from the change in head
because of an unmerged earlier change that probably can not be merged
for POLA reasons.

git-svn-id: svn://svn.freebsd.org/base/stable/10@312819 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312423:
kib [Thu, 26 Jan 2017 11:07:36 +0000 (11:07 +0000)]
MFC r312423:
Refresh tmpfs(5) man page.

MFC r312648:
Editing and clarifications for tmpfs(5).

git-svn-id: svn://svn.freebsd.org/base/stable/10@312811 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312425:
kib [Thu, 26 Jan 2017 11:04:27 +0000 (11:04 +0000)]
MFC r312425:
Make tmpfs directory cursor available outside tmpfs_subr.c.

git-svn-id: svn://svn.freebsd.org/base/stable/10@312809 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312414:
kib [Thu, 26 Jan 2017 11:00:57 +0000 (11:00 +0000)]
MFC r312414:
Rename tmpfs_mount member allnode_lock to include namespace prefix.

git-svn-id: svn://svn.freebsd.org/base/stable/10@312807 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312410:
kib [Thu, 26 Jan 2017 10:55:56 +0000 (10:55 +0000)]
MFC r312410:
Rework some tmpfs lock assertions.

MFC r312412:
Protect macro argument.

git-svn-id: svn://svn.freebsd.org/base/stable/10@312805 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312409:
kib [Thu, 26 Jan 2017 10:49:45 +0000 (10:49 +0000)]
MFC r312409:
Style fixes and comment updates.

MFC r312435:
Remove mistakenly merged field.

git-svn-id: svn://svn.freebsd.org/base/stable/10@312803 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312407:
kib [Thu, 26 Jan 2017 10:43:36 +0000 (10:43 +0000)]
MFC r312407:
Remove unused union member, fifos on tmpfs are implemented in common code.

git-svn-id: svn://svn.freebsd.org/base/stable/10@312801 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312124 (by mjg):
kib [Thu, 26 Jan 2017 10:35:04 +0000 (10:35 +0000)]
MFC r312124 (by mjg):
tmpfs: manage tm_pages_used with atomics.

git-svn-id: svn://svn.freebsd.org/base/stable/10@312799 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r311531 (by mjg):
kib [Thu, 26 Jan 2017 10:29:23 +0000 (10:29 +0000)]
MFC r311531 (by mjg):
Perform a lockless check in tmpfs_itimes.

git-svn-id: svn://svn.freebsd.org/base/stable/10@312798 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r311933:
dim [Wed, 25 Jan 2017 20:12:07 +0000 (20:12 +0000)]
MFC r311933:

Use proper prototypes in struct boot_module_t

With clang 4.0.0, we are getting the following warnings about struct
boot_module_t in efi's boot_module.h:

In file included from sys/boot/efi/boot1/ufs_module.c:41:
sys/boot/efi/boot1/boot_module.h:67:14: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
        void (*init)();
                    ^
                     void
sys/boot/efi/boot1/boot_module.h:92:16: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
        void (*status)();
                      ^
                       void
sys/boot/efi/boot1/boot_module.h:95:24: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
        dev_info_t *(*devices)();
                              ^
                               void
3 errors generated.

Fix this by adding 'void' to the parameter lists.  No functional change.

Reviewed by: emaste, imp, smh
Differential Revision: https://reviews.freebsd.org/D9144

git-svn-id: svn://svn.freebsd.org/base/stable/10@312773 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r311932:
dim [Wed, 25 Jan 2017 19:55:35 +0000 (19:55 +0000)]
MFC r311932:

Make EFI_RESERVED_SERVICE a proper prototype

With clang 4.0.0, the EFI API header causes the following warning:

In file included from sys/boot/efi/loader/bootinfo.c:43:
In file included from sys/boot/efi/loader/../include/efi.h:52:
sys/boot/efi/include/efiapi.h:534:32: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
(EFIAPI *EFI_RESERVED_SERVICE) (
                               ^

Add VOID to make it into a real prototype.

Reviewed by: imp, emaste, tsoome
Differential Revision: https://reviews.freebsd.org/D9132

git-svn-id: svn://svn.freebsd.org/base/stable/10@312772 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r311929:
dim [Wed, 25 Jan 2017 19:16:24 +0000 (19:16 +0000)]
MFC r311929:

Don't include <errno.h> in reloc_elf.c, as it includes <stand.h> just
after it, which has a conflicting definition of errno.  This leads to
the following warning with clang 4.0.0:

    In file included from sys/boot/common/reloc_elf32.c:6:
    In file included from sys/boot/common/reloc_elf.c:37:
    /usr/obj/usr/src/tmp/usr/include/stand.h:155:12: error: this function declaration is not a prototype [-Werror,-Wstrict-prototypes]
    extern int errno;
               ^
    sys/sys/errno.h:46:26: note: expanded from macro 'errno'
    #define errno           (* __error())
                                      ^

git-svn-id: svn://svn.freebsd.org/base/stable/10@312771 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r311935: Pretend we support some IOCTLs to not scary upper layers.
mav [Wed, 25 Jan 2017 07:51:53 +0000 (07:51 +0000)]
MFC r311935: Pretend we support some IOCTLs to not scary upper layers.

git-svn-id: svn://svn.freebsd.org/base/stable/10@312742 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r311886:
kib [Tue, 24 Jan 2017 17:30:13 +0000 (17:30 +0000)]
MFC r311886:
Fix acquisition of nested write compat rtld locks.

PR: 215826

git-svn-id: svn://svn.freebsd.org/base/stable/10@312701 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r310025:
bdrewery [Tue, 24 Jan 2017 16:47:06 +0000 (16:47 +0000)]
MFC r310025:

  Take write lock for rtld_bind before modifying obj_list in dl_iterate_phdr().

git-svn-id: svn://svn.freebsd.org/base/stable/10@312700 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

7 years agoMFC r312426: fix a thread preemption regression in schedulers introduced
avg [Mon, 23 Jan 2017 08:34:51 +0000 (08:34 +0000)]
MFC r312426: fix a thread preemption regression in schedulers introduced
in r270423

git-svn-id: svn://svn.freebsd.org/base/stable/10@312666 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f