HardenedBSD/ports 5825dc7finance/odoo16 pkg-plist, lang/ruby30 pkg-plist

Merge remote-tracking branch 'origin/hardenedbsd/main' into shawn.webb/cross-dso-cfi/main
DeltaFile
+42,540-0finance/odoo16/pkg-plist
+13,458-9,815www/librewolf/files/patch-libwebrtc-generated
+0-17,715www/dojo/pkg-plist
+7,223-9,255www/firefox/files/patch-libwebrtc-generated
+0-13,366net/samba413/files/patch-samba-4.14.14
+0-12,721lang/ruby30/pkg-plist
+63,221-62,87218,969 files not shown
+344,754-329,27318,975 files

HardenedBSD/src 779020fsys/dev/sound unit.c unit.h, sys/dev/sound/pcm sound.c dsp.c

Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi
DeltaFile
+98-171sys/dev/sound/pcm/sound.c
+0-188sys/dev/sound/unit.c
+37-103sys/dev/sound/pcm/dsp.c
+0-52sys/dev/sound/unit.h
+44-6sys/dev/sound/pcm/channel.c
+1-20sys/dev/sound/pcm/sound.h
+180-54010 files not shown
+209-57016 files

HardenedBSD/src 1e8d78asys/dev/sound unit.c unit.h, sys/dev/sound/pcm sound.c dsp.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+98-171sys/dev/sound/pcm/sound.c
+0-188sys/dev/sound/unit.c
+37-103sys/dev/sound/pcm/dsp.c
+0-52sys/dev/sound/unit.h
+44-6sys/dev/sound/pcm/channel.c
+1-20sys/dev/sound/pcm/sound.h
+180-54010 files not shown
+209-57016 files

HardenedBSD/src ffecaa6bin/sync sync.8

Merge branch 'freebsd/14-stable/main' into hardened/14-stable/master
DeltaFile
+29-1bin/sync/sync.8
+29-11 files

HardenedBSD/src 11abc82bin/sync sync.8

Merge branch 'freebsd/13-stable/main' into hardened/13-stable/master
DeltaFile
+29-1bin/sync/sync.8
+29-11 files

HardenedBSD/ports be49e84audio/mpg123 distinfo, math/mathlibtools Makefile

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+231-225misc/arrow-datafusion/distinfo
+116-113misc/arrow-datafusion/Makefile
+0-31math/mathlibtools/Makefile
+8-0www/trunk/Makefile
+3-3audio/mpg123/distinfo
+3-3sysutils/fluent-bit/distinfo
+361-37510 files not shown
+369-38616 files

HardenedBSD/ports 78fa3fadevel/cargo-leptos Makefile

devel/cargo-leptos: Fix build on i386

Reported by:    fallout
DeltaFile
+2-0devel/cargo-leptos/Makefile
+2-01 files

HardenedBSD/ports 8406919www/trunk Makefile

www/trunk: Fix build on i386

Reported by:    fallout
DeltaFile
+8-0www/trunk/Makefile
+8-01 files

HardenedBSD/ports b63fc79www/screego Makefile

www/screego: Return to pool
DeltaFile
+1-1www/screego/Makefile
+1-11 files

HardenedBSD/ports 49dc9c2sysutils/py-qmk Makefile

sysutils/py-qmk: Return to the pool
DeltaFile
+1-1sysutils/py-qmk/Makefile
+1-11 files

HardenedBSD/src 993d1fa. RELNOTES

RELNOTES: Fix wrong commit hash

Fixes:          25723d66369f ("sound: Retire unit.*")
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
DeltaFile
+1-1RELNOTES
+1-11 files

HardenedBSD/ports c48815esysutils/fluent-bit distinfo Makefile

sysutils/fluent-bit: Upgrade to 3.0.3

Release notes:  https://github.com/fluent/fluent-bit/releases/tag/v3.0.3
DeltaFile
+3-3sysutils/fluent-bit/distinfo
+1-1sysutils/fluent-bit/Makefile
+4-42 files

HardenedBSD/src 7cc1afcsys/dev/sound/pcm channel.c

sound: Remove chn_timeout check from chn_init()

This check is not related to channel initializion, but is also
unnecessary, since sysctl_hw_snd_timeout() takes care of checking if
chn_timeout is within bounds.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D44992
DeltaFile
+0-3sys/dev/sound/pcm/channel.c
+0-31 files

HardenedBSD/src a24050esys/dev/sound/pcm channel.c sound.c

sound: Move pcm_chnref() and pcm_chnrelease() to pcm/channel.c

Improve code layering. These are channel functions, and so they do not
belong in pcm/sound.c.

