Commit Graph

22054 Commits

Author SHA1 Message Date
Brooks Davis
8612e44589 Remove unused NETLINK build option
NETLINK was added along side NETLINK_SUPPORT to control building netlink
specific programs, but it has no consumers so remove it for now.

Reviewed by:	melifaro
Differential Revision:	https://reviews.freebsd.org/D39678
2023-04-20 22:38:36 +01:00
Brooks Davis
6c1be0194a src.conf.5: regen with WITH_NETLINK_SUPPORT desc
Reviewed by:	melifaro
Differential Revision:	https://reviews.freebsd.org/D39677
2023-04-20 22:38:36 +01:00
John Baldwin
47e888f836 Remove a few more references to riscv64sf.
Fixes:		1ca12bd927 Remove the riscv64sf architecture.
2023-04-20 11:00:46 -07:00
Simon J. Gerraty
8fe4f8f7a7 Fix building host tools for host
Several makefile depend on tools built for host.
At least when using DIRDEPS_BUILD we can build these for the
pseudo machine "host" to facilitate building on older host versions.

Ideally we would build these tools in their own directories to avoid
building more than needed.

For now, setting an appropriate default for BTOOLSPATH will suffice

Reviewed by:	stevek
Sponsored by:	Juniper Networks, Inc.
Differential Revision:	https://reviews.freebsd.org/D39708
2023-04-20 10:05:43 -07:00
Simon J. Gerraty
0df4d8ad7a Add jobs.mk to allow for target-jobs
jobs.mk automates -j$JOB_MAX and capturing build log based on target.

Compute a default for JOB_MAX in local.sys.mk

Reviewed by:	stevek, imp
Differential Revision:	https://reviews.freebsd.org/D39683
2023-04-20 09:40:39 -07:00
Mateusz Piotrowski
607bc91d90 vmrun.sh: Fix a typo in usage()
MFC after:	3 days
Sponsored by:	Klara Inc.
2023-04-20 14:45:13 +02:00
Stephen J. Kiernan
64a67b7266 meta: remove LDFLAGS setting when cross building
The setting was left over from older clang version and is not
necessary any more (and also causes link issues.)

Reviewed by:	sjg
2023-04-19 21:40:29 -04:00
Gordon Bergling
409731e7d7 unionfs.5: Use '.An -nosplit' in the AUTHORS section
Use '.An -nosplit' in the AUTHORS section to prevent line breaks.

MFC after:	3 days
2023-04-19 17:11:41 +02:00
Simon J. Gerraty
a6bd50f712 Avoid breaking crunchgen with meta stats
When using DIRDEPS_BUILD we normally get stats as each dir finishes.
This upsets crunchen, so keep quiet when _RECURSING_CRUNCH is defined
2023-04-18 20:25:33 -07:00
Simon J. Gerraty
901efd8bb9 Avoid staging conflict for examples/pf
If we are staging, let examples/pf stage its bits.
2023-04-18 20:23:23 -07:00
Simon J. Gerraty
5ef0969e62 Handle libs that create linker scripts as libs
Eg ncurses creates libncursesw.ald
This is the only example so far, but if we are staging
handle it.

Reviewed by:	stevek
2023-04-18 20:22:13 -07:00
Simon J. Gerraty
cb05ce69c2 Ensure the stage_* targets we use exist 2023-04-18 20:19:11 -07:00
Simon J. Gerraty
9eaf82f27c dirdeps.mk guard against inclusion from Makefile.depend.options
A typo in Makefile.depend.options including dirdeps.mk rather than
dirdeps-options.mk can result in infinite recursion - don't let that happen.

Reviewed by:	stevek
2023-04-18 20:15:25 -07:00
Simon J. Gerraty
d9a4274795 Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
Steve Kiernan
4e8b87afe0 Handle errors if WARNS is not defined.
One conditional outside of ifdef WARNS did not protect against an
unset WARNS. Default WARNS to 0 in conditional if not defined.

