Commit Graph

16630 Commits

Author SHA1 Message Date
roy
9357589466 Add rump_open_tap 2020-09-30 14:54:33 +00:00
roy
428927374e vether(4): Add ATF tests based on the tap(4) tests. 2020-09-29 19:41:48 +00:00
roy
6c00c3be34 rumpify vether(4) 2020-09-29 18:33:22 +00:00
msaitoh
57920690e6 s/occurence/occurrence/ 2020-09-29 02:58:51 +00:00
msaitoh
811d5a8b03 s/parition/partition/ 2020-09-29 02:49:55 +00:00
rillig
84d053a33b make(1): add test for merging long lines of job output 2020-09-27 20:11:33 +00:00
roy
4b44dc0b5e vether: Implement a virtual ethernet interface
The vether interface simulates a normal Ethernet interface by encapsulating
standard network frames with an Ethernet header, specifically for use as
a member in a bridge(4).

To use vether the administrator needs to configure an address onto the
interface so that packets can be routed to it. An Ethernet header will
be prepended and, if the vether interface is a member of a bridge(4),
the frame will show up there.

Taken from OpenBSD.
2020-09-27 13:31:04 +00:00
jmcneill
c9f4e317e7 Add HAVE_NVMM and use it to control the build of NVMM related components.
Defined to "yes" on amd64, "no" everywhere else.
2020-09-26 17:49:49 +00:00
skrll
584896eb82 G/C arm/atomic.h 2020-09-26 10:06:25 +00:00
rillig
6c4e4cfc20 make(1): add test for harmless bug in Parse_File
When there is a dependency group at the end of a top-level makefile,
this dependency group is not finished properly.  This allows to add
further commands to the targets of this dependency group, which was not
intended.
2020-09-25 23:24:49 +00:00
rillig
b4b854cf1c make(1): add test for deleting the suffixes during parsing 2020-09-25 18:18:25 +00:00
rillig
df955ddda3 make(1): add test for partial expansion of undefined variables 2020-09-25 05:56:59 +00:00
pgoyette
47b23bc72c As indicated at the top of the file, don't simply remove entries. Instead
we need to mark them "obsolete" so they will get removed if already in the
$DESTDIR
2020-09-24 14:14:18 +00:00
nia
499e9f4300 add a script for dynamically generating a menu in the ctwm desktop
this parses the files in /usr/pkg/share/applications and provides a
submenu for launching applications.

TODO: make /usr/pkg configurable somehow?
2020-09-23 15:30:36 +00:00
rillig
cf2410f348 make(1): add variant of the counter test
I had expected that using the ::+= modifier instead of the ::= modifier
would work, since the assignment modifier for COUNTER no longer contains
a reference to itself.  But instead of ending up at 4, the counter even
goes up to 6.
2020-09-23 03:33:54 +00:00
rillig
84ce7c67b4 make(1): fix assertion failure in -j mode with .END node
There had been two separate global variables for the .END node, and in
parallel mode, only the one in jobs.c was initialized.

The code in JobRun heads over to Compat_Make without calling Compat_Run
first, which left the variable ENDNode uninitialized.
2020-09-23 03:06:38 +00:00
nia
c17662fdc1 remove getentropy 2020-09-22 23:12:06 +00:00
snj
fde9d6c257 alpha: GENERIC.MP is no more 2020-09-22 02:53:52 +00:00
kamil
8f03799314 Add new RTLD test file for r_debug
New tests:
 - self
 - dlopen

Both check whether the r_debug structure seems to be well-formed, without
and with a dlopen(3) call.
2020-09-22 01:09:32 +00:00
kim
7448e6b5a0 Add MLINKS for empb.4 2020-09-21 14:03:15 +00:00
nia
cb99bd5907 ancient ARM stuff 2020-09-16 09:58:37 +00:00
mrg
284829f6eb bump bebox and prep image sizes for GCC 9. 2020-09-15 08:13:51 +00:00
nia
2cfdce2a15 new dtb set needs reflecting in instructions 2020-09-15 07:15:21 +00:00
mrg
ebc1bdaad3 actually, disable tsan on everything but amd64.
it fails to build on mips64 and arm64 for me as well as others..
2020-09-15 07:00:03 +00:00
mrg
5fd8bd8464 mark tsan files as !machine=sparc64. 2020-09-15 06:22:33 +00:00
rillig
10c6f48261 make(1): add test for undefined expressions in conditions in lint mode 2020-09-14 06:44:50 +00:00
rillig
b444745605 make(1): add tests for numbers in conditions 2020-09-14 06:22:59 +00:00
rin
0ed4729c3f Revert previous to make iscsi kernel headers optional again, as
required by kamil.

