FreeBSD/src e19230d. Makefile.inc1

Makefile.inc1: Fix the libbnxtre dependency target

Reported by:    Jenkins
Fixes:          73e8fe62466a ("libpcap: Fix dependency definitions for libpcap")
DeltaFile
+1-1Makefile.inc1
+1-11 files

FreeBSD/src 812bcb7. .mailmap

mailmap: add my Raptor Engineering address

Approved by: jhibbits(mentor)
DeltaFile
+1-0.mailmap
+1-01 files

FreeBSD/src 84fd37fshare/misc committers-src.dot

committers-src: add myself (tpearson@)

Add myself (tpearson@) as a new src committer with jhibbits@ as my mentor.

Approved by: jhibbits(mentor)
DeltaFile
+2-0share/misc/committers-src.dot
+2-01 files

FreeBSD/src 73e8fe6. Makefile.inc1, lib/libpcap Makefile

libpcap: Fix dependency definitions for libpcap

Commit 35dd53a9e132 ("librdmacm/libibverbs: Statically bound libbnxtre.so.1 to rping")
causes a build failure, since src.libnames.mk declares a depencency on
libbnxtre.so, but the libpcap Makefile and prebuild lib dependencies
were not updated accordingly.  Fix the declarations.

Fixes:  35dd53a9e132 ("librdmacm/libibverbs: Statically bound libbnxtre.so.1 to rping")
Reviewed by:    ssaxena
Differential Revision:  https://reviews.freebsd.org/D54048
DeltaFile
+2-0Makefile.inc1
+1-0lib/libpcap/Makefile
+3-02 files

FreeBSD/src 962ad7clib/ofed Makefile

ofed: Define SUBDIR_DEPEND_libbnxtre

Fixes:  b42fda6be3fd ("share/mk: Include libbnxtre entry in bsd.libnames.mk")
DeltaFile
+1-0lib/ofed/Makefile
+1-01 files

FreeBSD/src 74f7e91sys/netinet ip_divert.c

divert: Use CK_SLISTs for the divcb hash table

The hash table is accessed in ip_divert_packet(), and there the accesses
are synchronized only by the net epoch, so plain SLIST is not safe.

Reviewed by:    ae
MFC after:      1 week
Sponsored by:   OPNsense
Sponsored by:   Klara, Inc.
Differential Revision:  https://reviews.freebsd.org/D54011
DeltaFile
+9-8sys/netinet/ip_divert.c
+9-81 files

FreeBSD/src 20a0a2fsys/riscv/riscv pmap.c

riscv/pmap: Handle superpages in pmap_extract_and_hold()

Without this change, vm_fault_quick_hold_pages() falls back to the slow
fault handler when it encounters a superpage mapping.

Reviewed by:    alc, kib
Reported and tested by: br
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D54022
DeltaFile
+16-6sys/riscv/riscv/pmap.c
+16-61 files

FreeBSD/src 35dd53ashare/mk src.libnames.mk, usr.bin/ofed/libibverbs Makefile.inc

librdmacm/libibverbs: Statically bound libbnxtre.so.1 to rping

By default ibv_devices and rping are not statically bound to
libbnxtre.so.1. i.e. 'ldd /usr/bin/rping' command doesn't list
'libbnxtre.so.1' entry. So, statically bound the libbnxtre.so.1
library to rping & ibv_devices utils.

MFC-After:      3 days
Reviewed-by:    sumit.saxena at broadcom.com
Differential-Revision: https://reviews.freebsd.org/D49604
DeltaFile
+5-2share/mk/src.libnames.mk
+1-1usr.bin/ofed/libibverbs/Makefile.inc
+1-1usr.bin/ofed/librdmacm/Makefile.inc
+7-43 files

FreeBSD/src b42fda6lib/ofed Makefile, share/mk bsd.libnames.mk

share/mk: Include libbnxtre entry in bsd.libnames.mk

Add libbnxtre entry in bsd.libnames.mk file.

MFC-After:      3 days
Reviewed-by:    sumit.saxena at broadcom.com
Differential-Revision: https://reviews.freebsd.org/D49603
DeltaFile
+1-0share/mk/bsd.libnames.mk
+1-0lib/ofed/Makefile
+2-02 files

FreeBSD/src 5242bcflibexec/rtld-elf rtld.c

rtld-elf: Mark LD_SHOW_AUXV insecure

This prevents dumping the memory layout of setugid processes.

MFC after:      3 days
Reviewed by:    kib
Differential Revision:  https://reviews.freebsd.org/D54033
DeltaFile
+1-1libexec/rtld-elf/rtld.c
+1-11 files