Obtained from:	Juniper Networks, Inc.
2023-04-18 13:18:01 -04:00
Marius Strobl
a12d60b99e cas.4: Remove remaining sparc64-specific bit
This was missed in 702547720c.
2023-04-18 19:17:24 +02:00
Marius Strobl
8defc88c13 gem(4): Remove onboard-only Sun ERI and remnants of SBus support
These bits are obsolete since 58aa35d429.
This change reverts part of 9ba2b298df as
well as effectively bd3d9826d7, i. e. the
SBus-related modifications. This also gets rid of a nasty hack required
as bus_{read,write}_N(9) doesn't really fit bus_space_subregion(9).
2023-04-18 19:17:24 +02:00
Stephen J. Kiernan
49b6bc83cc meta: print some additional variables on build errors.
Add CPUTYPE and MACHINE_CPUARCH to the list of variables printed
when there are build errors.

Protect local.sys.mk from multiple inclusion.

Reviewed by:	sjg
Obtained from:	Juniper Networks, Inc.
2023-04-18 01:30:34 -04:00
Stephen J. Kiernan
d664658015 meta: Allow TARGET_SPEC_VARS to be overridden
Reviewed by:	sjg
Obtained from:	Juniper Networks, Inc.
2023-04-18 00:25:59 -04:00
Simon J. Gerraty
c4c981c1e6 Move include of site.src.opts.mk to allow more control
Sometimes a site may have different policy needs,
include site.src.opts.mk just before bsd.mkopt.mk to allow
more control.

Reviewed by: imp
2023-04-17 10:44:37 -07:00
Dimitry Andric
2ba84b4bcd Suppress lld 16 errors about undefined symbols in version maps
lld >= 16 turned on --no-undefined-version by default, which results in
errors whenever symbols are mentioned in version maps, but are not
actually defined in the binary.

Since we have quite a few instances of symbols that are defined or not,
depending on various compile-time settings, suppress this lld check for
the time being.

MFC after:	1 week
2023-04-17 18:25:52 +02:00
Simon J. Gerraty
bf7aa99a55 Update meta mode makefiles
meta2deps - add checks to detect truncated/corrupted filemon data
(only known to happen on Linux hosts), to ensure we do not auto
update dependencies based on incomplete data.

meta.stage.mk adds STAGE_SHLIB_LINKS_FILTER and STAGE_LINK_AS_*

We also allow for hosts where egrep is deprecated for grep -E

Reviewed by: stevek
2023-04-16 18:40:53 -07:00
Simon J. Gerraty
a3d015bbf1 Update dirdeps.mk
Fix handling of local.dirdeps-missing.mk
we need to reset DEP_RELDIR and DIRDEPS just as if including
a Makefile.depend*

Also fix a typo in DIRDEP_LOADAVG_REPORT
and improve debug output.

Reviewed by: stevek
2023-04-16 18:17:26 -07:00
Zhenlei Huang
722b7589cc printf.9: Update the use example of the %D conversion specifier
The output of hexadecimal bytes are in lowercase. Update the example to
reflect the reality.

Reviewed by:	gbe (manpages)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D39543
2023-04-14 18:08:56 +08:00
Kajetan Staszkiewicz
39282ef356 pf: backport OpenBSD syntax of "scrub" option for "match" and "pass" rules
Introduce the OpenBSD syntax of "scrub" option for "match" and "pass"
rules and the "set reassemble" flag. The patch is backward-compatible,
pf.conf can be still written in FreeBSD-style.

