Commit graph

22887 commits

Author SHA1 Message Date
Baptiste Daroussin
8bfd7d5f50 pci_vendors: update to 2024-09-20 2024-10-08 09:06:13 +02:00
Ka Ho Ng
0a2cfd653e libkldelf: add a private library for kernel/kld-related ELF parsing
The libkldelf library was originally a part of kldxref(8). It exposed
ELF parsing helpers specialized in parsing KLDs and the kernel
executable. The library can be used to read metadata such as linker_set,
mod_depend, mod_version and PNP match info, and raw data from the ELF.

To promote the reuse of the facilities the ELF parsing code is separated
from kldxref(8) into a new private library.

kldxref(8) is modified to link against the libkldelf library.

Sponsored by:	Juniper Networks, Inc.
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D46719
2024-10-08 04:24:07 +00:00
Maxim Konovalov
3ebb738a93 bsd-family-tree: FreeBSD 13.4 and OpenBSD 7.6 added 2024-10-07 21:16:19 +00:00
Graham Percival
c8b31033c3 manuals: Misc syntax fixes
These were reported by `mandoc -T lint ...` as errors.

The rendered output (in ascii and html) is not affected by this commit.

Additional clarification: there was a non-breaking space in
lib/libcasper/services/cap_grp/cap_grp.3.

Signed-off-by:	Graham Percival <gperciva@tarsnap.com>
Reviewed by:	mhorne
MFC after:	3 days
Sponsored by:	Tarsnap Backup Inc.
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1449
2024-10-07 15:41:14 -03:00
Graham Percival
d21e322d56 manuals: Fix "missing end of block" errors
These were reported by `mandoc -T lint ...` as errors.

The rendered output (in ascii and html) is not affected by this commit.

Signed-off-by:	Graham Percival <gperciva@tarsnap.com>
Reviewed by:	mhorne
MFC after:	3 days
Sponsored by:	Tarsnap Backup Inc.
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1448
2024-10-07 15:40:58 -03:00
Graham Percival
c801836ff4 manuals: Fix "skipping end of block" .El errors
These were reported by `mandoc -T lint ...` as errors; this commit only
handles unnecessary .El commands.

The rendered output (in ascii and html) is not affected by this commit.

Signed-off-by:	Graham Percival <gperciva@tarsnap.com>
Reviewed by:	mhorne
MFC after:	3 days
Sponsored by:	Tarsnap Backup Inc.
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1447
2024-10-07 15:37:47 -03:00
Brooks Davis
77fd02501f src.conf.5: regen after diff3 changes
Fixes:		2201f7c49f Build BSD diff3 if GNU diff3 is disabled.
2024-10-04 23:01:03 +01:00
Florian Walpen
e0c37c160b snd_hdsp(4): Support AO4S-192 and AI4S-192 extension boards.
Create an additional 4 channel pcm device for RME HDSP 9632 sound cards,
to support the optional AO4S-192 and AI4S-192 extension boards. For
simplicity, the <HDSP 9632 [ext]> pcm device is always present, even if
the extension boards are not installed.

Unfortunately I cannot test this with actual hardware, but I made sure
the additional channels do not affect the functionality of the HDSP 9632
as currently in src.

Reviewed by: christos, br
Differential Revision: https://reviews.freebsd.org/D46837
2024-10-04 19:51:49 +01:00
Florian Walpen
8fb4675688 snd_hdspe(4): Addendum to AO4S-192 and AI4S-192 support.
Fix unified pcm mode after support for the AO4S-192 and AI4S-192
extension boards was added. Adjust the man page accordingly.

Reviewed by:	br
Differential Revision:	https://reviews.freebsd.org/D46946
2024-10-04 19:46:39 +01:00
Danilo Egea Gondolfo
fd3d13678e sglist.9: fix typo
In the explanation section sglist_append_mbuf is duplicated. The
second reference is meant to be sglist_append_single_mbuf.

