FreeBSD/src c43d6dasys/netgraph ng_iface.c

ng_iface(4): Remove a redundant assignment of if_type

That is unnecessary since change [1], as if_alloc(IFT_PROPVIRTUAL) has
set if_type already.

[1] fc74a9f93a5f Stop embedding struct ifnet at the top of driver softcs

No functional change intended.

MFC after:      1 week
DeltaFile
+0-1sys/netgraph/ng_iface.c
+0-11 files

FreeBSD/src 1873f2ashare/misc committers-src.dot

committers-src: add myself

Add myself (vexeduxr@) as a new src committer with imp@ as my mentor.

Approved by: imp (mentor)
Differential Revision: https://reviews.freebsd.org/D50824
DeltaFile
+2-0share/misc/committers-src.dot
+2-01 files

FreeBSD/src 1beab14stand/lua drawer.lua

stand: lua: add a more productive comment

The global `shift` is a special little hack for shifting everything when
the logo is gone, and we should explain that.

Fixes:  33d3373faf30d ("stand: lua: convert orb to a new format [...]")
DeltaFile
+3-1stand/lua/drawer.lua
+3-11 files

FreeBSD/src 33d3373stand/lua drawer.lua gfx-orbbw.lua

stand: lua: convert orb to a new format that allows per-graphic shift

Previously, we had one shift that had to work for both the ASCII version
and the image that we may draw if we have a framebuffer to play with.
That makes it more difficult to get the positioning just right, so split
them out into their own tables for convenience.

While we're here, stop clipping off the bottom of the orb when the
autoboot sequence is interrupted.  There's plenty of space for it to
move up a hair, so let's do that..

Reviewed by:    imp, tsoome
Differential Revision:  https://reviews.freebsd.org/D50801
DeltaFile
+75-29stand/lua/drawer.lua
+19-17stand/lua/gfx-orbbw.lua
+10-5stand/lua/gfx-orb.lua
+104-513 files

FreeBSD/src 754bc3dusr.sbin/bsdinstall/scripts bootconfig

bsdinstall: fix ps3 regression

b6644f5 introduces FREEBSD_BOOTLABEL="FreeBSD" as default value
but cc42ef5 removed this line, expecting it to be set by update_uefi_bootentry()

But ps3 don't use this function so its broken completely.

So we add this line back.

Signed-off-by: Chattrapat Sangmanee <aomsin27 at hotmail.co.th>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1594
DeltaFile
+3-0usr.sbin/bsdinstall/scripts/bootconfig
+3-01 files

FreeBSD/src 54f278cshare/man/man5 pf.conf.5

pf.conf.5: additional quoting for ranges in lists

When defining network address ranges in macros that will later be used
as items in list macro, these ranges must be quoted with additiona
simple quotes.

For instance, the following does not work and is rejected as a syntax
error:

    usr = "192.168.1.0/24"
    srv = "192.168.2.10 - 192.168.29"
    nat_ranges = "{" $usr $srv "}"

Defining ranges as the following instead will work:
    usr = "'192.168.1.0/24'"
    srv = "'192.168.2.10 - 192.168.29'"

MFC after: 3 days
Reviewed by: imp, ziaee
Pull Request: https://github.com/freebsd/freebsd-src/pull/1516
DeltaFile
+7-0share/man/man5/pf.conf.5
+7-01 files

FreeBSD/src 12859eeshare/man/man5 pf.conf.5

pf.conf.5: use subsections and reword titles

The current manpage has two PARAMETERS top-level sections, which can be
confusing when searching or browsing documentation quickly.

Since the parameters described in these two sections are actually
applicable within the scope of the sections they follow (ETHERNET
FILTERING and PACKET FILTERING respectively), I propose we move them to
subsections.

I also propose we reword the title of one of those subsections to
facilitate quick searching or browsing.

MFC after: 3 days
Reviewed by: imp, ziaee
Pull Request: https://github.com/freebsd/freebsd-src/pull/1516
Closes: https://github.com/freebsd/freebsd-src/pull/1516
DeltaFile
+3-3share/man/man5/pf.conf.5
+3-31 files

FreeBSD/src d8f021ausr.sbin/jail jail.8 command.c, usr.sbin/jail/tests jail_basic_test.sh commands.jail.conf

jail: add JID, JNAME and JPATH to environment for exec.* commands

Although variable substitution is available in the jail configuration
file, the jail identifier is often not since it is dynamically
attributed at run time.

In order to facilitate scripting of exec.* commands executed on the
system, this change sets the JID, JNAME and JPATH environment variables.

