Displaying 1 50 of 335,044 commits (0.054s)

FreeBSD — stable/11/sys/net iflib.h iflib.c

Revert MFC of r334231 in r338871.

It did not apply cleanly and was causing build errors.

FreeBSD — head/usr.sbin/cxgbetool cxgbetool.c cxgbetool.8

cxgbetool(8): The VLAN tag provided in the action for a filter must be prefixed
with either '=' or '+'.  Fix the description of the parameter in the man page
while here.

Approved by:        re@ (kib@)
Sponsored by:        Chelsio Communications

FreeBSD — stable/11/sys/net if_media.h iflib.c

MFC r334231, r334779, r335322, and r338208 to stable/11 from head

These include:
r334231: iflib: Add new shared flag: IFLIB_ADMIN_ALWAYS_RUN
r334779: iflib: Record TCP checksum info in iflib when TCP checksum is requested
r335322: iflib: Style fixes
r338208: if_media: Add new 2.5G/5G/25G/40G/50G/100G/200G/400G media types

Sponsored by:        Intel Corporation

FreeBSD — head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs spa.c

MFV r338866: 9700 ZFS resilvered mirror does not balance reads

illumos/illumos-gate at 82f63c3c2bf5e4378706e8dcfccf717d67371be9

Reviewed by: Toomas Soome <tsoome at me.com>
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni at nexenta.com>
Reviewed by: George Wilson <george.wilson at delphix.com>
Approved by: Matthew Ahrens <mahrens at delphix.com>
Author:     Jerry Jelinek <jerry.jelinek at joyent.com>

Approved by:        re (delphij)

FreeBSD — stable/11/usr.sbin/asf asf_kvm.c

Include stdbool.h so that we can use bool in linker.h.

As asf(8) is gone in head, this is a direct commit to stable/11.
Delta File
+1 -0 stable/11/usr.sbin/asf/asf_kvm.c
+1 -0 1 file

FreeBSD — stable/11/sys/amd64/amd64 elf_machdep.c, stable/11/sys/arm/arm elf_machdep.c

MFC r338211:
Prepare the kernel linker to handle PC-relative ifunc relocations.

FreeBSD — vendor-sys/illumos/dist/uts/common/fs/zfs spa.c

9700 ZFS resilvered mirror does not balance reads

illumos/illumos-gate at 82f63c3c2bf5e4378706e8dcfccf717d67371be9

Reviewed by: Toomas Soome <tsoome at me.com>
Reviewed by: Sanjay Nadkarni <sanjay.nadkarni at nexenta.com>
Reviewed by: George Wilson <george.wilson at delphix.com>
Approved by: Matthew Ahrens <mahrens at delphix.com>
Author:     Jerry Jelinek <jerry.jelinek at joyent.com>

FreeBSD — vendor-sys/illumos/dist/uts/common/fs/zfs dmu.c, vendor-sys/illumos/dist/uts/common/fs/zfs/sys dmu_impl.h

9626 move 'static xuio_stats_t xuio_stats' to file where it use

illumos/illumos-gate at 857c96d257470e097e846ab8886580991b329c32

Reviewed by: Yuri Pankov <yuripv at yuripv.net>
Reviewed by: Matthew Ahrens <mahrens at delphix.com>
Approved by: Dan McDonald <danmcd at joyent.com>
Author:     Igor Kozhukhov <igor at dilos.org>

FreeBSD — vendor-sys/illumos/dist/uts/common/fs/zfs/sys zfs_ioctl.h

9672 Reserve a ZFS replication stream feature flag for ZSTD compression

illumos/illumos-gate at acd7f809f0376580771fe4df8aaeecebe4c40b2f

Author:     Allan Jude <allanjude at freebsd.org>
Reviewed by: Matt Ahrens <matt at delphix.com>
Approved by: Robert Mustacchi <rm at joyent.com>

FreeBSD — head/sys/amd64/amd64 support.S

Use the GNU as-compatible .endm instead of .endmacro.

Approved by:        re (gjb)
Delta File
+4 -4 head/sys/amd64/amd64/support.S
+4 -4 1 file

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

