openbsd
5 years agoextend the resolver interface to delegate res_query() calls to the lka.
eric [Thu, 13 Jun 2019 11:45:34 +0000 (11:45 +0000)]
extend the resolver interface to delegate res_query() calls to the lka.

ok gilles@ sunil@

5 years agoIn arp_rtrequest and nd6_rtrequest return early if the RTF_MPLS flag is
claudio [Thu, 13 Jun 2019 08:15:26 +0000 (08:15 +0000)]
In arp_rtrequest and nd6_rtrequest return early if the RTF_MPLS flag is
set. These mpls routes use the rt_llinfo structure to store the MPLS label
and would confuse the arp and nd6 code.
OK bluhm@ anton@

Reported-by: syzbot+927e93a362f3ae33dd9c@syzkaller.appspotmail.com
5 years agoCopy the user provided sockaddr into a normalized sockaddr in rtrequest()
claudio [Thu, 13 Jun 2019 08:12:10 +0000 (08:12 +0000)]
Copy the user provided sockaddr into a normalized sockaddr in rtrequest()
before adding it to the routing table. The rtable code is doing memcmp()
of those rt_dest sockaddrs so it is important that they are stored in a
canonical form. To do this struct domain is extended to include the
sockaddr size for this address family.
OK bluhm@ anton@

Reported-by: syzbot+10fe9cd8d0211c562ead@syzkaller.appspotmail.com
5 years agoAdd more options to pkcs12 and smime in appstest.sh
inoguchi [Thu, 13 Jun 2019 08:02:35 +0000 (08:02 +0000)]
Add more options to pkcs12 and smime in appstest.sh

5 years agovmm(4): Pass through CPUID function/leaf 0x16 for processor speed.
mlarkin [Thu, 13 Jun 2019 06:57:17 +0000 (06:57 +0000)]
vmm(4): Pass through CPUID function/leaf 0x16 for processor speed.

ok deraadt, pd, phessler

5 years agothe rx drops field is 8 bits (and a 24 bit flow tag), not 32 bits.
dlg [Thu, 13 Jun 2019 00:37:04 +0000 (00:37 +0000)]
the rx drops field is 8 bits (and a 24 bit flow tag), not 32 bits.

sympathy from jmatthew@

5 years agoThe output of line info in the line.log file now contains the
lum [Wed, 12 Jun 2019 18:21:07 +0000 (18:21 +0000)]
The output of line info in the line.log file now contains the
character the cursor is over. This corresponds to the 'a' character
before the '|' character below:

>0x78898a94340 b^0x7889632b320 f.0x7889632b340 3 3       a|abc

Previously it would not have been shown:

>0x78898a94340 b^0x7889632b320 f.0x7889632b340 3 3       |abc

Also, a fake new-line character is shown with '-' before the '|' char.

>0x78898a94340 b^0x7889632b320 f.0x7889632b340 3 3       -|

5 years agochange "ssl" to "tls" in various identifiers.
eric [Wed, 12 Jun 2019 17:42:53 +0000 (17:42 +0000)]
change "ssl" to "tls" in various identifiers.
no functional change.

ok gilles@

5 years agotweak previous;
jmc [Wed, 12 Jun 2019 11:36:32 +0000 (11:36 +0000)]
tweak previous;

5 years agoHostname->HostName cleanup; from lauri tirkkonen
jmc [Wed, 12 Jun 2019 11:31:50 +0000 (11:31 +0000)]
Hostname->HostName cleanup; from lauri tirkkonen
ok dtucker

5 years agoSet malloc_options in global scope with an initializer.
bluhm [Wed, 12 Jun 2019 11:31:36 +0000 (11:31 +0000)]
Set malloc_options in global scope with an initializer.
recommended by otto@

5 years agothese were moved to key.[ch] in previous commit
gilles [Wed, 12 Jun 2019 11:10:20 +0000 (11:10 +0000)]
these were moved to key.[ch] in previous commit

5 years agouse acme-client to sign certificated with ecdsa keys
gilles [Wed, 12 Jun 2019 11:09:25 +0000 (11:09 +0000)]
use acme-client to sign certificated with ecdsa keys