Approved by:	mhorne (src)
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1439
2024-10-03 21:50:57 +01:00
Graham Percival
c013ca2cf7 manuals: Fix typos in -offset for .Bd and .Bl
The intended value is:
    -offset indent
If there's any typo such that the value doesn't match the pre-defined
strings, then the offset is the same width as the value.  So by chance,
"-offset -ident" ended up being a standard-width indent (since the
default indent is 6 chars, and "-ident" also has 6 chars), whereas
"-offset -indent" had a longer indent, and "-offset ident" had a shorter
one.

Signed-off-by:	Graham Percival <gperciva@tarsnap.com>
Reviewed by:	mhorne, Alexander Ziaee <concussious.bugzilla@runbox.com>
MFC after:	3 days
Sponsored by:	Tarsnap Backup Inc.
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1436
2024-10-03 14:49:31 -03:00
Graham Percival
4f2ef756a4 manuals: Fix "skipping end of block" .Ed errors
These were reported by `mandoc -T lint ...` as errors; this commit only
handles unnecessary .Ed commands.

The rendered output (in ascii and html) is not affected by this commit.

Signed-off-by:	Graham Percival <gperciva@tarsnap.com>
Reviewed by:	mhorne
MFC after:	3 days
Sponsored by:	Tarsnap Backup Inc.
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1435
2024-10-03 14:49:23 -03:00
Graham Percival
2d69f02c57 stats.3: Fix "skipping end of block" syntax errors
These were reported by `mandoc -T lint ...` as errors.

The rendered output (in ascii and html) is not affected by this commit.

There was a small misunderstanding about the mdoc format: a 1-line
enclosure does not need a closing tag.  For example, Pc is for closing
an Po; if a line uses Pq (enclose the remainder of this line), there's
no need for Pc.

Signed-off-by:	Graham Percival <gperciva@tarsnap.com>
Reviewed by:	mhorne
MFC after:	3 days
Sponsored by:	Tarsnap Backup Inc.
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1434
2024-10-03 14:49:09 -03:00
Zhenlei Huang
89937323bd khelp: Sprinkle const qualifiers where appropriate
No functional change intended.

MFC after:	1 week
2024-10-01 23:28:37 +08:00
Konstantin Belousov
b0f9f970ec Regen 2024-09-27 01:54:25 +03:00
Konstantin Belousov
eade2001aa jemalloc: set LG_VADDR to 64 on amd64
and allow to revert it back to 48 with WITHOUT_JEMALLOC_LG_VADDR_WIDE build
option.

Reviewed by:	andrew, emaste
Sponsored by:	Advanced Micro Devices (AMD)
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D46686
2024-09-27 01:54:25 +03:00
Doug Rabson
a3d5dec420 release(7): fix the spelling of git.FreeBSD.org 2024-09-26 16:20:42 +01:00
Mateusz Piotrowski
6e414739fc rc.subr.8: Fix the Bl macro of a list which is actually a table
MFC after:	2 weeks
2024-09-22 19:25:11 +01:00
Mateusz Piotrowski
859868156a rc.subr.8: Do not use mdoc macros for Bl width
Macros do not expand there.

MFC after:	1 week
2024-09-22 19:25:11 +01:00
Konstantin Belousov
66fcbd9556 VOP_ATTRIB.9: switch to Fa/Fc
Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
2024-09-22 00:18:55 +03:00
Warner Losh
e47939b3b1 hn: fix build on !x86
hv_netvm aren't installed on !x64. Do the canonical thing with the
links.

