Commit graph

5993 commits

Author SHA1 Message Date
Robert Wing
c0f7e69d60 tools/diag/prtblknos: fix build
The build was broken by two separate changes:
    aa90fbed15
    772430dd67
2025-05-27 15:12:04 -08:00
Ed Maste
61f46c66dd Remove LLVM_TARGET_SPARC descriptions
Support for WITH_/WITHOUT_LLVM_TARGET_SPARC was removed in commit
47e9f42ea3 ("Remove sparc64 specific buid-system hacks") so the
descriptions serve no purpose.

Sponsored by:	The FreeBSD Foundation
2025-05-26 12:05:30 -04:00
Andriy Gapon
28d74f18f1 OptionalObsoleteFiles: etc/rc.d/powerd is used/useful without ACPI/APM
Just like powerd daemon does not depend on ACPI/APM, its rc script does
not either.

Fixes:		20eb6bd8c5
MFC after:	1 week
2025-05-19 12:29:06 +03:00
Peter Holm
91ef8c3e13 stress2: Fix scenario after the changes to ptrace(PT_ATTACH) in commit ecc662c749.
The traced process now no longer exits immediately at the attach.
After a PT_DETACH do not try to wait on a non child process. Style fixes.
2025-05-16 13:07:14 +02:00
Peter Holm
abe84e6110 stress2: Added syzkaller reproducers 2025-05-12 12:06:37 +02:00
Olivier Certner
f6e8268917
stress2: exlock2.sh: Fix impact of previous '-U' removal
In commit "stress2: exlock2.sh: Preserve behavior after ps(1)'s '-U'
change" (1265d3b07e), I forgot that '-U' also has the side-effect of
implying '-x' by default.  Now that '-U' has been removed, make '-x'
explicit.

Fixes:          1265d3b07e ("stress2: exlock2.sh: Preserve behavior after ps(1)'s '-U' change")
MFC after:      1 hour
Sponsored by:   The FreeBSD Foundation
2025-05-12 10:59:07 +02:00
Andrew Gierth
5d50c2397a
src.conf.5: Add WITH_ZONEINFO_LEAPSECONDS_SUPPORT warning
People are turning on the option and then tripping over weird
consequences.  See bugs 248338 and 271170 as examples.

Approved by:	cy, imp, philip
Differential Revision:	https://reviews.freebsd.org/D25902

Co-authored-by: Joseph Mingrone <jrm@FreeBSD.org>
2025-05-09 15:53:42 -03:00
Ed Maste
2ffd04bbab OptionalObsoleteFiles: Add recent bsdinstall additions
Reported by: garga
Fixes: a6d202077d ("bsdinstall: revisit the finalconfig step")
Fixes: bbe2a1da2d ("bsdinstall: add menu to install firmware")
2025-05-08 09:08:24 -04:00
Ed Maste
af4c34e4db OptionalObsoleteFiles: Add bsdinstall pkgbase
Reported by: garga
Fixes: ee9cfd7275 ("bsdinstall: add pkgbase target")
2025-05-08 08:59:30 -04:00
Olivier Certner
1265d3b07e
stress2: exlock2.sh: Preserve behavior after ps(1)'s '-U' change
Remove '-Uroot', as now '-U' selects processes based on their real user
IDs, and since the program using them was launched as 'root', the
equivalent now is just to remove it, as now ps(1) by default selects
processes based on its effective UID (root) and their effective UIDs.

It seems that matching on effective or real UID does not really matter
in this test, but at least this change simplifies the command-line.

MFC after:      1 day
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D50200
2025-05-07 11:14:55 +02:00
Jessica Clarke
52c8e24cc0 cross-build: Provide real fflagstostr/strtofflags on Linux
These are used by mtree and makefs, so in order to be able to set schg
on /var/empty in METALOG and set schg on various files and directories
in the resulting disk images we need to have a real implementation
rather than always giving no flags.

Ideally mtree wouldn't rely on round-tripping the textual flags field
via the "native" flags encoding using these functions, and ideally
makefs wouldn't rely on the "native" flags encoding matching FreeBSD's,
but in practice macOS's schg is the same and we can pretend Linux has
the same.

This fixes Linux-produced disk images lacking schg on any files or
directories, and Linux-produced distribution tarballs lacking schg on
/var/empty (note though that they do set schg on files, as install
already preserves file flags on Linux).