diff from Renaud Allard <renaud@allard.it>, ok to get in from florian@

5 years agoadd missing backlinks to ssl(3)
schwarze [Wed, 12 Jun 2019 09:36:30 +0000 (09:36 +0000)]
add missing backlinks to ssl(3)

5 years agoDo not use $TMUX to find the session because for windows in multiple
nicm [Wed, 12 Jun 2019 09:10:29 +0000 (09:10 +0000)]
Do not use $TMUX to find the session because for windows in multiple
sessions it is wrong as often as it is right, and for windows in one
session it is pointless. Instead check TMUX_PANE to find the pane and
look for the MRU session as usual. GitHub issue 1793.

5 years agoList all 17 SSL pages that were missing.
schwarze [Wed, 12 Jun 2019 09:03:43 +0000 (09:03 +0000)]
List all 17 SSL pages that were missing.
Split some excessively long lists into useful sub-categories.
Add a new, very short subsection "Obsolete functions" at the end.
OK tb@ jmc@

5 years agoPass target on to new commands with if -F.
nicm [Wed, 12 Jun 2019 08:47:07 +0000 (08:47 +0000)]
Pass target on to new commands with if -F.

5 years agowhen "login" is not specified, "root" is used;
schwarze [Wed, 12 Jun 2019 08:29:17 +0000 (08:29 +0000)]
when "login" is not specified, "root" is used;
omission reported by Nan Xiao <xiaonan830818 at gmail dot com> on misc@

5 years agoDo not always resize the window back to its original size after applying
nicm [Wed, 12 Jun 2019 08:08:33 +0000 (08:08 +0000)]
Do not always resize the window back to its original size after applying
a layout, let the normal window resize process do it. This means windows
are not resized at all if window-size is manual, and are not resized
multiple times if later attached to a different size terminal.

5 years agoA note about log.c.
lum [Wed, 12 Jun 2019 06:01:26 +0000 (06:01 +0000)]
A note about log.c.

5 years agoderaadt noticed some inconsistency in the way we denote the "Hostname" and
jmc [Wed, 12 Jun 2019 05:53:21 +0000 (05:53 +0000)]
deraadt noticed some inconsistency in the way we denote the "Hostname" and
"X11UseLocalhost" keywords; this makes things consistent (effectively reversing
my commit of yesterday);

ok deraadt markus djm

5 years agoFix init of syslog for childs and teach dns process about synced state.
otto [Wed, 12 Jun 2019 05:04:45 +0000 (05:04 +0000)]
Fix init of syslog for childs and teach dns process about synced state.
ok benno@

5 years agoa few cleanups and simplifications possible now that static pw is gone.
tedu [Wed, 12 Jun 2019 02:50:29 +0000 (02:50 +0000)]
a few cleanups and simplifications possible now that static pw is gone.
noted by martijn. ok martijn.

5 years agoSet interrupt moderation on the completion queue for around 10000
jmatthew [Wed, 12 Jun 2019 01:38:30 +0000 (01:38 +0000)]
Set interrupt moderation on the completion queue for around 10000
interrupts per second, or 90% of the cq size.

ok dlg@

5 years agoDisable junking with malloc options. If set, the test hangs on low
bluhm [Tue, 11 Jun 2019 22:16:13 +0000 (22:16 +0000)]
Disable junking with malloc options.  If set, the test hangs on low
memory arm64 machines.
found by patrick@; OK otto@

5 years agoFix typo which resulted in a segfault in ebgp multihop setups.
florian [Tue, 11 Jun 2019 19:43:56 +0000 (19:43 +0000)]
Fix typo which resulted in a segfault in ebgp multihop setups.
OK claudio

5 years agofix bogus cross references: there is no ELF(3) manual page;
schwarze [Tue, 11 Jun 2019 18:38:46 +0000 (18:38 +0000)]
fix bogus cross references: there is no ELF(3) manual page;
pointed out by naddy@

5 years agodo not use plain-text ELF(3) to reference page titles, use .Nm or .Xr.:
schwarze [Tue, 11 Jun 2019 18:30:31 +0000 (18:30 +0000)]
do not use plain-text ELF(3) to reference page titles, use .Nm or .Xr.:
issue noticed by naddy@ when he inspected a bug report from aalm@;
while here, use .At where appropriate;
OK naddy@ jmc@