These variables are not added when using exec.clean. Neither are they
for commands executed inside jails, to avoid disclosing information
about the host system.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1609
Closes: https://github.com/freebsd/freebsd-src/pull/1609
DeltaFile
+21-0usr.sbin/jail/jail.8
+13-1usr.sbin/jail/command.c
+9-2usr.sbin/jail/tests/jail_basic_test.sh
+3-0usr.sbin/jail/tests/commands.jail.conf
+46-34 files

FreeBSD/src aae67a2usr.sbin/mfiutil mfi_bbu.c

mfiutil: Fix unsafe assumptions of snprintf(3) return value

PR: 281160
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1405
Closes: https://github.com/freebsd/freebsd-src/pull/1405
DeltaFile
+15-2usr.sbin/mfiutil/mfi_bbu.c
+15-21 files

FreeBSD/src b44147b. Makefile.inc1

Makefile.inc1: allow real-update-packages to be called independently

To perform an incremental update of a pkgbase repo, you would
call 'make update-packages', which will stage, create, and
incrementally choose newer package versions to sign as part
of a pkg repo. However, this forces you to stage the kernel
and source packages along with the world packages. For a
jail-only installation of FreeBSD, these packages are generally
not required.

This patch separates the 'update-packages' target from the
'real-update-packages' target to allow choosing world, kernel,
and/or source individually at the command line like so:

Jail-only installation:
1. make -j`nproc` buildworld
2. make PKG_VERSION='15.snap<date>' \
       stage-packages-world create-packages-world \
       real-update-packages

    [4 lines not shown]
DeltaFile
+3-4Makefile.inc1
+3-41 files

FreeBSD/src 3601528. Makefile.inc1

Makefile.inc1: define PKG_VERSION_FROM only if $REPO/latest symlink exists

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1445
DeltaFile
+1-1Makefile.inc1
+1-11 files

FreeBSD/src 954ac40share/man/man4 acpi_wmi.4

acpi_wmi.4: fall cleaning

+ add descriptions to existing examples
+ github repo url in sysctls => port named in example using it
+ reword MOF description for consistency with external docs
+ restore standard link, move to STANDARDS
+ grammar and markup nits + tag SPDX

MFC after:      3 days
Reviewed by:    imp
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1477
Closes:         https://github.com/freebsd/freebsd-src/pull/1477
DeltaFile
+37-24share/man/man4/acpi_wmi.4
+37-241 files

FreeBSD/src d0f4b71. Makefile.inc1

Makefile.inc1: minor style changes

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1445
DeltaFile
+6-12Makefile.inc1
+6-121 files

FreeBSD/src 2a678ffcontrib/atf/atf-c atf-c.3

atf-c(3): bump .Dd for the content change

MFC after:      2 weeks
MFC with:       a14573de29de
DeltaFile
+1-1contrib/atf/atf-c/atf-c.3
+1-11 files

FreeBSD/src a14573dcontrib/atf/atf-c atf-c.3

atf-c(3): fill in prototypes for functions

This change fills in prototypes for functions exposed by atf-c(3) to aid
the programmer with using the APIs with the library.

MFC after:      2 weeks
Differential Revision: https://reviews.freebsd.org/D50734
DeltaFile
+92-19contrib/atf/atf-c/atf-c.3
+92-191 files

FreeBSD/src cc9c213sys/fs/fuse fuse_internal.c, tests/sys/fs/fusefs pre-init.cc mockfs.cc

fusefs: Fix a panic when unmounting before init

fusefs would page fault due to the following sequence of events:
* The server did not respond to FUSE_INIT in timely fashion.
* Some other process tried to do unmount.
* That other process got killed by a signal.
* The server finally responded to FUSE_INIT.

PR:             287438
MFC after:      2 weeks
Sponsored by:   ConnectWise
Reviewed by:    arrowd
Differential Revision: https://reviews.freebsd.org/D50799
DeltaFile
+154-0tests/sys/fs/fusefs/pre-init.cc
+12-6tests/sys/fs/fusefs/mockfs.cc
+5-1tests/sys/fs/fusefs/mockfs.hh
+2-1tests/sys/fs/fusefs/utils.cc
+3-0sys/fs/fuse/fuse_internal.c
+2-0tests/sys/fs/fusefs/utils.hh
+178-81 files not shown
+179-87 files

FreeBSD/src 84e7307sys/dev/sound/pci/hda hdaa_patches.c hdac.h

snd_hda: Patch Lenovo T420s

PR:             222636
Tested by:      vermaden at interia.pl
Sponsored by:   The FreeBSD Foundation
MFC after:      1 day
DeltaFile
+16-0sys/dev/sound/pci/hda/hdaa_patches.c
+1-0sys/dev/sound/pci/hda/hdac.h
+17-02 files

