HardenedBSD/src 3df1bc5 — sys/net toeplitz.c

Merge remote-tracking branch 'rad/hardened/current/master' into hardened/current/pledge
DeltaFile
+1-2sys/net/toeplitz.c
+1-21 files

HardenedBSD/src 151e292 — sys/net toeplitz.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+1-2sys/net/toeplitz.c
+1-21 files

HardenedBSD/src 450eb9e — sys/cddl/dev/sdt sdt.c, sys/i386/include sdt_machdep.h

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+10-5sys/x86/x86/sdt_machdep.c
+6-1sys/i386/include/sdt_machdep.h
+1-1sys/cddl/dev/sdt/sdt.c
+17-73 files

HardenedBSD/src 8b22917 — sys/net toeplitz.c

toeplitz: Bound the key by its length

toeplitz_hash() takes the length of the key but read RSS_KEYSIZE bytes
of it whatever that length was: past the end of a shorter key, and not
all of a longer one.  Bound it by the length it is given.  The callers,
the RSS hash and the multipath hash in in_fib.c and in6_fib.c, all pass
40-byte keys, RSS_KEYSIZE, so nothing changes for them.

toeplitz.c no longer needs <net/rss_config.h>.

Sponsored by:   Rubicon Communications, LLC ("Netgate")
DeltaFile
+1-2sys/net/toeplitz.c
+1-21 files

HardenedBSD/src cc15a53 — sys/cddl/dev/sdt sdt.c

sdt: Don't clear a probe's ID when disabling it

A thread may have jumped out of a tracepoint but not yet loaded the
probe ID when sdt_disable() clears it. It then calls dtrace_probe()
with ID 0, which reads far past the end of the probe array.

Leave the ID set. dtrace_probe() does nothing for a disabled probe,
and sdt_enable() sets the ID each time.

Reviewed by:    markj
MFC after:      1w
Co-authored-by: Claude Opus 5.5
Differential Revision:  https://reviews.freebsd.org/D62154

(cherry picked from commit ef6d8eb703b959a91c28222a20b3f3a04ba4ff1a)
DeltaFile
+1-1sys/cddl/dev/sdt/sdt.c
+1-11 files

HardenedBSD/src 234fb7a — sys/i386/include sdt_machdep.h, sys/x86/x86 sdt_machdep.c

amd64/sdt: Use a single NOP for disabled probes

sdt_tracepoint_restore() wrote five one-byte NOPs.  A thread
interrupted between them could resume in the middle of the jump
written when the probe was next enabled, and run its displacement
as instructions.  Write the single five-byte NOP that the compiler
emits for _SDT_ASM_PATCH_INSTR instead.

Reviewed by:    markj
MFC after:      1w
Co-authored-by: Claude Opus 5.5
Differential Revision:  https://reviews.freebsd.org/D62153

(cherry picked from commit b8180220627577c403b04de3647ac631798fdb8b)

i386/sdt: Use a single NOP for disabled probes

On i386, both _SDT_ASM_PATCH_INSTR and sdt_tracepoint_restore()
used five one-byte NOPs. Use "leal %ds:0(%esi,%eiz,1), %esi"

    [12 lines not shown]
DeltaFile
+10-5sys/x86/x86/sdt_machdep.c
+6-1sys/i386/include/sdt_machdep.h
+16-62 files

HardenedBSD/src 2be4a33 — contrib/xz ChangeLog, contrib/xz/src/liblzma/simple x86.c

Merge remote-tracking branch 'rad/hardened/current/master' into hardened/current/pledge
DeltaFile
+1,310-0contrib/xz/ChangeLog
+333-48sys/contrib/openzfs/.github/workflows/labels.yml
+344-7sys/contrib/openzfs/module/os/linux/zfs/zpl_super.c
+333-0sys/contrib/openzfs/tests/zfs-tests/cmd/mmap_fadvise_readahead_subpage.c
+230-75contrib/xz/src/liblzma/simple/x86.c
+264-0sys/contrib/openzfs/tests/zfs-tests/cmd/mmap_fadvise_readahead_zero_partial.c
+2,814-130315 files not shown
+10,111-1,255321 files

