Displaying 1 50 of 299,176 commits (0.025s)

FreeBSD — head/sys/dev/bhnd bhnd.c bhnd_bus_if.m, head/sys/dev/bhnd/bcma bcma.c bcma_subr.c

bhnd(4): Add devinfo allocation and child addition methods, modeled on
pci_if.

This allows bhnd(4) to manage per-device state (such as per-core
pmu/clock refcounting) on behalf of subclass driver instances.

Approved by:        re (gjb), adrian (mentor)
Differential Revision:        https://reviews.freebsd.org/D6959

FreeBSD — head/sys/mips/atheros ar71xx_chip.c ar71xx_machdep.c, head/sys/mips/broadcom bcm_machdep.c uart_cpu_chipc.c

Replace mips/sentry5 with mips/broadcom

The delta between SENTRY5 and BCM was already small due to BCM being
derived from SENTRY5; re-integrating the two avoids the maintenance
overhead of keeping them both in sync with bhnd(4) changes.


- Re-integrate minor SENTRY5 deltas in bcm_machdep.c
- Modify uart_cpu_chipc to allow specifying UART debug/console flags via
  kenv and device hints.
- Switch SENTRY5 to std.broadcom
- Enabled CFI flash support for SENTRY5

Reviewed by:        Michael Zhilin <mizkha at gmail.com> (Broadcom MIPS support)
Approved by:        re (gjb), adrian (mentor)
Differential Revision:        https://reviews.freebsd.org/D6897

FreeBSD — head/sys/dev/bhnd bhnd_subr.c bhnd_bus_if.m, head/sys/dev/bhnd/cores/chipc chipc.c chipc_spi.c

bhnd(4): Perform explicit chipc child enumeration.

Replaces use of DEVICE_IDENTIFY with explicit enumeration of chipc
child devices using the chipc capability structure.

This is a precursor to PMU support, which requires more complex resource
assignment handling than achievable with the static device name-based
hints table.

Reviewed by:        Michael Zhilin <mizkha at gmail.com> (Broadcom MIPS support)
Approved by:        re (gjb), adrian (mentor)
Differential Revision:        https://reviews.freebsd.org/D6896

FreeBSD — user/gjb/thermite thermite.sh

Remove upload_azure_image(), as Microsoft has overtaken creating Azure
VM images (and thank you for doing this!).

Sponsored by:        The FreeBSD Foundation
Delta File
+0 -34 user/gjb/thermite/thermite.sh
+0 -34 1 file

FreeBSD — user/gjb/thermite thermite.sh

Spell 'virtual' correctly.

Sponsored by:        The FreeBSD Foundation
Delta File
+3 -3 user/gjb/thermite/thermite.sh
+3 -3 1 file

FreeBSD — head/sys/dev/urtwn if_urtwn.c

urtwn: use m_get2() in Rx path.

Replace m_getcl() with m_get2(); this fixes 'frame too long'
messages for frames, which are longer than MCLBYTES
(can be easily triggered when A-MSDU is used).

Tested with RTL8188CUS (AP) and RTL8188EU (STA).

Approved by:        re (marius)
Delta File
+1 -8 head/sys/dev/urtwn/if_urtwn.c
+1 -8 1 file

FreeBSD — head/release/doc/en_US.ISO8859-1/relnotes article.xml

Update the release notes following r302182.

Approved by:        re (implicit, relnotes)
Sponsored by:        The FreeBSD Foundation

FreeBSD — head/release/tools ec2.conf

Turn off MSI-X interrupt migration by default in EC2 instances; this works
around a bug in older versions of Xen and unbreaks SR-IOV (aka. "EC2
Enhanced Networking").

Approved by:        re (gjb)
Thanks to:        jhb, Jeremiah Lott
Delta File
+6 -0 head/release/tools/ec2.conf
+6 -0 1 file

FreeBSD — head/sys/dev/urtwn if_urtwn.c

urtwn: fix memory leak on device restart

Free data buffers every time when device is stopped, not when
it is detached; they are allocated at the initialization stage.

How-to-reproduce:
1) ifconfig wlan0 create wlandev urtwn0 up
2) vmstat -m | grep USBdev
3) service netif restart
4) vmstat -m | grep USBdev

