HardenedBSD/src e41f616lib/libprocstat libprocstat.c, sys/dev/mlx5/mlx5_en mlx5_en_main.c mlx5_en_rx.c

Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi
DeltaFile
+319-0usr.bin/procstat/procstat_kqueue.c
+139-2sys/kern/kern_event.c
+75-52sys/dev/mlx5/mlx5_en/mlx5_en_main.c
+75-32usr.bin/procstat/procstat.1
+60-15sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
+66-0lib/libprocstat/libprocstat.c
+734-10127 files not shown
+990-20733 files

HardenedBSD/src f27df27lib/libprocstat libprocstat.c, sys/dev/mlx5/mlx5_en mlx5_en_main.c mlx5_en_rx.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+319-0usr.bin/procstat/procstat_kqueue.c
+139-2sys/kern/kern_event.c
+75-52sys/dev/mlx5/mlx5_en/mlx5_en_main.c
+75-32usr.bin/procstat/procstat.1
+60-15sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
+66-0lib/libprocstat/libprocstat.c
+734-10127 files not shown
+990-20733 files

HardenedBSD/ports d182a01archivers/file-roller pkg-plist, editors/ghex pkg-plist

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+5,652-2,417www/groupoffice/pkg-plist
+241-47editors/ghex/pkg-plist
+111-3x11/gnome-terminal/pkg-plist
+47-28archivers/file-roller/pkg-plist
+45-0graphics/gimp-app/files/patch-configure.ac
+0-33graphics/gimp-app/files/patch-configure
+6,096-2,52855 files not shown
+6,279-2,67761 files

HardenedBSD/src f402078sys/vm device_pager.c

device_pager: Assert that the handle is not NULL

Reviewed by:    kib
Differential Revision:  https://reviews.freebsd.org/D49333
DeltaFile
+2-0sys/vm/device_pager.c
+2-01 files

HardenedBSD/src 00d78c5sys/kern kern_rwlock.c kern_sx.c

rwmlock/rwlock/sx: Print the pointer of destroyed locks in panic messages

Suggested by:   markj
Reviewed by:    kib, markj
Sponsored by:   AFRL, DARPA
Differential Revision:  https://reviews.freebsd.org/D49332
DeltaFile
+10-8sys/kern/kern_rwlock.c
+9-8sys/kern/kern_sx.c
+4-4sys/kern/kern_rmlock.c
+23-203 files

HardenedBSD/src a52a51asys/kern kern_rwlock.c kern_sx.c

lockmgr/rmlock/rwlock/sx: Make various assertions more robust

Print pointers to locks instead of their names to avoid a nested panic
if the lock object is corrupted.

Reviewed by:    markj
Sponsored by:   AFRL, DARPA
Differential Revision:  https://reviews.freebsd.org/D49331
DeltaFile
+12-12sys/kern/kern_rwlock.c
+10-10sys/kern/kern_sx.c
+6-6sys/kern/kern_rmlock.c
+2-2sys/kern/kern_lock.c
+30-304 files

HardenedBSD/ports 13904d7lang/gcc11 Makefile, lang/gcc12 Makefile

gcc*: properly define USE_LDCONFIG32 for multilib
DeltaFile
+4-0lang/gcc13/Makefile
+4-0lang/gcc11/Makefile
+4-0lang/gcc12-devel/Makefile
+4-0lang/gcc12/Makefile
+4-0lang/gcc13-devel/Makefile
+4-0lang/gcc14-devel/Makefile
+24-02 files not shown
+32-08 files

HardenedBSD/ports a8a7c6fMk bsd.port.mk

Mk/bsd.port.mk: consider USE_LDCONFIG32 for provides/requires

With newer pkg we need to also take in account USE_LDCONFIG32
in the path where we do provide lib32 libraries
DeltaFile
+2-1Mk/bsd.port.mk
+2-11 files

HardenedBSD/src c56e753sys/netinet in_pcb.c

inpcb: make sure we don't pass uninitialized faddr to in_pcbladdr()

This very theoretical edge case was discovered by Coverity, not sure if
it was introduced by 2af953b132ee or was there before.

CID:                    1593695
Fixes:                  2af953b132ee8d2eb4d8d7bb15fc38bf04dde348
DeltaFile
+7-8sys/netinet/in_pcb.c
+7-81 files

HardenedBSD/src c78a14asys/netinet in_pcb.c

inpcb: in_pcb_lport_dest() doesn't use lportp as input argument

This assignment just created false positive analyzer report.

