]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
4 weeks agoMake __libsys_interposing_slot libsys only
Brooks Davis [Mon, 22 Apr 2024 18:24:36 +0000 (19:24 +0100)]
Make __libsys_interposing_slot libsys only

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D44881

4 weeks agolibthr: always use __libc_interposing_slot()
Brooks Davis [Mon, 22 Apr 2024 18:24:26 +0000 (19:24 +0100)]
libthr: always use __libc_interposing_slot()

Use __libc_interposing_slot() in favor of __libsys_interposing_slot() so
that the interposing interface is entierly between libc and libthr with
libsys only involved as an implementation detail.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D44880

4 weeks agogeli: add a read-only kern.geom.eli.use_uma_bytes sysctl
Alan Somers [Mon, 22 Apr 2024 18:03:40 +0000 (12:03 -0600)]
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.

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

4 weeks agoadduser: Fix a syntax error
Joseph Mingrone [Mon, 22 Apr 2024 19:04:13 +0000 (16:04 -0300)]
adduser: Fix a syntax error

Reported by: Jose Luis Duran <jlduran@gmail.com>
Fixes: b37333899bd2
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D44871

4 weeks agolibcxxrt: define SHLIBDIR before including bsd.own.mk
Dimitry Andric [Mon, 22 Apr 2024 18:43:27 +0000 (20:43 +0200)]
libcxxrt: define SHLIBDIR before including bsd.own.mk

Otherwise bsd.own.mk overrides it, causing libcxxrt.so.1 to be
erroneously installed into /usr/lib.

Also add an ObsoleteFiles.inc entry, for removing the bad copy.

Reported by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Fixes: da77a1b4f0df

4 weeks agomfc-candidates: use stable/14 as default MFC-to branch
Ed Maste [Mon, 22 Apr 2024 17:54:52 +0000 (13:54 -0400)]
mfc-candidates: use stable/14 as default MFC-to branch

This tool is typically invoked from within a working tree containing the
desired MFC target branch, which is detected automatically.  It also has
a default for when it is invoked from elsewhere.  Switch the default to
the most recent branch, stable/14.

Sponsored by: The FreeBSD Foundation

4 weeks agothread: Add a missing include of asan.h
Mark Johnston [Mon, 22 Apr 2024 17:07:53 +0000 (13:07 -0400)]
thread: Add a missing include of asan.h

I didn't notice this during testing because invariants-enabled kernels
implicitly include asan.h via kassert.h.

Reported by: Lexi Winter <lexi@le-Fay.org>
Fixes: 800da341bc4a ("thread: Simplify sanitizer integration with thread creation")

4 weeks agoif_bridge: clean up INET/INET6 handling
Lexi Winter [Sun, 21 Apr 2024 18:56:23 +0000 (19:56 +0100)]
if_bridge: clean up INET/INET6 handling

The if_bridge contains several instances of:

if (AF_INET code ...
#ifdef INET6
    AF_INET6 code ...
#endif
) {
...

Clean this up by adding a couple of macros at the top of the file that
are conditionally defined based on whether INET and/or INET6 are enabled,
which makes the code more readable and easier to maintain.

No functional change intended.

Reviewed by: zlei, markj
MFC after: 1 week
Pull Request: https://github.com/freebsd/freebsd-src/pull/1191

4 weeks agong_hci: Add sockaddr validation to sendto()
Mark Johnston [Mon, 22 Apr 2024 15:48:00 +0000 (11:48 -0400)]
ng_hci: Add sockaddr validation to sendto()

ng_btsocket_hci_raw_send() wasn't verifying that the destination address
specified by sendto() is large enough to fill a struct sockaddr_hci.
Thus, when copying the socket address into an mbuf,
ng_btsocket_hci_raw_send() may read past the end of the input sockaddr
while copying.

In practice this is effectively harmless since
ng_btsocket_hci_raw_output() only uses the address to identify a
netgraph node.

Reported by: Oliver Sieber <oliver@secfault-security.com>
MFC after: 1 week
Sponsored by: The FreeBSD Foundation

4 weeks agothread: Simplify sanitizer integration with thread creation
Mark Johnston [Mon, 22 Apr 2024 15:43:17 +0000 (11:43 -0400)]
thread: Simplify sanitizer integration with thread creation

fork() may allocate a new thread in one of two ways: from UMA, or cached
in a freed proc that was just allocated from UMA.  In either case, KASAN
and KMSAN need to initialize some state; in particular they need to
initialize the shadow mapping of the new thread's stack.

This is done differently between KASAN and KMSAN, which is confusing.
This patch improves things a bit:
- Add a new thread_recycle() function, which moves all kernel stack
  handling out of kern_fork.c, since it doesn't really belong there.
- Then, thread_alloc_stack() has only one local caller, so just inline
  it.
- Avoid redundant shadow stack initialization: thread_alloc()
  initializes the KMSAN shadow stack (via kmsan_thread_alloc()) even
  through vm_thread_new() already did that.
- Add kasan_thread_alloc(), for consistency with kmsan_thread_alloc().

No functional change intended.

Reviewed by: khng
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D44891

4 weeks agoriscv: create a convenience composite macro
Doug Moore [Sun, 21 Apr 2024 22:24:29 +0000 (17:24 -0500)]
riscv: create a convenience composite macro

Define PTE_TO_VM_PAGE to compose the PHYS_TO_VM_PAGE and PTE_TO_PHYS
macros. Use it where appropriate, and drop some variables that it
makes unnecessary.

Reviewed by: jhb (previous version)
Differential Revision: https://reviews.freebsd.org/D44700

4 weeks agoEnable L1SS handling on RPI4 pcib
HP van Braam [Tue, 16 Apr 2024 23:01:20 +0000 (01:01 +0200)]
Enable L1SS handling on RPI4 pcib

Thanks to @kevans91 for pointing me in the right direction. FreeBSD had
the same bug as Linux (see
https://bugzilla.kernel.org/show_bug.cgi?id=217276) where the ultimate
solution was to honor the brcm,enable-l1ss FDT property.

In current versions of the dtb files this property has been added by
default.

Without this on many, many pcie addin cards the pcib will Serror when
trying to assert the clreq# pin on the pcie bus. Many cards do not have
these hooked up.

PR: 260131, 277638, 277605
Reviewed-by: emaste
Signed-off-by: HP van Braam <hp@tmm.cx>
Pull-request: https://github.com/freebsd/freebsd-src/pull/1179

4 weeks agoAdd a few missed libclang_rt files to ObsoleteFiles.inc
Dimitry Andric [Sun, 21 Apr 2024 21:32:22 +0000 (23:32 +0200)]
Add a few missed libclang_rt files to ObsoleteFiles.inc

PR: 276104
Reported by: Mark Millard <marklmi@yahoo.com>
MFC after: 3 days

4 weeks agoRevert "OpenSSL: use the upstream provided version.map files for the fips/legacy...
Enji Cooper [Sun, 21 Apr 2024 16:55:01 +0000 (09:55 -0700)]
Revert "OpenSSL: use the upstream provided version.map files for the fips/legacy providers"

This change is still under review and should not have been merged
directly to main (yet).

This is a case and point for using `push.default` to nothing instead of
matching or simple.

This reverts commit 42ce242e353065dfbaa248955f6657005a395a95.

4 weeks agoOpenSSL: use the upstream provided version.map files for the fips/legacy providers
Enji Cooper [Sat, 20 Apr 2024 19:12:50 +0000 (12:12 -0700)]
OpenSSL: use the upstream provided version.map files for the fips/legacy providers

This change introduces a static copy of the fips and legacy linker version maps
generated by the OpenSSL 3.0.13 build process.

This unbreaks the fips and legacy providers by not exposing unnecessary
symbols from the fips/legacy provider shared objects shared with other
providers (base, default) and libcrypto.

More discussion:

Prior to this change, loading the fips provider indirectly from a
FreeBSD 14.0-CURRENT and 15.0-CURRENT host would result in a
process-wide deadlock when invoking select OpenSSL APIs
(CONF_modules_load* in this particular example).

Speaking with the upstream maintainers [1], it became obvious that
the FreeBSD base system was incorrectly building/linking the fips
provider, resulting in a symbol collision at runtime, and thus a
process-wide deadlock in specific circumstances. The fips provider
would deadlock when trying to acquire a write lock on internal
structures which should have only been available to the base and
default providers, as certain preprocessor ifdefs only allow specific
internal calls to be made with the base and default providers.

1. https://github.com/openssl/openssl/issues/24202

Differential Revision: https://reviews.freebsd.org/D44892

4 weeks agobsd.subdir.mk: improve `SUBDIR.${MK_FOO}` advice
Enji Cooper [Sun, 21 Apr 2024 16:27:48 +0000 (09:27 -0700)]
bsd.subdir.mk: improve `SUBDIR.${MK_FOO}` advice

- Remove superfluous whitespace by removing trailing whitespace
  before `\` (line continuation character)
- Quote `SUBDIR.` to clarify the fact that this is a variable
  reference--not the end of a sentence.

4 weeks agomfc-candidates: move pretty printing into lua
Ed Maste [Tue, 16 Apr 2024 16:49:05 +0000 (12:49 -0400)]
mfc-candidates: move pretty printing into lua

d51c59002367 moved the MFC hash matching logic into a lua utility
script but left the output formatting in the shell script. Simplify this
slightly by just printing the formatted output from lua.

Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D44836

4 weeks agoRevert "dtrace: make 'ring' and 'fill' policies imply 'noswitch' flag"
Andriy Gapon [Sun, 21 Apr 2024 10:07:36 +0000 (13:07 +0300)]
Revert "dtrace: make 'ring' and 'fill' policies imply 'noswitch' flag"

This reverts commit e92491d95ff3500e140eafa614e88ca84ffb0d26.

The general idea looked good to me.  In particular, it allowed to save
some memory and avoid memory allocation failures when a large buffer
size was requested along with ring and fill policies.

But I didn't take into account that the second, supposedly unused
buffer, was actually used as the scratch buffer.  The scratch buffer is
used as a temporary space for DTrace subroutines like copyin, copyinstr,
and alloca.

I think that the change can be fixed by allocating a separate smaller
buffer for the scratch buffer, but that fix would require more work than
I am able to do now.  Hence the revert.

Reported by: Domagoj Stolfa
Diagnosed by: Domagoj Stolfa, markj
MFC after: immediately

4 weeks agofreescale: Fix a typo in a source code comment
Gordon Bergling [Sun, 21 Apr 2024 07:52:14 +0000 (09:52 +0200)]
freescale: Fix a typo in a source code comment

- s/cant/can't/

MFC after: 3 days

4 weeks agouipc_domain: Fix a typo in a source code comment
Gordon Bergling [Sun, 21 Apr 2024 07:51:14 +0000 (09:51 +0200)]
uipc_domain: Fix a typo in a source code comment

- s/cant/can't/

MFC after: 3 days

4 weeks agogeom(4): Fix a typo in a source code comment
Gordon Bergling [Sun, 21 Apr 2024 07:49:44 +0000 (09:49 +0200)]
geom(4): Fix a typo in a source code comment

- s/cant/can't/

MFC after: 3 days

4 weeks agowtap: Fix typos in kernel messages
Gordon Bergling [Sun, 21 Apr 2024 07:47:24 +0000 (09:47 +0200)]
wtap: Fix typos in kernel messages

- s/cant/can't/

MFC after: 1 week

4 weeks agovmm(4): Fix a typo in a kernel message
Gordon Bergling [Sun, 21 Apr 2024 07:44:18 +0000 (09:44 +0200)]
vmm(4): Fix a typo in a kernel message

- s/cant/can't/

MFC after: 1 week

4 weeks agoahc(4)/ahd(4): fix target mode on ARM
Kyle Evans [Sun, 21 Apr 2024 03:04:04 +0000 (22:04 -0500)]
ahc(4)/ahd(4): fix target mode on ARM

One of the comments in ahc_execute_scb() notes that the CAM direction is
actually w.r.t. the initiator.  As a consequence, all of our sync ops
end up being wrong because the direction is flipped from that of the
transfer.  Fix it to do proper invalidation and avoid spewing random
garbage out on the SCSI bus.

Reported and tested by: HP van Braam <hp@tmm.cx>
Reviewed by: imp, mav
Differential Revision: https://reviews.freebsd.org/D44860

4 weeks agoahc(4): resolve some minor nits
Kyle Evans [Sun, 21 Apr 2024 03:04:04 +0000 (22:04 -0500)]
ahc(4): resolve some minor nits

In ahc_init(), qoutfifo is already assigned to effectively the same
value a couple lines up, except in the first assignment it uses the
proper definition; keep the more descriptive assignment.

ahc_targetcmd_offset() gets the offset wrong entirely; as per the
area of ahc_init() this diff also touches, targetcmds is laid out first
in the shared map and it's followed by the qoutfifo.  As a result, we'd
generally be getting negative offsets here.  We can't actually do a
partial sync anyways, so there was no consequence to getting this wrong.

Reviewed by: imp, mav
Differential Revision: https://reviews.freebsd.org/D44859

4 weeks agoadduser: A few more improvements.
Dag-Erling Smørgrav [Sat, 20 Apr 2024 19:35:25 +0000 (21:35 +0200)]
adduser: A few more improvements.

MFC after: 1 week
Reviewed by: jrm
Differential Revision: https://reviews.freebsd.org/D44871

4 weeks agoldconfig: fix man-page - duplicate dot at end of sentence
Stefan Eßer [Sat, 20 Apr 2024 17:49:10 +0000 (19:49 +0200)]
ldconfig: fix man-page - duplicate dot at end of sentence

Reported by: gbe

4 weeks agograid3: Fix teardown in g_raid3_try_destroy()
Mark Johnston [Sat, 20 Apr 2024 16:02:06 +0000 (12:02 -0400)]
graid3: Fix teardown in g_raid3_try_destroy()

Commit 33cb9b3c3a22 replaced a g_raid3_destroy_device() call with a
g_raid3_free_device() call, which was incorrect and could lead to a
panic if a RAID3 GEOM failed to start (e.g., due to missing disks).

Reported by: graid3 tests
Fixes: 33cb9b3c3a22 ("graid3: Fix teardown races")
MFC after: 3 days
Sponsored by: Klara, Inc.

4 weeks agowg tests: Add a simple regression test case for netmap support
Mark Johnston [Sat, 20 Apr 2024 16:01:53 +0000 (12:01 -0400)]
wg tests: Add a simple regression test case for netmap support

MFC after: 1 month
Sponsored by: Klara, Inc.
Sponsored by: Zenarmor

4 weeks agowg: Add netmap support
Mark Johnston [Sat, 20 Apr 2024 16:01:28 +0000 (12:01 -0400)]
wg: Add netmap support

When in netmap (emulated) mode, wireguard interfaces prepend or strip a
dummy ethernet header when interfacing with netmap.  The netmap
application thus sees unencrypted, de-encapsulated frames with a fixed
header.

In this mode, netmap hooks the if_input and if_transmit routines of the
ifnet.  Packets from the host TX ring are handled by wg_if_input(),
which simply hands them to the netisr layer; packets which would
otherwise be tunneled are intercepted in wg_output() and placed in the
host RX ring.

The "physical" TX ring is processed by wg_transmit(), which behaves
identically to wg_output() when netmap is not enabled, and packets
appear in the "physical" RX ring by hooking wg_deliver_in().

Reviewed by: vmaffione
MFC after: 1 month
Sponsored by: Klara, Inc.
Sponsored by: Zenarmor
Differential Revision: https://reviews.freebsd.org/D43460

4 weeks agolibpmc: Import AMD Zen 4 PMU events
Alexander Motin [Sat, 20 Apr 2024 15:54:04 +0000 (11:54 -0400)]
libpmc: Import AMD Zen 4 PMU events

MFC after: 1 week

4 weeks agoMerge llvm-project release/18.x llvmorg-18.1.4-0-ge6c3289804a6
Dimitry Andric [Sat, 20 Apr 2024 12:01:32 +0000 (14:01 +0200)]
Merge llvm-project release/18.x llvmorg-18.1.4-0-ge6c3289804a6

This updates llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and
openmp to llvm-project release/18.x llvmorg-18.1.4-0-ge6c3289804a6.

PR: 276104
MFC after: 3 days

4 weeks agortld(1): minor clarification for LD_STATIC_TLS_EXTRA
Konstantin Belousov [Sat, 20 Apr 2024 13:47:44 +0000 (16:47 +0300)]
rtld(1): minor clarification for LD_STATIC_TLS_EXTRA

Also properly style the paragraph.

Sponsored by: The FreeBSD Foundation
MFC after: 3 days

4 weeks agods1307(4): Fix a typo in a source code comment
Gordon Bergling [Sat, 20 Apr 2024 12:14:21 +0000 (14:14 +0200)]
ds1307(4): Fix a typo in a source code comment

- s/slighly/slightly/

MFC after: 1 week

4 weeks agoi386: Fix a typo in a source code comment
Gordon Bergling [Sat, 20 Apr 2024 12:13:33 +0000 (14:13 +0200)]
i386: Fix a typo in a source code comment

- s/slighly/slightly/

MFC after: 1 week

4 weeks agosafe(4): Remove a double word in a source code comment
Gordon Bergling [Sat, 20 Apr 2024 12:12:23 +0000 (14:12 +0200)]
safe(4): Remove a double word in a source code comment

- s/of of/of/

MFC after: 3 days

4 weeks agousb(4): Remove a double word in a source code comment
Gordon Bergling [Sat, 20 Apr 2024 12:10:59 +0000 (14:10 +0200)]
usb(4): Remove a double word in a source code comment

- s/of of/of/

MFC after: 3 days

4 weeks agobhnd(4): Remove a double word in a source code comment
Gordon Bergling [Sat, 20 Apr 2024 12:09:18 +0000 (14:09 +0200)]
bhnd(4): Remove a double word in a source code comment

- s/of of/of/

MFC after: 3 days

4 weeks agoNOTES: Remove a double word in comment
Gordon Bergling [Sat, 20 Apr 2024 12:08:04 +0000 (14:08 +0200)]
NOTES: Remove a double word in comment

- s/of of/of/

MFC after: 3 days

4 weeks agoarm64: Remove a double word in a source code comment
Gordon Bergling [Sat, 20 Apr 2024 12:06:53 +0000 (14:06 +0200)]
arm64: Remove a double word in a source code comment

- s/of of/of/

MFC after: 3 days

4 weeks agosys: Remove two double words in source code comments
Gordon Bergling [Sat, 20 Apr 2024 12:04:31 +0000 (14:04 +0200)]
sys: Remove two double words in source code comments

- s/of of/of/

MFC after: 5 days

4 weeks agomwlstats: Fix a typo in an error message
Gordon Bergling [Sat, 20 Apr 2024 12:02:54 +0000 (14:02 +0200)]
mwlstats: Fix a typo in an error message

- s/the the/the/

MFC after: 5 days

4 weeks agoifconfig(8): Fix two typos in source code comments
Gordon Bergling [Sat, 20 Apr 2024 12:01:23 +0000 (14:01 +0200)]
ifconfig(8): Fix two typos in source code comments

- s/the the/the/

MFC after: 3 days

4 weeks agotimerfd.2: Remove a double word
Gordon Bergling [Sat, 20 Apr 2024 09:31:25 +0000 (11:31 +0200)]
timerfd.2: Remove a double word

- s/is is/is/

MFC after: 3 days

4 weeks agotarfs(5): Grammar fix for a source code comment
Gordon Bergling [Sat, 20 Apr 2024 09:21:54 +0000 (11:21 +0200)]
tarfs(5): Grammar fix for a source code comment

- s/the the/of the/

MFC after:i 3 days

4 weeks agonvmecontrol(8): Remove a double word in a source code comment
Gordon Bergling [Sat, 20 Apr 2024 09:18:59 +0000 (11:18 +0200)]
nvmecontrol(8): Remove a double word in a source code comment

- s/the the/the/

MFC after: 3 days

4 weeks agobinmiscctl.8: Remove a double word
Gordon Bergling [Sat, 20 Apr 2024 09:15:20 +0000 (11:15 +0200)]
binmiscctl.8: Remove a double word

- s/the the/the/

MFC after: 3 days

4 weeks agoman: do not ignore the exit status of roff tools
Wolfram Schneider [Sat, 20 Apr 2024 08:24:58 +0000 (08:24 +0000)]
man: do not ignore the exit status of roff tools

PR: 223516
Approved by: emaste, bapt
Differential Revision: https://reviews.freebsd.org/D44798

4 weeks agoldconfig: document changed default byte-order
Stefan Eßer [Sat, 20 Apr 2024 06:30:35 +0000 (08:30 +0200)]
ldconfig: document changed default byte-order

Document that the hints file is created in little-endian byte-order
by default now. The -B option can be used to create a big-endian hints
file. Currently, both formats are accepted by the run-time linker on
all architectures.

MFC after: 3 days
Relnotes: yes

4 weeks agoadd dtb support for RPI CM4, CM4s, CM4_ioBoard
Klaus Küchemann [Fri, 19 Apr 2024 22:53:46 +0000 (16:53 -0600)]
add dtb support for RPI CM4, CM4s, CM4_ioBoard

Signed-off-by: Klaus Küchemann <maciphone2@googlemail.com>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1182

4 weeks agopackage: move lpr into its own package
Lexi Winter [Fri, 19 Apr 2024 22:53:30 +0000 (16:53 -0600)]
package: move lpr into its own package

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1171

4 weeks agorescue: add ipfw, pfctl
Lexi Winter [Fri, 19 Apr 2024 22:53:23 +0000 (16:53 -0600)]
rescue: add ipfw, pfctl

Rationale for this change:

- ipf is already there

- if the kernel is configured with a packet filter which drops packets
  by default, pfctl or ipfw will be required in the rescue environment
  to make the network functional.

- rescue's stated purpose is to be useful for small/embedded systems
  (and is also quite useful for small jails); a rescue-based router
  would want these binaries.

On amd64, this increases the size of rescue from 17346200 to 17907248,
or 561048 bytes (3.2%).

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1169

4 weeks agousr.bin/units: use else..if to avoid calling the next branch
rilysh [Fri, 19 Apr 2024 22:53:05 +0000 (16:53 -0600)]
usr.bin/units: use else..if to avoid calling the next branch

Even if the first branch succeeds, next time it will still check for
the second branch (which will be false) as the first one was true.
Add an else..if statement to address this.

Signed-off-by: rilysh <nightquick@proton.me>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1165

4 weeks agoAdd support for Intel Atom S1200 UART
Henrich Hartzer [Fri, 19 Apr 2024 22:52:49 +0000 (16:52 -0600)]
Add support for Intel Atom S1200 UART

PR: 278316

Signed-off-by: Henrich Hartzer <henrichhartzer@tuta.io>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1164

4 weeks agoglabel: Remove support for old reiserfs
Ricardo Branco [Fri, 19 Apr 2024 22:47:55 +0000 (16:47 -0600)]
glabel: Remove support for old reiserfs

Reviewed by: imp, emaste
Pull Request: https://github.com/freebsd/freebsd-src/pull/1101

4 weeks agoacpi_iicbus: Shift slave address
Ahmad Khalifa [Fri, 19 Apr 2024 22:43:19 +0000 (16:43 -0600)]
acpi_iicbus: Shift slave address

The address is expected to need shifting.
see https://uefi.org/specs/ACPI/6.5/13_System_Mgmt_Bus_Interface_Specification.html#smbus-slave-addresses

Reviewed by: imp, markj, Elliott Mitchell
Pull Request: https://github.com/freebsd/freebsd-src/pull/1125

4 weeks agoig4_iic: Warn on NACK
Ahmad Khalifa [Fri, 19 Apr 2024 22:43:19 +0000 (16:43 -0600)]
ig4_iic: Warn on NACK

Some DSDTs define non-existent devices, warn the user when an access is attempted on one of these devices.

Reviewed by: imp, markj, Elliott Mitchell
Pull Request: https://github.com/freebsd/freebsd-src/pull/1125

4 weeks agoacpi_cmbat: Use nitems instead of sizeof
Ahmad Khalifa [Fri, 19 Apr 2024 22:43:19 +0000 (16:43 -0600)]
acpi_cmbat: Use nitems instead of sizeof

Reviewed by: imp, markj, Elliott Mitchell
Pull Request: https://github.com/freebsd/freebsd-src/pull/1125

4 weeks agoig4_reg: Update datasheet link
Ahmad Khalifa [Fri, 19 Apr 2024 22:43:19 +0000 (16:43 -0600)]
ig4_reg: Update datasheet link

Reviewed by: imp, markj, Elliott Mitchell
Pull Request: https://github.com/freebsd/freebsd-src/pull/1125

4 weeks agoAdd support for i2c-tiny-usb: usb to iic bridge
Denis Bodor [Fri, 19 Apr 2024 22:38:37 +0000 (16:38 -0600)]
Add support for i2c-tiny-usb: usb to iic bridge

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1123

4 weeks agobsdiff: Use mmap instead of malloc
Ricardo Branco [Fri, 19 Apr 2024 22:32:43 +0000 (16:32 -0600)]
bsdiff: Use mmap instead of malloc

Note: This follows the current style of the bsdiff.c and bspatch.c
files, which is rather far from style(9).

Reviewed by: imp, cpervica
Pull Request: https://github.com/freebsd/freebsd-src/pull/1076

4 weeks agointro.2: Integrate introduction with state of page
Alexander Ziaee [Fri, 19 Apr 2024 22:22:39 +0000 (16:22 -0600)]
intro.2: Integrate introduction with state of page

Reviewed by: imp, brooks
Pull Request: https://github.com/freebsd/freebsd-src/pull/1065

4 weeks agointro.2: Section RETURN VALUES is actually ERRORS
Alexander Ziaee [Fri, 19 Apr 2024 22:22:39 +0000 (16:22 -0600)]
intro.2: Section RETURN VALUES is actually ERRORS

Reviewed by: imp, brooks
Pull Request: https://github.com/freebsd/freebsd-src/pull/1065

4 weeks agointro.2: Add FILES mentioning table of syscalls
Alexander Ziaee [Fri, 19 Apr 2024 22:22:39 +0000 (16:22 -0600)]
intro.2: Add FILES mentioning table of syscalls

Reviewed by: imp, brooks
Pull Request: https://github.com/freebsd/freebsd-src/pull/1065

4 weeks agointro.2: Tweak grammar and syntax for consistency
Alexander Ziaee [Fri, 19 Apr 2024 22:22:39 +0000 (16:22 -0600)]
intro.2: Tweak grammar and syntax for consistency

Reviewed by: imp, brooks
Pull Request: https://github.com/freebsd/freebsd-src/pull/1065

4 weeks agointro.2: Import HISTORY from OpenBSD but our style
Alexander Ziaee [Fri, 19 Apr 2024 22:22:39 +0000 (16:22 -0600)]
intro.2: Import HISTORY from OpenBSD but our style

Reviewed by: imp, brooks
Pull Request: https://github.com/freebsd/freebsd-src/pull/1065

4 weeks agomailwrapper(8): change behaviour if mailer.conf cannot be opened
Lexi Winter [Sat, 30 Dec 2023 15:09:15 +0000 (15:09 +0000)]
mailwrapper(8): change behaviour if mailer.conf cannot be opened

Previously, mailwrapper(8) would default to invoking _PATH_DEFAULTMTA
(i.e., dma) if mailer.conf couldn't be opened for any reason, including
transient errors like ENFILE.  This behaviour is undesirable, because if
the administrator has configured a different MTA in mailer.conf, they
almost certainly don't want mailwrapper to unpredictably fall back to
the compiled-in default; and in any case, the default MTA is probably
not running, meaning the mail may be queued and then never delivered,
which is worse than not accepting it to begin with.

Change this behaviour depending on why mailer.conf can't be opened:

- If it doesn't exist, keep the existing behaviour of falling back to
  the default MTA, on the assumption that this is a reasonable default
  if mailer.conf hasn't been configured at all.

- If it cannot be opened for any other reason, do not invoke an MTA and
  instead return an error to the caller.

PR: 25218
Reviewed by: imp, emaste, markj
Pull Request: https://github.com/freebsd/freebsd-src/pull/969

4 weeks agolibc/quad: further narrow list of i386 symbols
Brooks Davis [Fri, 19 Apr 2024 21:54:39 +0000 (22:54 +0100)]
libc/quad: further narrow list of i386 symbols

It's unclear to me why lld didn't complain about these are they aren't
present and haven't been.  Instead ld.bfd complained.

Reviewed by: dim
Fixes: 6e6cd03c911c libc/quad: narrow list of symbols exposed on i386
Differential Revision: https://reviews.freebsd.org/D44879

4 weeks agolibgcc_s: expose __divmoddi4 on i386
Brooks Davis [Fri, 19 Apr 2024 21:52:42 +0000 (22:52 +0100)]
libgcc_s: expose __divmoddi4 on i386

GCC has used this for some time (since 7.0) and apparently we were
getting away with using the hidden symbol, but when linking with
--no-undefined-version we get an error unless it's properly exported.
(For anyone who wonders at the assymetry, __udivmoddi4 is indeed much
older and was introduced with GCC 3.0.)

MFC after: 3 days
Reviewed by: dim
Differential Revision: https://reviews.freebsd.org/D44878

4 weeks agolibgcc_{eh,s}: restore __*_frame_info symbols post llvm18
Brooks Davis [Fri, 19 Apr 2024 21:45:05 +0000 (22:45 +0100)]
libgcc_{eh,s}: restore __*_frame_info symbols post llvm18

The upstream llvm commit 5eb44df1b64d made the addition of these GCC
compatability symbols dependent on build configuration rather than
hardcoded for amd64, i386, and powerpc.  Reenable them.

Reviewed by: dim
Differential Revision: https://reviews.freebsd.org/D44877

4 weeks agoxargs: use getline() instead of fgetln()
Martin Tournoij [Fri, 19 Apr 2024 21:11:31 +0000 (15:11 -0600)]
xargs: use getline() instead of fgetln()

This replaces fgetln() with getline(). The main reason for this is
portability, making things easier for people who want to compile these
tools on non-FreeBSD systems.

I appreciate that's probably not the top concern for FreeBSD base tools,
but fgetln() is impossible to port to most platforms, as concurrent
access is essentially impossible to implement fully correct without the
line buffer on the FILE struct. Other than this, many generic FreeBSD
tools compile fairly cleanly on Linux with a few small changes.

Most uses of fgetln() pre-date getline() support (added in 2009 with
69099ba2ec8b), and there's been some previous patches (ee3ca711a898
8c98e6b1a7f3 1a2a4fc8ce1b) for other tools.

Obtained from: https://github.com/dcantrell/bsdutils and
               https://github.com/chimera-linux/chimerautils
Signed-off-by: Martin Tournoij <martin@arp242.net>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/893

4 weeks agopatch: use getline() instead of fgetln()
Martin Tournoij [Fri, 19 Apr 2024 21:11:30 +0000 (15:11 -0600)]
patch: use getline() instead of fgetln()

This replaces fgetln() with getline(). The main reason for this is
portability, making things easier for people who want to compile these
tools on non-FreeBSD systems.

I appreciate that's probably not the top concern for FreeBSD base tools,
but fgetln() is impossible to port to most platforms, as concurrent
access is essentially impossible to implement fully correct without the
line buffer on the FILE struct. Other than this, many generic FreeBSD
tools compile fairly cleanly on Linux with a few small changes.

Most uses of fgetln() pre-date getline() support (added in 2009 with
69099ba2ec8b), and there's been some previous patches (ee3ca711a898
8c98e6b1a7f3 1a2a4fc8ce1b) for other tools.

Obtained from: https://github.com/dcantrell/bsdutils and
               https://github.com/chimera-linux/chimerautils
Signed-off-by: Martin Tournoij <martin@arp242.net>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/893

4 weeks agojoin: use getline() instead of fgetln()
Martin Tournoij [Fri, 19 Apr 2024 21:11:30 +0000 (15:11 -0600)]
join: use getline() instead of fgetln()

This replaces fgetln() with getline(). The main reason for this is
portability, making things easier for people who want to compile these
tools on non-FreeBSD systems.

I appreciate that's probably not the top concern for FreeBSD base tools,
but fgetln() is impossible to port to most platforms, as concurrent
access is essentially impossible to implement fully correct without the
line buffer on the FILE struct. Other than this, many generic FreeBSD
tools compile fairly cleanly on Linux with a few small changes.

Most uses of fgetln() pre-date getline() support (added in 2009 with
69099ba2ec8b), and there's been some previous patches (ee3ca711a898
8c98e6b1a7f3 1a2a4fc8ce1b) for other tools.

Obtained from: https://github.com/dcantrell/bsdutils and
               https://github.com/chimera-linux/chimerautils
Signed-off-by: Martin Tournoij <martin@arp242.net>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/893

4 weeks agohead: use getline() instead of fgetln()
Martin Tournoij [Fri, 19 Apr 2024 21:11:30 +0000 (15:11 -0600)]
head: use getline() instead of fgetln()

This replaces fgetln() with getline(). The main reason for this is
portability, making things easier for people who want to compile these
tools on non-FreeBSD systems.

I appreciate that's probably not the top concern for FreeBSD base tools,
but fgetln() is impossible to port to most platforms, as concurrent
access is essentially impossible to implement fully correct without the
line buffer on the FILE struct. Other than this, many generic FreeBSD
tools compile fairly cleanly on Linux with a few small changes.

Most uses of fgetln() pre-date getline() support (added in 2009 with
69099ba2ec8b), and there's been some previous patches (ee3ca711a898
8c98e6b1a7f3 1a2a4fc8ce1b) for other tools.

Obtained from: https://github.com/dcantrell/bsdutils and
               https://github.com/chimera-linux/chimerautils
Signed-off-by: Martin Tournoij <martin@arp242.net>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/893

4 weeks agodiff: use getline() instead of fgetln()
Martin Tournoij [Fri, 19 Apr 2024 21:11:30 +0000 (15:11 -0600)]
diff: use getline() instead of fgetln()

This replaces fgetln() with getline(). The main reason for this is
portability, making things easier for people who want to compile these
tools on non-FreeBSD systems.

I appreciate that's probably not the top concern for FreeBSD base tools,
but fgetln() is impossible to port to most platforms, as concurrent
access is essentially impossible to implement fully correct without the
line buffer on the FILE struct. Other than this, many generic FreeBSD
tools compile fairly cleanly on Linux with a few small changes.

Most uses of fgetln() pre-date getline() support (added in 2009 with
69099ba2ec8b), and there's been some previous patches (ee3ca711a898
8c98e6b1a7f3 1a2a4fc8ce1b) for other tools.

Obtained from: https://github.com/dcantrell/bsdutils and
               https://github.com/chimera-linux/chimerautils
Signed-off-by: Martin Tournoij <martin@arp242.net>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/893

4 weeks agocut: use getline() instead of fgetln()
Martin Tournoij [Fri, 19 Apr 2024 21:11:30 +0000 (15:11 -0600)]
cut: use getline() instead of fgetln()

This replaces fgetln() with getline(). The main reason for this is
portability, making things easier for people who want to compile these
tools on non-FreeBSD systems.

I appreciate that's probably not the top concern for FreeBSD base tools,
but fgetln() is impossible to port to most platforms, as concurrent
access is essentially impossible to implement fully correct without the
line buffer on the FILE struct. Other than this, many generic FreeBSD
tools compile fairly cleanly on Linux with a few small changes.

Most uses of fgetln() pre-date getline() support (added in 2009 with
69099ba2ec8b), and there's been some previous patches (ee3ca711a898
8c98e6b1a7f3 1a2a4fc8ce1b) for other tools.

Obtained from: https://github.com/dcantrell/bsdutils and
               https://github.com/chimera-linux/chimerautils
Signed-off-by: Martin Tournoij <martin@arp242.net>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/893

4 weeks agoztest: use ASSERT3P to compare pointers
Brooks Davis [Fri, 19 Apr 2024 21:31:53 +0000 (22:31 +0100)]
ztest: use ASSERT3P to compare pointers

Fixes i386-gcc13 build.  Direct commit while waiting for upstream.

Pull Request: https://github.com/openzfs/zfs/pull/16115

4 weeks agoRevert "lib{c,sys}: normalize export of openat, setcontext, and swapcontext"
Brooks Davis [Fri, 19 Apr 2024 21:21:46 +0000 (22:21 +0100)]
Revert "lib{c,sys}: normalize export of openat, setcontext, and swapcontext"

I put the symbols in the wrong file (should have been
lib/libc/sys/Symbol.map), added a duplicate pdfork entry due to a botch
rebase, and there seems to be a issue with gcc13/binutils not exposing
the symbols so revert the whole thing while I debug.

This reverts commit ee632fb9eb4a060a4087a7f5425bfe36e65cda61.

4 weeks agokasan: fix false-positive kasan_report upon thread reuse
Ka Ho Ng [Fri, 19 Apr 2024 19:18:27 +0000 (15:18 -0400)]
kasan: fix false-positive kasan_report upon thread reuse

In fork1(), if a thread is reused and thread_alloc_stack() is not
called, mark the reused thread's kstack pages clean in the KASAN shadow
buffer.

Sponsored by: Juniper Networks, Inc.
MFC after: 3 days
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D44875

4 weeks agoctags: Use C99 bool instead of defining our own
Collin Funk [Wed, 7 Feb 2024 00:34:50 +0000 (16:34 -0800)]
ctags: Use C99 bool instead of defining our own

Use stdbool.h definitions instead of defining non-standard ones.

Signed-off-by: Collin Funk <collin.funk1@gmail.com>
Reviewed by: markj
MFC after: 2 weeks
Pull Request: https://github.com/freebsd/freebsd-src/pull/1107

4 weeks agotests: move atf_python/sys/ into the tests package
Lexi Winter [Tue, 16 Apr 2024 11:18:23 +0000 (12:18 +0100)]
tests: move atf_python/sys/ into the tests package

Reviewed by: markj
MFC after: 1 week
Pull Request: https://github.com/freebsd/freebsd-src/pull/1174

4 weeks agobpf: Make BPF interop consistent with if_loop
Seth Hoffert [Sun, 22 Oct 2023 14:12:45 +0000 (09:12 -0500)]
bpf: Make BPF interop consistent with if_loop

The pseudo_AF_HDRCMPLT check is already being done in if_loop and
just needed to be ported over to if_ic, if_wg, if_disc, if_gif,
if_gre, if_me, if_tuntap and ng_iface.  This is needed in order to
allow these interfaces to work properly with e.g., tcpreplay.

PR: 256587
Reviewed by: markj
MFC after: 2 weeks
Pull Request: https://github.com/freebsd/freebsd-src/pull/876

4 weeks agoinstall: Fix a compiler warning when bootstrapping
Mark Johnston [Fri, 19 Apr 2024 18:22:00 +0000 (14:22 -0400)]
install: Fix a compiler warning when bootstrapping

Fixes: 4336161cc9c6 ("install: Don't skip syncing in the common case.")
Reviewed by: imp, des
Differential Revision: https://reviews.freebsd.org/D44866

4 weeks agoLinuxKPI: utsname.h add missing SPDX-License-Identifier
Bjoern A. Zeeb [Fri, 19 Apr 2024 18:23:12 +0000 (18:23 +0000)]
LinuxKPI: utsname.h add missing SPDX-License-Identifier

Reported by: markj (2023-05-24; sorry took me a while)
MFC after: 3 days

4 weeks agofreebsd-update(8): Use kern.module_path
Fernando Apesteguía [Mon, 15 Apr 2024 12:18:06 +0000 (14:18 +0200)]
freebsd-update(8): Use kern.module_path

Instead of tailored configuration files to look for module_path entries.

Reported by: kevans@
Reviewed by: kevans, imp, zlei
Approved by: kevans,zlei
Differential Revision: https://reviews.freebsd.org/D44797

4 weeks agoexpand.1: Fix markup for the '-t' option
Gordon Bergling [Fri, 19 Apr 2024 15:39:37 +0000 (17:39 +0200)]
expand.1: Fix markup for the '-t' option

When viewing the manpage the '-t' option is shown as follows

    -t -Sm tab1, tab2, ..., tabn Sm

with the markup '\&Sm' included within '.It Fl t', which doesn't
makes any sense.

So just remove it.

PR: 274897
MFC after: 3 days

4 weeks agoadduser: Overhaul.
Dag-Erling Smørgrav [Fri, 19 Apr 2024 15:11:16 +0000 (17:11 +0200)]
adduser: Overhaul.

Most importantly:

* Make local variables local.
* Use `$()` instead of backticks.
* Avoid unsafe use of `-a` and `-o` operators in `test` expressions.
* Remove a hack intended to ease the transition from Perl 22 years ago.

MFC after: 1 week
Reviewed by: allanjude
Differential Revision: https://reviews.freebsd.org/D44863

4 weeks agoldconfig: use little-endian hints file on all architectures
Stefan Eßer [Fri, 19 Apr 2024 14:49:57 +0000 (16:49 +0200)]
ldconfig: use little-endian hints file on all architectures

Remove the test for building on a big-endian architecture, which
preserved the previous default of creating the ELF hints file in
native byte-order of the respective architecture.

Support for little-endian hints files has been added to the
run-time linker and the pkg command.

This is a step towards architecture independent little-endian hints
files, but support for big-endian hints files shall only be removed
from the run-time linker (and ldconfig and pkg) when the last release
that defaulted to hints files in host-byte has been declared EOL.

Reviewed by:    kib
Tested by: tuexen
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D44734

4 weeks agoldconfig: small optimization
Stefan Eßer [Fri, 19 Apr 2024 14:29:12 +0000 (16:29 +0200)]
ldconfig: small optimization

Swap which side of a comparison is byte-swapped by be32toh()
on little-endian architectures.

The be32toh() macro just returns the operand and big-endian
architectures and returns it byte-swapped on little-endian
architectures.

When operating on a constant argument, the compiler can perform
the swap operation at build time instead of swapping the data
read from the hints file at run time.

Reviewed by: kib
Tested by: tuexen
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D44734

4 weeks agoarm: Fix a typo in a KASSERT message
Gordon Bergling [Fri, 19 Apr 2024 06:54:39 +0000 (08:54 +0200)]
arm: Fix a typo in a KASSERT message

- s/resoure/resource/

MFC after: 5 days

4 weeks agouipc_shm: Fix a free() of an uninitialized variable
Mark Johnston [Fri, 19 Apr 2024 00:15:51 +0000 (20:15 -0400)]
uipc_shm: Fix a free() of an uninitialized variable

Reported by: Coverity
CID: 1544043
Fixes: b112232e4fb9 ("uipc_shm: Copyin userpath for ktrace(2)")

4 weeks agoice(4): Update to 1.39.13-k
Eric Joyner [Tue, 13 Feb 2024 06:26:26 +0000 (22:26 -0800)]
ice(4): Update to 1.39.13-k

- Adds mirror interface functionality
- Remove unused virtchnl headers

Signed-off-by: Eric Joyner <erj@FreeBSD.org>
MFC-with: 768329961dc0c041f7647f1c4549944a2ca168aa
MFC after: 3 days
Sponsored by: Intel Corporation
Tested by: jeffrey.e.pieper@intel.com
Differential Revision: https://reviews.freebsd.org/D44004

4 weeks agoice(4): Update copyright year to 2024
Eric Joyner [Tue, 13 Feb 2024 06:25:47 +0000 (22:25 -0800)]
ice(4): Update copyright year to 2024

Signed-off-by: Eric Joyner <erj@FreeBSD.org>
MFC after: 3 days
Sponsored by: Intel Corporation
Differential Revision: https://reviews.freebsd.org/D44003

4 weeks agoiflib: Add subinterface interrupt allocation function
Eric Joyner [Wed, 18 Jan 2023 00:46:39 +0000 (16:46 -0800)]
iflib: Add subinterface interrupt allocation function

The ice(4) driver will add the ability to create extra interfaces
that hang off of the base interface; to do that the driver requires
a method for the subinterface to request hardware interrupt resources
from the base interface.

Signed-off-by: Eric Joyner <erj@FreeBSD.org>
MFC after: 3 days
Sponsored by: Intel Corporation
Differential Revision: https://reviews.freebsd.org/D39930

4 weeks agoiflib: Add sysctl to request extra MSIX vectors on driver load
Eric Joyner [Wed, 22 Mar 2023 19:18:44 +0000 (12:18 -0700)]
iflib: Add sysctl to request extra MSIX vectors on driver load

Intended to be used with upcoming feature to add sub-interfaces, since
those new interfaces will be dynamically created and will need to have
spare MSI-X interrupts already allocated for them on driver load.

This sysctl is marked as a tunable since it will need to be set before
the driver is loaded since MSI-X interrupt allocation and setup is
done during the attach process.

Signed-off-by: Eric Joyner <erj@FreeBSD.org>
MFC after: 3 days
Sponsored by: Intel Corporation
Differential Revision: https://reviews.freebsd.org/D41326

4 weeks agoUpdate sys.dirdeps.mk set default DEP_*
Simon J. Gerraty [Thu, 18 Apr 2024 21:07:24 +0000 (14:07 -0700)]
Update sys.dirdeps.mk set default DEP_*

Even at level 0 it is handy to default DEP_*
used by Makefile.depend* to aid the first include if
in a leaf dir.

Reviewed by: stevek

4 weeks agosound: Remove obsolete DV_F_* flags
Christos Margiolis [Thu, 18 Apr 2024 20:35:26 +0000 (22:35 +0200)]
sound: Remove obsolete DV_F_* flags

The ISA sound drivers that used them are retired.

Last reference of DV_F_DRQ_MASK and DV_F_DUAL_DMA:
716924cb4832ea0a440daf09913a06f3166f243e ("Retire snd_sbc ISA sound card
driver")

Last reference of DV_F_DEV_MASK and DV_F_DEV_SHIFT:
5126e5eeeb5e07ceef3c809452a8c9f508b2d4d1 ("Retire snd_mss ISA sound card
driver")

Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Reviewed by: markj, emaste
Differential Revision: https://reviews.freebsd.org/D44858

4 weeks agosound: Simplify unit fetching in dsp_oss_audioinfo()
Christos Margiolis [Thu, 18 Apr 2024 20:35:20 +0000 (22:35 +0200)]
sound: Simplify unit fetching in dsp_oss_audioinfo()

"i" keeps the value of the current unit, so we do not have to call
PCMUNIT() and device_get_unit() to fetch it.

In the mixer case, I think it is more correct to do it like this, since
mixer and DSP device units have a 1-1 relationship (i.e the mixer unit
is always the same as the corresponding DSP device one) and that way we
can make it more clear.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D44855

4 weeks agosound: Remove PCMMINOR()
Christos Margiolis [Thu, 18 Apr 2024 20:35:15 +0000 (22:35 +0200)]
sound: Remove PCMMINOR()

It's a NO-OP.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Reviewed by: markj, emaste
Differential Revision: https://reviews.freebsd.org/D44854

4 weeks agosound: Remove obsolete chn_setvolume()
Christos Margiolis [Thu, 18 Apr 2024 20:35:11 +0000 (22:35 +0200)]
sound: Remove obsolete chn_setvolume()

It is marked as obsolete and there are no consumers of it anymore.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Reviewed by: markj, emaste
Differential Revision: https://reviews.freebsd.org/D44853