Displaying 1 50 of 478,398 commits (0.026s)

PC-BSD — sys/dev/isp isp_freebsd.c isp.c

Merge remote-tracking branch 'freebsd/stable/11' into freebsd11
∈ mav - 16c9111f - 2017-03-26 08:53:29
MFC r315161: Try to slight untangle I/O and loop status handling.

PC-BSD — sys/dev/isp isp_freebsd.c isp.c

MFC r315160: Remove code for unsupported FreeBSD versions.

PC-BSD — sys/dev/isp isp_freebsd.c isp_freebsd.h

MFC r315163: Remove strange config_intrhook_establish() magic.

Interrupts are enabled as part of chip reset just during driver attach.
Later "enabling" of already enabled interrupts is useless.

PC-BSD — sys/vm vm_fault.c

MFC r315552:
Fix off-by-one in the vm_fault_populate() code.
Delta File
+1 -1 sys/vm/vm_fault.c
+1 -1 1 file

PC-BSD — sys/dev/cpuctl cpuctl.c

MFC r315588:
Update the list of cpudev ioctls which require write access.
Delta File
+3 -2 sys/dev/cpuctl/cpuctl.c
+3 -2 1 file

PC-BSD — sys/dev/cpuctl cpuctl.c

MFC r315586:
Style.
Delta File
+9 -6 sys/dev/cpuctl/cpuctl.c
+9 -6 1 file

PC-BSD — sys/kern kern_sig.c, tests/sys/kern ptrace_test.c

MFC r315412, r314852:

r315412:
    Don't clear p_ptevents on normal SIGKILL delivery

    The ptrace() user has the option of discarding the signal. In such a
    case, p_ptevents should not be modified. If the ptrace() user decides to
    send a SIGKILL, ptevents will be cleared in ptracestop(). procfs events
    do not have the capability to discard the signal, so continue to clear
    the mask in that case.

r314852:
    don't stop in issignal() if P_SINGLE_EXIT is set

    Suppose a traced process is stopped in ptracestop() due to receipt of a
    SIGSTOP signal, and is awaiting orders from the tracing process on how
    to handle the signal. Before sending any such orders, the tracing
    process exits. This should kill the traced process. But suppose a second
    thread handles the SIGKILL and proceeds to exit1(), calling
    thread_single(). The first thread will now awaken and will have a chance
    to check once more if it should go to sleep due to the SIGSTOP.  It must
    not sleep after P_SINGLE_EXIT has been set; this would prevent the
    SIGKILL from taking effect, leaving a stopped orphan behind after the
    tracing process dies.


    [3 lines not shown]
Delta File
+210 -0 tests/sys/kern/ptrace_test.c
+9 -10 sys/kern/kern_sig.c
+219 -10 2 files

PC-BSD — sys/compat/linux linux_socket.c

MFC r315499:

Remove superflous break statment.
Delta File
+0 -3 sys/compat/linux/linux_socket.c
+0 -3 1 file

PC-BSD — sys/compat/linux linux_socket.c

MFC r315503:

As noted by Roel Bouwman Linux allows a large buffer size than the
struct ucred size. Fix this.

PR:           102956
Delta File
+1 -1 sys/compat/linux/linux_socket.c
+1 -1 1 file

PC-BSD — sys/compat/linux linux_vdso.c

MFC r315278:

Fix usage of the same 'i' variable in the external and nested loops.
Delta File
+2 -2 sys/compat/linux/linux_vdso.c
+2 -2 1 file

PC-BSD — sys/kern kern_sig.c sys_process.c, sys/sys signalvar.h

MFC r313992, r314075, r314118, r315484:

r315484:
    ptrace_test: eliminate assumption about thread scheduling

    A couple of the ptrace tests make assumptions about which thread in a
    multithreaded process will run after a halt. This makes the tests less
    portable across branches, and susceptible to future breakage. Instead,
    twiddle thread scheduling and priorities to match the tests'
    expectation.

r314118:
    Actually fix buildworlds other than i386/amd64/sparc64 after r313992

    Disable offending test for platforms without a userspace visible
    breakpoint().

