HardenedBSD/src 8243aa2. ObsoleteFiles.inc, sys/netinet tcp_usrreq.c

Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi
DeltaFile
+113-0tests/sys/netinet/tcp_socket.c
+0-80tests/sys/netinet/tcp_implied_connect.c
+8-8sys/netinet/tcp_usrreq.c
+5-4sys/security/mac_do/mac_do.c
+3-0ObsoleteFiles.inc
+1-1tests/sys/netinet/Makefile
+130-936 files

HardenedBSD/src d6f1ba1. ObsoleteFiles.inc, sys/netinet tcp_usrreq.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+113-0tests/sys/netinet/tcp_socket.c
+0-80tests/sys/netinet/tcp_implied_connect.c
+8-8sys/netinet/tcp_usrreq.c
+5-4sys/security/mac_do/mac_do.c
+3-0ObsoleteFiles.inc
+1-1tests/sys/netinet/Makefile
+130-936 files

HardenedBSD/src 769a6f8sys/netinet tcp_usrreq.c

tcp_usrreq: Only allocate TFO counter when required

During tcp_usr_listen(), only allocate TFO counter when required.

Reviewed by: tuexen, glebius
Differential Revision: https://reviews.freebsd.org/D56067
DeltaFile
+8-8sys/netinet/tcp_usrreq.c
+8-81 files

HardenedBSD/src cd05c88. ObsoleteFiles.inc, tests/sys/netinet tcp_socket.c tcp_implied_connect.c

tests/netinet: add test for getsockname() on a disconnected TCP socket

Stack it into existing file that exercises an other corner case of our
TCP and rename the file to a more generic name.
DeltaFile
+113-0tests/sys/netinet/tcp_socket.c
+0-80tests/sys/netinet/tcp_implied_connect.c
+3-0ObsoleteFiles.inc
+1-1tests/sys/netinet/Makefile
+117-814 files

HardenedBSD/src 7959f85sys/conf files, sys/netinet6 in6_mcast.c

Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi
DeltaFile
+4-4sys/netinet6/in6_mcast.c
+1-1sys/conf/files
+5-52 files

HardenedBSD/src f2c03e4sys/conf files, sys/netinet6 in6_mcast.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+4-4sys/netinet6/in6_mcast.c
+1-1sys/conf/files
+5-52 files

HardenedBSD/src 82a066bsys/conf files

snd_dummy: Fix sys/conf/files entry

Fixes:          72e85a4d977e ("snd_dummy: Add to sys/conf/files and sys/conf/NOTES")
Report by:      CI
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    emaste
Differential Revision:  https://reviews.freebsd.org/D56065
DeltaFile
+1-1sys/conf/files
+1-11 files

HardenedBSD/src cbac897sys/netinet6 in6_mcast.c

in6_mcast: Acquire ref to ifp and exit epoch earlier in sysctl

This patch reduces the number of witness warnings during ifmcstat(8) calls.

Reviewed by: glebius, zlei
Differential Revision: https://reviews.freebsd.org/D56052
DeltaFile
+4-4sys/netinet6/in6_mcast.c
+4-41 files

HardenedBSD/src ecdaccdlib/libpmc/pmu-events/arch/x86/meteorlake mtl-metrics.json pipeline.json

Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi
DeltaFile
+2,825-0lib/libpmc/pmu-events/arch/x86/meteorlake/mtl-metrics.json
+2,096-0lib/libpmc/pmu-events/arch/x86/meteorlake/pipeline.json
+1,733-0lib/libpmc/pmu-events/arch/x86/meteorlake/cache.json
+623-0lib/libpmc/pmu-events/arch/x86/meteorlake/frontend.json
+499-0lib/libpmc/pmu-events/arch/x86/meteorlake/memory.json
+377-0lib/libpmc/pmu-events/arch/x86/meteorlake/virtual-memory.json
+8,153-040 files not shown
+9,213-47946 files