Fixes: 83e93d53f6
Sponsored by: Netflix
2024-09-21 08:53:47 -06:00
Ed Maste
03ff6260b4 src.conf.5: regen after LOADER_IA32 knob addition
Fixes: fe3f792f9a ("Add build option for the ia32 loader")
Sponsored by:	The FreeBSD Foundation
2024-09-21 09:12:36 -04:00
Alexander Ziaee
b15aff0505 mitigations.7: explain installing firmware + spdx
MFC after:	3 days
Reported by:	imp (ucode is for security)
Reported by:	emaste (ucode is not minix)
Reported by:	delphij (please ucode asap)
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1411
2024-09-21 06:56:03 -06:00
Alexander Ziaee
83e93d53f6 hv_netvsc.4: mlink to hn(4)/if_hn(4) + tag spdx
dmesg for this device says:
> hn0: <Hyper-V Network Interface> on vmbus0

Add links so that `man hn` and `man if_hn` work.

MFC after:	3 days
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1377
2024-09-21 05:25:16 -06:00
Graham Percival
2878d99dfc manuals: Misc macro typos
These were reported by `mandoc -T lint` as
    ERROR: skipping unknown macro
When these pages were rendered with `man`, the "unknown macro" meant
that the entire line was omitted from the output.

Obvious typos in:
lib/libsys/swapon.2
lib/libsys/procctl.2
share/man/man9/firmware.9

lib/libcasper/services/cap_net/cap_net.3: 'mode' describes a function
    argument.

lib/libsys/statfs.2: there's no .Tm command ("trademark?"), and
    .Tn ("tradename") is deprecated, so remove the macro entirely.