While here, assert in chn_ref() that new refcount won't be negative.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D44985
DeltaFile
+28-0sys/dev/sound/pcm/channel.c
+0-26sys/dev/sound/pcm/sound.c
+13-13sys/dev/sound/pcm/dsp.c
+0-2sys/dev/sound/pcm/sound.h
+2-0sys/dev/sound/pcm/channel.h
+43-415 files

HardenedBSD/src 25723d6sys/dev/sound unit.c unit.h, sys/dev/sound/pcm sound.c dsp.c

sound: Retire unit.*

The unit.* code is largely obsolete and imposes limits that are no
longer needed nowadays.

- Capping the maximum allowed soundcards in a given machine. By default,
  the limit is 512 (snd_max_u() in unit.c), and the maximum possible is
  2048 (SND_UNIT_UMAX in unit.h). It can also be tuned through the
  hw.snd.maxunit loader(8) tunable. Even though these limits are large
  enough that they should never cause problems, there is no need for
  this limit to exist in the first place.
- Capping the available device/channel types. By default, this is 32
  (snd_max_d() in unit.c). However, these types are pre-defined in
  pcm/sound.h (see SND_DEV_*), so the cap is unnecessary when we know
  that their number is constant.
- Capping the number of channels per-device. By default, the limit 1024
  (snd_max_c() in unit.c). This is probably the most problematic of the
  limits mentioned, because this limit can never be reached, as the
  maximum is hard-capped at either hw.snd.maxautovchans (16 by default),

    [24 lines not shown]
DeltaFile
+0-188sys/dev/sound/unit.c
+49-95sys/dev/sound/pcm/sound.c
+12-86sys/dev/sound/pcm/dsp.c
+0-52sys/dev/sound/unit.h
+1-17sys/dev/sound/pcm/sound.h
+3-6sys/dev/sound/pcm/channel.h
+65-4447 files not shown
+74-45413 files

HardenedBSD/src 03614fcsys/dev/sound/pcm sound.c channel.c

sound: Fix panic caused by sleeping-channel destruction during asynchronous detach

Currently we are force-destroying all channels unconditionally in
pcm_killchan(). However, since asynchronous audio device detach is
possible as of 44e128fe9d92, if we do not check whether the channel is
sleeping or not and forcefully kill it, we will get a panic from
cv_timedwait_sig() (called from chn_sleep()), because it will try to use
a freed lock/cv.

Modify pcm_killchan() (renamed to pcm_killchans() since that's a more
appropriate name now) to loop through the channel list and destroy only
the channels that are awake, otherwise wake up the sleeping thread and
try again. This loop is repeated until all channels are awakened and
destroyed.

To reduce code duplication, implement chn_shutdown() which wakes up the
channel and sets CHN_F_DEAD, and use it in pcm_unregister() and
pcm_killchans().


    [6 lines not shown]
DeltaFile
+43-21sys/dev/sound/pcm/sound.c
+9-0sys/dev/sound/pcm/channel.c
+1-0sys/dev/sound/pcm/channel.h
+53-213 files

HardenedBSD/src 074d6fbsys/dev/sound/pcm dsp.c sound.c

sound: Fix NULL dereference in dsp_clone() and mixer_clone()

If we only have a single soundcard attached and we detach it right
before entering [dsp|mixer]_clone(), there is a chance pcm_unregister()
will have returned already, meaning it will have set snd_unit to -1, and
thus devclass_get_softc() will return NULL here.

While here, 1) move the calls to dsp_destroy_dev() and mixer_uninit()
below the point where we unset SD_F_REGISTERED, and 2) follow what
mixer_clone() does and make sure we don't use a NULL d->dsp_dev in
dsp_clone().

Reported by:    KASAN
Sponsored by:   The FreeBSD Foundation
MFC after:      1 day
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D44924
DeltaFile
+10-4sys/dev/sound/pcm/dsp.c
+3-4sys/dev/sound/pcm/sound.c
+2-1sys/dev/sound/pcm/mixer.c
+15-93 files

HardenedBSD/src e56c899sys/dev/sound/pcm sound.c

sound: Add missing space in dev.pcm.X.mode description

Sponsored by:   The FreeBSD Foundation
MFC after:      1 day
Reviewed by:    markj, emaste
Differential Revision:  https://reviews.freebsd.org/D44990
DeltaFile
+2-2sys/dev/sound/pcm/sound.c
+2-21 files

HardenedBSD/src b18b990sys/dev/sound/pcm dsp.c mixer.c

sound: Wrap dsp_clone() and mixer_clone() with bus_topo_lock()

Make sure that the softc isn't freed in between the checks.

Sponsored by:   The FreeBSD Foundation
MFC after;      1 day
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D44991
DeltaFile
+2-0sys/dev/sound/pcm/dsp.c
+2-0sys/dev/sound/pcm/mixer.c
+4-02 files

