FreeBSD/src 5cf78a5lib/libc/stdlib cxa_thread_atexit_impl.c

__cxa_thread_call_dtors(3): fix dtor pointer validity check

PR:     278701

(cherry picked from commit b27eb9ce96b838622e125fd969e8dc4914aabe18)
DeltaFile
+1-1lib/libc/stdlib/cxa_thread_atexit_impl.c
+1-11 files

FreeBSD/src 6a8ca2flib/libc/stdlib cxa_thread_atexit_impl.c

__cxa_thread_call_dtors(3): fix dtor pointer validity check

PR:     278701

(cherry picked from commit b27eb9ce96b838622e125fd969e8dc4914aabe18)
DeltaFile
+1-1lib/libc/stdlib/cxa_thread_atexit_impl.c
+1-11 files

FreeBSD/src b01988dsbin/mdconfig mdconfig.c

mdconfig: Print options when listing devices

PR: 278624
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1210
DeltaFile
+76-14sbin/mdconfig/mdconfig.c
+76-141 files

FreeBSD/src 042267eusr.sbin/cron/crontab crontab.5

Explain cron.d

Add details on the format of system cron files, which are mentioned in
cron(8) which refers here but barely explained here.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1106
DeltaFile
+17-7usr.sbin/cron/crontab/crontab.5
+17-71 files

FreeBSD/src 783baf0libexec/atrun atrun.man

at cron file is now in /etc/cron.d

PR: 243380
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1106
DeltaFile
+1-1libexec/atrun/atrun.man
+1-11 files

FreeBSD/src 5ccaab1include sysexits.h, share/man/man3 sysexits.3

sysexits: Tidy deprecated header and manual

<sysexits.h> was deprecated in the base system in a1432b4 for FreeBSD
8.0 and is retained only for backwards compatibility.  Make that clear,
since sysexits(3) suggested using it since it was in style(9) prior
to this.

MFC after:      1 week
Co-authored-by: imp
Fixes:          a1432b4
Reviewed by:    imp, pauamma (previous version)
Pull Request    https://github.com/freebsd/freebsd-src/pull/1195
DeltaFile
+18-25share/man/man3/sysexits.3
+4-3include/sysexits.h
+22-282 files

FreeBSD/src 9f91b8a. README.md

Update README.md to add pointer to release page.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1151
DeltaFile
+2-0README.md
+2-01 files

FreeBSD/src c733dc7share/man/man4 ahc.4, sys/dev/aic7xxx ahc_pci.c

ahc(4): Default to memory mapped IO

When this driver was written it made sense to make this default to off,
but these days almost all BIOSses will do the right thing. Furthermore
non-mmio communication only works on Intel architectures.

So lets default to allowing mmio, but not change the semantics of the
AHC_ALLOW_MEMIO flag to not break existing installs. Also document the
already existing hint.ahc.<unit>.allow_memio.

Signed-off-by: HP van Braam <hp at tmm.cx>
Reviewed by: imp (small style tweak)
Pull Request: https://github.com/freebsd/freebsd-src/pull/1219
DeltaFile
+9-4share/man/man4/ahc.4
+6-6sys/dev/aic7xxx/ahc_pci.c
+0-1sys/powerpc/conf/GENERIC
+0-1sys/powerpc/conf/GENERIC64
+0-1sys/powerpc/conf/GENERIC64LE
+15-135 files

FreeBSD/src 09025a7sbin/ipfw tables.c

ipfw: correctly report table manipulation errors

Let ipfw(8) report the actual error instead of the error that
may have come from calling printf().

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1221
DeltaFile
+3-2sbin/ipfw/tables.c
+3-21 files

FreeBSD/src 12be6f1contrib/elftoolchain/libelftc libelftc_dem_gnu3.c, contrib/libcxxrt libelftc_dem_gnu3.c

Fix memory corruption in C++ demangler

The __cxa_demangle_gnu3() and cpp_demangle_gnu3() functions segfault on
various libcxxabi test cases due to a copy and paste error. This change
fixes that.

This is a subset of https://github.com/libcxxrt/libcxxrt/pull/34 which
fixes the immediate problem.

Reviewed by: imp, emaste (I think)
Pull Request: https://github.com/freebsd/freebsd-src/pull/1222
DeltaFile
+1-1contrib/elftoolchain/libelftc/libelftc_dem_gnu3.c
+1-1contrib/libcxxrt/libelftc_dem_gnu3.c
+2-22 files

