FreeBSD/src 2976a7clib/libpam/modules modules.inc

libpam: Add newline at EOF in modules.inc
DeltaFile
+1-1lib/libpam/modules/modules.inc
+1-11 files

FreeBSD/src a728b96sys/dev/ixgbe ixgbe_e610.c ixgbe_type_e610.h

ix/ixv: Add support for new Intel Ethernet E610 family devices

This is part 1 of the support for the new Intel Ethernet E610 family of devices.

Introduce new PCI device IDs:
• 57AE: Intel(R) E610 (Backplane)
• 57AF: Intel(R) E610 (SFP)
• 57B0: Intel(R) E610 (10 GbE)
• 57B1: Intel(R) E610 (2.5 GbE)
• 57B2: Intel(R) E610 (SGMII)

Key updates for E610 family:
• Firmware manages Link and PHY
• Implement new CSR-based Admin Command Interface (ACI) for SW-FW interaction
• Tested exclusively for x64 operating systems on E610-XT2/XT4 (10G) and E610-IT4 (2.5G)
• Enable link speeds above 1G: 2.5G, 5G and 10G
• NVM Recovery Mode and Rollback support

Signed-off-by: Yogesh Bhosale yogesh.bhosale at intel.com

    [9 lines not shown]
DeltaFile
+5,567-0sys/dev/ixgbe/ixgbe_e610.c
+2,278-0sys/dev/ixgbe/ixgbe_type_e610.h
+205-26sys/dev/ixgbe/if_ix.c
+224-0sys/dev/ixgbe/ixgbe_e610.h
+68-1sys/dev/ixgbe/ixgbe_type.h
+31-0sys/dev/ixgbe/ixgbe_osdep.h
+8,373-2710 files not shown
+8,458-3616 files

FreeBSD/src 613eb8esys/netinet6 in6.c

ipv6: don't complain when deleting an address with prefix length of 128

Save prefix length in unused field in6_ifaddr->ia_plen, then on remove
check if an address has 128 prefix length, and if so, we don't need to
complain that there is none of related prefixes.

Reviewed by:    kp
Obtained from:  Yandex LLC
Sponsored by:   Yandex LLC
Differential Revision:  https://reviews.freebsd.org/D52952

(cherry picked from commit c4cce0a3e94e3b22f874508d1a9cd81442648238)
DeltaFile
+7-7sys/netinet6/in6.c
+7-71 files

FreeBSD/src 25c6697sys/netinet6 in6.c

ipv6: don't complain when deleting an address with prefix length of 128

Save prefix length in unused field in6_ifaddr->ia_plen, then on remove
check if an address has 128 prefix length, and if so, we don't need to
complain that there is none of related prefixes.

Reviewed by:    kp
Obtained from:  Yandex LLC
Sponsored by:   Yandex LLC
Differential Revision:  https://reviews.freebsd.org/D52952

(cherry picked from commit c4cce0a3e94e3b22f874508d1a9cd81442648238)
DeltaFile
+7-7sys/netinet6/in6.c
+7-71 files

FreeBSD/src 9c82c17crypto/openssh sshd-session.c

openssh: blocklist: Remove non async-signal safe probe

BLOCKLIST_NOTIFY() is called within a signal handler for the alarm after
the grace period has expired that may only take async-signal safe
actions.

Reviewed by:    emaste
Fixes:          e02003bce726 ("openssh: blocklist: Use NetBSD probes")
MFC after:      1 day
Differential Revision:  https://reviews.freebsd.org/D53109
DeltaFile
+0-2crypto/openssh/sshd-session.c
+0-21 files

FreeBSD/src d2d987btools/tools/crypto cryptocheck.c

cryptocheck: Be friendlier when testing software crypto backends

- Fail loudly if we can't change the kern.crypto.allow_soft sysctl.
- Add more drivers to the list.

MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D52490

(cherry picked from commit e63bf6aa523eb9a865b7ce34d01e75a13818b367)
DeltaFile
+7-2tools/tools/crypto/cryptocheck.c
+7-21 files

FreeBSD/src af51f41sys/dev/qat/include/common adf_accel_devices.h, sys/dev/qat/qat_hw/qat_4xxx adf_4xxx_hw_data.c adf_drv.c

qat: enable qat driver for 402xx device

Enabled qat driver support for 402xx device with
ID 0x4944/0x4945. This is an additional device supported
under the existing qat_4xxx driver. Firmwares specific to
the 402xx device are added.