Now, sanitizer in GCC9 has been fixed differently for MKISCSI=no.
2020-09-14 00:40:02 +00:00
rin
0bb512d8c8 Revert previous to make iscsi kernel headers optional again, as
required by kamil.

Now, sanitizer in GCC9 has been fixed differently for MKISCSI=no.
2020-09-14 00:40:01 +00:00
mrg
b9e25dab96 fix earmv7eb builds -- add the dtb set items. 2020-09-14 00:01:51 +00:00
rillig
edc36b2d67 make(1): add recently added tests to distrib file list 2020-09-13 13:03:15 +00:00
kamil
0de11bbf9c Currently restrict GCC TSan files to gcc=9 2020-09-13 03:43:16 +00:00
kamil
4b3dee3027 Build and install GCC TSan for 64-bit CPUs 2020-09-13 02:37:31 +00:00
jmcneill
0d54a9589a Add HAVE_ACPI and HAVE_UEFI flags to bsd.own.mk and use them to
conditionally include ACPI and UEFI bits instead of relying on adhoc
MACHINE_ARCH tests.
2020-09-12 15:25:41 +00:00
roy
c04fae54cf Include nd.h in sets 2020-09-12 12:11:19 +00:00
jakllsch
66078c4dd6 Limit bootarm.efi expectation further.
Should fix iyonix, and zaurus builds.  Also probably fixes all oarm AKA
'arm' builds too.
2020-09-11 15:21:48 +00:00
jmcneill
f2c0a93275 Build acpi tools and iasl on aarch64eb, and fix set lists for MKDEBUG. 2020-09-11 14:06:00 +00:00
jakllsch
0fe0802f28 fix earmv7hfeb set list for bootarm.efi
Do this by explicitly marking all the non-earmv7hf* arm archs as not wanted,
because the set lists processor doesn't have a better way to be told.
2020-09-10 15:17:23 +00:00
martin
18aaa0a559 Add iavf 2020-09-10 04:56:00 +00:00
rin
6aef683d05 Unconditionally install kernel headers for iSCSI as required by
sanitizer shipped with GCC9.

Fix build release with HAVE_GCC=9 for sun2, where MKISCSI=no by default.
2020-09-10 01:53:22 +00:00
kamil
b1012e3f8c Register getrandom.0
Fixes MKCATPAGES=yes build.
2020-09-09 14:38:41 +00:00
jmcneill
e3afd33ec2 Look for the string "amazon" in a few different sysctl nodes. There doesn't
seem to be a single spot to check that works with both XenPVHVM and KVM
instances.
2020-09-09 13:25:48 +00:00
mrg
154bfe8e08 install new libstdc++ pstl headers. remove some dead makefile
code and consolidate some of the header installation.
2020-09-09 07:23:45 +00:00
mrg
949f2e0433 add new /usr/include/g++/pstl for GCC 9. 2020-09-09 06:50:33 +00:00
rillig
1276186758 distrib/sets/fmt-list: add no-action mode
This is useful for finding parse errors only.  Inspired by some entries
that are obsolete and have more than the "obsolete" flag.  There are
only few of these entries though, and they don't seem worth fixing.
2020-09-08 19:11:30 +00:00
rillig
45a9907314 lists/man/mi: remove extraneous space 2020-09-08 19:06:49 +00:00
jmcneill
6a59eace58 Build EFI bootloader on big endian armv7 and aarch64 targets. 2020-09-08 16:39:36 +00:00
martin
e6dd42d44f Add if_iavf 2020-09-08 14:57:32 +00:00
martin
bdb3c472cf Remove if_iavf 2020-09-08 14:55:44 +00:00
martin
3f05a659fd Add if_iavf 2020-09-08 14:53:10 +00:00
christos
cf8329dab9 Add bind test 2020-09-08 14:17:03 +00:00
adam
1575e0afaa Restore libgomp, liblsan, and libstdc++ as GCC-only 2020-09-08 13:01:47 +00:00
martin
fdb483b5a5 Adjust for MOUNTCRITLOCAL -> CRITLOCALMOUNTED rename 2020-09-08 12:52:44 +00:00
yamaguchi
f474b47c56 Added iavf(4) that is based on OpenBSD's iavf(4) implementation
reviewed by msaitoh@n.o and knakahara@n.o
2020-09-08 10:05:47 +00:00
mrg
43051be004 bump image size for pmax64 builds. 2020-09-07 09:05:10 +00:00
mrg
80ab9949eb fix mips and powerpc GCC 9 builds. 2020-09-07 00:19:04 +00:00
mrg
1ef4238e9f mostly support GCC 9 builds. some what tested with GCC 9 but
tested to not break GCC 8 builds for x86, arm*, vax, and sparc*.
2020-09-06 10:54:26 +00:00
rillig
d908d8a1ee lists/base/mi: fix lines with 4 fields
ok mrg
2020-09-05 19:17:42 +00:00
rillig
4cd5ede6f2 add distrib/sets/fmt-list to format the file lists consistently
This program is much more complicated than sort-list in the same
directory.  It takes care of aligning the fields of the lines so that
lines from the same directory are aligned to each other.  This reduces
horizontal jumps for the category and flags fields.
2020-09-05 11:13:07 +00:00
rillig
21e06026f4 fix alignment in ad.sh3 2020-09-05 11:00:18 +00:00
rillig
95fadeb4d8 make(1): move test for -dg1 from opt-debug-g1 to opt-debug-graph1 2020-09-05 06:36:40 +00:00
rillig
5630da511e make(1): add tests for each debug option 2020-09-05 06:20:50 +00:00
rillig
60c2e21286 make(1): add test for the special variable MAKEFILE 2020-09-04 17:05:39 +00:00
rillig
acf074f0de clean up file lists
- remove trailing whitespace
- remove empty line
- remove typo "htm\tl", that line is repeated
2020-09-04 13:39:50 +00:00
rillig
8bcc5e16ef add missing RCS Id line to lists/xserver/md.evbmips 2020-09-04 12:08:59 +00:00
rillig
8f99095c48 sort file lists with error checking, use lowercase variable name 2020-09-04 12:02:20 +00:00
rillig
565e2f5897 re-indent and sort distrib/sets/lists/tests/mi
This way, the fields 2 and 3 don't jump horizontally as often as before,
which makes the appearance of the whole file as calm and organized as it
should be.
2020-09-04 11:43:50 +00:00
rillig
cd269e3b78 make(1): extend tests for the :hash variable modifier
The previous test vectors didn't contain any hash with a leading zero.
This could have been a simple programming mistake by using %8x instead
of the intended %08x.  Using snprintf wouldn't have been possible anyway
since the hex digits are printed in little-endian order, but without
reversing the bits of each digit.  Kind of unusual, but doesn't affect
the distribution of the hashes.
2020-09-04 05:23:25 +00:00
jakllsch
892fcf91ad Only expect ACPI and UEFI-related files on little endian aarch64 2020-09-03 18:58:48 +00:00
rillig
640eab791b make(1): add test for the .for directive
For a long time, I had assumed that the iteration variables of a .for
loop are just normal global variables.  This assumption was wrong but
didn't have any consequences.

