Displaying 1 50 of 332,802 commits (0.021s)

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

Enable OFED build (without extras) by default.

Reviewed by:        bdrewery, hselasky (previous version)
Sponsored by:        Mellanox Technologies
MFC after:        2 weeks
Release notes:        yes
Differential revision:        https://reviews.freebsd.org/D16230
Delta File
+1 -1 head/share/mk/src.opts.mk
+1 -1 1 file

FreeBSD — head/share/mk src.opts.mk, head/tools/build/options WITH_OFED_EXTRA

Move mostly useless examples binaries from OFED, as well as the Subnet
Manager, under the new option WITH_OFED_EXTRA, disabled by default.

Reviewed by:        bdrewery, hselasky (previous version)
Sponsored by:        Mellanox Technologies
MFC after:        2 weeks
Differential revision:        https://reviews.freebsd.org/D16230

FreeBSD — head ObsoleteFiles.inc, head/lib/ofed/libibverbs Makefile

Move OFED libraries libmlx5.so.1 and libibverbs.so.1 to /lib.

The is required because libpcap.so depends on the libraries when OFED
is enabled.

Reviewed by:        bdrewery, hselasky
Sponsored by:        Mellanox Technologies
MFC after:        2 weeks
Differential revision:        https://reviews.freebsd.org/D16230

FreeBSD — head/usr.sbin/binmiscctl binmiscctl.8

Improve the binmiscctl manual page

- Use "Fl -" instead of "Cm --" for long options.
- Sort options alphabetically.
- Pet "mandoc -Tlint".
- Clean up the description of the "--interpreter" option.
- Clean up the description of the first example in the examples section.
- Use ".Bd -literal -offset indent" for all example code blocks for consistency.
- Use "Nm" instead of "Cm binmiscctl".
- Indent all examples for consistency.

Reviewed by:        allanjude
Approved by:        mat (mentor)
Differential Revision:        https://reviews.freebsd.org/D15589
Delta File
+65 -49 head/usr.sbin/binmiscctl/binmiscctl.8
+65 -49 1 file

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

Regenerate src.conf.5 after several accumulated changes.

The larger is the removal of arm/armeb architecture.  Also noted is
the addition of WITHOUT_SERVICESDB and default change for WITH_CXX.

Sponsored by:        Mellanox Technologies
Delta File
+40 -56 head/share/man/man5/src.conf.5
+40 -56 1 file

FreeBSD — head/etc/defaults devfs.rules, head/sys/fs/fuse fuse_main.c

Allow mounting FUSE filesystems in jails

Reviewed by:        jamie
MFC after:        2 weeks
Relnotes:        yes
Differential Revision:        https://reviews.freebsd.org/D16371

FreeBSD — head/tests/sys/audit administrative.c

Separate the audit(4) tests for auditon(2)'s individual commands

auditon(2) is an ioctl-like syscall with several different variants, each of
which has a distinct audit event.  Write separate audit(4) tests for each

Submitted by:        aniketp
MFC after:        2 weeks
Sponsored by:        Google, Inc. (GSoC 2018)
Differential Revision:        https://reviews.freebsd.org/D16255
Delta File
+526 -54 head/tests/sys/audit/administrative.c
+526 -54 1 file

FreeBSD — head/lib/msun Makefile, head/lib/msun/ld80 e_powl.c

Recommit r336497: Fix powl, cpow, cpowf, and cpowl imports from OpenBSD

This is a follow-up to r336299.

* lib/msun/Makefile:
  . Remove polevll.c

* lib/msun/ld80/e_powl.c:
  . Copy contents of polevll.c to here.  This is the only consumer of
    these functions.  Make functions 'static inline'.
  . Make reducl a 'static inline' function.

* lib/msun/man/exp.3:
  . Remove BUGS section that no longer applies.

* lib/msun/src/math_private.h:
  . Remove prototypes of __p1evll() and __polevll()

* lib/msun/src/s_cpow.c:
* lib/msun/src/s_cpowf.c:
* lib/msun/src/s_cpowl.c
  . Include math_private.h.
  . Use the CMPLX macro from either C99 or math_private.h (depends on
    compiler support) instead of the problematic use of complex I.

    [3 lines not shown]


Add a note about the new 'ntpd' userid, and the fact that rc.d/ntpd now
automatically runs the daemon as that user if it can.
Delta File
+11 -0 head/UPDATING
+11 -0 1 file