FreeBSD/src fbe9655sys/fs/nfsclient nfs_clbio.c

nfscl: Do not do readahead for directories

For a very long time, the NFS client has done readahead for
directory blocks.  Unlike data blocks, the readahead cannot
begin until the Readdir RPC reply has been received, since
the directory offset cookie in that Readdir RPC reply is needed.
As such, the readahead is serialized and does not seem to
provide any real benefit.

Recent testing/benchmarking shows that removing this
readahead code for Readdir does not have a negative impact
on performance.

Therefore, this patch deletes the readahead code for Readdir,
which simplifies the code and may make future changes simpler.

MFC after:      1 month
DeltaFile
+1-30sys/fs/nfsclient/nfs_clbio.c
+1-301 files

FreeBSD/src f77b5b2lib/libc/regex regcomp.c

Allow -DNO_STRICT_REGEX to restore historic regex behavior

Allow restoring the behavior of '{' as described in regex(3).
Ie. only treat it as start of bounds if followed by a digit.

If NO_STRICT_REGEX is not defined, the behavior introduced by
commit a4a801688c909ef39cbcbc3488bc4fdbabd69d66 is retained,
otherwise the previous behavior is restored.

Differential Revision:  https://reviews.freebsd.org/D45134
DeltaFile
+19-1lib/libc/regex/regcomp.c
+19-11 files

FreeBSD/src 6437872libexec/rc/rc.d devmatch, sys/kern kern_devctl.c

New sysctl to disable NOMATCH until devmatch runs

Introduce hw.bus.devctl_nomatch_enabled and use it to suppress NOMATCH
until devmatch runs

There's a lot of NOMATCH events generated at boot. We also run devmatch
once during early boot to load unmatched devices. To avoid redundant
work, don't start generating NOMATCH events until after devmatch runs.
Set hw.bus.devctl_nomatch_enabled=1 just before we run devmatch. The
kernel will suppress NOMATCH events until this is set to true.

This saves about 170ms from the boot on aarch64 running atop Apple
M-series processors and the VMWare Fusion hypervisor.

Reviewed by:    imp, cperciva
MFC after:      3 days
Sponsored by:   Google Summer of Code
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1213
DeltaFile
+5-1sys/kern/kern_devctl.c
+1-0libexec/rc/rc.d/devmatch
+6-12 files

FreeBSD/src e3e57aesys/conf newvers.sh

14.1: update to BETA2

Approved by:    re (implicit)
Sponsored by:   https://www.patreon.com/cperciva
DeltaFile
+1-1sys/conf/newvers.sh
+1-11 files

FreeBSD/src 8c2f6c3sys/modules/ice_ddp Makefile, sys/modules/qatfw/qat_200xx Makefile

Address module reproducibility issues

Use .PATH & bare filename. This prevents the real source path from
being included in the built object, which improves reproducibility.

Signed-off-by: Dan McGregor <dan.mcgregor at usask.ca>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1211
DeltaFile
+3-1sys/modules/ice_ddp/Makefile
+1-1sys/modules/qatfw/qat_200xx/Makefile
+1-1sys/modules/qatfw/qat_4xxx/Makefile
+1-1sys/modules/qatfw/qat_c3xxx/Makefile
+1-1sys/modules/qatfw/qat_c4xxx/Makefile
+1-1sys/modules/qatfw/qat_c62x/Makefile
+8-61 files not shown
+9-77 files

FreeBSD/src cd917a1usr.sbin/arp arp.8

arp.8: don't document a syntax that doesn't exist

The arp.8 manpage documents 'arp -d <addr> pub', but the 'pub' flag is
not accepted by the arp command.  Remove this incorrect documentation.

Reviewed by: imp, gleb, mp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1215
DeltaFile
+1-9usr.sbin/arp/arp.8
+1-91 files

FreeBSD/src d981797sys/x86/include intr_machdep.h, sys/x86/include/xen arch-intr.h

intr/x86: replace use of vector in interface with intsrc

Several x86 interrupt core functions were already operating on intsrc
structures.  Now switch the remaining 3 to intsrc for consistency.

Swap the order of intr_add_handler()'s first two arguments.  This
matches INTRNG and is more consistent with other functions in this
interface.

Differential Revision: https://reviews.freebsd.org/D35386
Reviewed by: imp, markj (previous version)
Pull Request: https://github.com/freebsd/freebsd-src/pull/1126
DeltaFile
+17-4sys/x86/x86/nexus.c
+4-15sys/x86/x86/intr_machdep.c
+5-5sys/x86/include/intr_machdep.h
+2-2sys/x86/include/xen/arch-intr.h
+28-264 files