The iteration variables of a .for loop can just be accessed like global
variables, therefore it is not obvious that they are implemented in a
completely different way.

There are some edge cases in conditions used inside .for loops, in which
the iteration variables cannot be used like normal variables.  An
example is brought up in https://gnats.netbsd.org/47888, which observes
that the defined() and empty() functions in conditions only work with
variables but ignore the iteration "variables", simply because these are
not variables but only expressions.
2020-09-02 05:33:57 +00:00
bouyer
6e9b47ae29 Add back <xen/xenio3.h>, it's needed by xentools413 2020-08-31 11:32:01 +00:00
mrg
48bad64f01 install dmxproto.pc and dpmsproto.pc 2020-08-30 04:51:03 +00:00
rillig
a02fdff94e make(1): add tests for .else and .for + .endif 2020-08-29 18:50:25 +00:00
rillig
6c6514f5e6 make(1): fix assertion failure for .SUFFIXES in archives
This occurred in the posix1.mk test, even though it is disabled in
unit-tests.  But in tests/usr.bin/make it still runs.  There, it should
have produced an "expected failure" but crashed instead.

The archive-suffix test is the stripped-down version of the posix1 test.
2020-08-29 14:47:26 +00:00
rillig
24bb4aab54 make(1): add test for interrupting a command 2020-08-28 15:40:53 +00:00
christos
4acd0e20c1 new compat_bsdos man page. 2020-08-28 12:15:05 +00:00
riastradh
c371c223b0 Revert removal -- evidently the leading dash does mean something.
Specifically, it cancels out the same entry elsewhere in the set
list, and apparently it is only for twelve files in the entire tree.
Someone^TM should document this more clearly, and/or just get rid of
it because I'm at least the third person to be confused by this
according to the revision history.
2020-08-28 06:44:02 +00:00
rillig
f0fdf22f6f make(1): add tests for the special .INCLUDES and .LIBS variables 2020-08-28 03:51:06 +00:00
rillig
2e8adea593 make(1): add test for the -dg1 option 2020-08-27 19:00:17 +00:00
riastradh
64605abad9 Remove bogus Atffile and Kyuafile entries for if_wg tests. 2020-08-27 15:32:37 +00:00
riastradh
0d3faa6162 Sort and deduplicate set lists. 2020-08-27 15:31:59 +00:00
riastradh
af24ffc1cc Omit spurious leading dash in debug/ad.mips set list entries.
(if this actually means something feel free to revert and document
what it means somewhere obvious!)
2020-08-27 15:30:04 +00:00
riastradh
4ab307ac4c Fix obsolete entry for /usr/lib/libcdk.so.
This was broken in rev. 1.1230.
2020-08-27 15:28:53 +00:00
riastradh
25154f5f0c Clarify wg(4)'s relation to WireGuard, pending further discussion.
Still planning to replace wgconfig(8) and wg-keygen(8) by one wg(8)
tool compatible with wireguard-tools; update wg(4) for the minor
changes from the 2018-06-30 spec to the 2020-06-01 spec; &c.  This just
clarifies the current state of affairs as it exists in the development
tree for now.