HardenedBSD/src b3ea087sys/dev/sound/pcm sound.c channel.c

sound: Merge pcm_chn_destroy() and chn_kill()

pcm_chn_destroy() acts like a wrapper around chn_kill(), and
additionally calls a few more functions that should in fact be part of
chn_kill()'s logic. Merge pcm_chn_destroy()'s functionality in
chn_kill() to improve readability, as well as code layering.

While here, convert chn_kill() to void as it currently always returns 0.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D44984
DeltaFile
+2-24sys/dev/sound/pcm/sound.c
+7-5sys/dev/sound/pcm/channel.c
+3-3sys/dev/sound/pcm/vchan.c
+1-1sys/dev/sound/pcm/channel.h
+0-1sys/dev/sound/pcm/sound.h
+13-345 files

HardenedBSD/src fa28452sys/dev/sound/pcm channel.c

sound: Assert that we do not enter chn_sleep() with CHN_F_SLEEPING

Sponsored by:   The FreeBSD Foundation
MFC after:      1 day
Reviewed by:    markj, emaste
Differential Revision:  https://reviews.freebsd.org/D44959
DeltaFile
+2-0sys/dev/sound/pcm/channel.c
+2-01 files

HardenedBSD/src 56ee5fclibexec/rtld-elf rtld_printf.c

rtld snprintf: do not erronously skip a char at the buffer boundary

Reviewed by:    emaste, markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D44987
DeltaFile
+3-4libexec/rtld-elf/rtld_printf.c
+3-41 files

HardenedBSD/ports c231472www/qt5-webengine Makefile

www/qt5-webengine: Bump PORTREVISION after fa01e117e24f

The port archivers/snappy was updated to version 1.2.0 via fa01e117e24f
but there was no PORTREVISION bump afterwards for qt5-webengine, which
uses archivers/snappy.

This led to the following runtime error as soon as consumers (e.g.
x11-fm/konqueror) using qt5-webengine were started:

ld-elf.so.1: /usr/local/lib/qt5/libQt5WebEngineCore.so.5: Undefined symbol "_ZN6snappy11RawCompressEPKcmPcPm"

Remedy the issue by bumping PORTREVISION to force a rebuild against the
new version of archivers/snappy.

PR:             278633
Reported by:    Graham Perrin
MFH:            2024Q2
With hat:       kde
DeltaFile
+1-0www/qt5-webengine/Makefile
+1-01 files

HardenedBSD/ports 4c0a295audio/mpg123 distinfo Makefile

audio/mpg123: update to 1.32.6
DeltaFile
+3-3audio/mpg123/distinfo
+1-1audio/mpg123/Makefile
+4-42 files

HardenedBSD/ports 39eecb2misc/arrow-datafusion distinfo Makefile

misc/arrow-datafusion: update 36.0.1 → 37.1.0

Reported by:    portscout
DeltaFile
+231-225misc/arrow-datafusion/distinfo
+116-113misc/arrow-datafusion/Makefile
+347-3382 files

HardenedBSD/src 5119386bin/sync sync.8

sync.8: Document that the "sync dance" is not a thing

People still believe that it is essential to run sync(8) a couple of
times before a reboot/halt. Document that this has not been necessary
for a long time now.

Reviewed by:    imp, bcr, Pau Amma <pauamma at gundo.com>
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D33233

(cherry picked from commit 177ba183076bd6fe6b29b1d657b954cca256506b)
DeltaFile
+29-1bin/sync/sync.8
+29-11 files

HardenedBSD/src bb27b83bin/sync sync.8

sync.8: Document that the "sync dance" is not a thing

People still believe that it is essential to run sync(8) a couple of
times before a reboot/halt. Document that this has not been necessary
for a long time now.

Reviewed by:    imp, bcr, Pau Amma <pauamma at gundo.com>
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D33233

(cherry picked from commit 177ba183076bd6fe6b29b1d657b954cca256506b)
DeltaFile
+29-1bin/sync/sync.8
+29-11 files

HardenedBSD/src 6662c23lib/libsys gettimeofday.2

gettimeofday.2: Do mention improbable future removal

As kib@ noted:

> Obviously gettimeofday(2) is not going to be removed
> even in the far future.

Reported by:    kib
Fixes:          4395d3ced5cf Document that gettimeofday() is obsolescent
MFC after:      3 days
DeltaFile
+3-5lib/libsys/gettimeofday.2
+3-51 files

HardenedBSD/src e86d97cbin/date date.c

Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi
DeltaFile
+3-1bin/date/date.c
+3-11 files

HardenedBSD/src a3ef30fbin/date date.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+3-1bin/date/date.c
+3-11 files