FreeBSD/src 62e1227sys/arm64/arm64 gicv3_its.c gic_v3_fdt.c

ARM GICv3: Add support for non-coherent and/or bus address range limited DMA.

Due to an implementation bug, the GICv3 and ITS master ports may be connected
to a non-coherent bus. The new DT resolves this issue by marking these ports
with the "dma-nocoherent" attribute. The older DT does not have this attribute,
so we must match the affected SoC.
Additionally, the RK356x family has GIC master ports on a 32-bit bus.
Therefore, we must limit the address range for all tables and command buffers
allocated for it. In this case, the DT does not have an attribute for this
case, so the quirk should only be applied by SoC matching.

MFC after:      4 weeks
Reviewed by:    imp
Differential Revision:  https://reviews.freebsd.org/D47488
DeltaFile
+133-23sys/arm64/arm64/gicv3_its.c
+14-1sys/arm64/arm64/gic_v3_fdt.c
+6-0sys/arm64/arm64/gic_v3_var.h
+4-0sys/arm64/arm64/gic_v3.c
+157-244 files

FreeBSD/src 3e7d336sys/conf files.arm64

arm64: Add missing dtrace_isa.c

MFC after:      1 week
DeltaFile
+1-0sys/conf/files.arm64
+1-01 files

FreeBSD/src d14a985sys/dev/ofw ofw_bus_subr.c ofw_bus_subr.h

ofw: Add ofw_bus_is_machine_compat().

We need a quick way to identify a given machine (SoC), mainly when
implementing quirks for a given SoC.

MFC after:      2 weeks
Reviwed by:     imp
Differential Revision:  https://reviews.freebsd.org/D53992
DeltaFile
+9-0sys/dev/ofw/ofw_bus_subr.c
+3-0sys/dev/ofw/ofw_bus_subr.h
+12-02 files

FreeBSD/src ef8a0efsys/dev/cpufreq cpufreq_dt.c

ofw: Fix 64-bit arithmetic in cpufreq_dt.c.

MFC after: 3 weeks
DeltaFile
+1-1sys/dev/cpufreq/cpufreq_dt.c
+1-11 files

FreeBSD/src b033e36sys/arm/arm debug_monitor.c, sys/arm/include cpu.h

armv7: Tweak some armv6 removals

Fixes: 42421307b115 (sys: remove armv6/6.1 support from debug monitor)
Suggested by:   jhb
Sponsored by:   Netflix
DeltaFile
+2-0sys/arm/arm/debug_monitor.c
+0-1sys/arm/include/cpu.h
+2-12 files

FreeBSD/src 7b71f57sys/netinet6 udp6_usrreq.c route6.c

netinet: Remove left-over sys/cdefs.h

These were for $FreeBSD$ that was removed a while ago, but these
includes didn't get swept up in that. Remove them all now.

Sponsored by:           Netflix
MFC After:              2 weeks
DeltaFile
+0-1sys/netinet6/udp6_usrreq.c
+0-1sys/netinet6/route6.c
+0-1sys/netinet6/nd6_rtr.c
+0-1sys/netinet6/nd6_nbr.c
+0-1sys/netinet6/nd6.c
+0-1sys/netinet6/mld6.c
+0-670 files not shown
+0-7676 files

FreeBSD/src 6183477share/man/man9 kqueue.9

kqueue(9): document f_copy

f_copy controls whether and how a knote is inherited by the child
process.

Sponsored by:           Netflix
Reviewed by:            kib
Differential Revision:  https://reviews.freebsd.org/D53845
DeltaFile
+13-1share/man/man9/kqueue.9
+13-11 files

FreeBSD/src 0e60cb8sys/dev/ufshci ufshci_pci.c

ufshci: Add a Auto Hibernate quirk to Intel Alder Lake-N

Alder Lake-N supports Auto Hibernate, but it does not work.

Reviewed by:            imp (mentor)
Sponsored by:           Samsung Electronics
Differential Revision:  https://reviews.freebsd.org/D54006
DeltaFile
+2-1sys/dev/ufshci/ufshci_pci.c
+2-11 files

FreeBSD/src db8b064sys/dev/ufshci ufshci_sysctl.c ufshci_dev.c

ufshci: Support UIC Auto Hibernation

Automatically transition the UniPro link to Hibernate when it is idle
for the duration configured by the Auto-Hibernate Idle Timer (AHIT).
This reduces link power while the device is inactive.

Reviewed by:            imp (mentor)
Sponsored by:           Samsung Electronics
Differential Revision:  https://reviews.freebsd.org/D54004
DeltaFile
+28-0sys/dev/ufshci/ufshci_sysctl.c
+27-0sys/dev/ufshci/ufshci_dev.c
+9-0sys/dev/ufshci/ufshci_private.h
+3-2sys/dev/ufshci/ufshci_uic_cmd.c
+4-0sys/dev/ufshci/ufshci_ctrlr.c
+2-1sys/dev/ufshci/ufshci_pci.c
+73-36 files

