FreeBSD/src 5b39861bin/pwd pwd.c, bin/pwd/tests pwd_test.sh

pwd: Error out if writing to stdout failed

POSIX requires us to print a diagnostic and return a non-zero exit
code if writing to stdout failed.

MFC after:      1 week
Sponsored by:   Klara, Inc.
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D55227
DeltaFile
+21-0bin/pwd/tests/pwd_test.sh
+2-0bin/pwd/pwd.c
+23-02 files

FreeBSD/src b02def7sys/compat/linuxkpi/common/include/net cfg80211.h

LinuxKPI: 802.11: add cfg80211 (*change_bss) and related structs

Needed by brcmfmac v6.19.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+11-1sys/compat/linuxkpi/common/include/net/cfg80211.h
+11-11 files

FreeBSD/src 9375e11sys/contrib/dev/broadcom/brcm80211/brcmfmac p2p.c cfg80211.c

brcm80211: update Broadcom wireless brcmsmac and brcmfmac drivers

This version is based on
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
24d479d26b25bce5faea3ddd9fa8f3a6c3129ea7 ( tag: v6.19-rc6 ).

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+10-18sys/contrib/dev/broadcom/brcm80211/brcmfmac/p2p.c
+24-2sys/contrib/dev/broadcom/brcm80211/brcmfmac/cfg80211.c
+9-5sys/contrib/dev/broadcom/brcm80211/brcmfmac/firmware.c
+14-0sys/contrib/dev/broadcom/brcm80211/brcmfmac/dmi.c
+4-4sys/contrib/dev/broadcom/brcm80211/brcmfmac/sdio.c
+2-2sys/contrib/dev/broadcom/brcm80211/brcmfmac/chip.c
+63-313 files not shown
+65-359 files

FreeBSD/src 20a3c61usr.sbin/moused/moused moused.c

moused(8): Use KQUEUE_CPONFORK flag to pass kqueue fd through fork

and use libc daemon() instead of private rfork-based copy.
DeltaFile
+2-56usr.sbin/moused/moused/moused.c
+2-561 files

FreeBSD/src 89aa8a9sys/dev/evdev input-event-codes.h

evdev: Drop comments from input-event-codes.h

They were copied intact from the Linux GPL-only file.

Requested by:   imp, glebius
MFC after:      1 week
DeltaFile
+174-305sys/dev/evdev/input-event-codes.h
+174-3051 files

FreeBSD/src 3d85dcdsys/dev/atkbdc psm.c

psm(4): Add middle button support for Elantech V4 touchpads

based on firmware version.

PR:             291262
MFC after:      1 month
DeltaFile
+13-2sys/dev/atkbdc/psm.c
+13-21 files

FreeBSD/src 98c44ccsys/modules/brcm80211/brcmfmac Makefile

brcmfmac: deal with bus attachments to the module Makefile

As with LinuxKPI-based wireless drivers, e.g., rtw88, PCI depends
on PCI being compiled into the kernel, SDIO will depend on
MMCCAM in the kernel once supported, and USB can always be
loaded.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+10-7sys/modules/brcm80211/brcmfmac/Makefile
+10-71 files

FreeBSD/src 2274153sys/contrib/dev/broadcom/brcm80211/brcmfmac usb.c bcdc.c

brcmfmac: make USB parts compile (and not panic right away)

Fix casts and consts and add one extra error check for a NULL pointer.
This will require [a future] linuxkpi_usb.

There are very few dongles I know off:
- the original Raspberry PI USB dongle [1]
- Cisco Linksys AE1200

The reason for making USB compile despite the limited 11n 150/300 Mbit/s
adapters is that it is the simplest way to work on cfg80211 while on the
road, not requiring a full PCIe slot or another SoC for SDIO.

Sponsored by:           The FreeBSD Foundation
Hardware donated by:    Martin Husemann (martin NetBSD.org) [1]
MFC after:              3 days
DeltaFile
+52-0sys/contrib/dev/broadcom/brcm80211/brcmfmac/usb.c
+6-0sys/contrib/dev/broadcom/brcm80211/brcmfmac/bcdc.c
+58-02 files

FreeBSD/src 902136esys/compat/linuxkpi/common/include/linux/platform_data brcmfmac.h, sys/contrib/dev/broadcom/brcm80211/brcmfmac cfg80211.c pcie.c

brcm80211: add LinuxKPI files and module Makefiles

