FreeBSD/src 38e3125sys/arm/nvidia/drm2 tegra_bo.c, sys/compat/linuxkpi/common/src linux_page.c

device_pager: user iterators to free device pages

Change cdev_mgtdev_page_free_page to take an iterator, rather than an
object and page, so that removing the page from the object radix tree
can take advantage of locality with iterators. Define a
general-purpose function to free all pages, which can be used in
several places.

Reviewed by:    kib
Differential Revision:  https://reviews.freebsd.org/D47692
DeltaFile
+30-10sys/vm/device_pager.c
+3-17sys/dev/drm2/ttm/ttm_bo_vm.c
+2-16sys/compat/linuxkpi/common/src/linux_page.c
+1-13sys/dev/xen/privcmd/privcmd.c
+1-12sys/dev/xen/gntdev/gntdev.c
+4-2sys/arm/nvidia/drm2/tegra_bo.c
+41-701 files not shown
+43-717 files

FreeBSD/src ae4f394sys/netgraph ng_parse.c

ng_parse: disallow negative length for malloc

This is an interim robustness improvement; further improvements as
described in the PR and/or Phabricator review are still needed.

PR:             267334
Reported by:    Robert Morris <rtm at lcs.mit.edu>
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D37229
DeltaFile
+2-0sys/netgraph/ng_parse.c
+2-01 files

FreeBSD/src 169e23dlib/libutil hexdump.3

hexdump.3: Add missing LIBRARY section

All the other libutil section 3 manpages document this, and although
it's heavily implied by the libutil.h header in the synopsis, we should
still be explicit and consistent.

PR:             280078
Reviewed by:    jrtc27
MFC after:      1 week
DeltaFile
+2-0lib/libutil/hexdump.3
+2-01 files

FreeBSD/src 46f38a6sys/netgraph ng_base.c

netgraph: Exit the net epoch to handle control messages

In general, in the direct dispatch case netgraph only enters the net
epoch to send data messages, but this was inconsistent with the netgraph
thread, which also entered the net epoch to send fn and fn2 messages to
nodes.  Some handlers, e.g., ng_bridge_newhook(), may sleep, and so
cannot be called in epoch context; the netgraph tests occasionally panic
due to this problem.

Make ngthread() consistent with the direct dispatch path.

Discussed with: afedorov (in D44615)
MFC after:      2 weeks
Sponsored by:   Klara, Inc.
DeltaFile
+6-3sys/netgraph/ng_base.c
+6-31 files

FreeBSD/src 30cafaasbin/devd/tests client_test.c

devd tests: Fix client_test

The loop doesn't check for overflow of the event buffer, which can
easily happen if other tests are running in parallel (the bectl tests in
particular trigger devd events).

When that overflow occurs, a funny thing can happen: the loop ends up
trying to read 0 bytes from the socket, succeeds, and then prints its
buffer to stdout.  It does this as fast as possible, eventually timing
out.  Then, because kyua wants to log the test's output, it slurps the
output file into memory so that it can insert it into the test db.  This
output file is quite large, usually around 8GB when I see it happen, and
is large enough to trigger an OOM kill in my test suite runner VM.

Fix the test: use a larger buffer and fail the test if we fill it before
both events are observed.  Also don't print the output buffer on every
loop iteration, since unlike the seqpacket test that will just print the
same output over and over.


    [4 lines not shown]
DeltaFile
+22-11sbin/devd/tests/client_test.c
+22-111 files

FreeBSD/src a079f2btests/sys/netinet Makefile

fibs_test: Run in a jail

These tests assume exclusive use of one or more FIBs and so can't be run
in parallel.  Running them in a VNET jail sidesteps this problem.

MFC after:      1 week
Sponsored by:   Klara, Inc.
Sponsored by:   Stormshield
DeltaFile
+2-0tests/sys/netinet/Makefile
+2-01 files

FreeBSD/src 59f8f51sys/dev/md embedfs.S

md: Fix linking of embedded filesystem images on aarch64

