FreeBSD/src 0a87ae1sys/netinet6 icmp6.c

icmp6: clear csum_flags on mbuf reuse

When icmp6 sends an ICMPv6 message, it reuses the mbuf of the packet
that triggered the ICMPv6 message and prepends an IPv6 and ICMPv6
header. For a locally generated packet with checksum offloading, the
mbuf still has csum_flags set indicating that a SCTP/TCP/UDP checksum
has to be computed and inserted. Since this not the case anymore,
csum_flags need to be cleared.

PR:                     293227
Reviewed by:            kp, zlei, tuexen
MFC after:              3 days
Differential Revision:  https://reviews.freebsd.org/D55367

(cherry picked from commit ada4dc77577f7162353e8c2916ba5c258b6210f0)
DeltaFile
+1-0sys/netinet6/icmp6.c
+1-01 files

FreeBSD/src 3a0c63ashare/man/man4 vmm.4

vmm.4: Fix width

Reported by:    ziaee
Fixes:          d26c8ae527bb ("vmm.4: Add information on VM access control")
DeltaFile
+1-1share/man/man4/vmm.4
+1-11 files

FreeBSD/src 83cf9b5. RELNOTES

RELNOTES: Document some recent vmm changes
DeltaFile
+8-0RELNOTES
+8-01 files

FreeBSD/src d4c05edsys/dev/vmm vmm_dev.c, sys/sys priv.h

vmm: Add privilege checks to vmmctl operations

In preparation for supporting creation of VMs by unprivileged users, add
some restrictions:
- Disallow creation of non-transient VMs by unprivileged users.  That
  is, if an unprivileged user creates a VM, the VM must be destroyed
  automatically once the last fd referencing it is gone.
- Disallow destroying VMs created by a different user, unless the caller
  has the PRIV_VMM_DESTROY privilege.

Reviewed by:    bnovkov
MFC after:      2 months
Sponsored by:   The FreeBSD Foundation
Sponsored by:   Klara, Inc.
Differential Revision:  https://reviews.freebsd.org/D54740
DeltaFile
+21-0sys/dev/vmm/vmm_dev.c
+3-1sys/sys/priv.h
+24-12 files

FreeBSD/src af099eaetc group, sys/dev/vmm vmm_dev.c

vmm: Enable unprivileged bhyve

- Add the vmm group.
- Let /dev/vmmctl belong to the vmm group by default, and give group
  write permissions.
- When creating a VM's device files, make them owned by the creating
  process' effective UID.

Reviewed by:    bnovkov
MFC after:      2 months
Sponsored by:   The FreeBSD Foundation
Sponsored by:   Klara, Inc.
Differential Revision:  https://reviews.freebsd.org/D54741
DeltaFile
+5-5sys/dev/vmm/vmm_dev.c
+1-0sys/sys/conf.h
+1-0etc/group
+7-53 files

FreeBSD/src bc7862blib/libc/gen exterr_cat_filenames.h, sys/dev/vmm vmm_dev.c

vmm: Start using exterror

For now, just describe the error where an unprivileged user attempts to
run a VM without DESTROY_ON_CLOSE semantics, i.e., monitor mode.

Reviewed by:    bnovkov
MFC after:      2 months
Sponsored by:   The FreeBSD Foundation
Sponsored by:   Klara, Inc.
Differential Revision:  https://reviews.freebsd.org/D54743
DeltaFile
+4-1sys/dev/vmm/vmm_dev.c
+1-0lib/libc/gen/exterr_cat_filenames.h
+1-0sys/sys/exterr_cat.h
+6-13 files

FreeBSD/src d26c8aeshare/man/man4 vmm.4, usr.sbin/bhyve bhyve.8

vmm.4: Add information on VM access control

Add a section to vmm.4 explaining how vmm device file ownership works.

MFC after:      2 months
Sponsored by:   The FreeBSD Foundation
Sponsored by:   Klara, Inc.
Differential Revision:  https://reviews.freebsd.org/D54742
DeltaFile
+39-0share/man/man4/vmm.4
+20-5usr.sbin/bhyve/bhyve.8
+59-52 files