5 years agomake things slightly less insane:
espie [Tue, 11 Jun 2019 18:14:23 +0000 (18:14 +0000)]
make things slightly less insane:
- actually use the ERRORS framework for REGRESS_LOG
- put it at end of file, as best working (years of practice on bsd.port.mk)
- actually use .SILENT
- fix REGRESS_IGNORE_FAIL. Don't put a - in front of lines, but just
don't error out as false on FAILED tests.
This finally allows ^C to actually interrupt a testsuite.
- add one missing .PHONY (quite a few more for later)

okay bluhm@

5 years agoDo not access a NULL pointer if a table contains a horizontal line
schwarze [Tue, 11 Jun 2019 15:40:41 +0000 (15:40 +0000)]
Do not access a NULL pointer if a table contains a horizontal line
next to a table line having fewer columns than the table as a whole.
Bug found by Stephen Gregoratto <dev at sgregoratto dot me>
with aerc-config(5).

5 years agoRemove unused scheduler related definitions.
mpi [Tue, 11 Jun 2019 15:23:41 +0000 (15:23 +0000)]
Remove unused scheduler related definitions.

ok visa@

5 years agoregen
jcs [Tue, 11 Jun 2019 14:49:17 +0000 (14:49 +0000)]
regen

5 years agomake 10 wsmouse devices
jcs [Tue, 11 Jun 2019 14:48:56 +0000 (14:48 +0000)]
make 10 wsmouse devices

for anything other than a regular old mouse, X needs to be able to
directly talk to the device and newer machines can have all kinds of
touchscreens, pen devices, touchpads, etc.

ok deraadt

5 years agoconsistent lettering for "HostName" keyword; from lauri tirkkonen
jmc [Tue, 11 Jun 2019 13:39:40 +0000 (13:39 +0000)]
consistent lettering for "HostName" keyword; from lauri tirkkonen

5 years agoDo not resize panes unless they are in an attached, active window. From
nicm [Tue, 11 Jun 2019 13:09:00 +0000 (13:09 +0000)]
Do not resize panes unless they are in an attached, active window. From
Morten M Neergaard in GitHub issue 1782.

5 years agodrm: don't block fb changes for async plane updates
jsg [Tue, 11 Jun 2019 11:56:25 +0000 (11:56 +0000)]
drm: don't block fb changes for async plane updates

From Helen Koike
fbb7e114e6e690c46f170dedd6fd2fb22f241519 in linux 4.19.y/4.19.50
89a4aac0ab0e6f5eea10d7bf4869dd15c3de2cd4 in mainline linux

5 years agodrm/i915: Maintain consistent documentation subsection ordering
jsg [Tue, 11 Jun 2019 11:52:52 +0000 (11:52 +0000)]
drm/i915: Maintain consistent documentation subsection ordering

From Jonathan Corbet
6600ec2600d63868efa8c6641375451677469b24 in linux 4.19.y/4.19.50
551bd3368a7b3cfef01edaade8970948d178d40a in mainline linux

5 years agodrm/i915/fbc: disable framebuffer compression on GeminiLake
jsg [Tue, 11 Jun 2019 11:49:46 +0000 (11:49 +0000)]
drm/i915/fbc: disable framebuffer compression on GeminiLake

From Daniel Drake
360e00e290a355219425b5ea0ca62d9df3261fa1 in linux 4.19.y/4.19.50
396dd8143bdd94bd1c358a228a631c8c895a1126 in mainline linux

5 years agodrm/amdgpu: remove ATPX_DGPU_REQ_POWER_FOR_DISPLAYS check when hotplug-in
jsg [Tue, 11 Jun 2019 11:47:24 +0000 (11:47 +0000)]
drm/amdgpu: remove ATPX_DGPU_REQ_POWER_FOR_DISPLAYS check when hotplug-in

From Aaron Liu
f3dcc88d531fd21af0c4261896eb23b455499366 in linux 4.19.y/4.19.50
bdb1ccb080dafc1b4224873a5b759ff85a7d1c10 in mainline linux

