reyk [Wed, 29 Aug 2018 07:50:16 +0000 (07:50 +0000)]
Add set-case-replaced to toggle case-preserving replace on or off.
By default, replacing "foo" with "bar" turns "FOO" into "BAR".
With case-replace turned off, "FOO" will turn into "bar".
OK florian@ tb@
anton [Wed, 29 Aug 2018 06:04:46 +0000 (06:04 +0000)]
Initialize device numbers for newly allocated ptys. Prevents a panic caused by
the following: a new pty is allocated in which the kernel console output is
redirected to, poll(2):ing from /dev/console at this point would be delegated to
the device with the major number taken from the pty due to the earlier
redirection. Since the pty does not have its correct device major assigned, the
wrong device ends up being used.
ok deraadt@ millert@
pd [Wed, 29 Aug 2018 04:51:12 +0000 (04:51 +0000)]
First pass in bringing i386 in sync with amd64. This does not yet work, but is
being committed now so we can work on the rest in-tree.
ok mlarkin@
dlg [Wed, 29 Aug 2018 02:03:12 +0000 (02:03 +0000)]
move the todr chip handle into a prtc_softc structure
no realy change, this avoid having to allocate the todr struct in attach
ok deraadt@
tb [Tue, 28 Aug 2018 18:28:30 +0000 (18:28 +0000)]
Run Wycheproof AES-CMAC testvectors against libcrypto.
tb [Tue, 28 Aug 2018 18:25:33 +0000 (18:25 +0000)]
remove some extra parens and fix some other formatting issues
pointed out by gofmt (thanks anton)
job [Tue, 28 Aug 2018 17:52:16 +0000 (17:52 +0000)]
Unclutter bgpd.conf example config file
We're aiming to work towards an examples/bgpd.conf file that is a good starting
point for real world deployments rather than a showcase of all capabilities
bgpd(8) has.
OK deraadt@ claudio@
tb [Tue, 28 Aug 2018 17:47:29 +0000 (17:47 +0000)]
Remove extra "and" in "These functions and have been available"
tb [Tue, 28 Aug 2018 17:45:50 +0000 (17:45 +0000)]
zap trailing whitespace
mpi [Tue, 28 Aug 2018 15:17:56 +0000 (15:17 +0000)]
Display per-TDB counters in verbose mode.
ok sthen@
mpi [Tue, 28 Aug 2018 15:15:02 +0000 (15:15 +0000)]
Add per-TDB counters and a new SADB extension to export them to
userland.
Inputs from markus@, ok sthen@
cheloha [Tue, 28 Aug 2018 14:30:48 +0000 (14:30 +0000)]
Drop SSLv2, SSLv3 support.
No need to check for SSLv2/3 sessions when printing the tally mark.
Also do SSLv23_client_method -> TLS_client_method.
ok jsing@
krw [Tue, 28 Aug 2018 12:40:54 +0000 (12:40 +0000)]
Tweak messages emitted by editor_resize() so "Partition x shrunk ..."
is only printed if the disklabel gets modified. Also, include the new
size.
On failure just report "Amount too big.".
mestre [Tue, 28 Aug 2018 12:25:53 +0000 (12:25 +0000)]
fix misplaced parenthesis inside if-clause. it's harmless and the only issue is
showing an unknown error (since it's not defined) during fatal(), if it ever
an error occurs inside that condition.
OK deraadt@ markus@ djm@
mestre [Tue, 28 Aug 2018 12:17:45 +0000 (12:17 +0000)]
fix build with DEBUG_PK enabled
OK dtucker@
jsg [Tue, 28 Aug 2018 09:35:35 +0000 (09:35 +0000)]
avoid uninitialised variable use
ok patrick@ kettenis@
jsg [Tue, 28 Aug 2018 09:33:18 +0000 (09:33 +0000)]
avoid uninitialised variable use in an error path
ok kettenis@
beck [Tue, 28 Aug 2018 02:51:55 +0000 (02:51 +0000)]
Fix stat of path components - this was breaking chrome - because the
final directory in a name unveil was not being added with UNVEIL_INSPECT
if it was not already unveiled. Now passes just added regress test for
this case
beck [Tue, 28 Aug 2018 02:49:47 +0000 (02:49 +0000)]
Add regress test of stat all the way to a nonexistant terminal
cheloha [Tue, 28 Aug 2018 02:14:22 +0000 (02:14 +0000)]
Check for SSL_write(3) error.
jsing@ notes that this is not a complete solution, as we don't
account for retries or partial writes, but that this is a step
in a right direction.
May want to revisit this later to provide a complete solution.
ok jsing@
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?