FreeBSD/src dcbd1fcsys/sys types.h

types.h: use central definition of offsetof()

Previously this broke if included after (sys/)stddef.h.

Reported by:    des
Fixes:          2adc3f0db187 ("stddef.h: centralize definition of offsetof()")
DeltaFile
+1-1sys/sys/types.h
+1-11 files

FreeBSD/src dc7eb96tests/sys/netpfil/pf loginterface.sh

pf tests: verify blocked count on log interface

Also check the IPv6 pass/block numbers.

PR:             291763
MFC after:      1 week
Sponsored by:   Rubicon Communications, LLC ("Netgate")

(cherry picked from commit d03b6bb766f8c816547f9c39e05af8238242251e)
DeltaFile
+13-1tests/sys/netpfil/pf/loginterface.sh
+13-11 files

FreeBSD/src 4d0186clib/libpfctl libpfctl.c

libpfctl: Sort order of  snl attribute parser

snl atttribute parsers must be sorted by type, so PF_GS_BCOUNTERS
(16) must follow PF_GF_PCOUNTERS (15). Fix ordering and add a call
to SNL_VERIFY_PARSERS.

Without this fix, byte counters reported by 'pfctl -s info' with
a loginterface are always zero.

PR:             291763
MFC after:      1 week
Reviewed by:    kp
Signed-off-by:  eborisch at gmail.com

(cherry picked from commit 363b57d579bafa8a52cfb5a1dcb98af821b1ecb6)
DeltaFile
+7-1lib/libpfctl/libpfctl.c
+7-11 files

FreeBSD/src 6010b73usr.sbin/makefs msdos.c msdos.h

makefs: Add SPDX-License-Identifier tags

Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
DeltaFile
+2-0usr.sbin/makefs/msdos.c
+2-0usr.sbin/makefs/msdos.h
+4-02 files

FreeBSD/src a31127esys/sys syscallsubr.h

sys/syscallsubr.h: assorted tidying

- gc unused struct kevent
- sort kern_frmdirat, kern_funlinkat, kern_kexec_load, and kern_kqueue
- put user_ functions in their own section

Effort:         CHERI upstreaming
Reviewed by:    kib
Sponsored by:   Innovate UK
Differential Revision:  https://reviews.freebsd.org/D55309
DeltaFile
+15-15sys/sys/syscallsubr.h
+15-151 files

FreeBSD/src 1e18927.github/workflows cross-bootstrap-tools.yml

.github: support all stable branches

If this eventually poses a problem for unsupported branches we can fix
them directly.

Sponsored by:   Innovate UK

Reviewed by:    emaste
Differential Revision:  https://reviews.freebsd.org/D53838
DeltaFile
+1-1.github/workflows/cross-bootstrap-tools.yml
+1-11 files

FreeBSD/src 2adc3f0include stddef.h, sys/sys _offsetof.h stddef.h

stddef.h: centralize definition of offsetof()

Move to sys/_offsetof.h and use __builtin_offsetof() instead of
__offsetof to avoid reintroducing sys/cdefs.h polution in stddef.h.

This has the side effect of allowing sys/stddef.h to be included after
stddef.h which can happen in compatability headers.

Effort:         CHERI upstreaming
Sponsored by:   DARPA, AFRL
Reviewed by:    imp, kib
Differential Revision:  https://reviews.freebsd.org/D55307
DeltaFile
+19-0sys/sys/_offsetof.h
+1-4include/stddef.h
+1-2sys/sys/stddef.h
+21-63 files

FreeBSD/src 89c3ae5tools/build stddef.h Makefile

build: add stddef.h to define ptraddr_t as required

Effort:         CHERI upstreaming
Sponsored by:   Innovate UK
Reviewed by:    kib
Co-authored-by: Alfredo Mazzinghi <am2419 at cl.cam.ac.uk>
Co-authored-by: Alex Richardson <Alexander.Richardson at cl.cam.ac.uk>
Differential Revision:  https://reviews.freebsd.org/D55308
DeltaFile
+49-0tools/build/stddef.h
+3-0tools/build/Makefile
+52-02 files

FreeBSD/src cb59eecinclude stddef.h