5 years agodrm/radeon: prefer lower reference dividers
jsg [Tue, 11 Jun 2019 11:45:01 +0000 (11:45 +0000)]
drm/radeon: prefer lower reference dividers

From Christian Koenig
84c82ab8f133f1c1e27f6b1bafe3f7d8835acc4c in linux 4.19.y/4.19.50
2e26ccb119bde03584be53406bbd22e711b0d6e6 in mainline linux

5 years agodrm/amdgpu/psp: move psp version specific function pointers to early_init
jsg [Tue, 11 Jun 2019 11:42:58 +0000 (11:42 +0000)]
drm/amdgpu/psp: move psp version specific function pointers to early_init

From Alex Deucher
748a97ec6c1588e3a49e09fe9ca56dcdb7f976b5 in linux 4.19.y/4.19.50
9d6fea5744d6798353f37ac42a8a653a2607ca69 in mainline linux

5 years agodrm: add non-desktop quirks to Sensics and OSVR headsets.
jsg [Tue, 11 Jun 2019 11:41:02 +0000 (11:41 +0000)]
drm: add non-desktop quirks to Sensics and OSVR headsets.

From Ryan Pavlik
98a8cb0282ab22d0533de34412f2118bf21147e4 in linux 4.19.y/4.19.50
29054230f3e11ea818eccfa7bb4e4b3e89544164 in mainline linux

5 years agodrm: add non-desktop quirk for Valve HMDs
jsg [Tue, 11 Jun 2019 11:37:45 +0000 (11:37 +0000)]
drm: add non-desktop quirk for Valve HMDs

From Andres Rodriguez
490290b0415f069eb156db50d165ca6a407d47bc in linux 4.19.y/4.19.50
30d62d4453e49f85dd17b2ba60bbb68b6593dba0 in mainline linux

5 years agoUse km_alloc() instead of mallocarray() when allocating ttm dma segments
jsg [Tue, 11 Jun 2019 06:46:53 +0000 (06:46 +0000)]
Use km_alloc() instead of mallocarray() when allocating ttm dma segments
to avoid running out of kmem space.  Suggested by and ok kettenis@

5 years agopass what pci_intr_established returns to intr_barrier
dlg [Tue, 11 Jun 2019 06:28:09 +0000 (06:28 +0000)]
pass what pci_intr_established returns to intr_barrier

passing a pointer to a pci_intr_handle_t doesnt work too well on
sparc64, where it faults in the guts of the scheduler. dunno why
amd64 is fine.

ok jmatthew@

5 years agoif ifiq_input says there's too much pressure, tell the rxr we're livelocked
dlg [Tue, 11 Jun 2019 06:17:23 +0000 (06:17 +0000)]
if ifiq_input says there's too much pressure, tell the rxr we're livelocked

ok jmatthew@

5 years agoImplement SHA-2 (RFC7860) support for authentication.
martijn [Tue, 11 Jun 2019 05:36:32 +0000 (05:36 +0000)]
Implement SHA-2 (RFC7860) support for authentication.

OK claudio@, gerhard@

5 years agoThe digestlength is not always 12 bytes. Make this value variable in
martijn [Tue, 11 Jun 2019 05:33:01 +0000 (05:33 +0000)]
The digestlength is not always 12 bytes. Make this value variable in
preparation for SHA-2 support.

OK claudio@, gerhard@

5 years agoIntroduce conf_clear_redist_list() (from ospfd) and use it in all 3 procs.
remi [Tue, 11 Jun 2019 05:00:09 +0000 (05:00 +0000)]
Introduce conf_clear_redist_list() (from ospfd) and use it in all 3 procs.

ok benno@

5 years agobump up the ring sizes for dlg@
jmatthew [Tue, 11 Jun 2019 03:55:16 +0000 (03:55 +0000)]
bump up the ring sizes for dlg@

5 years agorecords a flowid in the mbuf if the rx cqe provides an rx hash value.
dlg [Tue, 11 Jun 2019 03:22:29 +0000 (03:22 +0000)]
records a flowid in the mbuf if the rx cqe provides an rx hash value.

