FreeBSD/src a48bbefshare/examples/sound mmap.c

sound: Adjust mmap example to use kqueue

Reviewed by:    christos
Differential Revision:  https://reviews.freebsd.org/D57410
DeltaFile
+50-128share/examples/sound/mmap.c
+50-1281 files

FreeBSD/src fe13f70share/man/man4 pcm.4, sys/dev/sound/pcm dsp.c

sound: Include more information in kevent returned from the kernel

Reviewed by:    christos
Differential Revision:  https://reviews.freebsd.org/D57362
DeltaFile
+77-1share/man/man4/pcm.4
+12-2sys/dev/sound/pcm/dsp.c
+89-32 files

FreeBSD/src 47ae0a8sys/dev/sound/pcm dsp.c

sound: Start each channel individually

Unlock all members before starting any of them. Holding multiple channel
locks while calling chn_start() on a virtual channel can trigger the
parent, which acquires PCM_LOCK() while other virtual channels are still
locked -- a lock order reversal.

Reviewed by:    christos
Differential Revision:  https://reviews.freebsd.org/D57399
DeltaFile
+19-6sys/dev/sound/pcm/dsp.c
+19-61 files

FreeBSD/src 9889facsys/kern kern_linker.c

kern_linker.c: re-apply some more bits from db887713de2bf5

The definition of the EXTERR_CATEGORY symbol in the .c file is needed
for the script to regenerate identical context of
gen/exterr_cat_filenames.h.

Sponsored by:   The FreeBSD Foundation
DeltaFile
+2-0sys/kern/kern_linker.c
+2-01 files

FreeBSD/src 25c6e6esys/contrib/openzfs/.github/workflows README.md, sys/contrib/openzfs/cmd/zdb zdb.c

zfs: merge openzfs/zfs at 83020cf82 (zfs-2.4-release) into stable/15

OpenZFS 2.4.3

Notable upstream pull request merges:
 #18212 b72c843b4 Simplify dnode_level_is_l2cacheable()
 #18214 97117686d Remove parent ZIO from dbuf_prefetch()
 #18277 50697dc93 Fix log vdev removal issues
 #18315 1821ca2db ZVOL: Add encryption key check for block cloning
 #18390 6d336fa86 abd: Fix stats asymmetry in case of Direct I/O
 #18430 836ddbad0 Fix "panic: cache_vop_rename: lingering negative entry"
 #18448 8e964b36b key lookup failure should always return EACCES
 #18477 715f60561 Fix off-by-one in PREVIOUSLY_REDACTED handler that drops
                  last block
 #18494 0bb0c7074 zdb: detect BRT and DDT leaks during block traversal
 #18497 8e0b943f6 zfs: annotate nested dd_lock in reservation sync
                  accounting
 #18499 07c20404a zarcstat: detect attached L2ARC device with no data
 #18503 c59e15fab sa: fix sa_add_projid lock ordering

    [18 lines not shown]
DeltaFile
+169-3sys/contrib/openzfs/tests/zfs-tests/cmd/libzfs_input_check.c
+115-52sys/contrib/openzfs/cmd/zdb/zdb.c
+152-0sys/contrib/openzfs/tests/zfs-tests/tests/functional/dedup/dedup_bclone_pruned.ksh
+100-36sys/contrib/openzfs/include/os/linux/spl/sys/rwlock.h
+82-47sys/contrib/openzfs/.github/workflows/README.md
+118-0sys/contrib/openzfs/tests/zfs-tests/tests/functional/redacted_send/redacted_max_blkid.ksh
+736-13890 files not shown
+1,798-43496 files

FreeBSD/src 652f4d4sys/dev/acpica acpi_timer.c

acpi(4): Fix a typo in a source code comment

- s/freqency/frequency/

(cherry picked from commit f2574978567e63a1eb518c6d325ddf424a22a5e0)
DeltaFile
+1-1sys/dev/acpica/acpi_timer.c
+1-11 files

FreeBSD/src 66dde7dsys/dev/sdhci fsl_sdhci.c

sdhci(4): Fix a typo in a source code comment