FreeBSD — head/sys/modules/spigen Makefile

Fix `make` in sys/modules/spigen

Reviewed by:        ian
Sponsored by:        The FreeBSD Foundation
Differential Revision:        https://reviews.freebsd.org/D16368
Delta File
+1 -0 head/sys/modules/spigen/Makefile
+1 -0 1 file

FreeBSD — head/sys/net mp_ring.c iflib.c

Add knob to control tx ring abdication.

r323954 changed the mp ring behaviour when 64-bit atomics were
available to abdicate the TX ring rather than having one become a
consumer thereby running to completion on TX. The consumer of the mp
ring was then triggered in the tx task rather than blocking the TX call.
While this significantly lowered the number of RX drops in small-packet
forwarding, it also negatively impacts TX performance.

With this change, the default behaviour is reverted, causing one TX ring
to become a consumer during the enqueue call. A new sysctl,
dev.X.Y.iflib.tx_abdicate is added to control this behaviour.

Reviewed by:        gallatin
Sponsored by:        Limelight Networks
Differential Revision:        https://reviews.freebsd.org/D16302

FreeBSD — head/sys/net iflib.c

Improve netmap TX handling when TX IRQs are not used/supported

Use the timer to poll for TX completions when there are
outstanding TX slots. Track when the last driver timer was called
to prevent overcalling it. Also clean up some kring vs NIC ring

Reviewed by:        marius, Johannes Lundberg <johalun0 at gmail.com>
Sponsored by:        Limelight Networks
Differential Revision:        https://reviews.freebsd.org/D16300
Delta File
+62 -29 head/sys/net/iflib.c
+62 -29 1 file

FreeBSD — head/sys/arm64/arm64 pmap.c, head/sys/arm64/include param.h pmap.h

Add support for pmap_enter(psind = 1) to the arm64 pmap.

See the commit log messages for r321378 and r336288 for descriptions of
this functionality.

Reviewed by:        alc
Differential Revision:        https://reviews.freebsd.org/D16303

FreeBSD — head/sys/i386/i386 pmap.c

Annotate a parameter as unused.

X-MFC with:        r336288
Delta File
+1 -1 head/sys/i386/i386/pmap.c
+1 -1 1 file

FreeBSD — head/sys/arm64/arm64 pmap.c

Initialize the L3 page's wire count correctly after a L2 entry demotion.

Reviewed by:        alc
MFC after:        1 week
Differential Revision:        https://reviews.freebsd.org/D16303
Delta File
+1 -0 head/sys/arm64/arm64/pmap.c
+1 -0 1 file

FreeBSD — head/sys/dev/vt/hw/ofwfb ofwfb.c

vt/ofwfb: Fix brain-o from r336514, use the correct form of /chosen/stdout-path

/chosen/stdout-path is a string, not ihandle.  Treat it as such.

With this, ofwfb now starts correctly on a POWER9 system when launched from
the local console (not serial).
Delta File
+15 -9 head/sys/dev/vt/hw/ofwfb/ofwfb.c
+15 -9 1 file

FreeBSD — head/sys/dev/vt/hw/ofwfb ofwfb.c

vt/ofwfb: Check that /chosen/stdout is valid before using it in initialization

The FDT implementation of OF_instance_to_package() backend checks the
cross-reference to get the node.  On failure, this returns the input handle
unchanged.  In the case of ofwfb attachment, if /chosen/stdout property does not
exist, sc->sc_handle is either garbage or 0, which then gets propagated to node.
This will prevent "screen" from being used, resulting in not properly attaching.
Correct this by matching the code in ofwfb_probe().
Delta File
+4 -2 head/sys/dev/vt/hw/ofwfb/ofwfb.c
+4 -2 1 file

FreeBSD — head/share/man/man4 mac_ntpd.4

Apply some late-arriving markup suggestions from the phab review, and add a
paragraph that mentions the possibility of starting ntpd as a non-root user
rather than starting it as root and using its '-u' option to drop root privs
after startup.

Differential Revision:         https://reviews.freebsd.org/D16281
Delta File
+16 -17 head/share/man/man4/mac_ntpd.4
+16 -17 1 file

FreeBSD — head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/ip tst.ipv4localudp.ksh tst.ipv4localudp.ksh.out