HardenedBSD/src e965fb7 — contrib/xz ChangeLog, contrib/xz/src/liblzma/simple x86.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+1,310-0contrib/xz/ChangeLog
+333-48sys/contrib/openzfs/.github/workflows/labels.yml
+344-7sys/contrib/openzfs/module/os/linux/zfs/zpl_super.c
+333-0sys/contrib/openzfs/tests/zfs-tests/cmd/mmap_fadvise_readahead_subpage.c
+230-75contrib/xz/src/liblzma/simple/x86.c
+264-0sys/contrib/openzfs/tests/zfs-tests/cmd/mmap_fadvise_readahead_zero_partial.c
+2,814-130315 files not shown
+10,111-1,255321 files

HardenedBSD/src e0b7b2a — sys/contrib/openzfs/.github/workflows labels.yml, sys/contrib/openzfs/cmd ztest.c

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+744-4sys/contrib/openzfs/.github/workflows/labels.yml
+322-41sys/contrib/openzfs/cmd/ztest.c
+336-14sys/contrib/openzfs/module/zfs/zil.c
+290-40sys/contrib/openzfs/module/zfs/vdev_raidz.c
+229-61sys/contrib/openzfs/scripts/kmodtool
+204-49sys/contrib/openzfs/module/zfs/spa.c
+2,125-209314 files not shown
+10,732-1,635320 files

HardenedBSD/src 03a8428 — sys/contrib/openzfs/.github/workflows labels.yml, sys/contrib/openzfs/module/os/linux/zfs zpl_super.c

zfs: merge openzfs/zfs at 17d376863

Notable upstream pull request merges:
 #19318 9a9729c0d brt: forget the vdev array when freeing iT
 #19336 -multiple Disable Direct I/O nopwrite for blocks with a pending free
 #19767 148f6883a Don't trust dn_maxblkid for power-of-2 blocks in
                  dmu_read_impl()
 #19773 258d9d71f libzfs: estimate a clone's first snapshot from its origin
 #19780 a45cdc032 arc_read(): allocate the read buffer before inserting the
                  header
 #19865 81753509f dsl: preserve atomic batch snapshot destruction
 #19872 -multiple FreeBSD: honour the VOP_RENAME() flags
 #19812 fe2c5fe60 Don't lose available space while block clones sync
 #19817 6a1475566 libzfs: FreeBSD: retry an unmount a mount update holds
                  busy
 #19836 -multiple anyraid: fail the creation when a disk is too small or
                  fails to open
 #19849 4bc572f2d anyraid: allow a child capacity of 65536 tiles
 #19864 81c421c69 raidz: lock the full allocation during expansion

    [22 lines not shown]
DeltaFile
+333-48sys/contrib/openzfs/.github/workflows/labels.yml
+344-7sys/contrib/openzfs/module/os/linux/zfs/zpl_super.c
+333-0sys/contrib/openzfs/tests/zfs-tests/cmd/mmap_fadvise_readahead_subpage.c
+264-0sys/contrib/openzfs/tests/zfs-tests/cmd/mmap_fadvise_readahead_zero_partial.c
+236-0sys/contrib/openzfs/tests/zfs-tests/cmd/quotactl_fd.c
+200-0sys/contrib/openzfs/tests/zfs-tests/cmd/mmap_fadvise_readahead_writer.c
+1,710-55260 files not shown
+7,833-912266 files

HardenedBSD/src 3c21b45 — sys/contrib/openzfs/.github/workflows labels.yml, sys/contrib/openzfs/cmd ztest.c

zfs: merge openzfs/zfs at 443d76f01

OpenZFS 2.4.5

Notable upstream pull request merges:
 #18093 -multiple L2ARC: Rework write throttling with DWPD rate limiting
                  and parallel writes
 #18179 4fa094912 Allow rewrite skip cloned and snapshotted blocks
 #18310 5096951f8 Remove forced zfs_umount() from zfs_resume_fs() bail path
 #18387 90b632b05 Handle raidz errors <= nparity rather than ignoring
 #18718 -multiple zfs_zget and zfs_vget has inconsistent for unlink
 #18812 029766eda dbuf: use dirty record size for overridden writes
 #18819 -multiple ddt: fix refcount bypass and gang member leak for dedup
                  gang blocks
 #18822 e5decdeb5 dnode_sync: Relax constraint on indirect freeing
 #18826 -multiple FDT: don't extend dedup across RAIDZ expansion
 #18853 6ff08fa49 Fix double free when cloning a block with a pending free
 #18861 ed3ce9102 Fix out-of-bound access when resizing in receive_spill
 #18897 93e458c12 arc: fix race between arc_release() and arc_read_done()

    [77 lines not shown]
