201823 Commits

Author SHA1 Message Date
bdrewery
58d1ec81b5 MFC r295416:
Fix the gcc build after r295407.
2016-03-12 19:55:22 +00:00
bdrewery
7ea2f616f5 MFC r268620,r294876,r294877:
r268620:
    Make generation of nslexer.c more robust.
  r294876:
    nslexer.c does not depend on nsparser.h.
  r294877:
    Replace nslexer.l->nslexer.c custom rule with a -D CFLAG.
2016-03-12 19:26:21 +00:00
bdrewery
77add9891c MFC r294873:
Set a value for _RECURSING_PROGS for debugging.
2016-03-12 19:22:19 +00:00
bdrewery
759a230631 MFC r294878:
Revert yacc dependency back to pre-r241298.
2016-03-12 19:20:48 +00:00
bdrewery
cef333a239 MFC r296148:
Remove old compatibility checks.
2016-03-12 19:18:27 +00:00
ngie
95255619b4 MFC r294899:
Add debug output via ATF_REQUIRE_MSG when the first call to
mlock(2) fails

This helps identify the problem with running this test on my VM
hosts (ENOMEM)
2016-03-12 19:15:09 +00:00
bdrewery
7a860d9998 MFC r296554:
Remove things set already by bsd.progs.mk.
2016-03-12 19:14:21 +00:00
bdrewery
0eb32809a3 MFC r296122:
(partial) Move PROGS logic to proper place and remove redundant and unneeded
  logic.
2016-03-12 19:12:52 +00:00
ngie
c0e4c5b1be MFC r295079:
Fix the type for hw.ncpu, so sysctlbyname doesn't consistently fail on
64-bit architectures where sizeof(int) != sizeof(size_t).

PR: 206758
2016-03-12 19:09:51 +00:00
bdrewery
1273e6f0a5 MFC r296322:
Remove self-reference to destroy_dev_drain(9).
2016-03-12 19:08:58 +00:00
bdrewery
bb2a228f2d MFC r296286,r296470,r296472,r296473,r296575:
r296286:
    Remove filemon->lock wrappers.
  r296470:
    Only call bwillwrite() for logging to vnodes, as other fo_write() calls do.
  r296472:
    Require kldunload -f to unload.
  r296473:
    Add missing break for r296472.
  r296575:
    FILEMON_SET_FD: Disallow changing the fd.
2016-03-12 19:07:21 +00:00
ngie
c677bff3bc MFC r294894:
Adjust vm.max_wired in order to avoid hitting EAGAIN artificially

Set vm.max_wired to INT_MAX in :mlock_err, :mlock_mmap, and :mlock_nested to
avoid hitting EAGAIN artificially on the system when running the tests

Require root privileges in order to set the sysctl

Add allow_sysctl_side_effects to require.config as this test is now adjusting
sysctls that can affect the global system state

Unlike the version submitted by cem in OneFS, this version uses a scratch file
to save/restore the previous value of the sysctl. I _really_, _really_ wish
there were better hooks in atf/kyua for per test suite setup/teardown -- using
a file is kludgy, but it's the best I can do to avoid situations where (for
instance), sysctl(3) may fail and drop a core outside the kyua sandbox.

Based on a patch submitted by cem, but modified to take business logic out of
ATF_TP_ADD_TCS(3).
2016-03-12 19:05:49 +00:00
bdrewery
34083fb879 MFC r295161,r296014:
r295161:
    Add order for installworld/distribution.
  r296014:
    Add order for installworld/installkernel.
2016-03-12 19:02:20 +00:00
ngie
9400610a2a MFC r295341,r295345:
r295341:

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

r295345:

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
2016-03-12 19:00:42 +00:00
bdrewery
8f12226c9d MFC r296002,r296012:
r296002:
    Don't hide AR command as bsd.lib.mk's r283925 changed as well.
  r296012:
    OBJS and POBJS have not been used since r215127.
2016-03-12 18:59:03 +00:00
bdrewery
2f1fc2d5b3 MFC r295994,r296000:
r295994:
    PROGS: Remove the 'build one' optimization since it breaks 'build multiple'
  r296000:
    PROGS: Only the main process will install INCS.
2016-03-12 18:57:34 +00:00
ngie
e3064c8217 MFC r295121:
Delete argsize to fix a -Wunused-but-set-variable warning with gcc 4.9

The variable isn't actually checked -- just the end result which gets
returned from the function
2016-03-12 18:55:48 +00:00
bdrewery
86df18f4d7 MFC r295980:
Support a WANT_MAKE_VERSION.
2016-03-12 18:55:16 +00:00
bdrewery
dbe4d1ae87 MFC r295977:
Properly fix these builds by adding NO_WMISSING_VARIABLE_DECLARATIONS from
  r249657.
2016-03-12 18:54:02 +00:00
bdrewery
5c226c45bf MFC r295976:
PROGS: Only recurse on called targets like done for SUBDIR in r291635.
2016-03-12 18:51:38 +00:00
ngie
08c25d7f54 MFC r295119:
Remove `r_tmp` to fix a -Wunused-but-set-variable warning with gcc 4.9
2016-03-12 18:40:51 +00:00
ngie
eba45f2252 MFC r295118:
Add #include <string.h> to mute warning from clang/gcc about implicitly
declaring strcmp(3)
2016-03-12 18:36:13 +00:00
kib
32bf5aa11d MFC r295407:
Make libc __pthread_map_stacks_exec() interposed.
2016-03-12 17:33:40 +00:00
kib
5dfb941cf3 MFC r295391:
Remove the assert which outlived its usefulness.
2016-03-12 17:28:30 +00:00
kib
ee3cc41029 MFC r295352:
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.
2016-03-12 17:25:33 +00:00
kib
82697125f9 MFC r295489:
Remove useless checks for NULL before calling free(9), in the kernel
elf linkers.
2016-03-12 17:23:15 +00:00
kib
3e19d6cd95 MFC r295488:
Finish r173600.  There is no need to test a condition if both cases
result in the same value.
2016-03-12 17:17:34 +00:00
kib
ec1f9b79e4 MFC r257811 (by markj):
Include rtld itself when iterating over loaded ELF objects in
dl_iterate_phdr(3).

