summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* | Revert "Import review D5409"Renato Botelho2017-01-092-14/+5
| | | | | | | | This reverts commit 728813a02a03cdab41bffc21d729fb394aef805c.
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-12-148-85/+171
|\ \ | |/
| * MFH (r308996, r309051, r309738): refactor, avoid repeating DNS requestsdes2016-12-143-54/+124
| |
| * MFC r308420: MFV r308392: file 5.29.delphij2016-12-111-3/+3
| |
| * MFC r309298: libm: remove duplicate version script entriesemaste2016-12-091-5/+0
| | | | | | | | | | | | | | These symbols already appear in the common lib/msun/Symbol.map. Duplicate entries produce an error with LLVM's LLD linker. Sponsored by: The FreeBSD Foundation
| * Merge rr309688: address regressions in SA-16:37.libc.glebius2016-12-071-6/+5
| | | | | | | | | | PR: 215105 Submitted by: <jtd2004a sbcglobal.net>
| * Merge r309640 from head:glebius2016-12-061-3/+8
| | | | | | | | | | | | | | | | | | Fix possible integer overflow in guest memory bounds checking, which could lead to access from the virtual machine to the heap of the bhyve(8) process. Submitted by: Felix Wilhelm <fwilhelm ernw.de> Patch by: grehan Security: FreeBSD-SA-16:38.bhyve
| * Merge r309639 from head:glebius2016-12-061-17/+34
| | | | | | | | | | | | | | | | | | | | | | Fix possible buffer overflow(s) in link_ntoa(3). A specially crafted sockaddr_dl argument can trigger a static buffer overflow in the libc library, with possibility to rewrite with arbitrary data following static buffers that belong to other library functions. Reviewed by: kib Security: FreeBSD-SA-16:37.libc
| * MFstable/11 r309600:ngie2016-12-061-2/+2
| | | | | | | | | | | | | | MFC r307220: r307220 (by br): Fix typos: use correct string format and value to compare.
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-12-0579-1170/+847
|\ \ | |/
| * MFC r309026: open(2): Clarify non-POSIX error when opening a symlink withjilles2016-12-041-1/+17
| | | | | | | | | | | | | | | | | | | | O_NOFOLLOW. We return [EMLINK] instead of [ELOOP] when trying to open a symlink with O_NOFOLLOW, so that the original case of [ELOOP] can be distinguished. Code like cmp -h and xz takes advantage of this. PR: 214633
| * MFC r301761:trasz2016-12-031-1/+1
| | | | | | | | Fix frexpl() declaration to not include the field name.
| * MFC r264196:ngie2016-12-032-2/+5
| | | | | | | | | | | | | | r264196 (by theraven): Move definitions out of rpc_com so that the linker doesn't complain about multiple definitions.
| * MFC r296133:ngie2016-12-032-3/+3
| | | | | | | | | | | | | | | | | | | | | | r296133 (by pfg): RPC: update the getrpcbyname() definition to include a const qualifier. Add const qualifier making getrpcbyname() and getrpcbyname_r() prototypes match those used in latest Sun RPC code (TI-RPC 2.3). Obtained from: NetBSD
| * MFC r301734:ngie2016-12-031-1/+1
| | | | | | | | | | | | r301734 (by kevlo): Fix the rpcb_getaddr() definition to match its declaration.
| * MFC r296404:ngie2016-12-031-8/+8
| | | | | | | | | | | | | | | | r296404 (by pfg): Stray tabs and spaces. No functional change.
| * MFC r287353:ngie2016-12-031-1/+1
| | | | | | | | | | | | | | | | r287353 (by rodrigc): Use unsigned variable. Eliminates gcc 4.9 compiler warning.
| * MFC r296386:ngie2016-12-031-16/+20
| | | | | | | | | | | | | | | | | | | | | | r296386 (by pfg): Work around aliasing issues detected in modern GCC. Avoid casting gymnastics that lead to pointer aliasing by introducing an inline function as done in NetBSD (but without #if0'd WIP code). Obtained from: NetBSD (CVS Rev. 1.24, 1.25)
| * MFC r278039:ngie2016-12-031-0/+1
| | | | | | | | | | | | | | | | r278039 (by pfg): Resource leak CID: 1016703
| * MFC r288017:ngie2016-12-031-69/+31
| | | | | | | | | | | | | | | | r288017 (by rodrigc): Use ANSI C prototypes. Eliminates gcc 4.9 warnings.
| * MFC r288995:ngie2016-12-032-4/+4
| | | | | | | | | | | | | | r288995 (by rodrigc): Use proper function prototypes. Eliminates -Wstrict-prototypes warning
| * MFC r287347:ngie2016-12-031-21/+7
| | | | | | | | | | | | | | | | r287347 (by rodrigc): Use ANSI C prototypes. Eliminates gcc 4.9 warnings.
| * MFC r301754,r301769:ngie2016-12-034-26/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r301754 (by pfg): libc/rpc: Make use of some xdr_* macros. xdr_rpcprog and xdr_rpcvers were broken in older versions of FreeBSD but were fixed in r296394. Give them some use hoping they help make the code somewhat more readable. r301769 (by pfg): libc/rpc: Make use of some xdr_* macros. (part 2) xdr_rpcproc, xdr_rpcprog and xdr_rpcvers were broken in older versions of FreeBSD but fixed in r296394. Give them some use hoping they help make the code somewhat more readable.
| * MFC r278041:ngie2016-12-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | r278041 (by pfg): rpc: Uninitialized pointer read Initialize *xprt to avoid exposing a random value in cleanup_svc_vc_create. CID: 1018723 Phabric: D1749
| * MFC r287341,r287342,r287348:ngie2016-12-0316-399/+184
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r287341 (by rodrigc): Use ANSI C prototypes. Eliminates gcc 4.9 warnings. r287342 (by rodrigc): Mark unused parameters to reduce gcc 4.9 warnings. r287348 (by rodrigc): Use correct function prototype for signal handler. Eliminates gcc 4.9 warning.
| * MFC r288113:ngie2016-12-0335-409/+235
| | | | | | | | | | | | r288113 (by rodrigc): Use ANSI C prototypes. Eliminates -Wold-style-definition warnings.
| * MFC r297790:ngie2016-12-0322-52/+49
| | | | | | | | | | | | | | | | | | | | | | r297790 (by pfg): libc: replace 0 with NULL for pointers. While here also cleanup some surrounding code; particularly drop some malloc() casts. Found with devel/coccinelle.
| * MFC r287350:ngie2016-12-035-12/+12
| | | | | | | | | | | | | | | | r287350 (by rodrigc): Use ANSI C prototypes. Eliminates gcc 4.9 warnings.
| * MFC r299704:ngie2016-12-034-6/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r299704 (by vangyzen): iconvctl(3): remove superfluous NULL pointer tests convname and dst are guaranteed to be non-NULL by iconv_open(3). src is an array. Remove these tests for NULL pointers. While I'm here, eliminate a strlcpy with a correct but suspicious-looking calculation for the third parameter (i.e. not a simple sizeof). Compare the strings in-place instead of copying. Found by: bdrewery Found by: Coverity CID: 1130050, 1130056
| * MFstable/11 r309453:ngie2016-12-031-0/+4
| | | | | | | | | | | | MFC r307700: Only build lib/libc/tests/iconv if MK_ICONV != no
| * MFC r308904vangyzen2016-11-303-15/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix error reporting from wcstof() When wcstof() skipped initial space and then parsing failed, it set endptr to the first non-space character. Fix it to correctly report failure by setting endptr to the beginning of the input string. The fix is from theraven@, who fixed this bug in wcstod() and wcstold() in r227753. While I'm here: Move assignments out of declarations in wcstod() and wcstold(). This is against my personal preference, but it is our agreed style(9). Set endptr correctly on malloc() failure in all three functions. Remove an incorrect comment: This is pointer arithmetic, so the code was not actually making that assumption. wcstold() advanced the wcp pointer beyond leading whitespace and then reset it back to the beginning of the string. Do not reset it. This seems to have no functional effect, since strtold_l() also skips leading whitespace. I'm making the change to keep this function consistent with wcstof() and wcstod(), and because the C11 spec prescribes the use of iswspace() to skip leading space. Reported by: libc++ unit test for std::stof(std::wstring) Sponsored by: Dell EMC
| * MFC 308056: Fix formatting of tables.jhb2016-11-231-123/+123
| | | | | | | | | | | | | | | | | | | | | | Specifically, use .Ta instead of tabs to separate column entries. While here fix a few other things: - Use .Sy for all column headers (previously only the first column header was bold) - Use .Dv to markup constants used for MIB names. - Use "1234" and "4321" for the byte order descriptions without thousands separators. - Mark up header files in the first table with .In.
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-11-023-5/+6
|\ \ | |/
| * MFstable/11 r307718:ngie2016-10-212-4/+4
| | | | | | | | | | | | | | | | | | MFC r305920: Remove spurious newlines from atf_tc_fail calls This changes the results from broken (incorrect) to failed (correct) on i386
| * MFC r306332:pfg2016-10-191-1/+2
| | | | | | | | | | | | btree(3): don't shortcut closing if the metadata is dirty. Obtained from: NetBSD (from krb5 tree)
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-10-193-14/+34
|\ \ | |/
| * MFC 305588sephe2016-10-131-9/+24
| | | | | | | | | | | | | | | | | | | | | | | | pxeboot: Add nfs.read_size tunable. Increase this tunable improves kernel loading speed. Submitted by: Jun Su <junsu microsoft com> Reviewed by: rpokala, wblock (previous version) Obtained from: DragonFlyBSD Sponsored by: Microsoft Differential Revision: https://reviews.freebsd.org/D7756
| * MFC r305628: intro(2),_exit(2): Update for reaperjilles2016-10-122-5/+10
| | | | | | | | (procctl(PROC_REAP_ACQUIRE)).
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-10-121-0/+2
|\ \ | |/
| * MFC r306670:mm2016-10-121-0/+2
| | | | | | | | | | | | | | | | | | | | | | Sync libarchive with vendor including security fixes. Important vendor bugfixes (relevant to FreeBSD): #747: Out of bounds read in mtree parser #761: heap-based buffer overflow in read_Header (7-zip) #794: Invalid file on bsdtar command line results in internal errors (1) PR: 213092 (1)
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-10-069-19/+327
|\ \ | |/
| * MFC r306334:kib2016-10-033-0/+244
| | | | | | | | | | | | | | Document thr_suspend(2) and thr_wake(2). MFC r306506: Reword the statement.
| * MFC 305034: Implement 'devctl clear driver' to undo a previous 'set driver'.jhb2016-09-303-3/+50
| | | | | | | | | | | | | | | | | | | | | | Add a new 'clear driver' command for devctl along with the accompanying ioctl and devctl_clear_driver() library routine to reset a device to use a wildcard devclass instead of a fixed devclass. This can be used to undo a previous 'set driver' command. After the device's name has been reset to permit wildcard names, it is reprobed so that it can attach to newly-available (to it) device drivers. Sponsored by: Chelsio Communications
| * MFC r306075,r306109ache2016-09-281-14/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) Microoptimize %p case. 2) Implememt %u for GNU compatibility. 3) Don't forget to advance buf for %w/%u. 4) Fail with incomplete week (week 0) request and no such week in the year. 5) Fix yday formula when Sunday requested and the week started from Monday. 6) Fail with impossible yday for incomplete week (week 0) and direct %w/%u request. 7) Shift yday/wday to the first day of the year, if incomplete week (week 0) requested and no %w/%u used. 8) For already non-standard %z extension implement GNU compatible formats: +hh and -hh. 9) Check for incorrect values for %z. PR: 212983 (case 3 only)
| * MFC r274925: misc mdoc fixes.pluknet2016-09-272-2/+1
| |
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-09-263-0/+227
|\ \ | |/
| * MFC r305819:mm2016-09-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sync libarchive with vendor including important security fixes. Issues fixed (FreeBSD): PR #778: ACL error handling Issue #745: Symlink check prefix optimization is too aggressive Issue #746: Hard links with data can evade sandboxing restrictions This update fixes the vulnerability #3 and vulnerability #4 as reported in "non-cryptanalytic attacks against FreeBSD update components". https://gist.github.com/anonymous/e48209b03f1dd9625a992717e7b89c4f Fix for vulnerability #2 has already been merged in r305192. Security: http://gist.github.com/anonymous/e48209b03f1dd9625a992717e7b89c4f
| * MFC r305956: Add manpage for rctl_* system callsbadger2016-09-242-0/+225
| | | | | | | | | | Approved by: kib (mentor) Sponsored by: Dell Technologies
* | Merge remote-tracking branch 'origin/stable/10' into develRenato Botelho2016-09-203-13/+27
|\ \ | |/
| * MFstable/11 r305910:ngie2016-09-182-13/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC r305033,r305041,r305170: r305033: Minor Makefile simplifications for lib/atf/... - Replace uses of `${.CURDIR:H:H:H}` with ${SRCTOP} - Use built-in :H operator instead of ".." when enumerating paths. r305041: Filter certain compile-time options into -DATF_BUILD_* Items filtered through are: - Constant defines (-D) - Include flags (-I) - Linker flags (-L) - Optimization level (-O) - Warnings / linker flags (-W) - Preprocessor options (-f) This fixes the scenario hit by the Jenkins job where it's infecting the build with --sysroot, etc options from the Jenkins build in the tests. Prefix all intermediate variables (_CFLAGS, etc) with "ATF_BUILD" [*]. Requested by: jmmv r305170: Don't bake all of CC/CPP/CXX into CFLAGS Capture executable names for CC, CPP, CXX (assumed to be the first non-CCACHE_BIN word). This change strips out all of the cross-compiler arguments, (-target, -B, etc), added to ${CC}, etc via ${CROSSENV} in Makefile.inc1, so it doesn't infect the build and subsequently the test. Add comments noting why this logic is being added, and why the logic in r305041 was necessary/what it was trying to achieve. This is required after recent changes made to the toolchain to always specify --sysroot, -target, -B, etc with clang in buildworld (presumably r304681).
OpenPOWER on IntegriCloud