Displaying 1 50 of 299,191 commits (0.026s)

FreeBSD — head/usr.bin/lastcomm/tests Makefile, head/usr.sbin/sa/tests Makefile

Skip lastcomm and sa tests on unsupported architectures

usr.bin/lastcom/tests/Makefile
usr.sbin/sa/tests/Makefile
        Set allow_architectures appropriately.  These tests depend on golden
        files that must be generated for each architecture, and haven't yet
        been generated for all of them.

PR:                210566
PR:                204154
Reviewed by:        ngie
Approved by:        re (gjb)
MFC after:        4 weeks
Sponsored by:        Spectra Logic Corp
Differential Revision:        https://reviews.freebsd.org/D6960

FreeBSD — projects/vnet/sys/contrib/ipfilter/netinet ip_fil_freebsd.c mlfk_ipl.c

Cover all of the ioctl handler with a set vnet;  what was there from
old days was not enough anymore.

Also use curthread for read/write operations on the device, rather than
the cache credentials;  things can move around and the cached ones might
not be the right ones.

Sponsored by:        The FreeBSD Foundation

FreeBSD — head/sys/conf NOTES

Unbreak building of LINT kernels after r302163.

Approved by:        re (gjb)
Delta File
+1 -1 head/sys/conf/NOTES
+1 -1 1 file

FreeBSD — projects/vnet/sys/contrib/ipfilter/netinet mlfk_ipl.c ip_proxy.c

Make ipfilter user space parts compile as well.

Sponsored by:        The FreeBSD Foundation

FreeBSD — head/sys/net80211 ieee80211_adhoc.c

[net80211] re-revert the ibss "is this local to the bss" patch.

avos@ pointed out to me that this broke IBSS merging because the rest of
the input path no longer was called for non-IBSS frames.

I committed a change to not input non-IBSS frames, which stopped
nodes being created for BSSes that weren't ours.  Unfortunately
thta stopped the input path for non-IBSS frames in general,
so the management input path didn't work.

So, I'll revert this until I come up with a better solution.
(Hopefully before 11.)

Reviewed by:        avos
Approved by:        re (gjb)

FreeBSD — head/lib/libthr/thread thr_mutex.c

Revert r302194, there are issues with some applications after changing
the return value, in particular console-kit-daemon.

Reported by:        Ivan Klymenko <fidaj at ukr.net>
Sponsored by:        The FreeBSD Foundation
MFC after:        2 weeks
Approved by:        re (gjb)

FreeBSD — projects/vnet/crypto/openssh blacklist.c blacklist_client.h, projects/vnet/etc netstart

MfH @r302199

Sponsored by:        The FreeBSD Foundation

FreeBSD — projects/vnet/sys/contrib/ipfilter/netinet mlfk_ipl.c ip_fil_freebsd.c

A first cut of V_irtualising ipfilter.  Untested.

Sponsored by:        The FreeBSD Foundation

FreeBSD — head/etc netstart

Remove reference to mroute6d in /etc/netstart.

mroute6d has been removed in r298512.

PR:                209405
Submitted by:        Trond.Endrestol at ximalas.info
Approved by:        re (gjb)
Delta File
+0 -1 head/etc/netstart
+0 -1 1 file

FreeBSD — head/usr.bin/sockstat sockstat.c

This patch fixes two bugs:
* sctp46, tcp46, and udp46 sockets are displayed as such and not as
  sctp4 6, tcp4 6, udp4 6. This bug was introduced in
  http://svnweb.freebsd.org/base?view=revision&revision=187915
* For SCTP sockets, the the -4 and -6 flags are honoured as much as
  possible. This means IPv4 sockets are handled correctly,  IPv6
  sockets are displayed as sctp46, since it is currently not possible
  to distinguish between sctp6 and sctp46.

Approved by:        re (gjb)
MFC after:        1 week
Delta File
+20 -5 head/usr.bin/sockstat/sockstat.c
+20 -5 1 file

FreeBSD — head/sys/fs/nfsclient nfs_clnode.c

Since VOP_INACTIVE() is not guaranteed to be called, all cleanups
executed by inactive methods, must be repeated on reclaim.  In
particular, unlink and free sillyrenamed vnode both on inactivation
and reclaim.

Reported and tested by:        pho
Sponsored by:        The FreeBSD Foundation
MFC after:        2 weeks
Approved by:        re (gjb)
Delta File
+33 -24 head/sys/fs/nfsclient/nfs_clnode.c
+33 -24 1 file

FreeBSD — head/sys/kern kern_thr.c, head/sys/sys proc.h

Do not clear robust lists pointers on fork.  The forked child thread
lists must be functional.

Reported by:        Daniel Engberg <daniel.engberg.lists at pyret.net>,
        Guy Yur <guyyur at gmail.com>
Tested by:        Guy Yur <guyyur at gmail.com>
Sponsored by:        The FreeBSD Foundation
Approved by:        re (gjb), including the KBI change

FreeBSD — head/lib/libthr/thread thr_mutex.c

For pthread_mutex_trylock() call on owned error-check or non-portable
adaptive mutex, return EDEADLK as required by POSIX.  The
pthread_mutex_lock() is already compliant.

Tested by:        Guy Yur <guyyur at gmail.com>
Sponsored by:        The FreeBSD Foundation
MFC after:        2 weeks
Approved by:        re (gjb)

FreeBSD — stable/10/lib/libc/stdlib l64a.c

MFC r300775:

  Let l64a() properly null terminate its result.

  Though the buffer used by l64a() is initialized with null bytes,
  repetetive calls may end up having trailing garbage of previous
  invocations because we don't end up terminating the string.

  Instead of importing NetBSD's fix, use this opportunity to simplify this
  function dramatically, for example by just storing the Base64 character
  set in a string. There is also no need to do the bitmasking, as we can
  just use the proper integer type from <stdint.h>.
Delta File
+13 -21 stable/10/lib/libc/stdlib/l64a.c
+13 -21 1 file

FreeBSD — stable/10/sys/nlm nlm_advlock.c

MFC r302013:
After the vnode unlock, mount point might be destroyed immediately,
dropping the reference on mnt_cred. Prevent this by referencing the
temporal credentials before unlock.
Delta File
+9 -5 stable/10/sys/nlm/nlm_advlock.c
+9 -5 1 file

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