MFC r294373:
Do not call callbacks for dl_iterate_phdr(3) with the rtld bind and
phdr locks locked.

MFC r294470 (by kan):
Fix initlist_add_object invocation parameters.

MFC r294936 (by kan):
Do not unlock rtld_phdr_lock over callback invocations.
2016-03-12 17:12:00 +00:00
ae
e8f36718c8 MFC r296348:
Use correct size for malloc.
2016-03-11 09:41:46 +00:00
jgh
46f91bf277 MFC 296280:
PR:		202971
Submitted by:	adamw@FreeBSD.org
Reviewed by:	bdrewery@
Approved by:	wblock@
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D5429
2016-03-11 01:39:28 +00:00
smh
56a459a556 MFC r296610:
ZFS send fails to transmit some holes

PR:		207714
Approved by:	re (gjb)
Sponsored by:	Multiplay
2016-03-10 23:37:16 +00:00
davidcs
ab9009c5b1 MFC r296071
Upgrade the firmware carried in driver and loaded during hardware
initialization (a.k.a STORM firmware) to version 7.13.1 (latest version)
2016-03-09 21:30:21 +00:00
truckman
46d6e7eb7f MFC r283869 (by araujo)
Fix the wrong format, format specifies type 'int' but the argument has type
'long', it was spotted by clang.
2016-03-09 17:40:33 +00:00
kib
ad5b5f3479 MFC r295966:
Return dst as the result from memcpy(9) on amd64.

PR:	207422
2016-03-09 10:21:13 +00:00
kib
4513fe819a MFC r296009:
In bpf_getdltlist(), do not call copyout(9) while holding bpf lock.
Copy the data into temprorary malloced buffer and drop the lock for
copyout.
2016-03-09 10:19:32 +00:00
kib
292b9f2cb8 MFC r295998:
Remove references to Giant in the description of vrele(9).  Add notes
about vnode lock and sleeping.

MFC r296001:
Fix year.
2016-03-09 10:09:51 +00:00
ae
1febe34ecc MFC r295967:
Fix useless check. m_pkthdr.len should be equal to orglen.
2016-03-09 10:01:28 +00:00
vangyzen
9ec2d8a930 MFC r281920,r284247,r284248,r295651
ichsmb: Add PCI device IDs for Intel Sunrise Point-H,
Wellsburg, and Lynx-Point LP SMBus controllers.
Remove whitespace.

Sponsored by:	Dell Inc.
2016-03-08 20:24:12 +00:00
pfg
2bc4f2cf6d MFC r295675:
Fix "naive" use of ftell(3).

Secure coding practices, FIO19-C.
2016-03-08 14:38:06 +00:00
pfg
1c6432f96a MFC r295672:
crontab: ftruncate() with ftello() instead of ftell().

Obtained from:	OpenBSD (CVS rev. 1.47)
2016-03-07 16:18:52 +00:00
pfg
b970e68474 MFC r295671:
cron: use (char *)NULL instead of (char *)0 in execle.

Obtained from:	OpenBSD (CVS Rev 1.25)
2016-03-07 16:12:04 +00:00
pfg
47594cfc51 MFC r295861:
ostiInitiatorIOCompleted(): wrong sizeof() argument.

Detected by:	PVS Static Analysis
CID:		1331601, 1331523
2016-03-07 16:05:53 +00:00
pfg
78d56d66f1 MFC r295810:
firewire: fix a mismatch introduced in r230558.

Found by:	PVS Static Analysis
Reviewed by:	sbruno
2016-03-07 15:52:51 +00:00
sbruno
3ff26b9898 Spell "maximum" correctly.
noted by mav@
2016-03-07 13:43:23 +00:00
hrs
81dfa2bb6c Trim old entries. 2016-03-07 10:59:28 +00:00
hrs
ce83b88ad4 - Use FPI and catalog resolution instead of system entities. This change
fixes build with a non-standard DOC_PREFIX, but it is still a temporal
  measure because some of them should be done by using XInclude,
  not by entity reference.

- Trim old entries and bump version numbers.
2016-03-07 10:56:38 +00:00
hselasky
cdf5f4b65c MFC r295928:
Configure the correct bMaxPacketSize for control endpoints before
requesting the initial complete device descriptor and not as part of
the subsequent babble error recovery. Babble means that the received
USB packet was bigger than than configured maximum packet size. This
only affects enumeration of FULL speed USB devices which use a
bMaxPacketSize different from 8 bytes. This patch might help fix
enumeration of USB devices which exhibit USB I/O errors in dmesg
during boot.
2016-03-07 09:42:16 +00:00
hselasky
282cd742b3 MFC r295923:
Be more verbose when truncating number of HID items.

Suggested by:	Larry Rosenman <ler@lerctr.org>
2016-03-07 09:37:07 +00:00
hselasky
c0ccd0c621 MFC r295608:
Fix variable assignment inside if-clause in the smsc driver.
Found by D5245 / PVS.
2016-03-07 09:35:20 +00:00
mav
ff98f4927c MFC r296392: Set bhsdi_target_transfer_tag to reserved value, which is
0xffffffff.

This should be a purely cosmetic change.
2016-03-07 09:00:27 +00:00