r314075:
    Fix world build for archs where __builtin_debugtrap() does not work.

    The offending code was introduced in r313992.

r313992:
    Defer ptracestop() signals that cannot be delivered immediately


    [13 lines not shown]
Delta File
+1,162 -0 tests/sys/kern/ptrace_test.c
+132 -92 sys/kern/kern_sig.c
+10 -0 sys/kern/sys_process.c
+3 -3 sys/kern/subr_syscall.c
+4 -2 sys/sys/signalvar.h
+2 -2 sys/kern/kern_fork.c
+2 -1 2 files not shown
+1,315 -100 8 files

PC-BSD — contrib/libcxxrt typeinfo.cc

MFC r315745:

Cherry-pick libcxxrt commit 8a853717e61d5d55cbdf74d9d0a7545da5d5ff92:

Author: David Chisnall <theraven at FreeBSD.org>
Date:   Wed Mar 22 12:27:08 2017 +0000

    Simplify some code.

    realloc() with a null pointer is equivalent to malloc, so we don't need
    to handle the two cases independently.

    Fixes #46

This should help with lang/beignet and other programs, which expect
__cxa_demangle(name, NULL, NULL, &status) to return zero in status.

PR:                213732
Delta File
+1 -9 contrib/libcxxrt/typeinfo.cc
+1 -9 1 file

PC-BSD — lib/libcompiler_rt Makefile

MFC r315689:

Gcc has incompatible internal declarations for __divtc3 and __multc3 as
defined in compiler-rt, but it has no option to silence its warning, so
make gcc warnings for libcompiler_rt non-fatal.

Noticed by:        lwhsu
Delta File
+4 -0 lib/libcompiler_rt/Makefile
+4 -0 1 file

PC-BSD — share/man/man4 ctl.4

MFC r315087, r315146:
Improve ctl(4) description, including frontends and backends.
Delta File
+61 -20 share/man/man4/ctl.4
+61 -20 1 file

PC-BSD — sys/cam/ctl scsi_ctl.c

MFC r315084: Increase device openings to tagged maximum.

Some SIMs report much less untagged device openings then tagged ones.
Target mode devices are not handled by regular probing routines, and so
there is nothing to increase queue size for them to the SIM's maximum.
To fix that resize the queue explicitly on ctl periph registration.
This radically improves performance of mpt(4) in target mode.

Also fetch and report device queue statistics in `ctladm dumpstructs`,
since regular way of `camcontrol tags` is not usable in target mode.
Delta File
+25 -5 sys/cam/ctl/scsi_ctl.c
+25 -5 1 file

PC-BSD — sys/cam cam_xpt.c

MFC r315082: Allow XPT_GDEV_STATS for UNCONFIGURED devices.

Queue statistics has nothing to do with presence or absence of INQUIRY
data, etc.  Target mode devices are never configured, but have queues.
Delta File
+18 -29 sys/cam/cam_xpt.c
+18 -29 1 file

PC-BSD — sys/dev/usb/input ums.c

MFC r315716
  Bring the handling of the y axis in the ums driver in-line with the other
  axes.

  No functional change.
Delta File
+1 -1 sys/dev/usb/input/ums.c
+1 -1 1 file

PC-BSD — usr.sbin/bhyve usb_mouse.c

MFC r315715  Fix a type in bhyve's USB mouse emulation.
Delta File
+1 -1 usr.sbin/bhyve/usb_mouse.c
+1 -1 1 file

PC-BSD — sys/amd64/vmm x86.c, sys/x86/include specialreg.h

MFC  r315361 and  r315364: Hide MONITORX/MWAITX from guests.

r315361
  Add the AMD MONITORX/MWAITX feature definition introduced in
  Bulldozer/Ryzen CPUs.

r315364
  Hide the AMD MONITORX/MWAITX capability.
  Otherwise, recent Linux guests will use these instructions, resulting
  in #UD exceptions since bhyve doesn't implement MONITOR/MWAIT exits.

  This fixes boot-time hangs in recent Linux guests on Ryzen CPUs
  (and probably Bulldozer aka AMD FX as well).