usr.sbin/mfiutil/mfiutil.8: man was interpreting '/dev/' as a macro
    (which it didn't recognize).

share/man/man4/qat.4: same issue as above, but with '0'.  In this case,
    given the context of the previous line, rewriting as "Value '0'"
    seemed more appropriate.

usr.sbin/mlx5tool/mlx5tool.8: typo in .Xr

Signed-off-by:	Graham Percival <gperciva@tarsnap.com>
Sponsored by:	Tarsnap Backup Inc.
Reviewed by:	concussious, imp
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1417
2024-09-21 05:25:15 -06:00
Mateusz Piotrowski
9dc67a7065 rc.8: Remove false information about rc.d/local
It does not handle scripts in /usr/local/etc/rc.d/. Instead, it takes
care of /etc/rc.local and /etc/rc.shutdown.local.

MFC after:	2 weeks
2024-09-20 19:28:59 +01:00
Ahmad Khalifa
fe3f792f9a Add build option for the ia32 loader
In preparation for supporting 64-bit machines with 32-bit UEFI firmware,
add a build option for compiling the ia32 loader. Currently unused.

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1098
2024-09-20 08:45:05 -06:00
Mark Johnston
0abe2d3903 agp.4: Add a deprecation notice to the man page
The driver is giant-locked and thus already prints a deprecation warning
when attaching.  The device file interface was broken in 14.0 and 14.1,
see commit 12500c1428, but it took a very long time for anyone to
notice, and in that case it was only because of some code which probes
all device files.

Relnotes:	yes
Reviewed by:	imp, jhb, emaste
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D46542
2024-09-20 12:24:34 +00:00
Kristof Provost
f3ab00c2b6 pf: add a new log opt PF_LOG_MATCHES
forces logging on all subsequent matching rules
new log opt "matches"
awesome for debugging, a rule like
match log(matches) from $testbox
will show you exactly which subsequent rules match on that packet
real ok theo assumed oks ryan & dlg bikeshedding many

Obtained from:	OpenBSD, henning <henning@openbsd.org>, 1603e01ae4
Obtained from:	OpenBSD, henning <henning@openbsd.org>, f496e91672
Obtained from:	OpenBSD, henning <henning@openbsd.org>, 07481a9fee
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D46588
2024-09-19 22:20:13 +02:00
Kristof Provost
e80f2a1087 pf.conf.5: document received-on
Reviewed by:	zlei
Obtained from:	OpenBSD, dlg <dlg@openbsd.org>, 456093dddc
Obtained from:	OpenBSD, jmc <jmc@openbsd.org>, 2bf0158fa8
Obtained from:	OpenBSD, deraadt <deraadt@openbsd.org>, be785dc6e2
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D46579
2024-09-16 13:48:40 +02:00
Colin Percival
0a5443da81 man4: Add a comment about Hardware Notes
The Hardware Notes for each release are generated automatically from a
template file and the HARDWARE sections of driver man pages.  When man
pages for new drivers are added here, they should usually be added to
the release notes template file.

Suggested by:	bz
Sponsored by:	Amazon
2024-09-14 12:23:31 -07:00
Mark Johnston
339a1977c3 pf: Add a sysctl to limit work done for rdr source port rewriting
It was pointed out that the current approach of exhaustively searching
for a free source port might be very time consuming.  Limit the amount
of work that we might do before giving up.

Reviewed by:	kp
Reported by:	Eirik Øverby <ltning-freebsd@anduin.net>
MFC after:	3 months
Sponsored by:	Klara, Inc.
Sponsored by:	Modirum
Differential Revision:	https://reviews.freebsd.org/D46495
2024-09-10 14:58:19 +00:00
Mark Johnston
a6c8ab4f45 src.conf.5: Regenerate 2024-09-07 14:44:51 +00:00
Mark Johnston
24affded3d src.conf: Add a MK_ZFS_TESTS knob
The in-tree ZFS test suite is somewhat outdated and I see a number of
failures there.  I tend to think that we want to integrate the OpenZFS
test suite somehow, replacing the legacy one, though it's also possible
to run that as a separate test suite.

In any case, if one wants to run the OpenZFS test suite separately, it's
useful to be able to disable installation of the legacy ZFS test suite,
so let's provide a src.conf option to do that.

Reviewed by:	asomers
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D46476
2024-09-07 14:36:28 +00:00
Tom Hukins
5e6bef460d Fix "version introduced" in two manual pages
Signed-off-by: Tom Hukins <tom@FreeBSD.org>
Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1385
2024-09-06 12:34:33 -06:00
Alexander Ziaee
4c72525953 ure.4: description consistencies + tag spdx
+ consistent document description languague with other USB-BaseT drivers
+ mention newly added adapters from 6ea4d9
+ attempt to mention rgephy(4) phys feed into ure interfaces

Fixes:		6ea4d9 (Move RTL8156 from cdce(4) to ure(4))
MFC after:	3 days

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1384
2024-09-06 12:34:33 -06:00
Alexander Ziaee
7e3b6b249f diskless.8: show in apropos pxe + tag SPDX
MFC after:	3 days

Reviewed by: imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/1378
2024-09-06 12:34:32 -06:00
Joshua Rogers
62cf43dda8 wsp: Improve multi-finger touchpad usage and allow more configurations
This patch allows scrolling with multiple fingers simultaneously, in
line with how wsp trackpads function on MacOS.

Two new tunables are added: hw.usb.wsp.max_finger_area and
hw.usb.wsp.max_double_tap_distance.

max_finger_area defines the maximum size which the driver registered an
object on trackpad as a finger.
Previously, this value was hardcoded as 1200, which was too low to
register thumb-clicks.

max_double_tap_distance defines the maximum distance between two
fingers which will register as a double-click.

Signed-off-by: Joshua Rogers <Joshua@Joshua.Hu>
Reviewed by: imp, wulf
Pull Request: https://github.com/freebsd/freebsd-src/pull/1365
2024-09-06 12:34:31 -06:00
Joshua Rogers
7b984d5043 wsp: Allow the trackpad to be used after a partially unreleased click.
This provides functionality for a click which is partially unreleased
and then allows the user to continue moving the mousepad as if were not
invoked as a full click

Signed-off-by: Joshua Rogers <Joshua@Joshua.Hu>
Reviewed by: imp, wulf
Pull Request: https://github.com/freebsd/freebsd-src/pull/1365
2024-09-06 12:34:31 -06:00
Tom Jones
390dc369ef pf: Add support for endpoint independent NAT bindings for UDP
With Endpoint Independent NAT bindings for UDP flows from a NATed source
address are always mapped to the same ip:port pair on the NAT router.
This allows a client to connect to multiple external servers while
appearing as the same host and enables NAT traversal without requiring
the client to use a middlebox traversal protocol such as STUN or TURN.

Introduce the 'endpoint-independent' option to NAT rules to allow
configuration of endpoint independent without effecting existing
deployments.

This change satisfies REQ 1 and 3 of RFC 4787 also known as 'full cone'
NAT.

Using Endpoint Independent NAT changes NAT exhaustion behaviour it does
not introduce any additional security considerations compared to other
forms of NAT.

PR:             219803
Co-authored-by: Damjan Jovanovic <damjan.jov@gmail.com>
Co-authored-by: Naman Sood <mail@nsood.in>
Reviewed-by:	kp
Sponsored-by:   Tailscale
Sponsored-by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D11137
2024-09-06 13:48:04 +01:00
Kristof Provost
a9ac25d65f pf.4: document missing sysctls
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D46510
2024-09-05 09:38:11 +02:00
Tom Hukins
9a3fa77585 vale(4): refer to the valectl(8) management tool
Signed-off-by:	Tom Hukins <tom@FreeBSD.org>
Reviewed by:	imp, mhorne
MFC after:	3 days
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1369
2024-08-30 16:39:56 -03:00
Jose Luis Duran
973bbdab47 mk: Add a BTI-report linker feature
Add support for specifying how to report the missing Branch Target
Identification (BTI) linker feature on AArch64.

For:

Kernel:    bti-report on when the linker supports it
Userspace: bti-report on when the linker supports it and
           BTI_REPORT_ERROR is defined

Fixes:	43e8849bc2 ("conf: Enable BTI checking in the arm64 kernel")
Pull Request:	https://github.com/freebsd/freebsd-src/pull/1393
2024-08-30 16:03:17 +00:00
Igor Ostapenko
033f223666 committers-src: Add igoro@ with markj@ and kp@ mentors
Approved by:	markj (mentor), kp (mentor)
2024-08-27 00:52:28 +00:00
Christos Margiolis
7ae4868a9a sound examples: Delete stale ossinit.h file
Fixes:		3decd659a788("sound examples: Simplify audio example")
Sponsored by:	The FreeBSD Foundation
MFC after:	2 days
2024-08-24 15:16:21 +03:00
Christos Margiolis
6747b1a821 sound examples: Move MIDI example out of OSS directory
This example is not related to OSS.

Sponsored by:	The FreeBSD Foundation
MFC after:	2 days
Reviewed by:	dev_submerge.ch, meka_tilda.center
Differential Revision:	https://reviews.freebsd.org/D46308
2024-08-24 15:07:49 +03:00
Christos Margiolis
3decd659a7 sound examples: Simplify audio example
- Merge ossinit.h and basic.c.
- Rename basic.c to audio.c.
- Use err(3) instead of fprintf(3) + exit(3).
- Some style(9) improvements.

Sponsored by:	The FreeBSD Foundation
MFC after:	2 days
Reviewed by:	dev_submerge.ch
Differential Revision:	https://reviews.freebsd.org/D46307
2024-08-24 15:07:45 +03:00
Christos Margiolis
0ca4d5d820 sound examples: Simplify MIDI example
Sponsored by:	The FreeBSD Foundation
MFC after:	2 days
Reviewed by:	dev_submerge.ch, emaste
Differential Revision:	https://reviews.freebsd.org/D46306
2024-08-24 15:07:40 +03:00
Maxim Konovalov
d399c791b2 bsd-family-tree: NetBSD 8.3 added
PR:	280983
2024-08-22 00:29:36 +00:00
Ed Maste
aa0bc761d2 bsd.symver.mk: pass $CFLAGS to $CPP invocation
This allows us to support symbols optionally available based on
configuration, not just on compiler built-in #defines.

Reviewed by:	brooks, jrtc27
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D45346
2024-08-20 21:17:52 -04:00