Convert x86 TLB top-level invalidation functions to ifuncs.

Note that shootdown IPI handlers are already per-mode.

Suggested by:        alc
Reviewed by:        alc, markj
Tested by:        pho
Sponsored by:        The FreeBSD Foundation
Approved by:        re (gjb)
Differential revision:        https://reviews.freebsd.org/D17184
Delta File
+234 -131 head/sys/amd64/amd64/pmap.c
+234 -131 1 file

FreeBSD — head/lib/libc Makefile

libc: require ifunc-capable linker for amd64/i386

We expect to introduce optimized libc routines in the near future,
which requires use of a linker that supports ifuncs.

Approved by:        re (gjb, kib)
Sponsored by:   The FreeBSD Foundation
Delta File
+5 -0 head/lib/libc/Makefile
+5 -0 1 file

FreeBSD — head/gnu/usr.bin/binutils/as config.h, head/gnu/usr.bin/binutils/ld config.h

Disable sbrk() use in GNU tools.

We're studing the possibility of deprecating sbrk().  To make it easier
we're removing unnecessicary uses in the base system.  None of these
tools require sbrk(), but they agressively prefer it for no good reason.

Reviewed by:    andrew
Approved by:        re (kib)
Sponsored by:        DARPA, AFRL
Differential Revision:  https://reviews.freebsd.org/D16141

FreeBSD — stable/10/release/scripts pkg-stage.sh, stable/11/release/scripts pkg-stage.sh

MFC r338754:
 Update the pkg-stage.sh script used to populate packages on the
 dvd1.iso installation medium from including KDE4 to KDE5, as the
 KDE4-based ports have been marked as deprecated in the Ports
 Collection.

Sponsored by:        The FreeBSD Foundation

FreeBSD — head/sys/amd64/amd64 support.S

amd64: even up copyin/copyout with memcpy + other cleanup

- _fault handlers for both primitives are identical, provide just one
- change the copying scheme to match memcpy (in particular jump
avoidance for the most common case of multiply of 8)
- stop re-reading pcb address on exit, just store it locally (in r9)

Reviewed by:        kib
Approved by:        re (gjb)
Differential Revision:        https://reviews.freebsd.org/D17265
Delta File
+30 -26 head/sys/amd64/amd64/support.S
+30 -26 1 file

FreeBSD — head/sys/dev/ffec if_ffec.c

Fix possible NULL pointer dereference in ffec_alloc_mbufcl().

PR:                231514
Approved by:        re (kib)
MFC after:        1 week
Delta File
+2 -1 head/sys/dev/ffec/if_ffec.c
+2 -1 1 file

FreeBSD — head/sys/conf newvers.sh

Include kernel ident in uname

In non-reproducible mode we have the kernel ident as a side effect of
including the build directory.  Explicitly add it to the ident string in
reproducible mode.

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

FreeBSD — head/sys/kern sys_generic.c

select: stop doing zero-sized memsets

Approved by:        re (kib)
Delta File
+3 -2 head/sys/kern/sys_generic.c
+3 -2 1 file

FreeBSD — head/sys/conf newvers.sh

remove double space between branch and version in kernel ident

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

FreeBSD — head/sys/amd64/amd64 support.S

amd64: check for small size in memmove, memcpy and memset

If the size is 15 bytes or less avoid spinning up rep just to copy the 8
bytes. In my tests on EPYC and old Intel microarchs without ERMS (like
Westmere) it provided a nice win over the current version (e.g. for EPYC
memset with 15 bytes of size goes from 59712651 ops/s to 70600095) all
while almost not pessimizing the other cases.

Data collected during package building shows that < 16 sizes are pretty
common.

Verified with the glibc test suite.

Approved by:        re (kib)
Delta File
+9 -0 head/sys/amd64/amd64/support.S
+9 -0 1 file

FreeBSD — head/usr.sbin/bsdinstall/scripts hardening

Add an installer option to disable destructive dtrace.

