5864 Commits

Author SHA1 Message Date
ian
2651e6b1c6 MFC r292337, r292552, r292553:
Build mount_smbfs for arm.  Also sort the subdirs.

  Avoid unaligned memory accesses when encoding netbios names in libsmb.

  The current code for encoding a netbios name converts each byte to a 16-bit
  value and stores the result by casting a char* to u_short*, resulting in
  alignment faults on strict-alignment platforms.

  This change reimplements the encoding routine using only byte accesses to
  memory. There is no particular reason to work with 16-bit values just
  because the encoding process creates two bytes of output for every byte of
  input. Working a byte at at time also avoids endian problems for big-endian
  platforms.

  Make the building of libsmb and mount_smbfs unconditional, now that r292552
  has eliminated alignment and endian problems that were making it fail on
  some platforms.

PR:           180438
PR:           189415
Relnotes:	Yes
2016-01-19 23:36:49 +00:00
delphij
2a668e7e33 MFC r288303: MFV r288243: nc from OpenBSD 5.8. 2016-01-18 19:42:05 +00:00
delphij
fa1e90c82b MFC r293190: MFV r293125: less v481.
Relnotes:	yes
2016-01-18 19:13:54 +00:00
des
5e1cc08a89 MFH (r262530): fix is_upper() predicate (almost two years late...)
MFH (r271614): remove incorrect svn properties
MFH (r274145): cast-qual bugs in tests
MFH (r288070): restore correct module search path semantics

Also merge upstream r854, committed to head as part of r280031, which
fixes cast-qual bugs in libpam itself.
2016-01-16 19:48:03 +00:00
des
dc5c74f3f1 MFH (r292206): upgrade to Unbound 1.5.7
MFH (r292135): run configure script with correct compiler
2016-01-16 19:06:12 +00:00
dim
8391ee29eb MFC r292950:
Drop the clang patch which adds recognition of 'CC' suffixes as aliases
for --driver-mode=g++, since this was never upstreamed.  For backwards
compatibility, add a wrapper shell script.
2016-01-12 19:33:43 +00:00
glebius
c41fbaf9bc Merge r293423, r293469:
ntp 4.2.8p5

Relnotes:	yes
2016-01-11 01:09:50 +00:00
sjg
5c355abf02 bmake 20151220 2016-01-04 20:05:40 +00:00
brueffer
144eea3874 MFH: 292432,r292433,r292434
- Merge OpenBSM 1.2 alpha 4.
- Regenerate config.h for OpenBSM 1.2 alpha 4.
- Add au_notify.2 and MLINKs (added in OpenBSM 1.2 alpha 4).

Relnotes:	yes
2016-01-04 16:32:21 +00:00
ngie
3f2a3e5af6 MFC r292815:
Staticize several variables that are used exclusively in bsnmpd/main.c and
bsnmpd/trap.c

This fixes several -Wmissing-variable-declaration warnings noted by clang
2016-01-04 07:03:58 +00:00
dim
36078867df MFC r293015:
Merge r293013 from clang380-import branch:

Fix a clang 3.8.0 warning in pflogd.c:

contrib/pf/pflogd/pflogd.c:769:8: error: logical not is only applied to the left hand side of this comparison [-Werror,-Wlogical-not-parentheses]
		       if (!if_exists(interface) == -1) {
					   ^                     ~~

The if_exists() function does not return -1, and even if it did, it
would not be the correct way to check.  Just ditch the == -1 instead.

Obtained from:	OpenBSD's pflogd.c 1.49
2016-01-03 17:23:16 +00:00
ngie
ec816a9eb6 MFC r292710:
Remove unused function `act_getkernstring`

This fixes a clang -Wunused warning

Differential Revision: https://reviews.freebsd.org/D4697
Reported by: Jenkins
Reviewed by: araujo, bapt
Sponsored by: EMC / Isilon Storage Division
2015-12-31 19:32:46 +00:00
ngie
fded02003e MFC nv(3) and part of nv(9) to stable/10
This includes the following revisions from head:

r258065,r258594,r259430,r260222,r261407,r261408,r263479,r264021,r266351,
r269603,r271026,r271027,r271028,r271241,r271578,r271579,r271847,r272102,
r272843,r273752,r277920,r277921,r277925,r277926,r277927,r279421,r279422,
r279423,r279424,r279425,r279426,r279427,r279428,r279429,r279430,r279431,
r279432,r279434,r279435,r279436,r279438,r279439,r279440,r279760,r282122,
r282254,r282257,r282304,r282312,r285339,r288340

This change reverts stable/10@r282122 and stable/10@r288340, and re-MFCs the
series again (r282122, r285339, and r288340).

More changes are pending to nv(9)/pci(4) after further review/work. Please see
the Phabricator review for more details (both https://reviews.freebsd.org/D4232
and https://reviews.freebsd.org/D4249 ).

- Tested with:
-- Booting VMware Fusion 8.1.0 running on a Haswell Apple Macbook Pro
-- Booting a Haswell machine with zfs and running some stress workloads with
   VirtualBox guests
-- make tinderbox
-- kyua test -k /usr/tests/lib/libnv

Differential Revision: https://reviews.freebsd.org/D4249 (part of a larger diff)
Relnotes: yes
Reviewed by: oshogbo (implicit), sbruno (implicit)
Submitted by: Kevin Bowling <kevin.bowling@kev009.com>
Sponsored by: EMC / Isilon Storage Division
2015-12-31 03:28:14 +00:00
ngie
27241dd28b MFC r292581:
Use stable output to a test file instead of depending on the OS name being
grep'able in /bin/sh

This fixes the situation where the OS has been rebranded to something other
than `FreeBSD`

Obtained from: Isilon OneFS (^/onefs/head@r511419)
Reviewed by: cem, Daniel O'Connor <darius@dons.net.au>
Sponsored by: EMC / Isilon Storage Division
2015-12-29 01:07:00 +00:00
ngie
1afba7abbc MFC r292578:
Don't dump core files with lib/libc/ssp/ssp_test and lib/libc/gen/assert_test

The default `sysctl kern.corefile` value is compatible with `kyua test` (FreeBSD
will dump to the current directory). If it's set to an absolute path however,
`kyua test` will not be able to clean up the corefiles after the fact

The corefiles have little value when testing the behavior of feature behavior,
so just disable corefile generation

Obtained from: Isilon OneFS (^/onefs/head@r511419)
Sponsored by: EMC / Isilon Storage Division
2015-12-29 01:05:48 +00:00
brueffer
93f5797f20 MFH: r292263
Assorted grammar, spelling and punctuation fixes.

PR:		203336, 203339
Submitted by:	espeyb@rpi.edu, themesta@gmail.com
2015-12-24 20:15:14 +00:00
delphij
897a072717 MFC: xz 5.2.2.
Relnotes:	yes
2015-12-22 08:03:23 +00:00
emaste
b58d6015e5 MFC r256859: Don't force 64-bit DWARF2 on MIPS
64-bit debug data is only necessary for objects with greater than 4GB of
debug data, and is not used on other 64-bit FreeBSD targets.
2015-12-16 16:42:24 +00:00
sjg
65747233a8 Merge bmake-20151201 2015-12-10 23:44:34 +00:00
ngie
7fb13df4f3 MFC r290908,r291615:
r290908:

Integrate contrib/netbsd-tests/lib/libcrypt/t_crypt.c in to the FreeBSD
test suite as lib/libcrypt/crypt_test

Sponsored by: EMC / Isilon Storage Division

r291615 (by rodrigc):

Hack test so that it works on FreeBSD.
2015-12-05 22:44:07 +00:00
ngie
5e0ed4fa0a MFC r283801,r290846,r290851,r290856,r290860:
r283801 (by araujo):

Fix warning of implicit declaration of function 'mkdir'.

Differential Revision:	D2662
Reviewed by:		rodrigc, ngie

r290846:

Bump WARNS to 2

Sponsored by: EMC / Isilon Storage Division

r290851:

Change WARNS to 2 across the board with all the libc testcases

This effectively "reverts" r290846

Sponsored by: EMC / Isilon Storage Division

r290856 (by bapt):

also skip the definition of ':fopen_regular' to avoid the build to fail due to
unused variables defined by ATF macros

r290860 (by bapt):

Remove unused variables to fix building world
2015-12-05 21:49:35 +00:00
des
72c7e45913 MFH (r287917, r287918, r289063): upgrade to latest Unbound
MFH (r283301, r289592, r291582): rc script improvements
MFH (r287880): respect manually configured forwarders when using DHCP
MFH (r289321): deconfuse man page

PR:		184047 203580 204931
2015-12-04 13:26:12 +00:00
ngie
fc230dcf44 MFC r290913,r291181:
r290913:

Port contrib/netbsd-tests/kernel/t_mqueue.c to FreeBSD

- Add missing headers
- Ensure mqueuefs is loaded
- Make sure the mqueuefs path is absolute and relative to /
- Cast the result of mq_open returning -1 to (mqd_t) to mute a compiler
  warning

Sponsored by: EMC / Isilon Storage Division

r291181:

Integrate contrib/netbsd-tests/kernel/t_mqueue into the FreeBSD test
suite as tests/sys/kern/mqueue_test
2015-12-04 09:32:03 +00:00
ngie
749b28b125 MFC r290856:
r290856 (by bap):

also skip the definition of ':fopen_regular' to avoid the build to fail due to
unused variables defined by ATF macros
2015-11-23 10:57:04 +00:00
ngie
83975b8166 MFC r290911,r290912:
r290911:

Ignore EINTR from usleep(3) in try_locks(..)

NetBSD's usleep(3) only returns -1/sets errno=EINVAL when `microseconds`
is one million or more

Submitted by: pho
Sponsored by: EMC / Isilon Storage Division

r290912:

Integrate contrib/netbsd-tests/kernel/t_lockf.c into the FreeBSD test suite as
tests/sys/kern/lockf_test

Sponsored by: EMC / Isilon Storage Division
2015-11-23 08:52:38 +00:00
ngie
f531d58e9a MFC r290850:
Cast xdr_void to xdrproc_t to mute -Wincompatible-pointer-types warnings from
clang

This pattern is used in other areas of lib/libc/rpc

Sponsored by: EMC / Isilon Storage Division
2015-11-23 08:26:26 +00:00
ngie
d26f479244 MFC r290869:
Redo r290847: use #ifdef __NetBSD__ on all the non-public APIs to
mute -Wunused-but-set-variable warnings with gcc dealing with the
function calls

Reported by: gcc
Sponsored by: EMC / Isilon Storage Division
2015-11-23 08:24:48 +00:00
ngie
a82bcd2518 MFC r290907:
Expect all testcases dealing with invalid salts to fail on FreeBSD

Sponsored by: EMC / Isilon Storage Division
2015-11-23 08:18:52 +00:00
ngie
55105c5c24 MFC r290847:
Fix -Wunused warnings with variables used unlit code by adding appropriate #ifdef
guards around the variables

Sponsored by: EMC / Isilon Storage Division
2015-11-19 00:25:58 +00:00
edwin
a4ba623b63 MFC of 290697,tzdata10:
Update to tzdata2015g:

Turkey's 2015 fall-back transition is scheduled for Nov. 8, not Oct. 25.

Norfolk moves from +1130 to +1100 on 2015-10-04 at 02:00 local time.

Fiji's 2016 fall-back transition is scheduled for January 17, not 24.

Fort Nelson, British Columbia will not fall back on 2015-11-01.  It has
effectively been on MST (-0700) since it advanced its clocks on 2015-03-08.
New zone America/Fort_Nelson.
2015-11-12 03:26:05 +00:00
ngie
be34a352d4 MFC r290184:
Fix a set but not used variable warning flagged by gcc 4.9 with
lib/libc/ssp/h_readlink

Sponsored by: EMC / Isilon Storage Division
2015-11-09 07:16:17 +00:00
ngie
bf233cc247 MFC r289487:
Integrate contrib/netbsd-tests/bin/dd into the FreeBSD test suite as
bin/dd/tests

Ensure fdescfs is mounted on /dev/fd/ for the length testcase as it's used
in validating the characters read from /dev/zero

Sponsored by: EMC / Isilon Storage Division
2015-11-09 06:50:42 +00:00
delphij
e6f47aa696 MFC r287453,287454,288143:
file 5.25.

Relnotes:	yes
2015-10-29 17:51:48 +00:00
glebius
c628128773 Upgrade NTP to 4.2.8p4.
Security:	FreeBSD-SA-15:25.ntp
Security:	CVE-2015-7871
Security:	CVE-2015-7855
Security:	CVE-2015-7854
Security:	CVE-2015-7853
Security:	CVE-2015-7852
Security:	CVE-2015-7851
Security:	CVE-2015-7850
Security:	CVE-2015-7849
Security:	CVE-2015-7848
Security:	CVE-2015-7701
Security:	CVE-2015-7703
Security:	CVE-2015-7704, CVE-2015-7705
Security:	CVE-2015-7691, CVE-2015-7692, CVE-2015-7702
2015-10-26 11:35:40 +00:00
peter
6a8fa4cab5 MFC: r269851,r272076,r274884,r282328,r285644,r286503,r286504,r286505,
r286506,r286510,r286561,r286562,r287034

Update svnlite from 1.8.10 to 1.8.14, and the support components:
serf->1.3.8, apr->1.5.2, apr-util->1.5.4, sqlite3->3.8.11.1

This includes syncing the developer templates with head.
2015-10-12 04:57:36 +00:00
dim
c26acd2a5d MFC r288099:
In binutils' arm-dis.c, avoid left-shifting a negative number.

Submitted by:	dan.mcgregor_usask.ca (Dan McGregor)
Differential Revision: https://reviews.freebsd.org/D3376
2015-10-09 19:36:06 +00:00
bdrewery
4bffffcaeb MFC r288238:
MFV c3ccd112: Correct off-by-ones in free_exception of emergency buffer
2015-10-08 18:02:43 +00:00
emaste
4521ad4bf5 MFC r256692: Fix .debug_line prologue header length calculation for 64-bit DWARF
The header_length field is the number of bytes following the field to
the first byte of the line number program.  The hard-coded constants
previously here (4 + 2 + 4) were correct only for 32-bit DWARF.

Sponsored by:	DARPA, AFRL
2015-09-24 19:33:35 +00:00
emaste
8a6b0049ee MFC r284551: Import libcxxrt master e64e93f.
This includes a number of demangler fixes obtained from upstream
ELF Tool Chain.

PR:		200913
Sponsored by:	The FreeBSD Foundation
2015-09-24 19:28:53 +00:00
dim
3606495e87 MFC r286699:
In gcc's libcpp, stop using the INTTYPE_MAXIMUM() macro, which relies on
undefined behavior.  The code used this macro to avoid problems on some
broken systems which define SSIZE_MAX incorrectly, but this is not
needed on FreeBSD, obviously.
2015-09-22 22:07:42 +00:00
rodrigc
12c2a2777a Merge r286649:
Fix and re-enable UTF-8 tests.

X-Merge with: r287393
2015-09-08 17:54:31 +00:00
kib
d894e2ffed MFC r287360:
Fix t_spawnattr test for attributes handling by posix_spawn(3).
Connect it to the build.
2015-09-08 07:15:10 +00:00
delphij
5505c947f4 MFC r287020: MFV r287019: leapseconds from tzdata2015f. 2015-09-08 00:34:38 +00:00
delphij
0d505bc40b Fix multiple integer overflows in expat.
Security:	CVE-2015-1283
Security:	FreeBSD-SA-15:20.expat
2015-08-18 19:30:05 +00:00
edwin
33f83ca610 MFC of 286750,tzdata10:
Update to tzdata2015f:

Changes affecting future time stamps

    North Korea switches to +0830 on 2015-08-15.  (Thanks to Steffen Thorsen.)
    The abbreviation remains "KST".  (Thanks to Robert Elz.)
    Uruguay no longer observes DST.  (Thanks to Steffen Thorsen and Pablo Camargo.)
    Changes affecting past and future time stamps
    Moldova starts and ends DST at 00:00 UTC, not at 01:00 UTC. (Thanks to Roman Tudos.)
2015-08-13 23:59:53 +00:00
pfg
c32f5a21dc MFC r286074:
GCC: Add a new option "-fstack-protector-strong"

This includes additional functions to be protected: those that
have local array definitions, or have references to local frame
addresses. This is a new option in GCC-4.9 that was relicensed
by Han Shen from Google under GPLv2.

Obtained from:	OpenBSD (2014-01-14)
2015-08-13 01:02:57 +00:00
dim
3ab328cd1c MFC r286519:
In GNU as, avoid left-shifting negative integers, which is undefined.
2015-08-12 19:18:54 +00:00
gshapiro
3682d7b83b MFC: Reminder to check tools/build/mk/OptionalObsoleteFiles.inc on new
version imports.
2015-08-08 16:30:20 +00:00
bdrewery
21bbf44105 MFC r285972:
MFV r285970:

    Apply upstream changeset bf4f6ec64e:

    Fix issue 356: properly skip a sparse file entry in a tar file.

PR:		201506
Relnotes:	yes
2015-07-30 17:04:15 +00:00
dim
eedcd78b1e Add updated llvm patch corresponding to r286033. 2015-07-29 19:27:57 +00:00