FreeBSD/src bec77e3sys/dev/ufshci ufshci_uic_cmd.c ufshci_dev.c

ufshci: Support UIC hibernation enter/exit

Add helpers to issue DME_HIBERNATE_ENTER/DME_HIBERNATE_EXIT and
call them during suspend/resume.

Reviewed by:            imp (mentor)
Sponsored by:           Samsung Electronics
Differential Revision:  https://reviews.freebsd.org/D54003
DeltaFile
+76-1sys/dev/ufshci/ufshci_uic_cmd.c
+74-3sys/dev/ufshci/ufshci_dev.c
+27-6sys/dev/ufshci/ufshci_private.h
+19-3sys/dev/ufshci/ufshci_ctrlr.c
+196-134 files

FreeBSD/src 3a99f31sys/dev/ufshci ufshci_ctrlr.c ufshci_private.h

ufshci: Support suspend/resume

Handle system power events and issue START STOP UNIT (SSU) to the
UFS Device WLUN (0x50).

Reviewed by:            imp (mentor)
Sponsored by:           Samsung Electronics
Differential Revision:  https://reviews.freebsd.org/D54002
DeltaFile
+50-0sys/dev/ufshci/ufshci_ctrlr.c
+34-1sys/dev/ufshci/ufshci_private.h
+21-2sys/dev/ufshci/ufshci_pci.c
+19-0sys/dev/ufshci/ufshci_dev.c
+6-1sys/dev/ufshci/ufshci_sim.c
+2-1sys/dev/ufshci/ufshci_req_queue.c
+132-51 files not shown
+135-57 files

FreeBSD/src 02a810dlib/libc/stdlib strfmon.c, lib/libc/tests/stdlib strfmon_test.c

strfmon: Fix negative sign handling for C locale

If the locale's positive_sign and negative_sign values would both be
returned by localeconv() as empty strings, strfmon() shall behave as if
the negative_sign value was the string "-".

This occurs with the C locale.  The implementation previously assigned
"0" to sign_posn (parentheses around the entire string); now it assigns
it to "1" (sign before the string) when it is undefined (CHAR_MAX).

Austin Group Defect 1199[1] is applied, changing the requirements for
the '+' and '(' flags.

[1]: https://www.austingroupbugs.net/view.php?id=1199

Reviewed by:    kib
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D53913

(cherry picked from commit cf85e7034ad5640b18a3b68d6b291b7bf89bfc80)
DeltaFile
+3-3lib/libc/tests/stdlib/strfmon_test.c
+1-1lib/libc/stdlib/strfmon.c
+4-42 files

FreeBSD/src 6b0e995lib/libc/stdlib strfmon.3 strfmon.c, lib/libc/tests/stdlib strfmon_test.c

strfmon: EINVAL if the '+' flag and both signs are empty

According to the Open Group Base Specifications Issue 8[1], strfmon(3)
should return EINVAL when the '+' flag was included in a conversion
specification and the locale's positive_sign and negative_sign values
would both be returned by localeconv(3) as empty strings.

Austin Group Defect 1199[2] is applied, adding the [EINVAL] error.

[1]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/strfmon.html
[2]: https://www.austingroupbugs.net/view.php?id=1199

Reviewed by:    kib
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D53912

(cherry picked from commit 1fd018972a18b682521bb8f004dfd162327e5db2)
DeltaFile
+11-1lib/libc/stdlib/strfmon.3
+4-4lib/libc/tests/stdlib/strfmon_test.c
+3-1lib/libc/stdlib/strfmon.c
+18-63 files

FreeBSD/src 33189f8lib/libc/tests/stdlib strfmon_test.c

strfmon: Add tests for Austin Group Defect 1199

Add tests for The Open Group Base Specifications Issue 8[1], Austin
Group Defect 1199[2].

Items marked with XXX represent an invalid output.  These items will be
fixed in subsequent commits.

Notice that an existing test is now considered invalid.

Our locale definitions do not include int_p_sep_by_space nor
int_n_sep_by_space[3].  Those will be addressed in a subsequent commit.
However, the CLDR project defines them as "0", which causes the output
to appear as "USD123.45".  If our locale definitions were to set the
international {n,p}_sep_by_space to "1", the output would display as the
expected "USD 123.45".

While here, use the SPDX license identifier and add my name to the
file.

    [10 lines not shown]