Reviewed by:	emaste, markj
Differential Revision:	https://reviews.freebsd.org/D50080
2025-05-06 17:58:10 +01:00
Ed Maste
fbd7087b0b strings: Unconditionally install ELF Tool Chain's strings
llvm-strings may consume a large amount of memory while reading the
input file before producing any output.

ELF Tool Chain's strings is small and lightweight, and we always install
strings regardless of WITH_/WITHOUT_TOOLCHAIN settings (as it is useful
in many contexts).  Return to always installing ELF Tool Chain's version
of strings.

This reverts commit 81fa5c4a82.
This reverts commit 7ca3db1999.

PR:		286605
Reported by:	olivier
Reviewed by:	olivier, brooks
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D50084
2025-05-05 15:38:06 -04:00
Warner Losh
23de29bb5a ghpr-push: Better auotmated closing message
Make it clear this is an automated message and that the change isn't on
the mirror yet, but will be soon. Also, be polite and thank the
contributor for this submission, because the project really does
appreciate it.

Reviewed by:	emaste
Sponsored by:	Netflix
2025-05-05 12:23:56 -06:00
Mark Johnston
75d173a848 netinet: Make in_systm.h self-contained
PR:		286539
MFC after:	3 days
2025-05-03 20:44:45 +00:00
Mark Johnston
981af1192c bpf: Make bpf.h self-contained
PR:		286539
MFC after:	3 days
2025-05-03 20:44:45 +00:00
Ed Maste
7ca3db1999 src.conf.5: Correct LLVM_BINUTILS comment about strings(1)
Reported by:	olivier
Fixes: 81fa5c4a82 ("llvm-strings: Install as strings when WITH_LLVM_BINUTILS=YES")
Sponsored by:	The FreeBSD Foundation
2025-04-30 09:44:48 -04:00
John Baldwin
4e2616b74c cross-build: Workaround system-provided strchrnul on macOS 15.4+
macOS added a native strchrnul in 15.4.  There is not an easy way to
detect it at compile time, so use a macro to rename our local inline
version to avoid conflicts while also forcing its use during
bootstrap.  The local version can be removed once macOS versions older
than 15.4 are no longer supported as build hosts.

Co-authored by:	jrtc27
Reported by:	kib
Reviewed by:	jrtc27
Differential Revision:	https://reviews.freebsd.org/D49893
2025-04-28 13:10:41 -04:00
Dimitry Andric
d4dab32448 depend-cleanup: ensure clang and llvm binaries are rebuilt
In 2e47f35be5, libllvm, libclang and liblldb became shared libraries,
so make sure the binaries that depend on these libraries get rebuilt.

MFC after:	2 weeks
2025-04-25 19:58:03 +02:00
Dimitry Andric
2e47f35be5 Convert libllvm, libclang and liblldb into private shared libraries
This allows clang, lld, lldb, and other llvm tools to be linked against
these shared libraries, which makes them smaller and avoids duplication.

Since these are not quite the same as the shared libraries shipped by
the upstream llvm build system, and we do not want to expose the ABI to
external programs such as ports, make them private libraries.

Note that during the cross-tools stage they are still built as static
libraries, so the cross compiler and linker are static binaries, as they
have always been.

This also requires a depend-cleanup.sh kludge which will be added in a
follow-up commit, to ensure binaries are rebuilt against the shared
libraries in case of incremental builds.

MFC after:      2 weeks
Differential Revision: https://reviews.freebsd.org/D49967
2025-04-25 19:56:39 +02:00
Peter Holm
736e2ab5ef stress2: Added two syzkaller reproducers 2025-04-25 09:52:30 +02:00
Warner Losh
a1a06bc686 ghpr: Make init a little more robust
Use newer git config subcomands and set the values so we don't get repetition.

Sponsored by:		Netflix
2025-04-22 12:16:55 -06:00
Warner Losh
2cdf333926 ghpr: Add gh pr close
For some reason, github no longer closes on mention pull requests, so
add the closing here.

Sponsored by:		Netflix
2025-04-22 12:16:49 -06:00
Warner Losh
0e21783a55 ghpr: Remove --edit from gh
gh pr edit --edit is bogus. Remove the --edit.