Mark the man page EXPERIMENTAL for extra clarity.
2020-08-26 16:03:40 +00:00
riastradh
e96b516f47 Restore obsolete entries for make's modorder tests.
These tests were removed a week ago, but their set list entries were
removed rather than marked obsolete.
2020-08-24 18:41:22 +00:00
martin
dec88ece21 Backout previous, commiter was dazed and confused 2020-08-24 18:22:30 +00:00
martin
1247dfe5c0 Add modorder* make unit test files 2020-08-24 18:18:51 +00:00
rillig
482afa8a7b make(1): add tests for numeric comparisons in .if directives 2020-08-23 13:50:17 +00:00
rillig
95cca86b4e make(1): add test for the newly added .SHELL variable 2020-08-23 09:18:25 +00:00
rillig
526dac9499 make(1): add test for expanding wildcards in directories
This test covers DirExpandInt.
2020-08-22 21:55:54 +00:00
rillig
e980b3204c make(1): add test for assigning to the variable named ""
This has been possible at least since 2013, probably much longer.
2020-08-22 20:23:14 +00:00
rillig
78b4692a94 make(1): add test for deferred variable expansion in dependencies 2020-08-22 16:51:25 +00:00
rillig
6c388b1dca make(1): add test for the special "..." in shell commands 2020-08-22 11:27:02 +00:00
rillig
49fef3ca66 make(1): add test for combining :: and .USEBEFORE 2020-08-22 08:29:13 +00:00
riastradh
0252686c58 Fill out WireGuard man pages. 2020-08-20 21:35:59 +00:00
riastradh
61fd7d67f5 [ozaki-r] Add wg files 2020-08-20 21:28:00 +00:00
rillig
001513ee3c make(1): add test for parsing functions in .if conditions 2020-08-20 17:45:46 +00:00
nakayama
ffe8239bf9 Quoted from the top of the file:
# Note: don't delete entries from here - mark them as "obsolete" instead.
2020-08-18 07:13:59 +00:00
perseant
c7e481e284 Add skipped test for in-kernel roll-forward agent 2020-08-18 03:02:50 +00:00
rillig
94b00ca35c make(1): move tests for the :Ox modifier into separate file
The test has been extended by ensuring that the shuffled words are still
the same.  Comparing two shuffled lists is probabilistic, but comparing
their sorted results is not, therefore that's completely sensible to do.

When writing this test, by coincidence I discovered how to generate the
"Undefined variable" error message.  Unfortunately, the error message is
wrong since the variable NUMBERS is defined at that point.  In summary,
that error message is shown when it shouldn't, and when it should it is
not shown.  Still, I'm glad that I finally found it.
2020-08-16 20:43:01 +00:00
rillig
54a8ac11f2 make(1): move tests for the :M modifier into separate files
The test for the different escaping has been adjusted to actually show
the different parsing results in the test output.  To do this, it had to
get its own file since it needs the -dv debug flag and specialized
post-processing.
2020-08-16 20:03:52 +00:00
rillig
d126d9d551 make(1): add dummies for fine-grained tests, one per single feature
The test names have been derived from the current manual page.

All these tests are dummies right now, and the code from the existing
tests will be moved into the new tests step by step.

This is done to prevent modmisc, escape, varmod-edge and varmisc from
growing without any bounds, and to reduce the side-effects of one test
to the others.
2020-08-16 12:07:50 +00:00
mrg
5f6277270e bump image from 3000k to 3.5M. thanks, time. 2020-08-16 11:43:36 +00:00
isaki
76c2ed7cdd Replace boot_ustar with xxboot_ustarfs.
The old boot_ustar had many hard coding and was small(<1KB).
The new xxboot_ustarfs is a part of integrated larger(<8KB) xxboot.
We had to maintain three similar but not the same bootloaders, but
now we have two!
2020-08-16 07:03:45 +00:00
riastradh
bdad8b2721 New system call getrandom() compatible with Linux and others.
Three ways to call:

getrandom(p, n, 0)              Blocks at boot until full entropy.
                                Returns up to n bytes at p; guarantees
                                up to 256 bytes even if interrupted
                                after blocking.  getrandom(0,0,0)
                                serves as an entropy barrier: return
                                only after system has full entropy.

getrandom(p, n, GRND_INSECURE)  Never blocks.  Guarantees up to 256
                                bytes even if interrupted.  Equivalent
                                to /dev/urandom.  Safe only after
                                successful getrandom(...,0),
                                getrandom(...,GRND_RANDOM), or read
                                from /dev/random.

getrandom(p, n, GRND_RANDOM)    May block at any time.  Returns up to n
                                bytes at p, but no guarantees about how
                                many -- may return as short as 1 byte.
                                Equivalent to /dev/random.  Legacy.
                                Provided only for source compatibility
                                with Linux.

Can also use flags|GRND_NONBLOCK to fail with EWOULDBLOCK/EAGAIN
without producing any output instead of blocking.

- The combination GRND_INSECURE|GRND_NONBLOCK is the same as
  GRND_INSECURE, since GRND_INSECURE never blocks anyway.

- The combinations GRND_INSECURE|GRND_RANDOM and
  GRND_INSECURE|GRND_RANDOM|GRND_NONBLOCK are nonsensical and fail
  with EINVAL.

As proposed on tech-userlevel, tech-crypto, tech-security, and
tech-kern, and subsequently adopted by core (minus the getentropy part
of the proposal, because other operating systems and participants in
the discussion couldn't come to an agreement about getentropy and
blocking semantics):

https://mail-index.netbsd.org/tech-userlevel/2020/05/02/msg012333.html
2020-08-14 00:53:15 +00:00
christos
c9979bce58 new openldap.h 2020-08-11 13:19:15 +00:00
rillig
c0e93ee0a8 make(1): add test for .USE combined with inference rule without commands
Discovered by christos.
2020-08-09 16:32:28 +00:00
rillig
0a54428996 make(1): add test for non-obvious .MAKE.EXPORTED edge case 2020-08-09 12:59:16 +00:00
rillig
98f2f3e4fd make(1): add test for exporting variables 2020-08-07 19:24:27 +00:00
snj
61057d564f s/developement/development/ 2020-08-07 00:43:47 +00:00
snj
036ace7152 fix typo.
new sentence, new line.
2020-08-07 00:27:11 +00:00
rillig
4d4fd97a93 make(1): add test for unintended "recursive variable" in -dL mode 2020-08-06 05:36:32 +00:00
jmcneill
4f13f64982 Add support for EC2 and resize root to AMD64 live images. 2020-08-05 01:35:18 +00:00
christos
fffaea8800 bump bind9 libs 2020-08-03 17:30:17 +00:00
christos
3293ee94c7 Make bind-9 arm obsolete for now since we lack the tools in base to build it. 2020-08-03 17:26:13 +00:00
rillig
35fd6fe173 make(1): in lint mode, disallow dynamic variable names in :@ modifier
This is an extremely obscure feature that hopefully nobody ever
considered using.
2020-08-03 15:43:31 +00:00
rillig
e2ff37d040 make(1): add test for nested VAR_SUBST assignments 2020-08-02 14:53:01 +00:00
rillig
ed8690bbc2 make(1): add test for braces in dependency lines
The comment at DirExpandCurly says something about "recursively", but the
nested braces don't work.

The manual page only mentions that "{} may be used", but it keeps quiet
about the exact meaning and also doesn't mention any nesting.
2020-07-31 16:42:51 +00:00
rillig
b12a565098 make(1): add test for setting .OBJDIR via the command line 2020-07-28 22:44:44 +00:00
rillig
1417e3eec0 make(1): add tests for parsing directives like .if and .info 2020-07-27 20:46:17 +00:00
rillig
05105f4250 make(1): add very basic test for archive handling
The whole code in arch.c had been uncovered by tests before.