embedfs.S needs the right aarch64 features for BTI and/or PAC.

Obtained from:  CheriBSD
Fixes:          c2e0d56f5e49 ("arm64: Support BTI checking in most of the kernel")
Sponsored by:   AFRL, DARPA
DeltaFile
+6-0sys/dev/md/embedfs.S
+6-01 files

FreeBSD/src 415efcecontrib/llvm-project/clang/include/clang/Basic BuiltinsLoongArchLASX.def BuiltinsLoongArchLSX.def, contrib/llvm-project/compiler-rt/lib/sanitizer_common sanitizer_linux.cpp

Merge llvm-project release/19.x llvmorg-19.1.4-0-gaadaa00de76e

This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
openmp to llvm-project release/19.x llvmorg-19.1.4-0-gaadaa00de76e,
a.k.a. 19.1.4 release.

PR:             280562
MFC after:      1 month
DeltaFile
+73-73contrib/llvm-project/clang/include/clang/Basic/BuiltinsLoongArchLASX.def
+66-66contrib/llvm-project/clang/include/clang/Basic/BuiltinsLoongArchLSX.def
+39-16contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
+8-45contrib/llvm-project/llvm/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
+17-21contrib/llvm-project/llvm/lib/IR/Mangler.cpp
+31-3contrib/llvm-project/llvm/lib/Target/WebAssembly/WebAssemblyLateEHPrepare.cpp
+234-22429 files not shown
+371-26935 files

FreeBSD/src 7dfaf23sys/dev/rtwn/usb rtwn_usb_attach.h, sys/dev/usb usbdevs

rtwn: Add device ID for TPLink RTL8192CU
DeltaFile
+1-0sys/dev/rtwn/usb/rtwn_usb_attach.h
+1-0sys/dev/usb/usbdevs
+2-02 files

FreeBSD/src 6b62e00sys/security/mac_bsdextended mac_bsdextended.c

mac_bsdextended: Remove \n from sysctl descriptions

sysctl(8) prints a newline after the description; the description should
not end with one itself.

Sponsored by:   The FreeBSD Foundation
DeltaFile
+3-3sys/security/mac_bsdextended/mac_bsdextended.c
+3-31 files

FreeBSD/src 7d929a4sys/netpfil/pf pf_nl.c

pf: Fix timestamps and connection rate in source node export

When copying struct pf_ksrc_node into a netlink message some fields
change their meaning. In kernel creation and expire fields are storing
number of seconds since boot.

Add conversion to number of seconds relative to moment of exporting the
source node via netlink, as this is what pfctl expects. Add conversion
of connection rate count.

Reviewed by:            kp
Approved by:            kp (mentor)
Sponsored by:           InnoGames GmbH
Differential Revision:  https://reviews.freebsd.org/D47321
DeltaFile
+25-6sys/netpfil/pf/pf_nl.c
+25-61 files

FreeBSD/src e8eb309sys/netpfil/pf pf_ioctl.c

pf: Fix missing connection rate for DIOCGETSRCNODES

The function pf_src_node_copy() copies struct pf_ksrc_node to its ioctl
counterpart. It was missing copying of the conn_rate field, even though
the code for adjusting the output for pfctl was in place.

Add copying of conn_rate.

Reviewed by:            kp
Approved by:            kp (mentor)
MFC after:              2 weeks
Sponsored by:           InnoGames GmbH
Differential Revision:  https://reviews.freebsd.org/D47679
DeltaFile
+1-0sys/netpfil/pf/pf_ioctl.c
+1-01 files

FreeBSD/src f65bf06clang/include/clang/Basic BuiltinsLoongArchLASX.def BuiltinsLoongArchLSX.def, compiler-rt/lib/sanitizer_common sanitizer_linux.cpp