- s/freqency/frequency/

(cherry picked from commit dd8ba1f2fc513cea3ef18b6cdfed0e7d4260bb1a)
DeltaFile
+1-1sys/dev/sdhci/fsl_sdhci.c
+1-11 files

FreeBSD/src cf6fb0asys/dev/qcom_clk qcom_clk_rcg2.c

qcom_clk: Fix a typo in a source code comment

- s/freqency/frequency/

(cherry picked from commit 6280a0630089d6e1726f9942ce9118556a32bb59)
DeltaFile
+1-1sys/dev/qcom_clk/qcom_clk_rcg2.c
+1-11 files

FreeBSD/src 2e7e5bfsys/dev/et if_et.c

et(4): Fix a typo in a source code comment

- s/Diable/Disable/

(cherry picked from commit 0ea84e9cce72e9df9d621b731ddd7247e175b3a7)
DeltaFile
+1-1sys/dev/et/if_et.c
+1-11 files

FreeBSD/src 1dfc91fsys/dev/extres/clk clknode_if.m

clk: Fix a typo in a source code comment

- s/freqency/frequency/

(cherry picked from commit 58cf810066c850131d29de2eee32239e6f817c58)
DeltaFile
+1-1sys/dev/extres/clk/clknode_if.m
+1-11 files

FreeBSD/src c8f0bb3sys/dev/aic7xxx aic79xx.c aic7xxx.seq

aic7xxx: Fix two typos in source code comments

- s/Diable/Disable/
- s/connonical/canonical/

(cherry picked from commit 49ced8d765f46c3f81214590ad384846cfdfbbf8)
DeltaFile
+1-1sys/dev/aic7xxx/aic79xx.c
+1-1sys/dev/aic7xxx/aic7xxx.seq
+2-22 files

FreeBSD/src 55407c3sys/dev/acpica acpi_timer.c

acpi(4): Fix a typo in a source code comment

- s/freqency/frequency/

(cherry picked from commit f2574978567e63a1eb518c6d325ddf424a22a5e0)
DeltaFile
+1-1sys/dev/acpica/acpi_timer.c
+1-11 files

FreeBSD/src fd6cad7sys/dev/sdhci fsl_sdhci.c

sdhci(4): Fix a typo in a source code comment

- s/freqency/frequency/

(cherry picked from commit dd8ba1f2fc513cea3ef18b6cdfed0e7d4260bb1a)
DeltaFile
+1-1sys/dev/sdhci/fsl_sdhci.c
+1-11 files

FreeBSD/src b6ce96bsys/dev/ufshci ufshci_ctrlr.c

ufshci(4): Fix a typo in a source code comment

- s/Diable/Disable/

(cherry picked from commit 54e4b9c9faf0d4d478eea41fed0a7c7f0bac5eda)
DeltaFile
+1-1sys/dev/ufshci/ufshci_ctrlr.c
+1-11 files

FreeBSD/src 7763576sys/dev/qcom_clk qcom_clk_rcg2.c

qcom_clk: Fix a typo in a source code comment

- s/freqency/frequency/

(cherry picked from commit 6280a0630089d6e1726f9942ce9118556a32bb59)
DeltaFile
+1-1sys/dev/qcom_clk/qcom_clk_rcg2.c
+1-11 files

FreeBSD/src b5f28bbsys/dev/et if_et.c

et(4): Fix a typo in a source code comment

- s/Diable/Disable/

(cherry picked from commit 0ea84e9cce72e9df9d621b731ddd7247e175b3a7)
DeltaFile
+1-1sys/dev/et/if_et.c
+1-11 files

FreeBSD/src e85a0e8sys/dev/clk clknode_if.m

clk: Fix a typo in a source code comment

- s/freqency/frequency/

(cherry picked from commit 58cf810066c850131d29de2eee32239e6f817c58)
DeltaFile
+1-1sys/dev/clk/clknode_if.m
+1-11 files

FreeBSD/src 7bd1f83sys/dev/aic7xxx aic79xx.c aic7xxx.seq

aic7xxx: Fix two typos in source code comments