PC-BSD — lib/libc/sys clock_gettime.2

MFC r315694

clock_gettime.2: add some clock IDs

Add the CLOCK_PROCESS_CPUTIME_ID and CLOCK_THREAD_CPUTIME_ID clock_id
values to the clock_gettime(2) man page.  Reformat the excessively
long paragraph (sentence!) into a tag list.

Sponsored by:        Dell EMC
Delta File
+36 -26 lib/libc/sys/clock_gettime.2
+36 -26 1 file

PC-BSD — contrib/openpam/lib/libpam pam_get_user.c pam_get_authtok.c

Subset of upstream r902 which fixes custom prompts.

PR:                216172

PC-BSD — lib/libfetch common.c fetch.c

MFH (r313974,r314596): open .netrc early in case we want to drop privs
MFH (r314396,r315143): fix a crash caused by an incorrect format string
MFH (r314701): fix handling of 416 errors when requesting a range
MFH (r315455): fix parsing of IP literals (square brackets)

PR:                212065, 217723

PC-BSD — sys/sys filedesc.h

MFC r305383:

fd: fix up fdeget_file

It was supposed to return NULL if a fp is not installed.
Delta File
+6 -1 sys/sys/filedesc.h
+6 -1 1 file

PC-BSD — sys/kern kern_sig.c

MFC r315453:
When clearing altsigstack settings on exec, do it to the right thread.
Delta File
+2 -1 sys/kern/kern_sig.c
+2 -1 1 file

PC-BSD — sys/cam/ctl scsi_ctl.c

MFC r315022: Request change of SIM target role only when it is different.

Separate WWNs change into separate request to know what actually failed.
Delta File
+51 -51 sys/cam/ctl/scsi_ctl.c
+51 -51 1 file

PC-BSD — sys/cam/ctl scsi_ctl.c

MFC r315030: Abort all ATIOs and INOTs queued to SIM on LUN disable.

Some SIMs may not abort them implicitly, that either fail the LUN disable
request or just make us wait for those CCBs forever.  With this change
I can successfully disable LUNs on mpt(4).  For isp(4), which aborts them
implicitly, this change should be irrelevant.
Delta File
+45 -22 sys/cam/ctl/scsi_ctl.c
+45 -22 1 file

PC-BSD — sys/cam/ctl scsi_ctl.c

MFC r315025: Switch work_queue from TAILQ to STAILQ.

It is mostly FIFO and we don't need random removal there.
Delta File
+13 -14 sys/cam/ctl/scsi_ctl.c
+13 -14 1 file

PC-BSD — sys/dev/bxe bxe.c bxe_elink.c

MFC r314365
1. state checks in bxe_tx_mq_start_locked() and bxe_tx_mq_start() to
   sync threads during interface down or detach.
2. add sysctl to set pause frame parameters
3. increase max segs for TSO packets to BXE_TSO_MAX_SEGMENTS (32)
4. add debug messages for PHY
5. HW LRO support restricted to FreeBSD versions 8.x and above.

Submitted by:        Vaishali.Kulkarni at cavium.com

PC-BSD — sys/arm/include atomic-v6.h atomic-v4.h

MFC r312932,r312933,r312949,r313141

(by cognet)

Use strexeq instead of needlessly branch.

==

(by cognet)

Remove useless labels.

==

(by cognet)

Correct the IT instruction in atomic_fcmpset_64().

==

(by andrew)

Only define atomic_fcmpset_long in the kernel. We may include
machine/atomic.h in userspace, however atomic_fcmpset_32 is unimplemented
there.

PC-BSD — sys/dev/cxgbe/iw_cxgbe qp.c

Merge remote-tracking branch 'freebsd/stable/11' into freebsd11
∈ np - f24a7358 - 2017-03-23 17:11:34
MFC r314814 and r315325.

r314814:
cxgbe/iw_cxgbe: Abort connection if there is an error during c4iw_modify_qp.

r315325:
cxgbe/iw_cxgbe: Use the socket and not the toepcb to reach for the
inpcb.  t4_tom detaches the inpcb from the toepcb as soon as the
hardware is done with the connection (in final_cpl_received) but the
socket is around as long as the cm_id and the rest of iWARP state is.