Signed-off-by: Hareshx Sankar Raj <hareshx.sankar.raj at intel.com>

Relnotes:       yes
Sponsored by:   Intel Corporation
MFC after:      1 month
Differential Revision:  https://reviews.freebsd.org/D52488

(cherry picked from commit 7fbd362c091b2b384d14c3ed5af9234bb2eff9c2)
DeltaFile
+44-14sys/dev/qat/qat_hw/qat_4xxx/adf_4xxx_hw_data.c
+9-6sys/dev/qat/qat_hw/qat_4xxx/adf_drv.c
+9-6sys/dev/qat/qat_hw/qat_4xxxvf/adf_drv.c
+6-0sys/dev/qat/qat_hw/qat_4xxx/adf_4xxx_hw_data.h
+4-1sys/modules/qatfw/qat_4xxx/Makefile
+4-0sys/dev/qat/include/common/adf_accel_devices.h
+76-274 files not shown
+78-2810 files

FreeBSD/src c3005b6usr.sbin/pw pwupd.c

pw: pw_mkdb(3) does not set errno

MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Sponsored by:   Klara, Inc.

(cherry picked from commit b464c7a75e30e6149906458075b7eaf0841c7222)
DeltaFile
+1-1usr.sbin/pw/pwupd.c
+1-11 files

FreeBSD/src 3a382aftools/tools/crypto cryptocheck.c

cryptocheck: Be friendlier when testing software crypto backends

- Fail loudly if we can't change the kern.crypto.allow_soft sysctl.
- Add more drivers to the list.

MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D52490

(cherry picked from commit e63bf6aa523eb9a865b7ce34d01e75a13818b367)
DeltaFile
+7-2tools/tools/crypto/cryptocheck.c
+7-21 files

FreeBSD/src 6d44212usr.sbin/pw pwupd.c

pw: pw_mkdb(3) does not set errno

MFC after:      1 week
Sponsored by:   The FreeBSD Foundation
Sponsored by:   Klara, Inc.

(cherry picked from commit b464c7a75e30e6149906458075b7eaf0841c7222)
DeltaFile
+1-1usr.sbin/pw/pwupd.c
+1-11 files

FreeBSD/src 88c0ce3sys/dev/qat/include/common adf_accel_devices.h, sys/dev/qat/qat_hw/qat_4xxx adf_4xxx_hw_data.c adf_drv.c

qat: enable qat driver for 402xx device

Enabled qat driver support for 402xx device with
ID 0x4944/0x4945. This is an additional device supported
under the existing qat_4xxx driver. Firmwares specific to
the 402xx device are added.

Signed-off-by: Hareshx Sankar Raj <hareshx.sankar.raj at intel.com>

Relnotes:       yes
Sponsored by:   Intel Corporation
MFC after:      1 month
Differential Revision:  https://reviews.freebsd.org/D52488

(cherry picked from commit 7fbd362c091b2b384d14c3ed5af9234bb2eff9c2)
DeltaFile
+44-14sys/dev/qat/qat_hw/qat_4xxx/adf_4xxx_hw_data.c
+9-6sys/dev/qat/qat_hw/qat_4xxx/adf_drv.c
+9-6sys/dev/qat/qat_hw/qat_4xxxvf/adf_drv.c
+6-0sys/dev/qat/qat_hw/qat_4xxx/adf_4xxx_hw_data.h
+4-1sys/modules/qatfw/qat_4xxx/Makefile
+4-0sys/dev/qat/include/common/adf_accel_devices.h
+76-274 files not shown
+78-2810 files

FreeBSD/src 9bed273tests/sys/mac/portacl misc.sh nobody_test.sh

tests/mac_portacl: restore sysctls after modification

While here, use 'required_kmods' instead of ad-hoc
checks.

Signed-off-by: Siva Mahadevan <me at svmhdvn.name>

Reviewed by:    markj
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1855

(cherry picked from commit 170aac93479467334062813c1175a80200400b79)
DeltaFile
+2-10tests/sys/mac/portacl/misc.sh
+1-0tests/sys/mac/portacl/nobody_test.sh
+1-0tests/sys/mac/portacl/root_test.sh
+1-0tests/sys/mac/portacl/Makefile
+5-104 files

FreeBSD/src 8e957b7libexec/rc/rc.d zpoolreguid zpoolupgrade

rc: Update dependencies for zpool scripts