Test that the dtrace UDP receive probe fires.

This test ensures that the fix committed in
actually works.

Reviewed by:                dteske@, markj@, rrs@
Sponsored by:                Netflix, Inc.
Differential Revision:        https://reviews.freebsd.org/D16046

FreeBSD — head/share/man/man4 dtrace_udp.4, head/sys/netinet udp_usrreq.c

Add missing dtrace probes for received UDP packets.

Fire UDP receive probes when a packet is received and there is no
endpoint consuming it. Fire the probe also if the TTL of the
received packet is smaller than the minimum required by the endpoint.

Clarify also in the man page, when the probe fires.

Reviewed by:                dteske@, markj@, rrs@
Sponsored by:                Netflix, Inc.
Differential Revision:        https://reviews.freebsd.org/D16046

FreeBSD — stable/11/sys/kern subr_prf.c

MFC r336417:
Add a FALLTHROUGH comment to kvprintf().
Delta File
+1 -0 stable/11/sys/kern/subr_prf.c
+1 -0 1 file

FreeBSD — head/sbin/devd devd.conf.5

Document kernel/signal/crashdump devd(8) notification.

Discussed with:        kib@
MFC after:        2 weeks
Sponsored by:        DARPA, AFRL
Differential Revision:        https://reviews.freebsd.org/D16323
Delta File
+17 -2 head/sbin/devd/devd.conf.5
+17 -2 1 file

FreeBSD — head/share/man/man4 Makefile, head/share/man/man5 make.conf.5

Support installing manpages for multiple or alternate architecture(s).

Some section-4 manpages are architecture-specific, and the build process
currently generates only the pages for the MACHINE_CPUARCH being built.
man(1) supports a '-m' option to find manpages belonging to an arbitrary
architecture other than the MACHINE_[CPU]ARCH, but we have no way to
generate and install alternate-arch pages right now.

This change adds a new make.conf variable, MAN_ARCH, which can be a list of
one or more MACHINE_ARCH or MACHINE_CPUARCH values. All arch-specific
manpages that exist for the named arches will be installed. If unset, it
continues the behavior of installing just the MACHINE_CPUARCH being built.

Differential Revision:        https://reviews.freebsd.org/D16198

FreeBSD — head/etc/defaults rc.conf, head/etc/rc.d ntpd

Automatically run ntpd as non-root when possible.

Ntpd needs only a subset of full root privileges to do its job. Specifically
it needs the ability to manipulate system time, and to re-bind to a
privileged UDP port after interface changes. The mac_ntpd(4) policy module
(see r336525) can grant these privs.

These changes detect the availability of mac_ntpd(4). If enabled, and if the
ntpd configuration is fairly vanilla, it automatically runs ntpd as the
non-root user 'ntpd' (uid 123). "Vanilla" means the config doesn't include
command line or ntp.conf options changing the location of files or using any
files/dirs likely to be inaccessible to user ntpd.  Ntpd can still run as
non-root when using such options, but the admin must ensure all required
files and dirs are accessible, and then set ntpd_user=ntpd in rc.conf.

Note that these changes also address PR 199127 by using the command_args
technique suggested in the patch. They also tangentially address PR 113552,
which is primarily about inconsistent filenames in documentation, but some
of the inconsistancy was caused by old code in rc.d/ntpd which is leftover
from the intial import from netbsd. There was code to do chroot setup which
required the use of the netbsd clockctl(4) device; that code never had any
effect on freebsd, because we lack that device and don't build ntpd with the
options that would allow using it.

PR:                113552 199127

    [2 lines not shown]
Delta File
+78 -28 head/etc/rc.d/ntpd
+1 -2 head/etc/defaults/rc.conf
+79 -30 2 files

FreeBSD — head/share/examples/mdoc POSIX-copyright example.1

Add SPDX tags to example manual pages and POSIX copyright.

Reviewed by:        eadler
Approved by:        mat (mentor)
Differential Revision:        https://reviews.freebsd.org/D14958

FreeBSD — head/lib/msun/ld128 k_expl.h e_rem_pio2l.h, head/lib/msun/ld80 k_expl.h s_expl.c

Centralize the complications for special efficient rounding to integers.

This was open-coded in range reduction for trig and exp functions.  Now
there are 3 static inline functions rnint[fl]() that replace open-coded
expressions, and type-generic irint() and i64rint() macros that hide the
complications for efficiently using non-generic irint() and irintl()
functions and casts.