sys/compat/linuxkpi/common/include/linux/platform_data/brcmfmac.h
is based on
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
e5f0a698b34ed76002dc5cff3804a61c80233a7a ( tag: v6.17 ).

Currently only PCIe is made to compile.
It does load firmware (if needed, e.g., on arm64 with an alignment
issue fixed), and starts to come up.

To make it work there is a cfg80211 layer and netdevice integration
to do, so do not hold your breath just yet.
DeltaFile
+190-0sys/contrib/dev/broadcom/brcm80211/brcmfmac/cfg80211.c
+185-0sys/compat/linuxkpi/common/include/linux/platform_data/brcmfmac.h
+117-0sys/contrib/dev/broadcom/brcm80211/brcmfmac/pcie.c
+89-0sys/modules/brcm80211/brcmfmac/Makefile
+35-0sys/contrib/dev/broadcom/brcm80211/brcmfmac/common.c
+34-0sys/contrib/dev/broadcom/brcm80211/brcmfmac/msgbuf.c
+650-022 files not shown
+1,007-028 files

FreeBSD/src b4c3e9bsys/contrib/dev/broadcom/brcm80211/brcmfmac cfg80211.c sdio.c, sys/contrib/dev/broadcom/brcm80211/brcmsmac main.c

brcm80211: import Broadcom wireless brcmsmac and brcmfmac drivers

This version is based on
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
e5f0a698b34ed76002dc5cff3804a61c80233a7a ( tag: v6.17 ).

We are likely only going to use the brcmfmac driver but given they
come nicely packaged in a directory structure and bwn(9) still uses
GPL-only phy files we could use some of the information from brcmsmac
and fix that (should it ever still be relevant).

git-subtree-dir: sys/contrib/dev/broadcom/brcm80211
git-subtree-mainline: 69c64e3fb575e0db0e2f0c1fc56f466624940ded
git-subtree-split: 1eabd3ed89eb4bb5c69e90eeaeda1a6dd31e8bab
DeltaFile
+28,572-0sys/contrib/dev/broadcom/brcm80211/brcmsmac/phy/phy_n.c
+10,099-0sys/contrib/dev/broadcom/brcm80211/brcmsmac/phy/phytbl_n.c
+8,477-0sys/contrib/dev/broadcom/brcm80211/brcmfmac/cfg80211.c
+8,065-0sys/contrib/dev/broadcom/brcm80211/brcmsmac/main.c
+5,151-0sys/contrib/dev/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c
+4,650-0sys/contrib/dev/broadcom/brcm80211/brcmfmac/sdio.c
+65,014-0127 files not shown
+116,023-0133 files

FreeBSD/src 69c64e3tools/tools/git git-arc.1

git-arc.1: Fix patch options

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D55228
DeltaFile
+2-3tools/tools/git/git-arc.1
+2-31 files

FreeBSD/src 3785773sys/dev/usb/net if_ure.c

ure: improve receive checksum offloading

Let the receive checksum offload for TCP/IPv6 and UDP/IPv6 be
controlled by ifconfig rxcsum6 and not by ifconfig rxcsum.
While there, make the code more compact and improve stlye.9
conformity.

Reviewed by:            Timo Völker
MFC after:              1 week
Differential Revision:  https://reviews.freebsd.org/D55188
DeltaFile
+15-23sys/dev/usb/net/if_ure.c
+15-231 files

FreeBSD/src 950dedcsys/net pfvar.h

pf: remove unused variable from pf_test_ctx

Sponsored by:   Rubicon Communications, LLC ("Netgate")
DeltaFile
+0-1sys/net/pfvar.h
+0-11 files

FreeBSD/src 1ea0721sys/dev/virtio/gpu virtio_gpu.c

vtgpu: Support virtio gpu on Parallels Desktop

The Parallels Desktop Virtio GPU implementation doesn't handle
enqueuing the VIRTIO_GPU_CMD_RESOURCE_ATTACH_BACKING request and
memory list together.

Work around this by splitting them before sending them to be enqueued.

Sponsored by:   Arm Ltd
Differential Revision:  https://reviews.freebsd.org/D55147
DeltaFile
+38-13sys/dev/virtio/gpu/virtio_gpu.c
+38-131 files

FreeBSD/src 7e5f4bbsys/kern kern_dump.c

kernel dump: dumpsys_gen_pa_next(): Fix "no more chunks" condition detection