Submitted by:                Jörg Pernfuß <code.jpe at gmail.com>
Approved by:                re (kib)
MFC after:                1 week
Differential Revision:        https://reviews.freebsd.org/D12474

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

Mention setting $lines to 0 in ddb can disable paging

Reviewed by:        bcr (earlier version), markj
Approved by:        re (kib), markj (mentor)
MFC after:        3 days
Sponsored by:        The FreeBSD Foundation
Differential Revision:        https://reviews.freebsd.org/D17068
Delta File
+2 -1 head/share/man/man4/ddb.4
+2 -1 1 file

FreeBSD — head/sys/net if_vlan.c if_var.h

fix vlan locking to permit sx acquisition in ioctl calls

- update vlan(9) to handle changes earlier this year in multicast locking

Tested by: np@, darkfiberu at gmail.com

PR:        230510
Reviewed by:        mjoras@, shurd@, sbruno@
Approved by:        re (gjb@)
Sponsored by:        Limelight Networks
Differential Revision:        https://reviews.freebsd.org/D16808
Delta File
+76 -143 head/sys/net/if_vlan.c
+1 -0 head/sys/net/if_var.h
+77 -143 2 files

FreeBSD — head/sys/conf newvers.sh

Update head from ALPHA6 to ALPHA7 as part of the 12.0-RELEASE
cycle.

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

FreeBSD — projects/openssl111/secure/usr.bin/openssl Makefile

Remove pthread from LIBADD for openssl(1).

libcrypto is linked with pthread since r338816.

FreeBSD — projects/openssl111/secure/lib/libcrypto Makefile.inc

Add CFLAGS for i386 assembly files.

FreeBSD — projects/openssl111/secure/lib/libcrypto Makefile

Sort assembly source files for i386.

FreeBSD — projects/openssl111/secure/lib/libcrypto/engines Makefile.inc Makefile, projects/openssl111/secure/lib/libcrypto/engines/capi Makefile

Connect engines to the build.
Delta File
+16 -2 projects/openssl111/secure/lib/libcrypto/engines/Makefile.inc
+14 -0 projects/openssl111/secure/lib/libcrypto/engines/padlock/Makefile
+5 -2 projects/openssl111/secure/lib/libcrypto/engines/Makefile
+7 -0 projects/openssl111/secure/lib/libcrypto/engines/capi/Makefile
+0 -0 projects/openssl111/secure/lib/libcrypto/engines/capi/
+0 -0 projects/openssl111/secure/lib/libcrypto/engines/libaep/
+0 -0 10 files not shown
+42 -4 16 files

FreeBSD — projects/openssl111/secure/lib/libcrypto Makefile

Connect i386 assembly files to build.

FreeBSD — projects/openssl111/secure/lib/libcrypto Makefile.asm, projects/openssl111/secure/lib/libcrypto/i386 ecp_nistz256-x86.S sha256-586.S

Regen assembly files for i386.

FreeBSD — head/sys/amd64/amd64 support.S

amd64: macroify copyin/copyout and provide erms variants, follow up

Fix a fat-fingered typo with a "funny" side-effect: when doing copyin on a
cpu without ERMS and with size being a multiply of 8 a page fault would be
triggered resulting in EFAULT.

Pointy hat: mjg
Approved by:        re (implicit)
Delta File
+1 -1 head/sys/amd64/amd64/support.S
+1 -1 1 file

FreeBSD — head/sys/dev/e1000 if_em.c

Add IFCAP_TSO6 for igb

It seems igb supports TSO6, but the capability got lost in
the iflib update. Restore this capability.

PR:                231476
Reported by:        lev
Reviewed by:        erj
Approved by:        re (gjb)
Sponsored by:        Limelight Networks
Differential Revision:        https://reviews.freebsd.org/D17242
Delta File
+2 -1 head/sys/dev/e1000/if_em.c
+2 -1 1 file

FreeBSD — head/sys/netinet ip_encap.h

Add new field max_hdrsize to struct encap_config.

It is currently unused and reserved for future use to keep KBI/KPI.
Also add several spare pointers to be able extend structure if it
will be needed.