- s/Diable/Disable/
- s/connonical/canonical/

(cherry picked from commit 49ced8d765f46c3f81214590ad384846cfdfbbf8)
DeltaFile
+1-1sys/dev/aic7xxx/aic79xx.c
+1-1sys/dev/aic7xxx/aic7xxx.seq
+2-22 files

FreeBSD/src 554a459sys/dev/acpica acpi.c, sys/kern subr_power.c

acpi: Constify acpi_stype_to_sstate() and some users

Reviewed by:    obiwac
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D57413
DeltaFile
+8-6sys/dev/acpica/acpi.c
+1-1sys/kern/subr_power.c
+1-1sys/sys/power.h
+10-83 files

FreeBSD/src ea44698sys/dev/acpica acpi.c acpivar.h

acpi: Move supported states arrays into the softc

This is done in preparation of having some machine-dependent code access
these arrays through the softc.

Before this change, these arrays were static.  We chose to make them
part of the softc, instead of just exporting them ('acpi_quirks' remains
a known offender; some better way forward is to declare the whole ACPI
softc as static).

Some sysctl handlers now need to be passed the softc to access the
arrays, and some already needed to be passed a pointer to a field in the
softc.  As sysctl handlers are provided with a single pointer (arg1) and
a single integer (arg2), and now that the softc has to be passed into
the pointer argument (arg1), point indirectly to the wanted softc's
field by passing its offset in the integer argument (arg2).

To preserve the statically sized array in the signature of
power_pm_register(), and consequently avoid constructing such a dummy

    [11 lines not shown]
DeltaFile
+45-53sys/dev/acpica/acpi.c
+4-0sys/dev/acpica/acpivar.h
+49-532 files

FreeBSD/src 6a2c4f0sys/dev/acpica acpi.c

acpi: Fix panic when reading 'hw.acpi.suspend_state' knob on S1/S2

The 'hw.acpi.suspend_state' sysctl knob was re-introduced with a bug.
Its handler, acpi_suspend_state_sysctl(), expects the ACPI softc in
'arg1', but the knob was registered with NULL there.  This causes
a panic (NULL dereference) when reading the knob if the suspend state
has been set to S1 or S2 or equivalently the suspend sleep type to
STANDBY.

Fix it by passing the ACPI softc as 'arg1' when registering the knob.

Reviewed by:    obiwac
Fixes:          9e1e29bd5ec6 ("acpi: Add back `hw.acpi.suspend_state` sysctl")
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D57412
DeltaFile
+1-1sys/dev/acpica/acpi.c
+1-11 files

FreeBSD/src 9f5df9esys/sys elf_common.h

elf_common: Add FDO package metadata note type

Reviewed by:    fuz
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57525

(cherry picked from commit 6365c45d951dd50ca411160b03c3a0427bd54449)
DeltaFile
+3-0sys/sys/elf_common.h
+3-01 files

FreeBSD/src 8c78774stand/lua core.lua

core.lua: follow symlinks when looking for bootable kernels

PR: 293654
Reviewed by:    kevans
Approved by:    kevans
Differential Revision:  https://reviews.freebsd.org/D55713

(cherry picked from commit e6d579be42550f366cc85188b15c6eb0cad27367)
DeltaFile
+1-1stand/lua/core.lua
+1-11 files

FreeBSD/src 1841091stand/lua core.lua

core.lua: follow symlinks when looking for bootable kernels

PR: 293654
Reviewed by:    kevans
Approved by:    kevans
Differential Revision:  https://reviews.freebsd.org/D55713

(cherry picked from commit e6d579be42550f366cc85188b15c6eb0cad27367)
DeltaFile
+1-1stand/lua/core.lua
+1-11 files

FreeBSD/src 556e793bin/sh sh.1

sh: Improve function documentation

* Mention that the function body can be in parentheses.  It is already
  implied since the function body can be any valid statement, but it may
  not be obvious to a reader who has only ever seen functions that used
  curly brackets and assumes that they are part of the function syntax.

* Remove the incorrect claim that a local statement may only occur at
  the top of a function.