In the (improbable) cases where either:
- All entries in dump_map[] are used, so there is no guard entry filled with zeros.
- Some dump region has size 0.
We would respectively access dump_map[] out-of-bounds or omit further
dump regions when iterating.

MFC after:      2 weeks
Sponsored by:   The FreeBSD Foundation
DeltaFile
+2-1sys/kern/kern_dump.c
+2-11 files

FreeBSD/src 7d7295dsys/arm64/arm64 pmap.c support.S, sys/arm64/include machdep.h

arm64: Add MOPS implementation of pagezero()

Reimplement pagezero() as ifunc. As pagezero() is only used in pmap.c,
move ifunc to that file.

Reviewed by:    andrew
Sponsored by:   Arm Ltd
Differential Revision:  https://reviews.freebsd.org/D54946
DeltaFile
+22-0sys/arm64/arm64/pmap.c
+12-0sys/arm64/arm64/support.S
+0-10sys/arm64/arm64/machdep.c
+0-1sys/arm64/include/machdep.h
+34-114 files

FreeBSD/src 2ccbf06sys/arm64/arm64 machdep.c memcpy.S, sys/arm64/include cpu.h

arm64: Add MOPS implementations of memset(), memcpy() and memmove()

Enable the use of MOPS implementations of memset, memcpy and memmove within
the kernel. Fix pre-ifunc resolution uses of these functions.

Reported by:    andrew
Sponsored by:   Arm Ltd
Differential Revision:  https://reviews.freebsd.org/D55051
DeltaFile
+36-2sys/arm64/arm64/machdep.c
+20-4sys/arm64/arm64/memcpy.S
+10-2sys/arm64/arm64/memset.S
+5-5sys/arm64/arm64/pmap.c
+6-1sys/arm64/include/cpu.h
+3-2sys/arm64/arm64/identcpu.c
+80-161 files not shown
+81-177 files

FreeBSD/src 18af5a1sys/arm64/arm64 trap.c

arm64: Enable MOPS usage in the kernel

Support handling kernel-side MOE exceptions.

Reported by:    andrew
Sponsored by:   Arm Ltd
Differential Revision:  https://reviews.freebsd.org/D54943
DeltaFile
+63-60sys/arm64/arm64/trap.c
+63-601 files

FreeBSD/src 1224347sys/arm64/arm64 copyinout.S copyinout_ifunc.c, sys/conf files.arm64

arm64: Add MOPS implementations of copyin/copyout

Reimplement copyin() & copyout() as ifuncs.

Reviewed by:    andrew
Sponsored by:   Arm Ltd
Differential Revision:  https://reviews.freebsd.org/D54947
DeltaFile
+52-6sys/arm64/arm64/copyinout.S
+50-0sys/arm64/arm64/copyinout_ifunc.c
+1-0sys/conf/files.arm64
+103-63 files

FreeBSD/src 6cfdd55usr.bin/diff/tests diff_test.sh

diff: Correctly declare tests

Sponsored by:   Klara, Inc.
Fixes:          5fc739eb5949 ("diff: Fix integer overflows in Stone algorithm")
Fixes:          270492602b9b ("diff: Add test case for pagination resource leak")
Fixes:          590126789c84 ("diff: Don't compare a file or directory to itself")

(cherry picked from commit 157d6664aeb815db3b758bd3038fd1512a0f4e2c)
DeltaFile
+2-0usr.bin/diff/tests/diff_test.sh
+2-01 files

FreeBSD/src 9c99eacusr.bin/diff diffdir.c diffreg.c, usr.bin/diff/tests diff_test.sh

diff: Don't compare a file or directory to itself

While here, stop abusing struct dirent for something we don't even need
to store.

PR:             254455
MFC after:      1 week
Sponsored by:   Klara, Inc.
Reviewed by:    thj, kevans
Differential Revision:  https://reviews.freebsd.org/D55113

(cherry picked from commit 590126789c841d80655869bc075c8980c173dd1c)

diff: Fix build

rc must be defined first.

Fixes:          590126789c84
MFC after:      1 week

    [3 lines not shown]
DeltaFile
+19-0usr.bin/diff/tests/diff_test.sh
+8-6usr.bin/diff/diffdir.c
+3-0usr.bin/diff/diffreg.c
+30-63 files

FreeBSD/src 44cf3a1usr.bin/diff pr.c pr.h

