nicm [Wed, 31 May 2017 08:43:44 +0000 (08:43 +0000)]
Look for setrgbf and setrgbb terminfo extensions for RGB colour. This is
the most reasonable of the various (some bizarre) suggestions for
capabilities.
yasuoka [Wed, 31 May 2017 08:40:32 +0000 (08:40 +0000)]
Add serial console support for efiboot.
stsp [Wed, 31 May 2017 08:33:11 +0000 (08:33 +0000)]
Add missing function prototype for iwm_rx_bmiss().
tedu [Wed, 31 May 2017 08:30:22 +0000 (08:30 +0000)]
add a tiny, to be improved, man page for utf8 encoding.
ok stsp
yasuoka [Wed, 31 May 2017 08:23:33 +0000 (08:23 +0000)]
Disable "machine boot" and "machine comaddr" from efiboot.
stsp [Wed, 31 May 2017 08:14:52 +0000 (08:14 +0000)]
Implement support for iwm(4) firmware's missed beacon notification.
Requested by deraadt@
ok mpi@
espie [Wed, 31 May 2017 08:12:27 +0000 (08:12 +0000)]
document COMPILER, this is getting to be clean enough to be documentable
krw [Wed, 31 May 2017 08:10:24 +0000 (08:10 +0000)]
Optimize virtio_enqueue_trim() a bit by nuking unneeded
re-initializations of statically set fields. Move a common
chunk out of both clauses of if/else.
No intentional functional change.
ok sf@
markus [Wed, 31 May 2017 08:09:45 +0000 (08:09 +0000)]
clear session keys from memory; ok djm@
tb [Wed, 31 May 2017 08:02:56 +0000 (08:02 +0000)]
whitespace nit
tb [Wed, 31 May 2017 07:55:29 +0000 (07:55 +0000)]
Change cp -pR to pax copy mode with -k when copying /etc/skel. This way
we keep existing files in the user's home directory that might have been
installed from siteXX.tgz. Found the hard way by Erling Westenvik.
Thanks to trondd for helpful analysis.
"If that's what it does, I'm all for it" halex
anton [Wed, 31 May 2017 07:48:04 +0000 (07:48 +0000)]
Drop -t option from ctags call.
The option has been deprecated for almost 7 years by now.
ok tb@
florian [Wed, 31 May 2017 07:30:32 +0000 (07:30 +0000)]
do not leak address and dfr proposals if an interface goes away
tedu [Wed, 31 May 2017 07:20:26 +0000 (07:20 +0000)]
we can just use void for functions that always return 0.
from Michael W. Bombardieri
tedu [Wed, 31 May 2017 07:18:10 +0000 (07:18 +0000)]
add a workaround for the rebound portjacking hijinks. ok millert
florian [Wed, 31 May 2017 07:14:58 +0000 (07:14 +0000)]
remove DEBUG_IMSG; I have figured out imsg flow by now; no binary
change
tedu [Wed, 31 May 2017 07:12:28 +0000 (07:12 +0000)]
make a copy of the first EV_SET argument to prevent multiple evaluation.
matches freebsd, fixes lldb. from Kamil Rytarowski at NetBSD.
while here, make the same change to KNOTE. ok deraadt
markus [Wed, 31 May 2017 07:00:13 +0000 (07:00 +0000)]
remove now obsolete ctx from ssh_dispatch_run; ok djm@
anton [Wed, 31 May 2017 06:59:12 +0000 (06:59 +0000)]
Allow replacement of UTF-8 characters in vi mode.
Reported by Walter Alejandro Iglesias on tech@.
ok schwarze@ tb@
jsg [Wed, 31 May 2017 06:46:57 +0000 (06:46 +0000)]
ca_revoke() gets called two ways. Directly from ca_opt() with keyname
set to the cert to revoke, and indirectly from ca_create() with a
keyname set to NULL.
ca_create() sets REQ_EXT so avoid setting it in ca_revoke() when keyname
is NULL and the crl database is being initialised.
Avoids "REQ_EXT already set" when creating a CA error introduced
in rev 1.44 which set REQ_EXT unconditionally in ca_revoke().
jmc [Wed, 31 May 2017 06:23:19 +0000 (06:23 +0000)]
tweak previous;
mpi [Wed, 31 May 2017 05:59:09 +0000 (05:59 +0000)]
Move IPv4 & IPv6 incoming/forwarding path, PIPEX ppp processing and
IPv4 & IPv6 dispatch functions outside the KERNEL_LOCK().
We currently rely on the NET_LOCK() serializing access to most global
data structures for that. IP input queues are no longer used in the
forwarding case. They still exist as boundary between the network and
transport layers because TCP/UDP & friends still need the KERNEL_LOCK().
Since we do not want to grab the NET_LOCK() for every packet, the
softnet thread will do it once before processing a batch. That means
the L2 processing path, which is currently running without lock, will
now run with the NET_LOCK().
IPsec isn't ready to run without KERNEL_LOCK(), so the softnet thread
will grab the KERNEL_LOCK() as soon as ``ipsec_in_use'' is set.
Tested by Hrvoje Popovski.
ok visa@, bluhm@, henning@
jmatthew [Wed, 31 May 2017 05:54:06 +0000 (05:54 +0000)]
add some details relating to SATA device power management
part of a diff from Imre Vadasz via sf@
jmatthew [Wed, 31 May 2017 05:47:29 +0000 (05:47 +0000)]
fix SATA_SStatus_DET_OFFLINE value and add newer SStatus bits
from Imre Vadasz via sf@
markus [Wed, 31 May 2017 05:34:14 +0000 (05:34 +0000)]
use the ssh_dispatch_run_fatal variant
dlg [Wed, 31 May 2017 05:25:12 +0000 (05:25 +0000)]
fold the vnetid and parent lines into a single encap line.
this is a modest attempt to shorten the ifconfig output. encap wont
show up if neither vnetid or parent are supplied by an interface.
whitespace tweaks from benno@
output tweaks from reyk@
ok deraadt@ henning@
dlg [Wed, 31 May 2017 05:14:51 +0000 (05:14 +0000)]
make vlan use their parents lladdr all the time, not just when theyre up.
krw@ has been having issues with dhclient on vlan interfaces because
i made them only configure the lladdr when they were brought up.
dhclient likes to read the mac address and then bring them up.
this makes vlan copy the parents lladdr onto the vlan interface
when the parent is configured. this probably helps with v6 addresses
on vlan interfaces too.
the new code still supports configuring a custom lladdr on a vlan
interface. this can be done both before and after a parent is
configured, and if a parent is removed.
while here, if the parent is reconfigured while the vlan is up, dont
error if the new parent is the same as the current one. this should
make running netstart again less noisy.
ok krw@
djm [Wed, 31 May 2017 05:08:46 +0000 (05:08 +0000)]
another ctx => ssh conversion (in GSSAPI code)
deraadt [Wed, 31 May 2017 04:52:11 +0000 (04:52 +0000)]
use strerror; from Edgar Pettijohn
deraadt [Wed, 31 May 2017 04:50:55 +0000 (04:50 +0000)]
typo; from Edgar Pettijohn
jsg [Wed, 31 May 2017 04:35:38 +0000 (04:35 +0000)]
avoid going outside array bounds
ok krw@ deraadt@
djm [Wed, 31 May 2017 04:29:44 +0000 (04:29 +0000)]
spell out that custom options/extensions should follow the usual SSH
naming rules, e.g. "extension@example.com"
djm [Wed, 31 May 2017 04:19:28 +0000 (04:19 +0000)]
one more void *ctx => struct ssh *ssh conversion
jsg [Wed, 31 May 2017 04:18:58 +0000 (04:18 +0000)]
close fd on an exit path
djm [Wed, 31 May 2017 04:17:12 +0000 (04:17 +0000)]
one more void *ctx => struct ssh *ssh conversion
jsg [Wed, 31 May 2017 04:14:34 +0000 (04:14 +0000)]
Fix a memory leak in pkey_add() error path. All current callers fatal
if pkey_add() fails.
jsg [Wed, 31 May 2017 03:45:15 +0000 (03:45 +0000)]
Add support for Ralink RT5360. From Kevin Lo who tested with a
D-Link DWA-525 rev A2.
jsg [Wed, 31 May 2017 03:38:35 +0000 (03:38 +0000)]
regen
jsg [Wed, 31 May 2017 03:37:54 +0000 (03:37 +0000)]
Add Ralink RT5360. From Kevin Lo.
stefan [Wed, 31 May 2017 03:24:20 +0000 (03:24 +0000)]
Make gcc move switch tables into .rodata instead of .text on i386/amd64
For C++, gcc has to make use of comdat sections instead
of .gnu.linkonce sections for this because
switch tables and functions would now end up
in different .gnu.linkonce sections. This can cause ld
to sometimes incorrectly discard the switch tables, which causes
linker errors. With comdat sections, making the switch table
and function sections belong together is more reliable.
ok deraadt@
djm [Wed, 31 May 2017 00:43:04 +0000 (00:43 +0000)]
fix possible OOB strlen() in SOCKS4A hostname parsing; ok markus@
djm [Wed, 31 May 2017 00:34:33 +0000 (00:34 +0000)]
make the AES-XTS mode a little more constant-time, though the AES
implementation that it depends on currently isn't.
ok mikeb tom
benno [Tue, 30 May 2017 23:30:48 +0000 (23:30 +0000)]
add option "query from <ip>" to ntpd.conf, to specify a local IP
address for outgoing ntp queries.
From Job Snijders, thanks!
with feedback and ok henning@
naddy [Tue, 30 May 2017 22:32:10 +0000 (22:32 +0000)]
Allow building the bootstrap with clang:
* skip the integrated assembler for assym.h
* use as(1) to build biosboot.S and the various versions of srt0.S
ok deraadt@
sthen [Tue, 30 May 2017 22:19:36 +0000 (22:19 +0000)]
sync
florian [Tue, 30 May 2017 22:04:46 +0000 (22:04 +0000)]
Oops, this was RTP_BGP during development to be able to easier spot
the configured route. Should be RTP_DEFAULT.
zhuk [Tue, 30 May 2017 21:59:36 +0000 (21:59 +0000)]
Make doas regression tests that involve doas running use a non-nosuid
partition, or skip if it could not find a one.
thanks bluhm@ for valuable input
benno [Tue, 30 May 2017 21:57:39 +0000 (21:57 +0000)]
remove no longer needed splnet/splx.
ok florian@
nicm [Tue, 30 May 2017 21:44:59 +0000 (21:44 +0000)]
Rewrite of choose mode, both to simplify and tidy the code and to add
some modern features.
Now the common code is in mode-tree.c, which provides an API used by the
three modes now separated into window-{buffer,client,tree}.c. Buffer
mode shows buffers, client mode clients and tree mode a tree of
sessions, windows and panes.
Each mode has a common set of key bindings plus a few that are specific
to the mode. Other changes are:
- each mode has a preview pane: for buffers this is the buffer content
(very useful), for others it is a preview of the pane;
- items may be sorted in different ways ('O' key);
- multiple items may be tagged and an operation applied to all of them
(for example, to delete multiple buffers at once);
- in tree mode a command may be run on the selected item (session,
window, pane) or on tagged items (key ':');
- displayed items may be filtered in tree mode by using a format (this
is used to implement find-window) (key 'f');
- the custom format (-F) for the display is no longer available;
- shortcut keys change from 0-9, a-z, A-Z which was always a bit weird
with keys used for other uses to 0-9, M-a to M-z.
Now that the code is simpler, other improvements will come later.
Primary key bindings for each mode are documented under the commands in
the man page (choose-buffer, choose-client, choose-tree).
Parts written by Thomas Adam.
fcambus [Tue, 30 May 2017 21:42:54 +0000 (21:42 +0000)]
Use the CD bit (Cursor Disable) in the cursor start register to properly
disable hardware cursor.
From NetBSD.
OK deraadt@
zhuk [Tue, 30 May 2017 20:46:03 +0000 (20:46 +0000)]
First pass to make bluhm@ happy regarding doas regress conf.
1. Make permit tests use wsrc instead of wobj (because basically, to run
test you need obj being writable, unless you want to pollute /usr/src);
2. Test if current user is in wobj group prior running the test, and skip
the test if he is not.
mlarkin [Tue, 30 May 2017 20:31:24 +0000 (20:31 +0000)]
event injection framework, will be used for other features coming shortly
ok deraadt
jmc [Tue, 30 May 2017 20:20:45 +0000 (20:20 +0000)]
tweak previous;
deraadt [Tue, 30 May 2017 20:10:45 +0000 (20:10 +0000)]
MIN->MINIMUM, even though smb is currently disabled.
deraadt [Tue, 30 May 2017 20:00:48 +0000 (20:00 +0000)]
sizes for free()
ok henning
henning [Tue, 30 May 2017 19:40:54 +0000 (19:40 +0000)]
remove XXX from the comments marking "holes" in the ioctls. I see very
very little value in these comments at all, but the XXX is just wrong and
in the way when looking for real XXXs. phessler agrees
henning [Tue, 30 May 2017 19:38:47 +0000 (19:38 +0000)]
remove DIOCCLRRULECTRS here as well, pt out by sashan
jmc [Tue, 30 May 2017 19:38:17 +0000 (19:38 +0000)]
tweak previous;
henning [Tue, 30 May 2017 19:37:54 +0000 (19:37 +0000)]
g/c DIOCCLRRULECTRS
kinda deprecated for a decade now, nothing in base uses it, nothing in
ports uses it (thanks sthen)
ok phessler sashan
mlarkin [Tue, 30 May 2017 19:31:28 +0000 (19:31 +0000)]
SVM: return EIO to vmd to stop the guest when it HLTs with interrupts
disabled (no NMI support yet)
schwarze [Tue, 30 May 2017 19:29:31 +0000 (19:29 +0000)]
STYLE message about useless macros we don't want (Bt Tn Ud);
not a WARNING because they don't endanger portability
sf [Tue, 30 May 2017 19:28:09 +0000 (19:28 +0000)]
More minor virtio tweaks
* add some comments about virtio_enqueue_trim
* include mutex.h explicitly
* make VIRTIO_DEBUG == 1 less verbose in vioblk
ok krw@
florian [Tue, 30 May 2017 19:27:16 +0000 (19:27 +0000)]
Send a source link-layer address option with our solicitations.
Servers following RFC 7772 may then send us unicast router
advertisments and thus reduce multicast traffic which might
increase the battery life of other devices using the same shared
media.
mlarkin [Tue, 30 May 2017 19:13:20 +0000 (19:13 +0000)]
Add missing KERNEL_LOCKs to a few error paths.
bluhm [Tue, 30 May 2017 18:58:37 +0000 (18:58 +0000)]
Add RemoteCommand option to specify a command in the ssh config
file instead of giving it on the client's command line. This command
will be executed on the remote host. The feature allows to automate
tasks using ssh config.
OK markus@
bluhm [Tue, 30 May 2017 18:37:19 +0000 (18:37 +0000)]
Header sys/scanio.h has been deleted, do not include it here.
deraadt [Tue, 30 May 2017 18:18:08 +0000 (18:18 +0000)]
whitespace encountered during review
benno [Tue, 30 May 2017 18:08:15 +0000 (18:08 +0000)]
remove extended communities that have the transitive bit set from
routes announced to an ebgp peer (ref. rfc4360). While here remove the
pratial flag from extended and large communities.
ok claudio@
tedu [Tue, 30 May 2017 17:56:47 +0000 (17:56 +0000)]
split vioblk read/write functions into start and finish as prep for
async io operations. ok mlarkin
yasuoka [Tue, 30 May 2017 17:52:05 +0000 (17:52 +0000)]
Remove never used ifdefs, define FATAL macro properly and define function
parameters in modern way.
schwarze [Tue, 30 May 2017 17:50:08 +0000 (17:50 +0000)]
various mdoc(7) fixes, triggered by a smaller diff from Michael Reed on tech@
mlarkin [Tue, 30 May 2017 17:49:47 +0000 (17:49 +0000)]
FPU context save/restore for SVM in vmm(4), matches a previous diff
from a few weeks ago that did the same for Intel/VMX.
ok deraadt
krw [Tue, 30 May 2017 17:47:11 +0000 (17:47 +0000)]
Replace nifty DBGPRINT() with a more familiar DPRINTF() and adjust
the formats to add in the __func__ and "\n" being magically added by
DBGPRINT(). Fixes a few botches by certain devs who assumed DBGPRINT()
must be just like DPRINTF.
ok sf@ reyk@ on earlier version
tb [Tue, 30 May 2017 17:28:03 +0000 (17:28 +0000)]
Don't mention the operator file -- it was moved to the attic.
From Michael Reed, thanks.
yasuoka [Tue, 30 May 2017 17:22:00 +0000 (17:22 +0000)]
Stop using __P macro.
schwarze [Tue, 30 May 2017 17:15:06 +0000 (17:15 +0000)]
Fix escaping: .Nm Op Fl "Dx" turning into "pflogd [-DragonFly]"
is funny, but not useful, so say .Nm Op Fl \&Dx as required.
deraadt [Tue, 30 May 2017 16:46:04 +0000 (16:46 +0000)]
getrlimit is now allowed by "stdio"
schwarze [Tue, 30 May 2017 16:31:25 +0000 (16:31 +0000)]
fix formatting of intermediate punctuation in .Lk
yasuoka [Tue, 30 May 2017 16:30:22 +0000 (16:30 +0000)]
Don't call TAILQ_REMOVE twice. This caused radiusd crash if it has a
pending request when it stops.
stsp [Tue, 30 May 2017 16:21:55 +0000 (16:21 +0000)]
Improve the new ieee80211_{min,max}_rates() APIs and fix regressions.
Instead of returning an index into ni_rates, return the RVAL of the
basic rate we want to use. This allows a driver to unambiguously map
the basic rate to the corresponding hardware-specific rate value, and
reduces the possibility of bugs where indices are used with arrays
they weren't intended for.
Adjust iwn(4) accordingly, and use the lowest instead of the highest
basic rate in iwn_tx() to cope better in noisy environments.
Fixes association problems on 5GHz reported by tb@
schwarze [Tue, 30 May 2017 16:21:07 +0000 (16:21 +0000)]
Macro argument quoting does not prevent recognition of punctuation
and of called macros.
This bug affects almost all macros, and fixing it simplifies the
code. It is amazing that the bogus ARGS_QWORD feature got implemented
in the first place, and then carrier along for more than eight years
without anybody ever noticing that it was pointless.
Reported by Leah Neukirchen <leah at vuxu dot org>, found on Void Linux.
deraadt [Tue, 30 May 2017 16:16:47 +0000 (16:16 +0000)]
sizes for free()
deraadt [Tue, 30 May 2017 16:07:22 +0000 (16:07 +0000)]
add sizes to free() calls
florian [Tue, 30 May 2017 15:57:12 +0000 (15:57 +0000)]
delete default route from FIB when we receive advertisement with
router lifetime of 0
florian [Tue, 30 May 2017 15:39:49 +0000 (15:39 +0000)]
delete default route from FIB when it expires
mpi [Tue, 30 May 2017 15:39:04 +0000 (15:39 +0000)]
Kill db_sym_t.
ok deraadt@, kettenis@, jasper@
bluhm [Tue, 30 May 2017 15:36:13 +0000 (15:36 +0000)]
Organize iked parser regress Makefile similar to mandoc dbm_dump.
When object files from other parts of the tree are needed, build
them there and symlink them into the regress obj directory.
OK markus@
tedu [Tue, 30 May 2017 15:29:53 +0000 (15:29 +0000)]
usage and order tweaks from jmc
deraadt [Tue, 30 May 2017 15:11:32 +0000 (15:11 +0000)]
Support for SMAP is pretty small, so don't exclude it from the RAMDISKS.
ok jsg visa
schwarze [Tue, 30 May 2017 15:10:48 +0000 (15:10 +0000)]
stop reacharound from w(1) to ps(1); no functional change;
diff from bcallah@; OK tedu@ deraadt@
tedu [Tue, 30 May 2017 15:07:01 +0000 (15:07 +0000)]
id -R: make current rdomain more easily accessible to the shell
ok benno deraadt
millert [Tue, 30 May 2017 15:06:00 +0000 (15:06 +0000)]
Remove FILES section now that /usr/share/misc/ascii is no more.
Noted by jmc@
deraadt [Tue, 30 May 2017 15:04:45 +0000 (15:04 +0000)]
getrtable() is now permitted in "stdio". It carries no risk factors.
naddy [Tue, 30 May 2017 15:02:22 +0000 (15:02 +0000)]
Build amd64 bootstrap with -ffreestanding.
"totally makes sense" kettenis@
ok deraadt@
florian [Tue, 30 May 2017 14:56:34 +0000 (14:56 +0000)]
no need to pass the slaacd_iface around, the proposal has the if_index
millert [Tue, 30 May 2017 14:54:09 +0000 (14:54 +0000)]
Don't fall back to heapsort() if we would otherwise switch to
insertion sort (when the number of elements is < 7).
millert [Tue, 30 May 2017 14:52:37 +0000 (14:52 +0000)]
Remove /usr/share/misc/ascii since we have ascii(7).
OK schwarze@ deraadt@ sthen@
florian [Tue, 30 May 2017 14:45:22 +0000 (14:45 +0000)]
fix previous; actually free the memory
markus [Tue, 30 May 2017 14:29:59 +0000 (14:29 +0000)]
switch auth2 to ssh_dispatch API; ok djm@
markus [Tue, 30 May 2017 14:27:22 +0000 (14:27 +0000)]
switch auth2-none.c to modern APIs; ok djm@