FreeBSD/src 9a4bb77 — sys/dev/amdsmu amdsmu.c amdsmu.h

amdsmu: Use devclass name instead of module name

The diagnostics array contained expected modules to be loaded but the
checking logic checked for if a devclass of that name existed instead.

Have the diagnostics array contain the devclass instead as well as the
module to load for the hint string.

Furthermore, check tha the number of devices is greater than 0 so that
leftover devclasses from unloaded modules don't skip the hint.

Reported by:    emaste
Reviewed by:    emaste
Fixes:  758578370f6b ("amdsmu: Hints on what to do if IP block blocking S0i3")
Sponsored by:   The FreeBSD Foundation
Pull Request:   https://ron-dev.freebsd.org/FreeBSD/src/pulls/70
DeltaFile
+11-9sys/dev/amdsmu/amdsmu.h
+8-5sys/dev/amdsmu/amdsmu.c
+19-142 files

FreeBSD/src 509d65f — sys/riscv/riscv locore.S

riscv: Map the DTB when it is outside the kernel's 1GB region

When the kernel is started directly by SBI firmware, locore.S maps only
the 1GB region that contains the kernel, and initriscv() reads the DTB
through that mapping at the physical address passed in a1.  If the
firmware put the DTB in another 1GB region, as QEMU does with more than
1GB of RAM, fake_preload_metadata() faults before the console is up and
the kernel hangs.

Also map the 1GB region that contains the DTB.

This fixes direct kernel booting without FreeBSD loader(8).

PR:             299088
Reviewed by:    mhorne
Fixes:          bfb857546984 ("riscv: Construct an identity map in locore.S")
MFC after:      1 week
Signed-off-by:  Rick Richard <rick at sloservers.com>
DeltaFile
+15-3sys/riscv/riscv/locore.S
+15-31 files

FreeBSD/src b86f3d6 — sys/dev/amdsmu amdsmu.h

amdsmu: Update diagnostics comments for Krackan Point

Krackan Point has the same quirks as the Phoenix SMU it would seem.

Reported by:    emaste
Sponsored by:   The FreeBSD Foundation
DeltaFile
+6-3sys/dev/amdsmu/amdsmu.h
+6-31 files

FreeBSD/src 7ea9ac9 — lib/libc/stdio printf.3

libc: Add a man page caveat about the `w` modifier

In-tree Clang is unaware of the N2680 fixed-width modifier `w` and emits
a warning when used.

PR:             299631
Reviewed by:    imp
Differential Revision: https://reviews.freebsd.org/D60939
DeltaFile
+6-0lib/libc/stdio/printf.3
+6-01 files

FreeBSD/src ce9de51 — sys/dev/amdsmu amdsmu.c

amdsmu: Print detailed stats for KRACKAN_POINT

Testing on a Dell AMD Ryzen AI 5 PRO 435 laptop shows that the same
diagnostic information is valid.

Reviewed by:    obiwac
Sponsored by:   The FreeBSD Foundation
DeltaFile
+5-1sys/dev/amdsmu/amdsmu.c
+5-11 files

FreeBSD/src a8dfdb7 — . configure.ac, libarchive archive_read.c archive_read_support_filter_uu.c

Update vendor/libarchive to 3.8.10

ChangeLog:
https://github.com/libarchive/libarchive/compare/v3.8.9...v3.8.10

Obtained from:          libarchive
Libarcive commit:       0c48412be2d94afe1859a807ea7896a18d8900bd
DeltaFile
+1,580-0libarchive/test/test_read_format_7zip_deflate_arm64_large.7z.uu
+556-132libarchive/archive_read_support_format_7zip.c
+320-280configure.ac
+521-3libarchive/test/test_read_format_7zip.c
+186-324libarchive/archive_read_support_filter_uu.c
+269-234libarchive/archive_read.c
+3,432-973311 files not shown
+14,996-3,465317 files

FreeBSD/src ae99c82 — usr.bin/locate/locate locate.1

locate.1: clarify bytes vs. characters