jmatthew@ says we need to configure the hw to populate that, but i
can put this in now in preparation for it.

5 years agoadd mcx now that pyro and sparc64 can do msi-x
dlg [Tue, 11 Jun 2019 01:35:55 +0000 (01:35 +0000)]
add mcx now that pyro and sparc64 can do msi-x

ok jmatthew@

5 years agoimplement msi-x support on sparc64.
dlg [Tue, 11 Jun 2019 00:45:31 +0000 (00:45 +0000)]
implement msi-x support on sparc64.

this is mostly based on the stuff kettenis did on arm64 recently.
msix support is basically the same as msi support from the host
side, you just have to tell the actual device about the msi vectors
differently.

the most complicated part of this is storing the requested msix
vector between the call to pci_intr_map_msix and pci_intr_establish.
the pci_intr_handle_t for storing state between those is a scalar
type, so we reassign some bits in that int for use storing the type
of int (intx, msi, or msix) and the vector.

i took the low 8 bits for storing the vector, which gives us a max
of 256 values. technically msix supports up to 2048 vectors, but
pyro only supports 256 in total, so i don't think we're going to
miss out on much. vpci may support more, but we'll cross that bridge
when we get to it.

i tested pyro(4) with mcx(4).
vpci was tested by kettenis@

ok kettenis@

5 years agouse m_microtime to get the packet rx time it might be available.
dlg [Mon, 10 Jun 2019 23:49:45 +0000 (23:49 +0000)]
use m_microtime to get the packet rx time it might be available.

5 years agouse m_microtime instead of microtime for SO_TIMESTAMP socketopt handling
dlg [Mon, 10 Jun 2019 23:48:21 +0000 (23:48 +0000)]
use m_microtime instead of microtime for SO_TIMESTAMP socketopt handling

drivers can set ph_timestamp when packets are received by the
hardware, which should be more accurate and cheaper than getting
the clock when the packet is queued on the socket.

5 years agoadd m_microtime for getting the wall clock time associated with a packet
dlg [Mon, 10 Jun 2019 23:45:19 +0000 (23:45 +0000)]
add m_microtime for getting the wall clock time associated with a packet

if the packet has the M_TIMESTAMP csum_flag, ph_timestamp is added
to the boottime clock, otherwise it just uses microtime().

5 years agoNSEC_TO_TIMEVAL turns nanoseconds in a uint64_t into a struct timeval
dlg [Mon, 10 Jun 2019 23:26:29 +0000 (23:26 +0000)]
NSEC_TO_TIMEVAL turns nanoseconds in a uint64_t into a struct timeval

add NSEC_TO_TIMESPEC while here

ok cheloha@

5 years agosupport hardware timestamping for received packets.
dlg [Mon, 10 Jun 2019 23:05:52 +0000 (23:05 +0000)]
support hardware timestamping for received packets.

the chip has a cycle counter or something, and the value of the
counter when the packet is sent to the host is stored in the
completion queue entry.

the driver periodically checks the cycle counter and records the
time at that point, so the rx path can do some maths to figure out
what the clock time is for the cycle counter. if the driver is
calibrated with the chips counter, the rx packets are timestamped.

this is based on the changes made to freebsd, but with some
simplifications.

5 years agoadd M_TIMESTAMP as a csum_flags option to say ph_timestamp is set
dlg [Mon, 10 Jun 2019 22:59:00 +0000 (22:59 +0000)]
add M_TIMESTAMP as a csum_flags option to say ph_timestamp is set

this is so hardware that supports timestamping can set the time and
say so for things like bpf and the SO_TIMESTAMP socket option to use.

the intention is that ph_timestamp will store the nanosecond since
the system booted, which is in line with how fq_codel (the only
user of the field at the moment) uses it.

5 years agodon't allow userland to change if_type.
dlg [Mon, 10 Jun 2019 21:55:16 +0000 (21:55 +0000)]
don't allow userland to change if_type.

if_type is now immutable in tun(4) and tap(4)

ok claudio@ mpi@

5 years agoFix not checking correct fprintf return value.
lum [Mon, 10 Jun 2019 18:55:15 +0000 (18:55 +0000)]
Fix not checking correct fprintf return value.

