aboutsummaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* git-arc: Fix handling of review title containing double quotesMark Johnston2022-10-041-2/+3
|
* bsdinstall release: Move code to a new startbsdinstall wrapperJessica Clarke2022-10-031-0/+1
| | | | | | | | | | This separates out the install media-specific environment (creating bsdinstall_etc) from actually running the installer on a given console. This will be used by a future change to start the installer on multiple consoles. Reviewed by: brooks, gjb Differential Revision: https://reviews.freebsd.org/D36803
* bsdinstall: Add a new runconsoles helper binaryJessica Clarke2022-10-031-0/+1
| | | | | | | | | | | This helper binary will run a given command on every on console, as defined by /etc/ttys (except for ttyv*, where only ttyv0 will be used). If one of the command processes exits, the rest will be killed. This will be used by a future change to start the installer on multiple consoles. Reviewed by: brooks, imp, gjb Differential Revision: https://reviews.freebsd.org/D36804
* manpages: Remove telnetd referencesBrooks Davis2022-09-291-2/+1
| | | | | | | | | | Mostly remove from the SEE ALSO section, adding a mention of the port where not removed. Elsewhere, remove as appropriate and change from .Xr to .Nm where a mention of telnetd continues to make sense (or removing it would require significant reworking of the surrounding text). Reviewed by: imp, delphij, emaste Differential Revision: https://reviews.freebsd.org/D36785
* bsdbox: remove previously broken telnet(d) supportBrooks Davis2022-09-292-17/+0
| | | | | | | | | Support for telnet(d) was commented out some time ago. Remove now that telnetd is gone. Reviewed by: imp, delphij, emaste MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D36782
* Remove telnetdBrooks Davis2022-09-281-3/+0
| | | | | | | | | | | | | | The telnetd codebase is unmaintained and has a number of quality issues. Telnet has been largely supplanted by ssh. If needed, a port is available (net/freebsd-telnetd), but a more maintained implementation should be prefered. While the telnet client suffers from the same issues, it is deemed to be of lower risk and is required to connect to legacy devices, so it remains. Reviewed by: emaste, imp Differential Revision: https://reviews.freebsd.org/D36620
* stress2: Fixed double word in commentPeter Holm2022-09-271-1/+1
| | | | Reported by: kib
* stress2: Added regression testsPeter Holm2022-09-264-0/+701
|
* Do not delete objdump when WITH_LLVM_BINUTILS is trueEd Maste2022-09-251-0/+5
| | | | | | | | WITH_LLVM_BINUTILS links /usr/bin/objdump to llvm-objdump, and similarly for the man page. Do not delete them in `make delete-old`. PR: 266603 Sponsored by: The FreeBSD Foundation
* stress2: Added two syzkaller reproducersPeter Holm2022-09-212-0/+402
|
* Correct wrong sections for bpf and pcap.Jens Schweikhardt2022-09-161-2/+2
|
* tools: Remove a double wordsGordon Bergling2022-09-102-2/+2
| | | | | | | - s/to to/to/ - s/to to/to do/ in an error message MFC after: 3 days
* stress2: Remove double words in commentsGordon Bergling2022-09-103-3/+3
| | | | | | - s/to to/to/ MFC after:3 days
* regression-netinet: Remove a double word in a source code commentGordon Bergling2022-09-101-1/+1
| | | | | | - s/to to/to/ MFC after: 3 days
* OptionalObsoleteFiles.inc: add bearssl, secureboot, veriexec.Dag-Erling Smørgrav2022-09-091-0/+17
| | | | | Sponsored by: Klara, Inc. MFC after: 1 week
* src.conf: Introduce WITHOUT_MACHDEP knob.Gleb Popov2022-09-091-0/+1
| | | | | | | | | | | | | | Summary: This knob can be used to make buildsystem prefer generic C implentations of various functions, instead of machine-specific assembler ones. Test Plan: `make buildworld` on amd64 Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D36076 MFC after: 3 days
* OptionalObsoleteFiles.inc: Add missing sendmail feature macro files.Peter Wemm2022-08-311-0/+3
| | | | MFC after: 3 days
* tests: use PF_DIVERT/SOCK_RAW instead of PF_INET/SOCK_RAW/IPPROTO_DIVERTGleb Smirnoff2022-08-301-1/+1
|
* stress2: Added a regression testPeter Holm2022-08-251-0/+53
|
* git-arc: Respect GIT_EDITOR and GIT_PAGERMark Johnston2022-08-241-0/+10
|
* git-arc: Fix whitespaceMark Johnston2022-08-241-3/+3
|
* stress2: Added another sigreturn(2) fuzzer testPeter Holm2022-08-241-0/+69
|
* pkt-gen: flip IPv4 address in ping-pong modeVincenzo Maffione2022-08-241-0/+17
| | | | MFC after: 7 days
* tools/build: Unbreak bmake bootstrap on LinuxJessica Clarke2022-08-221-0/+8
| | | | | | | | | | | | Currently make.py has a hack to add the cross-build headers to the include search path when bootstrapping bmake on Linux (but not macOS). This is a bit of an abuse of these headers, and e9ba1fd5eda2 was not prepared for this, since sys/bitcount.h won't exist in that instance (it gets copied into WORLDTMP during the legacy build). Work around this until we can wean the bmake bootstrap off using these headers by not including sys/bitcount.h when it doesn't exist. Fixes: e9ba1fd5eda2 ("tools/build: Provide FreeBSD's bitstring API when cross-building")
* stress2: Updated tests as a result of the latest updates to fsck_ffs(8)Peter Holm2022-08-192-14/+23
|
* stress2: Handle different spelling of "superblock"Peter Holm2022-08-191-2/+2
|
* tools/build: Provide fls* when cross-building on LinuxJessica Clarke2022-08-182-0/+42
| | | | | | | | | flsll is needed for makefs's new ZFS support, and the others are added for completeness. Reviewed by: emaste, arichardson Fixes: 240afd8c1fcc ("makefs: Add ZFS support") Differential Revision: https://reviews.freebsd.org/D36134
* tools/build: Provide FreeBSD's bitstring API when cross-buildingJessica Clarke2022-08-182-0/+13
| | | | | | | | | This is needed for building makefs as a cross-tool since the ZFS code uses these APIs. Reviewed by: emaste Fixes: 240afd8c1fcc ("makefs: Add ZFS support") Differential Revision: https://reviews.freebsd.org/D36133
* git-arc: Use --head to avoid changing the checkout.John Baldwin2022-08-171-30/+4
| | | | | | | | | | Rather than using 'git checkout' to move to the commit in question for create and update, use the '--head' argument to 'arc diff'. This avoids the need to alter the current checkout and the related bits to save/restore HEAD in the current checkout. Reviewed by: imp, markj Differential Revision: https://reviews.freebsd.org/D36248
* stand: Flesh out the zfs image creationWarner Losh2022-08-171-96/+54
| | | | | | | | | Move the mbr non-geli zfs cases to no-priv creation with makefs / mkimg. Add comments about the weird thing we do for MBR + ZFS + Legacy. Add comments about other architectures. Still need to think through how to leverage a completed universe to do all the architectures... Sponsored by: Netflix
* stand: Make makeroot.sh use makefs for ZFSWarner Losh2022-08-161-91/+82
| | | | | | | | | | | | | | | | | | Start to use makefs for ZFS. This covers the gpt nogeli variants. ZFS MBR booting is tricky and complicated, so will need some additional tweaks that makefs/mkimg isn't able to do at the moment. This means that all gpt nogeli amd64 combinations can be built w/o root. In addition, tweak the generated qemu.sh files to use stdio for the console. We grep the output for SUCCESS and report each of the booting types. Create a all.sh that will run these automatically. These all can also run w/o root. In the future, I'll add support for a make univers followed by this script to create other architectures' tests and/or generate stand tests for /usr/tests... Sponsored by: Netflix
* stand: Abstract out fstab creationWarner Losh2022-08-151-26/+16
| | | | | | Now that all the fstabs are the same, abstract it out into a function. Sponsored by: Netflix
* stand: Update GELI UFS cases to use ufs labelsWarner Losh2022-08-151-11/+7
| | | | | | | | | GELI images are created in a different manner than non-GELI images. Update them to set the label of 'root' on the UFS partition and use that in fstab. Drop comments about needing to do this, as well as the 'dev' variable now that it's unused. Sponsored by: Netflix
* stand: Update testing harness to start to use UFS labelsWarner Losh2022-08-151-15/+15
| | | | | | | | | | Minor changes to the non-geli UFS targets: migrate to using ufs labels so we don't need to know the name of the device we booted off of. This doesn't change the GELI test cass just yet since I've not tested them. ZFS doesn't need these changes since we don't need to encode the device for it. Sponsored by: Netflix
* stand: Update testing script for arch retirementWarner Losh2022-08-151-42/+8
| | | | | | | And catch up to changes in booting methods currently supported. Add riscv. Sponsored by: Netflix
* Move the ability to search for alternate UFS superblocks from fsck_ffs(8)Kirk McKusick2022-08-131-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into ffs_sbsearch() to allow use by other parts of the system. Historically only fsck_ffs(8), the UFS filesystem checker, had code to track down and use alternate UFS superblocks. Since fsdb(8) used much of the fsck_ffs(8) implementation it had some ability to track down alternate superblocks. This change extracts the code to track down alternate superblocks from fsck_ffs(8) and puts it into a new function ffs_sbsearch() in sys/ufs/ffs/ffs_subr.c. Like ffs_sbget() and ffs_sbput() also found in ffs_subr.c, these functions can be used directly by the kernel subsystems. Additionally they are exported to the UFS library, libufs(8) so that they can be used by user-level programs. The new functions added to libufs(8) are sbfind(3) that is an alternative to sbread(3) and sbsearch(3) that is an alternative to sbget(3). See their manual pages for further details. The utilities that have been changed to search for superblocks are dumpfs(8), fsdb(8), ffsinfo(8), and fsck_ffs(8). Also, the prtblknos(8) tool found in tools/diag/prtblknos searches for superblocks. The UFS specific mount code uses the superblock search interface when mounting the root filesystem and when the administrator doing a mount(8) command specifies the force flag (-f). The standalone UFS boot code (found in stand/libsa/ufs.c) uses the superblock search code in the hope of being able to get the system up and running so that fsck_ffs(8) can be used to get the filesystem cleaned up. The following utilities have not been changed to search for superblocks: clri(8), tunefs(8), snapinfo(8), fstyp(8), quot(8), dump(8), fsirand(8), growfs(8), quotacheck(8), gjournal(8), and glabel(8). When these utilities fail, they do report the cause of the failure. The one exception is the tasting code used to try and figure what a given disk contains. The tasting code will remain silent so as not to put out a slew of messages as it trying to taste every new mass storage device that shows up. Reviewed by: kib Reviewed by: Warner Losh Tested by: Peter Holm Differential Revision: https://reviews.freebsd.org/D36053 Sponsored by: The FreeBSD Foundation
* Fix wrong capitalization in man page references.Jens Schweikhardt2022-08-131-1/+1
|
* libc: iconv: add mb_cur_min for encoder traitsKyle Evans2022-08-111-0/+47
| | | | | | | | | | | | | | | | | | | | | A future commit will actually implement //IGNORE so that applications using base iconv can, e.g., sanitize UTF-8 strings. To do this, the iconv_std module needs to be able to determine the minimum width for any given encoding so that it can skip that many bytes in the input buffer. This is mainly an issue for UTF-16 and UTF-32. This commit bumps shlib versions to 5 for libiconv modules to reflect the ABI change. It also fixes OptionalObsoleteFiles to remove the libiconv modules if WITHOUT_ICONV is in use. re: _ENCODING_MB_CUR_MIN, note that this file (citrus_stdenc_template.h) is included at the bottom of an encoding *implementation*, so the implementation is free to #define it prior. UTF1632 is a good example, as it redefines the minimum to be a property on the encodinginfo, and the minimum is set to 2 or 4 bytes for UTF-16 and UTF-32 respectively. Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D34344
* tools: test: iconv: fix open_2 to not segfaultKyle Evans2022-08-111-6/+10
| | | | | | | | | | | | Record error condition when iconv_open() fails rather than leaving a bogus iconv_t that iconv_close() can later choke on; this is one failure mode. If we opened MAX_LIMIT files with success, we need to rewind one so that we don't iconv_close() one past the end of cd; this is the second failure mode. Sponsored by: Klara, Inc.
* stress2: Added a regression testPeter Holm2022-08-111-0/+135
|
* stress2: Added another fsck_ffs test scenarioPeter Holm2022-08-071-0/+160
|
* stress2: Do not run a fuzz test as root.Peter Holm2022-08-071-1/+6
|
* tools/uma/smrstress: fix kthread exitKonstantin Belousov2022-07-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | By convention, kernel threads must call kthread_exit() instead of blindly returning from the thread function. We have some safety measure in fork_exit(), which checks for the P_KPROC p_flag and does kthread_exit() for kernel thread that forgot to do it itself. But this workaround only works for kernel threads belonging to the kernel process. If a kernel thread is attached to the normal process with live userspace, and does not call kthread_exit(), then the workaround is not activated, and for amd64 at least, the return from the thread function/fork_exit() results in the return to userspace with the copy of frame from the thread that did kthread_add(). Practically for smrstress, this destroys the user stack of the still active frame in the other thread, which was the caller of kthread_add(). Fix it by adding kthread_exit() to the thread function. Reported and tested by: pho Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D35999
* tools/boot: Fix universe.sh's ZFS exclusion testWarner Losh2022-07-241-1/+1
| | | | | | | | | MK_LOADER_ZFS is the current spelling of enabling or disabling ZFS builds. Use it instead of MK_ZFS. Sponsored by: Netflix Reviewed by: tsoome Differential Revision: https://reviews.freebsd.org/D35896
* check/delete-old: Fix /bin/rmail removal conditionDmitry Chagin2022-07-211-0/+2
| | | | | | | | | | When WITHOUT_SENDMAIL is enabled and WITHOUT_MAILWRAPPER is disabled we install /bin/rmail as a link to the /usr/sbin/mailwrapper. Ensure make delete-old does not unlink /bin/rmail in that case. Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D35874 MFC after: 2 weeks
* namespace nv names, version libnv and libnvpair library symbolsReid Linnemann2022-07-211-1/+1
| | | | | | | | | | | | | | | libnv and libnvpair have aliased symbols, and as a result a single process which dlopens a shared object that is dynamically linked to libnv and another to libnvpair will wind up with a single set of resolved symbols for those in conflict. A source file also cannot include both libnv and libnvpair headers because of aliased identifiers. To resolve the situation, libnv types and functions are namespaced via nv_namespace.h, and libnv symbols are versioned. The msgio functions are not namespaced or exported as they are not part of the external API. Reviewed by: kevans Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D35261
* stress2: Update the exclude listPeter Holm2022-07-171-3/+0
|
* stress2: Enable more swap disk usagePeter Holm2022-07-152-5/+3
|
* stress2: Handle "gunion create" error exitPeter Holm2022-07-152-4/+10
|
* depend-cleanup.sh: Handle kqtest being renamed to kqueue_test.John Baldwin2022-07-141-0/+8
| | | | | | | | | | | bmake will not think that object files such as read.o are out of date due to common.h changing since the dependency is only recorded in .depend.kqtest.read.o in an old object directory. Reviewed by: markj Fixes: 68fe988a40ca kqueue tests: Simplify the test runner Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D35820