Also, remove usbd_transfer_drain() call; it is already called by
usbd_transfer_unsetup().

Tested with RTL8188CUS, STA mode.

Approved by:        re (marius)
Delta File
+9 -21 head/sys/dev/urtwn/if_urtwn.c
+9 -21 1 file

FreeBSD — head/crypto/openssh blacklist.c blacklist_client.h, head/secure/usr.sbin/sshd Makefile Makefile.depend

Revert r301551, which added blacklistd(8) to sshd(8).

This change has functional impact, and other concerns raised
by the OpenSSH maintainer.

Requested by:        des
PR:                210479 (related)
Approved by:        re (marius)
Sponsored by:        The FreeBSD Foundation

FreeBSD — head/sys/x86/x86 msi.c

Add a tunable to disable migration of MSI-X interrupts.

The new 'machdep.disable_msix_migration' tunable can be set to 1 to
disable migration of MSI-X interrupts.

Xen versions prior to 4.6.0 do not properly handle updates to MSI-X
table entries after the initial write.  In particular, the operation
to unmask a table entry after updating it during migration is not
propagated to the "real" table for passthrough devices causing the
interrupt to remain masked.  At least some systems in EC2 are
affected by this bug when using SRIOV.  The tunable can be set in
loader.conf as a workaround.

Submitted by:        Jeremiah Lott <jlott at averesystems.com> (original patch)
Approved by:        re (marius)
MFC after:        2 weeks
Differential Revision:        https://reviews.freebsd.org/D6947
Delta File
+14 -0 head/sys/x86/x86/msi.c
+14 -0 1 file

FreeBSD — head/sys/sys bitstring.h, head/tests/sys/sys bitstring_test.c

Fix bitstring allocation on 32-bit platforms

sys/sys/bitstring.h
        Fix a rounding calculation that could undersize a bitstring on
        32-bit platforms.

tests/sys/sys/bitstring_test.h
        Add a test for bitstr_size

PR:                210260
Reported by:        Mark Millard
Reviewed by:        gibbs
Approved by:        re (marius)
Sponsored by:        Spectra Logic Corp
Differential Revision:        https://reviews.freebsd.org/D6848

FreeBSD — head/usr.bin/gcore elfcore.c

gcore: Forward pending signals when detaching from the target.

Otherwise gcore's ptrace attach operation can race with delivery of a
signal and cause it to be lost.

In collaboration with:        Suraj Raju <sraju at isilon.com>
Reviewed by:        bdrewery
Approved by:        re (gjb, kib)
MFC after:        2 weeks
Sponsored by:        EMC / Isilon Storage Division
Delta File
+13 -3 head/usr.bin/gcore/elfcore.c
+13 -3 1 file

FreeBSD — head/share/man/man5 src.conf.5

Regenerate

Approved by:        re (implicit, r302177)
Delta File
+18 -6 head/share/man/man5/src.conf.5
+18 -6 1 file

FreeBSD — head/share/mk src.opts.mk

WITH_SYSTEM_COMPILER: Enable by default

This improves buildworld, toolchain, kernel-toolchain, and universe targets.
See r300354 or src.conf(5) for more details.

Approved by:        re (gjb)
Relnotes:        yes (r300354)
Sponsored by:        EMC / Isilon Storage Division
Delta File
+1 -1 head/share/mk/src.opts.mk
+1 -1 1 file

FreeBSD — head/share/mk bsd.prog.mk

bsd.prog.mk: add "/usr/lib" to list of base system directories

kgzldr.o is installed into /usr/lib but using bsd.prog.mk. Add
/usr/lib to the base system directory list so that debug files are
installed into /usr/lib/debug/usr/lib, not /usr/lib/.debug .

Approved by:        re (gjb)
MFC after:        1 week
Sponsored by:        The FreeBSD Foundation
Delta File
+2 -1 head/share/mk/bsd.prog.mk
+2 -1 1 file