5 years agouse getpwuid_r to avoid problems with hidden static storage.
tedu [Mon, 10 Jun 2019 18:11:27 +0000 (18:11 +0000)]
use getpwuid_r to avoid problems with hidden static storage.
ok deraadt lteo martijn

5 years agoAdd 'undo' logging (same output as undo-list command). Also, add
lum [Mon, 10 Jun 2019 16:48:59 +0000 (16:48 +0000)]
Add 'undo' logging (same output as undo-list command). Also, add
'undo' data to a separate file from line logging.

5 years agoRevised version of 'ifconfig mode' command fix.
stsp [Mon, 10 Jun 2019 16:33:02 +0000 (16:33 +0000)]
Revised version of 'ifconfig mode' command fix.

The 'mode' command is supposed to force a wireless interface into 11a/b/g/n
media mode. This stopped working some time ago, probably during my work on
background scanning. Problem spotted by mlarkin@ who noticed that interfaces
were using 11g mode while forced to 11b mode.

ok phessler, jmatthew  (earlier version)
relentless testing by krw@

5 years agoUse mallocarray(9) & put some free(9) sizes for M_IPMOPTS allocations.
mpi [Mon, 10 Jun 2019 16:32:51 +0000 (16:32 +0000)]
Use mallocarray(9) & put some free(9) sizes for M_IPMOPTS allocations.

ok semarie@, visa@

5 years agoUse PWAIT instead of PUSER in tsleep(9).
mpi [Mon, 10 Jun 2019 15:06:03 +0000 (15:06 +0000)]
Use PWAIT instead of PUSER in tsleep(9).

It doesn't matter in this case and reducing the number of PUSER makes
the scheduler logic easier to understand.

ok kettenis@, visa@

5 years agodelete references to ERR pages from SEE ALSO where such
schwarze [Mon, 10 Jun 2019 14:58:48 +0000 (14:58 +0000)]
delete references to ERR pages from SEE ALSO where such
references were already given below RETURN VALUES right above

5 years agoPrint proper ACPI version number.
kettenis [Mon, 10 Jun 2019 14:38:06 +0000 (14:38 +0000)]
Print proper ACPI version number.

ok mlarkin@

5 years agoAdd pkcs12 options and smime tests for appstest.sh
inoguchi [Mon, 10 Jun 2019 14:22:12 +0000 (14:22 +0000)]
Add pkcs12 options and smime tests for appstest.sh

- Add some options to pkcs12 test.
- Add smime tests for encrypt, decrypt and pk7out.

5 years agoadd links back to crypto(3) to function group entry pages
schwarze [Mon, 10 Jun 2019 09:49:48 +0000 (09:49 +0000)]
add links back to crypto(3) to function group entry pages
and to isolated obsolete pages;
OK bcook@ jmc@

5 years agoAllow mg to log its internal status to a file. At the moment it only
lum [Mon, 10 Jun 2019 06:52:44 +0000 (06:52 +0000)]
Allow mg to log its internal status to a file. At the moment it only
logs line information like front and back pointers in the linked list,
how many characters are used and where the cursor is placed in the
file.

With this diff logging is not switched on by default and has to
compiled into mg.  -DMGLOG has to be added to the Makefile:

CFLAGS+=-Wall -DREGEX -DMGLOG

And the comment character removed from:

#SRCS+=  log.c

ok bcallah@

5 years agoless macro;
jmc [Mon, 10 Jun 2019 06:07:15 +0000 (06:07 +0000)]
less macro;

5 years agodocument that area can take a number as well as an id
dlg [Mon, 10 Jun 2019 05:11:03 +0000 (05:11 +0000)]
document that area can take a number as well as an id

reminded by and ok remi@

5 years agodrm/lease: Make sure implicit planes are leased
jsg [Mon, 10 Jun 2019 04:40:13 +0000 (04:40 +0000)]
drm/lease: Make sure implicit planes are leased

From Daniel Vetter
390a0fd31b02f2f7086af2f3bdb8ae576b9a4b84 in linux 4.19.y/4.19.49
204f640da6914844b3270b41b29c84f6e3b74083 in mainline linux

