FreeBSD/src b5d1e0clib/clang llvm.build.mk, lib/clang/include/llvm/Config Targets.h

llvm: remove Mips target support

The Mips architecture has been removed from all supported branches now.

MFC after:      1 week
DeltaFile
+6-83lib/clang/libllvm/Makefile
+1-6share/man/man5/src.conf.5
+0-4tools/build/options/WITH_LLVM_TARGET_MIPS
+0-4tools/build/options/WITHOUT_LLVM_TARGET_MIPS
+0-4lib/clang/include/llvm/Config/Targets.h
+0-3lib/clang/llvm.build.mk
+7-1045 files not shown
+8-11711 files

FreeBSD/src b5f0e7fstand/efi/loader framebuffer.c

loader.efi: Be cautious about using GOPs

When we're searching for the EFI_GRAPHICS_OUTPUT_PROTOCOL_GUID (GOPs) to
use, skip any whose Mode or Mode->Info pointers are NULL. The spec
requires these to be non-null, however, some firmwares seem to fail to
populate the Info when, for example, a monitor is not present. Work
around these bugs by skipping any GOPs with bad pointers.

PR: 288900
Sponsored by:           Netflix
Differential Revision:  https://reviews.freebsd.org/D59830
DeltaFile
+8-1stand/efi/loader/framebuffer.c
+8-11 files

FreeBSD/src 85fb40bstand/efi/loader decompress.c

loader.efi: Use EfiLoaderData memory type for ram disks

For the images we read into the memory, use EfiLoaderData memory type
instead of EfiReservedMemoryType. The kernel handles the former properly
and won't reallocate it. While the latter isn't necessarily mapped,
which can cause ram disks to fault when loaded. memdisk_uefi.efi
used the latter type, but also registered the device as an ACPI
RAM disk, which we don't do.

Fixes: afee781523e45
Sponsored by: Netflix
DeltaFile
+8-1stand/efi/loader/decompress.c
+8-11 files

FreeBSD/src e960cb4sys/contrib/edk2/Include/Protocol LoadFile2.h TcgService.h

edk2: Import Loadfile2.h and TcgService.h from edk2-stable202502

Verbatim import of these files, with unix line endings.

Sponsored by:           Netflix
DeltaFile
+195-0sys/contrib/edk2/Include/Protocol/TcgService.h
+78-0sys/contrib/edk2/Include/Protocol/LoadFile2.h
+273-02 files

FreeBSD/src 47275d8. Makefile.in configure, admin ltmain.sh config.guess

kyua: import kyua-0.15.0-rc2

This change adds kyua kyua-0.15.0-rc2 from [upstream][1].

The kyua-0.15.0-rc2 artifact was been verified by [SHA256 checksum][3].

This contains a removal for umount(8) support as all supported OSes have
access to the u(n)?mount syscall.

More information about the release (from a high level) can be found in
the [release notes][4].

Updated via [`update_kyua.sh`][4] `update_kyua.sh 0.15.0-rc2 kyua-0.15.0`.

1: https://github.com/freebsd/kyua/releases/download/kyua-0.15.0-rc2/kyua-0.15.0-rc2.tar.gz
2: https://github.com/freebsd/kyua/releases/download/kyua-0.15.0-rc2/kyua-0.15.0-rc2.tar.gz.sha256
3: https://github.com/freebsd/kyua/blob/kyua-0.15.0-rc2/NEWS.md
4: https://codeberg.org/ngie/freebsd-powertools:shell/update_kyua.sh@10a04edb
DeltaFile
+1,490-927admin/config.sub
+947-604admin/config.guess
+601-159m4/libtool.m4
+450-280configure
+245-80admin/ltmain.sh
+93-38Makefile.in
+3,826-2,08812 files not shown
+3,977-2,27618 files

FreeBSD/src 8d94a93contrib/atf/atf-sh integration_test.sh

integration_test: backport fix from freebsd/atf

See the related merge commit for more details.

MFC after:      28 days
Obtained from:  [freebsd/atf at 2690b04c][upstream]
Fixes:          95223108 ("contrib/atf: upgrade to 0.26")

Merge commit '8fd09407c8e64fd26d095c9b00990c545577db5a'

[upstream]: https://github.com/freebsd/atf/commit/2690b04cbc608af165a58426b7275c063b779f03
DeltaFile
+1-1contrib/atf/atf-sh/integration_test.sh
+1-11 files

FreeBSD/src 8fd0940atf-sh integration_test.sh

atf-sh/integration_test: fix hang when invoked via kyua

The code in `create_test_program` called cat on top of the calling
function, resulting in code that would hang waiting for an EOF to be
sent. This was wrong. Pass the heredoc output directly to
`create_test_program` so the content is output to the test program once.

