FreeBSD/src 485ffe0 — sys/compat/linuxkpi/common/include/linux pci.h

LinuxKPI: Add drm support to dev_is_pci() function

drmn driver is attached to PCI bus via intermediate vgapci driver.
Check for it presence in device tree branch too to handle drm-kmod
cases.

MFC after:      2 month
Reviewed by:    emaste (LGTM)
Differential Revision:  https://reviews.freebsd.org/D60138
DeltaFile
+11-0sys/compat/linuxkpi/common/include/linux/pci.h
+11-01 files

FreeBSD/src 2edd355 — sys/dev/vt/hw/vga vt_vga.c

vt_vga: repost only a vgapci(4) video device

When vt(4) falls back to vt_vga, vga_init() passes vd_video_dev to
vga_pci_repost(), which expects a vgapci(4) device. The framebuffer
driver that set it need not provide one: drm-kmod's linux_fb passes the
parent of the DRM parent device, which is vgapci for LinuxKPI PCI
drivers but the PCI bus for virtio-gpu, whose DRM parent is the virtio
PCI transport. On x86, vga_pci_repost() then calls pci_get_class() on
the bus, which fails the accessor's KASSERT under INVARIANTS; without
INVARIANTS the class reads as 0 and the repost is skipped. Repost only
a vgapci device.

Signed-off-by:  Denis Borovikov <denis.borovikov at gmail.com>
Reviewed by:    wulf
Differential Revision:  https://reviews.freebsd.org/D60880
DeltaFile
+3-1sys/dev/vt/hw/vga/vt_vga.c
+3-11 files

FreeBSD/src 36cd9f2 — sys/dev/bnxt/bnxt_en if_bnxt.c

bnxt: avoid unintialized use of media_type in bnxt_add_media_types()

When 5e6e4f752833 landed, it inadvertently allowed unsupported / unknown
phys with  a valid link_info->sig_mode to use  media_type uninitialized.
Fix this by returning from those cases that do not assign a media_type
so as to avoid using it uninitialized.

Reported by: imp (forwarding an llm's post-commit review of previous
                  changes to this file)
Fixes: 5e6e4f752833
Reviewed by: imp, kbowling,  sumit.saxena_broadcom.com
Sponsored by: Netflix
Differential Revision: https://reviews.freebsd.org/D61164
DeltaFile
+2-2sys/dev/bnxt/bnxt_en/if_bnxt.c
+2-21 files

FreeBSD/src d1695bb — share/man/man4 iflib.4, sys/net iflib.c

iflib: prefer simple_tx over mp_ring

In preparation for removing mp_ring, enable simple_tx by default.
Users encountering bugs are still able to set the tunable:
        net.iflib.prefer_mpring="1"
at boot, but are encouraged to report any regressions so they
can be fixed.

My plan is to remove mp_ring assuming no major bugs are found in
simple_tx after a month or two.

Reviewed by: kbowling, netchild, rcm
Sponsored by: Netflix
Differential Revision:  https://reviews.freebsd.org/D61166
DeltaFile
+2-2share/man/man4/iflib.4
+1-1sys/net/iflib.c
+3-32 files

FreeBSD/src 2c6b014 — sys/dev/ixgbe if_ix.c

ixgbe: Guard E610 Link Default Override access

Reading Link Default Override uses the E610 Admin Command Interface,
whose mutex is initialized only on E610.  Calling it on other adapters
can hang attach, as observed on X520.

Skip the read on non-E610 devices, leaving the cached policy invalid so
that the existing link-state guard also skips force-link commands.

Reviewed by:    kgalazka
Fixes:          7868958f5c79 ("ix(4): Support Total Port Shutdown on E610")
MFC after:      1 week
Sponsored by:   BBOX.io
Differential Revision:  https://reviews.freebsd.org/D61144
DeltaFile
+4-0sys/dev/ixgbe/if_ix.c
+4-01 files