After commit 900bc0206348, zpool depends on mountcritlocal.  zpoolreguid
and zpoolupgrade depend on zpool and want to run before mountcritcycle,
so we have a pair of cycles.

Update zpoolreguid and zpoolupgrade to avoid this.

Reviewed by:    des
MFC after:      3 days
Fixes:  900bc0206348 ("rc.d/zpool: change mountcritlocal dep from BEFORE to REQUIRE")
Differential Revision:  https://reviews.freebsd.org/D52953

(cherry picked from commit ae6db60ff56de5b93de9f6fee6116cbc2d4b498e)
DeltaFile
+1-1libexec/rc/rc.d/zpoolreguid
+1-1libexec/rc/rc.d/zpoolupgrade
+2-22 files

FreeBSD/src ead6982sys/crypto/openssl ossl_aes_gcm.c ossl_ppc.c, sys/crypto/openssl/amd64 ossl_aes_gcm.c ossl_aes_gcm_avx512.c

ossl: Add GCM support on powerpc64/powerpc64le (POWER8+)

Separate ossl's existing AES-NI GCM implementation into a common
ossl_aes_gcm.c and add conditionals to switch between OpenSSL's AES-NI
and POWER8 GCM routines depending on the architecture. Since the
existing AVX-512 implementation is less agnostic, move it into a
separate ossl_aes_gcm_avx512.c.

Reviewed by:    markj
MFC after:      1 month
Differential Revision:  https://reviews.freebsd.org/D44274

(cherry picked from commit 5daf8ed625af70ebb7e4740ab98a6054e9e52329)
DeltaFile
+0-702sys/crypto/openssl/amd64/ossl_aes_gcm.c
+615-0sys/crypto/openssl/ossl_aes_gcm.c
+0-359sys/crypto/openssl/arm/ossl_aes_gcm.c
+359-0sys/crypto/openssl/arm/ossl_aes_gcm_neon.c
+232-0sys/crypto/openssl/amd64/ossl_aes_gcm_avx512.c
+8-1sys/crypto/openssl/ossl_ppc.c
+1,214-1,0625 files not shown
+1,229-1,06811 files

FreeBSD/src df64ca1tests/sys/mac/ipacl ipacl_test.sh Makefile

tests/mac_ipacl: restore sysctls after modification

While here, use 'required_kmods' instead of ad-hoc
checks.

Signed-off-by: Siva Mahadevan <me at svmhdvn.name>

Reviewed by:    markj
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation
Pull request:   https://github.com/freebsd/freebsd-src/pull/1856

(cherry picked from commit 79042fd7ed4187d2a74e37618f6fd77f448ca353)
DeltaFile
+12-4tests/sys/mac/ipacl/ipacl_test.sh
+5-0tests/sys/mac/ipacl/Makefile
+0-4tests/sys/mac/ipacl/utils.subr
+17-83 files

FreeBSD/src 9dab0e6lib/ncurses Makefile.inc

ncurses: Add an ncurses-lib package

Set LIB_PACKAGE= in lib/ncurses/Makefile.inc so the ncurses libraries
go into the ncurses-lib subpackage rather than the base package. This
means applications that depend on ncurses can be installed without
needing to install the various utilities and manpages.

This removes a dependency from runtime to ncurses (it now depends on
ncurses-lib instead).

MFC after:      3 seconds
Reviewed by:    kevans
Sponsored by:   https://www.patreon.com/bsdivy
Differential Revision:  https://reviews.freebsd.org/D53060

(cherry picked from commit bde703e8b6ab3acc73bbb20f1ebe26221f33e9f1)
DeltaFile
+1-0lib/ncurses/Makefile.inc
+1-01 files

FreeBSD/src f1b0e00. UPDATING, etc/mtree BSD.var.dist

packages: Rename unbound to local-unbound

This more accurately reflects its purpose, and its contents, since
everything in the package is prefixed with "local-".

While here, add a message on upgrade about regenerating the config.

MFC after:      3 seconds
Requested by:   des
Reviewed by:    des
Sponsored by:   https://www.patreon.com/bsdivy
Differential Revision:  https://reviews.freebsd.org/D53056

(cherry picked from commit bf84861460f9287fe9cf66b2cd22fefe8e242a28)
DeltaFile
+35-0release/packages/ucl/local-unbound-all.ucl
+0-35release/packages/ucl/unbound-all.ucl
+27-0release/packages/ucl/local-unbound.ucl
+8-0UPDATING
+3-3lib/libunbound/Makefile
+2-2etc/mtree/BSD.var.dist
+75-403 files not shown
+78-439 files