Sponsored by:		Netflix
2025-04-21 16:05:30 -06:00
Warner Losh
6ef66b328a ghpr: Fix bogus else
The previous commit was pushed in error. Remove 'else fi' that was a
left-over change that was incomplete and removed. Fix by removing the
rest of that change that wasn't done.

Sponsored by:		Netflix
2025-04-21 16:03:10 -06:00
Warner Losh
6fb2339611 ghpr: Only label the branch as merged
Stop trying to push to the pull request branches. Only I have permission
to do that. Add 'meged' tag. This isn't quite as good as having the PRs
show up as 'merged' since there's some stats based on that which won't
happen. However, it's too much of a hassle, so just stop doing it.

We now require the 'gh' but don't make sure that it's around. Note: We
still need better error handling, for this and other things.

Sponsored by:		Netflix
2025-04-21 15:55:00 -06:00
Warner Losh
9bb0dd4b8b gphr: Extremely experimental github landing scripts
These are the scripts I've been using to land github pull requests. They
suck for me and likely are too painful for any other person to use. I
share them to help facilitate collaboration to make the
characterizations in this commit message a big lie.

Sponsored by:		Netflix
2025-04-21 10:02:34 -06:00
Kyle Evans
e018d97ce5 bsdbox: use paths relative to SRCTOP instead of .CURDIR
This has been the going trend for years now, so switch to it.

Reviewed by:	adrian, imp
Differential Revision:	https://reviews.freebsd.org/D42502
2025-04-20 22:45:02 -05:00
Kyle Evans
635891d1c3 bsdbox: hook wpa_supplicant up as well
We may want a knob for this later for Adrian's wifi-box builds if those
are still happening now that mips is gone, but I suspect it's less of a
concern for FreeBSD > 14 (and maybe even 14 as well).

Reviewed by:	adrian, imp
Differential Revision:	https://reviews.freebsd.org/D42501
2025-04-20 22:45:02 -05:00
Kyle Evans
25a9b4159e bsdbox: fix the hostapd build, hook it back up
WPA stuff is now structured a little bit differently and requires a
number of other libs now, so pull those in.  It also needs to be able to
keep wpa_driver_bsd_ops exposed as part of the lib/program contract.

Reviewed by:	adrian, imp
Differential Revision:	https://reviews.freebsd.org/D42500
2025-04-20 22:45:01 -05:00
Kyle Evans
47404d1d98 bsdbox: fix the build
hostapd is removed for now because it's a little less trivial with
recent wpa architecture.  The rest is adopting to ncurses and ifconfig
changes, as well as a switch in PIE default.

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D42498
2025-04-20 22:45:00 -05:00
Michael Reifenberger
6ebab5e6bb Use ln -sf otherwise nanobsd.sh -wkWK fails
since the etc link exists already.

Before creating the nanobsd image nanobsd.sh creates a soft link for
usr/local/etc in the function setup_nanobsd()

This fails if the link already exists (when using nanobsd.sh -wkWK)

Reviewed by:	imp
Differential Revision:	https://reviews.freebsd.org/D49873
2025-04-17 16:59:15 +02:00
Bojan Novković
20e6354fe7 git-arc.1: Clarify argument format for group reviewers
Note that '-r' expects a hashtag instead of a group name.

Reviewed by:	markj, ziaee
Differential Revision:	https://reviews.freebsd.org/D49714
2025-04-16 16:18:34 +02:00
Warner Losh
b7f71ffe0f full-test.sh: Add lib/libtinfow.so.9 to image
libedit.so.8 needs libtinfow.so.9 too, starting in stable/14. so
add it here.

With this I have an image that boots the minimal 'echo success' test for
LinuxBoot on amd64... Though changes for that aren't upstreamed just
yet. They need to be cleaned up a little before I do that. Stay tuned.

Sponsored by:		Netflix
2025-04-15 17:14:47 -06:00
Michael Reifenberger
adad929814 Fix build under current. 2025-04-10 15:41:02 +02:00
Mark Johnston
d80ab37f98 test-includes: Make sure we test against in-tree headers
Regenerate badfiles.inc as well.

Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D49736
2025-04-10 12:47:00 +00:00
Warner Losh
c84d43b57c full-test.sh: Include fastboot for hardlinks
13.x didn't need this, but 14.2 does need it. Extract /sbin/fastboot
too since it's recorded as the target of reboot/halt that we do want.