Closes: #201
Signed-off-by: Enji Cooper <ngie at FreeBSD.org>
DeltaFile
+1-1atf-sh/integration_test.sh
+1-11 files

FreeBSD/src bcc27cfsys/netinet raw_ip.c

raw ip: clear sin_port on bind(2)

Application may set sin_port to some value.  Although this value is not
used by SOCK_RAW, it breaks a check that the address is available.  A
perfect fix would be not use sockaddrs for ifaddrs, but that would be a
bigger change.

PR:                     298366
Reviewed by:            pouria, bnovkov, adrian
Differential Revision:  https://reviews.freebsd.org/D59570
Fixes:                  948ad32ae1e0811f45e1d38f26636fefed5051f0

(cherry picked from commit 465942e8cc8160b21e1a3d5e45fa3ddbb852f6db)
DeltaFile
+1-1sys/netinet/raw_ip.c
+1-11 files

FreeBSD/src 7b4bc01sys/netinet tcp_subr.c tcp_usrreq.c

tcp: fix TCPS_CLOSED state underleak in syncache_socket()

The syncache entry holds one TCPS_SYN_RECEIVED count that normally is
transferred to the the newborn tp.  Upon failure syncache_socket() shall
not use TCPSTATES_INC/TCPSTATES_DEC (see 5050df3f4aa4 why).  But when
syncache_socket() fails in_pcbconnect(), it calls tcp_discardcb() to free
resources that were just allocated by tcp_newtcpcb() and this
tcp_discardcb() would do TCPSTATES_DEC(tp->t_state).  The t_state is
TCPS_CLOSED at this point.

Make tcp_discardcb() symmetrical to tcp_newtcpcb() - not responsible for
the TCPSTATES.  Make the caller responsible for state count book keeping.

Reviewed by:            tuexen
Fixes:                  3703e1a73e0e0367c04f47f793e46495e46e647b
Differential Revision:  https://reviews.freebsd.org/D59325

(cherry picked from commit b712bb84a7a7dc229324a95170b8a77e0d9c5bec)
DeltaFile
+0-1sys/netinet/tcp_subr.c
+1-0sys/netinet/tcp_usrreq.c
+1-12 files

FreeBSD/src 7b0bd7elib/libsys recv.2

recv(2): update description of MSG_WAITALL

Remove a note about "data of a different type".  This was a bug that was
fixed in FreeBSD 15.  Instead put an exact quote from SUS that lists
allowed cases of a short read with MSG_WAITALL.  See discussion in D57511.

(cherry picked from commit e5bcf988398924568015202bf853b3a9abd3845e)
DeltaFile
+5-3lib/libsys/recv.2
+5-31 files

FreeBSD/src 8359e00sys/netgraph ng_ipfw.c

ng_ipfw: provide a tree for faster hook lookup

This should assist setups that connect a lot of nodes to ipfw: and then
distribute traffic with ipfw(4) tablearg feature.

Reviewed by:            pouria
Differential Revision:  https://reviews.freebsd.org/D58547

(cherry picked from commit d3a0bf0a79efb0a28d85d48c88d14bc5d89ab00a)
DeltaFile
+36-11sys/netgraph/ng_ipfw.c
+36-111 files

FreeBSD/src 508b182sys/dev/ichiic ig4_pci.c

ichiic: Add PCI id for Arrow Lake.

Add PCI id for Arrow Lake to attach iic driver

Reviewed by: wulf, mav
Differential Revision: https://reviews.freebsd.org/D51107

(cherry picked from commit 87994467966806ffbd1f500b510858909c736b88)
DeltaFile
+12-0sys/dev/ichiic/ig4_pci.c
+12-01 files

FreeBSD/src 5a19be1sys/dev/ichiic ig4_pci.c

ig4: Add Lunar Lake-M I2C controllers 4 and 5

Commit 851dffef532a added the Lunar Lake-M I2C controllers 0 through 3
(0xa878-0xa87b), which sit on PCI device 0x15.  The platform exposes two
further controllers at 0xa850 and 0xa851 on PCI device 0x19, reported by
Intel as I2C #4 and #5.  This mirrors the layout already handled for
Arrow Lake-U, where both the 0x777x and 0x775x ranges are listed.

On an HP OmniBook X Flip 16-as0xxx (Core Ultra 9 288V) the firmware
enables only four of the six controllers, and both HID devices sit on
the two that were missing: an ELAN2514 touchscreen on controller 4 and
a SYNA3503 touchpad on controller 5.  Neither attaches without this
change, so the machine has no working pointing device.

Like the other four, these use the Tiger Lake revision of the I2C IP;
Linux treats 0xa850/0xa851 identically to 0xa878-0xa87b in
intel-lpss-pci.c.