FreeBSD — head/share/man/man9 pci.9, head/sys/dev/pci pci.c pcivar.h

Add pci_get_max_payload() to fetch the PCI-express maximum payload size.

Approved by:        re (gjb)
MFC after:        2 weeks
Sponsored by:        Chelsio Communications
Differential Revision:        https://reviews.freebsd.org/D6951

FreeBSD — head/sbin/sysctl sysctl.c

Fix "sysctl vm.vmtotal" output on machines with > 2TB virtual memory

sbin/sysctl/sysctl.c
        Fix integer overflows in printf format strings

PR:                199673
Submitted by:        Vitaly Magerya
Reviewed by:        cem
Approved by:        re (marius)
MFC after:        4 weeks
Sponsored by:        Spectra Logic Corp
Differential Revision:        https://reviews.freebsd.org/D6941
Delta File
+9 -9 head/sbin/sysctl/sysctl.c
+9 -9 1 file

FreeBSD — head/sys/netpfil/pf pf_ioctl.c

The void isn't void.

Unbreak sparc64 and powerpc builds.

Approved by:        re (gjb)
Sponsored by:        The FreeBSD Foundation
MFC after:        12 days
Delta File
+1 -1 head/sys/netpfil/pf/pf_ioctl.c
+1 -1 1 file

FreeBSD — projects/vnet/sys/netpfil/pf pf_ioctl.c

Fix builds on sparc64 and powerpc.

Sponsored by:        The FreeBSD Foundation

FreeBSD — head/lib/libusb libusb10.h libusb.h

Resolve issue with libusb C++ header file inclusion.

Approved by:        re (marius)
PR:                210509
MFC after:        1 week

FreeBSD — stable/10/sys/conf files.i386 files.amd64, stable/10/sys/dev/hyperv/vmbus hv_channel_mgmt.c vmbus.c

MFC 301483,301484,301487,301488,301583,301588

301483
    hyperv: Move machine dependent bits into machine dependent files.

    MFC after:  1 week
    Sponsored by:       Microsoft OSTC
    Differential Revision:      https://reviews.freebsd.org/D6701

301484
    hyperv/vmbus: Define type for channel messages.

    And fix message processing; only channel messages are supported.

    MFC after:  1 week
    Sponsored by:       Microsoft OSTC
    Differential Revision:      https://reviews.freebsd.org/D6706

301487
    hyperv/vmbus: Factor out channel message processing

    This paves the way for further cleanup.

    MFC after:  1 week
    Sponsored by:       Microsoft OSTC

    [22 lines not shown]

FreeBSD — stable/9/lib/libc/regex regex.3 engine.c

MFC r300683:
libc: regexec(3) adjustment.

Change the behavior of when REG_STARTEND is combined with REG_NOTBOL.

From the original posting[1]:

"Enable the assumption that pmatch[0].rm_so is a continuation offset
to  a string and allows us to do a proper assessment of the character
in  regards to it's word position ('^' or '\<'), without risking going
into unallocated memory."

This change makes us similar to how glibc handles REG_STARTEND |
REG_NOTBOL, and is closely related to a soon-to-land fix to sed.

Special thanks to Martijn van Duren and Ingo Schwarze for working
out some consistent behaviour.

Differential Revision:        https://reviews.freebsd.org/D6257
Taken from:        openbsd-tech 2016-05-24 [1]  (Martijn van Duren)

FreeBSD — stable/10/lib/libc/regex regex.3 engine.c

MFC r300683:
libc: regexec(3) adjustment.

Change the behavior of when REG_STARTEND is combined with REG_NOTBOL.

From the original posting[1]:

"Enable the assumption that pmatch[0].rm_so is a continuation offset
to  a string and allows us to do a proper assessment of the character
in  regards to it's word position ('^' or '\<'), without risking going
into unallocated memory."

This change makes us similar to how glibc handles REG_STARTEND |
REG_NOTBOL, and is closely related to a soon-to-land fix to sed.

Special thanks to Martijn van Duren and Ingo Schwarze for working
out some consistent behaviour.