Obtained from:	OpenBSD
MFC after:	never
Sponsored by:	InnoGames GmbH
Differential Revision:	https://reviews.freebsd.org/D38025
2023-04-14 09:04:06 +02:00
John Baldwin
e1ff83fb19 arch.7: Bump Dd after removal of riscv64sf.
Pointy hat to:	jhb
2023-04-12 11:35:33 -07:00
John Baldwin
d27cc06838 src.conf.5: Regen after removal of riscv64sf. 2023-04-12 11:10:37 -07:00
John Baldwin
1ca12bd927 Remove the riscv64sf architecture.
Reviewed by:	jrtc27, arichardson, br, kp, imp, emaste
Differential Revision:	https://reviews.freebsd.org/D39496
2023-04-12 11:09:27 -07:00
Mark Johnston
b4f1582f3b netisr: Purge another reference to NETISR_EPAIR
Fixes:	03276e338a ("netisr: Remove the now-unused NETISR_EPAIR queue index")
MFC after:	1 week
2023-04-12 10:27:00 -04:00
Rene Ladan
6a68db4a8f misc: remove swills from the portmgr graph
Hat:	portmgr-secretary
2023-04-11 23:20:18 +02:00
John Baldwin
cd800d3c96 Enable -Warray-parameter for clang.
I fixed many of these previously for GCC 12 and make tinderbox passes
with this enabled.

Differential Revision:	https://reviews.freebsd.org/D39378
2023-04-11 13:47:59 -07:00
Sergey A. Osokin
eed92455e6 bsd-family-tree: add FreeBSD 13.2
MFC after:	3 days
2023-04-11 10:32:53 -04:00
Sergey A. Osokin
7f8953991f bsd-family-tree: add OpenBSD 7.3
MFC after:	3 days
2023-04-10 18:12:29 -04:00
Joseph Koshy
de07f7f06e
procfs: Document the content of /proc/$PID/map.
Approved by:	gnn (mentor)
Differential Revision: https://reviews.freebsd.org/D39484
2023-04-10 16:37:09 +00:00
Mark Johnston
d862b165a6 bridge: Add support for emulated netmap mode
if_bridge receives packets via a special interface, if_bridge_input,
rather than by if_input.  Thus, netmap's usual hooking of ifnet routines
does not work as expected.  Instead, modify bridge_input() to pass
packets directly to netmap when it is enabled.  This applies to both
locally delivered packets and forwarded packets.

When a netmap application transmits a packet by writing it to the host
TX ring, the mbuf chain is passed to if_input, which ordinarily points
to ether_input().  However, when transmitting via if_bridge,
bridge_input() needs to see the packet again in order to decide whether
to deliver or forward.  Thus, introduce a new protocol flag,
M_BRIDGE_INJECT, which 1) causes the packet to be passed to
bridge_input() again after Ethernet processing, and 2) avoids passing
the packet back to netmap.  The source MAC address of the packet is used
to determine the original "receiving" interface.

Reviewed by:	vmaffione
MFC after:	2 months
Sponsored by:	Zenarmor
Sponsored by:	OPNsense
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D38066
2023-04-10 12:14:11 -04:00
Zhenlei Huang
3fdb40d1be bridge.4: Document the net.link.bridge.log_mac_flap sysctl variable
It was introduced in 2d3614fb13 (bridge: Log MAC address port flapping).

Reviewed by:	gbe (manpages)
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D39465
2023-04-10 18:07:04 +08:00
Baptiste Daroussin
f02879f199 pci_vendors: update to 2023.04.01 2023-04-06 15:01:10 +02:00
Ed Maste
a9d0665bbb src.conf.5: Expand WITH_LLVM_BINUTILS description
List the specific tools that are controlled by WITH_LLVM_BINUTILS, and
mention the tools that are always or never taken from LLVM.  Tools come
from one of three sources (LLVM, ELF Tool Chain, bespoke base system)
and it is useful to be explicit.

Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D39428
2023-04-05 13:05:15 -04:00
Ed Maste
96aedfd5c9 src.conf.5: regen for WITHOUT_NETLINK_SUPPORT
Commit 64dfea8651 added a description for WITHOUT_NETLINK_SUPPORT.
2023-04-05 11:39:32 -04:00
Cheng Cui
95940a2d24
Add myself (cc) as a src commiter.
Summary: Adding mentor relationships for cc when committing new diffs.