DeltaFile
+744-4sys/contrib/openzfs/.github/workflows/labels.yml
+322-41sys/contrib/openzfs/cmd/ztest.c
+336-14sys/contrib/openzfs/module/zfs/zil.c
+290-40sys/contrib/openzfs/module/zfs/vdev_raidz.c
+229-61sys/contrib/openzfs/scripts/kmodtool
+204-49sys/contrib/openzfs/module/zfs/spa.c
+2,125-209313 files not shown
+10,730-1,633319 files

HardenedBSD/src 58d6133 — sys/fs/nfsclient nfs_clnfsiod.c

nfs_clnfsiod.c: Fix a race related to thread startup

This patch ensures that the new thread is handled correctly.

PR:     300581
Reviewed by:    rmacklem
MFC after:      2 weeks
DeltaFile
+7-4sys/fs/nfsclient/nfs_clnfsiod.c
+7-41 files

HardenedBSD/src b60bc89 — usr.sbin/bhyve pci_e82545.c, usr.sbin/bsnmpd/modules/snmp_hostres hostres_storage_tbl.c

fix typos in src comments

Reviewed by: maxim
Approved by: maxim
Differential Revision: https://reviews.freebsd.org/D62509
DeltaFile
+2-2usr.sbin/efitable/efitable.c
+2-2usr.sbin/bsnmpd/modules/snmp_hostres/hostres_storage_tbl.c
+1-1usr.sbin/rtadvd/rtadvd.c
+1-1usr.sbin/rpc.lockd/lockd_lock.c
+1-1usr.sbin/jail/config.c
+1-1usr.sbin/bhyve/pci_e82545.c
+8-81 files not shown
+9-97 files

HardenedBSD/src 7c41d57 — sys/fs/nfs nfs_var.h, sys/fs/nfsclient nfs_clstate.c nfs_clrpcops.c

nfscl: Remove cruft for NFSv4.0 callbacks

Commit 71ac1ec5c9d9 disabled callbacks for NFSv4.0.
This commit cleans up cruft related to NFSv4.0 callbacks.

Since callbacks are disabled for NFSv4.0, this patch
should not have any semantics effect.

A future commit will clean up the nfscbd(8) daemon.

MFC after:      2 weeks
DeltaFile
+7-37sys/fs/nfsclient/nfs_clkrpc.c
+1-28sys/fs/nfsclient/nfs_clport.c
+9-17sys/fs/nfsclient/nfs_clrpcops.c
+1-3sys/fs/nfsclient/nfs_clstate.c
+0-1sys/fs/nfs/nfs_var.h
+18-865 files

HardenedBSD/src 9838310 — . ObsoleteFiles.inc

ObsoleteFiles.inc: Correct two old paths

At the time we retired the cp(4) driver, we still had per-arch man
subdirectories.

Fixes:          895992bb66d2 ("retire cp(4) driver")
Reviewed by:    emaste
Differential Revision:  https://reviews.freebsd.org/D62503

(cherry picked from commit 1eb959c52c684dfa8f3efd17897fba70c006d62e)
DeltaFile
+2-2ObsoleteFiles.inc
+2-21 files

HardenedBSD/src 1eb959c — . ObsoleteFiles.inc

ObsoleteFiles.inc: Correct two old paths

At the time we retired the cp(4) driver, we still had per-arch man
subdirectories.

Fixes:          895992bb66d2 ("retire cp(4) driver")
Reviewed by:    emaste
Differential Revision:  https://reviews.freebsd.org/D62503
DeltaFile
+2-2ObsoleteFiles.inc
+2-21 files

HardenedBSD/src 4889a85 — contrib/xz ChangeLog, contrib/xz/src/common tuklib_cgroup.c

MFV: xz 5.8.5.