Differential Revision:        https://reviews.freebsd.org/D6257
Taken from:        openbsd-tech 2016-05-24 [1]  (Martijn van Duren)

FreeBSD — stable/10/sys/conf files.i386 files.amd64, stable/10/sys/dev/hyperv/vmbus vmbus.c hv_vmbus_drv_freebsd.c

MFC 301113

    hyperv: Rename some cleaned up/almost cleaned up files

    MFC after:  1 week
    Sponsored by:       Microsoft OSTC

FreeBSD — stable/10/sys/dev/hyperv/include hyperv.h, stable/10/sys/dev/hyperv/utilities hv_kvp.c

MFC 301017,301018,301019,301020,301021,301022,301106

301017
    hyperv/vmbus: Indentation cleanup

    No functional changes.

    MFC after:  1 week
    Sponsored by:       Microsoft OSTC
    Differential Revision:      https://reviews.freebsd.org/D6602

301018
    hyperv/vmbus: Move global vmbus id array to stack.

    MFC after:  1 week
    Sponsored by:       Microsoft OSTC
    Differential Revision:      https://reviews.freebsd.org/D6603

301019
    hyperv/vmbus: Redefine SynIC message.

    - Avoid unnecessary indirection.
    - Avoid bit fields.
    - Use __packed.


    [42 lines not shown]

FreeBSD — stable/10/sys/amd64/include apicvar.h, stable/10/sys/dev/hyperv/vmbus hv_vmbus_drv_freebsd.c vmbus_var.h

MFC 301015

    hyperv/vmbus: Rename ISR functions

    MFC after:  1 week
    Sponsored by:       Microsoft OSTC
    Differential Revision:      https://reviews.freebsd.org/D6601

FreeBSD — head/sys/conf newvers.sh

Update head to ALPHA5 in preparation of new snapshot builds.

Approved by:        re (implicit)
Sponsored by:        The FreeBSD Foundation
Delta File
+1 -1 head/sys/conf/newvers.sh
+1 -1 1 file

FreeBSD — head/sys/cam cam_iosched.c, head/sys/conf options

Rename CAM_NETFLIX_IOSCHED to CAM_IOSCHED_DYNAMIC to better reflect
its nature.

Approved by: re
Reviewed By: jhb
Differential Revision: https://reviews.freebsd.org/D6811
Delta File
+25 -25 head/sys/cam/cam_iosched.c
+1 -1 head/sys/conf/options
+26 -26 2 files

FreeBSD — head/usr.sbin/gstat gstat.c

Fix gstat's interactive f and q commands

curses and libedit don't play well together. After last year's libedit
upgrade in head, they play even less well together. This change resets some
curses settings after they get screwed up by libedit calls. Without it,
gstat's interactive commands require an extra "enter", screw up the terminal
on exit, and screw up the display if the user enters an invalid filter
string.

PR:                204852
Submitted by:        Keith White
Reviewed by:        pfg
Approved by:        re (gjb)
MFC after:        4 weeks
Sponsored by:        Spectra Logic Corp
Differential Revision:        https://reviews.freebsd.org/D6934
Delta File
+19 -16 head/usr.sbin/gstat/gstat.c
+19 -16 1 file

FreeBSD — head/sys/netpfil/pf if_pfsync.c

Proerply virtualize pfsync for bringup after pf is initialized and
teardown of VNETs once pf(4) has been shut down.
Properly split resources into VNET_SYS(UN)INITs and one time module
loading.
While here cover the INET parts in the uninit callpath with proper
#ifdefs.

Approved by:        re (gjb)
Obtained from:  projects/vnet
MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
Delta File
+40 -42 head/sys/netpfil/pf/if_pfsync.c
+40 -42 1 file

FreeBSD — head/sys/netpfil/pf if_pflog.c

Make sure pflog is attached after pf is initializaed so we can
borrow pf's lock, and also make sure pflog goes after pf is gone
in order to avoid callouts in VNETs to an already freed instance.