FreeBSD/src 98c2768sys/arm/include atomic.h

arm: add missing atomic-pointer functions

The pointer function types were missing for these functions, so add
them.  Valuable for places where type sizes vary by architecture.

Differential Revision: https://reviews.freebsd.org/D37778
Reviewed by: imp, andrew
Pull Request: https://github.com/freebsd/freebsd-src/pull/1126
DeltaFile
+9-2sys/arm/include/atomic.h
+9-21 files

FreeBSD/src 99adf66sys/sys _bitset.h

sys: declare bit sets unsigned

Substantially reduce the number of signed/unsigned issues (warnings if
enabled).  While these are presently disabled for FreeBSD, being able to
enable another warning would be good.

Differential Revision: https://reviews.freebsd.org/D32793
Reviewed by: imp, jhibbits
Pull Request: https://github.com/freebsd/freebsd-src/pull/1126
DeltaFile
+2-2sys/sys/_bitset.h
+2-21 files

FreeBSD/src 9f3a552sys/kern subr_intr.c

intrng: switch flag arguments to unsigned

The flag variables behind these are all unsigned.  As such adjust the
declarations to match reality and reduce the number of mismatches.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1126
DeltaFile
+5-5sys/kern/subr_intr.c
+5-51 files

FreeBSD/src a9e0f31sys/compat/linuxkpi/common/include/linux interrupt.h, sys/kern kern_intr.c

kern/intr: redeclare intr_setaffinity()'s third arg constant

This matches reality and allows removal of a __DECONST().

Fixes: 4c72d075a57 ("LinuxKPI: const argument to irq_set_affinity_hint()")
Fixes: 9b33b154b53 ("Add support to cpuset for binding hardware interrupts")
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1126
DeltaFile
+2-2sys/kern/kern_intr.c
+1-1sys/compat/linuxkpi/common/include/linux/interrupt.h
+1-1sys/sys/interrupt.h
+4-43 files

FreeBSD/src cd04887sys/kern kern_intr.c, sys/sys interrupt.h

kern/intr: change ->ie_irq to unsigned

All architecture implementations actually want this to be unsigned.
INTRNG the equivalent is overtly unsigned.  x86 and PowerPC merely avoid
the need to explicitly convert at several points.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1126
DeltaFile
+2-2sys/sys/interrupt.h
+1-1sys/kern/kern_intr.c
+3-32 files

FreeBSD/src e64318esys/arm/arm pmu.c

arm/pmu: remove passing trap frame as argument

While otherwise a handy potential approach, getting the trap frame via
the argument isn't documented and isn't supposed to be used.  Adjust
pmu_intr() to instead use curthread->td_intr_frame, which is the proper
way.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1126
DeltaFile
+3-7sys/arm/arm/pmu.c
+3-71 files

FreeBSD/src 1c5b58alib/geom/eli geli.8

geli.8: minor proofreading

Sponsored by:   Axcient
Reviewed by:    imp, pauamma (manpages)
Differential Revision: https://reviews.freebsd.org/D44907

(cherry picked from commit c0f02dcd4c9c17181c59fa3c43259cce793a0b21)

geli.8: add some notes regarding performance tuning

Sponsored by:   Axcient
Reviewed by:    markj
Differential Revision: https://reviews.freebsd.org/D44908

(cherry picked from commit 4b7949144cfbf25b0e0bf593b135a88417304d71)
DeltaFile
+43-3lib/geom/eli/geli.8
+43-31 files

FreeBSD/src 0704823sys/geom/eli g_eli.c

geli: add a read-only kern.geom.eli.use_uma_bytes sysctl

It reports the value of the g_eli_alloc_sz variable.  Allocations of
this size or less will use UMA.  Larger allocations will use malloc.
Since malloc is slower, it is useful for users to know this variable so
they can avoid such allocations.  For example, ZFS users can set
vfs.zfs.vdev.aggregation_limit to this value.

Sponsored by:   Axcient
Reviewed by:    markj, imp
Differential Revision: https://reviews.freebsd.org/D44904

(cherry picked from commit 3acf3feaa8c5b15e820e86c1526c9a97fc5ad247)
DeltaFile
+3-1sys/geom/eli/g_eli.c
+3-11 files

FreeBSD/src 24d5cc1sys/dev/sound/pcm dsp.c, sys/sys soundcard.h