MFC after:      2 days
DeltaFile
+1,310-0contrib/xz/ChangeLog
+230-75contrib/xz/src/liblzma/simple/x86.c
+193-0contrib/xz/src/common/tuklib_cgroup.c
+77-45contrib/xz/src/liblzma/common/stream_encoder_mt.c
+62-18contrib/xz/src/liblzma/lz/lz_encoder_hash.h
+42-7contrib/xz/src/liblzma/lzma/lzma2_encoder.c
+1,914-14535 files not shown
+2,242-24241 files

HardenedBSD/src 1cd7f8b — sys/dev/apex apex.c, sys/dev/gasket gasket_core.c gasket_mmap.c

Merge remote-tracking branch 'rad/hardened/current/master' into hardened/current/pledge
DeltaFile
+1,154-0sys/dev/apex/apex.c
+536-0sys/dev/gasket/gasket_chardev.c
+428-0sys/dev/gasket/gasket_ptbl_alloc.c
+417-0sys/dev/gasket/gasket_page_table.c
+369-0sys/dev/gasket/gasket_mmap.c
+263-0sys/dev/gasket/gasket_core.c
+3,167-024 files not shown
+4,529-1530 files

HardenedBSD/src 2b71075 — sys/dev/apex apex.c, sys/dev/gasket gasket_core.c gasket_mmap.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+1,154-0sys/dev/apex/apex.c
+536-0sys/dev/gasket/gasket_chardev.c
+428-0sys/dev/gasket/gasket_ptbl_alloc.c
+417-0sys/dev/gasket/gasket_page_table.c
+369-0sys/dev/gasket/gasket_mmap.c
+263-0sys/dev/gasket/gasket_core.c
+3,167-024 files not shown
+4,529-1530 files

HardenedBSD/src 0fabab1 — lib/libc/stdio vfwscanf.c, lib/libc/tests/stdio swscanf_test.c sscanf_test.c

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+65-33sys/dev/acpi_support/acpi_ibm.c
+60-0lib/libc/tests/stdio/swscanf_test.c
+60-0lib/libc/tests/stdio/sscanf_test.c
+27-26sys/compat/linuxkpi/common/src/linux_compat.c
+45-8lib/libc/stdio/vfwscanf.c
+3-12lib/libsys/kldstat.2
+260-7911 files not shown
+312-10817 files

HardenedBSD/src eefa078 — sys/dev/acpi_support acpi_ibm.c

acpi_support/acpi_ibm.c: move the 'key' definition to the block that uses it

This eliminates a warning from compilation of kernels without
EVDEV_SUPPORT.

Fixes:  7e7f8b2c6641 ("acpi_ibm: Report mic mute key evdev events")
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 31b7d80016a37e4de10f166bc7ff353c7d1ef534)
DeltaFile
+2-2sys/dev/acpi_support/acpi_ibm.c
+2-21 files

HardenedBSD/src 73856e5 — sys/dev/acpi_support acpi_ibm.c

acpi_ibm: handle ThinkPad programmable star key

Handle extended HKEY events separately from legacy event mask indices.
Report the programmable star key as KEY_BOOKMARKS instead of treating it
as brightness down, and preserve extended event arguments for devd.

Tested on: ThinkPad X1 Carbon Gen 9

Pull Request: https://github.com/freebsd/freebsd-src/pull/2595
MFC after:      3 days

Reviewed by:    ngie, adrian
Differential Revision:  https://reviews.freebsd.org/D62159

(cherry picked from commit 225fadb1697803353f4664fa8618fdf1dbc8edff)
DeltaFile
+22-2sys/dev/acpi_support/acpi_ibm.c
+22-21 files

HardenedBSD/src b90c66a — sys/dev/usb usbdevs, sys/dev/usb/net if_ure.c

ure: add USB device IDs for additional RTL8152/RTL8153 adapters

Add device IDs for several USB Ethernet adapters that use
RTL8152 and RTL8153 chips but are not yet recognized by ure(4).
This includes adapters from Cisco/Linksys, D-Link, Lenovo,
Microsoft Surface, Realtek, Samsung, and TP-Link.

All added devices use chip revisions already handled by
ure_read_chipver().