HardenedBSD/src b862bdelib/libpmc/pmu-events/arch/x86/meteorlake mtl-metrics.json pipeline.json

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+2,825-0lib/libpmc/pmu-events/arch/x86/meteorlake/mtl-metrics.json
+2,096-0lib/libpmc/pmu-events/arch/x86/meteorlake/pipeline.json
+1,733-0lib/libpmc/pmu-events/arch/x86/meteorlake/cache.json
+623-0lib/libpmc/pmu-events/arch/x86/meteorlake/frontend.json
+499-0lib/libpmc/pmu-events/arch/x86/meteorlake/memory.json
+377-0lib/libpmc/pmu-events/arch/x86/meteorlake/virtual-memory.json
+8,153-040 files not shown
+9,213-47946 files

HardenedBSD/src 48d7b5dsbin/ipfw ipfw2.c ipfw.8, sbin/ipfw/tests test_add_rule.py

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+428-0tests/sys/netpfil/ipfw/lookup.sh
+184-137sys/netpfil/ipfw/ip_fw2.c
+231-12sbin/ipfw/tests/test_add_rule.py
+151-42sbin/ipfw/ipfw2.c
+162-17tests/atf_python/sys/netpfil/ipfw/insns.py
+119-32sbin/ipfw/ipfw.8
+1,275-2409 files not shown
+1,463-28015 files

HardenedBSD/src e6a77f8sys/fs/cd9660 cd9660_rrip.c

cd9660: Partial style sweep of Rock Ridge code

This mostly just fixes indentation and continuations and adds spaces
after commas and around binary operators and parentheses around return
values, but cd9660_rrip_extref() was so egregiously unreadable I
rewrote it.  Note that this was done manually, so I may have missed a
few spots, and I made no attempt to fix over-long lines.

MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D55865
DeltaFile
+96-90sys/fs/cd9660/cd9660_rrip.c
+96-901 files

HardenedBSD/src fa03f93contrib/file/magic/Magdir filesystems

file: Parse some UFS2 flags

This allows libmagic to recognize the FS_DOSOFTDEP, FS_SUJ, FS_GJOURNAL,
FS_ACLS, and FS_NFS4ACLS flags on a UFS2 file system.

Accepted upstream as 482259e5e952.

MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D56010
DeltaFile
+5-0contrib/file/magic/Magdir/filesystems
+5-01 files

HardenedBSD/src 828de70usr.sbin/syslogd syslogd.c

syslogd: Allow killing when in foreground

Normally, syslogd reacts only to SIGTERM, and ignores SIGINT and SIGQUIT
unless in debug mode.  Extend that to also apply when running in the
foreground.  Take this opportunity to comment the event loop.

MFC after:      1 week
Reviewed by:    jfree
Differential Revision:  https://reviews.freebsd.org/D55886
DeltaFile
+8-2usr.sbin/syslogd/syslogd.c
+8-21 files

HardenedBSD/src 2e1cf24sys/dev/sound/pcm channel.h

sound: Remove unimplemented chn_reinit() definition

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
DeltaFile
+0-1sys/dev/sound/pcm/channel.h
+0-11 files

HardenedBSD/src d048cecsys/dev/sound/pcm ac97.c

sound: Remove dead code in pcm/ac97.c

ac97_uninitmixer() does not exist also.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D56045
DeltaFile
+0-4sys/dev/sound/pcm/ac97.c
+0-41 files

HardenedBSD/src edad981sys/dev/sound/pcm ac97.c

sound: Address some XXX comments regarding AC'97 IDs

These seem harmless to address. Not sure why the original author did not
just assign the appropriate names if he knew they were wrong.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D56044
DeltaFile
+2-12sys/dev/sound/pcm/ac97.c
+2-121 files

HardenedBSD/src 6b91c8dsys/dev/sound/pcm feeder_rate.c

sound: Retire Z_PARANOID

It is always defined.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D56042
DeltaFile
+0-6sys/dev/sound/pcm/feeder_rate.c
+0-61 files

HardenedBSD/src 0ee9515sys/dev/sound/pcm feeder_rate.c

sound: Remove most Z_RATE_* aliases

They introduce an extra level of abstraction for no reason at all.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D56041
DeltaFile
+13-24sys/dev/sound/pcm/feeder_rate.c
+13-241 files

HardenedBSD/src 0b7f959sys/dev/sound/pcm channel.h

sound: Always use chn_getvolume_matrix()