Special details:

ld128/e_rem_pio2l.h needs to use i64rint() since it needs a 46-bit integer
result.  Everything else only needs a (less than) 32-bit integer result so
uses irint().

Float and double cases now use float_t and double_t locally instead of
STRICT_ASSIGN() to avoid bugs in extra precision.

On amd64, inline asm is now only used for irint() on long doubles.  The SSE
asm for irint() on amd64 only existed because the ifdef tangles made the
correct method of simply casting to int for this case non-obvious.

FreeBSD — projects/pnfs-planb-server/sys/fs/nfs nfs_commonkrpc.c

Update the comments and add a sysctl to set the retry limit for connections
from clients to DSs. This is for the client side pNFS and head/current will
be getting this commit soon.

FreeBSD — projects/pnfs-planb-server/sys/rpc clnt_vc.c clnt_rc.c

Update the krpc code to what is in head/current.

FreeBSD — head/sys/rpc clnt_rc.c

Set SO_SNDTIMEO in the client side krpc when CLSET_TIMEOUT is done.

During testing of the pNFS client, it was observed that an RPC could get
stuck in sosend() for a very long time if the network connection to a DS
had failed. This is fixed by setting SO_SNDTIMEO on the TCP socket.
This is only done when CLSET_TIMEOUT is done and this is not done by any
use of the krpc currently in the source tree, so there should be no effect
on extant uses.
A future patch will use CLSET_TIMEOUT for TCP connections to DSs.

Reviewed by:        kib
MFC after:        2 weeks
Differential Revision:        https://reviews.freebsd.org/D16293
Delta File
+17 -1 head/sys/rpc/clnt_rc.c
+17 -1 1 file

FreeBSD — head/lib/libcrypt crypt-sha256.c crypt-sha512.c

libcrypt: There is no need to clear message digest context after they
are finialized after r336539, so do not do it.

Submitted by:        David CARLIER <devnexen gmail com>
MFC after:        1 month (after r336539)
Differential Revision:        https://reviews.freebsd.org/D16059

FreeBSD — head/lib/libcrypt crypt-sha256.c crypt-sha512.c

Get rid of unused variables.

copied_key and copied_salt are assigned with NULL and never used
otherwise. Remove the two variables and related code.

Reviewed by:        pfg
MFC after:        2 weeks
Differential Revision:        https://reviews.freebsd.org/D16314

FreeBSD — head/lib/libmd mdX.3 ripemd.3, head/sys/crypto/sha2 sha512c.c sha256c.c

libmd: Always erase context in _Final method, and when doing
it, consistently use explicit_bzero().

Update manual pages to match the behavior.

Reviewed by:        pfg, allanjude, jmg
MFC after:        1 month
Differential Revision:        https://reviews.freebsd.org/D16316

FreeBSD — head/sys/sys param.h

Bump version to 1200075 for zfsloader being folded into loader.

As an aside: 1200074 should be used as the last version with big
endian arm support, should that be needed. it was actually removed
a day later, but no bump was made until now.
Delta File
+1 -1 head/sys/sys/param.h
+1 -1 1 file


Mention zfsloader being folded into loader in UPDATING.
Delta File
+7 -0 head/UPDATING
+7 -0 1 file

FreeBSD — head/lib/geom/part gpart.8, head/tools/build/options WITH_LOADER_FIREWIRE

Remove three stray instances of zfsloader.

FreeBSD — head/stand/efi Makefile.inc, head/stand/efi/boot1 Makefile

Hoist EFI_TARGET and SOURCE_DATE_EPOCH up into efi/Makefile.inc

FreeBSD — head/stand/efi/boot1 Makefile, head/stand/efi/loader Makefile

NM and OBJCOPY are already defined for all builds. There's no need to
conditionally define them here.

FreeBSD — head/stand/i386/gptzfsboot gptzfsboot.8, head/stand/i386/zfsboot zfsboot.8

Eliminate zfsloader man page.

Remove all cross references to zfsloader.8 and /boot/zfsloader.
Move ZFS specific info into loader.8.

Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D16361

FreeBSD — head/stand loader.mk, head/stand/common paths.h

Collapse zfsloader functionality back down into loader.