Vendor import of llvm-project branch release/19.x llvmorg-19.1.4-0-gaadaa00de76e, a.k.a. 19.1.4 release.
DeltaFile
+73-73clang/include/clang/Basic/BuiltinsLoongArchLASX.def
+66-66clang/include/clang/Basic/BuiltinsLoongArchLSX.def
+39-16compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
+8-45llvm/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
+17-21llvm/lib/IR/Mangler.cpp
+31-3llvm/lib/Target/WebAssembly/WebAssemblyLateEHPrepare.cpp
+234-22422 files not shown
+356-25428 files

FreeBSD/src 976ab14tools/tools/git git-arc.1 git-arc.sh

git-arc: Document how a reviewer group can be referenced

Reviewed by:    concussious.bugzilla_runbox.com, markj
Approved by:    markj (mentor)
Differential Revision:  https://reviews.freebsd.org/D47669
DeltaFile
+4-1tools/tools/git/git-arc.1
+2-2tools/tools/git/git-arc.sh
+6-32 files

FreeBSD/src 9431091release Makefile

release: Don't break if firmware install fails

On some platforms (e.g. powerpc) we don't have packages, so we can't
install them onto the ISOs.  Proceed with building the images anyway.

Reported by:    Weekly snapshot builds
Fixes:  7e2996c1f5b4 ("release: install wireless firmware onto disc1 and dvd")
MFC after:      1 minute

(cherry picked from commit e8263ace39c8ecf11233c0a10d0b1839e6813046)
DeltaFile
+2-2release/Makefile
+2-21 files

FreeBSD/src e8263acrelease Makefile

release: Don't break if firmware install fails

On some platforms (e.g. powerpc) we don't have packages, so we can't
install them onto the ISOs.  Proceed with building the images anyway.

Reported by:    Weekly snapshot builds
Fixes:  7e2996c1f5b4 ("release: install wireless firmware onto disc1 and dvd")
MFC after:      1 minute
DeltaFile
+2-2release/Makefile
+2-21 files

FreeBSD/src 60ec170release Makefile.mirrors

release: Remove empty suffix from file names

For "release" builds (as opposed to "snapshot" builds -- in this
context BETAs and RCs are "releases") ${SNAP_SUFFIX} is empty; but it
stuck into some ociimages filenames via a copy-and-paste error.

The final filenames on the download mirrors were not affected, so
this does not need to be merged to releng/14.2.

MFC after:      3 days
Sponsored by:   Amazon

(cherry picked from commit d54fdd16636bbe6a38a5b0a636dd83cf64aa6e06)
DeltaFile
+2-2release/Makefile.mirrors
+2-21 files

FreeBSD/src f6a3934sys/dev/ixgbe ixgbe_82599.c if_ix.c

ixgbe: Add support for 1Gbit DAC links

This is a relatively well known trick for the X520 (82599), can be
useful for testing and lab settings.  It's not an official standard or
particularly common but ubiquitous Broadcom switch ASICs deal with it.

We'll call it 1000Base-KX because it's SerDes on the passive cable and
I don't think it's worth adding another media type for this.

Reviewed by:    emaste
Sponsored by:   BBOX.io
Differential Revision:  https://reviews.freebsd.org/D47352

(cherry picked from commit 48ddd1b9f88753c6875566fbb67bc622453e4993)
DeltaFile
+11-0sys/dev/ixgbe/ixgbe_82599.c
+6-1sys/dev/ixgbe/if_ix.c
+2-1sys/dev/ixgbe/ixgbe_phy.c
+19-23 files

FreeBSD/src 4de746esys/dev/ixgbe ixgbe_82599.c if_ix.c

ixgbe: Add support for 1Gbit DAC links

This is a relatively well known trick for the X520 (82599), can be
useful for testing and lab settings.  It's not an official standard or
particularly common but ubiquitous Broadcom switch ASICs deal with it.

We'll call it 1000Base-KX because it's SerDes on the passive cable and
I don't think it's worth adding another media type for this.

Reviewed by:    emaste
Sponsored by:   BBOX.io
Differential Revision:  https://reviews.freebsd.org/D47352