There is no reason not to use it. We do it already with CHN_SETVOLUME().
chn_getvolume_matrix() is the same as the non-INVARIANTS
CHN_GETVOLUME(), just without the additional KASSERT
chn_getvolume_matrix() provides.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D55990
DeltaFile
+0-4sys/dev/sound/pcm/channel.h
+0-41 files

HardenedBSD/src 71c46c8sys/tools/sound emu10k1-mkalsa.sh

sound: Retire unused emu10k1-mkalsa.sh

It is a legacy script which is no longer used. Its utility is also
unknown.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D56043
DeltaFile
+0-20sys/tools/sound/emu10k1-mkalsa.sh
+0-201 files

HardenedBSD/src 72e85a4sys/conf NOTES files

snd_dummy: Add to sys/conf/files and sys/conf/NOTES

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D56040
DeltaFile
+2-0sys/conf/NOTES
+1-0sys/conf/files
+3-02 files

HardenedBSD/src d171d5bsys/dev/sound/pcm dsp.c channel.h

sound: Retire CHN_GETMUTE() and use chn_getmute_matrix()

chn_getmute_matrix() does what CHN_GETMUTE() does, but with a few
additional checks.

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

HardenedBSD/src 4324e0fsys/dev/sound/pcm buffer.c

sound: Remove SND_DIAGNOSTIC section in buffer.c

The purpose of this has not been documented, but it seems like it makes
it possible to view the maximum number of bytes that passed to
sndbuf_feed(), as well as the maximum number of cycles taken inside its
main loop. These do not seem particularly useful anymore.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D55989
DeltaFile
+0-26sys/dev/sound/pcm/buffer.c
+0-261 files

HardenedBSD/src 127aa05sys/dev/sound/pcm channel.c matrix.h

sound: Retire CHN_SETVOLUME() and use chn_setvolume_matrix()

CHN_SETVOLUME() is just a wrapped around chn_setvolume_matrix() anyway,
so use it directly.

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

HardenedBSD/src f190fadsys/dev/sound sndstat.c, sys/dev/sound/pcm dsp.c mixer.c

sound: Retire CHN_GETVOLUME() and use chn_getvolume_matrix()

CHN_GETVOLUME() is just a wrapped around chn_getvolume_matrix() anyway,
so use it directly.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D55991
DeltaFile
+4-4sys/dev/sound/pcm/dsp.c
+2-2sys/dev/sound/pcm/mixer.c
+2-2sys/dev/sound/sndstat.c
+0-1sys/dev/sound/pcm/channel.h
+8-94 files

HardenedBSD/src 712bd9bsys/dev/sound/pcm matrix.h

sound: Retire SND_MULTICHANNEL

SND_MULTICHANNEL is always defined, so SND_CHN_MAX will also always be
8. Apart from the fact that there is no other place in the code that
touches SND_MULTICHANNEL, there is also no good reason nowadays to set
SND_CHN_MAX to 2.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D55934
DeltaFile
+0-7sys/dev/sound/pcm/matrix.h
+0-71 files

HardenedBSD/src a2fd964sys/dev/sound/usb uaudio.c

snd_uaudio: Retire UAUDIO_MAX_CHAN()

It's a no-op.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D55924
DeltaFile
+2-4sys/dev/sound/usb/uaudio.c
+2-41 files

HardenedBSD/src bf0e5d9sys/conf NOTES options, sys/dev/sound/pcm matrix.h

sound: Retire SND_OLDSTEREO

This is a legacy option and does not serve a good purpose anymore.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D55933
DeltaFile
+0-4sys/conf/NOTES
+0-3sys/dev/sound/pcm/matrix.h
+0-1sys/conf/options
+0-83 files

HardenedBSD/src 6755f55sys/dev/sound/pcm feeder_volume.c feeder_rate.c

sound: Remove endianness checks for format table declarations

This a legacy thing that is not needed anymore. We can support all of
them just fine.

Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Reviewed by:    markj
Differential Revision:  https://reviews.freebsd.org/D55939
DeltaFile
+0-8sys/dev/sound/pcm/feeder_volume.c
+0-8sys/dev/sound/pcm/feeder_rate.c
+0-162 files