FreeBSD/ports 90edaea — ports-mgmt/pkg/files pkg_triggers.in

ports-mgmt/pkg: fix missing git add

Reported by:    otis
DeltaFile
+36-0ports-mgmt/pkg/files/pkg_triggers.in
+36-01 files

FreeBSD/ports 35b01ec — net-p2p/c-lightning Makefile Makefile.crates

net-p2p/c-lightning: upgrade from 26.06.9 to 26.06.10
DeltaFile
+21-111net-p2p/c-lightning/distinfo
+9-54net-p2p/c-lightning/Makefile.crates
+1-2net-p2p/c-lightning/Makefile
+31-1673 files

FreeBSD/src d67c363 — usr.sbin/bhyve virtio.c

bhyve: check paddr_guest2host return in _vq_record

_vq_record() stored the result of paddr_guest2host() without checking for
NULL. A guest descriptor with an invalid address causes a NULL dereference
in every virtio driver. Return early on failure; the caller sees zero
descriptors and discards the chain.

The indirect path already performs this check (line 357).

Reviewed by:    bnovkov
Differential Revision:  https://reviews.freebsd.org/D60870
MFC after:      1 week
DeltaFile
+7-0usr.sbin/bhyve/virtio.c
+7-01 files

FreeBSD/ports f16b6dd — ports-mgmt/pkg pkg-plist Makefile

ports-mgmt/pkg: update to 2.9.0

Major changes
=============
- Security hardening everywhere
- libpkg: add the pkg_repo_meta_extra() API
- full support for musl
- keys: fall back on the host keys when using a root directory
- pkg set -v: store the vital flag as a user override combined with the
  package's own flag
- clean: keep the exact archives of the installed packages
- db: add out-of-schema pkg_local and pkg_attr to improve changes
  without schema incompatibilities
- upgrade/install: report why each installed package that the plan
  removes
- upgrade/install: require an explicit confirmation before removing
  explicitly installed packages
- upgrade/install: require an explicit confirmation before removing
  explicitly installed packages

    [36 lines not shown]
DeltaFile
+3-3ports-mgmt/pkg/distinfo
+2-1ports-mgmt/pkg/Makefile
+1-0ports-mgmt/pkg/pkg-plist
+6-43 files

FreeBSD/ports eba6e7e — ports-mgmt/pkg-devel Makefile distinfo, ports-mgmt/pkg-devel/files patch-libpkg_Makefile.in

ports-mgmt/pkg-devel: 2.8.99.6

Changes since 2.8.99.4:
- Lots of hardening
- rwhich performances improvements
- repo: do not keep a meta file which failed its verification
- triggers: honour RUN_SCRIPTS
- pkg add: remove the temporary files and directories left by a failed
  extraction
- libfetch: sync with FreeBSD-current
- config: do not warn about an OS upgrade when the ABI describes another OS
- update all vendors software
- support for ML-DSA
- db: the read-only commands can read a database created by an older
  pkg(8) requiring upgrade of the schema
DeltaFile
+0-10ports-mgmt/pkg-devel/files/patch-libpkg_Makefile.in
+3-3ports-mgmt/pkg-devel/distinfo
+2-3ports-mgmt/pkg-devel/Makefile
+5-163 files

FreeBSD/src b357c94 — sys/kern sys_capability.c

cap_enter(2): stricter checks

- single-thread the process
  Make cap_enter() a serialization point, ensuring that no threads are
  executing with old credentials cached after the syscall returned.

- disallow entering capability mode if the file descriptor table or pwd
  are shared. They are shared after rfork(2), and allowing it lets another
  process grant additional privileges to the process in capability mode.

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D60963
DeltaFile
+18-2sys/kern/sys_capability.c
+18-21 files

FreeBSD/src e95e010 — sys/kern vfs_syscalls.c

kern: do not allow unprivileged chroot when pwd is shared