This fixes an intermittent NULL dereference during abort.
Delta File
+27 -8 sys/dev/cxgbe/iw_cxgbe/qp.c
+27 -8 1 file

PC-BSD — rescue/rescue Makefile

Adding nc broke the rest of usr.bin to that point.

Ticket: #22685
Delta File
+1 -1 rescue/rescue/Makefile
+1 -1 1 file

PC-BSD — sys/geom geom_dev.c

Merge branch 'stable/11' of https://github.com/freebsd/freebsd into freenas/11-stable
∈ mav - 4d00009d - 2017-03-22 07:53:57
MFC r314908: When chunking large DIOCGDELETE, do it on stripe edge.
Delta File
+8 -1 sys/geom/geom_dev.c
+8 -1 1 file

PC-BSD — sys/cam/scsi scsi_da.c

MFC r314906: Add initial support for UNMAP granularity.

Report UNMAP granularity as stripesize/-offset if we have no other values
to report there.

Add new quirk DA_Q_STRICT_UNMAP for cases when target is too critical to
misaligned UNMAP request, reporting errors instead of being suboptimal.
Setting this quirk makes da periph to forcefully align all UNMAP requests
to avoid those errors by the cost of some odd ranges not being UNMAP'ed.
This makes UNMAP usable within VMware 6.x VMs, just now 100% efficient.
Delta File
+71 -13 sys/cam/scsi/scsi_da.c
+71 -13 1 file

PC-BSD — contrib/libc++/include utility

Pull in r283944 from upstream libc++ trunk (by Eric Fiselier):

  Fix std::pair on FreeBSD

  Summary:
  FreeBSD ships an old ABI for std::pair which requires that it have
  non-trivial copy/move constructors. Currently the non-trivial
  copy/move is achieved by providing explicit definitions of the
  constructors. This is problematic because it means the constructors
  don't SFINAE properly. In order to SFINAE copy/move constructors they
  have to be explicitly defaulted and hense non-trivial.

  This patch attempts to provide SFINAE'ing copy/move constructors for
  std::pair while still making them non-trivial. It does this by adding
  a base class with a non-trivial copy constructor and then allowing
  pair's constructors to be generated by the compiler. This also allows
  the constructors to be constexpr.

  Reviewers: emaste, theraven, rsmith, dim

  Subscribers: cfe-commits

  Differential Revision: https://reviews.llvm.org/D25389

This should fix building www/chromium 57.0.2987.110 on stable/11,

    [4 lines not shown]
Delta File
+13 -20 contrib/libc++/include/utility
+13 -20 1 file

PC-BSD — etc/mtree BSD.tests.dist, lib/libcam Makefile

MFC r315320:

Start adding basic tests for cam(3)

This change contains several negative and positive tests for:
- cam_open_device
- cam_close_device
- cam_getccb
- cam_freeccb

This also contains a test for the failure case noted in bug 217649,
i.e., O_RDWR must be specified because pass(4) requires it.

This test unfortunately cannot assume that cam-capable devices are
present, so the user must explicitly provide a device via
`test_suites.FreeBSD.cam_test_device`. In the future, a test kernel
module might be shipped, or ctl(4) might be used, as a test device
when testing out libcam, which will allow the tests to do away with
having to specify an explicit test device.

PC-BSD — sys/dev/xen/blkfront blkfront.c, sys/dev/xen/control control.c

MFC r314840:

xen: add support for canceled suspend

Submitted by:        Liuyingdong <liuyingdong at huawei.com>
Reviewed by:        royger

PC-BSD — sys/dev/xen/control control.c, sys/dev/xen/xenstore xenstore.c

MFC r314841:

xenstore: fix suspension when using the xenstore device

Submitted by:         Liuyingdong <liuyingdong at huawei.com>
Reviewed by:          royger

PC-BSD — sys/dev/xen/timer timer.c

MFC r314094:

xen/timer: mark the Xen PV timer as not safe for suspension