Reported by:    Ivan Klymenko, Johan Hendriks  on current@ today
Obtained from:  projects/vnet
Sponsored by:   The FreeBSD Foundation
MFC after:      13 days
Approved by:        re (gjb)
Delta File
+7 -2 head/sys/netpfil/pf/if_pflog.c
+7 -2 1 file

FreeBSD — projects/vnet UPDATING, projects/vnet/cddl/lib/libavl Makefile

MfH @r302157

merged the initial pf/pflog/pfsync changes

Sponsored by:        The FreeBSD Foundation

FreeBSD — head/sys/netpfil/pf pf_ioctl.c

PFSTATE_NOSYNC goes onto state_flags, not sync_state;
this prevents: panic: pfsync_delete_state: unexpected sync state 8

Reviewed by:                kp
Approved by:                re (gjb)
MFC after:                2 weeks
Sponsored by:                The FreeBSD Foundation
Differential Revision:        https://reviews.freebsd.org/D6942
Delta File
+1 -1 head/sys/netpfil/pf/pf_ioctl.c
+1 -1 1 file

FreeBSD — head/sys/net pfvar.h, head/sys/netpfil/pf pf_ioctl.c pf_if.c

Update pf(4) and pflog(4) to survive basic VNET testing, which includes
proper virtualisation, teardown, avoiding use-after-free, race conditions,
no longer creating a thread per VNET (which could easily be a couple of
thousand threads), gracefully ignoring global events (e.g., eventhandlers)
on teardown, clearing various globally cached pointers and checking
them before use.

Reviewed by:                kp
Approved by:                re (gjb)
Sponsored by:                The FreeBSD Foundation
MFC after:                2 weeks
Differential Revision:        https://reviews.freebsd.org/D6924

FreeBSD — head/sys/netinet tcp_subr.c

Try to avoid a 2nd conditional by re-writing the loop, pause, and
escape clause another time.

Submitted by:        jhb
Approved by:        re (gjb)
MFC after:        12 days
Delta File
+5 -4 head/sys/netinet/tcp_subr.c
+5 -4 1 file

FreeBSD — head UPDATING

Fix two typos in r302152.

Approved by:        re (implicit)
Delta File
+2 -2 head/UPDATING
+2 -2 1 file

FreeBSD — head/sys/net if_var.h, head/sys/netinet in_pcb.h

Add spares to struct ifnet and socket for packet pacing and/or general
use.  Update comments regarding the spare fields in struct inpcb.

Bump __FreeBSD_version for the changes to the size of the structures.

Reviewed by:        gnn@
Approved by:        re@ (gjb@)
Sponsored by:        Chelsio Communications

FreeBSD — head UPDATING

Add an UPDATING entry for the pipe() -> pipe2() transition.

Approved by:        re (gjb)
Sponsored by:        DARPA, AFRL
Delta File
+8 -0 head/UPDATING
+8 -0 1 file

FreeBSD — head/sys/kern uipc_shm.c

posixshm: Fix lock leak when mac_posixshm_check_read rejects read.

While reading the code, I noticed that shm_read() returns without unlocking
foffset and rangelock if mac_posixshm_check_read() rejects the read.

Reviewed by:        kib, jhb, rwatson
Approved by:        re (gjb)
MFC after:        1 week
Differential Revision:        https://reviews.freebsd.org/D6927
Delta File
+3 -3 head/sys/kern/uipc_shm.c
+3 -3 1 file

FreeBSD — head/sys/geom geom_disk.c geom_disk.h, head/sys/sys param.h

Switch geom_disk over to using a pool mutex.

The GEOM disk d_mtx is only acquired on disk creation and destruction.
It is a good candidate for replacement with a pool mutex.  This eliminates
the mutex initialization and teardown and the mutex and name variables
themselves from struct disk.

sys/geom/geom_disk.h:
        Take d_mtx and d_mtx_name out of struct disk.

sys/geom/geom_disk.c:
        Use mtx_pool_lock() and mtx_pool_unlock() to guard the disk
        initialization state instead of a dedicated mutex.

        This allows removing the initialization and destruction of
        d_mtx.

sys/sys/param.h:
        Bump __FreeBSD_version to 1100119 for the change to struct disk.