Reviewed by: rscheff (mentor), tuexen (mentor)
Approved by: rscheff (mentor), tuexen (mentor)
MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D39368
2023-04-01 08:17:21 -04:00
Rene Ladan
4e703f445e Complete my mentees list.
Originally submitted by rnagy.
2023-04-01 13:41:09 +09:00
Cheng Cui
fcad8ada9a
Revert "Add myself (cc) as a src commiter."
Summary: This reverts commit 134ced89c4.

Reviewers: rscheff, tuexen
Subscribers: imp
Approved by: tuexen (mentor)
Differential Revision: https://reviews.freebsd.org/D39363
2023-03-31 05:58:14 -04:00
Juraj Lutter
c322cf0f48 committers-ports.dot: Fix double space
Fix double space in pgollucci's entry.

Approved by:		fernape
Differential Revision:	https://reviews.freebsd.org/D39345
2023-03-31 09:02:19 +02:00
Cheng Cui
134ced89c4
Add myself (cc) as a src commiter.
Summary: Adding mentor relationships for cc when committing new diffs.

Reviewers: rscheff, tuexen
Subscribers: imp
Reviewed by:    rscheff (mentor), tuexen (mentor)
Approved by:    rscheff (mentor), tuexen (mentor)
MFC after:      3 days
Differential Revision: https://reviews.freebsd.org/D39342
2023-03-30 16:27:02 -04:00
Fernando Apesteguía
463c88e634 committers-ports.dot: Use gj@ last commit date
Use the date of the last commit from gj@ (d276a4dfa6f5f3711808eff44ff20a92114b4d6e)
Note that for other developers the date is that when the commit bit was taken
in.
2023-03-30 17:18:30 +02:00
Fernando Apesteguía
d56bea401b committers-ports.dot: Fix alexbl entry and add gj
Reported by:	garyj@gmx.de yuri@aetern.org
2023-03-30 16:55:22 +02:00
Mark Johnston
cab1056105 kdb: Modify securelevel policy
Currently, sysctls which enable KDB in some way are flagged with
CTLFLAG_SECURE, meaning that you can't modify them if securelevel > 0.
This is so that KDB cannot be used to lower a running system's
securelevel, see commit 3d7618d8bf.  However, the newer mac_ddb(4)
restricts DDB operations which could be abused to lower securelevel
while retaining some ability to gather useful debugging information.

To enable the use of KDB (specifically, DDB) on systems with a raised
securelevel, change the KDB sysctl policy: rather than relying on
CTLFLAG_SECURE, add a check of the current securelevel to kdb_trap().
If the securelevel is raised, only pass control to the backend if MAC
specifically grants access; otherwise simply check to see if mac_ddb
vetoes the request, as before.

Add a new secure sysctl, debug.kdb.enter_securelevel, to override this
behaviour.  That is, the sysctl lets one enter a KDB backend even with a
raised securelevel, so long as it is set before the securelevel is
raised.

Reviewed by:	mhorne, stevek
MFC after:	1 month
Sponsored by:	Juniper Networks
Sponsored by:	Klara, Inc.
Differential Revision:	https://reviews.freebsd.org/D37122
2023-03-30 10:45:00 -04:00
Fernando Apesteguía
a2d2f25dd4 committers-ports.dot: Fix alexbl entry
Copy-paste error.

Reported by:	dchagin
Fixes:		5faf90050e
2023-03-30 14:46:47 +02:00
Fernando Apesteguía
5faf90050e committers-ports.dot: Bring file up to date.
Many listed committers are actually alumni.

Related to this change: 52f5764598

Approved by:		bcr@
Differential Revision:	https://reviews.freebsd.org/D39340
2023-03-30 14:17:10 +02:00
Fernando Apesteguía
52f5764598 committers-doc.dot: bring file up to date
Long due task. Many developers should be in alumni by now.

Approved by:	docs (bcr, carlavilla)
Differential Revision:	D39309
2023-03-30 09:46:56 +02:00