sound: Rename oss_audioinfo->real_device to oss_audioinfo->legacy_device

The OSS manual now documents this field as "legacy_device".

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
Reviewed by:    dev_submerge.ch
Differential Revision:  https://reviews.freebsd.org/D45138
DeltaFile
+2-2sys/dev/sound/pcm/dsp.c
+1-1sys/sys/soundcard.h
+3-32 files

FreeBSD/src e6df8c3sys/dev/sound/pcm mixer.c, sys/sys soundcard.h

sound: Add missing oss_mixerinfo devnode and legacy_device fields

They are missing from soundcard.h and are in fact used by some
applications, such as OSS' ossinfo(1):
http://manuals.opensound.com/developer/ossinfo.c.html

The new size for filler is chosen according to the most recent official
version of soundcard.h, which includes those 2 fields.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
Reviewed by:    dev_submerge.ch
Differential Revision:  https://reviews.freebsd.org/D45137
DeltaFile
+5-6sys/dev/sound/pcm/mixer.c
+3-1sys/sys/soundcard.h
+8-72 files

FreeBSD/src 59d98edsys/dev/sound/pcm sound.c

sound: Fix oss_sysinfo->numcards

According to the OSS manual, oss_sysinfo->numcards holds the number of
detected audio devices in the system, while the current ncards variable,
whose value is assigned to oss_sysinfo->numcards, holds the number of
currently registered devices only.

Sponsored by:   The FreeBSD Foundation
MFC after:      3 days
Reviewed by:    dev_submerge.ch, emaste
Differential Revision:  https://reviews.freebsd.org/D45136
DeltaFile
+3-6sys/dev/sound/pcm/sound.c
+3-61 files

FreeBSD/src 2f31a5esys/dev/sound/pcm mixer.c

sound: Remove nmix variable from mixer_oss_mixerinfo()

nmix is used to compare against oss_mixerinfo->dev, which is a
user-supplied value to select the mixer device (if not -1, in which case
we'll select the default one) we want to fetch the information of. It is
also used to set oss_mixerinfo->dev in case it is -1.

However, nmix is at best redundant, since we have the loop counter
already (i), and confusing at worst.

For example, suppose a system with 3 mixer devices. We call
SNDCTL_MIXERINFO with oss_mixerinfo->dev=1, meaning we want to get
information for /dev/mixer1. Suppose /dev/mixer0 detaches while inside
the loop, so we'll hit the loop's "continue" case, and nmix won't get
incremented (i.e will stay 0 for now). At this point nmix counts 1
device less, so when it reaches 1, we'll be fetching /dev/mixer2's
information instead of /dev/mixer1's.

This is also true in case the mixer device disappears prior to the call

    [10 lines not shown]
DeltaFile
+4-6sys/dev/sound/pcm/mixer.c
+4-61 files

FreeBSD/src 5687c71share/man/man4 snd_hdsp.4 pcm.4, sys/dev/sound/pci hdsp-pcm.c hdsp.c

snd_hdsp(4): RME HDSP 9632 and HDSP 9652 sound card driver.

Add a sound(4) bridge device driver for the RME HDSP 9632 and HDSP 9652
sound cards. These cards require a nowadays rare PCI 32bit (not PCIe)
slot, but still see use due to their value and wealth of features.
The HDSP 9632 is mostly comparable to the newer HDSPe AIO, while the
HDSP 9652 is similar to the HDSPe RayDAT. These HDSPe PCIe cards are
supported by the snd_hdspe(4) driver which was taken as a starting point
for development of snd_hdsp(4).

Implementation is kept separately due to substantial differences in
hardware configuration and to allow easy removal in case PCI 32bit
support would be phased out in the future.

The snd_hdsp(4) kernel module is not enabled by default, and can be
loaded at runtime with kldload(8) or during boot via loader.conf(5).
Basic operation was tested with both cards, not including all optional
cable connectors and expansion boards. Features should be roughly on par
with the snd_hdspe(4) supported cards.

    [3 lines not shown]
DeltaFile
+1,134-0sys/dev/sound/pci/hdsp-pcm.c
+793-0sys/dev/sound/pci/hdsp.c
+257-0sys/dev/sound/pci/hdsp.h
+154-0share/man/man4/snd_hdsp.4
+7-0sys/modules/sound/driver/hdsp/Makefile
+3-0share/man/man4/pcm.4
+2,348-05 files not shown
+2,355-111 files