Tested on:      HP OmniBook X Flip 16-as0xxx (Intel Core Ultra 9 288V)

    [6 lines not shown]
DeltaFile
+4-0sys/dev/ichiic/ig4_pci.c
+4-01 files

FreeBSD/src 1fdced9sys/dev/ichiic ig4_pci.c

ig4: Add support for Lunar Lake-M I2C

this patch adds PCI IDs to the ig4(4) driver:
- Lunar Lake-M (0xa878, 0xa879, 0xa87a, 0xa87b)
These controllers use the Tiger Lake hardware revision of the I2C IP.
Adding these IDs enables support for peripherals connected to the I2C Bus.
Tested on: Intel Lunar Lake (LENOVO_MT_21QX_BU_Think_FM_ThinkPad T14s Gen 6)

Signed-off-by: Defenso-EBO <etienne.bonnand at defenso.fr>

MFC after: 2 weeks

Sponsored by: Defenso

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1995

(cherry picked from commit 851dffef532ad9611fcaf02318744c8de9f397b0)
DeltaFile
+8-0sys/dev/ichiic/ig4_pci.c
+8-01 files

FreeBSD/src 3f27c54sys/dev/ichiic ig4_pci.c

ig4: Add Lunar Lake-M I2C controllers 4 and 5

Commit 851dffef532a added the Lunar Lake-M I2C controllers 0 through 3
(0xa878-0xa87b), which sit on PCI device 0x15.  The platform exposes two
further controllers at 0xa850 and 0xa851 on PCI device 0x19, reported by
Intel as I2C #4 and #5.  This mirrors the layout already handled for
Arrow Lake-U, where both the 0x777x and 0x775x ranges are listed.

On an HP OmniBook X Flip 16-as0xxx (Core Ultra 9 288V) the firmware
enables only four of the six controllers, and both HID devices sit on
the two that were missing: an ELAN2514 touchscreen on controller 4 and
a SYNA3503 touchpad on controller 5.  Neither attaches without this
change, so the machine has no working pointing device.

Like the other four, these use the Tiger Lake revision of the I2C IP;
Linux treats 0xa850/0xa851 identically to 0xa878-0xa87b in
intel-lpss-pci.c.

Tested on:      HP OmniBook X Flip 16-as0xxx (Intel Core Ultra 9 288V)

    [6 lines not shown]
DeltaFile
+4-0sys/dev/ichiic/ig4_pci.c
+4-01 files

FreeBSD/src c4d21f6sys/dev/ichiic ig4_pci.c

ig4: Add support for Lunar Lake-M I2C

this patch adds PCI IDs to the ig4(4) driver:
- Lunar Lake-M (0xa878, 0xa879, 0xa87a, 0xa87b)
These controllers use the Tiger Lake hardware revision of the I2C IP.
Adding these IDs enables support for peripherals connected to the I2C Bus.
Tested on: Intel Lunar Lake (LENOVO_MT_21QX_BU_Think_FM_ThinkPad T14s Gen 6)

Signed-off-by: Defenso-EBO <etienne.bonnand at defenso.fr>

MFC after: 2 weeks

Sponsored by: Defenso

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1995

(cherry picked from commit 851dffef532ad9611fcaf02318744c8de9f397b0)
DeltaFile
+8-0sys/dev/ichiic/ig4_pci.c
+8-01 files

FreeBSD/src 784f570usr.bin/split split.1

split.1: grammar

PR:             294757
Reported by:    Ulrich Eduard
MFC after:      1 week

(cherry picked from commit c0c7d1e1af4e42deb9c5a95c735602100c3cc1f2)
DeltaFile
+1-1usr.bin/split/split.1
+1-11 files

FreeBSD/src c5cc084sbin/ipfw ipfw.8

ipfw.8: clarify a difference between reset and reset6 actions

PR:             298348
MFC after:      2 weeks

(cherry picked from commit 009940e3d4d398f0cba8b689d284bd8585e2ad5a)
DeltaFile
+3-3sbin/ipfw/ipfw.8
+3-31 files

FreeBSD/src 1511b29sbin/ipfw ipfw.8

ipfw.8: more grammar fixes

(cherry picked from commit b31db8d8de6785804f6b552bc9d7d1960a47eea5)
DeltaFile
+3-3sbin/ipfw/ipfw.8
+3-31 files

FreeBSD/src f38dfbfsbin/ipfw ipfw.8

ipfw.8: whitespace police

(cherry picked from commit b891252f209bf22938c9492496d166da96fcba1f)
DeltaFile
+1-1sbin/ipfw/ipfw.8
+1-11 files

FreeBSD/src fd3ded8sbin/ipfw ipfw.8