Submitted by:                Liuyingdong <liuyingdong at huawei.com>
Reviewed by:                royger
Delta File
+13 -1 sys/dev/xen/timer/timer.c
+13 -1 1 file

PC-BSD — sys/dev/xen/netfront netfront.c

MFC r314842:

xen/netfront: fix inbound packet flags for checksum offload

Reviewed by:          Wei Liu <wei.liu2 at citrix.com>
Sponsored by:         Citrix Systems R&D
Delta File
+9 -7 sys/dev/xen/netfront/netfront.c
+9 -7 1 file

PC-BSD — tools/build/mk OptionalObsoleteFiles.inc

MFC r314241,r315228:

r314241:

Fill in MK_RESCUE by finding paths in ${DESTDIR}/rescue and adding
them to OLD_FILES/OLD_DIRS, as necessary.

r315228:

Redirect standard error from find /rescue to /dev/null

This mutes noise from find when /rescue doesn't exist.

PC-BSD — usr.sbin/lpr/common_source common.c

MFC r314877:
lpr(1): small bounds check with reallocarray(3).

While here plug a memory leak upon error and postpose the multiplication
until after reallocation has succeded.

Hinted partially by:        OpenBSD
Reviewed by:                gad

PC-BSD — sys/compat/freebsd32 freebsd32_misc.c, sys/compat/linux linux_time.c

MFC r315510

nanosleep: plug a kernel memory disclosure

nanosleep() updates rmtp on EINVAL.  In that case, kern_nanosleep()
has not updated rmt, so sys_nanosleep() updates the user-space rmtp
by copying garbage from its stack frame.  This is not only a kernel
memory disclosure, it's also not POSIX-compliant.  Fix it to update
rmtp only on EINTR.

Security:        possibly
Sponsored by:        Dell EMC

PC-BSD — share/mk bsd.dep.mk

Merge pull request #23 from freenas/freebsd11

Pull changes from freebsd11
∈ Jordan Hubbard - 6a17c5cb - 2017-03-17 19:46:25
Merge remote-tracking branch 'freebsd/stable/11' into freebsd11
∈ bdrewery - d606c264 - 2017-03-17 18:08:36
    META_MODE: Fix not using .depend files when no OBJDIR is present.
    
    By default bmake does not allow meta mode to work unless an OBJDIR is
    present.  It allows this if curdirok= is set with a value not starting
    with [0NnFf], but usually it is "yes".
    
    MFC after:        2 weeks
    Sponsored by:        Dell EMC Isilon
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 315461 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+7 -0 share/mk/bsd.dep.mk
+7 -0 1 file

PC-BSD — share/mk bsd.dep.mk

Merge remote-tracking branch 'freebsd/stable/11' into freebsd11
∈ bdrewery - d606c264 - 2017-03-17 18:08:36
    META_MODE: Fix not using .depend files when no OBJDIR is present.
    
    By default bmake does not allow meta mode to work unless an OBJDIR is
    present.  It allows this if curdirok= is set with a value not starting
    with [0NnFf], but usually it is "yes".
    
    MFC after:        2 weeks
    Sponsored by:        Dell EMC Isilon
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 315461 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+7 -0 share/mk/bsd.dep.mk
+7 -0 1 file

PC-BSD — share/mk bsd.dep.mk

    META_MODE: Fix not using .depend files when no OBJDIR is present.
    
    By default bmake does not allow meta mode to work unless an OBJDIR is
    present.  It allows this if curdirok= is set with a value not starting
    with [0NnFf], but usually it is "yes".
    
    MFC after:        2 weeks
    Sponsored by:        Dell EMC Isilon
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 315461 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+7 -0 share/mk/bsd.dep.mk
+7 -0 1 file

PC-BSD — sys/conf kmod.mk

    kmod: Fix building assym.o not building missing dependencies.
    
    For instance, in the dtrace/dtrace module, building dtrace_asm.o wants
    to build genassym.o first, but it doesn't build the missing ilinks
    and if_*.h headers which are part of the OBJS_DEPEND_GUESS list
    of dependencies to build if a .depend file is missing.
    
    MFC after:        1 week
    Sponsored by:        Dell EMC Isilon
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 315460 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+1 -0 sys/conf/kmod.mk
+1 -0 1 file