FreeBSD/src bde703elib/ncurses Makefile.inc

ncurses: Add an ncurses-lib package

Set LIB_PACKAGE= in lib/ncurses/Makefile.inc so the ncurses libraries
go into the ncurses-lib subpackage rather than the base package. This
means applications that depend on ncurses can be installed without
needing to install the various utilities and manpages.

This removes a dependency from runtime to ncurses (it now depends on
ncurses-lib instead).

MFC after:      3 seconds
Reviewed by:    kevans
Sponsored by:   https://www.patreon.com/bsdivy
Differential Revision:  https://reviews.freebsd.org/D53060
DeltaFile
+1-0lib/ncurses/Makefile.inc
+1-01 files

FreeBSD/src bf84861. UPDATING, etc/mtree BSD.var.dist

packages: Rename unbound to local-unbound

This more accurately reflects its purpose, and its contents, since
everything in the package is prefixed with "local-".

While here, add a message on upgrade about regenerating the config.

MFC after:      3 seconds
Requested by:   des
Reviewed by:    des
Sponsored by:   https://www.patreon.com/bsdivy
Differential Revision:  https://reviews.freebsd.org/D53056
DeltaFile
+35-0release/packages/ucl/local-unbound-all.ucl
+0-35release/packages/ucl/unbound-all.ucl
+27-0release/packages/ucl/local-unbound.ucl
+8-0UPDATING
+3-3lib/libunbound/Makefile
+2-2etc/mtree/BSD.var.dist
+75-403 files not shown
+78-439 files

FreeBSD/src c44d266sys/sys tree.h

rb tree: remove strict aliasing violations

Rework internal RB macros to avoid assignments via type punned pointers.
RB uses low order pointer bits to encode information (whether children
are red), and was manipulating those values via (*(__uintptr_t *)&elm),
which leads to strict aliasing warnings.

In the kernel we use -fno-strict-aliasing, but this isn't necessarily
the case in user space.  This quiets thousands of -Wstrict-aliasing
warnings in the user space build.

Reported by:    GCC -Wstrict-aliasing
Reviewed by:    dougm
Discussed with: kib
Differential Revision:  https://reviews.freebsd.org/D52939
DeltaFile
+34-23sys/sys/tree.h
+34-231 files

FreeBSD/src f6751f1release/tools vmimage.subr

vmimage.subr: Sort METALOG before running makefs

When creating VM images from pkgbase, the METALOG may not be in order;
in particular, files may be listed before the directories which contain
them.  This causes makefs to create directories with 000 permissions.

Interestingly, such VM images boot just fine, since root ignores those
permissions; the first sign of trouble was sshd refusing logins with an
error message which said absolutely nothing about /etc/ having
incorrect permissions or being unable to read files inside it.

Immediately prior to running makefs, sort the METALOG file.  While
we're here, uniquify as well; this does not guarantee that we do not
have duplicate paths, but if there are duplicate paths with different
settings something else has gone wrong and we don't really have any
good way of solving the problem anyway.

Approved by:    re (cperciva)
Reviewed by:    ivy

    [7 lines not shown]
DeltaFile
+5-0release/tools/vmimage.subr
+5-01 files

FreeBSD/src a9ffe49usr.bin/sockstat main.c

sockstat: improve output formatting

Fix the format when the output for a socket spans multiple lines.

Approved by:    re (cperciva)
Reviewed by:            rrs
Sponsored by:           Netflix, Inc.
Differential Revision:  https://reviews.freebsd.org/D52984

(cherry picked from commit 98b2a2265f5ee47bd932347699e6117df2f41488)
(cherry picked from commit 7e567f51ff59d169b5fd0bc350d0c7dfc9fc2609)
DeltaFile
+15-3usr.bin/sockstat/main.c
+15-31 files

FreeBSD/src 72e948cusr.bin/sockstat main.c

sockstat: improve indentation

No functional changes intended.

Approved by:    re (cperciva)
Sponsored by:   Netflix, Inc.

(cherry picked from commit ab837a2eed6d7562d538ac5f90b3b2776a9f0f5f)
(cherry picked from commit 3dac4b92ec992fc85d148bf7d2d2deb1dbc5c827)
DeltaFile
+62-61usr.bin/sockstat/main.c
+62-611 files

FreeBSD/src 9bea265sys/kern vfs_vnops.c