Unprivileged chroot(2), fchroot(2), chaltroot(2), and fchaltroot(2)
rely on PROC_NO_NEW_PRIVS to make set-ID images harmless under the
new root.  But the pwddesc can be shared by rfork(2) without RFFDG
with a process that has not enabled PROC_NO_NEW_PRIVS, and the
change of the root affects that process as well.  It can then
execute a set-ID image whose ELF interpreter is resolved under the
root controlled by the caller.

Refuse the unprivileged operations when the pwddesc is shared.
Processes that start sharing it later are created by the caller and
inherit PROC_NO_NEW_PRIVS.

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D60963
DeltaFile
+21-1sys/kern/vfs_syscalls.c
+21-11 files

FreeBSD/src f809179 — sys/kern vfs_syscalls.c

kern/vfs_syscalls.c: extract privilege check from kern_chroot()

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D60963
DeltaFile
+17-17sys/kern/vfs_syscalls.c
+17-171 files

FreeBSD/src 5276fba — sys/kern kern_descrip.c, sys/sys filedesc.h

pwddesc: add sharecount

The pd_refcount field counts both sharing processes and the transient
pdhold() references taken by sysctls and mountcheckdirs(), so it
cannot answer "is this pwddesc shared".  As a result pdunshare() made
needless copies while the pwddesc was held, and a copy made while
mountcheckdirs() held it lost the cwd/root update.

Add pd_sharecount, counting only processes using the pwddesc, and use
it for the sharing decision. Existing pd_refcount still manages the
lifetime.

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D60963
DeltaFile
+8-1sys/kern/kern_descrip.c
+2-1sys/sys/filedesc.h
+10-22 files

FreeBSD/src 82bbfe1 — lib/libsys cap_enter.2

cap_enter.2: document new behavior, in particular EBUSY

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D60963
DeltaFile
+16-0lib/libsys/cap_enter.2
+16-01 files

FreeBSD/src aff8d26 — lib/libsys chroot.2

chroot.2: document EPERM for shared pwd

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D60963
DeltaFile
+5-0lib/libsys/chroot.2
+5-01 files

FreeBSD/src c1ed6dd — . Makefile.inc1

Makefile.inc1: Fix bare $ characters

The '$' characters inside awk commands need to be $$ when appearing
inside a Makefile.  Without this, we generate empty src and src-sys
packages.

Reported by:    Stefan Grundmann
Fixes:          a8be89928930 ("build: Support got")
MFC after:      1 day

(cherry picked from commit 6a99232c75f6460b03a95019e2625828a158d457)
DeltaFile
+2-2Makefile.inc1
+2-21 files

FreeBSD/src c91dfb4 — sys/dev/sdio sdiob.c

sdiob: copy vendor/device IDs from card common CIS

Copy both the vendor and device IDs from the card common CIS if they are
absent in a function.

These are optional according to the spec. [1]

[1] Part E1 SDIO Simplified Specification §16.6

MFC after:      3 days

Reviewed by:    kibab, imp, adrian
Differential Revision:  https://reviews.freebsd.org/D60988
DeltaFile
+9-2sys/dev/sdio/sdiob.c
+9-21 files

FreeBSD/src b18489d — contrib/openbsm/bin/auditd audit_warn.c, contrib/openbsm/man audit_warn.5

auditd: Support logging directly to syslog

Every tenth call to auditwarnlog(), check that the audit_warn(5) script
exists and is executable by us.  If it is, execute it as previously;
otherwise, fall back to calling syslog(3) directly.

Additionally, if we choose to use the script and fail, also log the
original message to syslogd, not just the fact that we failed to log.

We could record the result of trying to execute the script, but that
would require pausing while it runs (or at least until the execve(2)
call has completed).

Retesting every tenth call is a little clunky but avoids having to
restart or signal auditd(8) to force it to notice a change in
availability, or adding a command-line option and / or modifying the
audit_control(5) syntax to let the user express a preference.

MFC after:      1 week

    [4 lines not shown]
