deraadt [Tue, 28 Aug 2018 01:23:34 +0000 (01:23 +0000)]
sync
dlg [Tue, 28 Aug 2018 00:00:42 +0000 (00:00 +0000)]
add support for storing the time of day on OPL based machines.
this let's me pull the date back from 2023 to 2018, and have it
stay like that after a reboot.
ok deraadt@
schwarze [Mon, 27 Aug 2018 23:12:57 +0000 (23:12 +0000)]
Reduce excessive right padding in tagged list heads.
The 1.2em was an approximate equivalent of the 2n traditionally used
for terminal display, but it is much too wide for HTML rendering.
Issue reported by mikeb@.
kettenis [Mon, 27 Aug 2018 21:56:31 +0000 (21:56 +0000)]
hitemp(4)
tb [Mon, 27 Aug 2018 21:27:39 +0000 (21:27 +0000)]
tweak failure messages
tb [Mon, 27 Aug 2018 21:24:13 +0000 (21:24 +0000)]
dedup AES-CBC-PKCS5 encryption and decryption checks
kettenis [Mon, 27 Aug 2018 21:12:28 +0000 (21:12 +0000)]
hitemp(4)
kettenis [Mon, 27 Aug 2018 21:09:47 +0000 (21:09 +0000)]
Add hitemp(4), a driver for the temperature sensors on the HiSilicon Hi3660
and Hi3670 SoCs.
tb [Mon, 27 Aug 2018 21:02:25 +0000 (21:02 +0000)]
2x missing "..."
tb [Mon, 27 Aug 2018 20:58:02 +0000 (20:58 +0000)]
Run Wycheproof AES-CCM testvectors against libcrypto.
jmc [Mon, 27 Aug 2018 20:36:49 +0000 (20:36 +0000)]
sort SEE ALSO;
kettenis [Mon, 27 Aug 2018 20:13:16 +0000 (20:13 +0000)]
Add 64-bit DMA support. Enable DMA on HiSilicon SoCs.
ok patrick@
kettenis [Mon, 27 Aug 2018 20:09:29 +0000 (20:09 +0000)]
rkdwusb(4)
kettenis [Mon, 27 Aug 2018 20:05:56 +0000 (20:05 +0000)]
hiclock(4), hidwusb(4) and hireset(4)
kettenis [Mon, 27 Aug 2018 20:05:06 +0000 (20:05 +0000)]
Add hiclock(4). Make sure hireset(4) attaches early.
jcs [Mon, 27 Aug 2018 19:32:48 +0000 (19:32 +0000)]
move bwfm* at pci? to the wireless section
claudio [Mon, 27 Aug 2018 19:32:37 +0000 (19:32 +0000)]
If the maximum for a community is defined via the large flag then
this maximum should also be passed to strtonum() instead of UINT_MAX
or the error handling does not work.
jsing [Mon, 27 Aug 2018 17:11:32 +0000 (17:11 +0000)]
n2s and l2n3 finally bite the dust!
jsing [Mon, 27 Aug 2018 17:04:34 +0000 (17:04 +0000)]
Convert ssl3_get_cert_verify() to CBS and clean up somewhat.
ok inoguchi@
jsing [Mon, 27 Aug 2018 16:56:46 +0000 (16:56 +0000)]
Dedup DTLS header writing code and convert to CBB.
There are three versions of the DTLS header writing code, which primarily
differ by the fragment offset and fragment length values that differ.
Rework dtls1_write_message_header() such that it can be used in all three
cases and convert it to CBB in the process.
ok inoguchi@ tb@
jsing [Mon, 27 Aug 2018 16:48:12 +0000 (16:48 +0000)]
Add some missing statics.
jsing [Mon, 27 Aug 2018 16:42:48 +0000 (16:42 +0000)]
Simplify new session ticket encoding/generation.
The original code did a crazy encode/malloc/encode/decode/modify/encode
dance, in order to encode a session in the form needed to encrypt then add
to a session ticket. By modifying the encoding functions slightly, we can
do this entire dance as a single encode.
Inspired by similar changes in BoringSSL.
ok inoguchi@ tb@
anton [Mon, 27 Aug 2018 15:57:39 +0000 (15:57 +0000)]
Rename struct kd -> kcov_dev. The terse name was initially fine since it wasn't
used outside of dev/kcov.c. Nowadays, struct proc includes a kcov pointer and it
therefore deserves a more descriptive name.
Prodded by visa@; ok deraadt@ visa@
kettenis [Mon, 27 Aug 2018 15:56:22 +0000 (15:56 +0000)]
Enable hireset(4).
jsing [Mon, 27 Aug 2018 15:42:39 +0000 (15:42 +0000)]
Fix formatting and grammatical issues with the description of how to use
i2d_SSL_SESSION. Also rework the example code so that it is clearer and
uses more appropriate names.
Input from and ok schwarze@, tb@
kettenis [Mon, 27 Aug 2018 14:12:59 +0000 (14:12 +0000)]
Add hirest(4), a driver to support reset signal controller blocks on
HiSilicon SoCs.
kettenis [Mon, 27 Aug 2018 13:56:11 +0000 (13:56 +0000)]
Add glue for the USB3 controller on the HiKey 970.
krw [Mon, 27 Aug 2018 13:09:51 +0000 (13:09 +0000)]
disklabel(8) no longer touches bootstrap code so stop mentioning it.
The MD writedisklabel() function ensures the disklabel does not
intrude on bootstraps.
Add a Xr to installboot(8), which does bootstrappy stuff these days.
ok jmc@
claudio [Mon, 27 Aug 2018 12:15:20 +0000 (12:15 +0000)]
Undefined plans can never match. Check for that before trying to use the plan.
OK millert@ gsoares@
claudio [Mon, 27 Aug 2018 11:43:36 +0000 (11:43 +0000)]
Wrap some overly long lines. No functional change
nicm [Mon, 27 Aug 2018 11:03:34 +0000 (11:03 +0000)]
Memory leaks, from Gang Fan in GitHub issue 1453.
jsg [Mon, 27 Aug 2018 10:17:35 +0000 (10:17 +0000)]
ompinmux has been replaced by pinctrl
jsg [Mon, 27 Aug 2018 10:05:18 +0000 (10:05 +0000)]
switch from ompinmux to pinctrl
ok kettenis@
jsg [Mon, 27 Aug 2018 10:03:35 +0000 (10:03 +0000)]
handle 16 bit register width required for omap3/omap4
ok kettenis@
kettenis [Mon, 27 Aug 2018 10:03:26 +0000 (10:03 +0000)]
Enable radeondrm(4). Note that on arm64 we do not yet have a way to
determine whether radeondrm(4) is the console or not. So leave out the
bits that try to make sure the console ends up with drm0/wsdisplay0 that
we have on other platforms.
claudio [Mon, 27 Aug 2018 09:49:00 +0000 (09:49 +0000)]
merge_filterset() needs to produce a stable sorted filterset to make sure
the RDE can compare the sets on reload and skip those that did not change.
For large communities the check is wrong and incomplete, replace it with
a simple memcmp() of the structs which will result in a stable order.
OK phessler@
kettenis [Mon, 27 Aug 2018 09:30:07 +0000 (09:30 +0000)]
Add an interface that allows drivers to claim a framebuffer and check
whether another driver has already claimed a framebuffer. Use this in
radeondrm(4) and simplefb(4) to prevent the latter from attaching if
radeondrm(4) is attached to the hardware that provides the framebuffer
set up by the firmware.
ok mlarkin@
inoguchi [Mon, 27 Aug 2018 06:50:13 +0000 (06:50 +0000)]
Add protocol and cipher patterns in regress appstest.sh
kettenis [Mon, 27 Aug 2018 06:43:28 +0000 (06:43 +0000)]
HiSilicon SoCs pre-divide the clock by a factor 8.
mpi [Sun, 26 Aug 2018 22:30:00 +0000 (22:30 +0000)]
Do not add ::1 on non-default lo(4) as intended.
Reported by and ok sthen@
deraadt [Sun, 26 Aug 2018 22:23:22 +0000 (22:23 +0000)]
sync
krw [Sun, 26 Aug 2018 22:06:50 +0000 (22:06 +0000)]
disklabel(8) has not used the primary/secondary boot files
for years. Remove mention of same from 'FILES' section.
deraadt [Sun, 26 Aug 2018 20:44:03 +0000 (20:44 +0000)]
syncd
jmc [Sun, 26 Aug 2018 20:36:57 +0000 (20:36 +0000)]
less uppercase in Nd;
kettenis [Sun, 26 Aug 2018 19:54:39 +0000 (19:54 +0000)]
pinctrl(4)
kettenis [Sun, 26 Aug 2018 19:50:08 +0000 (19:50 +0000)]
Add pinctrl(4), a generic pin mux driver.
ok patrick@
naddy [Sun, 26 Aug 2018 19:09:55 +0000 (19:09 +0000)]
Handle fork() errors. The Perl fork() wrapper returns undef rather
than -1 on error. ok jca@
brynet [Sun, 26 Aug 2018 18:26:51 +0000 (18:26 +0000)]
Unveil pflogd(8). Similiar to florian@'s recent changes to ifconfig(8),
the priviledged parent cannot be pledged due to certain ioctls, but we
can use unveil(2) to lock down its access to the filesystem.
To be able to use hostnames/dns in tcpdump-like filter expressions,
we unveil /etc/{resolv.conf,hosts,services} "r", kept in sync with the
kernel bypass for pledge("dns")
Additionally, we need to unveil /dev/bpf "r" and the output log file
"rwc".
The unpriviledged child is pledged "stdio recvfd" and thus does not need
any unveils.
With feedback/testing from florian@, deraadt@
ok florian@ deraadt@
brynet [Sun, 26 Aug 2018 18:24:46 +0000 (18:24 +0000)]
pflogd(8): don't try to rename(2) broken/invalid pflog files, instead,
suspend logging until the log file has been moved out of the way, and
we have received either SIGHUP or SIGALRM.
ok florian@ deraadt@
kettenis [Sun, 26 Aug 2018 18:10:16 +0000 (18:10 +0000)]
plgpio(4)
jmc [Sun, 26 Aug 2018 18:04:54 +0000 (18:04 +0000)]
fix the same "an non" issue found by tb in EVP_EncryptInit.3;
krw [Sun, 26 Aug 2018 17:47:54 +0000 (17:47 +0000)]
The three -B forms of disklabel(8) were nuked years ago. So remove
stray reference to them.
tb [Sun, 26 Aug 2018 17:43:39 +0000 (17:43 +0000)]
Check return value of EVP_CipherInit_ex()
tb [Sun, 26 Aug 2018 17:38:16 +0000 (17:38 +0000)]
Run Wycheproof AES-CBC-PKCS5 testvectors against libcrypto.
tb [Sun, 26 Aug 2018 17:35:40 +0000 (17:35 +0000)]
Remove some redundant info from log.Fatalf
tb [Sun, 26 Aug 2018 17:34:40 +0000 (17:34 +0000)]
simplify returned value
tb [Sun, 26 Aug 2018 17:03:32 +0000 (17:03 +0000)]
Some of the functions in this manual need <openssl/dsa.h>, others
need <openssl/x509.h>. The functions {d2i,i2d}_DSA_params_{bio,fp}(3)
were missing from the manual, so document them. The return values
of the i2d_* functions are left undocumented, as these still need to
be audited.
ok schwarze (lots of input and help as usual)
tb [Sun, 26 Aug 2018 16:55:30 +0000 (16:55 +0000)]
typo: an nonce -> a nonce
kettenis [Sun, 26 Aug 2018 16:52:16 +0000 (16:52 +0000)]
Add plgpio(4), a driver for the ARM PrimeCell GPIO (PL061) peripheral.
ok jsg@, patrick@
schwarze [Sun, 26 Aug 2018 16:18:38 +0000 (16:18 +0000)]
Support nesting of elements with next-line scope.
For example, ksh93(1) needs this for .B\n.SM.
kettenis [Sun, 26 Aug 2018 14:12:47 +0000 (14:12 +0000)]
Add support for HiSilicon Hi3660 (Kirin960) and Hi3670 (Kirin970).
inoguchi [Sun, 26 Aug 2018 13:28:13 +0000 (13:28 +0000)]
Stop s_server if error occurs in regress appstest.sh
nicm [Sun, 26 Aug 2018 09:28:42 +0000 (09:28 +0000)]
Add q: format prefix to escape sh(1) special characters. Suggested by
someone ages ago and then more recently in GitHub issue 1449.
anton [Sun, 26 Aug 2018 08:12:09 +0000 (08:12 +0000)]
Add regress for kcov. It will only run if /dev/kcov can be opened successfully.
visa [Sun, 26 Aug 2018 06:50:30 +0000 (06:50 +0000)]
Add test cases for private versus non-private futexes.
While here, fix timeout handling in futex_twait(), and fix the return
value of functions awakener() and signaled().
OK mpi@
jmatthew [Sun, 26 Aug 2018 06:40:03 +0000 (06:40 +0000)]
return -1 from the interrupt handler if we didn't find any work to do
deraadt [Sat, 25 Aug 2018 22:54:09 +0000 (22:54 +0000)]
sync
kettenis [Sat, 25 Aug 2018 20:45:28 +0000 (20:45 +0000)]
Add code to print the characteristics of the caches that can be discovered
through the CLIDR_EL1 register.
ok patrick@
kettenis [Sat, 25 Aug 2018 20:43:39 +0000 (20:43 +0000)]
Add GPT support. Mostly copied from amd64.
ok krw@
jcs [Sat, 25 Aug 2018 20:31:31 +0000 (20:31 +0000)]
Add umt(4) for USB Windows Precision Touchpad devices
Based on imt(4)
Rename HIDMT_INPUT_MODE_MT to HIDMT_INPUT_MODE_MT_TOUCHPAD
ok deraadt
gilles [Sat, 25 Aug 2018 19:05:23 +0000 (19:05 +0000)]
remove unused header
from Freddy Dissaux
kettenis [Sat, 25 Aug 2018 18:42:43 +0000 (18:42 +0000)]
Use __HAVE_ACPI to decide whether ACPI support should be considered.
ok deraadt@, krw@, jca@
jcs [Sat, 25 Aug 2018 18:32:05 +0000 (18:32 +0000)]
Move HID->bus constant conversion for HID report types out of ihidev
into hidmt.
The HID code uses hid_feature, hid_input, and hid_output constants
to refer to report types internally that then need to be converted
to their bus-level counterparts before actually getting sent out (so
hid_feature becomes UHID_FEATURE_REPORT for USB,
I2C_HID_REPORT_TYPE_FEATURE for i2c).
This conversion was hard-coded in ihidev but ihidev_[gs]et_report
should assume the type passed is already an i2c-level define, not a
hid one. This is how uhidev does it.
Add a conversion routine callback that any hidmt callers need to set
so that hidmt can convert hid constants to the bus-level versions.
Also add a similar conversion function to uhidev.
ok deraadt
kettenis [Sat, 25 Aug 2018 17:39:15 +0000 (17:39 +0000)]
regen
kettenis [Sat, 25 Aug 2018 17:38:28 +0000 (17:38 +0000)]
Audio as found on an "Oland" Radeon card. Naming is a bit arbitrary, but
this one is present on several GCN gen 1 cards that have names that start
in the HD 7700 range.
kettenis [Sat, 25 Aug 2018 17:24:22 +0000 (17:24 +0000)]
Define __HAVE_ACPI.
ok deraadt@, krw@, jca@
mestre [Sat, 25 Aug 2018 17:09:40 +0000 (17:09 +0000)]
fix misplaced parenthesis inside an if-clause. already fixed in FreeBSD in rev
295608.
OK jca@
mestre [Sat, 25 Aug 2018 17:07:20 +0000 (17:07 +0000)]
fix misplaced parenthesis inside an if-clause. already fixed in NetBSD in rev
1.13.
OK stsp@ jca@ claudio@
schwarze [Sat, 25 Aug 2018 16:46:28 +0000 (16:46 +0000)]
oops, hook up the tests for the roff(7) .char request
schwarze [Sat, 25 Aug 2018 16:43:52 +0000 (16:43 +0000)]
Rudimentary implementation of the roff(7) .char (output glyph
definition) request, used for example by groff_hdtbl(7).
This simplistic implementation may interact incorrectly
with the .tr (input character translation) request.
But come on, you are not only using .char *and* .tr, but you do so
with respect to the same character in the same manual page?
kettenis [Sat, 25 Aug 2018 16:09:29 +0000 (16:09 +0000)]
Fix printing of ioapic remapping messages; avoid printing duplicate info.
ok deraadt@
anton [Sat, 25 Aug 2018 15:41:05 +0000 (15:41 +0000)]
process -> thread
anton [Sat, 25 Aug 2018 15:38:07 +0000 (15:38 +0000)]
Change kcov semantics, kernel code coverage tracing is now enabled on a per
thread basis instead of process. The decision to enable on process made
development easier initially but could lead to non-deterministic results for
processes with more than one thread. This behavior matches the implementation
found on both Linux and FreeBSD.
With help and ok mpi@ visa@
anton [Sat, 25 Aug 2018 15:18:34 +0000 (15:18 +0000)]
markup flag arguments; ok jmc@ schwarze@
schwarze [Sat, 25 Aug 2018 12:28:52 +0000 (12:28 +0000)]
If man(7) next-line scope is open and the line ends with \c,
the scope remains open. Needed for example for groff_man(7).
kettenis [Sat, 25 Aug 2018 12:23:45 +0000 (12:23 +0000)]
The current rasops cursor implementation simply inverts the appropriate
framebuffer pixels by doing an XOR with an all-ones bit pattern. This
means the code has to read from the framebuffer which can be very slow.
Add an implementation that simply redraws the character covered by the
cursor with the foreground and background color swapped. While this
doesn't necessarily have the same visual result, most people probably
won't notice the difference (let's see). Use this implementation when
the RI_WRONLY or the RI_VCONS flags are set.
ok fcambus@
kettenis [Sat, 25 Aug 2018 10:41:38 +0000 (10:41 +0000)]
Insert new child nodes at the end.
ok patrick@
tb [Sat, 25 Aug 2018 10:07:16 +0000 (10:07 +0000)]
Also run DSA tests with the PEM encoded public key.
kettenis [Sat, 25 Aug 2018 09:39:20 +0000 (09:39 +0000)]
Match ACPI devices based on _CID if no match for _HID is found.
ok mpi@
deraadt [Sat, 25 Aug 2018 05:29:28 +0000 (05:29 +0000)]
As Intel(TM) cpus are discovered to have more bugs, more workaround MSRs
are added. Presence of such MSRs is indicated with a feature flag, which
we probe and print at startup for each AP CPU. EFI screen scrolling hasn't
gotten faster (yet) and 9600 baud serial console is still the same speed
as 1980. Final piece of the puzzle is machines have more cpus, providing
more opportunity for screen scrolling and serial fifo's to fill up. The
BSP cpu is watching the AP cpus probe and print, but increased latency
causes it to exceed a timeout and print "cpuXX: failed messages".
Crank that timeout.
discussed with kettenis, ok guenther
ccardenas [Sat, 25 Aug 2018 04:16:09 +0000 (04:16 +0000)]
Rework disks to have pluggable backends.
This is prep work for adding qcow2 image support.
From Ori Bernstein. Many thanks!
Tested by many.
OK ccardenas@
yasuoka [Sat, 25 Aug 2018 00:12:14 +0000 (00:12 +0000)]
Don't treat UnicodeChar == 0 as a keyboard input. The same fix was
done on amd64 already. Original diff from Frank Groeneveld
ok tb patrick
schwarze [Fri, 24 Aug 2018 23:01:51 +0000 (23:01 +0000)]
Fix dates that got broken by committing from one day to another
due to timezone differences.
jmc [Fri, 24 Aug 2018 22:56:45 +0000 (22:56 +0000)]
update usage for pkcs8;
ok tb
schwarze [Fri, 24 Aug 2018 22:56:37 +0000 (22:56 +0000)]
Rudimentary implementation of the roff(7) .while request.
Needed for example by groff_hdtbl(7).
There are two limitations:
It does not support nested .while requests yet,
and each .while loop must start and end in the same scope.
The roff_parseln() return codes are now more flexible
and allow OR'ing options.
jmc [Fri, 24 Aug 2018 21:29:51 +0000 (21:29 +0000)]
tweak previous;
sthen [Fri, 24 Aug 2018 21:29:45 +0000 (21:29 +0000)]
sync libcrypto relink file
tb [Fri, 24 Aug 2018 20:34:37 +0000 (20:34 +0000)]
sync
tb [Fri, 24 Aug 2018 20:33:17 +0000 (20:33 +0000)]
crank majors after symbol addition/modification/removal
tb [Fri, 24 Aug 2018 20:31:32 +0000 (20:31 +0000)]
Adjust documentation for SSL_copy_session_id()
ok jsing