Sponsored by:		Netflix
2025-04-09 14:53:36 -06:00
Warner Losh
1b16d033f4 full-test.sh: Make the path per-os not per-user
The default should be per-os, not per user. this lets me use this on
both my mac and my FreeBSD server.

Sponsored by:		Netflix
2025-04-09 14:53:33 -06:00
Warner Losh
b86e897136 full-test.sh: Limit to just aarch64 and amd64, as that's all that works
Only aarch64 and amd64 are working. For the moment, comment out
everything else until I can make it work too. The others build, to be
fair, but don't work or haven't been confirmed to work.

Sponsored by:		Netflix
2025-04-09 14:53:31 -06:00
Andrew Turner
d937ddacc6 Revert "git-arc: Add stage -n to not change the branch"
It shouldn't have been pushed

This reverts commit 1c6170d771.
2025-04-08 11:59:44 +01:00
Andrew Turner
960c12f7d5 Revert "WIP: Cross-user git arc stage"
It shouldn't have been pushed

This reverts commit 4ed2c3f9ce.
2025-04-08 11:59:26 +01:00
Andrew Turner
4ed2c3f9ce WIP: Cross-user git arc stage 2025-04-08 11:31:43 +01:00
Andrew Turner
1c6170d771 git-arc: Add stage -n to not change the branch
This can be useful when staging to a non-main branch
2025-04-08 11:31:43 +01:00
Chuck Silvers
1ac6ea8a02 kerberos5, libcom_err, others: append to LDFLAGS instead of replacing
Reviewed by:	imp, emaste
Differential Revision:	https://reviews.freebsd.org/D49548
2025-04-05 14:19:57 -07:00
Peter Holm
ef777be985 stress2: Move files to the right directory 2025-04-03 12:25:31 +02:00
John Baldwin
7feee915ac depend-cleanup: Handle ctld moving from C to C++
Reviewed by:	asomers
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D49140
2025-04-02 14:43:17 -04:00
Tom Jones
e9efa3ed25 Add a kgdb python script to extract bbl from kernel dumps
A kgdb script allows us to be relatively resilient to kernel structure
changes, with a lower burden for updates when they happen than a C tool.

tuexen@ requested we ship this script in a source distribution. Making
it easier for users to extract useful debugging information from a core.
It requires kgdb and python3 and would ideally be a lldb lua script, but
there is more work needed on lldb lua before we can do that.

Add the script as is. A single script we could run against a core would
be nice, but I don't want to let that block making this tool more
available.

Reviewed by:	teuxen, rrs
Sponsored by: 	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D48705
2025-04-01 09:17:31 +01:00
Michael Tuexen
6e76489098 tcp: remove support for TCPPCAP
This feature could be used to store the last sent and received TCP
packets for a TCP endpoint. There was no utility to get these packets
from a live system or core.
This functionality is now provided by TCP Black Box Logging, which also
stores additional events. There are tools to get these traces from a
live system or a core.
Therefore remove TCPPCAP to avoid maintaining it, when it is not
used anymore.

Reviewed by:		rrs, rscheff, Peter Lei, glebiu
Sponsored by:		Netflix, Inc.
Differential Revision:	https://reviews.freebsd.org/D49589
2025-03-31 16:55:39 +02:00
Adrian Chadd
d8482e1b3e athpoke: Use a format string with err()
Don't do err(1, ptr); that's a very old security risk turned warning.

Differential Revision:	https://reviews.freebsd.org/D49546
Reviewed by:	thj
2025-03-28 12:00:34 -07:00
Adrian Chadd
3bae830782 ath: fix athtools common code to correctly init state
Check req->s instead of s to know if the state needs to be
cleaned up first.

This error is from a refactor I did years ago.  Oops!

Differential Revision:	https://reviews.freebsd.org/D49545
Reviewed by:	thj
2025-03-28 12:00:22 -07:00
Ed Maste
d45d070e54 tools/sysdoc: Chase sysctl rename
PR:		285591
Reviewed by:	glebius
Fixes: 94df3271d6 ("Rename net.inet.ip.check_interface to rfc1122_strong_es and document it.")
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D49486
2025-03-25 08:36:00 -04:00