DeltaFile
+38-1contrib/openbsm/bin/auditd/audit_warn.c
+7-1contrib/openbsm/man/audit_warn.5
+45-22 files

FreeBSD/src 173268f — contrib/openbsm/etc audit_warn, contrib/openbsm/man audit_warn.5

audit_warn: Avoid pointless fork and path search

While here, document what the script actually does, not what it once did
on a project branch somewhere that was never merged.

MFC after:      1 week
Sponsored by:   Klara, Inc.
Sponsored by:   Qualys, Inc.
Reviewed by:    allanjude
Differential Revision:  https://reviews.freebsd.org/D60171
DeltaFile
+5-6contrib/openbsm/man/audit_warn.5
+1-2contrib/openbsm/etc/audit_warn
+6-82 files

FreeBSD/src aa00f4c — usr.bin/logger logger.c

logger: Close syslog channel on exit

MFC after:      1 week
Sponsored by:   Klara, Inc.
Sponsored by:   Qualys, Inc.
Reviewed by:    oshogbo
Differential Revision:  https://reviews.freebsd.org/D60170
DeltaFile
+8-0usr.bin/logger/logger.c
+8-01 files

FreeBSD/ports af4401f — devel/py-cachebox/files patch-pyproject.toml

devel/py-cachebox: fix build by relaxing maturin version
DeltaFile
+9-0devel/py-cachebox/files/patch-pyproject.toml
+9-01 files

FreeBSD/ports 151f5cc — devel/py-cachebox Makefile distinfo, devel/py-cachebox/files patch-pyproject.toml

devel/py-cachebox: update 6.2.8 → 6.2.10
DeltaFile
+25-25devel/py-cachebox/distinfo
+13-13devel/py-cachebox/Makefile
+12-8devel/py-cachebox/files/patch-pyproject.toml
+50-463 files

FreeBSD/ports bac08ce — x11/rio Makefile distinfo

x11/rio: update 0.5.28 → 0.5.29
DeltaFile
+3-3x11/rio/distinfo
+1-2x11/rio/Makefile
+4-52 files

FreeBSD/ports 811b4d0 — audio/songrec Makefile distinfo

audio/songrec: update 0.8.0 → 0.8.1
DeltaFile
+3-3audio/songrec/distinfo
+1-1audio/songrec/Makefile
+4-42 files

FreeBSD/ports c3b5f72 — net-p2p/qbittorrent Makefile distinfo, net-p2p/qbittorrent/files patch-libtorrent-rasterbar2-settings

net-p2p/qbittorrent: update 5.2.4 → 5.3.0
DeltaFile
+0-11net-p2p/qbittorrent/files/patch-libtorrent-rasterbar2-settings
+3-3net-p2p/qbittorrent/distinfo
+2-3net-p2p/qbittorrent/Makefile
+5-173 files

FreeBSD/ports 900f717 — textproc/sad Makefile distinfo

textproc/sad: update 0.4.32 → 0.4.33
DeltaFile
+121-149textproc/sad/distinfo
+60-75textproc/sad/Makefile
+181-2242 files

FreeBSD/ports 0615753 — shells/atuin Makefile distinfo

shells/atuin: update 18.24.4 → 18.24.5
DeltaFile
+7-5shells/atuin/distinfo
+3-2shells/atuin/Makefile
+10-72 files

FreeBSD/ports 617b589 — lang/neocmakelsp Makefile distinfo

lang/neocmakelsp: update 0.11.2 → 0.12.0
DeltaFile
+27-27lang/neocmakelsp/distinfo
+13-13lang/neocmakelsp/Makefile
+40-402 files

FreeBSD/ports 80187fd — devel/cargo-hack Makefile distinfo

devel/cargo-hack: update 0.6.45 → 0.6.46
DeltaFile
+63-63devel/cargo-hack/distinfo
+31-32devel/cargo-hack/Makefile
+94-952 files