ipfw.8: grammar

(cherry picked from commit 055a726ca6324eead24df4177effd9c69755f386)
DeltaFile
+8-8sbin/ipfw/ipfw.8
+8-81 files

FreeBSD/src 10a3562sys/kern kern_jail.c

jail: set default root directory for a jail to its parent's root.

All default jail parameter values are an empty or otherwise standard
value, or are copied the jail's parent.  A notable exception is the
root directory, which is instead copied from the creating process's
jail.  Fix that to be in line with everything else.

This change affects only the default when no path is specified; if
a path of "/" is explicitly given, that will still be the creating
process's root directory.
DeltaFile
+1-1sys/kern/kern_jail.c
+1-11 files

FreeBSD/src 0bd6348sys/fs/fuse fuse_vnops.c fuse_ipc.c, tests/sys/fs/fusefs mockfs.hh mockfs.cc

fusefs: fix a deadlock caused by daemons that never initialize

If a daemon never responds to FUSE_INIT, but some process attempts to
access the mountpoint, and a different process (possibly the daemon
itself) attempts to unmount, a deadlock would result.

Fix this bug by blocking any thread that enters fuse_vfsop_root until
the daemon responds to FUSE_INIT or it times out.  That will block any
thread attempting to lookup a path in the fuse mountpoint, before it
even gets to fuse VOPs.  Remove less thorough initialization checks in
fuse_ticket_fetch and fuse_vnop_access that are no longer necessary.
And add a test case.

PR:             287431
MFC after:      2 weeks
Sponsored by:   ConnectWise
Reviewed by:    js
Differential Revision: https://reviews.freebsd.org/D59737
DeltaFile
+75-11tests/sys/fs/fusefs/pre-init.cc
+31-0sys/fs/fuse/fuse_vfsops.c
+1-23sys/fs/fuse/fuse_ipc.c
+0-14sys/fs/fuse/fuse_vnops.c
+7-1tests/sys/fs/fusefs/mockfs.cc
+1-1tests/sys/fs/fusefs/mockfs.hh
+115-503 files not shown
+118-529 files

FreeBSD/src ddaa674usr.sbin/sesutil sesutil.8

sesutil.8: Concise document description, tag SPDX

While here, fix two trivial typos.

MFC after:      3 days
DeltaFile
+8-5usr.sbin/sesutil/sesutil.8
+8-51 files

FreeBSD/src c934939usr.sbin/apm apm.8

apm.8: Don't claim that zzz(8) invokes apm(8)

Fixes:          aba599a6cc55 ("zzz: Rewrite to use new power device")
DeltaFile
+1-3usr.sbin/apm/apm.8
+1-31 files

FreeBSD/src 9cfc15b. ObsoleteFiles.inc

ObsoleteFiles.inc: Add another entry for perfmon.4.gz

This was installed in two different places.
DeltaFile
+1-0ObsoleteFiles.inc
+1-01 files

FreeBSD/src e702b1asys/conf files.i386 files, sys/i386/conf NOTES

sys: Remove orphaned build glue for le(4)

Fixes:          7a323f873662 ("sys: Retire le(4)")
DeltaFile
+0-5sys/i386/conf/NOTES
+0-4sys/conf/files
+0-1sys/conf/files.i386
+0-103 files

FreeBSD/src 600c16csys/x86/conf NOTES

x86/NOTES: Drop stale comments about si(4)

This driver was removed several years ago.

Fixes:          c1c9764296e5 ("Remove the si(4) driver and sicontrol(8) for Specialix serial cards.")
DeltaFile
+0-7sys/x86/conf/NOTES
+0-71 files

FreeBSD/src df7b905sys/modules/dtrace Makefile Makefile.inc

dtrace: Remove bogus Makefile.inc

This was added in the initial import of dtrace and overrides the
normal load/unload targets with a custom target that loads a hardcoded
set of modules.  Over time, the set of modules has not been updated
and is now incomplete.  It's also not really useful compared to the
default implementation of these targets used for loading or unloading
an individual module being actively developed.

This functionality is also available via dtraceall.ko which is how
users commonly load the full suite of dtrace modules.

Reviewed by:    imp, markj
Differential Revision:  https://reviews.freebsd.org/D59821
DeltaFile
+0-23sys/modules/dtrace/Makefile.inc
+0-2sys/modules/dtrace/Makefile
+0-252 files

FreeBSD/src 72e3910lib/libsys stat.2

stat(2): Document st_bsdflags and SFBSD_NAMEDATTR

Those are FreeBSD-specific member and flag still better to be
documented.

Reviewed by:    kib
Sponsored by:   Sippy Software, Inc.
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D59915
DeltaFile
+19-2lib/libsys/stat.2
+19-21 files