CID:                    1593692
DeltaFile
+0-1sys/netinet/in_pcb.c
+0-11 files

HardenedBSD/src 5f42f87sys/netinet6 in6_pcb.c

inpcb: in_pcbinshash() can't fail on connect(2)

CID:                    1593687
DeltaFile
+2-1sys/netinet6/in6_pcb.c
+2-11 files

HardenedBSD/ports 2e67831sysutils/desktop-installer distinfo Makefile

sysutils/desktop-installer: Update to 1.1.0.6

Install tk-wrapper instead of specific tk version
In response to the sudden disappearance of tk87 from ports
DeltaFile
+3-3sysutils/desktop-installer/distinfo
+2-2sysutils/desktop-installer/Makefile
+5-52 files

HardenedBSD/ports 8c92b9ddeskutils/feathernotes distinfo Makefile

deskutils/feathernotes: update the port to version 1.3.1.
DeltaFile
+3-3deskutils/feathernotes/distinfo
+2-2deskutils/feathernotes/Makefile
+3-0deskutils/feathernotes/pkg-plist
+8-53 files

HardenedBSD/ports 4a2804dgraphics/gimp-app Makefile, graphics/gimp-app/files patch-configure.ac patch-configure

graphics/gimp-app: patch configure.ac instead of configure

This makes importing upstream commits or merge requests easier in
addition to keeping track of our changes. Pre-generated configure
scripts are only present in release tarballs, but all modifications
after/separate from the fact only happen in configure.ac, so generate
the configure script every time.
DeltaFile
+45-0graphics/gimp-app/files/patch-configure.ac
+0-33graphics/gimp-app/files/patch-configure
+4-4graphics/gimp-app/Makefile
+49-373 files

HardenedBSD/ports 1ce890ddevel/py-ordered-set Makefile

devel/py-ordered-set: convert to USE_PYTHON=pep517

setup.py only still exists for some kind of legacy compatibility;
the package itself uses flit-core to build. The correct pytest
configuration is included in the PEP-517 configuration.

No functional changes.

While here, update WWW

PR: 280661
Approved by: antoine (maintainer, via PR assignment)
Differential Revision: https://reviews.freebsd.org/D46235
DeltaFile
+4-8devel/py-ordered-set/Makefile
+4-81 files

HardenedBSD/src 0832381usr.bin/procstat procstat.1

procstat.1: sort subcommands

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D49163
DeltaFile
+34-34usr.bin/procstat/procstat.1
+34-341 files

HardenedBSD/src 4cf6caelib/libc/gen sysctl.3

Document KERN_PROC_KQUEUE

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D49163
DeltaFile
+10-0lib/libc/gen/sysctl.3
+10-01 files

HardenedBSD/src 9491ae6usr.bin/procstat procstat.1

procstat.1: correct description of the kstack subcommand after removal of swapping

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
Differential revision:  https://reviews.freebsd.org/D49163
DeltaFile
+1-1usr.bin/procstat/procstat.1
+1-11 files

HardenedBSD/src d76a31cusr.bin/procstat procstat.1

procstat.1: document kqueues

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D49163
DeltaFile
+41-0usr.bin/procstat/procstat.1
+41-01 files

HardenedBSD/src 8289705usr.bin/procstat procstat.1

procstat.1: document rlimitusage

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D49163
DeltaFile
+2-0usr.bin/procstat/procstat.1
+2-01 files

HardenedBSD/src bf46aeclib/libprocstat libprocstat.c libprocstat.h

libprocstat: add helper to query knotes for specific kqueue

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D49163
DeltaFile
+66-0lib/libprocstat/libprocstat.c
+4-0lib/libprocstat/libprocstat.h
+2-0lib/libprocstat/Symbol.map
+72-03 files

HardenedBSD/src 0a7c164sys/kern sys_eventfd.c

kern/sys_eventfd.c: fix includes

Remove redundant includes like sys/types.h and sys/param.h due to
sys/systm.h. Sort alphabetically.

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

HardenedBSD/src e60f608sys/kern kern_event.c vfs_subr.c, sys/sys user.h event.h

Add sysctl kern.proc.kqueue

reporting registered events in the specified kqueue.

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D49163
DeltaFile
+139-2sys/kern/kern_event.c
+46-4sys/kern/vfs_subr.c
+28-0sys/sys/user.h
+18-2sys/kern/sys_pipe.c
+5-0sys/sys/event.h
+1-0sys/vm/sg_pager.c
+237-81 files not shown
+238-87 files

HardenedBSD/src 28f4cf9usr.bin/procstat procstat_kqueue.c procstat.c