5 years agoAvoid changing resource limits in rucheck() by introducing a new state
visa [Mon, 10 Jun 2019 03:15:53 +0000 (03:15 +0000)]
Avoid changing resource limits in rucheck() by introducing a new state
variable that tracks when to send next SIGXCPU. This eases MP work and
prevents accidental alteration of shared resource limit structs.

OK mpi@ semarie@

5 years agomove solve_dependency up, so that pkg_create is happy again
espie [Sun, 9 Jun 2019 18:58:06 +0000 (18:58 +0000)]
move solve_dependency up, so that pkg_create is happy again
sorry

5 years agoAlways return EEXIST if an interface is already part of a bridge.
mpi [Sun, 9 Jun 2019 17:42:16 +0000 (17:42 +0000)]
Always return EEXIST if an interface is already part of a bridge.

5 years agoRemove code for non-Ethernet members, these are no longer supported.
mpi [Sun, 9 Jun 2019 17:40:34 +0000 (17:40 +0000)]
Remove code for non-Ethernet members, these are no longer supported.

From Eygene Ryabinkin.

5 years agoAdd a temporary workaround to make removal of giant files better
beck [Sun, 9 Jun 2019 13:53:38 +0000 (13:53 +0000)]
Add a temporary workaround to make removal of giant files better

mlarkin@ noticed we would freeze while removing enormous files because
of the amount of work done to invalidate buffers on unlink. This adds
a temporary workaround to ensure we give up the lock and yield while
doing this.

The longer term answer will be to move these buffers to another list
and not do the work here.

ok deraadt@

5 years agoLet drm(4) allocate memory without constraints if the hardware supports
kettenis [Sun, 9 Jun 2019 12:58:30 +0000 (12:58 +0000)]
Let drm(4) allocate memory without constraints if the hardware supports
64-bit DMA.  Should reduce the pressure on DMA-reachable memory, which is
important since there are still cases where the pagedaemon ends up being
triggered continuously if we run out of DMA-reachable memory but have
plenty of memory left.

ok jsg@

5 years agoAllow memory that isn't (32-bit) DMA reachable when loading a map that was
kettenis [Sun, 9 Jun 2019 12:52:04 +0000 (12:52 +0000)]
Allow memory that isn't (32-bit) DMA reachable when loading a map that was
created with the BUS_DMA_64BIT flag.

ok jsg@

5 years agosomehow, I thought I was recording destdir there, but I'm not.
espie [Sun, 9 Jun 2019 12:16:07 +0000 (12:16 +0000)]
somehow, I thought I was recording destdir there, but I'm not.

5 years agowith tags, we do look in deletesets
espie [Sun, 9 Jun 2019 09:36:24 +0000 (09:36 +0000)]
with tags, we do look in deletesets
add an extra indirection so we don't look where we actually can't
because the code doesn't exist.
(as seen by various people on somewhat buggy installs)

5 years agoIntroducing autmatic settime mode: if some preconditions are met
otto [Sun, 9 Jun 2019 08:40:54 +0000 (08:40 +0000)]
Introducing autmatic settime mode: if some preconditions are met
(booting, constraint(s) defined) set the time but only if the clock
should be moved forward by more than a minute, based on ntp replies
that satisfied the constraints. Tested by many; ok deraadt@

5 years agotook me a few to figure out how to reproduce THIS one specifically
espie [Sun, 9 Jun 2019 08:37:43 +0000 (08:37 +0000)]
took me a few to figure out how to reproduce THIS one specifically

5 years agoExiting alternate screen mode should restore cursor position and
nicm [Sun, 9 Jun 2019 06:50:24 +0000 (06:50 +0000)]
Exiting alternate screen mode should restore cursor position and
attributes even if already outside alternate screen mode. GitHub issue
1789.

5 years agoDo not try to parse command when unsetting, GitHub issue 1788.
nicm [Sat, 8 Jun 2019 21:48:29 +0000 (21:48 +0000)]
Do not try to parse command when unsetting, GitHub issue 1788.