Suggested by:        jhb
Sponsored by:        Spectra Logic
Approved by:        re (gjb)

FreeBSD — head/etc/defaults rc.conf

Add support for a /etc/defaults/vendor.conf override file

Reviewed by:        stas, imp
Approved by:        re (gjb)
Differential Revision:        https://reviews.freebsd.org/D6895
Delta File
+6 -0 head/etc/defaults/rc.conf
+6 -0 1 file

FreeBSD — head/sys/netinet sctputil.c

Fix a bug in the handling of non-blocking SCTP 1-to-1 sockets. When using
this code in the userland stack, it could result in a loop. This happened on iOS.
However, I was not able to reproduce this when using the code in the kernel.
Thanks to Eugen-Andrei Gavriloaie for reporting the issue and proving detailed
information to find the root of the problem.

Approved by:        re (gjb)
MFC after:        1 week
Delta File
+16 -43 head/sys/netinet/sctputil.c
+16 -43 1 file

FreeBSD — head/sys/x86/acpica acpi_wakeup.c

Use M_NOWAIT when allocating memory for the ACPI wakeup handler.

If the allocation attempt fails, we may otherwise VM_WAIT after a failed
attempt to reclaim contiguous memory in the requested range. After r297466,
this results in the thread going to sleep, causing a hang during boot.

Reviewed by:        jkim, kib
Approved by:        re (gjb)
Sponsored by:        EMC / Isilon Storage Division
Differential Revision:        https://reviews.freebsd.org/D6945
Delta File
+1 -1 head/sys/x86/acpica/acpi_wakeup.c
+1 -1 1 file

FreeBSD — head/tools/tools/makeroot makeroot.sh

makeroot: zero out subsecond component of time= keywords

They are currently not supported by makefs(1).

PR:                194703
Reviewed by:        brooks
Approved by:        re (gjb)
Sponsored by:        The FreeBSD Foundation
Differential Revision:        https://reviews.freebsd.org/D6925

FreeBSD — head/usr.sbin/bsdinstall/partedit partedit_x86.c

bsdinstall: increase EFI partition size to 200MB

A larger EFI file system size will facilitate multi-boot configurations
and the installation other EFI applications like firmware update tools.
200MB matches OS X.

Note that this changes only the partition size, not the file system that
bsdinstall places there. We need to do both, but as the partition size
is difficult to adjust later make this change for now so that at least
systems installed with FreeBSD 11.0 have a partition layout with room
to grow.

Reviewed by:        allanjude, imp
Approved by:        re (gjb)
Sponsored by:        The FreeBSD Foundation
Differential Revision:        https://reviews.freebsd.org/D6935

FreeBSD — projects/vnet/sys/netpfil/pf if_pfsync.c

Make pfsync initialization and teardown VNET ready.

I am still seeing solid hangs when I compile this into the kernel or
load the module;  however that is more likely a general code problem
than a specific VNET problem.

Sponsored by:        The FreeBSD Foundation

FreeBSD — projects/vnet/sys/netpfil/pf pf_ioctl.c

PFSTATE_NOSYNC goes onto state_flags, not sync_state;
This prevents: panic: pfsync_delete_state: unexpected sync state 8

Sponsored by:                The FreeBSD Foundation
Differential Revision:        D6942

FreeBSD — projects/vnet/sys/netpfil/pf if_pflog.c

DO not attach before pf is attached as we borrow locks from there;
do not detach before pf is detached as otherwise we might still be called
for VNETs and thus reference freed memory.

Sponsored by:        The FreeBSD Foundation

FreeBSD — head/cddl/lib/libavl Makefile, head/cddl/lib/libctf Makefile

Raise the WARNS level in cddl/lib

cddl/lib/libavl/Makefile
cddl/lib/libctf/Makefile
cddl/lib/libnvpair/Makefile
cddl/lib/libumem/Makefile
cddl/lib/libuutil/Makefile
        Increase WARNS to the highest working level for each of these
        libraries

Approved by:        re (gjb, hrs)
MFC after:        4 weeks
Sponsored by:        Spectra Logic Corp