* Show that a value may be assigned to a variable in a local statement.

* While here, replace unpaired double quotes with \(dq to avoid
  confusing syntax highlighters.

PR:             296050
MFC after:      1 week
Reviewed by:    ziaee, jilles
Differential Revision:  https://reviews.freebsd.org/D57596
DeltaFile
+16-9bin/sh/sh.1
+16-91 files

FreeBSD/src 34e1553lib/libpfctl libpfctl.c, sbin/pfctl pfctl_radix.c

pfctl: pfctl_get_astats() doesn't set errno

After commit 08f54dfca197 pfctl_get_astats() doesn't set errno anymore,
except in one place.  Fix up that one place and adjust callers
appropriately.

Reviewed by:    kp
Fixes:          08f54dfca197 ("pf: convert DIOCRGETASTATS to netlink")
Differential Revision:  https://reviews.freebsd.org/D57608
DeltaFile
+8-1sbin/pfctl/pfctl_radix.c
+2-4lib/libpfctl/libpfctl.c
+3-3usr.sbin/bsnmpd/modules/snmp_pf/pf_snmp.c
+13-83 files

FreeBSD/src 6616c7alib/libc/gen exterr_cat_filenames.h, sys/sys exterr_cat.h

sys: Reserve EXTERR_CAT_LINKER for kld linker exterrors

Reviewed by:    imp, kib (in D57002)
Sponsored by:   The FreeBSD Foundation
DeltaFile
+1-0lib/libc/gen/exterr_cat_filenames.h
+1-0sys/sys/exterr_cat.h
+2-02 files

FreeBSD/src e15be25sbin/ping ping6.c

ping6: fix outpack overflow in pattern fill loop

The fill loop was bounded by packlen, which is sized for the receive
buffer (datalen + IP6LEN + ICMP6ECHOLEN + EXTRA), not for outpack.
With large datalen the loop wrote past outpack[MAXPACKETLEN].

Bound it to the actual data area in outpack instead.

Reported by:    Oculytic
Reviewed by:    des, markj
Differential Revision:  https://reviews.freebsd.org/D57441
DeltaFile
+10-10sbin/ping/ping6.c
+10-101 files

FreeBSD/src f81c82acontrib/llvm-project/clang/lib/Driver/ToolChains FreeBSD.h

Merge commit 93a67259cf23 from llvm git (by ShengYi Hung):

  [ToolChains][FreeBSD] Set default Linker to LLD for FreeBSD (#190596)

  When the linker is specified as ld, toolchain applies special handling
  by invoking (triple)-ld instead of resolving ld via standard PATH
  lookup. This causes GNU ld installed via the system package manager to
  take the precedence (since (triple)-ld appears earlier in the search
  path), effectively overriding ld.lld.

  As a result, we set the default Linker on FreeBSD to ld.lld to indicate
  we want to use lld by default.

PR:             292067
MFC after:      3 days

(cherry picked from commit 2b619b7c7b5300cbaf59e4e9d75bc8472df014e9)
DeltaFile
+4-0contrib/llvm-project/clang/lib/Driver/ToolChains/FreeBSD.h
+4-01 files

FreeBSD/src 8d0154econtrib/llvm-project/clang/lib/Driver/ToolChains FreeBSD.h

Merge commit 93a67259cf23 from llvm git (by ShengYi Hung):

  [ToolChains][FreeBSD] Set default Linker to LLD for FreeBSD (#190596)

  When the linker is specified as ld, toolchain applies special handling
  by invoking (triple)-ld instead of resolving ld via standard PATH
  lookup. This causes GNU ld installed via the system package manager to
  take the precedence (since (triple)-ld appears earlier in the search
  path), effectively overriding ld.lld.

  As a result, we set the default Linker on FreeBSD to ld.lld to indicate
  we want to use lld by default.

PR:             292067
MFC after:      3 days

(cherry picked from commit 2b619b7c7b5300cbaf59e4e9d75bc8472df014e9)
DeltaFile
+4-0contrib/llvm-project/clang/lib/Driver/ToolChains/FreeBSD.h
+4-01 files