The database stores bytes, not characters. Remove the historical
note about 7-bit storage. Also document that -i ignores case only
for ASCII letters.

Reviewed by: ziaee
MFC after: 3 days

(cherry picked from commit a03b051f238eb78cfccbe834b0cc206e66d566e5)
DeltaFile
+12-9usr.bin/locate/locate/locate.1
+12-91 files

FreeBSD/src 4b0fb44 — usr.bin/find find.1

find.1: rewrite the -s flag section for clarity

Restructure the description of -s flag:
1. what the option does
2. why it is useful (deterministic order, streaming output)
3. how its results can differ from `find | sort'

Reviewed by: ziaee
MFC after: 3 days

(cherry picked from commit ad0f86694157c998fec500e9a553550976cbc100)
DeltaFile
+31-10usr.bin/find/find.1
+31-101 files

FreeBSD/src 50bc1b8 — usr.bin/find find.1

find.1: fix rendering of find -s example

The period here is part of the literal string in the example.  Adding a
space caused the example to be quoted wrongly.  Instead, a trailing
zero-width space keeps the linter mandoc -T happy.

Reviewed by:    ziaee
Differential Revision:  https://reviews.freebsd.org/D59353

(cherry picked from commit 3581b6db62b1a2146014b3196f18bde3fc33010d)
DeltaFile
+2-2usr.bin/find/find.1
+2-21 files

FreeBSD/src 13d222b — share/man/man3 pthread_signals_block_np.3 stdbit.3

manpages: Fix unusual Xr order
DeltaFile
+14-14share/man/man3/stdbit.3
+2-2share/man/man3/pthread_signals_block_np.3
+16-162 files

FreeBSD/src 0294668 — share/man/man9 hashinit.9 hashalloc.9

manpages: Fix unusual Xr order
DeltaFile
+2-2share/man/man9/hashalloc.9
+2-2share/man/man9/exterror.9
+1-1share/man/man9/hashinit.9
+5-53 files

FreeBSD/src fb4f233 — share/man/man7 environ.7 freebsd-base.7

manpages: Fix unusual Xr order
DeltaFile
+2-2share/man/man7/freebsd-base.7
+1-1share/man/man7/environ.7
+3-32 files

FreeBSD/src 2ba2623 — share/man/man4 mac.4 dtrace_vfs.4

manpages: Fix unusual Xr order
DeltaFile
+2-2share/man/man4/u2f.4
+1-1share/man/man4/mac.4
+1-1share/man/man4/dtrace_vfs.4
+4-43 files

FreeBSD/src f5b6c8f — lib/libkvm kvm_open.3, lib/libsys socket.2

manpages: Fix unusual Xr order
DeltaFile
+2-2lib/libkvm/kvm_open.3
+1-1lib/libsys/socket.2
+3-32 files

FreeBSD/src 3208a17 — lib/msun/man fmaximum.3 fegetround.3

manpages: Fix unusual Xr order
DeltaFile
+2-2lib/msun/man/asinpi.3
+2-2lib/msun/man/acospi.3
+1-1lib/msun/man/fmaximum.3
+1-1lib/msun/man/fegetround.3
+1-1lib/msun/man/fegetmode.3
+7-75 files

FreeBSD/src afe20e8 — lib/libc/gen uexterror.3 uexterr_gettext.3, lib/libc/stdlib/malloc free_sized.3

manpages: Fix unusual Xr order
DeltaFile
+5-5lib/libc/stdlib/malloc/free_sized.3
+1-1lib/libc/gen/uexterror.3
+1-1lib/libc/gen/uexterr_gettext.3
+7-73 files

FreeBSD/src 4560b19 — lib/libc/stdbit stdc_trailing_zeros.3 stdc_trailing_ones.3

manpages: Fix unusual Xr order
DeltaFile
+2-2lib/libc/stdbit/stdc_trailing_zeros.3
+2-2lib/libc/stdbit/stdc_trailing_ones.3
+2-2lib/libc/stdbit/stdc_leading_zeros.3
+2-2lib/libc/stdbit/stdc_leading_ones.3
+2-2lib/libc/stdbit/stdc_first_trailing_zero.3
+2-2lib/libc/stdbit/stdc_first_trailing_one.3
+12-122 files not shown
+16-168 files

FreeBSD/src c1bc473 — lib/libsys pdfork.2

pdfork.2: improve markup

(cherry picked from commit cf63e3f3cd8e37a84bb80c9944e5a8e004a58286)
DeltaFile
+1-1lib/libsys/pdfork.2
+1-11 files

FreeBSD/src 7787316 — sys/amd64/linux linux_sysvec.c, sys/amd64/linux32 linux32_sysvec.c

sys: centralize SV_* flags definitions for ELF Linux ABIs

(cherry picked from commit 8dfa23d81f5e0969ac31c34279201f9286358e44)
DeltaFile
+1-3sys/i386/linux/linux_sysvec.c
+1-3sys/amd64/linux32/linux32_sysvec.c
+1-2sys/arm64/linux/linux_sysvec.c
+1-2sys/amd64/linux/linux_sysvec.c
+2-0sys/sys/sysent.h
+6-105 files

FreeBSD/src e29de8c — sys/amd64/amd64 elf_machdep.c, sys/arm/arm elf_machdep.c

sys: centralize SV_* flags definitions for several FreeBSD ABIs

(cherry picked from commit f69d974bf6d2f7ccaa3e6a5f9609cfca0d66ec8d)
DeltaFile
+2-6sys/amd64/amd64/elf_machdep.c
+2-4sys/powerpc/powerpc/elf64_machdep.c
+1-3sys/compat/ia32/ia32_sysvec.c
+1-3sys/arm/arm/elf_machdep.c
+1-2sys/i386/i386/elf_machdep.c
+1-2sys/arm64/arm64/elf_machdep.c
+8-203 files not shown
+13-249 files

FreeBSD/src 15f2dc6 — sys/sys sysent.h

sys/sysent.h: align SV_* flags values, provide full 32bit

(cherry picked from commit dca0b0ad8bc7df6119b04d1b766289406e3274a3)
DeltaFile
+13-13sys/sys/sysent.h
+13-131 files

FreeBSD/src 9dcc205 — sys/amd64/linux linux_sysvec.c, sys/amd64/linux32 linux32_sysvec.c

devfs: make persistent controlling terminal an ABI property

(cherry picked from commit e8923c7346a882418352683f72e7c4f8e68d6907)
DeltaFile
+7-1sys/fs/devfs/devfs_vnops.c
+3-2sys/i386/linux/linux_sysvec.c
+2-1sys/amd64/linux32/linux32_sysvec.c
+1-1sys/arm64/linux/linux_sysvec.c
+1-1sys/amd64/linux/linux_sysvec.c
+1-0sys/sys/sysent.h
+15-66 files

FreeBSD/src fb97b4f — share/man/man4 termios.4

termios.4: clarify the behavior on the last close of controlling terminal

(cherry picked from commit 44961edac85505ddd7d6670b8e0bfba9cbb7c70b)
DeltaFile
+6-5share/man/man4/termios.4
+6-51 files

FreeBSD/src 8328ca3 — sys/compat/linux linux_ptrace.c

linux: Implement PTRACE_GETREGSET NT_PRFPREG and NT_X86_XSTATE

Implement NT_PRFPREG and NT_X86_XSTATE for PTRACE_GETREGSET on amd64.
Chrome's crashpad handler uses these to collect floating-point and
extended CPU register state for crash dumps.

Other architectures retain the previous EINVAL stub behavior.

Signed-off-by:  Ricardo Branco <rbranco at suse.de>
PR:             289285
Reviewed by:    kib
Pull-Request:   https://github.com/freebsd/freebsd-src/pull/2165

(cherry picked from commit c515e6040614434a9262ee8b5ac54b81476ec7ff)
DeltaFile
+85-6sys/compat/linux/linux_ptrace.c
+85-61 files

FreeBSD/src d8f8031 — sys/amd64/linux linux.h linux_machdep.c

linux: Add linux_pt_fpregset and bsd_to_linux_fpregset() for amd64

Add struct linux_pt_fpregset, the amd64 Linux NT_PRFPREG payload,
corresponding to user_i387_struct in Linux. The struct describes
the 512-byte FXSAVE area as exposed by PTRACE_GETREGSET.

Add bsd_to_linux_fpregset() to translate from FreeBSD's struct fpreg
to struct linux_pt_fpregset. Fields are extracted from the fpr_env[]
array which stores the FXSAVE environment packed as four 64-bit words.
The FP and XMM register banks are bulk-copied as opaque byte arrays.

Signed-off-by:  Ricardo Branco <rbranco at suse.de>
Reviewed by:    kib
Pull-Request:   https://github.com/freebsd/freebsd-src/pull/2165

(cherry picked from commit b84d31ee74535a0026ff83f2a34c07b7557f9785)
DeltaFile
+20-0sys/amd64/linux/linux_machdep.c
+18-0sys/amd64/linux/linux.h
+38-02 files

FreeBSD/src 29b79c5 — sys/amd64/linux linux.h, sys/amd64/linux32 linux.h

linux: Ignore sigaction(2) flags SA_UNSUPPORTED and SA_EXPOSE_TAGBITS

SA_UNSUPPORTED was introduced in Linux 5.11 to probe support
for other flags such as SA_EXPOSE_TAGBITS, introduced
at the same time. Ignore both.

Signed-off-by:  Ricardo Branco <rbranco at suse.de>
PR:             289285
Reviewed by:    pouria, kib
Pull-Request:   https://github.com/freebsd/freebsd-src/pull/2163

(cherry picked from commit fdea83a5f63b881ade91c6cc9dfbf173137512c5)
DeltaFile
+8-0sys/compat/linux/linux_signal.c
+2-0sys/i386/linux/linux.h
+2-0sys/arm64/linux/linux.h
+2-0sys/amd64/linux32/linux.h
+2-0sys/amd64/linux/linux.h
+16-05 files

FreeBSD/src 6e8786b — sys/amd64/amd64 pmap.c, sys/arm64/arm64 pmap.c

amd64/arm64 pmap: consistently clear PGA_WRITEABLE

We don't consistently clear PGA_WRITEABLE on fictitious, managed pages.
Some functions do, e.g., pmap_remove_all(), but several do not.  At
worst, this is just a pessimization, but there is no good reason to be
inconsistent.  Clear PGA_WRITEABLE in those that previously did not by
introducing (and using) the helper function pmap_page_is_mapped_locked()
that implements the correct test.

(cherry picked from commit 37321270b630d891e48851f81dd6d077ebd6b635)
DeltaFile
+28-36sys/arm64/arm64/pmap.c
+25-28sys/amd64/amd64/pmap.c
+53-642 files

FreeBSD/src 91d8163 — libexec/rtld-elf rtld.c

rtld: fix leak in get_program_var_addr() on the error path

Fixes:  1e370f038778 ("rtld: stop using unbound alloca()")
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
DeltaFile
+3-1libexec/rtld-elf/rtld.c
+3-11 files

FreeBSD/src 175595b — libexec/rtld-elf rtld.c

dl_iterate_phdr(3): do not return garbage for objects not using TLS

For objects without a TLS segment, tlsindex is zero. tls_get_addr_slow()
then reads dtv_slots[-1], which is dtv_size, and returns it as the TLS
address. Set dlpi_tls_data to NULL for such objects instead.

Fixes:  d36d68161517 ("rtld dl_iterate_phdr(): dlpi_tls_data is wrong")
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
DeltaFile
+6-2libexec/rtld-elf/rtld.c
+6-21 files

FreeBSD/src e2979f4 — libexec/rtld-elf rtld.c

rtld: some cosmetics in donelist_init()

Add a missing word in the comment.
Make each assignment a separate statement.
Fix formatting.

Fixes:  1e370f038778 ("rtld: stop using unbound alloca()")
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
DeltaFile
+5-5libexec/rtld-elf/rtld.c
+5-51 files