stddef.h: add ptraddr_t

I'd missed that stddef.h is standalone and isn't a copy of sys/stddef.h
in my initial merge.

Effort:         CHERI upstreaming
Reviewed by:    kib
Sponsored by:   Innovate UK
Fixes:          dca634d1544b ("new type: ptraddr_t")
Differential Revision:  https://reviews.freebsd.org/D55305
DeltaFile
+7-0include/stddef.h
+7-01 files

FreeBSD/src 6d5a428usr.sbin/virtual_oss/virtual_bt_speaker bt_speaker.c, usr.sbin/virtual_oss/virtual_equalizer equalizer.c

virtual_oss: Add SPDX-License-Identifier tags

Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
DeltaFile
+2-0usr.sbin/virtual_oss/virtual_equalizer/equalizer.c
+2-0usr.sbin/virtual_oss/virtual_bt_speaker/bt_speaker.c
+2-0usr.sbin/virtual_oss/virtual_oss/audio_delay.c
+2-0usr.sbin/virtual_oss/virtual_oss/backend.h
+2-0usr.sbin/virtual_oss/virtual_oss/compressor.c
+2-0usr.sbin/virtual_oss/virtual_oss/ctl.c
+12-010 files not shown
+32-016 files

FreeBSD/src d6bec77usr.sbin/yppush yppush_extern.h

yppush: Add SPDX-License-Identifier tag

Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
DeltaFile
+2-0usr.sbin/yppush/yppush_extern.h
+2-01 files

FreeBSD/src ada4dc7sys/netinet6 icmp6.c

icmp6: clear csum_flags on mbuf reuse

When icmp6 sends an ICMPv6 message, it reuses the mbuf of the packet
that triggered the ICMPv6 message and prepends an IPv6 and ICMPv6
header. For a locally generated packet with checksum offloading, the
mbuf still has csum_flags set indicating that a SCTP/TCP/UDP checksum
has to be computed and inserted. Since this not the case anymore,
csum_flags need to be cleared.

PR:                     293227
Reviewed by:            kp, zlei, tuexen
MFC after:              3 days
Differential Revision:  https://reviews.freebsd.org/D55367
DeltaFile
+1-0sys/netinet6/icmp6.c
+1-01 files

FreeBSD/src ac8189eusr.sbin/ypserv/common yplib_host.c yplib_host.h

ypserv: Add SPDX-License-Identifier tags

Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
DeltaFile
+2-0usr.sbin/ypserv/common/yplib_host.c
+2-0usr.sbin/ypserv/common/yplib_host.h
+4-02 files

FreeBSD/src 7e8284csys/dev/iommu iommu_gas.c

iommu_gas: Fix assertion.

placeholder entry end changed to 0 in f591287756368
("iommu_gas: make placeholder entry at the start of the GAS zero size")

Reviewed by:    kib
Differential Revision:  https://reviews.freebsd.org/D55326
DeltaFile
+1-1sys/dev/iommu/iommu_gas.c
+1-11 files

FreeBSD/src 0e093f5tools/build/mk OptionalObsoleteFiles.inc

OptionalObsoleteFiles: Add figpar to dialog section

MFC after:      3 days
Fixes:          15d781b53233 ("lib: Gate libfigpar under MK_DIALOG")
Reviewed by:    jhb, emaste
Differential Revision:  https://reviews.freebsd.org/D55330

(cherry picked from commit bc6c827078b7ab62271ce7ac1c4439b82fd2f98c)

OptionalObsoleteFiles: Add missing figpar MLINKS

MFC after:      3 days
Fixes:          bc6c827078b7 ("OptionalObsoleteFiles: Add figpar to dialog section")

(cherry picked from commit efcfba9b31ad11ec901085c38b79e40289b9e7bc)

OptionalObsoleteFiles: Add missing dpv MLINK

MFC after:      3 days

    [2 lines not shown]
DeltaFile
+14-1tools/build/mk/OptionalObsoleteFiles.inc
+14-11 files

FreeBSD/src 2c9398ctools/build/mk OptionalObsoleteFiles.inc

OptionalObsoleteFiles: Add figpar to dialog section