diff: Fix pagination leak

* Drop an unnecessary variable and rename pidfd to procd.

* Rewinding stdout serves no purpose, so stop doing it.

* Don't bother freeing memory or setting the global status right
  before erroring out.

* Error out if dup(2) or dup2(2) fail.

* In the unlikely case that our pipe is equal to stdout, we need to
  record that information so we don't close it when cleaning up.

* Don't bother closing a descriptor before dup2(2)ing to it.

* Don't forget to close the the process descriptor after reaping the
  child process.


    [7 lines not shown]
DeltaFile
+10-12usr.bin/diff/pr.c
+1-0usr.bin/diff/pr.h
+11-122 files

FreeBSD/src f085220usr.bin/diff/tests diff_test.sh

diff: Add test case for pagination resource leak

The pagination code leaks either processes or descriptors or both,
depending on the exact version of the code you have.  Add a test case
which exercises this leak to facilitate fixing it.

MFC after:      1 week
Sponsored by:   Klara, Inc.
Reviewed by:    thj, kevans
Differential Revision:  https://reviews.freebsd.org/D55111

(cherry picked from commit 270492602b9bd8b8fce4f021f055804978bf3f23)
DeltaFile
+21-0usr.bin/diff/tests/diff_test.sh
+21-01 files

FreeBSD/src 083f8f3sys/contrib/dev/athk/ath10k ce.c

ath10k: update Atheros/QCA's ath10k driver

This version is based on
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
05f7e89ab9731565d8a62e3b5d1ec206485eeb0b ( tag: v6.19 ).

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
DeltaFile
+8-8sys/contrib/dev/athk/ath10k/ce.c
+8-81 files

FreeBSD/src 4c23a98sys/kern subr_asan.c

asan: Use memset_early() to fill shadow memory

__builtin_memset() calls are replaced with calls to memset(), but that
can't be used before ifunc relocations are processed if the
implementation is selected at boot time.  Meanwhile, the sanitizer may
emit calls to __asan_set_shadow_*() as soon as locore jumps into C code,
before ifuncs are selected.

Just unconditionally use memset_early() to work around this.

Reported by:    andrew
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D55079
DeltaFile
+2-2sys/kern/subr_asan.c
+2-21 files

FreeBSD/src a485399sys/netinet tcp_syncache.c, sys/sys mbuf.h

tcp: restrict flowtype copying to specific RSS TCP types

Reviewed by:    gallatin, tuexen
Differential Revision:  https://reviews.freebsd.org/D55196
DeltaFile
+2-2sys/netinet/tcp_syncache.c
+4-0sys/sys/mbuf.h
+6-22 files

FreeBSD/src d2b84ecmld mac80211.c iface.c, mvm d3.c

iwlwifi: update Intel's mvm/mld drivers

This version is based on
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
05f7e89ab9731565d8a62e3b5d1ec206485eeb0b ( tag: v6.19 ).

Sponsored by:   The FreeBSD Foundation
DeltaFile
+5-1mvm/d3.c
+2-0mld/mac80211.c
+0-2mld/iface.c
+7-33 files

FreeBSD/src 9e30e89. mac.c ce.c

ath12k: update Atheros/QCA's ath12k driver

This version is based on
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
05f7e89ab9731565d8a62e3b5d1ec206485eeb0b ( tag: v6.19 ).

Sponsored by:   The FreeBSD Foundation
DeltaFile
+10-6mac.c
+6-6ce.c
+1-8wmi.c
+17-203 files

FreeBSD/src 91a3131. ce.c

ath10k: update Atheros/QCA's ath10k driver

This version is based on
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
05f7e89ab9731565d8a62e3b5d1ec206485eeb0b ( tag: v6.19 ).

Sponsored by:   The FreeBSD Foundation
DeltaFile
+8-8ce.c
+8-81 files

FreeBSD/src 212272aetc/mtree BSD.usr.dist

mtree: stop creating /usr/share/doc/ncurses

In base 68ad2b0d7af2a the ncurses html documentation was removed, and
entries added to ObsoleteFiles.inc to get rid of /usr/share/doc/ncurses,
but the directory was still being re-created via BSD.usr.dist. Remove it
from there too.

Fixes:          68ad2b0d7af2a
MFC after:      1 month
DeltaFile
+0-2etc/mtree/BSD.usr.dist
+0-21 files