5 years agoinclude mount_nfs on the amd64 ramdisk_cd, ok jca deraadt
sthen [Sat, 8 Jun 2019 17:10:57 +0000 (17:10 +0000)]
include mount_nfs on the amd64 ramdisk_cd, ok jca deraadt

5 years agogrow sparc64 miniroot a little
deraadt [Sat, 8 Jun 2019 15:49:20 +0000 (15:49 +0000)]
grow sparc64 miniroot a little

5 years agoremove pointless NOTES section header lines
schwarze [Sat, 8 Jun 2019 15:25:43 +0000 (15:25 +0000)]
remove pointless NOTES section header lines

5 years agoMissing macro, reported by Fabio Scotoni <fabio at esse dot ch>.
schwarze [Sat, 8 Jun 2019 14:48:53 +0000 (14:48 +0000)]
Missing macro, reported by Fabio Scotoni <fabio at esse dot ch>.
While here, also insert missing whitespace before punctuation.

5 years agoWhen establishing the mapping between ACPI device nodes and PCI devices,
kettenis [Sat, 8 Jun 2019 12:25:19 +0000 (12:25 +0000)]
When establishing the mapping between ACPI device nodes and PCI devices,
skip PCI host bridges and devices that aren't there.

ok patrick@

5 years agoDelete the display of the RSA_METHOD object
schwarze [Sat, 8 Jun 2019 10:40:51 +0000 (10:40 +0000)]
Delete the display of the RSA_METHOD object
which is now supposed to be opaque.
OK tb@

I checked that all the information contained in comments in the
display is available from the appropriate places in RSA_meth_new(3)
and RSA_set_flags(3).  Note that the comments regarding "mod_exp",
"init", and "finish" were half-misleading simplifications, anyway.

5 years agoremove unused variable
florian [Sat, 8 Jun 2019 10:38:03 +0000 (10:38 +0000)]
remove unused variable

5 years agodisambiguate memory extent conflicts for membars and rom addresses
dlg [Sat, 8 Jun 2019 10:27:02 +0000 (10:27 +0000)]
disambiguate memory extent conflicts for membars and rom addresses

there's some more work to do in this space, but this helps us start.

ok kettenis@

5 years agoIn rsa.h rev. 1.40, gilles@ provided several new RSA_METHOD accessors.
schwarze [Sat, 8 Jun 2019 09:53:15 +0000 (09:53 +0000)]
In rsa.h rev. 1.40, gilles@ provided several new RSA_METHOD accessors.
Update the documentation.
OK tb@ jmc@

5 years agodocument the RSA_FLAG_* constants for RSA_*_flags(3);
schwarze [Sat, 8 Jun 2019 09:51:40 +0000 (09:51 +0000)]
document the RSA_FLAG_* constants for RSA_*_flags(3);
OK tb@ jmc@

5 years ago Remove A and D flag, they are superfluous.
florian [Sat, 8 Jun 2019 07:52:55 +0000 (07:52 +0000)]
Remove A and D flag, they are superfluous.
    One could always use them on the command line and acme-client would do
    the right thing.

5 years agoUpdate Spleen kernel fonts to the latest released version, bringing
fcambus [Sat, 8 Jun 2019 07:44:07 +0000 (07:44 +0000)]
Update Spleen kernel fonts to the latest released version, bringing
the following improvements:

- Shift the middle bar of the upper case 'G' one pixel down in the 12x24
  version
- Shift lower case 'k' character right, for better alignment in the 12x24,
  16x32, and 32x64 versions
- Make upper case 'X' thicker in the 16x32 and 32x64 versions
- Make upper case 'V' thicker in the 32x64 version
- Make lower case 'g' character smoother in the 16x32 and 32x64 versions
- Add some artefacts on each side of the lower case 'i' characters

OK kettenis@, naddy@, deraadt@

5 years agoWhen loading intel microcode in the non-efi case, error if the file is
jsg [Sat, 8 Jun 2019 02:52:20 +0000 (02:52 +0000)]
When loading intel microcode in the non-efi case, error if the file is
larger than 256KB not 128KB to cope with the 06-8e-09 microcode which is
currently 193KB.

Reported and tested by Paul de Weerd.  Matches a diff from claudio@