The code coverage shows that neither the archive name nor the member
contain any $, even though archive.mk looks like it.  It could be
necessary to place the variable assignments below the dependency line,
to force late evaluation.
2020-07-27 18:51:03 +00:00
rillig
4c360672c6 make(1): add test for off-by-one error in Var_Parse 2020-07-26 22:15:36 +00:00
nia
afd659dfcd replace KDE with a desktop that's actually current in pkgsrc 2020-07-26 18:53:50 +00:00
christos
df1af03d3a extattr.3 is obsolete 2020-07-26 18:11:43 +00:00
jdolecek
6b6d7b2ff3 add rudimentary wwanc(4) manpage 2020-07-26 15:13:09 +00:00
riastradh
ddd4654428 Another /usr/libdata/usr/tests/sys/crypto/chacha set list entry.
(Why do we need this here _and_ in debug/mi?)
2020-07-26 14:22:22 +00:00
jmcneill
e18ed6ff5c Remove Arm OABI -> EABI change notice 2020-07-26 11:05:39 +00:00
jmcneill
8fcd3028c3 ARM -> Arm 2020-07-26 11:00:28 +00:00
jmcneill
32bd1eb491 Remove duplicate word 2020-07-26 10:58:59 +00:00
jmcneill
5c3f3fd6a3 List all supported Amlogic SoCs 2020-07-26 10:58:27 +00:00
jmcneill
74a4a39d4f Add i.MX8MQ 2020-07-26 10:55:36 +00:00
jmcneill
b136bcde77 ThunderX is covered by SBBR+SBSA 2020-07-26 10:52:17 +00:00
jmcneill
60b4f060be Add BCM2711 2020-07-26 10:51:57 +00:00
jmcneill
dbce5dc42f Clarify SBSA support 2020-07-26 10:50:26 +00:00
jmcneill
3d8b9252fb Note support for TI AM335x SoC 2020-07-26 10:49:05 +00:00
tsutsui
b99993626f Give syspkg name to Xsun server files. 2020-07-26 07:02:14 +00:00
riastradh
59613b8a1a Add kernel ChaCha test to exercise all available implementations. 2020-07-25 22:53:38 +00:00
rillig
91d1c0769c make(1): add newly added unit tests 2020-07-25 21:23:09 +00:00
nia
f72bfa2a9f upgrades to upgrade instructions 2020-07-24 12:41:20 +00:00
jmcneill
70370e75d4 evbmips: add ofctl(8) and /dev/openfirm support 2020-07-24 12:07:09 +00:00
jdolecek
9967176af4 <xen/xenio.h> is in fact used by the newly imported xentools 4.13,
reinstantiate it

header is for use by xentools only, which define domid_t themselves,
so it should not be a problem the header doesn't define it per PR port-xen/52874
2020-07-24 06:12:21 +00:00
nia
c121fe4afe freescale support in GENERIC 2020-07-23 14:10:25 +00:00
nia
2d4f770c75 more 9.0 hardware 2020-07-23 14:09:31 +00:00
tsutsui
a4cb5b71b6 Add .debug binaries for Xsun servers.
Note daily build.sh on releng.netbsd.org has MKDEBUG=yes
so local test builds should also include it.
2020-07-23 09:46:49 +00:00
tsutsui
32de12aea9 Add build glue for Xorg-Server-1.20'fied monolithic Xsun servers. 2020-07-22 20:54:07 +00:00
roy
a73ffa0270 Note the new resolvconf files 2020-07-22 19:02:01 +00:00
martin
31fc9817bb Split the local disk availability step into two phases to allow scripts
that pre-populate parts of the system (e.g. a tmpfs based /var) an
easy place to plug in like:

# REQUIRE: mountcritlocal
# BEFORE: MOUNTCRITLOCAL