Approved by:        re (gjb)
Delta File
+3 -0 head/sys/netinet/ip_encap.h
+3 -0 1 file

FreeBSD — head/sys/net iflib.c

Fix capabilities handling for iflib drivers

Various capabilities were not being handled correctly in the
SIOCSIFCAP handler. Specifically:

IFCAP_RXCSUM and IFCAP_RXCSUM_IPV6 could be set even if not supported

It was impossible to disable IFCAP_RXCSUM and/or IFCAP_RXCSUM_IPV6 via
ifconfig since it does ioctl() per command-line flag rather than combine
them into a single call.

IFCAP_VLAN_HWCSUM could not be modified via the ioctl()

Setting any combination of the three IFCAP_WOL flags would set only
IFCAP_WOL_MCAST | IFCAP_WOL_MAGIC. For example, setting only
IFCAP_WOL_UCAST would result in both IFCAP_WOL_MCAST and IFCAP_WOL_MAGIC
being enabled, but IFCAP_WOL_UCAST would not be enabled.

Because if_vlancap() was called before if_togglecapenable(), vlan flags
were sometimes not applied correctly.

Interfaces were being unnecessarily stopped and restarted for WoL

PR:                231151
Submitted by:        Kaho Toshikazu <kaho at elam.kais.kyoto-u.ac.jp>

    [5 lines not shown]
Delta File
+26 -13 head/sys/net/iflib.c
+26 -13 1 file

FreeBSD — head/sys/amd64/amd64 support.S copyout.c

amd64: macroify copyin/copyout and provide erms variants

Reviewed by:        kib
Approved by:        re (gjb)
Differential Revision:        https://reviews.freebsd.org/D17257

FreeBSD — head/sys/kern subr_vmem.c, head/sys/vm vm_kern.c vm_kern.h

Ensure that imports into per-domain kmem arenas are KVA_QUANTUM-aligned.

The old code appears to assume that vmem_alloc() would import
size-aligned KVA chunks from the parent kernel_arena, but vmem doesn't
provide this guarantee.

Also remove the unused global RWX arena and add comments explaining why
we have per-domain arenas.

Reported by:        alc
Reviewed by:        alc, kib (previous version)
Approved by:        re (gjb)
Sponsored by:        The FreeBSD Foundation
Differential Revision:        https://reviews.freebsd.org/D17249

FreeBSD — head/sys/kern vfs_lookup.c

vfs: remove lookup_shared tunable

Reviewed by:        kib, jhb
Approved by:        re (gjb)
Differential Revision:        https://reviews.freebsd.org/D17253
Delta File
+2 -11 head/sys/kern/vfs_lookup.c
+2 -11 1 file

FreeBSD — head/share/man/man4 iflib.4 bnxt.4, head/share/man/man9 iflib.9

Add iflib.4 manpage

The new manpage documents the tunables and statistic sysctls exposed by
iflib.

Reviewed by:        bcr
Approved by:        re (gjb)
Sponsored by:        Limelight Networks
Differential Revision:        https://reviews.freebsd.org/D16920

FreeBSD — stable/11 Makefile.libcompat, stable/11/lib/libclang_rt Makefile.inc

MFC 337270: Install the 32-bit compat sanitizer libraries.

The lib32 build was already building the i386 version of
the clang sanitizers (libclang_rt) but they were not being
installed.  This enables the installation.

MK_TOOLCHAIN=no was originally added to the install make
environment to disable includes so that NO_INCS could be
removed.  The MK_TOOLCHAIN in bsd.incs.mk was subsequently
renamed to MK_INCLUDES, but bsd.lib.mk doesn't even include
bsd.incs.mk when LIBRARIES_ONLY is defined which the install
make environment for compat libs now defines.  However,
setting MK_TOOLCHAIN=no forced MK_CLANG=no which disabled
libclang_rt during the install32 phase.  Remove MK_TOOLCHAIN=no
since LIBRARIES_ONLY is now sufficient.

Since the libcompat environment overrides both LIBDIR and
SHLIBDIR, libclang_rt/Makefile.inc has to set both variables
to force the libraries to be installed to the location
expected by the compiler.