We no longer really need a separate zfsloader. It was useful when we
were first supporting ZFS and had limited ability to properly boot off
of ZFS without the special boot loader. Now that the boot loader has
matured, go the way loader.efi pioneered and just build one
binary. Change the name of the loader to load in the secondary boot
blocks to be just /boot/loader. Provide a symbolic link from zfsloader
to loader so people who have not upgraded their boot blocks are not
affected. This has the happy benefit of making coexistence easier as
well (fewer binaries in the matrix).

Discussed with: allanjude@, kevans@
RelNotes: Yes
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D16361

FreeBSD — head/contrib/wpa/src/drivers driver_wired.c

Remove a redundant declaration.

While at it add a blank line, conforming with the convention
used in this file.

X-MFC-with:        r336203

FreeBSD — head/contrib/wpa/wpa_supplicant wnm_sta.c

To reduce our diff between our sources and our upline, sync up
with upline. Also making it easier to read.

Obtained from:        diffing base with ports
X-MFC-with:        r336203

FreeBSD — head/contrib/wpa/src/rsn_supp wpa.c

MFV: r336486

Prevent reinstallation of an already in-use group key.
Upline git commit cb5132bb35698cc0c743e34fe0e845dfc4c3e410.

Obtained from:        https://w1.fi/security/2017-1/\
X-MFC-with:        r336203

FreeBSD — head/contrib/wpa/src/rsn_supp wpa.c

Revert r336501. It was a of the wrong rev from the vendor branch.
Delta File
+0 -26 head/contrib/wpa/src/rsn_supp/wpa.c
+0 -26 1 file

FreeBSD — head/tools/tools/crypto cryptocheck.c

cryptocheck: Correct mismatch between OpenSSL use and OCF Blake2

This corrects a mistake introduced to the cryptocheck tool in r331418.

Our CRYPTO_BLAKE2B and CRYPTO_BLAKE2S algorithms refer to either the plain,
unkeyed hashes (specified with cri_klen = 0), or a Blake2-specific keyed MAC
(when a cri_key is provided).

In contrast, OpenSSL's Blake2 algorithms only provide the plain hash.
Cryptocheck's T_HMAC corresponds to OpenSSL's HMAC() routine, which is the
ordinary HMAC construction applied to any plain, unkeyed hash.  We don't
have any HMAC-Blake2 cipher modes in OCF, so fix the test to only test
Blake2 as a plain hash.

(Ideally we would test keyed Blake2 as well, but that is left as future

PR:                229795

FreeBSD — head Makefile.inc1

Add ntpd to the list of users/groups to check before installing.
Delta File
+4 -0 head/Makefile.inc1
+4 -0 1 file

FreeBSD — head/contrib/ntp/ntpd ntpd.c, head/etc master.passwd group

Make it possible to run ntpd as a non-root user, add ntpd uid and gid.

Code analysis and runtime analysis using truss(8) indicate that the only
privileged operations performed by ntpd are adjusting system time, and
(re-)binding to privileged UDP port 123. These changes add a new mac(4)
policy module, mac_ntpd(4), which grants just those privileges to any
process running with uid 123.

This also adds a new user and group, ntpd:ntpd, (uid:gid 123:123), and makes
them the owner of the /var/db/ntp directory, so that it can be used as a
location where the non-privileged daemon can write files such as the
driftfile, and any optional logfile or stats files.

Because there are so many ways to configure ntpd, the question of how to
configure it to run without root privs can be a bit complex, so that will be
addressed in a separate commit. These changes are just what's required to
grant the limited subset of privs to ntpd, and the small change to ntpd to
prevent it from exiting with an error if running as non-root.

Differential Revision:        https://reviews.freebsd.org/D16281


Note big endian arm removal.
Delta File
+3 -0 head/UPDATING
+3 -0 1 file

FreeBSD — stable/11/sys/amd64/amd64 pmap.c

MFC r335784, r335971:
Invalidate the mapping before updating its physical address.
Delta File
+48 -21 stable/11/sys/amd64/amd64/pmap.c
+48 -21 1 file

FreeBSD — stable/11/sys/dev/ahci ahci_pci.c, stable/11/sys/dev/usb/controller xhci_pci.c

MFC r336225:
Add PCI IDs for AMD X370 AHCI and XHCI.

FreeBSD — stable/11/contrib/elftoolchain/elfcopy sections.c

MFC r336226:
Pass the right sizes to malloc() and realloc().