Signed-off-by: Christos Longros <chris.longros at gmail.com>

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D55748

(cherry picked from commit 76c082180719f42481289eb837e44b055efc003a)
DeltaFile
+11-2sys/dev/usb/net/if_ure.c
+7-0sys/dev/usb/usbdevs
+18-22 files

HardenedBSD/src 30c1310 — share/man/man4 acpi_ibm.4

acpi_ibm.4: Remove extraneous .Tn

As flagged by mandoc linter.

Event:          Halifax Hackathon 202606
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 8de929962a38855c8c38d117d20b71d7c9eaee77)
DeltaFile
+1-3share/man/man4/acpi_ibm.4
+1-31 files

HardenedBSD/src 61e4c84 — sys/dev/acpi_support acpi_ibm.c

acpi_ibm: register all appropriate sysctls as uint

All sysctls except thermal sensor readings and the handlerevents
whitelist-separated string are bitmasks or small integers. This avoids some
bitmasks being erroneously displayed as negative values.

Signed-off-by: Quentin Thébault <quentin.thebault at defenso.fr>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1824
(cherry picked from commit e881b8ee0bc7bf552c9c0a63c7d84542243f9f0d)
DeltaFile
+2-2sys/dev/acpi_support/acpi_ibm.c
+2-21 files

HardenedBSD/src 9a24b8f — share/man/man4 acpi_ibm.4, sys/dev/acpi_support acpi_ibm.c

acpi_ibm(4): Refer to "mic *mute* led" instead of "mic led"

Event:          Halifax Hackathon 202606
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 40ab0a05640051eed02ccbf1c5150e97e8cc27da)
DeltaFile
+1-1sys/dev/acpi_support/acpi_ibm.c
+1-1share/man/man4/acpi_ibm.4
+2-22 files

HardenedBSD/src 2b94cc4 — share/man/man4 acpi_ibm.4, sys/dev/acpi_support acpi_ibm.c

acpi_ibm: Report mic mute key evdev events

While here, make the naming of micmute_led more consistent.

PR:             296140
Event:          Halifax Hackathon 202606
Reported by:    David Lundqvist
Reviewed by:    olce
Tested by:      David Lundqvist, Oleksandr Kryvulia
Co-authored-by: David Lundqvist
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 7e7f8b2c66410bcc6408482be73bd9c059e2bbe2)
DeltaFile
+41-29sys/dev/acpi_support/acpi_ibm.c
+5-1share/man/man4/acpi_ibm.4
+46-302 files

HardenedBSD/src 429e975 — share/man/man4 acpi_ibm.4

acpi_ibm.4: Fix mic_led sysctl name

Fixes:  707347f88649 ("Add missing documentation for dev.acpi_ibm.0.mic_led added in r335304")
Event:          Halifax Hackathon 202606
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit b9d6497bd1f16e906f4dc6e600368b86d3fe0317)
DeltaFile
+1-1share/man/man4/acpi_ibm.4
+1-11 files

HardenedBSD/src 0158ac0 — lib/libc/tests/stdio swscanf_test.c sscanf_test.c

stdio: Add test cases for scansets

Add test cases that exercise scanf() / wscanf() scansets, including
hyphenated ranges and the missing closing bracket bug we recently fixed.

MFC after:      1 week
Reviewed by:    kevans, emaste
Differential Revision:  https://reviews.freebsd.org/D62201

(cherry picked from commit c24ab9f32d9bb63b426f346cb5f28c00e63922c2)
DeltaFile
+55-0lib/libc/tests/stdio/swscanf_test.c
+55-0lib/libc/tests/stdio/sscanf_test.c
+110-02 files

HardenedBSD/src bc41f99 — lib/libc/tests/stdio swprintf_test.c snprintf_test.c

tests: Simplify printf tests

ATF can now directly compare wchar strings.

MFC after:      1 week
Reviewed by:    ngie
Differential Revision:  https://reviews.freebsd.org/D61617

(cherry picked from commit c855b9431ffc1af81b2a135bcce4da5fb6b4f943)
DeltaFile
+2-2lib/libc/tests/stdio/swprintf_test.c
+2-2lib/libc/tests/stdio/snprintf_test.c
+4-42 files