FreeBSD/src 80c1295contrib/mandoc roff.c mdoc_html.c

mandoc: Vendor import of upstream at 2025-04-08

Interesting changes:
+ correct legacy mandoc date typo, reported on our very own bugzilla
+ improve libmandoc manual
+ strengthen recommendations to omit macros from title lines in mdoc(7)
+ improve html5 compliance in html output
+ improve RFC linking in markdown output
+ libmandoc and mdoc manuals have been improved
+ support arithmetic operations in tbl(7) column widths for DocBook
+ define the St -isoC-2023 macro for referencing the C23 spec

Approved by:    mhorne (mentor, implicit)
Reviewed by:    imp
Discussed with: adrian, bapt, brooks
Closes:         https://github.com/freebsd/freebsd-src/pull/1689
DeltaFile
+75-71contrib/mandoc/roff.c
+46-15contrib/mandoc/mdoc_html.c
+35-3contrib/mandoc/man.1
+35-2contrib/mandoc/mandoc.3
+21-15contrib/mandoc/tbl_layout.c
+32-3contrib/mandoc/mdoc_markdown.c
+244-10912 files not shown
+303-15018 files

FreeBSD/src 1b6936econtrib/mandoc st.c, lib/libc/string memccpy.3 memset.3

manuals: Align our tree with upstream C23 macro

Switch all instances of the -isoC-2024 macro to -isoC-2023 selected by
upstream. Keep -isoC-2024 defined, but deprecated, for backwards compat.

MFC after:      3 days (I will resolve merge conflicts with cdefs)
DeltaFile
+5-5share/man/man9/cdefs.9
+2-0contrib/mandoc/st.c
+1-1lib/libc/string/memccpy.3
+1-1lib/libc/string/memset.3
+9-74 files

FreeBSD/src f1ad434sys/vm vm_mmap.c

vm/vm_mmap.c: provide extended errors for most places

Reviewed by:    brooks
Sponsored by:   The FreeBSD Foundation
Differential revision:  https://reviews.freebsd.org/D50792
DeltaFile
+81-22sys/vm/vm_mmap.c
+81-221 files

FreeBSD/src deeda8a. Makefile.inc1

Makefile.inc1: Cleanup manpages for arches not included in MAN_ARCH

Apply the fixes to cleanup the compressed or uncompressed man pages to
arches not in MAN_ARCH as well.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1295
Closes: https://github.com/freebsd/freebsd-src/pull/1295
DeltaFile
+13-0Makefile.inc1
+13-01 files

FreeBSD/src f580578. Makefile.inc1, share/mk bsd.man.mk

Makefile.inc1: Cleanup (un)compressed manpages

When switching between compressed and uncompressed manual pages, the
other type is left behind as divots. Compensate by removing the
now-unwanted man pages automatically.

Reviewed by: imp, jhb
Pull Request: https://github.com/freebsd/freebsd-src/pull/1295
DeltaFile
+36-0Makefile.inc1
+2-4share/mk/bsd.man.mk
+38-42 files

FreeBSD/src 4acd63alib/libusb libusb10_hotplug.c

libusb: Fix netlink sysevent multicast group name

Reviewed by:    hrs
Differential Revision: https://reviews.freebsd.org/D50739
DeltaFile
+1-1lib/libusb/libusb10_hotplug.c
+1-11 files

FreeBSD/src f1830adlibexec/rtld-elf/amd64 reloc.c

rtld amd64: extend osrel check to enable tlsbase op on stable/14

This is a direct commit to stable/14.

Reported by:    Mark Millard <marklmi at yahoo.com>
Sponsored by:   The FreeBSD Foundation
DeltaFile
+5-1libexec/rtld-elf/amd64/reloc.c
+5-11 files

FreeBSD/src 0c89182sys/netinet6 nd6.c in6_var.h

netinet6: Remove ndpr_raf_ra_derived flag

This flag was introduced at 8036234c72c9361711e867cc1a0c6a7fe0babd84
to prevent the SIOCSPFXFLUSH_IN6 ioctl from removing manually-added
entries.  However, this flag did actually not work due to an
incomplete implementation making prelist_update() not handle it before
calling nd6_prelist_add().

This patch removes the flag because a prefix is derived from an RA
always has an entry in the ndpr_advrtrs member in the struct
nd_prefix.  Having a separate flag is not a good idea because it can
cause a mismatch between the flag and the ndpr_advrtrs entry.  Testing
using LIST_EMPTY() is simpler for the origial goal.

