summaryrefslogtreecommitdiff
path: root/contrib
Commit message (Collapse)AuthorAgeFilesLines
* readelf: decode AArch64 TLS descriptor relocationsEd Maste2016-02-051-0/+10
| | | | | | | | | | From ELF for the ARM(R) 64-bit Architecture, table 4-19. Obtained from: ELF Tool Chain r3386 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=295336
* readelf: report value of unknown relocation typesEd Maste2016-02-051-12/+14
| | | | | | | | Obtained from: ELF Tool Chain r3387 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=295335
* readelf: avoid accidental fallthrough in RISC-V relocationsEd Maste2016-02-051-0/+1
| | | | | | | | | | | | 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 Notes: svn path=/head/; revision=295334
* Try to fix a bug introduced in r228623. We started to copy the ifa_msghdrBjoern A. Zeeb2016-02-031-5/+7
| | | | | | | | | | | | | | | | | as otherwise platforms with strict alignment would break. It's unclear to me if there's also a problem with access to the address list following the structure. However we never copied the address list after the structure and thus are pointing at random memory. For now just use a pointer to the original memory for accessing the address list making it at least work on platforms with weak memory access. PR: 195445 Reported by: wolfgang lyxys.ka.sub.org Tested by: wolfgang lyxys.ka.sub.org (x86) MFC after: 3 days Notes: svn path=/head/; revision=295202
* MFV r295109:Pedro F. Giffuni2016-02-025-10/+15
| | | | | | | | | Update openresolve to version 3.7.2 Relnotes: yes Notes: svn path=/head/; revision=295165
* Root out files that don't really belong here and could in fact screwMaxim Sobolev2016-02-023-92/+0
| | | | | | | | | | | you over if you happen to use git for FreeBSD development, as it is the case with the unbound/.gitignore, which lits files that are actually required for the buildworld. MFC after: 1 day Notes: svn path=/head/; revision=295159
* Use LIBADD instead of LDADD.Hans Petter Selasky2016-02-023-6/+3
| | | | | | | Sponsored by: Mellanox Technologies Notes: svn path=/head/; revision=295146
* Add #include <string.h> to mute warning from clang/gcc about implicitlyEnji Cooper2016-02-011-0/+1
| | | | | | | | | | | declaring strcmp(3) MFC after: 1 month Reported by: Jenkins Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=295118
* Fix grep_test:recurse with ZFS and TMPFS tmpdirsAlan Somers2016-01-271-0/+8
| | | | | | | | | | | | | | | | contrib/netbsd-tests/usr.bin/grep/t_grep.sh Fix grep_test:recurse when /tmp is either zfs or tmpfs. The test was relying on an implicit ordering of directory recursion which happens to be true when using UFS. grep's specification requires no such ordering. The solution is to ignore the order of grep's results. Reviewed by: ngie MFC after: 32 days Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D4925 Notes: svn path=/head/; revision=294923
* Add debug output via ATF_REQUIRE_MSG when the first call toEnji Cooper2016-01-271-1/+2
| | | | | | | | | | | | | mlock(2) fails This helps identify the problem with running this test on my VM hosts (ENOMEM) MFC after: 3 days Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=294899
* Adjust vm.max_wired in order to avoid hitting EAGAIN artificiallyEnji Cooper2016-01-271-0/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | 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). Differential Revision: https://reviews.freebsd.org/D4779 MFC after: 1 month Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=294894
* Grab value for LEAF_tcpCurrEstab from net.inet.tcp.stats instead ofGleb Smirnoff2016-01-271-14/+20
| | | | | | | net.inet.tcp.pcblist, which is much cheaper. Notes: svn path=/head/; revision=294871
* Use LIBADD instead of LDADD in rping's Makefile and add libcxgb4 (theNavdeep Parhar2016-01-261-2/+3
| | | | | | | | | | | userspace iWARP library for cxgbe) to the list of libraries. rping using the libcxgb4 + iw_cxgbe combo was tested with T5 hardware. Obtained from: Chelsio Communications Notes: svn path=/head/; revision=294756
* Add config for RISC-V ISA.Ruslan Bukin2016-01-241-0/+6
| | | | | | | | | | Reviewed by: emaste Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Differential Revision: https://reviews.freebsd.org/D5046 Notes: svn path=/head/; revision=294664
* Add a minimal gcc config for RISC-V.Ruslan Bukin2016-01-232-0/+7
| | | | | | | | | | | | This is required to build csu. Reviewed by: andrew Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Differential Revision: https://reviews.freebsd.org/D5039 Notes: svn path=/head/; revision=294634
* Add support for RISC-V ISA.Ruslan Bukin2016-01-222-5/+11
| | | | | | | | | | Reviewed by: emaste Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Differential Revision: https://reviews.freebsd.org/D5021 Notes: svn path=/head/; revision=294577
* Add stubs for RISC-V ISA so libunwind can be compiled.Ruslan Bukin2016-01-227-1/+347
| | | | | | | | | | Reviewed by: emaste Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Differential Revision: https://reviews.freebsd.org/D5035 Notes: svn path=/head/; revision=294574
* Add configuration for RISC-V ISA.Ruslan Bukin2016-01-222-0/+6
| | | | | | | | | | Reviewed by: emaste Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Differential Revision: https://reviews.freebsd.org/D5020 Notes: svn path=/head/; revision=294573
* Change the variable to a #define in order to make gcc happy whichBjoern A. Zeeb2016-01-221-1/+1
| | | | | | | | otherwise will complain about "variably modified 'alias' at file scope". Unbreaks the build on gcc platforms. Notes: svn path=/head/; revision=294567
* MFV r294491: ntp 4.2.8p6.Xin LI2016-01-22191-3466/+6580
|\ | | | | | | | | | | | | | | | | | | | | Security: CVE-2015-7973, CVE-2015-7974, CVE-2015-7975 Security: CVE-2015-7976, CVE-2015-7977, CVE-2015-7978 Security: CVE-2015-7979, CVE-2015-8138, CVE-2015-8139 Security: CVE-2015-8140, CVE-2015-8158 With hat: so Notes: svn path=/head/; revision=294554
* | Fill the ifAlias leaf of the ifXTable with the interface descriptionHartmut Brandt2016-01-213-1/+20
| | | | | | | | | | | | | | if there is one available and it fits into the maximum size (64 characters). Notes: svn path=/head/; revision=294507
* | MFV r294260:Xin LI2016-01-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | Fix a wrong assertion in mandoc by applying OpenBSD main.c,v 1.170 (florian): Unbreak reading from stdin after recent parse() restructuring. OK schwarze@ Notes: svn path=/head/; revision=294261
* | Update mandoc to 20160116Baptiste Daroussin2016-01-15133-6912/+7831
| | | | | | | | Notes: svn path=/head/; revision=294113
* | hyperv/kvp_daemon: Make poll(2) block indefinitelySepherosa Ziehau2016-01-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | Submitted by: Jun Su <junsu microsoft com> Reviewed by: Dexuan Cui <decui microsoft com>, me, adrain Approved by: adrian Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D4762 Notes: svn path=/head/; revision=293653
* | MFV r293415:Xin LI2016-01-08269-2056/+5057
|\| | | | | | | | | | | | | | | | | | | | | ntp 4.2.8p5 Reviewed by: cy, roberto Relnotes: yes Differential Revision: https://reviews.freebsd.org/D4828 Notes: svn path=/head/; revision=293423
* | libunwind: Include header for dl_unwind_find_exidx for ARM EHABIEd Maste2016-01-061-0/+1
| | | | | | | | Notes: svn path=/head/; revision=293247
* | MFV r293125: less v481.Xin LI2016-01-0559-1033/+2075
|\ \ | | | | | | | | | | | | | | | | | | | | | MFC after: 1 month Relnotes: yes Notes: svn path=/head/; revision=293190
* | | Merge LLVM libunwind revision 256779Ed Maste2016-01-046-2/+24
| | | | | | | | | | | | Notes: svn path=/head/; revision=293183
* | | Merge r293013 from clang380-import branch:Dimitry Andric2015-12-311-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 MFC after: 3 days Notes: svn path=/head/; revision=293015
| * | | Fix a clang 3.8.0 warning in pflogd.c:Dimitry Andric2015-12-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 MFC after: 3 days Notes: svn path=/projects/clang380-import/; revision=293013
| * | | Drop the clang patch which added a custom vendor suffix to the versionDimitry Andric2015-12-302-25/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | printed with -v. We have historically put a date stamp there (roughly corresponding to the date of import), but this has never been used for anything, and the patch has also never been upstreamed, so let's get rid of it now. Notes: svn path=/projects/clang380-import/; revision=292952
| * | | Merge ^/head r292936 through r292950.Dimitry Andric2015-12-302-29/+0
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/clang380-import/; revision=292951
| * | | | Using trunk for now, instead of 3.7.1.Dimitry Andric2015-12-301-4/+4
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/clang380-import/; revision=292945
| * | | | Drop patches which are certain to be obsolete now.Dimitry Andric2015-12-305-386/+0
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/clang380-import/; revision=292944
| * | | | Update clang to trunk r256633.Dimitry Andric2015-12-30640-35303/+69608
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/clang380-import/; revision=292942
| * | | | Update llvm to trunk r256633.Dimitry Andric2015-12-301818-73899/+174413
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/clang380-import/; revision=292941
* | | | | Add the MOVT/MOVW types to the list of relocs which do not generate .pltIan Lepore2015-12-301-6/+20
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | entries. This fixes the segfaults in arm userland code compiled with -march= or -mcpu= values that allow the compiler to generate movw/movt sequences to load 32-bit constants. Notes: svn path=/head/; revision=292964
* | | | Drop the clang patch which adds recognition of 'CC' suffixes as aliasesDimitry Andric2015-12-302-25/+0
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | for --driver-mode=g++, since this was never upstreamed. For backwards compatibility, add a wrapper shell script. MFC after: 1 week Notes: svn path=/head/; revision=292950
* | | Correct the code for sign-extending a 16 bit value. As near as I can tellIan Lepore2015-12-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | this is effectively a no-op -- the addend term in MOVT/MOVW relocations always seems to be zero. But this is correct and the old code wasn't. Notes: svn path=/head/; revision=292870
* | | Staticize several variables that are used exclusively in bsnmpd/main.c andEnji Cooper2015-12-282-9/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bsnmpd/trap.c This fixes several -Wmissing-variable-declaration warnings noted by clang Differential Revision: https://reviews.freebsd.org/D4718 MFC after: 1 week Reported by: Jenkins Reviewed by: araujo Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=292815
* | | Upgrade our copies of clang and llvm to 3.7.1 release. This is aDimitry Andric2015-12-2553-448/+518
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bugfix-only release, with no new features. Please note that from 3.5.0 onwards, clang and llvm require C++11 support to build; see UPDATING for more information. Notes: svn path=/head/; revision=292735
* | | Merge bmake-20151220Simon J. Gerraty2015-12-257-49/+67
| | | | | | | | | | | | | | | | | | | | | Fixed clearing suffixes impact on null suffix Notes: svn path=/head/; revision=292733
* | | Remove unused function `act_getkernstring`Enji Cooper2015-12-241-23/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a clang -Wunused warning Differential Revision: https://reviews.freebsd.org/D4697 MFC after: 1 week Reported by: Jenkins Reviewed by: araujo, bapt Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=292710
* | | backtrace.3: Fix prototype of backtrace_symbols_fd_fmt().Baptiste Daroussin2015-12-221-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While here, fix a typo Submitted by: Sascha Wildner <saw@online.de> Obtained from: DragonflyBSD Notes: svn path=/head/; revision=292629
* | | Silence a boring warning.Andreas Tobler2015-12-221-0/+2
| | | | | | | | | | | | Notes: svn path=/head/; revision=292627
* | | Don't adjust the program counter to an invalid address after reaching aAndrew Turner2015-12-221-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | breakpoint. The value doesn't need to be adjusted as it is already correctly returned from the kernel. This allows lldb to set breakpoints, and stop on them, however more work is needed, for example single stepping fails to stop. Discussed with: emaste Notes: svn path=/head/; revision=292611
* | | Use stable output to a test file instead of depending on the OS name beingEnji Cooper2015-12-222-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | grep'able in /bin/sh This fixes the situation where the OS has been rebranded to something other than `FreeBSD` MFC after: 1 week Obtained from: Isilon OneFS (^/onefs/head@r511419) Reviewed by: cem, Daniel O'Connor <darius@dons.net.au> Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=292581
* | | Don't dump core files with lib/libc/ssp/ssp_test and lib/libc/gen/assert_testEnji Cooper2015-12-222-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 MFC after: 1 week Obtained from: Isilon OneFS (^/onefs/head@r511419) Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=292578
* | | Avoid unaligned memory accesses when encoding netbios names in libsmb.Ian Lepore2015-12-211-19/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. PR: 180438 PR: 189415 Differential Revision: https://reviews.freebsd.org/D4622 Notes: svn path=/head/; revision=292552
* | | Regenerate config.h for OpenBSM 1.2 alpha 4.Christian Brueffer2015-12-181-4/+4
| | | | | | | | | | | | | | | | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=292433