(cherry picked from commit 48ddd1b9f88753c6875566fbb67bc622453e4993)
DeltaFile
+11-0sys/dev/ixgbe/ixgbe_82599.c
+6-1sys/dev/ixgbe/if_ix.c
+2-1sys/dev/ixgbe/ixgbe_phy.c
+19-23 files

FreeBSD/src cf6a871sys/dev/e1000 e1000_82575.c

e1000: Improve igb(4) SFP support

* Adds support for SFPs that are not correctly coded as an SFP
  transceiver. i.e. Coherent-Finisar FCLF8522P2BTL.
* Configures multi-rate SFPs i.e. Coherent-Finisar FCLF8522P2BTL as
  SGMII so they can do 10/100/1000 auto-negotiation.
* Adds support for 100BaseLX SGMII transceivers.
* Some code cleanup and additional debugging.

Reviewed by:    emaste, markj, Franco Fichtner <franco at opnsense.org>
Tested by:      Natalino Picone <natalino.picone at nozominetworks.com>
Sponsored by:   Nozomi Networks
Sponsored by:   BBOX.io
Differential Revision:  https://reviews.freebsd.org/D47337

(cherry picked from commit 15853a5fc9548d9805a2ef22f24e2eb580198341)
DeltaFile
+21-19sys/dev/e1000/e1000_82575.c
+21-191 files

FreeBSD/src c66d279sys/dev/e1000 e1000_82575.c

e1000: Improve igb(4) SFP support

* Adds support for SFPs that are not correctly coded as an SFP
  transceiver. i.e. Coherent-Finisar FCLF8522P2BTL.
* Configures multi-rate SFPs i.e. Coherent-Finisar FCLF8522P2BTL as
  SGMII so they can do 10/100/1000 auto-negotiation.
* Adds support for 100BaseLX SGMII transceivers.
* Some code cleanup and additional debugging.

Reviewed by:    emaste, markj, Franco Fichtner <franco at opnsense.org>
Tested by:      Natalino Picone <natalino.picone at nozominetworks.com>
Sponsored by:   Nozomi Networks
Sponsored by:   BBOX.io
Differential Revision:  https://reviews.freebsd.org/D47337

(cherry picked from commit 15853a5fc9548d9805a2ef22f24e2eb580198341)
DeltaFile
+21-19sys/dev/e1000/e1000_82575.c
+21-191 files

FreeBSD/src 1f78bbbusr.sbin/newsyslog newsyslog.c newsyslog.conf.5

newsyslog.conf(5): Accept human unit suffix in the size filed

MFC after:      1 week
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1505
DeltaFile
+16-3usr.sbin/newsyslog/newsyslog.c
+6-3usr.sbin/newsyslog/newsyslog.conf.5
+1-1usr.sbin/newsyslog/Makefile
+23-73 files

FreeBSD/src ab540d4sys/dev/igc if_igc.c igc_regs.h

igc: sysctl for TCP flag handling during TSO

Add tso_tcp_flags_mask_first_segment, tso_tcp_flags_mask_middle_segment,
and tso_tcp_flags_mask_last_segment sysctl-variables to control the
handling of TCP flags during TSO.

This allows to change the masks appropriate for classical ECN and to
configure appropriate masks for accurate ECN.

MFC after:      3 days
Sponsored by:   Netflix
DeltaFile
+59-0sys/dev/igc/if_igc.c
+2-0sys/dev/igc/igc_regs.h
+61-02 files

FreeBSD/src 90853dfsys/dev/e1000 if_em.c

e1000: sysctl for TCP flag handling during TSO

Add tso_tcp_flags_mask_first_segment, tso_tcp_flags_mask_middle_segment,
and tso_tcp_flags_mask_last_segment sysctl-variables to control the
handling of TCP flags during TSO.

This allows to change the masks appropriate for classical ECN and to
configure appropriate masks for accurate ECN.

Reviewed by:    rrs
MFC after:      3 days
Sponsored by:   Netflix
Differential Revision:  https://reviews.freebsd.org/D44259
DeltaFile
+56-0sys/dev/e1000/if_em.c
+56-01 files

