Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: svn_head
Commits on Sep 4, 2015
  1. Expose an interface to determine if an ACE is inherited.

    delphij authored
    Submitted by:	sef
    Reviewed by:	trasz
    MFC after:	2 weeks
    Differential Revision:	https://reviews.freebsd.org/D3540
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287445 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Commits on Sep 3, 2015
  1. Fix a bug where two SHUTDOWN_ACK chunks were sent if a SHUTDOWN chunk…

    tuexen authored
    … was
    
    received acking all outstanding data.
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287444 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  2. Detect badly behaved coredump note helpers

    cem authored
    Coredump notes depend on being able to invoke dump routines twice; once
    in a dry-run mode to get the size of the note, and another to actually
    emit the note to the corefile.
    
    When a note helper emits a different length section the second time
    around than the length it requested the first time, the kernel produces
    a corrupt coredump.
    
    NT_PROCSTAT_FILES output length, when packing kinfo structs, is tied to
    the length of filenames corresponding to vnodes in the process' fd table
    via vn_fullpath.  As vnodes may move around during dump, this is racy.
    
    So:
    
     - Detect badly behaved notes in putnote() and pad underfilled notes.
    
     - Add a fail point, debug.fail_point.fill_kinfo_vnode__random_path to
       exercise the NT_PROCSTAT_FILES corruption.  It simply picks random
       lengths to expand or truncate paths to in fo_fill_kinfo_vnode().
    
     - Add a sysctl, kern.coredump_pack_fileinfo, to allow users to
       disable kinfo packing for PROCSTAT_FILES notes.  This should avoid
       both FILES note corruption and truncation, even if filenames change,
       at the cost of about 1 kiB in padding bloat per open fd.  Document
       the new sysctl in core.5.
    
     - Fix note_procstat_files to self-limit in the 2nd pass.  Since
       sometimes this will result in a short write, pad up to our advertised
       size.  This addresses note corruption, at the risk of sometimes
       truncating the last several fd info entries.
    
     - Fix NT_PROCSTAT_FILES consumers libutil and libprocstat to grok the
       zero padding.
    
    With suggestions from:	bjk, jhb, kib, wblock
    Approved by:	markj (mentor)
    Relnotes:	yes
    Sponsored by:	EMC / Isilon Storage Division
    Differential Revision:	https://reviews.freebsd.org/D3548
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287442 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  3. Currently the Linux character device mmap handling only supports mmap

    jhb authored
    operations that map a single page that has an associated vm_page_t.
    This does not permit mapping larger regions (such as a PCI memory
    BAR) and it does not permit mapping addresses beyond the top of RAM
    (such as a 64-bit BAR located above the top of RAM).
    
    Instead of using a single OBJT_DEVICE object and passing the physaddr via
    the offset as a hack, create a new sglist and OBJT_SG object for each
    mmap request. The requested memory attribute is applied to the object
    thus affecting all pages mapped by the request.
    
    Reviewed by:	hselasky, np
    MFC after:	1 week
    Sponsored by:	Chelsio
    Differential Revision:	https://reviews.freebsd.org/D3386
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287440 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  4. r249170 was just plain wrong. The effect of the change is to always

    sbruno authored
    delete a logic volume on status change which is NOT what we want here.
    
    The original code is correct in that when the volume changes status
    the driver will only delete the volume if the status is one of the
    fatal errors.  A drive failure in a mirrored volume is NOT a situtation
    where the volume should dissapear.
    
    Reported on freebsd-scsi@:
    https://lists.freebsd.org/pipermail/freebsd-scsi/2015-September/006800.html
    
    MFC after:	3 days
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287437 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  5. Avoid sub-shell for realpath(1) for bmake by using its built-in :tA.

    bdrewery authored
    MFC after:	2 weeks
    Approved by:	portmgr (implicit)
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287436 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  6. Small UA cleanup.

    mav authored
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287433 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  7. Fix copy-paste bug introduced in r275458.

    mav authored
    MFC after:	3 days
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287432 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  8. Use proper term in the ctld(8) and iscsid(8) man pages.

    trasz authored
    MFC after:	1 month
    Sponsored by:	The FreeBSD Foundation
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287431 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  9. Simplify the introductory example in ctl.conf(5) down to absolute

    trasz authored
    basics.  The more complicated cases - like how to use physical
    ports - are explained later, in the "EXAMPLES" section.
    
    MFC after:	1 month
    Sponsored by:	The FreeBSD Foundation
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287430 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  10. The dumpfs(8) utility doesn't actually use disktab(5); remove it

    trasz authored
    from "SEE ALSO".
    
    MFC after:	1 month
    Sponsored by:	The FreeBSD Foundation
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287429 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  11. Fix acl_strip_np(3) breakage introduced in r279962.

    trasz authored
    MFC after:	1 month
    Sponsored by:	The FreeBSD Foundation
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287427 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  12. Fix the way acl_init(3) uses posix_memalign(3) - the latter doesn't

    trasz authored
    set errno.
    
    MFC after:	1 month
    Sponsored by:	The FreeBSD Foundation
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287426 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  13. Rename YP to NIS in the manpages.

    araujo authored
    Approved by:		bapt (mentor)
    Differential Revision:	D3555
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287425 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  14. Sync with the latest code from OpenBSD.

    araujo authored
    Approved by:		rodrigc (mentor)
    Differential Revision:	D3550
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287424 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  15. Lower the compiler warning: unused-but-set-variable.

    araujo authored
    Approved by:		bapt (mentor)
    Differential Revision:	D3556
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287423 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  16. For UGA, the frame buffer address obtained by scanning the

    marcel authored
    PCI BARs does not necessarily correspond to the upper-left
    most pixel. Scan the frame buffer for which byte changed
    when changing the pixel at (0,0).
    
    Use the same technique to determine the stride. Except for
    changing the pixel at (0,0), we change the pixel at (0,1).
    
    PR:		202730
    Tested by:	hartzell (at) alerce.com
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287422 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  17. Fix mandoc(1) "WARNING: end of line whitespace"

    dteske authored
    MFC after:	3 days
    X-MFC-to:	stable/10
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287421 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  18. Remove non-functional examples.

    dteske authored
    MFC after:	3 days
    X-MFC-to:	stable/10
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287420 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  19. Enable both i2c1 and i2c2. These devices are disabled in TI's DTS

    gonzo authored
    so they were disabled during DTS transition. Though there are
    no standard devices/drivers on them people might use iic(4) userland
    interface to access these buses.
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287419 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  20. pmap_mapdev_attr() also takes a vm_paddr_t.

    jhibbits authored
    This was missed in r235936.  With recent work for 36-bit paddr, this is now
    needed.
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287418 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  21. Don't leak 'var'.

    delphij authored
    Reported by:	clang static analyzer
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287417 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Commits on Sep 2, 2015
  1. fd: remove UMA_ZONE_ZINIT argument from Files zone

    mjg authored
    Originally it was added in order to prevent trashing of objects with
    INVARIANTS enabled. The same effect is now provided with mere UMA_ZONE_NOFREE.
    
    This reverts r286921.
    
    Discussed with:		kib
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287416 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  2. Don't trash memory from UMA_ZONE_NOFREE zones.

    mjg authored
    Objects obtained from such zones are supposed to retain type stability,
    which was violated by aforementioned trashing.
    
    This is a follow-up to r284861.
    
    Discussed with:		kib
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287415 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  3. ioat(4): pci_save/restore_state to persist MSI-X registers over BDXDE…

    cem authored
    … reset
    
    Also for BWD devices, per jimharris@.
    
    Reviewed by:	jhb
    Approved by:	markj (mentor)
    Sponsored by:	EMC / Isilon Storage Division
    Differential Revision:	https://reviews.freebsd.org/D3552
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287414 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  4. Minor code cleanups (no functional changes).

    dteske authored
    MFC after:	3 days
    X-MFC-to:	stable/10
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287413 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  5. sh: Allow empty << EOF markers.

    jilles authored
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287408 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  6. Simplify kvm symbol resolution and error handling. The symbol table

    hrs authored
    nl_symbols will eventually be organized into several modules depending
    on MK_* variables.
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287407 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  7. Divide statistics in the number of packets with 1000 instead of 1024

    hrs authored
    in human-readable form.
    
    PR:	183598
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287406 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  8. After the introduction of direct dispatch, the pacing code in g_down()

    imp authored
    broke in two ways. One, the pacing variable was accessed in multiple
    threads in an unsafe way. Two, since large numbers of I/O could come
    down from the buf layer at one time, large numbers of allocation
    failures could happen all at once, resulting in a huge pace value that
    would limit I/Os to 10 IOPS for minutes (or even hours) at a
    time. While a real solution to these problems requires substantial
    work (to go to a no-allocation after the first model, or to have some
    way to wait for more memory with some kind of reserve for pager and
    swapper requests), it is relatively easy to make this simplistic
    pacing less pathological.
    
    Move to using a volatile variable with loads and stores. While this is
    a little racy, losing the race is safe: either you get memory and
    proceed, or you don't and queue. Second, sleep for 1ms (or one tick, whichever
    is larger) instead of 100ms. This removes the artificial 10 IOPS limit
    while still easing up on new I/Os during memory shortages. Remove
    tying the amount of time we do this to the number of failed requests
    and do it only as long as we keep failing requests.
    
    Finally, to avoid needless recursion when memory is tight (start ->
    g_io_deliver() -> g_io_request() -> start -> ... until we use 1/2 the
    stack), don't do direct dispatch while pacing. This should be a rare
    event (not steady state) so the performance hit here is worth the
    extra safety of not starving g_down() with directly dispatched I/O.
    
    Differential Review: https://reviews.freebsd.org/D3546
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287405 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  9. - snprintf() returns at most size-1 of the chars printed into

    hrs authored
      the buffer.  (n == hostlen) also means the buffer length was
      too short.
    
    - Use sdl->sdl_data only when (sdl->sdl_nlen > 0 && sdl->sdl_alen == 0)
      to prevent redundant output.
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287404 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  10. ioat: re-initialize interrupts after resetting hw on BDXDE

    cem authored
    Resetting some generations of the I/OAT hardware (just BDXDE for now)
    resets the corresponding MSI-X registers.  So, teardown and
    re-initialize interrupts after resetting the hardware.
    
    Reviewed by:	jimharris
    Approved by:	markj (mentor)
    Sponsored by:	EMC / Isilon Storage Division
    Differential Revision:	https://reviews.freebsd.org/D3549
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287403 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  11. Fix a panic which was reproducible by an infinite loop of

    hrs authored
    "ifconfig epair0 create && ifconfig epair0a destroy".
    
    This was caused by an uninitialized function pointer in
    softc->media.
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287402 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  12. The ${BUILDKERNELS:[2..-1]} appears to produce a non zero result for

    glebius authored
    a one word variable, which is quite unexpected from documentation.
    So, to avoid double installation of a single kernel, protect the extra
    kernels loop with ${BUILDKERNELS:[#]} > 1 conditional.
    
    Sponsored by:	Netflix
    Sponsored by:	Nginx, Inc.
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287400 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  13. Remove the software queue, which is a remnant of ifnet ifqueue.

    glebius authored
    Reviewed by:	adrian
    Sponsored by:	Netflix
    Sponsored by:	Nginx, Inc.
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head@287399 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Something went wrong with that request. Please try again.