Commit Graph

9319 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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