This also cleans up the existing special handling a bit by separating it
into new scripts. All later scripts now depend on MOUNTCRITLOCAL.
Discussed on tech-userlevel some time ago.
2020-07-22 16:50:41 +00:00
nia
970d926d53 Fix location of device trees 2020-07-21 02:21:12 +00:00
nia
8555e3a676 missing e.g. 2020-07-18 18:11:46 +00:00
nia
fba738a313 more hardware 2020-07-18 18:09:42 +00:00
nia
879844e8a6 clarify 2020-07-18 17:45:11 +00:00
nia
65b55d2ec3 Initial evbarm upgrade instructions - need work 2020-07-18 17:40:14 +00:00
nia
3c1d32f8ae more contents 2020-07-18 17:20:59 +00:00
nia
4007c97d9d safe estimation of required storage 2020-07-18 17:10:23 +00:00
nia
ebf5b694b7 more modernization of evbarm install instructions 2020-07-18 16:41:14 +00:00
kamil
07e8492e26 Add ppoll() a compatibility wrapper around pollts(2)
Submitted by Apurva Nandan.
2020-07-17 15:34:16 +00:00
kamil
8d51512d13 man5/changelist.5 does not depend on MKPOSTFIX 2020-07-17 15:24:03 +00:00
jmcneill
4813953ca0 Create an "octeon.img.gz" bootable image for evbmips64-eb release builds. 2020-07-17 15:16:34 +00:00
jdolecek
4dc6094006 don't install xen/xenio.h and xen/xenio3.h anymore, xentools don't use it
PR port-xen/52874
2020-07-17 12:12:24 +00:00
simonb
bc6a081a98 Rename the evbmips ERLITE kernel to OCTEON now that it supports more
than just the EdgeRouter Lite.
2020-07-15 12:15:30 +00:00
jruoho
0eb7ac5e23 Add stub manual pages for /etc/changelist and /etc/pkgpath.conf.
Fixes PR bin/55477.
2020-07-13 09:10:34 +00:00
thorpej
26c5d1c962 Update pci_configure_bus(9) to reflect the new reality -- no more manual
fiddling with extent maps, use pciconf_resource_{init,add,fini}() instead.
2020-07-10 02:27:13 +00:00
uki
cc89970806 Rename base-termcap-share to base-terminfo-share in descrs 2020-07-09 10:42:44 +00:00
thorpej
b873b678a2 Add ./usr/share/wscons/fonts/spleen-8x16.fnt 2020-07-08 13:39:04 +00:00
christos
e6556af56e new mapped test. 2020-07-06 18:47:02 +00:00
chs
af5290a884 the x86 xen and non-xen modules are identical,
so remove the unneeded extra copies.
Xen kernels now use the same modules as native kernels.
2020-07-04 21:02:15 +00:00
roy
f8262fcce8 unbreak build, put /var/db/dhcpcd into the set lists 2020-07-03 12:53:27 +00:00
jruoho
9cb1df3cd3 Add a check for PR bin/54692. 2020-07-03 04:25:28 +00:00
jruoho
7bd1b83147 Add a check for the overflow noted in PR lib/46542. 2020-07-03 03:59:18 +00:00
lukem
08fb4e9235 Makefile.minirootkmod don't have SRCS 2020-07-02 08:48:10 +00:00
jruoho
4704e28c3f Add basic checks for magic symlink(7)'s. These include a case for PR lib/55361,
although it seems that realpath(3) has bigger problems with these symlinks.
2020-07-01 13:49:26 +00:00
jruoho
55abcd082f Add basic checks for a64l(3), l64a(3), and l64a_r(3). 2020-07-01 07:16:37 +00:00
lukem
41b765e18c fix sets for MKKYUA 2020-06-30 23:51:47 +00:00
riastradh
bd9707e06e New test sys/crypto/aes/t_aes.
Runs aes_selftest on all kernel AES implementations supported on the
current hardware, not just the preferred one.
2020-06-30 20:32:10 +00:00
jruoho
2ba250a115 After a comedy of errors, move t_mbtowc to its final resting place. 2020-06-30 16:09:40 +00:00
jruoho
8b2d29b6bf Check that DTrace's execsnoop and opensnoop work (cf. PR kern/53417). 2020-06-30 14:30:49 +00:00
jruoho
e643f0ea97 Add a couple of tests for sequential ifconfig(8) options, incl. PR kern/41912. 2020-06-30 11:48:20 +00:00
riastradh
04a6492d1e New cgd cipher adiantum.
Adiantum is a wide-block cipher, built out of AES, XChaCha12,
Poly1305, and NH, defined in

   Paul Crowley and Eric Biggers, `Adiantum: length-preserving
   encryption for entry-level processors', IACR Transactions on
   Symmetric Cryptology 2018(4), pp. 39--61.

Adiantum provides better security than a narrow-block cipher with CBC
or XTS, because every bit of each sector affects every other bit,
whereas with CBC each block of plaintext only affects the following
blocks of ciphertext in the disk sector, and with XTS each block of
plaintext only affects its own block of ciphertext and nothing else.

Adiantum generally provides much better performance than
constant-time AES-CBC or AES-XTS software do without hardware
support, and performance comparable to or better than the
variable-time (i.e., leaky) AES-CBC and AES-XTS software we had
before.  (Note: Adiantum also uses AES as a subroutine, but only once
per disk sector.  It takes only a small fraction of the time spent by
Adiantum, so there's relatively little performance impact to using
constant-time AES software over using variable-time AES software for
it.)

Adiantum naturally scales to essentially arbitrary disk sector sizes;
sizes >=1024-bytes take the most advantage of Adiantum's design for
performance, so 4096-byte sectors would be a natural choice if we
taught cgd to change the disk sector size.  (However, it's a
different cipher for each disk sector size, so it _must_ be a cgd
parameter.)

The paper presents a similar construction HPolyC.  The salient
difference is that HPolyC uses Poly1305 directly, whereas Adiantum
uses Poly1395(NH(...)).  NH is annoying because it requires a
1072-byte key, which means the test vectors are ginormous, and
changing keys is costly; HPolyC avoids these shortcomings by using
Poly1305 directly, but HPolyC is measurably slower, costing about
1.5x what Adiantum costs on 4096-byte sectors.

For the purposes of cgd, we will reuse each key for many messages,
and there will be very few keys in total (one per cgd volume) so --
except for the annoying verbosity of test vectors -- the tradeoff
weighs in the favour of Adiantum, especially if we teach cgd to do
>>512-byte sectors.

For now, everything that Adiantum needs beyond what's already in the
kernel is gathered into a single file, including NH, Poly1305, and
XChaCha12.  We can split those out -- and reuse them, and provide MD
tuned implementations, and so on -- as needed; this is just a first
pass to get Adiantum implemented for experimentation.
2020-06-29 23:44:01 +00:00
fcambus
ad2873740c Add font files for Spleen, which can be loaded into the wsfont pool
or a wscons display device using wsfontload(8).

For example, Spleen 16x32 can be loaded and enabled as follow:

wsfontload -N spleen-16x32 -w 16 -h 32 spleen-16x32.fnt
wsconsctl -dw font=spleen-16x32
2020-06-28 14:26:18 +00:00
rillig
068560b5e3 make(1): demonstrate bug when evaluating conditions 2020-06-28 09:42:40 +00:00
pgoyette
4e70e0c622 Add missing debug entry for new t_mbtowc
XXX Please note that there are now TWO tests named t_mbtowc - this one in
XXX tests/lib/libc/stdlib/ and an older one in tests/lib/libc/locale
XXX I don't know if the functionality is duplicated or not.
2020-06-28 01:38:39 +00:00
christos
465626063e fix the build 2020-06-27 18:03:52 +00:00
jruoho
7725c11dd6 Add also a test that writes random garbage to every ifconfig(8) option that
takes parameters. Based on quick testing, iwn(4) and wm(4) pass, but
urtwn(4) panics. Use at your own risk; in some cases, it may be possible
that horrors are written directly to the hardware.
2020-06-27 13:53:43 +00:00
jruoho
14dd606bd8 Add t_t_mbtowc. 2020-06-27 10:15:50 +00:00
jruoho
f60c53b495 Move the test for mktemp(3) to the right place. 2020-06-27 09:45:57 +00:00
jruoho
313072e773 Add a simple test case that writes random garbage to (almost) every sysctl node.
This test reproduced already at least five unique panics in a few quick runs.
The test is skipped by default as it is not likely safe even without the panics.
2020-06-27 08:50:46 +00:00
jruoho
b61f0fee17 Add a basic test for enabling/disabling network interface capabilities. 2020-06-27 06:57:44 +00:00
rin
77128b9fa3 Remove stale comments. 2020-06-27 05:39:07 +00:00
jruoho
78bd8e59f5 Add a test case for PR kern/53767. 2020-06-27 05:20:34 +00:00
jruoho
dc018d6b62 Add test cases for different 802.11 options. These include cases for
PR kern/35045, PR kern/45745, and PR kern/55424.
2020-06-27 05:07:07 +00:00
jruoho
f5fa72a2a9 Test creating thousands of bridge(4)'s. Unlike with tap(4) (PR kern/55417),
this test succeeeds. It is even possible to have the ultimate ifconfig(8)
output with more than 65,000 devices.
2020-06-25 18:30:42 +00:00
jruoho
9611465bb1 Verify that PR kern/52150 is no longer present. 2020-06-25 17:08:32 +00:00
jruoho
2a70c17495 Add a test case for PR kern/52744, which no longer appears to be present. 2020-06-25 16:16:48 +00:00
jruoho
0f5766374a Add a test case for kern/52771. 2020-06-25 15:41:40 +00:00
jruoho
77e941ddd2 Add a test case for PR kern/53410. 2020-06-25 15:01:35 +00:00
jruoho
5c3bd061a3 Add test cases for PR kern/53546 and PR kern/55417. Both are skipped as
both reproduce panics.
2020-06-25 14:24:45 +00:00
jruoho
55d0ca692c Check that fstat(1) works (cf. PR kern/55407). 2020-06-24 10:05:07 +00:00
jruoho
3f1bde296f Add a few checks for stdethers(8) and stdhosts(8). 2020-06-24 09:47:17 +00:00
jruoho
d60b9b731a Add few basic tests for cpuctl(8). These cover PR kern/45117 and PR bin/54220.
Though, the former is not explicitly tested as it hangs the system.
2020-06-24 09:32:41 +00:00
jruoho
27ee1d2935 Add a test case for bin/54620. 2020-06-24 09:21:43 +00:00