vfs offset: fix assertion failure in face of racing ffofset and setfl locking

Both use the same 16 bit var to store their locked and waiters bits,
then this in file_v_unlock:

        state = atomic_load_16(flagsp);
        if ((state & lock_wait_bit) == 0 &&
            atomic_cmpset_rel_16(flagsp, state, state & ~lock_bit))
                return;

can fail if for example foffset is being unlocked while setfl is getting
locked.

Afterwards the code assumes there are blocked waiters on foffset.

Approved by:    re (cperciva)
Reviewed by: kib, markj
Sponsored by:   Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D52915

    [2 lines not shown]
DeltaFile
+12-6sys/kern/vfs_vnops.c
+12-61 files

FreeBSD/src ad2ca1crelease/tools vmimage.subr

vmimage.subr: Sort METALOG before running makefs

When creating VM images from pkgbase, the METALOG may not be in order;
in particular, files may be listed before the directories which contain
them.  This causes makefs to create directories with 000 permissions.

Interestingly, such VM images boot just fine, since root ignores those
permissions; the first sign of trouble was sshd refusing logins with an
error message which said absolutely nothing about /etc/ having
incorrect permissions or being unable to read files inside it.

Immediately prior to running makefs, sort the METALOG file.  While
we're here, uniquify as well; this does not guarantee that we do not
have duplicate paths, but if there are duplicate paths with different
settings something else has gone wrong and we don't really have any
good way of solving the problem anyway.

Reviewed by:    ivy
Hint from:      imp

    [5 lines not shown]
DeltaFile
+5-0release/tools/vmimage.subr
+5-01 files

FreeBSD/src b679303sbin/fsck_ffs setup.c

fsck_ffs: garbage collect calcsb

calcsb is unused since the logic moved to sbsearch / ffs_sbsearch in
e68866164212 ("Move the ability to search for alternate UFS superblocks
from fsck_ffs(8) into ffs_sbsearch() to allow use by other parts of the
system.")

Reviewed by:    mckusick
Differential Revision:  https://reviews.freebsd.org/D53038
DeltaFile
+0-47sbin/fsck_ffs/setup.c
+0-471 files

FreeBSD/src a0ea4c0sys/ufs/ffs ffs_inode.c

ffs_truncate: correct INVARIANTS panic debug output

Reported by:    GCC -Warray-bounds
Reviewed by:    mckusick
Differential Revision:  https://reviews.freebsd.org/D53037
DeltaFile
+2-2sys/ufs/ffs/ffs_inode.c
+2-21 files

FreeBSD/src 68501a9sys/dev/mii mv88e151x.c

mv88e151x: fix potential attach and autonegotiation issues

Reported by:    GCC -Wmaybe-uninitialized, -Wtautological-compare
Reviewed by:    kp
Differential Revision:  https://reviews.freebsd.org/D45919
DeltaFile
+5-3sys/dev/mii/mv88e151x.c
+5-31 files

FreeBSD/src 57bf745sys/kern vfs_vnops.c

vfs offset: fix assertion failure in face of racing ffofset and setfl locking

Both use the same 16 bit var to store their locked and waiters bits,
then this in file_v_unlock:

        state = atomic_load_16(flagsp);
        if ((state & lock_wait_bit) == 0 &&
            atomic_cmpset_rel_16(flagsp, state, state & ~lock_bit))
                return;

can fail if for example foffset is being unlocked while setfl is getting
locked.

Afterwards the code assumes there are blocked waiters on foffset.

Reviewed by: kib, markj
Sponsored by:   Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D52915
DeltaFile
+12-6sys/kern/vfs_vnops.c
+12-61 files

FreeBSD/src f43e19dsys/kern vfs_vnops.c

vfs offset: fix assertion failure in face of racing ffofset and setfl locking

Both use the same 16 bit var to store their locked and waiters bits,
then this in file_v_unlock:

        state = atomic_load_16(flagsp);
        if ((state & lock_wait_bit) == 0 &&
            atomic_cmpset_rel_16(flagsp, state, state & ~lock_bit))
                return;

can fail if for example foffset is being unlocked while setfl is getting
locked.

Afterwards the code assumes there are blocked waiters on foffset.

Reviewed by: kib, markj
Sponsored by:   Rubicon Communications, LLC ("Netgate")
Differential Revision: https://reviews.freebsd.org/D52915
DeltaFile
+12-6sys/kern/vfs_vnops.c
+12-61 files