MFC after:      3 days
Fixes:          15d781b53233 ("lib: Gate libfigpar under MK_DIALOG")
Reviewed by:    jhb, emaste
Differential Revision:  https://reviews.freebsd.org/D55330

(cherry picked from commit bc6c827078b7ab62271ce7ac1c4439b82fd2f98c)

OptionalObsoleteFiles: Add missing figpar MLINKS

MFC after:      3 days
Fixes:          bc6c827078b7 ("OptionalObsoleteFiles: Add figpar to dialog section")

(cherry picked from commit efcfba9b31ad11ec901085c38b79e40289b9e7bc)

OptionalObsoleteFiles: Add missing dpv MLINK

MFC after:      3 days

    [2 lines not shown]
DeltaFile
+13-0tools/build/mk/OptionalObsoleteFiles.inc
+13-01 files

FreeBSD/src a160622tools/build/mk OptionalObsoleteFiles.inc

OptionalObsoleteFiles: Add figpar to dialog section

MFC after:      3 days
Fixes:          15d781b53233 ("lib: Gate libfigpar under MK_DIALOG")
Reviewed by:    jhb, emaste
Differential Revision:  https://reviews.freebsd.org/D55330

(cherry picked from commit bc6c827078b7ab62271ce7ac1c4439b82fd2f98c)

OptionalObsoleteFiles: Add missing figpar MLINKS

MFC after:      3 days
Fixes:          bc6c827078b7 ("OptionalObsoleteFiles: Add figpar to dialog section")

(cherry picked from commit efcfba9b31ad11ec901085c38b79e40289b9e7bc)

OptionalObsoleteFiles: Add missing dpv MLINK

MFC after:      3 days

    [2 lines not shown]
DeltaFile
+12-0tools/build/mk/OptionalObsoleteFiles.inc
+12-01 files

FreeBSD/src 3522eac. ObsoleteFiles.inc, tools/build/mk OptionalObsoleteFiles.inc

ObsoleteFiles: Deduplicate

Since we dropped support for profile libraries, all optional entries for
them are now non-optional.  Most of them were already duplicated there,
a few were not.

MFC after:      3 days
Reviewed by:    jhb, emaste
Differential Revision:  https://reviews.freebsd.org/D55329

(cherry picked from commit f9f4a022a8583763903771915eafcd064184766a)
DeltaFile
+0-41tools/build/mk/OptionalObsoleteFiles.inc
+3-0ObsoleteFiles.inc
+3-412 files

FreeBSD/src f12a0dcusr.bin/vtfontcvt vtfontcvt.c

vtfontcvt: Add SPDX-License-Identifier tag

Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
DeltaFile
+2-0usr.bin/vtfontcvt/vtfontcvt.c
+2-01 files

FreeBSD/src c330768usr.bin/resizewin resizewin.c

resizewin: Add SPDX-License-Identifier tags

Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
DeltaFile
+2-0usr.bin/resizewin/resizewin.c
+2-01 files

FreeBSD/src 2d1c5f4usr.bin/etdump etdump.c etdump.h

etdump: Add SPDX-License-Identifier tags

Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
DeltaFile
+2-0usr.bin/etdump/etdump.c
+2-0usr.bin/etdump/etdump.h
+2-0usr.bin/etdump/output_shell.c
+2-0usr.bin/etdump/output_text.c
+8-04 files

FreeBSD/src 878cee8usr.bin/diff diff.h

diff: Add SPDX-License-Identifier tag

Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
DeltaFile
+2-0usr.bin/diff/diff.h
+2-01 files

FreeBSD/src 971696busr.bin/mkimg vmdk.c vhdx.c

mkimg: Add SPDX-License-Identifier tags

Reviewed by: emaste
Sponsored by: The FreeBSD Foundation
DeltaFile
+2-0usr.bin/mkimg/vmdk.c
+2-0usr.bin/mkimg/vhdx.c
+2-0usr.bin/mkimg/vhd.c
+2-0usr.bin/mkimg/uuid.c
+2-0usr.bin/mkimg/scheme.h
+2-0usr.bin/mkimg/scheme.c
+12-014 files not shown
+40-020 files