DeltaFile
+57-23lib/libc/tests/stdlib/strfmon_test.c
+57-231 files

FreeBSD/src 6cccf4dlib/libc/stdlib strfmon.c

strfmon: Fix typo s/poistion/position/

MFC after:      1 week

(cherry picked from commit 91e7f19ec4056587a85c1461a4f34a6d5d4b7b52)
DeltaFile
+1-1lib/libc/stdlib/strfmon.c
+1-11 files

FreeBSD/src 1869d60lib/libc/stdlib strfmon.c, lib/libc/tests/stdlib strfmon_test.c

strfmon: Fix negative sign handling for C locale

If the locale's positive_sign and negative_sign values would both be
returned by localeconv() as empty strings, strfmon() shall behave as if
the negative_sign value was the string "-".

This occurs with the C locale.  The implementation previously assigned
"0" to sign_posn (parentheses around the entire string); now it assigns
it to "1" (sign before the string) when it is undefined (CHAR_MAX).

Austin Group Defect 1199[1] is applied, changing the requirements for
the '+' and '(' flags.

[1]: https://www.austingroupbugs.net/view.php?id=1199

Reviewed by:    kib
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D53913

(cherry picked from commit cf85e7034ad5640b18a3b68d6b291b7bf89bfc80)
DeltaFile
+3-3lib/libc/tests/stdlib/strfmon_test.c
+1-1lib/libc/stdlib/strfmon.c
+4-42 files

FreeBSD/src 8dc8e30lib/libc/stdlib strfmon.3 strfmon.c, lib/libc/tests/stdlib strfmon_test.c

strfmon: EINVAL if the '+' flag and both signs are empty

According to the Open Group Base Specifications Issue 8[1], strfmon(3)
should return EINVAL when the '+' flag was included in a conversion
specification and the locale's positive_sign and negative_sign values
would both be returned by localeconv(3) as empty strings.

Austin Group Defect 1199[2] is applied, adding the [EINVAL] error.

[1]: https://pubs.opengroup.org/onlinepubs/9799919799/functions/strfmon.html
[2]: https://www.austingroupbugs.net/view.php?id=1199

Reviewed by:    kib
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D53912

(cherry picked from commit 1fd018972a18b682521bb8f004dfd162327e5db2)
DeltaFile
+11-1lib/libc/stdlib/strfmon.3
+4-4lib/libc/tests/stdlib/strfmon_test.c
+3-1lib/libc/stdlib/strfmon.c
+18-63 files

FreeBSD/src 7745ecelib/libc/tests/stdlib strfmon_test.c

strfmon: Add tests for Austin Group Defect 1199

Add tests for The Open Group Base Specifications Issue 8[1], Austin
Group Defect 1199[2].

Items marked with XXX represent an invalid output.  These items will be
fixed in subsequent commits.

Notice that an existing test is now considered invalid.

Our locale definitions do not include int_p_sep_by_space nor
int_n_sep_by_space[3].  Those will be addressed in a subsequent commit.
However, the CLDR project defines them as "0", which causes the output
to appear as "USD123.45".  If our locale definitions were to set the
international {n,p}_sep_by_space to "1", the output would display as the
expected "USD 123.45".

While here, use the SPDX license identifier and add my name to the
file.

    [10 lines not shown]
DeltaFile
+57-23lib/libc/tests/stdlib/strfmon_test.c
+57-231 files

FreeBSD/src f830e53lib/libc/stdlib strfmon.c

strfmon: Fix typo s/poistion/position/

MFC after:      1 week

(cherry picked from commit 91e7f19ec4056587a85c1461a4f34a6d5d4b7b52)
DeltaFile
+1-1lib/libc/stdlib/strfmon.c
+1-11 files

FreeBSD/src 06c2e9blib/libc/stdlib strfmon.c, lib/libc/tests/stdlib strfmon_test.c

strfmon: Fix negative sign handling for C locale

If the locale's positive_sign and negative_sign values would both be
returned by localeconv() as empty strings, strfmon() shall behave as if
the negative_sign value was the string "-".

This occurs with the C locale.  The implementation previously assigned
"0" to sign_posn (parentheses around the entire string); now it assigns
it to "1" (sign before the string) when it is undefined (CHAR_MAX).

Austin Group Defect 1199[1] is applied, changing the requirements for
the '+' and '(' flags.

[1]: https://www.austingroupbugs.net/view.php?id=1199

Reviewed by:    kib
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D53913

(cherry picked from commit cf85e7034ad5640b18a3b68d6b291b7bf89bfc80)
DeltaFile
+3-3lib/libc/tests/stdlib/strfmon_test.c
+1-1lib/libc/stdlib/strfmon.c
+4-42 files