procstat(1): dump kqueues

Example output from the 'procstat -a kqueues':
    PID       KQFD   FILTER      IDENT      FLAGS     FFLAGS       DATA      UDATA     STATUS
   2323         13     READ          5          -          -          0 0x19c290616000          -
   2323         13     READ          8          -          -          0 0x19c29064f070          -
   2323         13     READ         10          -          -          0 0x19c29064f0e0          -
   2323         13   SIGNAL          1          C          -          0        0x0          -
   2323         13   SIGNAL          2          C          -          0        0x0          -
   2323         13   SIGNAL          3          C          -          0        0x0          -
   2323         13   SIGNAL         13          C          -          0        0x0          -
   2323         13   SIGNAL         14          C          -          0        0x0          -
   2323         13   SIGNAL         15          C          -          0        0x0          -
   2323         13   SIGNAL         20          C          -          0        0x0          -

Reviewed by:    markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D49163
DeltaFile
+319-0usr.bin/procstat/procstat_kqueue.c
+20-0usr.bin/procstat/procstat.c
+1-0usr.bin/procstat/procstat.h
+1-0usr.bin/procstat/Makefile
+341-04 files

HardenedBSD/src 480fc5bsys/dev/mlx5/mlx5_en en.h

mlx5en: bump MLX5E_MAX_BUSDMA_RX_SEGS

This is needed to accomodate more data segments in wqes for 64K receive
mbuf chains.

Reviewed by:    Ariel Ehrenberg <aehrenberg at nvidia.com>, Slava Shwartsman <slavash at nvidia.com>
Sponsored by:   NVidia networking
MFC after:      1 week
DeltaFile
+1-1sys/dev/mlx5/mlx5_en/en.h
+1-11 files

HardenedBSD/ports 9a8eb7eaudio/py-pyradio distinfo Makefile

audio/py-pyradio: Update to 0.9.3.11.7

Release changes:        https://github.com/coderholic/pyradio/releases/tag/0.9.3.11.7
Reported by:    Spiros Georgaras <notifications at github.com>
DeltaFile
+3-3audio/py-pyradio/distinfo
+1-1audio/py-pyradio/Makefile
+4-42 files

HardenedBSD/src 016f404sys/dev/mlx5/mlx5_en mlx5_en_rx.c mlx5_en_main.c

mlx5en: fix rq->wqe_sz usage

Define it as the size of the single data segment in wqe.

Reviewed by:    Ariel Ehrenberg <aehrenberg at nvidia.com>, Slava Shwartsman <slavash at nvidia.com>
Sponsored by:   NVidia networking
MFC after:      1 week
DeltaFile
+6-10sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
+6-6sys/dev/mlx5/mlx5_en/mlx5_en_main.c
+12-162 files

HardenedBSD/src c2987d7sys/dev/mlx5/mlx5_en en.h

mlx5: bump the max LRO packet size

The belief is that the 7*MCLBYTES limit was set to not hit the segment
limit for wqe busdma tag.  But with the current mbuf allocator it is not
possible, and even if it was, the corresponding wqe fill would simply
fail.

Reviewed by:    Ariel Ehrenberg <aehrenberg at nvidia.com>, Slava Shwartsman <slavash at nvidia.com>
Sponsored by:   NVidia networking
MFC after:      1 week
DeltaFile
+1-2sys/dev/mlx5/mlx5_en/en.h
+1-21 files

HardenedBSD/src 89491b1sys/dev/mlx5/mlx5_en mlx5_en_main.c

mlx5en: stop arbitrary limiting max wqe size

Since the times the driver accepts s/g receive buffers, there is no
sense in trying to use pre-existing mbuf clusters sizes.  The only
possible optimization is to use full page size if wqe size is greater
than MCLBYTES.

Reviewed by:    Ariel Ehrenberg <aehrenberg at nvidia.com>, Slava Shwartsman <slavash at nvidia.com>
Sponsored by:   NVidia networking
MFC after:      1 week
DeltaFile
+1-11sys/dev/mlx5/mlx5_en/mlx5_en_main.c
+1-111 files

HardenedBSD/src bc10238sys/dev/mlx5/mlx5_en mlx5_en_rx.c

mlx5: overwrite only the echo reply timestamp from the last packet in LRO

Reviewed by:    Ariel Ehrenberg <aehrenberg at nvidia.com>, Slava Shwartsman <slavash at nvidia.com>
Sponsored by:   NVidia networking
MFC after:      1 week
DeltaFile
+0-1sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
+0-11 files