FreeBSD/src d99eb82sys/dev/rtwn if_rtwnvar.h, sys/dev/rtwn/usb rtwn_usb_tx.c rtwn_usb_attach.c

rtwn: change the USB TX transfers to only do one pending transfer per endpoint

I found I was getting constant device timeouts when doing anything
more complicated than a single SSH on laptop with RTL8811AU.

After digging into it, i found a variety of fun situations, including
traffic stalls that would recover w/ a shorter (1 second) USB transfer
timeout.  However, the big one is a straight up hang of any TX endpoint
until the NIC was reset.  The RX side kept going just fine; only the
TX endpoints would hang.

Reproducing it was easy - just start up a couple of traffic streams
on different WME AC's - eg a best effort + bulk transfer, like
browsing the web and doing an ssh clone - throw in a ping -i 0.1
to your gateway, and it would very quickly hit device timeouts every
couple of seconds.

I put everything into a single TX EP and the hangs went away.
Well, mostly.

    [38 lines not shown]
DeltaFile
+82-18sys/dev/rtwn/usb/rtwn_usb_tx.c
+17-9sys/dev/rtwn/usb/rtwn_usb_attach.c
+17-6sys/dev/rtwn/usb/rtwn_usb_ep.c
+8-4sys/dev/rtwn/usb/rtwn_usb_var.h
+4-1sys/dev/rtwn/usb/rtwn_usb_tx.h
+1-1sys/dev/rtwn/if_rtwnvar.h
+129-396 files

FreeBSD/src eea2e08sys/dev/ixgbe if_ix.c

ixgbe: sysctl for TCP flag handling during TSO

Add tso_tcp_flags_mask_first_segment, tso_tcp_flags_mask_middle_segment,
and tso_tcp_flags_mask_last_segment sysctl-variables to control the
handling of TCP flags during TSO.

This allows to fix the masks appropriate for classical ECN and to
configure appropriate masks for accurate ECN.

Michael notes emperically 82599 has an unexpected middle mask:
Chip  First Middle Last
82599 0xFF6 0xFF6  0xF7F

which should be fixed up to 0xF76 (RFC 3168) in a future commit.

Reviewed by:    rrs, rscheff
MFC after:      3 days
Sponsored by:   Netflix
Differential Revision:  https://reviews.freebsd.org/D44258
DeltaFile
+56-0sys/dev/ixgbe/if_ix.c
+56-01 files

FreeBSD/src 2e8ab3dlib/libc/sys fork.2

fork: Document _Fork (and fork) as POSIX 2024

Also remove some information from HISTORY that is no longer needed (and
could be confusing), now that _Fork is part of a standard.

Reported by:    kib
Reviewed by:    imp, kib
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D47588

(cherry picked from commit 566c039d1e7555343fcf6439a10e56f5a632c0fe)
DeltaFile
+7-7lib/libc/sys/fork.2
+7-71 files

FreeBSD/src 098ed26lib/libc/stdio printf.3 mktemp.3, lib/libc/stdlib reallocarray.3 getenv.3

libc: indicate existing functions that are POSIX 2024

Reviewed by:    brooks, imp
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D47581

(cherry picked from commit dfa0ac74c2fbc1cde3e8cdb1ab9fe5cbb90a9b16)
DeltaFile
+6-0lib/libc/stdio/printf.3
+3-3lib/libc/string/memmem.3
+4-1lib/libc/stdio/mktemp.3
+4-0lib/libc/stdlib/reallocarray.3
+2-1lib/libc/stdlib/getenv.3
+19-55 files

FreeBSD/src 3789810sys/netinet tcp_input.c

tcp: avoid bcopy() in tcp_mss_update()
DeltaFile
+5-8sys/netinet/tcp_input.c
+5-81 files

FreeBSD/src 2944a88sys/netinet tcp_subr.c

tcp: remove so != NULL check

In the modern FreeBSD network stack a socket outlives its tcpcb.
DeltaFile
+1-6sys/netinet/tcp_subr.c
+1-61 files