FreeBSD — head/usr.sbin/bsdinstall/scripts config

Fix variable name typo in the bsdinstall ttys hardening code.

Submitted by:        Jörg Pernfuß <code.jpe at gmail.com>
Reviewed by:        allanjude, dab, emaste
Approved by:        re (gjb)
Differential Revision:        https://reviews.freebsd.org/D12476

FreeBSD — head/sys/netinet6 icmp6.c

In icmp6_rip6_input(), once we have a lock, make sure the inp is
not freed.  This can happen since the list traversal and locking
was converted to epoch(9).  If the inp is marked "freed", skip it.

This prevents a NULL pointer deref panic in ip6_savecontrol_v4()
trying to access the socket hanging off the inp, which was gone
by the time we got there.

Reported by:        andrew
Tested by:        andrew
Approved by:        re (gjb)
Delta File
+4 -0 head/sys/netinet6/icmp6.c
+4 -0 1 file

FreeBSD — head/sys/vm vm_kern.c

Change the domain selection policy in kmem_back().

Ensure that pages backing the same virtual large page come from the
same physical domain, as kmem_malloc_domain() does.

PR:                231038
Reviewed by:        alc, kib
Approved by:        re (gjb)
Sponsored by:        The FreeBSD Foundation
Differential Revision:        https://reviews.freebsd.org/D17248
Delta File
+31 -14 head/sys/vm/vm_kern.c
+31 -14 1 file

FreeBSD — head/sys/kern kern_descrip.c

fd: prevent inlining of _fdrop thorough kern_descrip.c

fdrop is used in several places in the file and almost never has to call
_fdrop. Thus inlining it is a pure waste of space.

Approved by:        re (kib)
Delta File
+4 -1 head/sys/kern/kern_descrip.c
+4 -1 1 file

FreeBSD — head/sys/amd64/amd64 support.S

amd64: move fusufault after all users

A lot of function have the following check:
        cmpq    %rax,%rdi                       /* verify address is valid */
        ja      fusufault

The label is present earlier in kernel .text, which means this is a jump
backwards. Absent any information in branch predictor, the cpu predicts it
as taken. Since it is almost never taken in practice, this results in a
completely avoidable misprediction.

Move it past all consumers, so that it is predicted as not taken.

Approved by:        re (kib)
Delta File
+10 -10 head/sys/amd64/amd64/support.S
+10 -10 1 file

FreeBSD — head/contrib/libarchive README.md, head/contrib/libarchive/libarchive archive_cryptor.c archive_acl.c

MFV r338797:
Sync libarchive with vendor.

Relevant vendor changes:
  PR #1019: Add allocation check for the zip_entry struct
  Oss-Fuzz #10192: Handle whitespace-only ACL fields correctly

Approved by:        re (kib)
MFC after:        1 week

FreeBSD — head/contrib mandoc mdocml, head/contrib/mandoc html.c mandoc.css

Import mandoc 1.14.4

Approved by:        re (kib)
MFC after:        1 week
Delta File
+117 -210 head/contrib/mandoc/html.c
+150 -100 head/contrib/mandoc/mandoc.css
+84 -164 head/contrib/mandoc/mdoc_html.c
+168 -78 head/contrib/mandoc/roff.c
+133 -113 head/contrib/mandoc/mandoc.1
+85 -85 head/contrib/mandoc/chars.c
+1,241 -701 57 files not shown
+1,978 -1,451 63 files

FreeBSD — head/etc Makefile, head/secure/usr.bin/openssl Makefile

Move the openssl.cnf install to secure/usr.bin/openssl/

This leverages CONFS to do the install

Approved by:        re (pkgbase, blanket), bapt (mentor)
Differential Revision:        https://reviews.freebsd.org/D17245

FreeBSD — head/etc nsmb.conf Makefile, head/lib/libsmb nsmb.conf Makefile

Move nsmb.conf to lib/libsmb/

This leverages CONFS to do the install

Approved by:        re (pkgbase, blanket), bapt (mentor)
Differential Revision:        https://reviews.freebsd.org/D17243