1. 11 Jan, 2017 20 commits
  2. 10 Jan, 2017 20 commits
    • Martin Matuska's avatar
      Build libarchive tests missing in r311899 · 95208412
      Martin Matuska authored
      MFC after:	1 week
      X-MFC with:	r311899
      95208412
    • Martin Matuska's avatar
      MFV r311899: · 2dbf8c4a
      Martin Matuska authored
      Sync libarchive with vendor.
      
      Vendor bugfixes:
      #691: Support for SCHILY.xattr extended attributes
      #854: Spelling fixes
      
      Multiple fixes in ACL code:
        - prefer acl_set_fd_np() to acl_set_fd()
        - if acl_set_fd_np() fails, do no fallback to acl_set_file()
        - do not warn if trying to write ACLs to a filesystem without ACL support
        - fix id handling in archive_acl_(from_to)_text*() for NFSv4 ACLs
      
      MFC after:	1 week
      X-MFC with:	r310866
      2dbf8c4a
    • Mark Johnston's avatar
      Coalesce TLB shootdowns of global PTEs in pmap_advise() on x86. · bd7abab0
      Mark Johnston authored
      We would previously invalidate such entries individually, resulting in more
      IPIs than necessary.
      
      Reviewed by:	alc, kib
      MFC after:	3 weeks
      Differential Revision:	https://reviews.freebsd.org/D9094
      bd7abab0
    • Mark Johnston's avatar
      Do not set BIO_DONE if the BIO specifies a completion handler. · 90e17792
      Mark Johnston authored
      biowait() will otherwise race with completions of such BIOs. In-tree code
      only calls biowait() on BIOs that do not specify a handler, so this change
      should not have any functional impact.
      
      Reviewed by:	mav
      MFC after:	1 month
      Sponsored by:	Dell EMC Isilon
      Differential Revision:	https://reviews.freebsd.org/D9070
      90e17792
    • Sean Bruno's avatar
      Set CFLAGS correctly for sys/modules/em · 093cf246
      Sean Bruno authored
      Unbreak gcc sparc64 builds (or any gcc build that uses em(4)).
      
      Reported by:	lidl@freebsd.org
      093cf246
    • Martin Matuska's avatar
      Update vendor/libarchive to git 22f2d190639e6bd496a3b82f70c01fba0d38b40a · 2a59734e
      Martin Matuska authored
      Vendor changes:
      #691: Support for SCHILY.xattr extended attributes
      #854: Spelling fixes
      
      Multiple fixes in ACL code:
        - prefer acl_set_fd_np() to acl_set_fd()
        - if acl_set_fd_np() fails, do no fallback to acl_set_file()
        - do not warn if trying to write ACLs to a filesystem without ACL support
        - fix id handling in archive_acl_(from_to)_text*() for NFSv4 ACLs
      2a59734e
    • Mateusz Guzik's avatar
      sparc64: add atomic_fcmpset · 4cf80fbd
      Mateusz Guzik authored
      Tested on hardware provided by feld.
      
      Reviewed by:	marius
      4cf80fbd
    • Alexander Motin's avatar
      Add checks for received mode page length. · 36289c33
      Alexander Motin authored
      If our buffer is too small, we may receive part of the page, and should
      not try read/write past the end of the buffer.
      
      Reported by:	Coverity
      CID:		1368374, 1368375
      MFC after:	1 week
      36289c33
    • Pedro F. Giffuni's avatar
      Remove unused __gnu_inline() attribute. · 990c731f
      Pedro F. Giffuni authored
      This was meant to be used by a future FORTIFY_SOURCE implementation.
      Probably for good, FORTIFY_SOURCE and this particular GCCism were never
      well supported by clang or other compilers. Furthermore, the technology
      has long since been replaced by either static checkers, sanitizers, or
      even just the strong stack protector that was enabled by default.
      
      Drop __gnu_inline to avoid cluttering the headers.
      
      MFC after:	5 days
      990c731f
    • Alan Somers's avatar
      Fix memory leaks during "tail -r" of an irregular file · cdb7a6fc
      Alan Somers authored
      * Rewrite r_buf to use standard tail queues instead of a hand-rolled
        circular linked list. Free dynamic allocations when done.
      * Remove an optimization for the case where the file is a multiple of 128KB
        in size and there is a scarcity of memory.
      * Add ATF tests for "tail -r" and its variants.
      
      Reported by:	Valgrind
      Reviewed by:	ngie
      MFC after:	4 weeks
      Sponsored by:	Spectra Logic Corp
      Differential Revision:	https://reviews.freebsd.org/D9067
      cdb7a6fc
    • Alan Somers's avatar
      Fix typo from change 310985 in ObsoleteFiles.inc · 442f47d6
      Alan Somers authored
      MFC after:	16 days
      X-MFC-With:	310803
      Sponsored by:	Spectra Logic Corp
      442f47d6
    • Alan Somers's avatar
      ATFify the geom gate tests. · 9a1fe327
      Alan Somers authored
      This ensures their cleanup routines will be run even if they should timeout.
      
      tests/sys/geom/class/gate/ggate_test.sh
      tests/sys/geom/class/gate/Makefile
      	Add an ATF test with three testcases, one for each TAP test. Use
      	ATF-style cleanup functions, and convert sleeps to polling loops.
      
      ObsoleteFiles.inc
      tests/sys/geom/class/gate/conf.sh
      tests/sys/geom/class/gate/1_test.sh
      tests/sys/geom/class/gate/2_test.sh
      tests/sys/geom/class/gate/3_test.sh
      	Delete TAP test files
      
      Reviewed by:	ngie
      MFC after:	4 weeks
      Sponsored by:	Spectra Logic Corp
      Differential Revision:	https://reviews.freebsd.org/D8891
      9a1fe327
    • Alexander Motin's avatar
      Do not wait for HA thread shutdown if scheduler is stopped. · 4982dca1
      Alexander Motin authored
      This wait loop made system hang on panic instead of reboot.
      
      MFC after:	1 week
      4982dca1
    • Oleksandr Tymoshenko's avatar
      [efi] Build EFI bits with -fPIC on ARM · 759e1313
      Oleksandr Tymoshenko authored
      clang 3.9.0 without -fPIC generates absolute jump table for
      switch/case statement which trips boot1.efi and loader.efi
      on ARM platform.
      
      Reviewed by:	andrew
      MFC after:	3 days
      Differential Revision:	https://reviews.freebsd.org/D9108
      759e1313
    • Oleksandr Tymoshenko's avatar
      [efi] Fix .rel.data.* being erroneously merged into .data on ARM · 546fa3ad
      Oleksandr Tymoshenko authored
      Fix section pattern code to exclude .rel.data.* sections from being
      merged into .data. Otherwise relocations in those sections are lost
      in final binary
      
      Reviewed by:	andrew
      MFC after:	3 days
      Differential Revision:	https://reviews.freebsd.org/D9108
      546fa3ad
    • Oleksandr Tymoshenko's avatar
      [efi] Fix off-by-one error in ARM .bss zeroing code in loader's _start · 06212e04
      Oleksandr Tymoshenko authored
      __bss_end should not be included in .bss zeroing code. Otherwise first 4
      bytes of the section that follows .bss (in loader's case it's .sdata) are
      overwritten by zero.
      
      Reviewed by:	andrew
      MFC after:	3 days
      Differential Revision:	https://reviews.freebsd.org/D9108
      06212e04
    • Sergey Kandaurov's avatar
      Fix build without IEEE80211_DEBUG. · 30007e3f
      Sergey Kandaurov authored
      Reported by:	many
      30007e3f
    • Konstantin Belousov's avatar
      Fix acquisition of nested write compat rtld locks. · b88a8d3d
      Konstantin Belousov authored
      Obtaining compat rtld lock in write mode sets process signal mask to
      block all signals.  Previous mask is stored in the global variable
      oldsigmask.  If a lock is write-locked while another lock is already
      write-locked, oldsigmask is overwritten by the total mask and on the
      last unlock, all signals except traps appear to be blocked.
      
      Fix this by counting the write-lock nested level, and only storing to
      oldsigmask/restoring from it at the outermost level.
      
      Masking signals disables involuntary preemption for libc_r, and there
      could be no voluntary context switches in the locked code
      (dl_iterate_phdr(3) keeps a lock around user callback, but it was
      added long after libc_r was renounced).  Due to this, remembering the
      level in the global variable after the lock is obtained should be
      safe, because no two libc_r threads can acquire different write locks
      in parallel.
      
      PR:	215826
      Reported by:	kami
      Tested by:	yamagi@yamagi.org (previous version)
      To be reviewed by:	kan
      Sponsored by:	The FreeBSD Foundation
      MFC after:	2 weeks
      b88a8d3d
    • Li-Wen Hsu's avatar
      Replace using of objdump with elfdump · 0a502389
      Li-Wen Hsu authored
      In-tree objdump is too old to dump new ELF headers.  But for example if we
      use: `make CROSS_TOOLCHAIN=riscv64-gcc TARGET_ARCH=riscv64` and do not specify
      CROSS_BINUTILS_PREFIX in env, embed_mfs.sh cannot find the correct objdump.
      This patch just replaces using of objdump with elfdump to collect needed
      information.
      
      Later we may also put an ELFDUMP in CROSSENV and use it in embed_mfs.sh .
      
      Reviewed by:	emaste, br
      MFC after:	3 days
      Differential Revision:	https://reviews.freebsd.org/D9062
      0a502389
    • Navdeep Parhar's avatar
      The iw_cxgb and iw_cxgbe drivers should not use a FreeBSD device_t where · c70c4d71
      Navdeep Parhar authored
      a linuxkpi style device is expected.  If OFED/linuxkpi actually starts
      using this field then we'll have to figure out whether to create fake
      devices for these drivers or have linuxkpi deal with NULL device.
      
      This mismatch was first reported as part of D6585.
      c70c4d71