This also removes in a prefix check in the ICMPV6CTL_ND6_PRLIST sysctl
to exclude manually-added entries.  This ioctl is designed to list all
entries, and there is no relationship to SIOCSPFXFLUSH_IN6.

Differential Revision:  https://reviews.freebsd.org/D46441
DeltaFile
+3-5sys/netinet6/nd6.c
+1-3sys/netinet6/in6_var.h
+0-1sys/netinet6/nd6.h
+0-1sys/netinet6/nd6_rtr.c
+4-104 files

FreeBSD/src 7b7ba78lib/libsys clock_gettime.2 nanosleep.2, sys/kern kern_time.c kern_tc.c

Implement CLOCK_TAI

Provide a clock through clock_gettime() that returns the current TAI
time (UTC without leap seconds) as a complement to CLOCK_REALTIME. This
provides compatibility with Linux, which also provides a CLOCK_TAI since
kernel 2.6.26, and this seems to be becoming the standard way to acquire
TAI time. Unlike Linux, this code will return EINVAL if the TAI offset
(set by ntpd, ptpd, etc.) is not known since it seems pathological for
CLOCK_TAI to silently give the wrong (UTC) time if the offset is not
known as it does on Linux.

Reviewed by: imp
Differential Revision:  https://reviews.freebsd.org/D46268
DeltaFile
+31-15sys/kern/kern_time.c
+12-2lib/libsys/clock_gettime.2
+9-1sys/kern/kern_tc.c
+5-2sys/kern/kern_umtx.c
+3-1lib/libsys/nanosleep.2
+3-1sys/sys/timeffc.h
+63-227 files not shown
+77-2613 files

FreeBSD/src 4deb976libexec/rc rc.subr

rc: Disable pathname expansion when calling run_rc_command()

Variables for command-line options like $foo_flags can contain characters
that perform pathname expansions, such as '[', ']', and '*'.  They were
passed without escaping, and the matched entries in the working directory
affected the command-line options.  This change turns off the expansion
when run_rc_command() is called.

While this changes the current behavior, an invocation of a service
program should not depend on entries in the working directory.

Differential Revision:  https://reviews.freebsd.org/D45855
DeltaFile
+4-0libexec/rc/rc.subr
+4-01 files

FreeBSD/src b60053flib/libcasper/services/cap_net cap_net.c

libcasper: Fix inconsistent error codes of cap_get{addr,name}info()

The get{addr,name}info(3) API is designed to return an API-specific error
code that is independent of errno.  The cap_get{addr,name}info() functions
returned either an errno or API-specific error code inconsistently.
This change fixes this mismatch.

When the API returns an errno, the return value itself is set to
EAI_SYSTEM and errno is set depending on the actual error.  So, usually
this API is called in the following form:

    error = getnameinfo(...);
    if (error == EAI_SYSTEM)
        perror("getnameinfo");
    else if (error)
        errx(1, "getnameinfo: %s", gai_strerror(error);

If the above getnameinfo() call is replaced with cap_getnameinfo(),
it breaks the error handling.  For example, the cap_get{addr,name}info()

    [7 lines not shown]
DeltaFile
+39-16lib/libcasper/services/cap_net/cap_net.c
+39-161 files

FreeBSD/src 6501b68lib/libcasper/services/cap_net cap_net.h

libcasper: Use __VA_ARGS__ for function-like macros

cap_net.h uses "#define cap_f(chan, a) f(a)" to call the conventional
service function with the first argument of cap_f() dropped for
compatibility with the environment where the casper service is
unavailable.  However, this function-like macro does not work when the
arguments contains C99 compound literals, such as f(chan, (int[]){1,2,3}).
The following is a typical example:

    error = cap_getaddrinfo(capnet, "192.168.0.1", "100",
        &(struct addrinfo){
            .ai_family = AF_INET,
            .ai_flags = AI_NUMERICHOST
    }, &res);

Using cap_f(chan, ...) and __VA_ARGS__ in C99 seems a reasonable solution
for this problem.  While there is a workaround using parenthesis around
the compound literal like f(chan, ((int[]){1,2,3})), it is not intuitive
and the above example works when the cap_net is available and f() is

    [9 lines not shown]
DeltaFile
+9-13lib/libcasper/services/cap_net/cap_net.h
+9-131 files

FreeBSD/src 94285afshare/man/man9 cpu_machdep.9

cpu_machdep.9: update documentation for cpu_set_user_tls()

(cherry picked from commit 461afb106107f38b4af23f42f5f99470ceef0877)
DeltaFile
+10-1share/man/man9/cpu_machdep.9
+10-11 files