PC-BSD — sys/conf kmod.mk

    kmod: Fix depending on ILINKS for tracked DEPENDOBJS.
    
    The objects that may be in the dependency graph may not match
    ${OBJS}.  Ensure the ilink link is added as a dependency for
    all of them when a .depend file is missing for that objfile.
    
    MFC after:        2 weeks
    Sponsored by:        Dell EMC Isilon
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 315459 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Delta File
+1 -1 sys/conf/kmod.mk
+1 -1 1 file

PC-BSD — sys/netinet6 nd6_rtr.c nd6.c, tests/sys/netinet fibs_test.sh

    Constrain IPv6 routes to single FIBs when net.add_addr_allfibs=0
    
    sys/netinet6/icmp6.c
            Use the interface's FIB for source address selection in ICMPv6 error
            responses.
    
    sys/netinet6/in6.c
            In in6_newaddrmsg, announce arrival of local addresses on the
            interface's FIB only.  In in6_lltable_rtcheck, use a per-fib ND6
            cache instead of a single cache.
    
    sys/netinet6/in6_src.c
            In in6_selectsrc, use the caller's fib instead of the default fib.
            In in6_selectsrc_socket, remove a superfluous check.
    
    sys/netinet6/nd6.c
            In nd6_lle_event, use the interface's fib for routing socket
            messages.  In nd6_is_new_addr_neighbor, check all FIBs when trying
            to determine whether an address is a neighbor.  Also, simplify the
            code for point to point interfaces.
    
    sys/netinet6/nd6.h
    sys/netinet6/nd6.c
    sys/netinet6/nd6_rtr.c
            Make defrouter_select fib-aware, and make all of its callers pass in

    [27 lines not shown]
Delta File
+81 -27 sys/netinet6/nd6_rtr.c
+44 -28 sys/netinet6/nd6.c
+5 -9 tests/sys/netinet/fibs_test.sh
+7 -5 sys/netinet6/in6.c
+3 -4 sys/netinet6/nd6_nbr.c
+2 -2 sys/netinet6/icmp6.c
+3 -2 2 files not shown
+145 -77 8 files

PC-BSD — sys/compat/linuxkpi/common/include/linux pid.h sched.h, sys/compat/linuxkpi/common/src linux_current.c linux_kthread.c

    Implement get_pid_task(), pid_task() and some other PID helper
    functions in the LinuxKPI. Add a usage atomic to the task_struct
    structure to facilitate refcounting the task structure when returned
    from get_pid_task(). The get_task_struct() and put_task_struct()
    function is used to manage atomic refcounting. After this change the
    task_struct should only be freed through put_task_struct().
    
    Obtained from:                kmacy @
    MFC after:                1 week
    Sponsored by:                Mellanox Technologies
    
    
    git-svn-id: svn+ssh://svn.freebsd.org/base/head at 315457 
ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

PC-BSD — sys/dev/cxgb/ulp/iw_cxgb iw_cxgb_cm.c, sys/fs/nfsserver nfs_nfsdkrpc.c

MFC r313821 r315277 r315286

Use inet_ntoa_r() instead of inet_ntoa() throughout the kernel.

inet_ntoa() cannot be used safely in a multithreaded environment
because it uses a static local buffer.  Instead, use inet_ntoa_r()
with a buffer on the caller's stack, except for KTR messages.
KTR can correctly log the immediate integral values passed to it,
as well as constant strings, but not non-constant strings,
since they might change by the time ktrdump retrieves them.
Therefore, use hex notation in KTR messages.

Sponsored by:        Dell EMC
Delta File
+50 -59 sys/netinet/igmp.c
+42 -47 sys/netinet/in_mcast.c
+20 -19 sys/netinet/ip_mroute.c
+24 -8 sys/netinet/libalias/alias_nbt.c
+17 -9 sys/netinet/if_ether.c
+14 -9 sys/netinet/ip_icmp.c
+55 -25 10 files not shown
+222 -176 16 files